root@beaglebone:~# sudo i2cdetect -r 0
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-0 using read byte commands.
I will probe address range 0x03-0x77.
Continue? [Y/n] y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: — — — — — — — — — — — — —
10: — — — — — — — — — — — — — — — —
20: — — — — UU — — — — — — — — — — —
30: — — — — UU — — — — — — — — — — —
40: — — — — — — — — — — — — — — — —
50: UU — — — — — — — — — — — — — — —
60: — — — — — — — — — — — — — — — —
70: UU — — — — — — —
root@beaglebone:~# sudo i2cdetect -r 1
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-1 using read byte commands.
I will probe address range 0x03-0x77.
Continue? [Y/n] y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: — — — — — — — — — — — — —
10: — — — — — — — — — — — — — — — —
20: — — — — — — — — — — — — — — — —
30: — — — — — — — — — — — — — — — —
40: — — — — — — — — — — — — — — — —
50: — — — — UU UU UU UU — — — — — — — —
60: — — — — — — — — — — — — — — — —
70: — — — — — — — —
But even after connecting my device It is still the same (I mean it still doesn't show the device's address). Any advise?
Thanks
Thought maybe they all need to be enable.Tried the following method but in vain (NO such file or directory is the response i'm getting)Hi Graham,I have been using the latest version of Debien, for three days now with the same result.
On the other hand i checked with the oscilloscope the SDA and SCL lines are not acting like they are supposed to act (even on the default P9_19 and P9_20).To enable the I2c-1 on the BeagleBone Black Rev A, B and C:
- Rev A/B: Open the file /media/BEAGLEBONE/uEnv.txt in an editor (vim/nano)
- Rec C: Open the file /boot/uboot/uEnv.txt in an editor (vim/nano)
- Add the key "capemgr.enable_partno="
- Add the ports you want to enable, comma separated (BB-I2C0, BB-I2C1, etc)
- Reboot.
Am i right to say the I2c buses are not enable? or is it another proble?
On Thu, Mar 9, 2017 at 4:25 PM, Graham <gra...@flex-radio.com> wrote:
Am i right to say the I2c buses are not enable? or is it another proble?
Thanks Graham, got it working. I think it was the cable length that was causing problem. At the moment I'm just trying to figure out why the magnetometer data are not varying while i can see the changes for the accelerometer and gyroscope.