TDA4VEN-Q1: DS90UB971 与 DS90UB9724之间如何实现GPIO透传功能?

Part Number: TDA4VEN-Q1


您好!

最近想用DS90UB971作为摄像头的错误输入(GPIO2),DS90UB9724作为输出(GPIO3)实现摄像头的错误检测,但是在调试时发生了一下问题,按照971手册中提供的forward channel gpio示例(7.3.6.4):

971端:

i2ctransfer -y w2@0x76 0x06 0xe4

i2ctransfer -y w2@0x76 0x07 0x9c

i2ctransfer -y w2@0x76 0x0e 0x8f//回读0x0c

i2ctransfer -y w2@0x76 0x33 0x01

i2ctransfer -y w2@0x76 0x0d 0x00

sleep 1

i2ctransfer -y w2@0x76 0x0d 0x08

注入错误后,可读取到错误成功注入,并且读取GPIO2状态值发生改变:

i2cget -y 0x76 0x53 //状态值为0x08

9742端:GPIO3测量电压值为3.3V

i2ctransfer -y w2@0x30 0x4c 0x12//port 1

i2ctransfer -y w2@0x30 0x13 0x45//这条命令执行后GPIO3没有注入摄像头错误就拉低了,理想状态是注入错误代码之后才拉低

i2ctransfer -y w2@0x30 0x59 0x01

 

971端应该是成功建立,9724端是能GPIO3作为输入就自动拉低了,使得不能测试摄像头错误输入,请帮忙看看应该怎样使用让GPIO3在错误注入后再拉低。

感谢!