LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SMS Application - Hardware:GSM Modem & Software:LabView

HI,

just came across your email and want to help a little bit,

have worked with the SE GMXX modem, it is very easy what you need,

is only a rs232 cable, and know the set of AT commands that you will need,

in User manual you will receive from your GMxx it should be explained throughly....,

you can try by using hyperterminal before you build any code in LV , you will need VISA indeed,

pretty straightforward I guess.....

 

0 Kudos
Message 11 of 82
(6,756 Views)
Thanks.
i'm already working on that exactly as you describe
i have many things to do except this application so i'm doing a little steps every day.
i already write a vi to READ sms message, and the other things (send sms,etc.. ) should be very simple...
 
but, if we already talk about that, please tell me how you solve this problem:
when i write to the serial port(visa) some AT command and than read the com for the answer(i.e "OK") i do it like this -
check the number of bytes (assume X bytes)  and than try too read X byte, with visa read, than
check the number of bytes (assume Y bytes) and than try too read Y byte, with visa read, than again and again with while loop,
i put a "wait 500 milisecond" inside the loop,otherwise i get garbage, the loop stops when there is no Bytes to read.
 
and my question : is there a more nice and simple way to READ all the Bytes in the serial port in "one read" command ?
 
thanks for your help
Mor
0 Kudos
Message 12 of 82
(6,738 Views)

Mor,

So are you trying to wait until all of the information reaches the port before reading?  What you may try to implement would be to put the Number of Bytes Property Node in a while loop along with a slight delay.  The exit condition for this while loop could be when the number of bytes stop changing from one iteration to the next.  Once this happens you can then read all the bytes at port with a VISA read. 

Hope this helps!

Andy F.

-----------------------------------------------------------------
National Instruments
Message 13 of 82
(6,714 Views)

Dear Andy ,

I will try to do it in your way. its sound promissing.
I only need to put the Visa-Read outside the loop that i already have, its simple.

Thanks for you help.

Mor.

0 Kudos
Message 14 of 82
(6,704 Views)
Hi,

I am building an application to send SMS using LabView and a Wavecom Fastrack Modem M1306B (a GSM modem using RS-232). My problem is similar to the problem faced by Mor. This is my first time using LabView and I need help as there are quite a few things that I am unsure of. From what I gathered from the discussion here, I figure out that I need to start with VISA. Can someone tell me how to start by using VISA? I have never used it before. Or does anyone here have example codes for my kind of problem? Mind sharing it here?

Thank You for your time. Smiley Happy

Cheers,
Teck

0 Kudos
Message 15 of 82
(6,620 Views)
There are a ton of resources available for VISA. You can open examples through the example finder in LabVIEW and look in the Hardware folder. Then open the serial folder. The easiest resouce to learn with is the Basic Serial Write/Read.vi. This VI allows you to send out a command to your device via your serial port and then read back the response you get back.

I'm not sure how familiar you are with LabVIEW, but communication with VISA is very similar to File I/O. In File I/O you have the following steps.

Open the file  -->  Read from/Write to the file  -- > Close the file.

In VISA, you would

Open your VISA Resource -->  Read to/Write from that VISA resource (in your case this is your serial port) --> Close the connection to that VISA Resource.

I hope this helps, and the serial examples in LabVIEW are an excellent start.

Regards,
Matt S.

LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.
Message 16 of 82
(6,592 Views)
Thank you for your guidances.
I will start by learning from the examples.

Regards,
Teck
0 Kudos
Message 17 of 82
(6,581 Views)

Hiii,

    I also have the same modem can you please send me the AT commands for this? i am requesting to you for this, please....

Thanks,

Nishant

0 Kudos
Message 18 of 82
(6,299 Views)
Hi Nishant,

Yah, sure! I can send it to you. But I don't have your email. How do u want me to send it to you? 😃

Cheers
Teck
0 Kudos
Message 19 of 82
(6,292 Views)
Hiii, Teck

                Thanks for the prompt reply, here i am giving you my email address:nishantd@masibus.com, Another thing i want to ask you and lll is that i have the LabVIEW vi, which is ready to send the message, now i have the GSM modem GM29 same as lll have and i am trying to send the message from it, but i couldnt and as of course LabVIEW is not giving any errors, I have connected Modem and my PC through RS-232 straight 9-pin cable, modem blinks the green light which means, it is communicating with the GPRS, but i want to know that is it require to install driver for GM29 in my pc? another thing is i will post you that vi, and can you tell me  that  is it perfectly true? or which commands you are using for sending the SMS through this modem? i am to eager to send the message, but i couldnt, can you please help me?

         I am trying to find the vi, SendMessage and i ll post you as early as possible and then you check either it is perfect or anything wants to change? if want to change it accrdingly.

           I also want any document which can provide me the procedure, that how is this system working and what are the commands required to send the message?

Thanks,
Nishant

Message Edited by Nishant on 04-27-2006 11:09 AM

0 Kudos
Message 20 of 82
(6,288 Views)