Sending SMS


+ Reply to Thread
Results 1 to 2 of 2

Thread: Sending SMS

  1. #1
    Join Date
    Jun 2011
    Location
    Philippines
    Posts
    223

    Default Sending SMS

    Hello there..I'm trying to send an SMS..phone number to be use is in array

    Code:
    TELNO var byte[11]' array for phone number
    '* * * * * * LOAD ARRAY WITH STRING VALUE
    TELNO[0]= "0"
    TELNO[1]= "9"
    TELNO[2]= "9"
    TELNO[3]= "9"
    TELNO[4]= "4"
    TELNO[5]= "4"
    TELNO[6]= "x"
    TELNO[7]= "x"
    TELNO[8]= "x"
    TELNO[9]= "x"
    TELNO[10]="x"
    My code for sending..
    Code:
        ;SEROUT2 PORTD.6, 84,["AT+CMGS=",34,"099944xxxxx",34,13,10]
        SEROUT2 PORTD.6, 84,["AT+CMGS=",34,str TELNO\11,34,13,10]
        PAUSE 2000
        SEROUT2 PORTD.6, 84,["This is my text message!"]  
        SEROUT2 PORTD.6, 84,[26]  ' >
        LCDOUT $fe,ln4,"               >>   "
        PAUSE 2000
    I'm not able to make the above code work but when using SEROUT2 PORTD.6, 84,["AT+CMGS=",34,"099944xxxxx",34,13,10] --this works... what am I doing wrong?

    Thanks in advance,
    Tacbanon

  2. #2
    Join Date
    Jun 2011
    Location
    Philippines
    Posts
    223

    Default Re: Sending SMS(SOLVED)

    ..I don't remember what I did but it's working fine now.
    Code:
    SEROUT2 PORTD.6, 84,["AT+CMGS=",34,str TELNO\11,34,13,10]

Similar Threads

  1. Replies: 1
    Last Post: - 4th June 2010, 03:34
  2. PIC sending UDP packets
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th May 2010, 18:54
  3. Sending data from 1 pic to other pic
    By PoTeToJB in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th September 2007, 00:51
  4. Sending decimals
    By KPDes in forum USB
    Replies: 0
    Last Post: - 20th July 2007, 10:39
  5. sending sms with 16f877A
    By anushka in forum General
    Replies: 1
    Last Post: - 18th January 2007, 11:00

Posting Permissions

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