# How does Notecard handle chunked/ delayed packets of data (UART)

**URL:** <https://discuss.blues.com/t/how-does-notecard-handle-chunked-delayed-packets-of-data-uart/349>\
**Category:** Notecarrier B\
**Created:** [August 3, 2021, 10:19pm UTC](https://discuss.blues.com/t/how-does-notecard-handle-chunked-delayed-packets-of-data-uart/349 "2021-08-03T22:19:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abar2437](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@abar2437](https://discuss.blues.com/u/abar2437)\
**Post date:** [August 3, 2021, 10:19pm UTC](https://discuss.blues.com/t/how-does-notecard-handle-chunked-delayed-packets-of-data-uart/349/1 "2021-08-03T22:19:14Z")

</div>

How does the notecard handle chunked or delayed bytes of data through UART? What if some number of bytes of a JSON command is delayed (up to 1.5msec-2msec, potentially over an entire frame) from the rest? Essentially, what is the worst case frame to frame delay we can send data to blues with?

---

<div class="post-metadata">

**Author:** ![gwolff](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@gwolff](https://discuss.blues.com/u/gwolff)\
**Post date:** [August 5, 2021, 7:38pm UTC](https://discuss.blues.com/t/how-does-notecard-handle-chunked-delayed-packets-of-data-uart/349/2 "2021-08-05T19:38:25Z")

</div>

Hi @abar2437

Checking on this. I misinterpretted the question at first, thinking it was between chunks (frames) not within a frame.

I know it looks for a line terminator, but still investigating the timeout when not receiving bytes.  
Cheers,  
-Greg

---

<div class="post-metadata">

**Author:** ![gwolff](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@gwolff](https://discuss.blues.com/u/gwolff)\
**Post date:** [August 5, 2021, 8:12pm UTC](https://discuss.blues.com/t/how-does-notecard-handle-chunked-delayed-packets-of-data-uart/349/3 "2021-08-05T20:12:13Z")

</div>

Just looking to confirm the timeout value waiting for data before sharing.

---

<div class="post-metadata">

**Author:** ![gwolff](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@gwolff](https://discuss.blues.com/u/gwolff)\
**Post date:** [August 9, 2021, 7:03pm UTC](https://discuss.blues.com/t/how-does-notecard-handle-chunked-delayed-packets-of-data-uart/349/4 "2021-08-09T19:03:42Z")

</div>

Notecard can accept a substantial delay between when bytes of a request arrive.  
That is , if a partial request arrives, Notecard will wait for more bytes to arrive for about a minute before throwing away the initial bytes from the partial request. At this point Notecard assumes the MCU was unable to send the remainder of the message.
