Pic to GSM Phone connection (HSerin problems)


Results 1 to 40 of 289

Threaded View

  1. #11
    Join Date
    Apr 2005
    Posts
    17

    Thumbs up

    I just finished my circuit below a PIC to cellphone interface to send text messages..I can succesfully SEND a pre-programmed text message using this code:



    Device 16F84A
    Declare Xtal = 4

    Start:
    LOW LED
    DelayMS 1000
    SerOut2 PORTB.1, 84,["AT+CMGS=",34,"MyNumber",34,13]
    DelayMS 1000
    SerOut2 PORTB.1, 84,["TEST",13]
    DelayMS 1000
    SerOut2 PORTB.1, 84,[26]
    DelayMS 3000
    GOTO Start


    I can send an endless "TEST" text messages to "MyNumber" but I can't make it work to read received text messages..

    I need a code sample that will READ the received text message and will text back to the sender the word "GOOD"

    I don't have the idea how to strip the sender phone number and the sent text message "GOOD" from the example below using SERIN command..

    +CMGR: "REC READ","+xx1234567890",,"05/05/26,17:19:23+00"
    GOOD
    OK

    I'd look at this code:

    HSerin 5000, Loop, [Wait("UNREAD"), skip 3, STR Caller\12, skip 4, STR GSMTime\17, skip 4, STR GSMbuffer\12]

    But I can't "SAY" it using SERIN command using PIC16F84..

    Thanks for any info..
    Last edited by kasamiko; - 26th May 2005 at 11:25.

Similar Threads

  1. Serial VB 2005 pic 16f877a problems
    By Snap in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 8th July 2013, 00:52
  2. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  3. problem with the GSM controller
    By Dariolo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th May 2009, 20:33
  4. Automatic VB6 to pic serial connection
    By arniepj in forum Code Examples
    Replies: 13
    Last Post: - 10th January 2008, 07:57
  5. Pic to GSM Phone connection
    By samertop in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 14th July 2005, 13:40

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