05-24-2011 02:40 AM
Hello,
Got busy in some other activities and now working on the task.
I was succeeded in sending sms using the AT Commands help given in the pdf document through Hyperterminal.
Now trying the same thing with labview. I could not get the results
i.e. i was sending AT from the PC but getting AT again inplace of OK when reading the port.
I couldn't understand where the actual problem lies.
Anyone may please guide.
Thanks
05-24-2011 02:42 AM
attaching VI here
05-24-2011 02:48 AM
Hi Intelligent,
which termination char do you use in hyperterminal? You should use the same in LabVIEW.
Mike
05-24-2011 03:10 AM
Actually i wrote AT to the bus and tried to receive OK from it.
But it could not work in LabVIEW.
But as a response i get AT from it.
I dont understand it's reason.
05-24-2011 03:15 AM
Hi,
try it with \r\n (code display) as termination char.
Why don't you read the entire data from the serial interface? I think, if you would read the entire response, then you could see the needed termination character.
Mike
05-24-2011 03:38 AM
Tried to read 4 characters from the port but only two characters were received which were same as previous i.e. AT.
As you advised to use the termination character, i found unable to enter \n or \r. As the fields of entry were limited to hex, octal, Decimal, binary and SI notation.
05-24-2011 04:03 AM
Hi,
you can switch the termination char off and add "\r\n" (still in code display) to your AT command (in the string).
Mike
05-24-2011 05:26 AM
Changes into a broken wire.
Also attaching the file for your kind refrence.
05-24-2011 06:01 AM
Hi,
see the attachment please.
Mike
05-24-2011 06:13 AM
"AT/r/n" are now seen in the read.
Hence what is send is received.
File also attached