From 31241ebec3a44444f4abb9c1e33face5d1b6c988 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 31 Aug 2022 20:21:59 +0200 Subject: [PATCH] add bootloader version and reset info --- docs/enhanced_proto.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/enhanced_proto.md b/docs/enhanced_proto.md index 19483cdd..3ad225fa 100644 --- a/docs/enhanced_proto.md +++ b/docs/enhanced_proto.md @@ -112,11 +112,13 @@ These are the predefined symbols as used above. The first level below is the `info_id` value and the second level describes the response data byte sequence. The first byte transferred in response is always the number of data bytes to be transferred (excluding the length itself). * 0x00: version - * `length`: =5 (2 before 20220220) + * `length`: =8 (2 before 20220220, 5 before 20220831) * `version`: version number * `features`: feature bits * `checksum_H` `checksum_L`: checksum (since 20220220) * `jumpers`: jumper settings + * `bootloader_version`: bootloader version (since 20220831) + * `bootloader_checksum_H` `bootloader_checksum_L`: bootloader checksum * 0x01: PIC ID * `length`: =9 * 9*`mui`: PIC MUI @@ -133,4 +135,7 @@ The first byte transferred in response is always the number of data bytes to be * `length`: =2 * `voltage_max`: maximum bus voltage in 10th volts * `voltage_min`: minimum bus voltage in 10th volts - + * 0x06: reset info (since 20220831) + * `length`: =2 + * `reset_cause`: reset cause (1=power-on, 2=brown-out, 3=watchdog, 4=clear, 5=reset, 6=stack, 7=memory) + * `restart_count`: restart count (within same power cycle)