LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Com1 Modem Read

I want to send :
1.  AT <ENTER>  response should be OK
2.  AT+CMGF=1 <ENTER>    response should be OK
3.  AT+CPMS="SM" <ENTER>   response is :      +CPMS: <used_space>,<max_space>
4.  AT+CMGL="ALL" <ENTER>    response  is :   
+CMGL: 1,"REC UNREAD","+31625044454",,"07/07/05,09:55:16+08"
Test message 1
+CMGL: 2,"REC UNREAD","+31625044454",,"07/07/05,09:56:03+08"
Test message 2

OK
5. AT+CMGR=2 <ENTER>   response is SMS no. 2 from previous step or any thong I want
****  point 4 or 5 which I want to read and send it to text file on my PC. 
 
0 Kudos
Message 21 of 24
(823 Views)

If you put a small delay it will probably work

It whould help if you posted the code..

We are trying to help !

0 Kudos
Message 22 of 24
(816 Views)
Well, what I see from the forst time it works is that there is almost 3 seconds between the command being sent and the data being received.  What delay are you using between your write and read?  You should start with significant delays to make sure things are working.  Since your code closes the port immediately after the read, you may be getting data that you do not see.  The serial port monitor program will not see data coming from the SIM after the port is closed.
0 Kudos
Message 23 of 24
(814 Views)
The Program works fine.
Thanks to all Smiley Wink
0 Kudos
Message 24 of 24
(790 Views)