From 5b8c4e906a1f320e1b54f4a269ebdbdcf971f379 Mon Sep 17 00:00:00 2001 From: Michal 'vorner' Vaner Date: Tue, 16 Jan 2024 11:10:56 +0100 Subject: [PATCH] Connect attention states For buddy printers. Incomplete set, others will come. BFW-4933. --- 12_MINI/error-codes.yaml | 71 +++++++++++++++++++++++++++++++++++++++ 13_MK4/error-codes.yaml | 71 +++++++++++++++++++++++++++++++++++++++ 16_iX/error-codes.yaml | 71 +++++++++++++++++++++++++++++++++++++++ 17_XL/error-codes.yaml | 71 +++++++++++++++++++++++++++++++++++++++ 23_MK3.5/error-codes.yaml | 71 +++++++++++++++++++++++++++++++++++++++ generate_buddy_headers.py | 1 + include/error_type.h | 3 +- 7 files changed, 358 insertions(+), 1 deletion(-) diff --git a/12_MINI/error-codes.yaml b/12_MINI/error-codes.yaml index 837a599..13bfd9e 100644 --- a/12_MINI/error-codes.yaml +++ b/12_MINI/error-codes.yaml @@ -11,6 +11,7 @@ # SYSTEM xx5xx # System - BSOD, ... # BOOTLOADER xx6xx # # WARNINGS xx7xx # Category-less warnings +# CONNECT xx8xx # Remote Dialogs for Connect (unlike xx4xx which includes things like "Can't register to Connect") Errors: @@ -291,3 +292,73 @@ Errors: id: "UNSUPPORTED_BBF_VERSION" approved: true # 12701 reserved +- code: "12801" + title: "" + text: "" + id: "PRINT_PREVIEW_UNFINISHED_SELFTEST" + type: "CONNECT" +- code: "12802" + title: "" + text: "" + id: "PRINT_PREVIEW_NEW_FW" + type: "CONNECT" +- code: "12803" + title: "" + text: "" + id: "PRINT_PREVIEW_WRONG_PRINTER" + type: "CONNECT" +- code: "12804" + title: "" + text: "" + id: "PRINT_PREVIEW_NO_FILAMENT" + type: "CONNECT" +- code: "12805" + title: "" + text: "" + id: "PRINT_PREVIEW_WRONG_FILAMENT" + type: "CONNECT" +- code: "12806" + title: "" + text: "" + id: "PRINT_PREVIEW_MMU_FILAMENT_INSERTED" + type: "CONNECT" +- code: "12807" + title: "" + text: "" + id: "PRINT_PREVIEW_FILE_ERROR" + type: "CONNECT" +- code: "12808" + title: "" + text: "" + id: "POWER_PANIC_COLD_BED" + type: "CONNECT" +- code: "12809" + title: "" + text: "" + id: "CRASH_RECOVERY_AXIS_NOK" + type: "CONNECT" +- code: "12810" + title: "" + text: "" + id: "CRASH_RECOVERY_REPEATED_CRASH" + type: "CONNECT" +- code: "12811" + title: "" + text: "" + id: "CRASH_RECOVERY_HOME_FAIL" + type: "CONNECT" +- code: "12812" + title: "" + text: "" + id: "CRASH_RECOVERY_TOOL_PICKUP" + type: "CONNECT" +- code: "12813" + title: "" + text: "" + id: "PRINT_PREVIEW_TOOLS_MAPPING" + type: "CONNECT" +- code: "12814" + title: "" + text: "" + id: "MMU_LOAD_UNLOAD_ERROR" + type: "CONNECT" diff --git a/13_MK4/error-codes.yaml b/13_MK4/error-codes.yaml index 6258677..bd2e470 100644 --- a/13_MK4/error-codes.yaml +++ b/13_MK4/error-codes.yaml @@ -11,6 +11,7 @@ # SYSTEM xx5xx # System - BSOD, ... # BOOTLOADER xx6xx # # WARNINGS xx7xx # Category-less warnings +# CONNECT xx8xx # Remote Dialogs for Connect (unlike xx4xx which includes things like "Can't register to Connect") Errors: # MECHANICAL xx1xx @@ -417,3 +418,73 @@ Errors: text: "Insert the bundled USB drive, restart the printer and click the knob once during the boot. This will install the MK3.5 firmware." id: "DIFFERENT_FW_REQUIRED" approved: true +- code: "13801" + title: "" + text: "" + id: "PRINT_PREVIEW_UNFINISHED_SELFTEST" + type: "CONNECT" +- code: "13802" + title: "" + text: "" + id: "PRINT_PREVIEW_NEW_FW" + type: "CONNECT" +- code: "13803" + title: "" + text: "" + id: "PRINT_PREVIEW_WRONG_PRINTER" + type: "CONNECT" +- code: "13804" + title: "" + text: "" + id: "PRINT_PREVIEW_NO_FILAMENT" + type: "CONNECT" +- code: "13805" + title: "" + text: "" + id: "PRINT_PREVIEW_WRONG_FILAMENT" + type: "CONNECT" +- code: "13806" + title: "" + text: "" + id: "PRINT_PREVIEW_MMU_FILAMENT_INSERTED" + type: "CONNECT" +- code: "13807" + title: "" + text: "" + id: "PRINT_PREVIEW_FILE_ERROR" + type: "CONNECT" +- code: "13808" + title: "" + text: "" + id: "POWER_PANIC_COLD_BED" + type: "CONNECT" +- code: "13809" + title: "" + text: "" + id: "CRASH_RECOVERY_AXIS_NOK" + type: "CONNECT" +- code: "13810" + title: "" + text: "" + id: "CRASH_RECOVERY_REPEATED_CRASH" + type: "CONNECT" +- code: "13811" + title: "" + text: "" + id: "CRASH_RECOVERY_HOME_FAIL" + type: "CONNECT" +- code: "13812" + title: "" + text: "" + id: "CRASH_RECOVERY_TOOL_PICKUP" + type: "CONNECT" +- code: "13813" + title: "" + text: "" + id: "PRINT_PREVIEW_TOOLS_MAPPING" + type: "CONNECT" +- code: "13814" + title: "" + text: "" + id: "MMU_LOAD_UNLOAD_ERROR" + type: "CONNECT" diff --git a/16_iX/error-codes.yaml b/16_iX/error-codes.yaml index c5b931d..82f3ce4 100644 --- a/16_iX/error-codes.yaml +++ b/16_iX/error-codes.yaml @@ -11,6 +11,7 @@ # SYSTEM xx5xx # System - BSOD, ... # BOOTLOADER xx6xx # # WARNINGS xx7xx # Category-less warnings +# CONNECT xx8xx # Remote Dialogs for Connect (unlike xx4xx which includes things like "Can't register to Connect") Errors: @@ -460,3 +461,73 @@ Errors: id: "UNSUPPORTED_BBF_VERSION" approved: true # 16701 reserved +- code: "16801" + title: "" + text: "" + id: "PRINT_PREVIEW_UNFINISHED_SELFTEST" + type: "CONNECT" +- code: "16802" + title: "" + text: "" + id: "PRINT_PREVIEW_NEW_FW" + type: "CONNECT" +- code: "16803" + title: "" + text: "" + id: "PRINT_PREVIEW_WRONG_PRINTER" + type: "CONNECT" +- code: "16804" + title: "" + text: "" + id: "PRINT_PREVIEW_NO_FILAMENT" + type: "CONNECT" +- code: "16805" + title: "" + text: "" + id: "PRINT_PREVIEW_WRONG_FILAMENT" + type: "CONNECT" +- code: "16806" + title: "" + text: "" + id: "PRINT_PREVIEW_MMU_FILAMENT_INSERTED" + type: "CONNECT" +- code: "16807" + title: "" + text: "" + id: "PRINT_PREVIEW_FILE_ERROR" + type: "CONNECT" +- code: "16808" + title: "" + text: "" + id: "POWER_PANIC_COLD_BED" + type: "CONNECT" +- code: "16809" + title: "" + text: "" + id: "CRASH_RECOVERY_AXIS_NOK" + type: "CONNECT" +- code: "16810" + title: "" + text: "" + id: "CRASH_RECOVERY_REPEATED_CRASH" + type: "CONNECT" +- code: "16811" + title: "" + text: "" + id: "CRASH_RECOVERY_HOME_FAIL" + type: "CONNECT" +- code: "16812" + title: "" + text: "" + id: "CRASH_RECOVERY_TOOL_PICKUP" + type: "CONNECT" +- code: "16813" + title: "" + text: "" + id: "PRINT_PREVIEW_TOOLS_MAPPING" + type: "CONNECT" +- code: "16814" + title: "" + text: "" + id: "MMU_LOAD_UNLOAD_ERROR" + type: "CONNECT" diff --git a/17_XL/error-codes.yaml b/17_XL/error-codes.yaml index 097efe9..2147a20 100644 --- a/17_XL/error-codes.yaml +++ b/17_XL/error-codes.yaml @@ -11,6 +11,7 @@ # SYSTEM xx5xx # System - BSOD, ... # BOOTLOADER xx6xx # # WARNINGS xx7xx # Category-less warnings +# CONNECT xx8xx # Remote Dialogs for Connect (unlike xx4xx which includes things like "Can't register to Connect") Errors: @@ -471,3 +472,73 @@ Errors: id: "UNSUPPORTED_BBF_VERSION" approved: true # 17701 reserved +- code: "17801" + title: "" + text: "" + id: "PRINT_PREVIEW_UNFINISHED_SELFTEST" + type: "CONNECT" +- code: "17802" + title: "" + text: "" + id: "PRINT_PREVIEW_NEW_FW" + type: "CONNECT" +- code: "17803" + title: "" + text: "" + id: "PRINT_PREVIEW_WRONG_PRINTER" + type: "CONNECT" +- code: "17804" + title: "" + text: "" + id: "PRINT_PREVIEW_NO_FILAMENT" + type: "CONNECT" +- code: "17805" + title: "" + text: "" + id: "PRINT_PREVIEW_WRONG_FILAMENT" + type: "CONNECT" +- code: "17806" + title: "" + text: "" + id: "PRINT_PREVIEW_MMU_FILAMENT_INSERTED" + type: "CONNECT" +- code: "17807" + title: "" + text: "" + id: "PRINT_PREVIEW_FILE_ERROR" + type: "CONNECT" +- code: "17808" + title: "" + text: "" + id: "POWER_PANIC_COLD_BED" + type: "CONNECT" +- code: "17809" + title: "" + text: "" + id: "CRASH_RECOVERY_AXIS_NOK" + type: "CONNECT" +- code: "17810" + title: "" + text: "" + id: "CRASH_RECOVERY_REPEATED_CRASH" + type: "CONNECT" +- code: "17811" + title: "" + text: "" + id: "CRASH_RECOVERY_HOME_FAIL" + type: "CONNECT" +- code: "17812" + title: "" + text: "" + id: "CRASH_RECOVERY_TOOL_PICKUP" + type: "CONNECT" +- code: "17813" + title: "" + text: "" + id: "PRINT_PREVIEW_TOOLS_MAPPING" + type: "CONNECT" +- code: "17814" + title: "" + text: "" + id: "MMU_LOAD_UNLOAD_ERROR" + type: "CONNECT" diff --git a/23_MK3.5/error-codes.yaml b/23_MK3.5/error-codes.yaml index 9d463c1..9f7e048 100644 --- a/23_MK3.5/error-codes.yaml +++ b/23_MK3.5/error-codes.yaml @@ -11,6 +11,7 @@ # SYSTEM xx5xx # System - BSOD, ... # BOOTLOADER xx6xx # # WARNINGS xx7xx # Category-less warnings +# CONNECT xx8xx # Remote Dialogs for Connect (unlike xx4xx which includes things like "Can't register to Connect") Errors: # XX103 reserved @@ -325,3 +326,73 @@ Errors: text: "Insert the bundled USB drive, restart the printer and click the knob once during the boot. This will install the MK4/MK3.9 firmware." id: "DIFFERENT_FW_REQUIRED" approved: true +- code: "23801" + title: "" + text: "" + id: "PRINT_PREVIEW_UNFINISHED_SELFTEST" + type: "CONNECT" +- code: "23802" + title: "" + text: "" + id: "PRINT_PREVIEW_NEW_FW" + type: "CONNECT" +- code: "23803" + title: "" + text: "" + id: "PRINT_PREVIEW_WRONG_PRINTER" + type: "CONNECT" +- code: "23804" + title: "" + text: "" + id: "PRINT_PREVIEW_NO_FILAMENT" + type: "CONNECT" +- code: "23805" + title: "" + text: "" + id: "PRINT_PREVIEW_WRONG_FILAMENT" + type: "CONNECT" +- code: "23806" + title: "" + text: "" + id: "PRINT_PREVIEW_MMU_FILAMENT_INSERTED" + type: "CONNECT" +- code: "23807" + title: "" + text: "" + id: "PRINT_PREVIEW_FILE_ERROR" + type: "CONNECT" +- code: "23808" + title: "" + text: "" + id: "POWER_PANIC_COLD_BED" + type: "CONNECT" +- code: "23809" + title: "" + text: "" + id: "CRASH_RECOVERY_AXIS_NOK" + type: "CONNECT" +- code: "23810" + title: "" + text: "" + id: "CRASH_RECOVERY_REPEATED_CRASH" + type: "CONNECT" +- code: "23811" + title: "" + text: "" + id: "CRASH_RECOVERY_HOME_FAIL" + type: "CONNECT" +- code: "23812" + title: "" + text: "" + id: "CRASH_RECOVERY_TOOL_PICKUP" + type: "CONNECT" +- code: "23813" + title: "" + text: "" + id: "PRINT_PREVIEW_TOOLS_MAPPING" + type: "CONNECT" +- code: "23814" + title: "" + text: "" + id: "MMU_LOAD_UNLOAD_ERROR" + type: "CONNECT" diff --git a/generate_buddy_headers.py b/generate_buddy_headers.py index 8fae4a2..236fc3d 100644 --- a/generate_buddy_headers.py +++ b/generate_buddy_headers.py @@ -15,6 +15,7 @@ 5: "ERR_SYSTEM", 6: "BOOTLOADER", 7: "WARNING", + 8: "CONNECT", 9: "ERR_OTHER" } diff --git a/include/error_type.h b/include/error_type.h index bdb0173..e527897 100644 --- a/include/error_type.h +++ b/include/error_type.h @@ -5,5 +5,6 @@ enum class ErrType : uint8_t { ERROR = 0, WARNING, - USER_ACTION + USER_ACTION, + CONNECT };