C program GSM modem

This is a discussion on C program GSM modem within the C Programming forums, part of the General Programming Boards category; Hello experts, How can i interact with GSM modem to send the message to the particular mobile using C program? ...

  1. #1
    Registered User
    Join Date
    Sep 2012
    Posts
    2

    C program GSM modem

    Hello experts,

    How can i interact with GSM modem to send the message to the particular mobile using C program? I am working on UBUNTU system GCC package.

    Any help is appreciated,

    abhimohpra

  2. #2
    TEIAM - problem solved
    Join Date
    Apr 2012
    Location
    Melbourne Australia
    Posts
    1,384
    Hey there
    Have a look at this device:
    https://www.sparkfun.com/products/9427

    and then this app note
    http://www.sparkfun.com/datasheets/C...App%20Note.pdf
    Fact - Beethoven wrote his first symphony in C

  3. #3
    Registered User
    Join Date
    Sep 2012
    Posts
    2
    I have SIMCOM-300 Module with RS232 interface DB port. Is there any generic instruction set available to send the message (AT commands) to any modem through C program?

  4. #4
    TEIAM - problem solved
    Join Date
    Apr 2012
    Location
    Melbourne Australia
    Posts
    1,384
    The Hays command set (AT commands) are supposed to be standardised, but I've found that they (frustratingly) slightly vary from modem to modem. You need to include the modem name in a Google search for the AT commands to get the specific instructions used

    Also, it might be a good idea to research what other people have done with your modem on Google as a starting point

    The search string that I typed in was SIMCOM-300 SMS which dug up quite a few good examples
    Fact - Beethoven wrote his first symphony in C

  5. #5
    Registered User ledow's Avatar
    Join Date
    Dec 2011
    Posts
    435
    If your modem provides a /dev/modem device in Ubuntu, you can just talk directly to it by opening the device file and sending AT commands and reading back the results.

    Gammu is a project that automates this for you if you don't want to program it yourself, want to use an established library, or just want to see how they do it. I use it to run the SMS gateway for a small school - we do everything from act on remote authenticated commands (e.g. reboot server from a text message), to converting SMS to emails, to sending out notifications to parents, and even use the GSM modem as a 3G connection when the Internet goes down.

    So long as your modem provides a /dev/ device, it should be no more difficult than talking to an ordinary old-fashioned modem (hell, it even uses the same programs for the most part - minicom, pppd, etc.) which is no more difficult than opening and writing to / reading from a file.

    - Compiler warnings are like "Bridge Out Ahead" warnings. DON'T just ignore them.
    - A compiler error is something SO stupid that the compiler genuinely can't carry on with its job. A compiler warning is the compiler saying "Well, that's bloody stupid but if you WANT to ignore me..." and carrying on.
    - The best debugging tool in the world is a bunch of printf()'s for everything important around the bits you think might be wrong.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. modem to modem connection
    By Ruski in forum Tech Board
    Replies: 17
    Last Post: 06-28-2005, 05:31 AM
  2. Modem log XP
    By geek@02 in forum Tech Board
    Replies: 0
    Last Post: 03-12-2004, 03:16 AM
  3. using a modem
    By onurak in forum C++ Programming
    Replies: 2
    Last Post: 07-20-2002, 02:06 AM
  4. Modem use
    By Luckybob in forum Windows Programming
    Replies: 1
    Last Post: 03-26-2002, 02:49 AM
  5. modem
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 10-27-2001, 09:32 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21