I2C function of USB-2-X

I2C function of USB-2-X

Postby Yukio Abe » 29 Jul 2008, 05:01

Dear Trinamic support service,
I send you e-mail for the first time.
I have a question about the I2C function of USB-2-X Interface Converter.

Question:
Is it possible to Read Data Format of variable-length I2C communication using 1.USB-2-X Interface Converter?

Description:
I would like to use this Interface Converter as a master, and to control for evaluate our I2C device.
The structure from PC to our I2C Device is as follows.
PC <---> USB-2-X <---> I2C Device (Variable-length data of the device status)

Acording to the manual of "USB2X Communication Protcol to the USB HOST",
we can read the command for USB-2-X in chapter 2.3 IIC-Read.
When PC read the data from slave device, PC have to send the following command to USB-2-X.
Packet ID: 0x32
Payload Data:1Byte Address and 1 Byte Mumber of bytes to be read.
This means that this USB-2-X constitutes the fixed-length communication method.

But, our I2C device is constituting variable-length data.
The following is the structure of the data format of our I2C device.

I2C Communication format for Slave status
1st byte : Bytes mumber of data (bytecount: eg.n bytes)
2nd byte : Check sum data
3rd byte : Status data
:
n byte : Status data

I hope that you will understand my question, and please advice.
Thank you.
Best Regards,
Yukio Abe
Newbie
Newbie
 
Posts: 1
Joined: 29 Jul 2008, 04:44
Location: Japan

Postby Olav Kahlbaum (TRINAMIC) » 29 Jul 2008, 07:50

You are right, the USB2X only supports I2C reads with fixed data length. Maybe it helps to read only one byte first (the length byte form your device) and then the rest, using the information from the first byte?
User avatar
Olav Kahlbaum (TRINAMIC)
Site Admin
 
Posts: 3356
Joined: 11 Aug 2006, 08:02


Return to Other products

Who is online

Users browsing this forum: No registered users and 0 guests

cron