Pic to GSM Phone connection (HSerin problems)


Results 1 to 40 of 289

Threaded View

  1. #11
    Join Date
    Apr 2005
    Posts
    17

    Default

    Quote Originally Posted by Airrr
    i've read this thread a few times, but it wont work at all!
    nokia 6210 connected with RX to PIC 16f84a port b.1
    gnd2gnd

    now thats the programm

    SerOut2 PORTB.1, 396,["AT", 13, 10]
    Pause 1000
    SerOut2 PORTB.1, 396,["AT+CMGF=1", 13, 10]
    Pause 500
    SerOut2 PORTB.1, 396,["AT+CMGS=", 34, "+972544567209", 34, 13, 10]
    Pause 500
    SerOut2 PORTB.1, 396,["Test-message", 13, 10]
    Pause 500

    i tryed 8mhz crystal and 12mhz
    pic sends some pulses out, but mobile just do nothing
    is it a wrong programm or what?

    ps, i need simply to send SMS.
    i think i missed something important..
    I succesfully done it using this code..

    Device 16F84A
    Declare Xtal = 4

    Symbol BAUD = 84 ' 9600,8,N,1(True,driven)
    SYMBOL LED = PORTB.2 ' Assign PortB.2 for Status LED
    Symbol TX = PORTB.1 ' TX to Phone
    Symbol RX = PORTA.0 ' RX from Phone

    Start:

    SerOut2 TX, BAUD,["AT",13]
    DelayMS 500
    SerOut2 TX, BAUD, ["AT+CMGF=1",13] ' Use TXT Mode
    LOW LED ' Turn OFF Status LED
    DelayMS 1000 ' Pause for 1 second
    HIGH LED ' Turn ON Status LED
    SerOut2 TX, BAUD,["AT+CMGS=",34,"Recipient Phone Number",34,13]' Prepare the recipient Phone Number
    DelayMS 1000 ' Pause for 1 Second
    SerOut2 TX, BAUD,["TEST Message!!",13] ' The message to be sent
    DelayMS 1000 ' Pause for 1 second
    SerOut2 TX, BAUD,[26] ' Terminate message with Control+Z (26)
    LOW LED ' Turn OFF Status LED
    DelayMS 1000
    Goto Start ' Repeat
    End

    What i did is some sort of SMS bomber...look for the circuit I posted before to make this code works..
    Notice that all it does is send..TX. I dont process any message I received so RX was not used.
    BR
    Last edited by kasamiko; - 5th September 2005 at 02:35.

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