read bytes number in Hserin


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Posts
    33

    Default

    sorry for writing : hserin ,HD,[str buffer\50]


    suppose it is : hserin 100,main,[str buffer\50]

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621

    Default

    Hi Rony,
    I don't think there's an internal counter or anything like that. If the string always ends with a certain character you can use that to end the HSERIN. If not maby you can initial the array with all zeros or something else, then when the HSERIN ends due to timeout you itterate thru the array untill you start you "seeing" zeros etc.

    /Henrik.

  3. #3
    Join Date
    Feb 2007
    Posts
    33

    Default

    thanks Henric,

    there is nothing to end the trame in question, and i am currently using the method you mentioned to know the number of the received bytes, and i am filling the buffer with $FF which is not in use till now, but i will use it soon.. that is why i start searching for an internal counter.

    Rony

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