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

x
  • 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?
0
rivaborn
Asked:
rivaborn
  • 2
1 Solution
 
imarshadCommented:
In which language are you developing?

Imran
0
 
rivabornAuthor Commented:
C++

Using Visual Studio .net 2003
0
 
rivabornAuthor Commented:
Solved!

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.
0
 
moduloCommented:
PAQed with points refunded (250)

modulo
Community Support Moderator
0

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