??? 08/30/11 13:37 Read: times |
#183538 - Protocol should preferably support dry-counting for EOP pos Responding to: ???'s previous message |
Erik Malund said:
second, if you want an EOP byte and do not set bit 9 there is no guarantee that a data byte could not be interpreted as EOP. I would normally expect the protocol to be designed so that you the receivers state machine have reached the "get EOP character" when the EOP character is ready to send. So if a EOP character is received somewhere else, then the receiver knows something is wrong and must wait for a timeout (if master) or a new 9-bit address byte (if slave). And if no EOP arrives, then the receiver knows it has to wait for a timeout (if master) or a new 9-bit start byte (if slave). So an EOP is most helpful if having multiple potential transmitters on a cable, and sending messages where some of the listeners do not understand the format of the data so can't compute the expected end of a message. In that case, they have to fight for the right to send first when an EOP have been received or there have been a timeout condition. Above (unknown format of packet structure) isn't really recommended. So the next alternative for an EOP is as a validity check. Normal 8-bit channels normally manages this quite well with just a CRC-16. After all, it really isn't interesting to know why/where something went wrong. It's enough to know that the last received data has to be seen as garbage requiring a retransmit (unless it is continuously updated real-time data, in which case newer data can be sent instead). The 9th bit can be a helpful tool besides giving the target address, if desining multi-master solutions, with a need for some form of negotiation. Something a bit similar to token-ring. |
Topic | Author | Date |
Multiprocessor Communication 8052 | 01/01/70 00:00 | |
where is bottleneck? | 01/01/70 00:00 | |
That's the usual approach | 01/01/70 00:00 | |
one comment | 01/01/70 00:00 | |
9th Bit - How ? | 01/01/70 00:00 | |
how to use bit 9 for data bytes? | 01/01/70 00:00 | |
one form of 9th bit use | 01/01/70 00:00 | |
One byte | 01/01/70 00:00 | |
One Byte !!! | 01/01/70 00:00 | |
re: 1 byte - MDB | 01/01/70 00:00 | |
Strong work | 01/01/70 00:00 | |
Just as there is a timeout | 01/01/70 00:00 | |
my reason | 01/01/70 00:00 | |
Protocol should preferably support dry-counting for EOP pos | 01/01/70 00:00 | |
Methods in brief | 01/01/70 00:00 | |
At least 1 packet less (sic) | 01/01/70 00:00 | |
Neither! | 01/01/70 00:00 |