LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using serial port to send AT commands

I am trying to communicate with a serial device( GSM modem).I use the serial port (com 1)to send an "AT" command but when I read the serial port,I don´t read the right answer ( it must be an "OK" ),but I read the command I am trying to send instead of the right one.
0 Kudos
Message 1 of 3
(3,704 Views)
No time now to down load your code and look!

THis sounds like your modem is set for local echo.

Check the switches etc.

In "Local Echo" mode, every character typed was echoed by the modem. This was used in the "Old Days" when we used to use dumb terminals. The echo let us know what we typed.

This can also be set "Off" on some modem via an AT command. Sorry, I don't remeber what the command was.

Along with the above, the "OK" should not come back until after the modem sees an Carridge Return (enter).

Some modems where also "case sensitive". Watch for that.

Ben

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 3
(3,704 Views)
On some platforms you may need to send a linefeed after AT.
0 Kudos
Message 3 of 3
(3,704 Views)