HI,I am testing imu on RZV2L avnet board inside a docker container [docker image: ros:noetic]. I have connected the device, but the i2c-tools doesn't seem to be detecting it.PFA the Library I am testing. I get the error ''' Error connecting to Device: 69, [Errno 6] No such device or address'''' When i run the python code inside examples folder.
Hi,
System devices are not exposed inside the docker container by default.How did you expose your i2c device to the container?
Please explain in detail.
BR
I created the container with the --privileged tag.
What is the HW device address of that thing?
Which I2C are you using?
69 is the address. I am using i2c-4
Then i2cdetect -y 4
it is showing the device address.
But when i run the code to take the imu data, it shows "no device detected".
Hi,You have to figure it out what's going wrong. You can check your package's I2C driver. There are some examples that you can start off.Kind Regards.
This is the same example that I am running.
I guess PT_Renesas wanted to say that you should try to check if the I2C driver works first.
From your answer and the results of i2cdetect, I think that the i2c device is exposed correctly and the i2c-4 is also functioning correctly.
So, have you changed the i2c bus number (iBus) to 4 in the qwiic I2C driver (Qwiic_I2C_Pyi2c) package according to your hardware specifications?
Are you using it as is?
thank you. I hadn't changed the bus number in the driver code. Changed it to 4 and now it works.