Hi,
I am currently using the MT9J003 sensor with IPNC_release_v3.00 on DM8127 H/W.
I2C protocol is used for peripheral read/write (sensor read/write).
Once My setup is up, I get the root login prompt on the minicom. I executed below commands and got Errors.
root@DM8127_IPNC:~#
root@DM8127_IPNC:/# cd /opt/ipnc/bin/
root@DM8127_IPNC:/opt/ipnc/bin# pwd
/opt/ipnc/bin
root@DM8127_IPNC:/opt/ipnc/bin#
root@DM8127_IPNC:/opt/ipnc/bin# ./i2c_rdwr.out
I2C Test Utility,
Usage: ./i2c_rdwr.out -r|-w <devAddrInHex> <regAddrInHex> <regValueInHex or numRegsToReadInDec>
root@DM8127_IPNC:/opt/ipnc/bin#
root@DM8127_IPNC:/opt/ipnc/bin# ./i2c_rdwr.out -r 0x36 0x02 1
ERROR (osa_i2c.c|OSA_i2cTestMain|263): OSA_i2cOpen( instId = 3 )
root@DM8127_IPNC:/opt/ipnc/bin# ./i2c_rdwr.out -r 0x36 0x49 1
ERROR (osa_i2c.c|OSA_i2cTestMain|263): OSA_i2cOpen( instId = 3 )
root@DM8127_IPNC:/opt/ipnc/bin#
Querries:
#1. My setup is ready and Streaming the data smoothly over RTSP, it is expected to use I2c read/write and it's doing so.
But When I try to use ./i2c_rdwr.out command why it throws Error? Both read & write (-r/-w) doesn't work here, and throws same error.
I hope, cmd used is correct. {ex: root@DM8127_IPNC:/opt/ipnc/bin# ./i2c_rdwr.out -r 0x36 0x49 1}. If any mistake please do correct it.
#2. Referring to osa_i2c.h what is I2C_DEFAULT_INST_ID? what does it signifies? how u decide the ID value ? any reference please?
Regards
Ravikiran