From: Dave H. <dhy...@gm...> - 2007-04-02 20:24:37
|
Hi Alex, On 4/2/07, Alex Gooding <ad...@so...> wrote: > Thanks Dave that fixed the problem of where it was, but am having trouble > accessing it. I receive the following error. I think I haven't set up the > ports (D.0 for SCL and Port D.1 for SDA) correctly. (I just did i2c-io 0x0b > SetDir D.0 out and i2c-io 0x0b SetDir D.1 in) Umm. Don't do that. If you have a robostix (which is the only thing that I'm aware of that responds to i2c-io commands) and it has i2c-io.hex installed, then it takes care of configuring the SDA and SCL lines correctly. Try to mess with them can only screw things up. SDA and SCL are bidirectional, not input and output signals. > [root@gumstix bin]# i2c-io 0x70 ReadReg 0 > ERROR: I2cTransfer: CRC failed: Rcvd: 0x00, expecting: 0x6e > ERROR: I2cReadBlock failed > ERROR: Unable to retrieve BootLoader information from i2c address 0x70 You can't use i2c-io to talk to one of the sonar modules. You can only use it to talk to the robostix running the i2c-io.hex file. You need to use the i2c program (without the -io) to talk to the sonar modules. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |