Error 2-way sms when originating phone receives response

Error 2-way sms when originating phone receives response SearchSearch
Author Message
Tyler Ryan
Posted on Thursday, February 13, 2003 - 06:05 pm:   

Hi,

I am trying out your 2-way SMS example of echo-ing back the original SMS text to the originating phone. When the originating phone receives the reply back from the gateway it displays "The syntax of the command is incorrect" as though that was the text of the received SMS.

The originating phone is a Nokia 7210 on the Cingular Wireless network. The gateway is connected to a Sony-Ericsson T68i with serial cable, and on the AT&T Wireless network. I'm only sending a simple text message.

In case this is of any help, I've included the SMSDEBUG.LOG results:


12:40:15:118 [2] ThreadProcessModem: Modem initialization complete: GPRS Device #2
12:40:32:696 [2] ThreadProcessModem:
+CMGL: 3,0,,40
07919170389103F4040B919152453875F100033020312173320A18E8329BFD06B5F32077B85D06A5E7207A9E5D968366

OK

12:40:32:696 [2] ThreadProcessModem: Decoding received message index 3 from message storage ME
12:40:32:696 [2] ThreadProcessModem: SMSC address len = 7
12:40:32:696 [2] ThreadProcessModem: SMSC Address = +19078319304
12:40:32:696 [2] ThreadProcessModem: SMS Message Type = SMS-DELIVER
12:40:32:696 [2] ThreadProcessModem: Sender address len = 11
12:40:32:696 [2] ThreadProcessModem: Sender Address = +19255483571
12:40:32:696 [2] ThreadProcessModem: PID = 00
12:40:32:696 [2] ThreadProcessModem: DCS = 03
12:40:32:696 [2] ThreadProcessModem: Anticipated user data length = 24
12:40:32:696 [2] ThreadProcessModem: Message = hello my name is tyler 3
12:40:32:696 [2] ThreadProcessModem: AT+CMGD=3

12:40:32:930 [3] ThreadProcessInboundSMS: Processing 3E4BD890.in...
12:40:33:008 [2] ThreadProcessModem:
OK

12:40:33:383 [3] smsData Before: hello my name is tyler 3
12:40:33:383 [3] smsData After: hello my name is tyler 3
12:40:33:383 [3] ThreadProcessInboundSMS: Executing c:\winnt\system32/cmd.exe /c echo ECHO hello my name is tyler 3
12:40:33:524 [2] ThreadProcessModem: Processing 3E4BD892.req...
12:40:33:524 [2] ThreadProcessModem: OUT: AT+CMGS=49

12:40:33:821 [2] ThreadProcessModem: IN:
>
12:40:33:821 [2] ThreadProcessModem: OUT: 0001000B919152453875F100002954741934CFBBE9613CE86D06D1D165D0F8DD6E87DD64507A0E4ABBC76FB9BC3CA6BB1A0A
12:40:39:305 [2] ThreadProcessModem: +CMGS: 177

OK

Thanks for your help,
Tyler Ryan (Atlanta, Georgia U.S.)
Tyler Ryan
Posted on Thursday, February 13, 2003 - 07:30 pm:   

I found the problem. I discovered the SMSOUTYYYYMMDD.LOG and saw that the same message was sent from the gateway. Then I discovered that I had a typo in the "Command to execute".
Bryce Norwood - NowSMS Support (Bryce)
Posted on Thursday, February 13, 2003 - 07:30 pm:   

Tyler,

Change

c:\winnt\system32/cmd.exe

to

c:\winnt\system32\cmd.exe

(Backslash instead of slash in the filename spec. Otherwise, I get the same error.)

-bn