DTC Protocol Discussion Forum
- DTC Protocol Discussion Forum |
- Search Board |
- Control Panel |
- View My Posts / Threads |
- Direct Messages
Date/Time: Fri, 29 Nov 2024 16:42:06 +0000
Post From: Request for Comments: TotalNumMessages, MessageNumber
[2015-09-14 07:32:42] |
vbmithr - Posts: 204 |
I think - first/last message is more efficient for performance. Only one uint8_t is necessary, for example 0 = neither first or last, 1 = first, 2 last. BTW, you should not use 2 uint8_t to store this information, that takes exactly 2 bits (three different position) to be stored. - It seems to me that msg number / total number of messages is more fault tolerant, because you always know where you are in the message stream, and if you loose messages, you can always re-ask the specific number. When using first/last message, suppose you never get the last message because of a network issue, you're a bit stuck right ? |