Closed DivyeshShashikant closed 2 years ago
After the i2c patch was applied and upon running the the commands i2cdetect -l and ls /dev/ | grep i2c on the BBB board, I noticed the i2c buses (0,1,2) respectively.
ran the command i2cdetect -r -y 2 to list the slave device (TMP102) address (0x48) on the 2nd channel i2c of the BBB board. The outputs are before and after connecting the sensor to the BBB board.
executed the command i2cset -y 2 0x48 0x00 The first hex number is the i2c device address followed by the specific data register to be written. I verified the write transactions on a logic analyzer and found it to be correct.
executed the command i2cdump -y 2 0x48 w to read raw temperature values. The first hex number is the i2c device address followed by the specific data register to be written. I verified the read transactions on a logic analyzer and found it to be correct. The first column values are the required values of out which 12 bits shall be the temperature readings. Further operations will be done on these values to get the temperature in a readable form.
DoD:
Task
Blockers