-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Labels
Milestone
Description
[This request created in response to Issue #27]
In much the same way that the added "Propeller not found" error message clarifies download failures, we need a Communication lost message.
- Add fatal error message, "Communication lost" and give it the next available error code.
- Add logic to emit that message when no response is received in the total time expected (beginning after the Propeller's version response was successfully received and verified, and ending at the point of finishing communication
- Example moments to emit this message:
- Verifying RAM, but fatally timed-out because no response received
- Verifying EEPROM, but fatally timed-out because no response received
- Transmitting Propeller Application image packets, but fatally timed-out because no response received to latest attempt/re-sends
- Example moments to emit this message:
This should apply to both wired and wireless downloads and should appear before the "ERROR: Download failed: -1" message so that instead of something like this:
001-Opening file '../myfile.binary'
002-Downloading file to port ...
009-... bytes sent
003-Verifying RAM
102-ERROR: Download failed: -1
we see this (assuming no response was received for the RAM checksum and assuming the error code is 126):
001-Opening file '../myfile.binary'
002-Downloading file to port ...
009-... bytes sent
003-Verifying RAM
126-ERROR: Communication lost
102-ERROR: Download failed: -1