This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

964如何配置sensor的i2c地址?

TI工程师你好:

我的开发环境是这样的 sensor + 913 + 964 + MCU。

目前可以通过I2C访问到964内部寄存器。964的i2c地址为:0x30

请问需要配置964的哪些寄存器,才能够访问到sensor?

  • 需要配置964的Slave ID[X] 和Slave Alias[X].
  • 您好:

    0x5D  SlaveID[0] 

    0x65   SlaveAlias[0]

    以上两个寄存器已经配置了。

    总线上还是找不到sensor的i2c地址。

    root@linaro-alip:~# i2cget -f -y 0 0x30 0x5d
    0xa0
    root@linaro-alip:~# i2cget -f -y 0 0x30 0x65
    0xa0

    root@linaro-alip:~# i2cdetect -y -r 0
    0 1 2 3 4 5 6 7 8 9 a b c d e f
    00: -- -- -- -- -- -- -- -- -- -- -- -- --
    10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    30: 30 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    50: -- -- -- -- -- -- -- -- 58 -- -- -- -- -- -- --
    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    70: -- -- -- -- -- -- -- --

    964从机地址:0x30

    913从机地址:0x58

    i2c总线找不到0x50的设备地址?

    烦请分析还需要配置哪些寄存器?

     


     

  • 913 的从机地址0X58需要左移一位即0XB0。
    同样964 的也一样,0X30左移以为即0X60.
    再试试看能否找到。
  • 您好:

             我们目前是无法访问到sensor设备,964和913设备目前都可以访问的到,访问sensor需要配置的寄存器我们都已经配置了,

    但还是无法访问到sensor设备?

    root@linaro-alip:~/964_913_new# i2ctool 8 0x30 0x5d

    reg_bit 8

    read reg 0x5d value: 0xa8

    root@linaro-alip:~/964_913_new# i2ctool 8 0x30 0x65

    reg_bit 8

    read reg 0x65 value: 0xa8

    root@linaro-alip:~/964_913_new# i2cdetect -y -r 0

        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

    00:          -- -- -- -- -- -- -- -- -- -- -- -- --

    10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    30: 30 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    50: -- -- -- -- -- -- -- -- 58 -- -- -- -- -- -- --

    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    70: -- -- -- -- -- -- -- --

    0x30   ----> 964从机地址

    0x58  ----> 913从机地址

    总线上面找不到sensor的从机地址(0xa8 >> 1)?

    烦请帮忙分析原因。

    感谢!

  • 你好 我们也遇到了一样的情况 可以通过964访问到前面的913,但是无法在访问到前面的sensor 我们这个摄像头用914测试访问是都没有问题的,sensor可以正常出图访问

    请问下你们解决了吗?谢谢!