Firmware communication protocol : Streaming vs Packets February 04, 2010 11:20AM |
Registered: 14 years ago Posts: 278 |
Re: Firmware communication protocol : Streaming vs Packets February 04, 2010 04:44PM |
Registered: 16 years ago Posts: 900 |
Re: Firmware communication protocol : Streaming vs Packets February 04, 2010 04:55PM |
Registered: 15 years ago Posts: 132 |
Re: Firmware communication protocol : Streaming vs Packets February 04, 2010 05:21PM |
Registered: 14 years ago Posts: 278 |
Re: Firmware communication protocol : Streaming vs Packets February 04, 2010 05:41PM |
Registered: 14 years ago Posts: 278 |
Re: Firmware communication protocol : Streaming vs Packets February 04, 2010 06:09PM |
Registered: 16 years ago Posts: 1,094 |
Re: Firmware communication protocol : Streaming vs Packets February 04, 2010 06:58PM |
Registered: 16 years ago Posts: 900 |
Re: Firmware communication protocol : Streaming vs Packets February 04, 2010 07:00PM |
Registered: 14 years ago Posts: 278 |
Re: Firmware communication protocol : Streaming vs Packets February 04, 2010 07:05PM |
Registered: 16 years ago Posts: 900 |
Re: Firmware communication protocol : Streaming vs Packets February 04, 2010 08:09PM |
Registered: 15 years ago Posts: 132 |
Quote
BeagleFury Wrote:
> You mentioned that echo verification would
> probably be an effective solution. What technique
> would be used to send data from firmware to host
> without confusing the echo verification? Some
> form of handshake that lets the firmware respond
> with anything it might have, where the host echos
> it back to firmware to guarantee delivery or
> something like that? Do you have any good
> illustrative examples to make sense of what you
> might propose?
>
Re: Firmware communication protocol : Streaming vs Packets February 04, 2010 08:35PM |
Registered: 16 years ago Posts: 900 |
Re: Firmware communication protocol : Streaming vs Packets February 04, 2010 09:35PM |
Registered: 14 years ago Posts: 278 |
Re: Firmware communication protocol : Streaming vs Packets February 04, 2010 11:38PM |
Registered: 16 years ago Posts: 1,094 |
Re: Firmware communication protocol : Streaming vs Packets February 04, 2010 11:41PM |
Registered: 15 years ago Posts: 132 |
Quote
BeagleFury Wrote:
Anyway, having thought about this a bit more, I don't believe any kind of echo "error detection" will work properly. Figuring out retransmition and recovery becomes significantly more difficult when the host sends 10 commands as 400-500 bytes get buffered in the bowels of USB drivers and OS streams. If the firmware fails to correctly recieve the first command, all the remaining commands become ticking time bombs if the firmware tries to execute them as if nothing was wrong.
Re: Firmware communication protocol : Streaming vs Packets February 05, 2010 01:43AM |
Registered: 14 years ago Posts: 278 |
Re: Firmware communication protocol : Streaming vs Packets February 05, 2010 01:50AM |
Registered: 14 years ago Posts: 94 |
Quote
BeagleFury
My test programs have nothing in them except the comms test. The *only* point of failure is the standard Arduino implementation of the Serial class. There is no heavy maths. No expensive loops. Nothing except a very tight loop checking for serial availability, a buffer save, and an echo back upon reciept. There is the possibility that the transmittion of data from the motherboard to host disables interrupts, and that could be where the data loss happens; which may imply that we effectively do not have bidirectional UART comms, but a crippled bidirectional / mostly unidirectional comms channel.
Re: Firmware communication protocol : Streaming vs Packets February 05, 2010 05:02AM |
Registered: 16 years ago Posts: 900 |
Re: Firmware communication protocol : Streaming vs Packets February 05, 2010 06:08AM |
Registered: 16 years ago Posts: 900 |
Re: Firmware communication protocol : Streaming vs Packets February 05, 2010 06:40AM |
Registered: 16 years ago Posts: 900 |
Re: Firmware communication protocol : Streaming vs Packets February 05, 2010 09:20AM |
Registered: 14 years ago Posts: 278 |
Re: Firmware communication protocol : Streaming vs Packets February 05, 2010 09:22AM |
Registered: 14 years ago Posts: 278 |
Re: Firmware communication protocol : Streaming vs Packets February 05, 2010 11:19AM |
Admin Registered: 17 years ago Posts: 7,879 |
Re: Firmware communication protocol : Streaming vs Packets February 05, 2010 12:43PM |
Registered: 14 years ago Posts: 278 |
Re: Firmware communication protocol : Streaming vs Packets February 05, 2010 03:59PM |
Registered: 16 years ago Posts: 900 |
Re: Firmware communication protocol : Streaming vs Packets February 05, 2010 04:03PM |
Registered: 15 years ago Posts: 132 |
Re: Firmware communication protocol : Streaming vs Packets February 05, 2010 04:43PM |
Registered: 16 years ago Posts: 1,094 |
Re: Firmware communication protocol : Streaming vs Packets February 05, 2010 08:33PM |
Registered: 16 years ago Posts: 900 |
Re: Firmware communication protocol : Streaming vs Packets February 06, 2010 01:07AM |
Registered: 14 years ago Posts: 278 |
Re: Firmware communication protocol : Streaming vs Packets February 06, 2010 06:15AM |
Registered: 16 years ago Posts: 900 |
Re: Firmware communication protocol : Streaming vs Packets February 18, 2010 06:18AM |
Registered: 14 years ago Posts: 45 |