Problem displaying data from GPS module & using 16f877a


Results 1 to 11 of 11

Threaded View

  1. #6
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Code:
    serin2 portc.4,baud1,[WAIT("$GPRMC"),STR sms\35]
    Which is the value of baud1?

    When you use wait string, remember that they are case sensitive "$GPRMC" is different from "$gprmc"

    I already suggested you, in another thread, to use a timeout sequence. Your serin2 instruction will wait for the identifier and then it will wait for a string of 35 characters. If your GPRS will send only 34, serin2 will remain there waiting forever.

    One turn around is the use of the timeout:


    Code:
    GPRSLoop:
    sms[0]=0
    serin2 portc.4,baud1,500,GPRSTest,[WAIT("$GPRMC"),STR sms\35]
    GPRSTest:
    If sms[0]<>0 then goto label ??     ' here you check byte[0] for data presence 
    goto GPRSLoop
    Al.
    Last edited by aratti; - 23rd October 2009 at 01:28.
    All progress began with an idea

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Read/Write Problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 01:51
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

Members who have read this thread : 2

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