Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Source Code to Read In from GSM Modem

  • 09-02-2007 08:39PM
    #1
    Closed Accounts Posts: 909 ✭✭✭


    Hi,

    Ive bought a GSM modem to receive SMS text messages. I need to read the SMS message (the PDU header?) . I have some C and C++ programming experience (enough to do this I think with some pointers and/or source code).

    Is there anyone out there who has done this sort of thing before?

    Any sound advice would be a great help because there does not seem to be much on this topic on the Internet (not in simple terms anyway).

    Thanks.

    G


Comments

  • Registered Users, Registered Users 2 Posts: 1,391 ✭✭✭fatherdougalmag


    What make/model is the modem? Did you get any documentation? This should give you info about the AT commands (assuming that's the interface it uses).


  • Registered Users, Registered Users 2 Posts: 674 ✭✭✭Johnny Jukebox


    Look at

    http://www.kannel.org

    Got everything you need and written in C


  • Closed Accounts Posts: 909 ✭✭✭Gareth37


    What make/model is the modem? Did you get any documentation? This should give you info about the AT commands (assuming that's the interface it uses).

    Thanks.

    It is a Wavecom make. I dont have it here but when I look at it next tonight I will post up the model.

    G


  • Closed Accounts Posts: 909 ✭✭✭Gareth37


    Look at

    http://www.kannel.org

    Got everything you need and written in C

    Thanks.

    I will look at this. Seems to be quite heavy. But I will try to work out what is going on from the documentation.

    G


  • Closed Accounts Posts: 909 ✭✭✭Gareth37


    Hi,

    The model is Model: WM02 - G900

    Thanks G


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,391 ✭✭✭fatherdougalmag


    I don't think I could do any better than what the Kannel source code has to offer. Your modem is even in the supported hardware list. There's a batch of sms*.c files under the smsgateway directory. There appears to be a few different protocols in use with regard to the header.


  • Closed Accounts Posts: 909 ✭✭✭Gareth37


    I don't think I could do any better than what the Kannel source code has to offer. Your modem is even in the supported hardware list. There's a batch of sms*.c files under the smsgateway directory. There appears to be a few different protocols in use with regard to the header.

    Thanks father I will have a go at this.

    G


  • Registered Users, Registered Users 2 Posts: 2,931 ✭✭✭Ginger


    I did something like this a while back in VB.. read the SMS inbox over COM/IR/Bluetooth

    And sent as well. If i can find it i will post it up for you


  • Registered Users, Registered Users 2 Posts: 151 ✭✭sailorfoley


    Hey,

    i did something like this before in C#. Usually these modems work with the AT command interface.you send these commands to the port that the modem is connected to (usually a COM port) and interpret the responses (just like any typical protocol).

    Search google for AT commands related to what you want to do.

    Here is a page of sample commands - http://www.activexperts.com/activcomport/at/nokia/


  • Closed Accounts Posts: 909 ✭✭✭Gareth37


    Thanks. Got it working fine now.


  • Advertisement
Advertisement