Discussion:
Can GSM modem notify my computer when a SMS message arrived?
(too old to reply)
D***@HOTMAIL.COM
2007-10-25 13:32:43 UTC
Permalink
Hi,

I have a GSM modem connected to my computer via serial port. From
computer side, I can attach a handler to the serial port so that
computer can be notified when data is received from the port.

My question is that when the GSM modem received a sms message, how can
I let the modem send something to the serial port so that my computer
knows that a message is there? Do I have to use a microcontroller to
do this?

Cheers,

Jerry
John Henderson
2007-10-25 19:53:57 UTC
Permalink
Post by D***@HOTMAIL.COM
I have a GSM modem connected to my computer via serial port. From
computer side, I can attach a handler to the serial port so that
computer can be notified when data is received from the port.
My question is that when the GSM modem received a sms message, how can
I let the modem send something to the serial port so that my computer
knows that a message is there? Do I have to use a microcontroller to
do this?
You can either have the modem pass the message directly and
immediately to the serial port (rather than store it
internally), or simply have the modem send an unsolicited
notification to the serial port.

There are quite a few options as well as device-specific
implementation uncertainties however, so I can't suggest a set
of exact commands guaranteed to do just what you want.

GSM specification 07.05 contains details of the SMS-related
"AT+C" commands, but your modem documentation should have actual
supported syntax and parameter lists.

You'll need to decide between text-mode and PDU-mode. See
"AT+CMGF".

Use "AT+CNMI" to route either the messages themselves, or simply
SMS notifications, to the serial port as either "+CMT: " or
"+CMTI: " unsolicited result codes respectively. You may need
to use the "AT+CNMA" command in combination with this.

This can be complex stuff for the uninitiated, so don't be shy
about asking further questions if you get stuck.

John
D***@HOTMAIL.COM
2007-10-26 09:08:01 UTC
Permalink
Post by John Henderson
Post by D***@HOTMAIL.COM
I have a GSM modem connected to my computer via serial port. From
computer side, I can attach a handler to the serial port so that
computer can be notified when data is received from the port.
My question is that when the GSM modem received a sms message, how can
I let the modem send something to the serial port so that my computer
knows that a message is there? Do I have to use a microcontroller to
do this?
You can either have the modem pass the message directly and
immediately to the serial port (rather than store it
internally), or simply have the modem send an unsolicited
notification to the serial port.
There are quite a few options as well as device-specific
implementation uncertainties however, so I can't suggest a set
of exact commands guaranteed to do just what you want.
GSM specification 07.05 contains details of the SMS-related
"AT+C" commands, but your modem documentation should have actual
supported syntax and parameter lists.
You'll need to decide between text-mode and PDU-mode. See
"AT+CMGF".
Use "AT+CNMI" to route either the messages themselves, or simply
SMS notifications, to the serial port as either "+CMT: " or
"+CMTI: " unsolicited result codes respectively. You may need
to use the "AT+CNMA" command in combination with this.
This can be complex stuff for the uninitiated, so don't be shy
about asking further questions if you get stuck.
John
Thanks, I will give a try.

Loading...