From: VaibhavGhadiok <vai...@gm...> - 2010-10-27 20:05:16
|
hi everyone While trying to debug communication issues with an I2C sensor using I2cSendBytes and combined read/write as talked about in one of the posts, I used the same commands on the robostix as well. I tried to verify the output of my program using the i2c utility provided on the gumstix. Results are below. As one can note I am always returned the address of the register instead of the value in it. root@gumstix-custom-verdex:~$ i2c 0x0B rb 0x6F 0x6f root@gumstix-custom-verdex:~$ i2c 0x0B wb 0x6F 0x00 root@gumstix-custom-verdex:~$ i2c 0x0B rb 0x6F 0x6f //I also tried (Note the output trend) root@gumstix-custom-verdex:~$ i2c 0x0B rb 0xABCDEF 0xef root@gumstix-custom-verdex:~$ i2c 0x0B rb 0x11 0x11 root@gumstix-custom-verdex:~$ i2c 0x0B rb 0x66 0x66 root@gumstix-custom-verdex:~$ i2c 0x0B rb 0x88 0x88 root@gumstix-custom-verdex:~$ i2c 0x0B rb 0x654 0x54 root@gumstix-custom-verdex:~$ i2c 0x0B rb 0x7854 0x54 root@gumstix-custom-verdex:~$ i2c 0x0B rb 0x8907854 0x54 root@gumstix-custom-verdex:~$ i2c 0x0B rb 0xABCD8907858 0xff root@gumstix-custom-verdex:~$ i2c 0x0B rb 0xABCD89078AA 0xff //The robostix address is 0x0B, Just trying a random address to see the effects root@gumstix-custom-verdex:~$ i2c 0x0A rb 0x6F ERROR: I2cTransfer: ioctl failed: Remote I/O error (121) ERROR: I2cReadByte failed: -1 I have a program that uses I2C_IO_GetADC like functions and works perfectly fine. I also generate PWM on the robostix using values sent from the gumstix. I set the robostix address to be 0x0B using SetSlave inside this program. Right now, i only have the Gumstix and robostix and nothing else attached to the I2C lines (nothing that I have attached externally) Thanks -- View this message in context: http://old.nabble.com/i2c-%27robostix-address%27--rb--%27regadd-%27returns-%27regadd%27-tp30070714p30070714.html Sent from the Gumstix mailing list archive at Nabble.com. |