@@ -490,6 +490,40 @@ extern "C"
490490 */
491491#define VSCP_TYPE_PROTOCOL_BOOT_LOADER_CHECK 54
492492
493+ /**
494+ * Not mandatory. Only needed if a VSCP boot-loader algorithm is used.
495+ * Part of the VSCP boot-loader functionality. This event provide a way to leave the bootloader in a
496+ * secure fashion if there is problems loading firmware to a device. It is only available if the
497+ * device has a bootloader that supports this functionality. Typically this is a device that has
498+ * several firmware slots and can switch between them, and by that switch back to the last known
499+ * working firmware.
500+ * The event can be sent in all states of the bootloading procedure.
501+ * CLASS1.PROTOCOL, Type=56 (Bootloader abort ACK), should be sent as a positive response to a
502+ * bootloader exit or rollback.
503+ * CLASS1.PROTOCOL, Type=57 (Bootloader abort NACK), should be sent as a negative response to a
504+ * bootloader exit or rollback.
505+ */
506+ #define VSCP_TYPE_PROTOCOL_BOOT_LOADER_ABORT 55
507+
508+ /**
509+ * Not mandatory. Only needed if a VSCP boot-loader algorithm is used.
510+ * Part of the VSCP boot-loader functionality. This event is a positive response to a bootloader abort
511+ * or rollback CLASS1.PROTOCOL, Type=55 (Bootloader abort).
512+ * Event is sent before execution of the new firmware starts. It is used to tell the controlling
513+ * device that the device is ready to leave the bootloader mode and start the new firmware.
514+ */
515+ #define VSCP_TYPE_PROTOCOL_BOOT_LOADER_ABORT_ACK 56
516+
517+ /**
518+ * Not mandatory. Only needed if a VSCP boot-loader algorithm is used.
519+ * Part of the VSCP boot-loader functionality. This event is a negative response to a bootloader abort
520+ * or rollback CLASS1.PROTOCOL, Type=55 (Bootloader abort).
521+ * On a single slot firmware device where a firmware update has failed and there is no working
522+ * firmware to switch back to this event should be sent to tell the controlling device that we can't
523+ * leave the bootloader mode until a new full firmware has been loaded.
524+ */
525+ #define VSCP_TYPE_PROTOCOL_BOOT_LOADER_ABORT_NACK 57
526+
493527/*******************************************************************************
494528 MACROS
495529*******************************************************************************/
0 commit comments