Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1369
  • Last Modified:

Problem with reading SMS from GSM Modem

I have an enfora GSM 1218 Modem. I am writing an application that reads SMS off the modem. The application also detects phone calls to the modem and logs the calling number. SMS messages come from mobile phones and the internet (SMSC).

Currently I am using a combination of +CMGL and +CMGR to read the SMS messages. I am using +CLCC to detect ringing and to retrieve the calling number.

This requires that I continously poll the GSM modem.

I would like to use the +CMTI notifications to simplify the reading of SMS. I have tried +CNMI=2, 1 but I am not receiving any notifications.

When I log onto the phone with Hyperterminal +CTMI notifications are shown with this CNMI setting.

My program goes into a loop that reads the GSM phone com port, but receives nothing.

What am I doing wrong?
  • 2
1 Solution
In which language are you developing?

rivabornAuthor Commented:

Using Visual Studio .net 2003
rivabornAuthor Commented:

The problem was in my serial port code and it arose from an incomplete understanding of serial port programming.

In summary I was not trapping serial port events.

I will paste a sample of working code as soon as I have everything working satisfactorilly - hopefully tomorrow.
PAQed with points refunded (250)

Community Support Moderator

Featured Post

Who's Defending Your Organization from Threats?

Protecting against advanced threats requires an IT dream team – a well-oiled machine of people and solutions working together to defend your organization. Download our resource kit today to learn more about the tools you need to build you IT Dream Team!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now