Command is not executed, why ?

Command is not executed, why ? SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through March 09, 2004 » Command is not executed, why ? « Previous || Next »
Author Message
M.F. Adam
Unregistered guest
Posted on Tuesday, January 13, 2004 - 08:34 am:   

I use a Siemens C45 mobile phone as modem phone connected to my PC. I add this command in 2-Way:

c:\winnt\system32\cmd.exe /c echo Echo @@FULLSMS@@ > c:\hellobintanga.txt

SMS Command prefix: *a

Then, I try to send SMS to this mobile phone using this message: *a hello world

The message is delivered to the C45 (I can see new incoming SMS there).

My questions are:
1. Why the CMD command above isn't executed ?
2. Why I can't see SMS-IN folder ?

FYI, I set Debug=Yes in smsgw.ini file, and this is the result of smsdebug.log file:

15:25:01:082 [0] main: Now SMS/MMS Gateway Web server started on port number 8800
15:25:03:165 [0] main: preferred sender = +628128787835,COM2:
15:25:03:275 [2] ThreadProcessModem: Before ModemAllocate - COM2:
15:25:03:275 [2] ThreadProcessModem: After ModemAllocate - COM2: - OK
15:25:03:275 [2] ThreadProcessModem: Re-initializing modem: COM2: ...
15:25:37:645 [2] OpenDevice: Could not negotation modem speed
15:25:37:655 [2] ThreadProcessModem: Before ModemRelease - COM2:
15:25:37:655 [2] ThreadProcessModem: After ModemRelease - COM2:
15:25:57:684 [2] ThreadProcessModem: Before ModemAllocate - COM2:
15:25:57:684 [2] ThreadProcessModem: After ModemAllocate - COM2: - OK
15:25:57:684 [2] ThreadProcessModem: Re-initializing modem: COM2: ...
15:26:15:980 [2] TestModemSpeed: Initialised modem at 19200 bps
15:26:16:641 [2] ThreadProcessModem: AT+CPMS?
15:26:16:821 [2] ThreadProcessModem:
+CPMS: "SM",0,20,"SM",0,20,"SM",0,20


15:26:16:821 [2] ThreadProcessModem: Modem initialization complete: COM2:

Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1590
Registered: 10-2002
Posted on Tuesday, January 13, 2004 - 01:54 pm:   


First, "*" is used as a wildcard character. I'm not positive, but I would expect that if you defined a command prefix of "*a", that this would cause all messages to be routed to this command. (NowSMS would see the "*", and would ignore all text after that.)

However, this is an unrelated observation, and does not explain why you are not seeing the received SMS.

Is the message being received while the modem is connected to NowSMS? (The reason I ask this is because if you read the message on the phone, it then becomes inaccessible to NowSMS. So make sure that if the phone tells you that it has a new message, you do not read it on the phone if you want NowSMS to be able to process it.)

I'd be curious. Send the phone a message ... don't read it on the phone.

Go into Hyperterminal and connect to COM2 at 19200 bps.

Issue the following commands:

(Should return OK)

(Should return OK)

(Should list unread messages)

Does your new message appear above? If it does not, does it appear if you issue the command AT+CMGL=1 instead?

Login Login / Register Logout Logout Search Last 30 Days Topics Topics