Hello. I am trying to read sms from Nokia E50 using AT commands. There is a problem related to
set message storage.
Please take a look on my vbs code :
Set objComport = CreateObject( "ActiveXperts.Comport" ) ' Create a new Comport instance
objComport.Device = "COM9" ' Use a COM port directly
objComport.BaudRate = 9600 ' Set baudrate (default value: 9600)
objComport.HardwareFlowCon
trol = True ' Set Hardware Flow Control (default: True)
objComport.SoftwareFlowCon
trol = True ' Set Software Flow Control (default: True)
objComport.Open ' Open the port
objComport.LogFile = "C:\ActiveComport.log"
Wscript.Echo "Open, result: " & objComport.LastError
If( objComport.LastError <> 0 ) Then
WScript.Quit
End If
WriteStr objComport, "at+cmgf=1"
ReadStr objComport
//that returns OK.
WriteStr objComport, "at+cpms="&Chr( 34 )&"SM"&Chr( 34 )
ReadStr objComport
That at+cpms returns ERROR. Does it mean that Nokia E50 does not support that AT command? When i execute at+cpms=? response is "+CPMS:(),(),()". Is there any other way to intialize the messages source to read? The at+cpms i required before executing at+cmgl="REC UNREAD" which reads new sms.
Do you have any idea where is the problem?
Do you know any other way to read new sms by at command?
regards,
wawerus
Start Free Trial