by Joe » Tue Feb 24, 2009 9:56 pm
by Joe
Tue Feb 24, 2009 9:56 pm
I've written a downloader tool, but it's getting only mixed results.
According to the AVRBL spec, every line should be acknowledged with '~' if it was received and flashed successfully. Then, when the programming is complete, AVRBL should send '#' indicating that all is good, or '@' indicating that the program did not load successfully.
I'm getting a '~' on every line, but a '@' at the end. I'm not sure what to make of that.
I also observe pretty odd usage of the XON and XOFF character; the RBC appears to send these around every '~' — i.e., "<XOFF>~<XON>" is sent for every line, regardless of how much data is waiting. I've had to crank down my send rate in order to get a number of line acknowledgments that matches the number of lines sent. If the RBC (AVRBL?) were using XON and XOFF correctly, I think that shouldn't be necessary.
But that's a side point — the real point is, why am I getting a '@' at the end, even when every line was sent successfully? I'm out of time for now, but will try some additional experiments tonight or tomorrow.
I've written a downloader tool, but it's getting only mixed results.
According to the AVRBL spec, every line should be acknowledged with '~' if it was received and flashed successfully. Then, when the programming is complete, AVRBL should send '#' indicating that all is good, or '@' indicating that the program did not load successfully.
I'm getting a '~' on every line, but a '@' at the end. I'm not sure what to make of that.
I also observe pretty odd usage of the XON and XOFF character; the RBC appears to send these around every '~' — i.e., "<XOFF>~<XON>" is sent for every line, regardless of how much data is waiting. I've had to crank down my send rate in order to get a number of line acknowledgments that matches the number of lines sent. If the RBC (AVRBL?) were using XON and XOFF correctly, I think that shouldn't be necessary.
But that's a side point — the real point is, why am I getting a '@' at the end, even when every line was sent successfully? I'm out of time for now, but will try some additional experiments tonight or tomorrow.