tdl-xoa-driver 1.4.0__py3-none-any.whl → 1.5.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. {tdl_xoa_driver-1.4.0.dist-info → tdl_xoa_driver-1.5.0.dist-info}/METADATA +8 -8
  2. {tdl_xoa_driver-1.4.0.dist-info → tdl_xoa_driver-1.5.0.dist-info}/RECORD +49 -36
  3. xoa_driver/__init__.py +2 -2
  4. xoa_driver/enums.py +2 -0
  5. xoa_driver/exceptions.py +2 -0
  6. xoa_driver/functions/anlt.py +2 -0
  7. xoa_driver/functions/anlt_ll_debug.py +2 -0
  8. xoa_driver/functions/cli/__init__.py +21 -0
  9. xoa_driver/functions/cli/_cli_manager.py +541 -0
  10. xoa_driver/functions/cli/_config_block.py +334 -0
  11. xoa_driver/functions/cli/_socket_driver.py +111 -0
  12. xoa_driver/functions/cli/port_config.py +116 -0
  13. xoa_driver/functions/cli/testbed_config.py +179 -0
  14. xoa_driver/functions/cmis/__init__.py +8 -0
  15. xoa_driver/functions/cmis/_constants.py +25 -0
  16. xoa_driver/functions/cmis/_replies.py +600 -0
  17. xoa_driver/functions/cmis/_utils.py +49 -0
  18. xoa_driver/functions/cmis/cdb.py +1266 -0
  19. xoa_driver/functions/exceptions.py +2 -0
  20. xoa_driver/functions/headers.py +2 -0
  21. xoa_driver/functions/mgmt.py +42 -19
  22. xoa_driver/functions/tools.py +9 -3
  23. xoa_driver/hlfuncs.py +6 -2
  24. xoa_driver/internals/commands/c_commands.py +6 -10
  25. xoa_driver/internals/commands/enums.py +25 -1
  26. xoa_driver/internals/commands/p_commands.py +38 -2
  27. xoa_driver/internals/commands/pl1_commands.py +130 -73
  28. xoa_driver/internals/commands/pp_commands.py +44 -55
  29. xoa_driver/internals/commands/pr_commands.py +17 -16
  30. xoa_driver/internals/commands/px_commands.py +54 -54
  31. xoa_driver/internals/core/transporter/logger/__state_on_user.py +1 -1
  32. xoa_driver/internals/exceptions/modules.py +4 -3
  33. xoa_driver/internals/hli/modules/modules_l23/family_edun.py +82 -0
  34. xoa_driver/internals/hli/modules/modules_l23/family_g.py +1 -1
  35. xoa_driver/internals/hli/modules/modules_l23/family_l1.py +19 -0
  36. xoa_driver/internals/hli/ports/port_l23/edun_l1.py +181 -0
  37. xoa_driver/internals/hli/ports/port_l23/family_edun.py +82 -0
  38. xoa_driver/internals/hli/ports/port_l23/family_l1.py +14 -8
  39. xoa_driver/internals/state_storage/modules_state.py +20 -0
  40. xoa_driver/internals/state_storage/testers_state.py +10 -0
  41. xoa_driver/lli.py +1 -0
  42. xoa_driver/misc.py +1 -0
  43. xoa_driver/modules.py +22 -0
  44. xoa_driver/ports.py +22 -0
  45. xoa_driver/testers.py +2 -0
  46. xoa_driver/utils.py +2 -0
  47. xoa_driver/functions/cli.py +0 -581
  48. {tdl_xoa_driver-1.4.0.dist-info → tdl_xoa_driver-1.5.0.dist-info}/WHEEL +0 -0
  49. {tdl_xoa_driver-1.4.0.dist-info → tdl_xoa_driver-1.5.0.dist-info}/licenses/LICENSE +0 -0
  50. {tdl_xoa_driver-1.4.0.dist-info → tdl_xoa_driver-1.5.0.dist-info}/top_level.txt +0 -0
@@ -595,7 +595,7 @@ class PP_PMAERRPUL_PARAMS:
595
595
  def set(self, duration: int, period: int, repetition: int, coeff: int, exp: int) -> Token[None]:
596
596
  """Set PMA pulse error injection settings.
597
597
 
598
- :param duration: 0 ms - 5000m s; increments of 1 ms; 0 = constant BER
598
+ :param duration: 0 ms - 5000 ms; increments of 1 ms; 0 = constant BER
599
599
  :type duration: int
600
600
  :param period: 10 ms - 50000 ms; number of ms - must be multiple of 10 ms
601
601
  :type period: int
@@ -1117,7 +1117,19 @@ class PP_EYEINFO:
1117
1117
  class PP_PHYTXEQ:
1118
1118
  """
1119
1119
  Control and monitor the equalizer settings of the on-board PHY in the
1120
- transmission direction (towards the transceiver cage) on Thor and Loki modules.
1120
+ transmission direction (towards the transceiver cage).
1121
+
1122
+ This command returns a variable number of tap values with module-dependent ordering:
1123
+
1124
+ - **Legacy Loki-2P/Thor**: Original fixed format [pre, main, post, pre2, pre3, mode]
1125
+ - **Regular Freya**: Original fixed format [pre, main, post, pre2, pre3, mode]
1126
+ - **Loki-4P and H-Freya/Edun**: Variable number in N*pre, main, M*post layout
1127
+ [pre_n, pre_n-1, ..., pre_1, main, post_1, post_2, ..., post_m]
1128
+
1129
+ Use P_CAPABILITIES to query ``numtxeqtaps`` and ``numtxeqpretaps`` to determine
1130
+ the number of taps and layout:
1131
+ - ``numtxeqpretaps``: Number of precursor taps (N)
1132
+ - ``numtxeqtaps - numtxeqpretaps - 1``: Number of postcursor taps (M)
1121
1133
 
1122
1134
  .. versionchanged:: 1.1
1123
1135
 
@@ -1132,63 +1144,46 @@ class PP_PHYTXEQ:
1132
1144
  _serdes_xindex: int
1133
1145
 
1134
1146
  class GetDataAttr(ResponseBodyStruct):
1135
- pre: int = field(XmpInt())
1136
- """integer, preemphasis, (range: Module dependent), default = 0 (neutral)."""
1137
- main: int = field(XmpInt())
1138
- """integer, amplification, (range: Module dependent), default = 0 (neutral)."""
1139
- post: int = field(XmpInt())
1140
- """integer, postemphasis, (range: Module dependent), default = 0 (neutral)."""
1141
- pre2: int = field(XmpInt())
1142
- """integer, preemphasis, (range: Module dependent), default = 0 (neutral)."""
1143
- pre3_post2: int = field(XmpInt())
1144
- """integer, postemphasis, (range: Module dependent), default = 0 (neutral)."""
1145
- post3: int = field(XmpInt())
1146
- """integer, postemphasis, (range: Module dependent), default = 0 (neutral)."""
1147
- mode: int = field(XmpInt())
1148
- """integer, value must be 4"""
1147
+ tap_values: typing.List[int] = field(XmpSequence(types_chunk=[XmpInt()]))
1148
+ """list of integers, TX EQ tap values. The number and layout depend on the platform:
1149
+
1150
+ - Legacy Loki-2P/Thor and Regular Freya: [pre, main, post, pre2, pre3, mode]
1151
+ - Loki-4P and H-Freya/Edun: [pre_n, ..., pre_1, main, post_1, ..., post_m]
1152
+ where N = numtxeqpretaps and M = numtxeqtaps - numtxeqpretaps - 1
1153
+ """
1149
1154
 
1150
1155
  class SetDataAttr(RequestBodyStruct):
1151
- pre: int = field(XmpInt())
1152
- """integer, preemphasis, (range: Module dependent), default = 0 (neutral)."""
1153
- main: int = field(XmpInt())
1154
- """integer, amplification, (range: Module dependent), default = 0 (neutral)."""
1155
- post: int = field(XmpInt())
1156
- """integer, postemphasis, (range: Module dependent), default = 0 (neutral)."""
1157
- pre2: int = field(XmpInt())
1158
- """integer, preemphasis, (range: Module dependent), default = 0 (neutral)."""
1159
- pre3_post2: int = field(XmpInt())
1160
- """integer, postemphasis, (range: Module dependent), default = 0 (neutral)."""
1161
- post3: int = field(XmpInt())
1162
- """integer, postemphasis, (range: Module dependent), default = 0 (neutral)."""
1163
- mode: int = field(XmpInt())
1164
- """integer, value must be 4"""
1156
+ tap_values: typing.List[int] = field(XmpSequence(types_chunk=[XmpInt()]))
1157
+ """list of integers, TX EQ tap values. The number and layout depend on the platform:
1158
+
1159
+ - Legacy Loki-2P/Thor and Regular Freya: [pre, main, post, pre2, pre3, mode]
1160
+ - Loki-4P and H-Freya/Edun: [pre_n, ..., pre_1, main, post_1, ..., post_m]
1161
+ where N = numtxeqpretaps and M = numtxeqtaps - numtxeqpretaps - 1
1162
+ """
1165
1163
 
1166
1164
  def get(self) -> Token[GetDataAttr]:
1167
- """Get the equalizer settings of the on-board PHY in the
1168
- transmission direction (towards the transceiver cage) on Thor and Loki modules.
1165
+ """Get the TX equalizer settings of the on-board PHY.
1166
+
1167
+ The returned tap values layout depends on the platform. Query P_CAPABILITIES
1168
+ for ``numtxeqtaps`` and ``numtxeqpretaps`` to determine the format.
1169
1169
 
1170
- :return: preemphasis, (range: Module dependent), default = 0 (neutral).
1170
+ :return: list of TX EQ tap values
1171
1171
  :rtype: PP_PHYTXEQ.GetDataAttr
1172
1172
  """
1173
1173
 
1174
1174
  return Token(self._connection, build_get_request(self, module=self._module, port=self._port, indices=[self._serdes_xindex]))
1175
1175
 
1176
- def set(self, pre2: int, pre: int, main: int, post: int, pre3_post2: int, post3: int) -> Token[None]:
1177
- """Set the equalizer settings of the on-board PHY in the
1178
- transmission direction (towards the transceiver cage) on Thor and Loki modules.
1176
+ def set(self, tap_values: typing.List[int]) -> Token[None]:
1177
+ """Set the TX equalizer settings of the on-board PHY.
1178
+
1179
+ The tap values layout depends on the platform. Query P_CAPABILITIES
1180
+ for ``numtxeqtaps`` and ``numtxeqpretaps`` to determine the required format:
1181
+
1182
+ - Legacy Loki-2P/Thor and Regular Freya: [pre, main, post, pre2, pre3, mode]
1183
+ - Loki-4P and H-Freya/Edun: [pre_n, ..., pre_1, main, post_1, ..., post_m]
1179
1184
 
1180
- :param pre2: pre2 emphasis
1181
- :type pre2: int
1182
- :param pre: pre emphasis
1183
- :type pre: int
1184
- :param main: main emphasis
1185
- :type main: int
1186
- :param post: post emphasis
1187
- :type post: int
1188
- :param pre3_post2: post2 or pre3 emphasis
1189
- :type pre3_post2: int
1190
- :param post3: post3 emphasis
1191
- :type post3: int
1185
+ :param tap_values: list of TX EQ tap values in platform-specific order
1186
+ :type tap_values: typing.List[int]
1192
1187
  """
1193
1188
 
1194
1189
  return Token(
@@ -1198,13 +1193,7 @@ class PP_PHYTXEQ:
1198
1193
  module=self._module,
1199
1194
  port=self._port,
1200
1195
  indices=[self._serdes_xindex],
1201
- pre2=pre2,
1202
- pre=pre,
1203
- main=main,
1204
- post=post,
1205
- pre3_post2=pre3_post2,
1206
- post3=post3,
1207
- mode=4))
1196
+ tap_values=tap_values))
1208
1197
 
1209
1198
 
1210
1199
  @register_command
@@ -284,21 +284,21 @@ class PR_TPLDERRORS:
284
284
  class GetDataAttr(ResponseBodyStruct):
285
285
  dummy: int = field(XmpLong())
286
286
  """long integer, not in use."""
287
- non_incre_seq_event_count: int = field(XmpLong())
288
- """long integer, number of non-incrementing-sequence-number events."""
289
- swapped_seq_misorder_event_count: int = field(XmpLong())
290
- """long integer, number of swapped-sequence-number misorder events."""
291
- non_incre_payload_packet_count: int = field(XmpLong())
292
- """long integer, number of packets with non-incrementing payload content."""
287
+ packet_loss_by_seq: int = field(XmpLong())
288
+ """long integer, Number of packet loss calculated by detecting gaps in received sequence numbers from test payload, where each missing number indicates a lost packet."""
289
+ misorder_by_seq: int = field(XmpLong())
290
+ """long integer, Number of misordered packets calculated by detecting packets that arrive with a sequence number lower than the highest seen so far, indicating out-of-order delivery."""
291
+ payload_err_packets: int = field(XmpLong())
292
+ """long integer, Number of packets with payload integrity errors."""
293
293
 
294
294
  def get(self) -> Token[GetDataAttr]:
295
295
  """Get statistics concerning errors in the packets with a particular test payload id received on a port.
296
296
 
297
297
  :return:
298
298
  dummy value not in use,
299
- number of non-incrementing-sequence-number events,
300
- number of swapped-sequence-number misorder events,
301
- number of packets with non-incrementing payload content
299
+ Number of packet loss by sequence number,
300
+ Number of misordered packets by sequence number,
301
+ Number of packets with payload integrity errors.
302
302
 
303
303
  :rtype: PR_TPLDERRORS.GetDataAttr
304
304
  """
@@ -532,12 +532,13 @@ class PR_TOTALEXT:
532
532
  packet_count_since_cleared: int = field(XmpLong())
533
533
  """long integer, number of packets received since statistics were cleared."""
534
534
  fcs_error_count: int = field(XmpLong())
535
-
535
+ """long integer, number of Rx packets with a bad FCS."""
536
536
  oversize_count: int = field(XmpLong())
537
-
537
+ """long integer, number of oversize packets (>1518 bytes) received since last clear (-1 if this counter is not supported by the tester)."""
538
538
  undersize_count: int = field(XmpLong())
539
-
539
+ """long integer, number of undersize packets (<64 bytes) received since last clear (-1 if this counter is not supported by the tester)."""
540
540
  jabber_count: int = field(XmpLong())
541
+ """long integer, number of jabber packets (oversized with a bad FCS) received since last clear (-1 if this counter is not supported by the tester)."""
541
542
 
542
543
  def get(self) -> Token[GetDataAttr]:
543
544
  """Get statistics concerning all the packets received on a port.
@@ -548,10 +549,10 @@ class PR_TOTALEXT:
548
549
  number of packets received in the last second,
549
550
  number of bytes received since statistics were cleared,
550
551
  number of packets received since statistics were cleared,
551
- number of packets received with fcs error frames,
552
- number of oversize packets received since last clear (-1 if this counter is not supported by the tester),
553
- number of undersize packets received since last clear (-1 if this counter is not supported by the tester),
554
- number of jabber packets received since last clear (-1 if this counter is not supported by the tester).
552
+ number of packets received with a bad FCS,
553
+ number of oversize packets (>1518 bytes) received since last clear (-1 if this counter is not supported by the tester),
554
+ number of undersize packets (<64 bytes) received since last clear (-1 if this counter is not supported by the tester),
555
+ number of jabber packets (oversized with a bad FCS) received since last clear (-1 if this counter is not supported by the tester).
555
556
 
556
557
  :rtype: PR_TOTALEXT.GetDataAttr
557
558
  """
@@ -365,10 +365,10 @@ class PX_CDB_ABORT_PROCESSING:
365
365
  .. code-block:: json
366
366
 
367
367
  {
368
- "cdb_status": "0x00"
368
+ "cdb_status": 0
369
369
  }
370
370
 
371
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
371
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
372
372
 
373
373
  """
374
374
  class SetDataAttr(RequestBodyStruct):
@@ -413,10 +413,10 @@ class PX_CDB_CHANGE_PASSWORD:
413
413
  .. code-block:: json
414
414
 
415
415
  {
416
- "cdb_status": "0x00"
416
+ "cdb_status": 0
417
417
  }
418
418
 
419
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
419
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
420
420
 
421
421
  """
422
422
  class SetDataAttr(RequestBodyStruct):
@@ -443,10 +443,10 @@ class PX_CDB_CHANGE_PASSWORD:
443
443
  .. code-block:: json
444
444
 
445
445
  {
446
- "new_password": "0x54555657"
446
+ "new_password": [54,55,56,57]
447
447
  }
448
448
 
449
- * ``new_password``: hex string, new password to be entered.
449
+ * ``new_password``: array of four integers, new password to be entered.
450
450
 
451
451
  """
452
452
 
@@ -473,10 +473,10 @@ class PX_CDB_ENTER_PASSWORD:
473
473
  .. code-block:: json
474
474
 
475
475
  {
476
- "cdb_status": "0x00"
476
+ "cdb_status": 0
477
477
  }
478
478
 
479
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
479
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
480
480
 
481
481
  """
482
482
  class SetDataAttr(RequestBodyStruct):
@@ -486,10 +486,10 @@ class PX_CDB_ENTER_PASSWORD:
486
486
  .. code-block:: json
487
487
 
488
488
  {
489
- "password": "0x54555657"
489
+ "password": [54,55,56,57]
490
490
  }
491
491
 
492
- * ``password``: hex string, password to be entered.
492
+ * ``password``: array of four integers, password to be entered.
493
493
 
494
494
  """
495
495
 
@@ -512,10 +512,10 @@ class PX_CDB_ENTER_PASSWORD:
512
512
  .. code-block:: json
513
513
 
514
514
  {
515
- "password": "0x54555657"
515
+ "password": [54,55,56,57]
516
516
  }
517
517
 
518
- * ``password``: hex string, password to be entered.
518
+ * ``password``: array of four integers, password to be entered.
519
519
 
520
520
  """
521
521
 
@@ -542,12 +542,12 @@ class PX_CDB_QUERY_STATUS:
542
542
  .. code-block:: json
543
543
 
544
544
  {
545
- "cdb_status": "0x00",
546
- "status": "0x00"
545
+ "cdb_status": 0,
546
+ "status": 0
547
547
  }
548
548
 
549
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
550
- * ``status``: hex string
549
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
550
+ * ``status``: integer
551
551
 
552
552
  * 0000 0000b: Module Boot Up.
553
553
  * 0000 0001b: Host Password Accepted.
@@ -618,11 +618,11 @@ class PX_CDB_EXTERNAL_FEATURES:
618
618
  .. code-block:: json
619
619
 
620
620
  {
621
- "cdb_status": "0x00",
621
+ "cdb_status": 0,
622
622
  "supplement_support": "0x00"
623
623
  }
624
624
 
625
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
625
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
626
626
  * ``supplement_support``: hex string, Bit 0 = 0/1: CMIS-VCS not supported/supported
627
627
 
628
628
  """
@@ -669,7 +669,7 @@ class PX_CDB_FW_MGMT_FEATURES:
669
669
  .. code-block:: json
670
670
 
671
671
  {
672
- "cdb_status": "0x00",
672
+ "cdb_status": 0,
673
673
  "feature_support_mask": "0x00",
674
674
  "start_cmd_payload_size": 2,
675
675
  "erased_byte": "0x00",
@@ -684,7 +684,7 @@ class PX_CDB_FW_MGMT_FEATURES:
684
684
  "max_duration_copy": 123
685
685
  }
686
686
 
687
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
687
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
688
688
  * ``feature_support_mask``: hex string, indicates support of Firmware Management features.
689
689
  * ``start_cmd_payload_size``: integer, This defines the number of bytes that the host must extract from the beginning of the vendor-delivered binary firmware image file and send to the module in CMD 0101h (Start).
690
690
  * ``erased_byte``: hex string, This is the value representing an erased byte. The purpose of advertising this byte is to optionally reduce download time by allowing the host to skip sending blocks of the image containing ErasedByte values only.
@@ -742,7 +742,7 @@ class PX_CDB_GET_APP_ATTRIBUTES:
742
742
  .. code-block:: json
743
743
 
744
744
  {
745
- "cdb_status": "0x00",
745
+ "cdb_status": 0,
746
746
  "application_number": 123,
747
747
  "max_module_power": 123,
748
748
  "prog_output_power_min": 123,
@@ -755,7 +755,7 @@ class PX_CDB_GET_APP_ATTRIBUTES:
755
755
  "rx_power_low_warning_threshold": 123
756
756
  }
757
757
 
758
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
758
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
759
759
  * ``application_number``: integer, U16 Application number. 15-8: reserved (0). 7-4: NADBlockIndex (0-15) or 0. 3-0: AppSelCode (1-15).
760
760
  * ``max_module_power``: integer, U16: Worst case module power dissipation when this Application is instantiated homogeneously as often as possible in parallel (when applicable) with worst case configuration options. Unit: 0.25 W.
761
761
  * ``prog_output_power_min``: integer, S16: Minimum Programmable Output Power, Unit: 0.01 dBm.
@@ -830,7 +830,7 @@ class PX_CDB_GET_IF_CODE_DESCR:
830
830
  .. code-block:: json
831
831
 
832
832
  {
833
- "cdb_status": "0x00",
833
+ "cdb_status": 0,
834
834
  "interface_id": "0x01",
835
835
  "interface_location": "0x00",
836
836
  "interfacre_name": "10G Ethernet",
@@ -842,7 +842,7 @@ class PX_CDB_GET_IF_CODE_DESCR:
842
842
  "bits_per_symbol": 2
843
843
  }
844
844
 
845
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
845
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
846
846
  * ``interface_id``: hex string, U16: HostInterfaceID or MediaInterfaceID. 15-8: reserved (0). 7-0: InterfaceID
847
847
  * ``interface_location``: integer, 0: media side. 1: host side.
848
848
  * ``interfacre_name``: string, 16-byte long ACII string. Name of the interface.
@@ -920,12 +920,12 @@ class PX_CDB_MODULE_FEATURES:
920
920
  .. code-block:: json
921
921
 
922
922
  {
923
- "cdb_status": "0x00",
923
+ "cdb_status": 0,
924
924
  "cmd_support_mask": "0x0000000000000000000000000000000000000000000000000000000000000000",
925
925
  "max_completion_time": 1000
926
926
  }
927
927
 
928
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
928
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
929
929
  * ``cmd_support_mask``: :hex string, indicates support of CDB commands 0000h-00FFh. This array of 32 bytes indicates support of CDB commands CMD <i>, with identifiers 0 ≤ <i> ≤ 255, as follows: CMD <i> is supported when bit<j>=<i>mod 8 of byte<k> = 138+floor(<i>/8) is set.
930
930
  * ``max_completion_time``: integer, U16 Maximum CDB command execution time in ms, of all supported CDB commands.
931
931
 
@@ -972,7 +972,7 @@ class PX_CDB_SEC_FEAT_CAPABILITIES:
972
972
  .. code-block:: json
973
973
 
974
974
  {
975
- "cdb_status": "0x00",
975
+ "cdb_status": 0,
976
976
  "cmd_support_mask": "0xFF",
977
977
  "num_certificates": 0,
978
978
  "cert_chain_supported": 0,
@@ -988,7 +988,7 @@ class PX_CDB_SEC_FEAT_CAPABILITIES:
988
988
  "signature_pad_scheme": 0
989
989
  }
990
990
 
991
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
991
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
992
992
  * ``cmd_support_mask``: hex string, indicates support of CDB commands 0400-04FFh.
993
993
  * ``num_certificates``: integer, number of public certificates the host may obtain from the module. The device must contain a single leaf certificate and it may optionally contain one or more intermediate certificates optionally followed by a root certificate. For X.509 certificates, intermediate certificates are not self-signed, and the root cert is self-signed. ``num_certificates <= 4``.
994
994
  * ``cert_chain_supported``: integer, 0: Certificate chain is not supported. Module contains leaf certificate instance i = 0 only. 1: Module supports certificate chain and host must specify the instance when downloading a certificate. Instance i = 0 is the start of the chain, i.e. the leaf certificate, and any instance i+1 is another certificate used to sign the certificate instance i, where ``i < num_certificates <= 4``
@@ -1047,10 +1047,10 @@ class PX_CDB_ABORT_FW_DOWNLOAD:
1047
1047
  .. code-block:: json
1048
1048
 
1049
1049
  {
1050
- "cdb_status": "0x00"
1050
+ "cdb_status": 0
1051
1051
  }
1052
1052
 
1053
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
1053
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
1054
1054
 
1055
1055
  """
1056
1056
  class SetDataAttr(RequestBodyStruct):
@@ -1095,10 +1095,10 @@ class PX_CDB_COMMIT_FW_IMAGE:
1095
1095
  .. code-block:: json
1096
1096
 
1097
1097
  {
1098
- "cdb_status": "0x00"
1098
+ "cdb_status": 0
1099
1099
  }
1100
1100
 
1101
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
1101
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
1102
1102
 
1103
1103
  """
1104
1104
  class SetDataAttr(RequestBodyStruct):
@@ -1143,10 +1143,10 @@ class PX_CDB_COMPLETE_FW_DOWNLOAD:
1143
1143
  .. code-block:: json
1144
1144
 
1145
1145
  {
1146
- "cdb_status": "0x00"
1146
+ "cdb_status": 0
1147
1147
  }
1148
1148
 
1149
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
1149
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
1150
1150
 
1151
1151
  """
1152
1152
  class SetDataAttr(RequestBodyStruct):
@@ -1191,12 +1191,12 @@ class PX_CDB_COPY_FW_IMAGE:
1191
1191
  .. code-block:: json
1192
1192
 
1193
1193
  {
1194
- "cdb_status": "0x00",
1194
+ "cdb_status": 0,
1195
1195
  "copy_direction": "0xAB",
1196
1196
  "copy_status": "0x00"
1197
1197
  }
1198
1198
 
1199
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
1199
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
1200
1200
  * ``copy_direction``: hex string, copy direction.
1201
1201
 
1202
1202
  * ``0xAB``, Copy Image A into Image B
@@ -1264,7 +1264,7 @@ class PX_CDB_GET_FW_INFO:
1264
1264
  .. code-block:: json
1265
1265
 
1266
1266
  {
1267
- "cdb_status": "0x00",
1267
+ "cdb_status": 0,
1268
1268
  "firmware_status": 0,
1269
1269
  "image_information": 0,
1270
1270
  "image_a_major": 0,
@@ -1281,7 +1281,7 @@ class PX_CDB_GET_FW_INFO:
1281
1281
  "factory_boot_extra_string": "abcdef"
1282
1282
  }
1283
1283
 
1284
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
1284
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
1285
1285
  * ``firmware_status``: integer, Firmware Status.
1286
1286
 
1287
1287
  Bitmask to indicate FW Status.
@@ -1369,11 +1369,11 @@ class PX_CDB_READ_FW_BLOCK_EPL:
1369
1369
  .. code-block:: json
1370
1370
 
1371
1371
  {
1372
- "cdb_status": "0x00",
1372
+ "cdb_status": 0,
1373
1373
  "image_data": "0x00010203040506070809"
1374
1374
  }
1375
1375
 
1376
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
1376
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
1377
1377
  * ``image_data``: hex string, Up to 2048 bytes.
1378
1378
 
1379
1379
  """
@@ -1436,12 +1436,12 @@ class PX_CDB_READ_FW_BLOCK_LPL:
1436
1436
  .. code-block:: json
1437
1437
 
1438
1438
  {
1439
- "cdb_status": "0x00",
1439
+ "cdb_status": 0,
1440
1440
  "base_address_block": "0x0000000C",
1441
1441
  "image_data": "0x00010203040506070809"
1442
1442
  }
1443
1443
 
1444
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
1444
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
1445
1445
  * ``base_address_block``: hex string, Base address of the data block within the firmware image.
1446
1446
  * ``image_data``: : hex string, Up to 2048 bytes.
1447
1447
 
@@ -1504,10 +1504,10 @@ class PX_CDB_RUN_FW_IMAGE:
1504
1504
  .. code-block:: json
1505
1505
 
1506
1506
  {
1507
- "cdb_status": "0x00"
1507
+ "cdb_status": 0
1508
1508
  }
1509
1509
 
1510
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
1510
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
1511
1511
 
1512
1512
  """
1513
1513
  class SetDataAttr(RequestBodyStruct):
@@ -1588,10 +1588,10 @@ class PX_CDB_START_FW_DOWNLOAD:
1588
1588
  .. code-block:: json
1589
1589
 
1590
1590
  {
1591
- "cdb_status": "0x00"
1591
+ "cdb_status": 0
1592
1592
  }
1593
1593
 
1594
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
1594
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
1595
1595
 
1596
1596
  """
1597
1597
  class SetDataAttr(RequestBodyStruct):
@@ -1660,10 +1660,10 @@ class PX_CDB_WRITE_FW_BLOCK_EPL:
1660
1660
  .. code-block:: json
1661
1661
 
1662
1662
  {
1663
- "cdb_status": "0x00"
1663
+ "cdb_status": 0
1664
1664
  }
1665
1665
 
1666
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
1666
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
1667
1667
 
1668
1668
  """
1669
1669
  class SetDataAttr(RequestBodyStruct):
@@ -1721,10 +1721,10 @@ class PX_CDB_WRITE_FW_BLOCK_LPL:
1721
1721
  .. code-block:: json
1722
1722
 
1723
1723
  {
1724
- "cdb_status": "0x00"
1724
+ "cdb_status": 0
1725
1725
  }
1726
1726
 
1727
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
1727
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
1728
1728
 
1729
1729
  """
1730
1730
  class SetDataAttr(RequestBodyStruct):
@@ -1828,7 +1828,7 @@ class PX_CUST_CMD:
1828
1828
  {
1829
1829
  "reply_status": {
1830
1830
  "cdb_cmd_complete_flag": "0x00",
1831
- "cdb_status": "0x00",
1831
+ "cdb_status": 0,
1832
1832
  },
1833
1833
  "reply_header": {
1834
1834
  "rpl_length": 9,
@@ -1842,7 +1842,7 @@ class PX_CUST_CMD:
1842
1842
  * ``reply_status``: dict, JSON formatted string containing the following fields:
1843
1843
 
1844
1844
  * ``cdb_cmd_complete_flag``: hex string, indicates whether the CDB command is complete.
1845
- * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
1845
+ * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
1846
1846
 
1847
1847
  * ``reply_header``: dict, JSON formatted string containing the following fields:
1848
1848
 
@@ -1887,7 +1887,7 @@ class PX_CUST_CMD:
1887
1887
  # {
1888
1888
  # "reply_status": {
1889
1889
  # "cdb_cmd_complete_flag": "0x00",
1890
- # "cdb_status": "0x00",
1890
+ # "cdb_status": 0,
1891
1891
  # },
1892
1892
  # "reply_header": {
1893
1893
  # "rpl_length": 9,
@@ -1901,7 +1901,7 @@ class PX_CUST_CMD:
1901
1901
  # * ``reply_status``: dict, JSON formatted string containing the following fields:
1902
1902
 
1903
1903
  # * ``cdb_cmd_complete_flag``: hex string, indicates whether the CDB command is complete.
1904
- # * ``cdb_status``: hex string, provides the status of the most recently triggered CDB command.
1904
+ # * ``cdb_status``: integer, provides the status of the most recently triggered CDB command.
1905
1905
 
1906
1906
  # * ``reply_header``: dict, JSON formatted string containing the following fields:
1907
1907
 
@@ -19,7 +19,7 @@ SYMBOL_RESPONSE = f"{YELLOW} <- {RESET}"
19
19
 
20
20
  class StateOnUser:
21
21
  @staticmethod
22
- def setup(connid: str, logger: "CustomLogger") -> "CustomLogger" | None:
22
+ def setup(connid: str, logger: "CustomLogger") -> "CustomLogger | None":
23
23
  return logger
24
24
 
25
25
  @staticmethod
@@ -2,12 +2,13 @@ from typing import Set
2
2
 
3
3
 
4
4
  class WrongModuleError(Exception):
5
- """Module can not be assign to the current tester"""
5
+ """Module cannot be assigned to the connected tester object."""
6
6
  def __init__(self, module_revision: str, allowed_revisions: Set[str]) -> None:
7
7
  self.module_revision = module_revision
8
8
  self.allowed_revisions = allowed_revisions
9
9
  self.msg = (
10
- f"Module of revision <{self.module_revision}> can not be assign to the current tester,\n"
11
- f"Permitted only modules of next revisions {allowed_revisions}"
10
+ f"Module of revision <{self.module_revision}> detected.\n"
11
+ f"This module is not supported by the tester object in the current tdl-xoa-driver.\n"
12
+ f"Supported module revisions are: {allowed_revisions}"
12
13
  )
13
14
  super().__init__(self.msg)