raspberry-pimicrocontrolleri2c

No I2C connection found (solved)


I am trying to read i2c data from a battery board to an Up Squared 7100 board. This board uses the same 40 pinhead as the raspberry pi so I would think the i2c connection would work the same way.

When testing the battery board on a raspberry pi, I am able to receive i2c data. I am using pin head 3 and 5 and ground

https://pinout.xyz/ https://github.com/up-board/up-community/wiki/How-to-use-the-peripherals-on-40-Pin-Header

When I do the command

sudo i2cdetect -y -r 1

on the raspberry pi I get

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- 0b -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- 36 -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

however when I run the same command on the 7100 I get

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                        

I would expect the same 0x36 address to be there on the 7100. Why is it not or how can I search for why?

when I do the command ls /sys/bus/pci/devices/*/i2c_designware.1/ | grep i2c on the 7100, I get back i2c-0


Solution

  • The connection was simply running on a different bus on the 7100. It was running on bus 2.

    sudo i2cdetect -y -r 2 showed that there was a device on 0x36