??? 01/30/06 09:21 Read: times |
#108681 - Sending a large array out a serial port |
Hi all
I am sending an data out a serial port, but the message is quite large (60Bytes) and I don't really want to allocate that much space for it in the form of an array or similar before sending it. I would like to simply keep feeding the serial port with "chunks" of data in a fashion that keeps it fed until I have sent the entire message. I was thinking of using the ring buffer technique with about 10bytes storage, when the value of the buffer was down to about 5bytes I would fill it up again. Is this the best way to do it? I am implementing a modbus read command, and generate the data on the fly, rather than storing it in the so called 3xxxx or 4xxxx registers. Thanks for the thoughts Regards Marshall Brown |
Topic | Author | Date |
Sending a large array out a serial port | 01/01/70 00:00 | |
Solved as per above | 01/01/70 00:00 | |
state it more clearly | 01/01/70 00:00 | |
More Clearly Defined Question | 01/01/70 00:00 | |
State Machine | 01/01/70 00:00 | |
State Machine | 01/01/70 00:00 | |
data consistency | 01/01/70 00:00 | |
ISR Calculating the CRC | 01/01/70 00:00 | |
A possibly irelevant thought... | 01/01/70 00:00 | |
Protocol Intercharacter Timeout | 01/01/70 00:00 | |
a simplification | 01/01/70 00:00 | |
Buffer size![]() | 01/01/70 00:00 |