Receiving Packet Array In Usart


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2007
    Location
    Santiago, Chile
    Posts
    77

    Unhappy Receiving Packet Array In Usart

    Is it correct syntax and or possible to receive 8 bytes of data in one command like:

    hserin 1,timeout,[DATA1,DATA2,DATA3,DATA4,DATA5,DATA6,DATA7,DATA8]

    I seem to only get the 1st digit and sometimes the second.

    Regards

    Chris

  2. #2
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by crhomberg View Post
    Is it correct syntax and or possible to receive 8 bytes of data in one command like:

    hserin 1,timeout,[DATA1,DATA2,DATA3,DATA4,DATA5,DATA6,DATA7,DATA8]

    I seem to only get the 1st digit and sometimes the second.

    Regards

    Chris
    string var byte[8]
    cr var byte : cr = 13

    HSERIN 1, timeout, [ STR string \cr ]

    receives 8 characters ending in a carraige return, or skip the CR at the end.
    Page 76-77 of the little green book.

    P.S. No need to create multiple threads on the same subject. Most of us will follow the subject matter.

Similar Threads

  1. Simple Array Demo
    By Archangel in forum Code Examples
    Replies: 5
    Last Post: - 15th February 2010, 04:46
  2. RS232 receive an array (packet)
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th February 2008, 05:02
  3. Receiving Packet Array In Usart
    By crhomberg in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 24th April 2007, 20:41
  4. USART Stops Receiving Characters
    By breesy in forum Serial
    Replies: 7
    Last Post: - 26th November 2006, 03:50
  5. USART Problem Receiving Bytes
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th September 2005, 17:50

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