NI Home > Community > NI Discussion Forums

LabVIEW

Reply
Member
MiBL
Posts: 14
0 Kudos
Accepted Solution

receiving sms using labview

Hello,

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?? 

Thanks :smileyhappy:

Active Participant
NitzZ
Posts: 558

Re: receiving sms using labview

Hi MiBL,

 

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.:smileywink:

 

Regards,
NitzZ

(Give kudos to good Answers, Mark it as a Solution if your problem is Solved:smileywink:

Member
MiBL
Posts: 14
0 Kudos

Re: receiving sms using labview

HI NItz,

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 

best regards 

Active Participant
NitzZ
Posts: 558

Re: receiving sms using labview

Hi MiBL,

 

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.

Regards,
NitzZ

(Kudos are always Welcome:smileywink:

Member
MiBL
Posts: 14
0 Kudos

Re: receiving sms using labview

Hi NItz,

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.

f.png

 

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....  

Member
MiBL
Posts: 14
0 Kudos

Re: receiving sms using labview

Hi Nitz,

This is the link that I refer to for sending and receiving SMS at hyperterminal. http://www.developershome.com/sms/howToReceiveSMSUsingPC.asp

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

S11000.png

 

Secondly is AT+CNMI=1,2,0,0,0 (which doesn't need to write command to read the new message) in below figure.

f.png

 

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? 

THanks heaps :smileyhappy: 

best Regards 

MiBL :smileyvery-happy:

Member
MiBL
Posts: 14
0 Kudos

Re: receiving sms using labview

HI Nitz, 

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? 

Thanks heaps... 

Looking forward your reply asap :smileyhappy:

The picture below shown is the error that occurred in receiving sms labview VI. and I have attached my VI also.  

Error in receiving sms.jpg

Active Participant
Ardent
Posts: 250
0 Kudos

Re: receiving sms using labview

Hi MiBL,

 

could you please take a look at this KBs? I think that it is reffering to the same error you are getting.

Best regards,
Jano
Knight of NI
RavensFan
Posts: 15,609
0 Kudos

Re: receiving sms using labview

Jan,

 

You need to post a link that people in the outside world can see.  ae.natinst.com is only visible to NI employees.

Member
MiBL
Posts: 14
0 Kudos

Re: receiving sms using labview

[ Edited ]

hi jan,

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 :smileyhappy: