I have written a program that comminucates serially with a USB 3g Modem. When I open the port and write the AT command
AT
To the modem, I get the normal "OK" response and can read it using a serial read function. In a terminal, when I write the command
AT^SYSINFO
I get the following response:
^SYSINFO:#,#,#,#,#,#
With the #'s being numbers. However, when I attempt to write the same command serially using my program, I read only this reponse:
AT^SYSINFO
I try to then read another line of incoming data, but no data comes.
Can anyone help me with this? There is information in the ^SYSINFO message that I need to extract.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…