From 42756315fb51aa29c8fee0c47185421ab578b9bc Mon Sep 17 00:00:00 2001
From: Jordan Yates
Date: Thu, 5 Dec 2024 21:57:56 +1000
Subject: [PATCH 1/4] rpc_wrappers: file_write_basic: BT Ctlr CPatch
Support Bluetooth controller CPatch upgrades.
Signed-off-by: Jordan Yates
---
src/infuse_iot/generated/rpc_definitions.py | 38 +++++++++++++------
.../rpc_wrappers/file_write_basic.py | 9 ++++-
2 files changed, 34 insertions(+), 13 deletions(-)
diff --git a/src/infuse_iot/generated/rpc_definitions.py b/src/infuse_iot/generated/rpc_definitions.py
index 0fe609f..01157a7 100644
--- a/src/infuse_iot/generated/rpc_definitions.py
+++ b/src/infuse_iot/generated/rpc_definitions.py
@@ -152,6 +152,7 @@ class rpc_enum_file_action(enum.IntEnum):
APP_IMG = 1
BT_CTLR_IMG = 2
APP_CPATCH = 11
+ BT_CTLR_CPATCH = 12
NRF91_MODEM_DIFF = 20
@@ -205,7 +206,8 @@ class request(ctypes.LittleEndianStructure):
_pack_ = 1
class response(ctypes.LittleEndianStructure):
- _fields_ = []
+ _fields_ = [
+ ]
_pack_ = 1
@@ -217,7 +219,8 @@ class time_get:
COMMAND_ID = 3
class request(ctypes.LittleEndianStructure):
- _fields_ = []
+ _fields_ = [
+ ]
_pack_ = 1
class response(ctypes.LittleEndianStructure):
@@ -243,7 +246,8 @@ class request(ctypes.LittleEndianStructure):
_pack_ = 1
class response(ctypes.LittleEndianStructure):
- _fields_ = []
+ _fields_ = [
+ ]
_pack_ = 1
@@ -342,7 +346,8 @@ class application_info:
COMMAND_ID = 9
class request(ctypes.LittleEndianStructure):
- _fields_ = []
+ _fields_ = [
+ ]
_pack_ = 1
class response(ctypes.LittleEndianStructure):
@@ -367,7 +372,8 @@ class wifi_scan:
COMMAND_ID = 10
class request(ctypes.LittleEndianStructure):
- _fields_ = []
+ _fields_ = [
+ ]
_pack_ = 1
class response(ctypes.LittleEndianStructure):
@@ -386,7 +392,8 @@ class wifi_state:
COMMAND_ID = 11
class request(ctypes.LittleEndianStructure):
- _fields_ = []
+ _fields_ = [
+ ]
_pack_ = 1
class response(ctypes.LittleEndianStructure):
@@ -405,7 +412,8 @@ class last_reboot:
COMMAND_ID = 12
class request(ctypes.LittleEndianStructure):
- _fields_ = []
+ _fields_ = [
+ ]
_pack_ = 1
class response(ctypes.LittleEndianStructure):
@@ -502,7 +510,8 @@ class lte_state:
COMMAND_ID = 21
class request(ctypes.LittleEndianStructure):
- _fields_ = []
+ _fields_ = [
+ ]
_pack_ = 1
class response(ctypes.LittleEndianStructure):
@@ -602,7 +611,8 @@ class request(ctypes.LittleEndianStructure):
_pack_ = 1
class response(ctypes.LittleEndianStructure):
- _fields_ = []
+ _fields_ = [
+ ]
_pack_ = 1
@@ -638,11 +648,13 @@ class data_sender:
COMMAND_ID = 32765
class request(ctypes.LittleEndianStructure):
- _fields_ = []
+ _fields_ = [
+ ]
_pack_ = 1
class response(ctypes.LittleEndianStructure):
- _fields_ = []
+ _fields_ = [
+ ]
_pack_ = 1
@@ -654,7 +666,8 @@ class data_receiver:
COMMAND_ID = 32766
class request(ctypes.LittleEndianStructure):
- _fields_ = []
+ _fields_ = [
+ ]
_pack_ = 1
class response(ctypes.LittleEndianStructure):
@@ -683,3 +696,4 @@ class response(ctypes.LittleEndianStructure):
("array", 0 * ctypes.c_uint8),
]
_pack_ = 1
+
diff --git a/src/infuse_iot/rpc_wrappers/file_write_basic.py b/src/infuse_iot/rpc_wrappers/file_write_basic.py
index 691fce5..0263059 100644
--- a/src/infuse_iot/rpc_wrappers/file_write_basic.py
+++ b/src/infuse_iot/rpc_wrappers/file_write_basic.py
@@ -46,7 +46,7 @@ def add_parser(cls, parser):
dest="action",
action="store_const",
const=rpc_enum_file_action.APP_CPATCH,
- help="Write complete image file and perform DFU",
+ help="Write diff image file and perform DFU",
)
group.add_argument(
"--bt-ctlr-dfu",
@@ -55,6 +55,13 @@ def add_parser(cls, parser):
const=rpc_enum_file_action.BT_CTLR_IMG,
help="Write Bluetooth controller image file and perform DFU",
)
+ group.add_argument(
+ "--bt-ctlr-cpatch",
+ dest="action",
+ action="store_const",
+ const=rpc_enum_file_action.BT_CTLR_CPATCH,
+ help="Write Bluetooth controller diff file and perform DFU",
+ )
group.add_argument(
"--nrf91-modem",
dest="action",
From f6019fd4f6b307fc2ac167bd94eb5f46af0b267c Mon Sep 17 00:00:00 2001
From: Jordan Yates
Date: Fri, 6 Dec 2024 11:05:37 +1000
Subject: [PATCH 2/4] tools: localhost: filter by application ID
Add table filtering by application ID.
Signed-off-by: Jordan Yates
---
src/infuse_iot/tools/localhost/index.html | 86 ++++++++++++++++++-----
1 file changed, 67 insertions(+), 19 deletions(-)
diff --git a/src/infuse_iot/tools/localhost/index.html b/src/infuse_iot/tools/localhost/index.html
index 4174098..c77cfb9 100644
--- a/src/infuse_iot/tools/localhost/index.html
+++ b/src/infuse_iot/tools/localhost/index.html
@@ -12,6 +12,14 @@
.tabulator {
font-family: monospace;
}
+
+ #tdf-show {
+ vertical-align: top;
+ }
+
+ #app-show {
+ vertical-align: top;
+ }
@@ -21,18 +29,20 @@ Infuse-IoT TDF Viewer
Table Control
-
+
+