How to Serial comm. wait for a string?


Results 1 to 9 of 9

Threaded View

  1. #8
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default WAITing to read from serail com GPS receiver example

    Hi,

    This is the way time can be read "on the fly" from a serial GPS receiver module like this one
    Name:  imageedit_2_6240927308.jpg
Views: 478
Size:  5.8 KB
    Code:
    GPGGA_Time:
       SERIN2 GPSfrom,GPSbps,[WAIT("$GPGGA,"),STR GPS_D\6]
       LCDOUT $FE,2,GPS_D(0),GPS_D(1),":",GPS_D(2),GPS_D(3),":",GPS_D(4),GPS_D(5)
    GOTO MAIN:
    The PIC is waiting for the string $GPGGA, from the GPS module to arrive, then it fills an array with the 6 next incoming characters and displays them.
    Last edited by flotulopex; - 28th December 2015 at 11:10.
    Roger

Similar Threads

  1. wait for a string
    By sahin5002 in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 2nd April 2009, 23:27
  2. Serial Comm startup
    By ruijc in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 9th January 2008, 15:20
  3. serial comm problem
    By win_832001 in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 29th June 2006, 13:57
  4. Whats going on? serial comm
    By BobEdge in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 2nd June 2005, 11:57
  5. Serial comm Problems
    By Fossil in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th January 2004, 02:29

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