| ??? 06/01/02 21:49 Read: times |
#23738 - RE: To peter Danegger |
mahmood Elnasser wrote:
------------------------------- "How do you handle errors? , what if u didnt get 0x0D or 0x0A for half an hour coz you were in noisy environment. Your buffer would grow and grow till your program crashes" Naturally also a linear buffer must test and handle overflow conditions like a circular buffer. So it never crahses. If you send something and get no response because false data received, simple send the command again. "Circular buffers are a must for text or binary messages." No, only for binary data. "I think its very easy to make things work in ideal conditions and for a short time but the real challenge is to make your circuit reliable and work under all conditions. Any suggestions how you handle errors ?" Some measuring equipment use a CRC, which was send as two hex digits after the data. Peter |
| Topic | Author | Date |
| To peter Danegger | 01/01/70 00:00 | |
| RE: To peter Danegger | 01/01/70 00:00 | |
| RE: To peter Danegger | 01/01/70 00:00 | |
| RE: Circular buffers | 01/01/70 00:00 | |
| RE: Circular buffers | 01/01/70 00:00 | |
RE: Circular buffers | 01/01/70 00:00 |



