DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2007
    Posts
    3

    Exclamation Implement SMS from PIC

    Hi Everyone,

    Does anyone know how to read SMS from GSM Modem and copy it out as a string?

    Using C languange.

    AT Command: at+cmgr=1

    Thanks alot.

  2. #2
    Join Date
    Nov 2003
    Posts
    4,118
    BAsically, you will need to use your modem manfacturer's SDK. SMS messages occupy up to 160 characters but they may need additional coversions (the text in an SMS message isn't in pure ASCII but uses a more compact encoding system) so I would start with a buffer of 200 character, initialize it to binary zeros and then use the manfacturer's APIs for reading the message into that buffer. It shouldn't be complex stuff, just 2-3 function calls but again, these functions are manfacturer dependent. If youre modem automatically store incoming messages in a file (what's known as store and forward), it will be easier: simply open the file and read the data.
    Danny Kalev

  3. #3
    Join Date
    Jan 2007
    Posts
    3
    Hi Danny,

    Thanks for your reply.

    I am currently using a GSM modem module connected toa PIC18F2550 IC chip and using C languages on a breadboard.

    I am able to sent out sms from the PIC to GSM modem, but for can't copy message content out to the PIC.

    What are you method of doing? Changing in binary?

    at+cmgr=1 // read sms.

    http://www.roundsolutions.com/gsm-modem/index.htm

Similar Threads

  1. HPSMS Server - Free Nokia CDMA SMS Software
    By hpnasik in forum Mobile
    Replies: 3
    Last Post: 02-12-2007, 03:23 AM
  2. Replies: 1
    Last Post: 01-09-2007, 05:13 AM
  3. Setting up an SMS Service
    By jatanr in forum Mobile
    Replies: 3
    Last Post: 08-03-2006, 02:15 PM
  4. Add SMS messaging functionality to your applications.
    By Energy Programming in forum vb.announcements
    Replies: 0
    Last Post: 02-10-2003, 10:48 AM
  5. ANN: Spider SMS (ActiveX OCX)
    By Energy Programming in forum vb.announcements
    Replies: 0
    Last Post: 12-16-2002, 08:27 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links