Post Reply 
USBOpen(), USBSend() and USBRecv()
05-12-2023, 09:53 PM
Post: #15
RE: USBOpen(), USBSend() and USBRecv()
Well, attempting to use i2c to communicate via the Prime and FT260 is proving difficult for me to understand.

I can see in an earlier post that you told me :
Quote:If you have a faster interface (i.e. I2C) you see it fills the full 64 bytes:
((wr) request (0xc2) to I2C-device (0x50) read (0x06) 256 bytes (0x0100)
((RD) read opcode (0xde/0xd3), size (4 * 0x3c + 0x10), actual data cropped...)

wr C2 50 06 00 01 00 00 00 00
RD DE 3C 08 30 60 00 00 A0 40
RD DE 3C 00 30 00 10 03 46 00
RD DE 3C 00 00 00 00 00 00 00
RD DE 3C 00 00 00 00 00 00 00
RD D3 10 00 00 00 00 00 00 00

I have 2 questions. I am using an arduino to communicate via i2c, if I get it to send the bytes [C2,50,06,05,00,01,02,03,04,05] via i2c, and then perform a USBRecv() on the HP Prime, should I expect the bytes[01,02,03,04,05] to be shown on the HP Prime?

The other thing is, I think the Arduino is acting as a master, is there a way to deal with a Master communicating with a master? I will also look into setting the Arduino as a slave in the mean time.

Sorry, I do not know anything about i2c, and it is a little perplexing!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: USBOpen(), USBSend() and USBRecv() - matalog - 05-12-2023 09:53 PM



User(s) browsing this thread: 1 Guest(s)