Pic to GSM Phone connection (HSerin problems)


Closed Thread
Results 1 to 40 of 289

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,144

    Default

    Russel:

    Maybe if you interchange the tx and rx lines?


    Ziki:

    Try not to Pause after a Hserout command. Wait for a real answer from the device like the example I gave at http://www.picbasic.co.uk/forum/show...&postcount=198
    Also I think raising clock from 4 to 8 ro 16MHz might help.

    Ioannis

  2. #2
    Ziki's Avatar
    Ziki Guest

    Default

    hi ...still canot work .. i chnage my code to this ..it canot send sms )

    DEFINE OSC 8
    DEFINE HSER_TXSTA 24h
    DEFINE HSER_RCSTA 90h
    DEFINE HSER_BAUD 9600
    DEFINE HSER_SPBRG 129
    DEFINE HSER_CLROERR 1

    sms:

    HSEROUT ["AT" ,13,10]
    hserin 5000,sms,[WAIT("OK")]


    HSEROUT ["AT+CMGF=1" ,13,10]
    hserin 5000,sms,[WAIT("OK")]


    HSEROUT ["AT+CMGS=",34,"my number",34,13,10]
    hserin 5000,sms,[WAIT(">")]


    HSEROUT ["hello",26,13,10]
    pause 5000

    end

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,144

    Default

    I suppose you did change also the crystal from 4 to 8MHz, not only the Define, right?

    Ioannis

  4. #4
    Ziki's Avatar
    Ziki Guest

    Default

    yup...i change my hardware too...

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,144

    Default

    Have you set the mobile to TEXT SMS mode prior to use the code you sent as an example?

    Also have you disabled the echo of the device (by ATE0)?

    Test the same commands with a terminal to compare the results.

    More than that I cannot help. Sorry.

    Ioannis

  6. #6
    Russell's Avatar
    Russell Guest

    Default To friend IOANNIS

    i have implemented the given circuit(only the right portion).
    i used 8Mhz crystal.
    but no result.
    can you please help me.
    Attached Images Attached Images  

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    So i hope you have include the Max232 (icl232) too?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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