LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sony Ericsson GM29 GSM modem - RS232

Hi all,
 
I have "Sony Ericsson GM29 GSM modem" connected to my PC with RS232 cable.
please tell me if someone know the port setting to use with Windows HyperTerminal  ?
if it works in Windows HyperTerminal i can finish my LabView application immidiatelly.
 
any help appriciated.
 
Regards
Mor
0 Kudos
Message 1 of 7
(6,939 Views)

Hi

Just googling I found this link containing the integrators manual:

http://www.cepag.de/index_d.htm?CEP02Prod-GM29.htm

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 7
(6,935 Views)

Dear Thomas,

i already have all the documents.
i'm now able to send and recieve SMS using the Windows HyperTerminal
but i cant do it using LabView.

i need to do :

1) open serial port COM1
2) check if com port Opened
3) write to serial "AT+CMGF=1"
4) read serial : i need to get "OK"
5) write to serial "AT+CMGR=1"   ( gets the first SMS message from the gsm device)
6) read serial : i need to get something like this:
+CMGR: “REC UNREAD”,“+447747008670”,“Matt
L”,“02/11/19,09:57:28+00”,145,36,0,0,“
+447785016005”,145,8
Test sms

but i cant do it in my LabView, any help ?
i always get "ERROR" when i do serial read

im using LabView 7.1

Regards

Mor

 

 

0 Kudos
Message 3 of 7
(6,930 Views)


lll wrote:

......

but i cant do it in my LabView, any help ?
i always get "ERROR" when i do serial read

im using LabView 7.1

Regards

Mor



Don't forget to close your HyperTerminal connection/program before calling the serial port in LabVIEW.
//Ulf
0 Kudos
Message 4 of 7
(6,920 Views)
First of all - as you can imagine, there are thousands of possible errors in LV. So if you just write you get "ERROR" is almost the same as if you write you had problems.
If you want the community to help you, we should have more detailed information.
 
The vi which causes problems or at least a picture (please no bmp) are always helpful. It also helps if you can describe what happens around the problem-causing vi - what you want to do (Ok - you described this).
 
So post the vi and the community will have a look at it. But please post it as LV7.0 (Menu File >> Save with options >> Save for previous version) because not all in here are using LV7.1.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 5 of 7
(6,918 Views)
Do you add a carriage return \r after each command?
It is required and LabVIEW doesn't add it automatically.


LabVIEW, C'est LabVIEW

0 Kudos
Message 6 of 7
(6,914 Views)
Thanks all for your messages.
until now (3 days) i can:
* read first SMS from my GM29 gsm modem
* i figured that i need to read all "Bytes in Port" after the Write Command.
  i do that in While loop, each iteration i  re-query the  "Bytes in Port" and
  read the port until  "Bytes in Port" equals to ZERO...
   its work fine ONLY IF i put "Wait Until Next ms Multiple" (1000ms)  inside the while loop
  if i dont do that i read again the same string from the port, its "too fast" ,  i dont know why its behave like this.
 
now the problem is :
the SMS message have some format like this -
+CMGR: "REC READ","+657577575757",,"05/09/30,10:59:44+12",145,4,57,8,"+6748480032",145,64
05E605D205DD00E805D52005DE0505205DD002005DE0505E805D705D5
0205DD002005DE051002005E205DD002005DE0D4205DD0020055D505DE05D4
 
i gues that its UNICODE ...
so i need to convert this UNICODE to real String .....
again any help is appriciated
 
back to work......
Thanks.
 
Mor
 
 
 
 
 
 
 
 
 
 
 
0 Kudos
Message 7 of 7
(6,908 Views)