Announcement

Collapse
No announcement yet.

Uart hook std_in

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Uart hook std_in

    Hello together,

    it is documented that the data-string passed within the STD_IN hook may contain one or more characters.

    We have a protocol consisting of several bytes, now I'm wondering when STD_IN hook will occur. If UART is quiet for 3 byte-times? If receive-buffer is full? Every time you run your ms-tick?

    Could you please provide this information?

    best regards,

    Simon

  • #2
    Take a look at the SNAP Reference Manual - there are three NV param values that affect this, #13 (total time since first character received), #14 (number of characters received), and #15 (time since last character received). None of these are exact: if your script is busy doing something else at the moment that one of these thresholds is reached, additional characters may be received before SNAP has a chance to deliver them to your HOOK_STDIN function.

    Comment


    • #3
      Thanks, perfect

      Comment

      Working...
      X