Re: i2c chip connected through USB port / Serial converter ttyUSB0 --Linux 2.6.17



"Antoine" <antoine.chemali@xxxxxxxxx> schrieb:
/dev/ttyUSB0.
Is there a driver to communicate through the serial port to the i2c
chip?

Could you explain your set-up a little more?
I understand that you run Linux on a PC and you have a USB device connected
to it.
Is it some kind of FTDI chip? For those, at least on Windows, there are in
fact so called virtual com drivers which emulate a serial port over USB.
However, these are intended to built RS232-to-USB converters. If I
understand your question correctly you want to access an I2C device from
your PC by means of an RS232 communication?
Please keep in mind that I2C is *not* an asynchronous protocol and there are
some differences thus, you will always need some protocol conversion logic -
master/slave behaviour etc.

I think it would be much easyer for you to use the API that came with your
USB converter to write some basic I2C functions: Read, Write and
ReadAfterRestart (combined transfer).
/Roland


.



Relevant Pages

  • Serial comm problem I/O blocking
    ... I've a problem with I/O blocking on my serial port at this particular ... 1.I've developed a driver to communicate with some device using Serial ...
    (microsoft.public.dotnet.languages.vc)
  • Re: PLEASE HELP ME FIND INFO ON A CHIP ID LIKE TO USE
    ... PCs using the serial port that used the TSP5220 chip? ... Lots of pictures of a device that uses RS-232 to communicate with a PC or anything else. ...
    (sci.electronics.components)
  • Re: Re: HARDWARE: Open-Source-Friendly Graphics Cards -- Viable?]
    ... Some of them do dominate a market. ... implementing a specific grafics standard. ... grafic chips just need a driver - but they ... spent tons of research on the chip development as well, ...
    (Linux-Kernel)
  • [PATCH] zs: Move to the serial subsystem
    ... This is a reimplementation of the zs driver for the serial subsystem. ... to use a console on a serial port, say Y. Otherwise, say N. ... * This is the Z85C30 driver's generic interrupt routine. ...
    (Linux-Kernel)
  • Re: Cant print from Word 2008 (Excel prints OK)
    ... Printing, however, is actually handled by the printer driver software & the ... a local system it pretty much points the finger at the server configuration. ... connecting the printer directly to my iMac since it needs to be shared ... that it "couldn't communicate with the printer ... ...
    (microsoft.public.mac.office.word)