I’m having problems write I2C commands to the Codec, MAX9867. As described in “HE910 Family Digital Voice Interface, App Note (Telit_HE910_DVI_Application_Note__r2)”, page 14, you should write to the codec with this command: AT#I2CWR=X,Y,30,4,19 >00109000100A330000330C0C09092424400060 OK But I never get a OK. This is the command I use: echo -e ‘AT#I2CWR=10,9,30,4,19r’ > /dev/ttyACM0 echo -e ‘00109000100A330000330C0C09092424400060r’ > /dev/ttyACM0 It looks like the write command never gets an finish or end of command. I do not see any activity on the I2C bus on the oscilloscope. How do I tell the modem that the I2C command is finish and it should start writing or I’m doing something else wrong? We have updated the modem with the latest firmware.
You should positive have confirmation of the > prompt arrival before sending data. Signaling data end (although len is specified in the command): To complete the operation send Ctrl-Z char (0x1A hex); to exit without writing the message send ESC char (0x1B hex).
Yes I get a promt before I send the data. I have now tried completing the transaction with a Ctrl-Z (0x1A = 32 octal ) as you suggested and I get a result. Sadly it is an error. Here is what I write: echo -e ‘AT#I2CWR=10,9,30,4,19r’ > /dev/ttyACM0 Print out: AT#I2CWR=10,9,30,4,19 > echo -e ‘00109000100A330000330C0C09092424400060r’ > /dev/ttyACM0 Print out: 00109000100A330000330C0C09092424400060 echo -e ‘
I’m having problems
write I2C commands to the Codec, MAX9867. As described in “HE910 Family Digital
Voice Interface, App Note (Telit_HE910_DVI_Application_Note__r2)”, page 14, you
should write to the codec with this command:
AT#I2CWR=X,Y,30,4,19
>00109000100A330000330C0C09092424400060
OK
But I never
get a OK.
This is the
command I use:
echo -e
‘AT#I2CWR=10,9,30,4,19r’ > /dev/ttyACM0
echo -e
‘00109000100A330000330C0C09092424400060r’ > /dev/ttyACM0
It looks
like the write command never gets an finish or end of command. I do not see any
activity on the I2C bus on the oscilloscope.
How do I
tell the modem that the I2C command is finish and it should start writing or I’m
doing something else wrong?
We have updated
the modem with the latest firmware.
You should positive have confirmation of the > prompt arrival before sending data.
Signaling data end (although len is specified in the command):
Yes I get a promt before I send the data.
I have now tried completing the transaction with
a Ctrl-Z (0x1A = 32 octal ) as you
suggested and I get a result. Sadly it is an error.
Here is what I write:
echo -e ‘AT#I2CWR=10,9,30,4,19r’ > /dev/ttyACM0
Print out:
AT#I2CWR=10,9,30,4,19
>
echo -e ‘00109000100A330000330C0C09092424400060r’
> /dev/ttyACM0
Print out:
00109000100A330000330C0C09092424400060
echo -e ‘