send sms


Closed Thread
Results 1 to 3 of 3

Thread: send sms

  1. #1
    Join Date
    Jan 2007
    Posts
    2

    Default send sms

    hi
    im a member of a group that is doing a project to send sms using 16f877 mcu. friends who have done similer projects can help us to succeed the project.give me ur ideas and support.

    thank you.

  2. #2
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185

    Default

    anushka,

    There is a search box on this page.

    Also, there are titles, and topics on the main page.

    You start from there and see what you can collect.

    Then you may post your questions to the posts you find; you will get our answers for your questions for sure.

    But do a search first.

  3. #3
    Join Date
    Mar 2006
    Location
    Gothenburgh, Sweden
    Posts
    18

    Default

    Hi.
    Here is a piece of code I wrote for a Basic Stamp 2.
    I hope it helps you to get started.

    Regards
    Stefan.

    Code:
     =========================================================================
    '
    '   File...... GsmN12i.BS2
    '   Purpose... Send SMS using a Nokia GSM-module
    '   Author.... Stefan Johansson
    '   E-mail.... xxxxxx
    '   Started... 2006-11-23
    '   Updated... 2006-11-23
    '
    '   {$STAMP BS2}
    '   {$PBASIC 2.5}
    '
    ' =========================================================================
    
    
    ' -----[ Program Description ]---------------------------------------------
    
    '
    ' Program send a SMS using a NOKIA N12i GSM-module.
    '
    '
    '   Ascii-codes:
    ' å = 134
    ' Å = 143
    ' ä = 132
    ' Ä = 142
    ' ö = 148
    ' Ö = 153
    ' Ctrl+Z = 26     (Used to send message.)
    ' ---------------------------
    
    
    ' -----[ I/O Definitions ]-------------------------------------------------
    TX         PIN     7      'N12i Pin 27
    RX         PIN     9      'N12i Pin 29
    
    ' -----[ Constants ]-------------------------------------------------------
    T9600      CON   84
    
    ' -----[Mainprogram]------------------------------------------------------
    PAUSE 1000
    
    SEROUT TX,T9600,["AT",CR]
    SERIN RX,T9600,[WAIT ("OK")]
    DEBUG "Test communication ---OK", CR
    PAUSE 1000
    
    SEROUT TX,T9600,["AT+CMGF=1",CR]
    SERIN RX,T9600,[WAIT ("OK")]
    DEBUG "AT+CMGF=1 Set messagetype---OK", CR
    PAUSE 1000
    
    'SEROUT TX,T9600,[CR]
    PAUSE 1000
    SEROUT TX,T9600,["AT+CSCA=",34,43,"4670xxxxxxx",34,CR]
    SERIN RX,T9600,[WAIT ("OK")]
    DEBUG "AT+CSCA=","Set message central number: +4670xxxxxx ---OK", CR
    PAUSE 1000
    
    'SEROUT TX,T9600,["AT+CMGS=",34,"070xxxxxxx",34,CR]
    SEROUT TX,T9600,["AT+CMGS=",34,"070xxxxxxx",34,CR]
    DEBUG "AT+CMGS=","Telephone number: 070xxxxxxx ---OK", CR
    PAUSE 1000
    
    SEROUT TX,T9600,["This is a test message from a NOKIA N12i GSM-module" ,26]
    DEBUG "Message Sent!!!", CR
    PAUSE 5000
    
    END

Similar Threads

  1. Active low input?
    By CosMecc in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 8th August 2010, 21:31
  2. Please send me a SMS program
    By hjcool in forum GSM
    Replies: 7
    Last Post: - 17th June 2009, 11:33
  3. Replies: 0
    Last Post: - 1st September 2008, 08:03
  4. sms send sht11 pic16f876 nokia 6210
    By elektoro2009 in forum GSM
    Replies: 11
    Last Post: - 9th June 2008, 09:57
  5. send incomming msg (SMS) to VB
    By PoTeToJB in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 24th April 2006, 12:16

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts