bandasaikrishna / Autonomous_Mobile_Robot

Autonomous mobile robot navigation using ROS Navigation Stack.
160 stars 75 forks source link

Remote I/O error. Failed to write to I2C Slave 0x8 @ [write_byte():write 121], Could not read from I2C slave 0x8, [read_byte():read 121] #5

Closed vijaybande closed 3 years ago

vijaybande commented 3 years ago

I am gettig below errros while running controller_check.launch. i2c slaves 0x08 and 0x09 were detected on Rpi

[ERROR] [1617861674.244743164]: Could not read from I2C slave 0x8, [read_byte():read 121] [ERROR] [1617861674.252197838]: Could not read from I2C slave 0x9, [read_byte():read 121] [ERROR] [1617861674.252879451]: Remote I/O error. Failed to write to I2C Slave 0x8 @ [write_byte():write 121] [ERROR] [1617861674.253275023]: Remote I/O error. Failed to write to I2C Slave 0x9 @ [write_byte():write 121] [ERROR] [1617861674.344301937]: Could not read from I2C slave 0x8, [read_byte():read 121] [ERROR] [1617861674.345627664]: Could not read from I2C slave 0x9, [read_byte():read 121] [ERROR] [1617861674.444579302]: Could not read from I2C slave 0x8, [read_byte():read 121] [ERROR] [1617861674.446186018]: Could not read from I2C slave 0x9, [read_byte():read 121] [ERROR] [1617861674.544354689]: Could not read from I2C slave 0x8, [read_byte():read 121] [ERROR] [1617861674.546916455]: Could not read from I2C slave 0x9, [read_byte():read 121] [ERROR] [1617861674.644397524]: Could not read from I2C slave 0x8, [read_byte():read 121] [ERROR] [1617861674.645817938]: Could not read from I2C slave 0x9, [read_byte():read 121] [ERROR] [1617861674.744349213]: Could not read from I2C slave 0x8, [read_byte():read 121]

vijaybande commented 3 years ago

Resolved.

audricsaragih commented 3 years ago

Could you tell me please how you solved this?

vijaybande commented 3 years ago

1.) Make sure that the both i2c are enabled on the board i.e i2c-0 and i2c- 1 2.) Connect the arduino slave 08 to i2c-0 and arduino slave 09 to i2c-1

But may I know how it is working in the link given below ?? https://youtu.be/Uz_i_sjVhIM

On Thu, 13 May, 2021, 3:13 pm audricsaragih, @.***> wrote:

Could you tell me please how you solved this?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/bandasaikrishna/Autonomous_Mobile_Robot/issues/5#issuecomment-840446056, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIGR3LFEPFTQURCTEFIPI5LTNONNHANCNFSM42SFH3DA .

audricsaragih commented 3 years ago

Yes I've done that both. But when i run :

i2cdetect -y 0

or

i2cdetect -y 1

It didn't catch any adress I'm stuck there too

vijaybande commented 3 years ago

Are u using raspberry pi or Jetson nano??

On Thu, 13 May, 2021, 4:36 pm audricsaragih, @.***> wrote:

Yes I've done that both. But when i run :

i2cdetect -y 0

or

i2cdetect -y 1

It didn't catch any adress I'm stuck there too

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/bandasaikrishna/Autonomous_Mobile_Robot/issues/5#issuecomment-840486165, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIGR3LCP67ZF2ILRS2HGKUDTNOXCVANCNFSM42SFH3DA .

vijaybande commented 3 years ago

Can we connect over the call??

On Thu, 13 May, 2021, 4:53 pm Vijay Bande, @.***> wrote:

Are u using raspberry pi or Jetson nano??

On Thu, 13 May, 2021, 4:36 pm audricsaragih, @.***> wrote:

Yes I've done that both. But when i run :

i2cdetect -y 0

or

i2cdetect -y 1

It didn't catch any adress I'm stuck there too

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/bandasaikrishna/Autonomous_Mobile_Robot/issues/5#issuecomment-840486165, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIGR3LCP67ZF2ILRS2HGKUDTNOXCVANCNFSM42SFH3DA .

robotos2023 commented 1 year ago

I got the same error. I am using Raspberry pi 4 model b. Can you please tell me how you do it? I'd appreciate it a lot!

jomar04 commented 1 year ago

Can I ask how you resolve it?