SMS with pic12f675 using Serout


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Posts
    1

    Default SMS with pic12f675 using Serout

    Hello,
    I can't send SMS text with pic12f675 using Serout and Nokia 6131

    I'm using external osc 4Mhz

    From nokia 6131 pin Rx R1k serial to gpio.0

    code :


    include "modedefs.bas"

    DEFINE OSC 4

    loop:

    pause 500
    Serout gpio.0,N1200,["AT",13]
    pause 1000

    Serout gpio.0,N1200,["AT+CMGF=1",13]
    pause 1000


    Serout gpio.0,N1200,["AT+CMGS=",34,"+1555963754",34,13]
    pause 1000

    Serout gpio.0,N1200,["Hello world"]; ascii 26
    pause 1000


    Serout gpio.0,N1200,[26,13]
    PAUSE 500


    Goto loop
    End

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Are you sure your PIC is even running?
    (sounds/looks real familiar)
    And have a look at Section 6.2 of the PIC12F675 datasheet and the very first thread mentioned on these forum's home page in the FAQs about PortA.
    Are you sure the PIC is running on the external oscillator vs the internal oscillator?

  3. #3
    Join Date
    May 2007
    Location
    Republic Serbia
    Posts
    105


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by camilen View Post
    Hello,
    I can't send SMS text with pic12f675 using Serout and Nokia 6131

    I'm using external osc 4Mhz

    From nokia 6131 pin Rx R1k serial to gpio.0

    code :


    include "modedefs.bas"

    DEFINE OSC 4

    loop:

    pause 500
    Serout gpio.0,N1200,["AT",13]
    pause 1000

    Serout gpio.0,N1200,["AT+CMGF=1",13]
    pause 1000


    Serout gpio.0,N1200,["AT+CMGS=",34,"+1555963754",34,13]
    pause 1000

    Serout gpio.0,N1200,["Hello world"]; ascii 26
    pause 1000


    Serout gpio.0,N1200,[26,13]
    PAUSE 500


    Goto loop
    End
    Nokia phones need DLR3P cable and work at 2.7V logic level.
    regards

Similar Threads

  1. A Serial GLCD 128x64 Simple Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 8th March 2010, 20:58
  2. Serout to serial servo
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 12th August 2009, 16:46
  3. Advice-scrutiny for my serial controller
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th December 2008, 17:11
  4. SERIN with a PIC12F675
    By ewandeur in forum Serial
    Replies: 4
    Last Post: - 30th July 2007, 15:04
  5. Keypad unlock (as in garage door possibly)
    By Fred in forum Code Examples
    Replies: 5
    Last Post: - 2nd April 2006, 04:26

Members who have read this thread : 0

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