Add serial command/protocol for throwing an error from the hardware #52

Open
opened 2020-09-02 04:01:58 +00:00 by sixteenmillimeter · 1 comment
sixteenmillimeter commented 2020-09-02 04:01:58 +00:00 (Migrated from github.com)

Need to be able to pass an error from mcopy firmware to the app over serial in a situation where synchronous behavior is not occurring. If a frame takes too long or is abnormally short, the firmware should be able to send a character or formatted string to the app so that the user is alerted to the issue and the sequence pauses/stops/cancels. This will prevent sequences from running through multiple errors and will give users a chance to fix physical problems with their hardware.

Need to be able to pass an error from mcopy firmware to the app over serial in a situation where synchronous behavior is not occurring. If a frame takes too long or is abnormally short, the firmware should be able to send a character or formatted string to the app so that the user is alerted to the issue and the sequence pauses/stops/cancels. This will prevent sequences from running through multiple errors and will give users a chance to fix physical problems with their hardware.
sixteenmillimeter commented 2020-09-29 17:24:19 +00:00 (Migrated from github.com)

Decided on reserving the capital 'E' character as a catch-all error signal from the firmware. If the arduino module catches a stray 'E' it will signal the main process and the renderer process to pause (not stop) a sequence. Need to test this on real firmware, but have outlined this in an upcoming commit.

Decided on reserving the capital 'E' character as a catch-all error signal from the firmware. If the arduino module catches a stray 'E' it will signal the main process and the renderer process to *pause* (not stop) a sequence. Need to test this on real firmware, but have outlined this in an upcoming commit.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: 16mm/mcopy#52
No description provided.