ChameleonUltra icon indicating copy to clipboard operation
ChameleonUltra copied to clipboard

API request fail, param error

Open Markus-HL opened this issue 2 years ago • 1 comments

FW Version: dev-3-gf9be867 CLI connect to ChameleonUltra command: HW SLOT LIST error message after Slot 3. see picture:

grafik

Markus-HL avatar Oct 14 '23 19:10 Markus-HL

Hmm as such I cannot reproduce the problem as it is probably very dependent on your user data. Could you apply the following patch on the client, without changing the firmware or data, then try again and dump the logs ? If it contains sensitive data you can send it to me by email rather than posting it here. Thank you.

diff --git a/software/script/chameleon_com.py b/software/script/chameleon_com.py
index 726b61e..16d21c0 100644
--- a/software/script/chameleon_com.py
+++ b/software/script/chameleon_com.py
@@ -186,7 +186,7 @@ class ChameleonCom:
                         if data_buffer[data_position] == self.lrc_calc(data_buffer[:data_position]):
                             # ok, lrc for data is correct.
                             # and we are receive completed
-                            # print(f"Buffer data = {data_buffer.hex()}")
+                            print(f"Buffer data = {data_buffer.hex()}")
                             if data_cmd in self.wait_response_map:
                                 # call processor
                                 if 'callback' in self.wait_response_map[data_cmd]:
@@ -222,6 +222,7 @@ class ChameleonCom:
                 task = self.send_data_queue.get(block=True, timeout=THREAD_BLOCKING_TIMEOUT)
             except queue.Empty:
                 continue
+            print(f"Buffer cmd  = {task['frame'].hex()}")
             task_cmd = task['cmd']
             task_timeout = task['timeout']
             task_close = task['close']

doegox avatar Oct 14 '23 19:10 doegox