11-16-2011 01:58 AM
Do you have any idea on how to receive SMS by using labVIEW? I have tried the AT commands using hyperterminal to recieve the SMS, but i don't know how to continue on labVIEW to receive?
Is the concept same with the sending SMS in labVIEW??
Solved! Go to Solution.
11-16-2011 03:16 AM
If you could do that using AT Commands, its the same in LabVIEW as well. Use the VISA functions, Write the commands using the Write functions to the modem and read the same using the read commands. You may even find some examples for this if you search the forum properly.
(Give kudos to good Answers, Mark it as a Solution if your problem is Solved)
11-22-2011 09:55 PM
thanks for your reply.
Any idea for how to find out the example codes for recieivng sms by labVIEW??
I tried to find out but so far can't find them..
Thank you for your help
11-22-2011 11:46 PM
For recieving sms by labVIEW you can use the VISA write function and write the AT+CMGR command into the port and then use a VISA Read function to read the sms from the modem. For example if you want to read the 3 message you can write the code AT+CMGR=3. Also include a small delay of may be 1000 milli seconds between writing and reading the sms. Try this and let me know if you have any trouble. Do post your code if you face and issues.
(Kudos are always Welcome)
11-23-2011 12:40 AM
thanks for your reply.... I am confused abit... as my sequences in receiving SMS at hyperterminal was started with new message notification which is "AT+CNMI=1,2,0,0,0" ,as shown in below.
if you don't mind, can i have an example code or any sequences in details for receiving SMS in labVIEW? Should i have to do together under same VI (send SMS and receive SMS together in same VI)?
Thanks heaps for your help....
11-23-2011 12:48 AM
This is the link that I refer to for sending and receiving SMS at hyperterminal. http://www.developershome.com/sms/howToReceiveSMSU
As, there is two types of receiving SMS (AT commands) which is
(i) AT+CNMI=1,1,0,0,0 (which needs to write AT+CMGR=message location at sim card) in below figure
Secondly is AT+CNMI=1,2,0,0,0 (which doesn't need to write command to read the new message) in below figure.
In labview, which one is most suitable, I prefer use AT+CNMI=1,2,0,0,0 as we no need to write command for read new message!!
If you don't mind, any idea or steps for testing in labVIEW?
11-23-2011 03:17 AM
i have tried the receiving sms by labview according to your idea, but i think there is an error in this,
if you don't mind, can you help me to recover these erros?
Looking forward your reply asap
The picture below shown is the error that occurred in receiving sms labview VI. and I have attached my VI also.
01-02-2012 08:03 PM - edited 01-02-2012 08:12 PM
thanks for reply,... I can't go to the site that u referred! can u please reupload again
what is the meaning of KBs, by the way?
I am using the labVIEW version of 2009, for testing how to receive the SMS by it, are there any example codes beside the basic serial read and write.vi which can be found in NI find examples... as I don't know how to apply this example code.
thanks alot for your help.
Happy Blissful New Year