From: Alex G. <ad...@so...> - 2007-04-02 22:29:36
|
I got the sonar working, thank you. Am I right in now thinking that spi-io is the same as i2c-io, in being that I will not be able to access my SPI sensors connected to roboaudiostix with this command? I have a 3 (single axis) gyro and 3 (single axis) accelerometers connected via this link. Do I need to create a program similar to i2c (without the -io) but for spi, to access their registers? Thanks again, Alex ----- Original Message ----- From: "Dave Hylands" <dhy...@gm...> To: "General mailing list for gumstix users." <gum...@li...> Sent: Monday, April 02, 2007 9:24 PM Subject: Re: [Gumstix-users] I2C Address out of range > 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/ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > |