LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

AT Commands using TCP/IP Connection with GPRS Modem

Solved!
Go to solution

Hello, I'm trying to communicate with a GPRS Modem by using AT Commands, I tried this manually by sending commands through Telnet and Hercules Software so modem is responding correctly.

 

I want to do the same using a Labview VI, so when I'm runnning the VI it seems that commands are send correctly but I dont get any answer from the modem. I  don´t know if I'm using \n\r characters ok.

 

I would appreciate any help

0 Kudos
Message 1 of 3
(4,551 Views)
Solution
Accepted by topic author lenin_7
When you press the enter key in a terminal program it sends normally the carriage return and line feed character. You have to do the same in your LabVIEW strings by adding those characters to the end of a command string.
Enable backslash code in the right click menu of your string control or constant and add \r\n to the end of your command string.
Rolf Kalbermatter
My Blog
Message 2 of 3
(4,525 Views)

Rolfk Thank you very much for your answer, I attached \r \n commands to string and it finally worked.

 

I update VI for further information.

 

I'm using modem GP2 V2  from Witech.

0 Kudos
Message 3 of 3
(4,473 Views)