Post Reply 
USBOpen(), USBSend() and USBRecv()
04-29-2023, 05:36 PM
Post: #3
RE: USBOpen(), USBSend() and USBRecv()
(04-29-2023 02:47 AM)gehakte_bits Wrote:  See the help text of USBSend:
USBSend({data}) is the format to send data using the HID interface.
i.e. USBSend({240, 4, 65, 66, 67,68})

Per the FT260 User guide manual
4.6.2 UART Write Request:
Byte 0 0xF0 Report ID (240)
Byte 1 length (04)
Byte 2..5 actual data 'ABCD' (65,66,67,68)

A PC typically expects RS232 levels, sometimes 0~5V will do, so I don't know if 0/3.3V will be properly recognized. You might need a proper RS232 level converter.

ft260_EEPROMrdall() dumps the FT260 internal EEPROM (#C2h I2C Read Request), it is not using the serial port to your PC.
The data you see is from the FT260 HID buffer, after a USBRecv(). The first byte indicates what port it came from (probably 0xf0 up to 0xff in your case as from the UART)

Good job - you are almost there!

Great, I have now got the sends working fine. I can send data from the calculator through the serial port.

What do you have to do on the FT260 side, to receive some data through serial port?

Is a USBSend() required before USBRecv() will work?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: USBOpen(), USBSend() and USBRecv() - matalog - 04-29-2023 05:36 PM



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