wiliot-certificate 1.4.0a1__tar.gz → 1.5.0a1__tar.gz

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 (206) hide show
  1. {wiliot_certificate-1.4.0a1/src/wiliot_certificate.egg-info → wiliot_certificate-1.5.0a1}/PKG-INFO +6 -4
  2. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/README.md +5 -3
  3. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/pyproject.toml +2 -1
  4. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/energous_v0_defines.py +12 -12
  5. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/energous_v1_defines.py +12 -12
  6. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/energous_v2_defines.py +12 -12
  7. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/energous_v3_defines.py +12 -12
  8. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/energous_v4_defines.py +12 -12
  9. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/fanstel_lan_v0_defines.py +12 -12
  10. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/fanstel_lte_v0_defines.py +12 -12
  11. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/fanstel_wifi_v0_defines.py +12 -12
  12. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/minew_lte_v0_defines.py +12 -12
  13. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/wlt_cmd_if.html +1 -1
  14. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/wlt_types.html +3 -3
  15. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/wlt_types_ag.py +12 -12
  16. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/brg_certificate.py +9 -6
  17. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/cert_common.py +21 -13
  18. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/cert_config.py +1 -1
  19. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/cert_defines.py +21 -3
  20. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/cert_gw_sim.py +6 -4
  21. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/cert_mqtt.py +8 -2
  22. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/cert_prints.py +7 -5
  23. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/cert_protobuf.py +5 -1
  24. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/cert_results.py +99 -69
  25. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/cert_utils.py +10 -14
  26. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/restore_brg.py +2 -0
  27. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/calibration/interval_test/interval_test.py +1 -1
  28. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/calibration/output_power_test/output_power_test.py +1 -1
  29. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/calibration/pattern_test/pattern_test.py +1 -1
  30. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/adaptive_pacer_algo_test/adaptive_pacer_algo_test.py +4 -4
  31. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/num_of_tags_test/num_of_tags_test.py +2 -2
  32. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/output_power_test/output_power_test.py +1 -1
  33. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/pacer_interval_ble5_test/pacer_interval_ble5_test.py +1 -1
  34. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/pacer_interval_tags_count_test/pacer_interval_tags_count_test.py +2 -2
  35. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/pacer_interval_test/pacer_interval_test.py +1 -1
  36. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/pattern_test/pattern_test.py +1 -1
  37. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/pkt_filter_ble5_test/pkt_filter_ble5_test.py +1 -1
  38. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/pkt_filter_gen3_test/pkt_filter_gen3_test.py +1 -1
  39. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/pkt_filter_test/pkt_filter_test.py +1 -1
  40. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/rssi_threshold_test/rssi_threshold_test.py +1 -1
  41. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/rx_channel_test/rx_channel_test.py +1 -1
  42. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/rx_rate_gen2_test/rx_rate_gen2_test.py +1 -1
  43. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/rx_rate_gen3_test/rx_rate_gen3_test.py +1 -1
  44. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/stress_gen3_test/stress_gen3_test.py +2 -2
  45. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/stress_test/stress_test.py +2 -2
  46. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/tx_repetition_algo_test/tx_repetition_algo_test.py +1 -1
  47. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/tx_repetition_test/tx_repetition_test.py +1 -1
  48. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/edge_mgmt/actions_test/actions_test.py +4 -4
  49. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/edge_mgmt/brg2brg_ota_ble5_test/brg2brg_ota_ble5_test.py +1 -1
  50. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/edge_mgmt/brg2brg_ota_test/brg2brg_ota_test.py +1 -1
  51. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/edge_mgmt/leds_test/leds_test.py +1 -1
  52. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/edge_mgmt/ota_test/ota_test.py +1 -1
  53. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/edge_mgmt/stat_test/stat_test.py +1 -1
  54. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy2400/duty_cycle_test/duty_cycle_test.py +1 -1
  55. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy2400/output_power_test/output_power_test.py +1 -1
  56. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy2400/pattern_test/pattern_test.py +1 -1
  57. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy2400/signal_indicator_ble5_test/signal_indicator_ble5_test.py +1 -1
  58. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy2400/signal_indicator_sub1g_2_4_test/signal_indicator_sub1g_2_4_test.py +1 -1
  59. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy_sub1g/duty_cycle_test/duty_cycle_test.py +1 -1
  60. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy_sub1g/pattern_test/pattern_test.py +1 -1
  61. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy_sub1g/signal_indicator_functionality_test/signal_indicator_functionality_test.py +1 -1
  62. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy_sub1g/signal_indicator_test/signal_indicator_test.py +1 -1
  63. wiliot_certificate-1.5.0a1/src/brg_certificate/wltPb_pb2.py +84 -0
  64. {wiliot_certificate-1.4.0a1/src/gw_certificate/common → wiliot_certificate-1.5.0a1/src/brg_certificate}/wltPb_pb2.pyi +32 -32
  65. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/wlt_types.py +4 -6
  66. wiliot_certificate-1.5.0a1/src/common/wlt_logo.png +0 -0
  67. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/ag/ut_defines.py +4 -1
  68. wiliot_certificate-1.5.0a1/src/gw_certificate/cert_results.py +138 -0
  69. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/gw_certificate.py +20 -6
  70. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/interface/mqtt.py +1 -0
  71. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/interface/uart_if.py +1 -1
  72. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/tests/actions.py +0 -1
  73. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/tests/generic.py +43 -17
  74. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1/src/wiliot_certificate.egg-info}/PKG-INFO +6 -4
  75. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/wiliot_certificate.egg-info/SOURCES.txt +2 -0
  76. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/wiliot_certificate.egg-info/top_level.txt +1 -0
  77. wiliot_certificate-1.4.0a1/src/gw_certificate/common/wltPb_pb2.py +0 -72
  78. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/LICENSE +0 -0
  79. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/setup.cfg +0 -0
  80. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/__init__.py +0 -0
  81. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/wlt_types_ag_jsons/brg2brg_ota.json +0 -0
  82. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/wlt_types_ag_jsons/brg2gw_hb.json +0 -0
  83. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/wlt_types_ag_jsons/brg2gw_hb_sleep.json +0 -0
  84. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/wlt_types_ag_jsons/calibration.json +0 -0
  85. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/wlt_types_ag_jsons/custom.json +0 -0
  86. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/wlt_types_ag_jsons/datapath.json +0 -0
  87. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/wlt_types_ag_jsons/energy2400.json +0 -0
  88. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/wlt_types_ag_jsons/energySub1g.json +0 -0
  89. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/wlt_types_ag_jsons/externalSensor.json +0 -0
  90. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/wlt_types_ag_jsons/interface.json +0 -0
  91. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/wlt_types_ag_jsons/powerManagement.json +0 -0
  92. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/wlt_types_ag_jsons/side_info_sensor.json +0 -0
  93. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/wlt_types_ag_jsons/signal_indicator_data.json +0 -0
  94. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/wlt_types_ag_jsons/unified_echo_ext_pkt.json +0 -0
  95. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/ag/wlt_types_ag_jsons/unified_echo_pkt.json +0 -0
  96. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/brg_certificate_cli.py +0 -0
  97. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/cert_data_sim.py +0 -0
  98. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/certificate_sanity_test_list.txt +0 -0
  99. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/certificate_test_list.txt +0 -0
  100. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/config/eclipse.json +0 -0
  101. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/config/hivemq.json +0 -0
  102. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/config/mosquitto.json +0 -0
  103. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/config/mosquitto.md +0 -0
  104. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/config/wiliot-dev.json +0 -0
  105. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/calibration/interval_test/interval_test.json +0 -0
  106. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/calibration/output_power_test/output_power_test.json +0 -0
  107. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/calibration/pattern_test/pattern_test.json +0 -0
  108. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/adaptive_pacer_algo_test/adaptive_pacer_algo_test.json +0 -0
  109. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/num_of_tags_test/num_of_tags_test.json +0 -0
  110. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/output_power_test/output_power_test.json +0 -0
  111. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/pacer_interval_ble5_test/pacer_interval_ble5_test.json +0 -0
  112. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/pacer_interval_tags_count_test/pacer_interval_tags_count_test.json +0 -0
  113. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/pacer_interval_test/pacer_interval_test.json +0 -0
  114. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/pattern_test/pattern_test.json +0 -0
  115. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/pkt_filter_ble5_test/pkt_filter_ble5_test.json +0 -0
  116. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/pkt_filter_gen3_test/pkt_filter_gen3_test.json +0 -0
  117. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/pkt_filter_test/pkt_filter_test.json +0 -0
  118. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/rssi_threshold_test/rssi_threshold_test.json +0 -0
  119. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/rx_channel_test/rx_channel_test.json +0 -0
  120. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/rx_rate_gen2_test/rx_rate_gen2_test.json +0 -0
  121. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/rx_rate_gen3_test/rx_rate_gen3_test.json +0 -0
  122. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/stress_gen3_test/stress_gen3_test.json +0 -0
  123. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/stress_test/stress_test.json +0 -0
  124. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/tx_repetition_algo_test/tx_repetition_algo_test.json +0 -0
  125. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/datapath/tx_repetition_test/tx_repetition_test.json +0 -0
  126. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/edge_mgmt/actions_test/actions_test.json +0 -0
  127. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/edge_mgmt/brg2brg_ota_ble5_test/brg2brg_ota_ble5_test.json +0 -0
  128. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/edge_mgmt/brg2brg_ota_test/brg2brg_ota_test.json +0 -0
  129. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/edge_mgmt/leds_test/leds_test.json +0 -0
  130. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/edge_mgmt/ota_test/ota_test.json +0 -0
  131. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/edge_mgmt/stat_test/stat_test.json +0 -0
  132. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy2400/duty_cycle_test/duty_cycle_test.json +0 -0
  133. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy2400/output_power_test/output_power_test.json +0 -0
  134. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy2400/pattern_test/pattern_test.json +0 -0
  135. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy2400/signal_indicator_ble5_test/signal_indicator_ble5_test.json +0 -0
  136. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy2400/signal_indicator_sub1g_2_4_test/signal_indicator_sub1g_2_4_test.json +0 -0
  137. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy2400/signal_indicator_test/signal_indicator_test.json +0 -0
  138. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy2400/signal_indicator_test/signal_indicator_test.py +0 -0
  139. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy_sub1g/duty_cycle_test/duty_cycle_test.json +0 -0
  140. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy_sub1g/pattern_test/pattern_test.json +0 -0
  141. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy_sub1g/signal_indicator_functionality_test/signal_indicator_functionality_test.json +0 -0
  142. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/brg_certificate/tests/energy_sub1g/signal_indicator_test/signal_indicator_test.json +0 -0
  143. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/__init__.py +0 -0
  144. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/ag/wlt_types.py +0 -0
  145. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/ag/wlt_types_ag.py +0 -0
  146. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/ag/wlt_types_data.py +0 -0
  147. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api/extended_api.py +0 -0
  148. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/200/data.json +0 -0
  149. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/200/logs.json +0 -0
  150. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/200/status.json +0 -0
  151. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/201/data.json +0 -0
  152. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/201/logs.json +0 -0
  153. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/201/status.json +0 -0
  154. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/202/data.json +0 -0
  155. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/202/logs.json +0 -0
  156. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/202/status.json +0 -0
  157. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/203/data.json +0 -0
  158. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/203/logs.json +0 -0
  159. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/203/status.json +0 -0
  160. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/204/data.json +0 -0
  161. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/204/logs.json +0 -0
  162. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/204/status.json +0 -0
  163. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/205/data.json +0 -0
  164. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/205/logs.json +0 -0
  165. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/205/status.json +0 -0
  166. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/__init__.py +0 -0
  167. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/api_validation.py +0 -0
  168. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/api_if/gw_capabilities.py +0 -0
  169. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/common/analysis_data_bricks.py +0 -0
  170. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/common/debug.py +0 -0
  171. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/common/utils.py +0 -0
  172. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/common/utils_defines.py +0 -0
  173. {wiliot_certificate-1.4.0a1/src/brg_certificate → wiliot_certificate-1.5.0a1/src/gw_certificate/common}/wltPb_pb2.py +0 -0
  174. {wiliot_certificate-1.4.0a1/src/brg_certificate → wiliot_certificate-1.5.0a1/src/gw_certificate/common}/wltPb_pb2.pyi +0 -0
  175. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/gw_certificate_cli.py +0 -0
  176. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/interface/4.4.52_app.zip +0 -0
  177. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/interface/4.4.52_sd_bl_app.zip +0 -0
  178. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/interface/ble_simulator.py +0 -0
  179. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/interface/ble_sniffer.py +0 -0
  180. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/interface/if_defines.py +0 -0
  181. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/interface/nrfutil-linux +0 -0
  182. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/interface/nrfutil-mac +0 -0
  183. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/interface/nrfutil.exe +0 -0
  184. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/interface/pkt_generator.py +0 -0
  185. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/interface/uart_ports.py +0 -0
  186. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/templates/results.html +0 -0
  187. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/templates/stage.html +0 -0
  188. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/templates/table.html +0 -0
  189. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/templates/test.html +0 -0
  190. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/tests/__init__.py +0 -0
  191. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/tests/bad_crc_to_PER_quantization.csv +0 -0
  192. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/tests/connection.py +1 -1
  193. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/tests/downlink.py +0 -0
  194. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/tests/registration.py +0 -0
  195. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/tests/static/__init__.py +0 -0
  196. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/tests/static/connection_defines.py +0 -0
  197. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/tests/static/downlink_defines.py +0 -0
  198. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/tests/static/generated_packet_table.py +0 -0
  199. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/tests/static/packet_table.csv +0 -0
  200. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/tests/static/references.py +0 -0
  201. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/tests/static/uplink_defines.py +0 -0
  202. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/tests/throughput.py +0 -0
  203. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/gw_certificate/tests/uplink.py +0 -0
  204. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/wiliot_certificate.egg-info/dependency_links.txt +0 -0
  205. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/wiliot_certificate.egg-info/entry_points.txt +0 -0
  206. {wiliot_certificate-1.4.0a1 → wiliot_certificate-1.5.0a1}/src/wiliot_certificate.egg-info/requires.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: wiliot_certificate
3
- Version: 1.4.0a1
3
+ Version: 1.5.0a1
4
4
  Summary: A library for certifying Wiliot-compliant boards
5
5
  Author-email: Wiliot <support@wiliot.com>
6
6
  License: MIT License
@@ -93,11 +93,13 @@ Increments time delays between packets to evaluate GW's capability in handling i
93
93
  #### GW Certificate Release Notes:
94
94
  1.4.0:
95
95
  - Released in a standalone wiliot-certificate package
96
- - Python 3.12 support
96
+ - Python 3.13 support
97
97
  - Gw API version 205 support
98
- - Registration Test
98
+ - Registration test added
99
+ - Bridge OTA stage added under actions
99
100
  - Aggregation flag supported by StressTest
100
-
101
+ - -update flag compatibility fix. Upgrades bootloader as well
102
+ - -actions flag to select specific actions to test
101
103
 
102
104
  ```
103
105
  usage: wlt-gw-certificate [-h] -owner OWNER -gw GW [-suffix SUFFIX] [-tests {connection,uplink,downlink,stress}]
@@ -40,11 +40,13 @@ Increments time delays between packets to evaluate GW's capability in handling i
40
40
  #### GW Certificate Release Notes:
41
41
  1.4.0:
42
42
  - Released in a standalone wiliot-certificate package
43
- - Python 3.12 support
43
+ - Python 3.13 support
44
44
  - Gw API version 205 support
45
- - Registration Test
45
+ - Registration test added
46
+ - Bridge OTA stage added under actions
46
47
  - Aggregation flag supported by StressTest
47
-
48
+ - -update flag compatibility fix. Upgrades bootloader as well
49
+ - -actions flag to select specific actions to test
48
50
 
49
51
  ```
50
52
  usage: wlt-gw-certificate [-h] -owner OWNER -gw GW [-suffix SUFFIX] [-tests {connection,uplink,downlink,stress}]
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "wiliot_certificate"
7
- version = "1.4.0a1"
7
+ version = "1.5.0a1"
8
8
  authors = [
9
9
  { name="Wiliot", email="support@wiliot.com" }
10
10
  ]
@@ -51,6 +51,7 @@ where = ["src"]
51
51
  exclude = ["*.ut*"]
52
52
 
53
53
  [tool.setuptools.package-data]
54
+ common = ["wlt_logo.png"]
54
55
  gw_certificate = ["**/*.csv", "**/*.html", "**/*.json", "**/*.zip", "interface/nrfutil*"]
55
56
  brg_certificate = ["**/*.json", "**/*.md", "*_list.txt", "**/wlt_cmd_if.html", "**/wlt_types.html"]
56
57
 
@@ -832,21 +832,21 @@ class ModuleExtSensorsV11():
832
832
  self.unused = d[7]
833
833
 
834
834
  class ModuleCustomV12():
835
- def __init__(self, raw='', module_type=MODULE_CUSTOM, msg_type=BRG_MGMT_MSG_TYPE_CFG_SET, api_version=API_VERSION_V12, seq_id=0, brg_mac=0, state_threshold=LIS2DW12_DEFAULTS_STATE_THRESHOLD, wake_up_duration=LIS2DW12_DEFAULTS_WAKE_UP_DURATION, sleep_duration=LIS2DW12_DEFAULTS_SLEEP_DURATION, unused1=0):
835
+ def __init__(self, raw='', module_type=MODULE_CUSTOM, msg_type=BRG_MGMT_MSG_TYPE_CFG_SET, api_version=API_VERSION_V12, seq_id=0, brg_mac=0, motion_sensitivity_threshold=LIS2DW12_DEFAULTS_STATE_THRESHOLD, s2d_transition_time=LIS2DW12_DEFAULTS_WAKE_UP_DURATION, d2s_transition_time=LIS2DW12_DEFAULTS_SLEEP_DURATION, unused1=0):
836
836
  self.module_type = module_type
837
837
  self.msg_type = msg_type
838
838
  self.api_version = api_version
839
839
  self.seq_id = seq_id
840
840
  self.brg_mac = brg_mac
841
- self.state_threshold = state_threshold # 31 [mg] resolution
842
- self.wake_up_duration = wake_up_duration # 3 [sec] resolution
843
- self.sleep_duration = sleep_duration # 5 [sec] resolution
841
+ self.motion_sensitivity_threshold = motion_sensitivity_threshold # 31 [mg] resolution
842
+ self.s2d_transition_time = s2d_transition_time # 3 [sec] resolution
843
+ self.d2s_transition_time = d2s_transition_time # 5 [sec] resolution
844
844
  self.unused1 = unused1
845
845
  if raw:
846
846
  self.set(raw)
847
847
 
848
848
  def __repr__(self) -> str:
849
- return "\n==> Packet module_custom_v12 <==\n" + tabulate.tabulate([['module_type', f"0x{self.module_type:X} ({self.module_type})"],['msg_type', f"0x{self.msg_type:X} ({self.msg_type})"],['api_version', f"0x{self.api_version:X} ({self.api_version})"],['seq_id', f"0x{self.seq_id:X} ({self.seq_id})"],['brg_mac', f"0x{self.brg_mac:X} ({self.brg_mac})"],['state_threshold', f"0x{self.state_threshold:X} ({self.state_threshold})"],['wake_up_duration', f"0x{self.wake_up_duration:X} ({self.wake_up_duration})"],['sleep_duration', f"0x{self.sleep_duration:X} ({self.sleep_duration})"]], tablefmt="texttable")
849
+ return "\n==> Packet module_custom_v12 <==\n" + tabulate.tabulate([['module_type', f"0x{self.module_type:X} ({self.module_type})"],['msg_type', f"0x{self.msg_type:X} ({self.msg_type})"],['api_version', f"0x{self.api_version:X} ({self.api_version})"],['seq_id', f"0x{self.seq_id:X} ({self.seq_id})"],['brg_mac', f"0x{self.brg_mac:X} ({self.brg_mac})"],['motion_sensitivity_threshold', f"0x{self.motion_sensitivity_threshold:X} ({self.motion_sensitivity_threshold})"],['s2d_transition_time', f"0x{self.s2d_transition_time:X} ({self.s2d_transition_time})"],['d2s_transition_time', f"0x{self.d2s_transition_time:X} ({self.d2s_transition_time})"]], tablefmt="texttable")
850
850
 
851
851
  def __eq__(self, other):
852
852
  if other and set(other.__dict__.keys()) == set(self.__dict__.keys()):
@@ -855,14 +855,14 @@ class ModuleCustomV12():
855
855
  self.msg_type == other.msg_type and
856
856
  self.api_version == other.api_version and
857
857
  self.brg_mac == other.brg_mac and
858
- self.state_threshold == other.state_threshold and
859
- self.wake_up_duration == other.wake_up_duration and
860
- self.sleep_duration == other.sleep_duration
858
+ self.motion_sensitivity_threshold == other.motion_sensitivity_threshold and
859
+ self.s2d_transition_time == other.s2d_transition_time and
860
+ self.d2s_transition_time == other.d2s_transition_time
861
861
  )
862
862
  return False
863
863
 
864
864
  def dump(self):
865
- string = bitstruct.pack("u4u4u8u8u48u8u8u8u96", self.module_type, self.msg_type, self.api_version, self.seq_id, self.brg_mac, ((self.state_threshold-0)//31), ((self.wake_up_duration-0)//3), ((self.sleep_duration-0)//5), self.unused1)
865
+ string = bitstruct.pack("u4u4u8u8u48u8u8u8u96", self.module_type, self.msg_type, self.api_version, self.seq_id, self.brg_mac, ((self.motion_sensitivity_threshold-0)//31), ((self.s2d_transition_time-0)//3), ((self.d2s_transition_time-0)//5), self.unused1)
866
866
  return string.hex().upper()
867
867
 
868
868
  def set(self, string):
@@ -872,9 +872,9 @@ class ModuleCustomV12():
872
872
  self.api_version = d[2]
873
873
  self.seq_id = d[3]
874
874
  self.brg_mac = d[4]
875
- self.state_threshold = ((d[5]*31)+0)
876
- self.wake_up_duration = ((d[6]*3)+0)
877
- self.sleep_duration = ((d[7]*5)+0)
875
+ self.motion_sensitivity_threshold = ((d[5]*31)+0)
876
+ self.s2d_transition_time = ((d[6]*3)+0)
877
+ self.d2s_transition_time = ((d[7]*5)+0)
878
878
  self.unused1 = d[8]
879
879
 
880
880
  class ModuleCustomV11():
@@ -838,21 +838,21 @@ class ModuleExtSensorsV11():
838
838
  self.unused = d[7]
839
839
 
840
840
  class ModuleCustomV12():
841
- def __init__(self, raw='', module_type=MODULE_CUSTOM, msg_type=BRG_MGMT_MSG_TYPE_CFG_SET, api_version=API_VERSION_V12, seq_id=0, brg_mac=0, state_threshold=LIS2DW12_DEFAULTS_STATE_THRESHOLD, wake_up_duration=LIS2DW12_DEFAULTS_WAKE_UP_DURATION, sleep_duration=LIS2DW12_DEFAULTS_SLEEP_DURATION, unused1=0):
841
+ def __init__(self, raw='', module_type=MODULE_CUSTOM, msg_type=BRG_MGMT_MSG_TYPE_CFG_SET, api_version=API_VERSION_V12, seq_id=0, brg_mac=0, motion_sensitivity_threshold=LIS2DW12_DEFAULTS_STATE_THRESHOLD, s2d_transition_time=LIS2DW12_DEFAULTS_WAKE_UP_DURATION, d2s_transition_time=LIS2DW12_DEFAULTS_SLEEP_DURATION, unused1=0):
842
842
  self.module_type = module_type
843
843
  self.msg_type = msg_type
844
844
  self.api_version = api_version
845
845
  self.seq_id = seq_id
846
846
  self.brg_mac = brg_mac
847
- self.state_threshold = state_threshold # 31 [mg] resolution
848
- self.wake_up_duration = wake_up_duration # 3 [sec] resolution
849
- self.sleep_duration = sleep_duration # 5 [sec] resolution
847
+ self.motion_sensitivity_threshold = motion_sensitivity_threshold # 31 [mg] resolution
848
+ self.s2d_transition_time = s2d_transition_time # 3 [sec] resolution
849
+ self.d2s_transition_time = d2s_transition_time # 5 [sec] resolution
850
850
  self.unused1 = unused1
851
851
  if raw:
852
852
  self.set(raw)
853
853
 
854
854
  def __repr__(self) -> str:
855
- return "\n==> Packet module_custom_v12 <==\n" + tabulate.tabulate([['module_type', f"0x{self.module_type:X} ({self.module_type})"],['msg_type', f"0x{self.msg_type:X} ({self.msg_type})"],['api_version', f"0x{self.api_version:X} ({self.api_version})"],['seq_id', f"0x{self.seq_id:X} ({self.seq_id})"],['brg_mac', f"0x{self.brg_mac:X} ({self.brg_mac})"],['state_threshold', f"0x{self.state_threshold:X} ({self.state_threshold})"],['wake_up_duration', f"0x{self.wake_up_duration:X} ({self.wake_up_duration})"],['sleep_duration', f"0x{self.sleep_duration:X} ({self.sleep_duration})"]], tablefmt="texttable")
855
+ return "\n==> Packet module_custom_v12 <==\n" + tabulate.tabulate([['module_type', f"0x{self.module_type:X} ({self.module_type})"],['msg_type', f"0x{self.msg_type:X} ({self.msg_type})"],['api_version', f"0x{self.api_version:X} ({self.api_version})"],['seq_id', f"0x{self.seq_id:X} ({self.seq_id})"],['brg_mac', f"0x{self.brg_mac:X} ({self.brg_mac})"],['motion_sensitivity_threshold', f"0x{self.motion_sensitivity_threshold:X} ({self.motion_sensitivity_threshold})"],['s2d_transition_time', f"0x{self.s2d_transition_time:X} ({self.s2d_transition_time})"],['d2s_transition_time', f"0x{self.d2s_transition_time:X} ({self.d2s_transition_time})"]], tablefmt="texttable")
856
856
 
857
857
  def __eq__(self, other):
858
858
  if other and set(other.__dict__.keys()) == set(self.__dict__.keys()):
@@ -861,14 +861,14 @@ class ModuleCustomV12():
861
861
  self.msg_type == other.msg_type and
862
862
  self.api_version == other.api_version and
863
863
  self.brg_mac == other.brg_mac and
864
- self.state_threshold == other.state_threshold and
865
- self.wake_up_duration == other.wake_up_duration and
866
- self.sleep_duration == other.sleep_duration
864
+ self.motion_sensitivity_threshold == other.motion_sensitivity_threshold and
865
+ self.s2d_transition_time == other.s2d_transition_time and
866
+ self.d2s_transition_time == other.d2s_transition_time
867
867
  )
868
868
  return False
869
869
 
870
870
  def dump(self):
871
- string = bitstruct.pack("u4u4u8u8u48u8u8u8u96", self.module_type, self.msg_type, self.api_version, self.seq_id, self.brg_mac, ((self.state_threshold-0)//31), ((self.wake_up_duration-0)//3), ((self.sleep_duration-0)//5), self.unused1)
871
+ string = bitstruct.pack("u4u4u8u8u48u8u8u8u96", self.module_type, self.msg_type, self.api_version, self.seq_id, self.brg_mac, ((self.motion_sensitivity_threshold-0)//31), ((self.s2d_transition_time-0)//3), ((self.d2s_transition_time-0)//5), self.unused1)
872
872
  return string.hex().upper()
873
873
 
874
874
  def set(self, string):
@@ -878,9 +878,9 @@ class ModuleCustomV12():
878
878
  self.api_version = d[2]
879
879
  self.seq_id = d[3]
880
880
  self.brg_mac = d[4]
881
- self.state_threshold = ((d[5]*31)+0)
882
- self.wake_up_duration = ((d[6]*3)+0)
883
- self.sleep_duration = ((d[7]*5)+0)
881
+ self.motion_sensitivity_threshold = ((d[5]*31)+0)
882
+ self.s2d_transition_time = ((d[6]*3)+0)
883
+ self.d2s_transition_time = ((d[7]*5)+0)
884
884
  self.unused1 = d[8]
885
885
 
886
886
  class ModuleCustomV11():
@@ -832,21 +832,21 @@ class ModuleExtSensorsV11():
832
832
  self.unused = d[7]
833
833
 
834
834
  class ModuleCustomV12():
835
- def __init__(self, raw='', module_type=MODULE_CUSTOM, msg_type=BRG_MGMT_MSG_TYPE_CFG_SET, api_version=API_VERSION_V12, seq_id=0, brg_mac=0, state_threshold=LIS2DW12_DEFAULTS_STATE_THRESHOLD, wake_up_duration=LIS2DW12_DEFAULTS_WAKE_UP_DURATION, sleep_duration=LIS2DW12_DEFAULTS_SLEEP_DURATION, unused1=0):
835
+ def __init__(self, raw='', module_type=MODULE_CUSTOM, msg_type=BRG_MGMT_MSG_TYPE_CFG_SET, api_version=API_VERSION_V12, seq_id=0, brg_mac=0, motion_sensitivity_threshold=LIS2DW12_DEFAULTS_STATE_THRESHOLD, s2d_transition_time=LIS2DW12_DEFAULTS_WAKE_UP_DURATION, d2s_transition_time=LIS2DW12_DEFAULTS_SLEEP_DURATION, unused1=0):
836
836
  self.module_type = module_type
837
837
  self.msg_type = msg_type
838
838
  self.api_version = api_version
839
839
  self.seq_id = seq_id
840
840
  self.brg_mac = brg_mac
841
- self.state_threshold = state_threshold # 31 [mg] resolution
842
- self.wake_up_duration = wake_up_duration # 3 [sec] resolution
843
- self.sleep_duration = sleep_duration # 5 [sec] resolution
841
+ self.motion_sensitivity_threshold = motion_sensitivity_threshold # 31 [mg] resolution
842
+ self.s2d_transition_time = s2d_transition_time # 3 [sec] resolution
843
+ self.d2s_transition_time = d2s_transition_time # 5 [sec] resolution
844
844
  self.unused1 = unused1
845
845
  if raw:
846
846
  self.set(raw)
847
847
 
848
848
  def __repr__(self) -> str:
849
- return "\n==> Packet module_custom_v12 <==\n" + tabulate.tabulate([['module_type', f"0x{self.module_type:X} ({self.module_type})"],['msg_type', f"0x{self.msg_type:X} ({self.msg_type})"],['api_version', f"0x{self.api_version:X} ({self.api_version})"],['seq_id', f"0x{self.seq_id:X} ({self.seq_id})"],['brg_mac', f"0x{self.brg_mac:X} ({self.brg_mac})"],['state_threshold', f"0x{self.state_threshold:X} ({self.state_threshold})"],['wake_up_duration', f"0x{self.wake_up_duration:X} ({self.wake_up_duration})"],['sleep_duration', f"0x{self.sleep_duration:X} ({self.sleep_duration})"]], tablefmt="texttable")
849
+ return "\n==> Packet module_custom_v12 <==\n" + tabulate.tabulate([['module_type', f"0x{self.module_type:X} ({self.module_type})"],['msg_type', f"0x{self.msg_type:X} ({self.msg_type})"],['api_version', f"0x{self.api_version:X} ({self.api_version})"],['seq_id', f"0x{self.seq_id:X} ({self.seq_id})"],['brg_mac', f"0x{self.brg_mac:X} ({self.brg_mac})"],['motion_sensitivity_threshold', f"0x{self.motion_sensitivity_threshold:X} ({self.motion_sensitivity_threshold})"],['s2d_transition_time', f"0x{self.s2d_transition_time:X} ({self.s2d_transition_time})"],['d2s_transition_time', f"0x{self.d2s_transition_time:X} ({self.d2s_transition_time})"]], tablefmt="texttable")
850
850
 
851
851
  def __eq__(self, other):
852
852
  if other and set(other.__dict__.keys()) == set(self.__dict__.keys()):
@@ -855,14 +855,14 @@ class ModuleCustomV12():
855
855
  self.msg_type == other.msg_type and
856
856
  self.api_version == other.api_version and
857
857
  self.brg_mac == other.brg_mac and
858
- self.state_threshold == other.state_threshold and
859
- self.wake_up_duration == other.wake_up_duration and
860
- self.sleep_duration == other.sleep_duration
858
+ self.motion_sensitivity_threshold == other.motion_sensitivity_threshold and
859
+ self.s2d_transition_time == other.s2d_transition_time and
860
+ self.d2s_transition_time == other.d2s_transition_time
861
861
  )
862
862
  return False
863
863
 
864
864
  def dump(self):
865
- string = bitstruct.pack("u4u4u8u8u48u8u8u8u96", self.module_type, self.msg_type, self.api_version, self.seq_id, self.brg_mac, ((self.state_threshold-0)//31), ((self.wake_up_duration-0)//3), ((self.sleep_duration-0)//5), self.unused1)
865
+ string = bitstruct.pack("u4u4u8u8u48u8u8u8u96", self.module_type, self.msg_type, self.api_version, self.seq_id, self.brg_mac, ((self.motion_sensitivity_threshold-0)//31), ((self.s2d_transition_time-0)//3), ((self.d2s_transition_time-0)//5), self.unused1)
866
866
  return string.hex().upper()
867
867
 
868
868
  def set(self, string):
@@ -872,9 +872,9 @@ class ModuleCustomV12():
872
872
  self.api_version = d[2]
873
873
  self.seq_id = d[3]
874
874
  self.brg_mac = d[4]
875
- self.state_threshold = ((d[5]*31)+0)
876
- self.wake_up_duration = ((d[6]*3)+0)
877
- self.sleep_duration = ((d[7]*5)+0)
875
+ self.motion_sensitivity_threshold = ((d[5]*31)+0)
876
+ self.s2d_transition_time = ((d[6]*3)+0)
877
+ self.d2s_transition_time = ((d[7]*5)+0)
878
878
  self.unused1 = d[8]
879
879
 
880
880
  class ModuleCustomV11():
@@ -832,21 +832,21 @@ class ModuleExtSensorsV11():
832
832
  self.unused = d[7]
833
833
 
834
834
  class ModuleCustomV12():
835
- def __init__(self, raw='', module_type=MODULE_CUSTOM, msg_type=BRG_MGMT_MSG_TYPE_CFG_SET, api_version=API_VERSION_V12, seq_id=0, brg_mac=0, state_threshold=LIS2DW12_DEFAULTS_STATE_THRESHOLD, wake_up_duration=LIS2DW12_DEFAULTS_WAKE_UP_DURATION, sleep_duration=LIS2DW12_DEFAULTS_SLEEP_DURATION, unused1=0):
835
+ def __init__(self, raw='', module_type=MODULE_CUSTOM, msg_type=BRG_MGMT_MSG_TYPE_CFG_SET, api_version=API_VERSION_V12, seq_id=0, brg_mac=0, motion_sensitivity_threshold=LIS2DW12_DEFAULTS_STATE_THRESHOLD, s2d_transition_time=LIS2DW12_DEFAULTS_WAKE_UP_DURATION, d2s_transition_time=LIS2DW12_DEFAULTS_SLEEP_DURATION, unused1=0):
836
836
  self.module_type = module_type
837
837
  self.msg_type = msg_type
838
838
  self.api_version = api_version
839
839
  self.seq_id = seq_id
840
840
  self.brg_mac = brg_mac
841
- self.state_threshold = state_threshold # 31 [mg] resolution
842
- self.wake_up_duration = wake_up_duration # 3 [sec] resolution
843
- self.sleep_duration = sleep_duration # 5 [sec] resolution
841
+ self.motion_sensitivity_threshold = motion_sensitivity_threshold # 31 [mg] resolution
842
+ self.s2d_transition_time = s2d_transition_time # 3 [sec] resolution
843
+ self.d2s_transition_time = d2s_transition_time # 5 [sec] resolution
844
844
  self.unused1 = unused1
845
845
  if raw:
846
846
  self.set(raw)
847
847
 
848
848
  def __repr__(self) -> str:
849
- return "\n==> Packet module_custom_v12 <==\n" + tabulate.tabulate([['module_type', f"0x{self.module_type:X} ({self.module_type})"],['msg_type', f"0x{self.msg_type:X} ({self.msg_type})"],['api_version', f"0x{self.api_version:X} ({self.api_version})"],['seq_id', f"0x{self.seq_id:X} ({self.seq_id})"],['brg_mac', f"0x{self.brg_mac:X} ({self.brg_mac})"],['state_threshold', f"0x{self.state_threshold:X} ({self.state_threshold})"],['wake_up_duration', f"0x{self.wake_up_duration:X} ({self.wake_up_duration})"],['sleep_duration', f"0x{self.sleep_duration:X} ({self.sleep_duration})"]], tablefmt="texttable")
849
+ return "\n==> Packet module_custom_v12 <==\n" + tabulate.tabulate([['module_type', f"0x{self.module_type:X} ({self.module_type})"],['msg_type', f"0x{self.msg_type:X} ({self.msg_type})"],['api_version', f"0x{self.api_version:X} ({self.api_version})"],['seq_id', f"0x{self.seq_id:X} ({self.seq_id})"],['brg_mac', f"0x{self.brg_mac:X} ({self.brg_mac})"],['motion_sensitivity_threshold', f"0x{self.motion_sensitivity_threshold:X} ({self.motion_sensitivity_threshold})"],['s2d_transition_time', f"0x{self.s2d_transition_time:X} ({self.s2d_transition_time})"],['d2s_transition_time', f"0x{self.d2s_transition_time:X} ({self.d2s_transition_time})"]], tablefmt="texttable")
850
850
 
851
851
  def __eq__(self, other):
852
852
  if other and set(other.__dict__.keys()) == set(self.__dict__.keys()):
@@ -855,14 +855,14 @@ class ModuleCustomV12():
855
855
  self.msg_type == other.msg_type and
856
856
  self.api_version == other.api_version and
857
857
  self.brg_mac == other.brg_mac and
858
- self.state_threshold == other.state_threshold and
859
- self.wake_up_duration == other.wake_up_duration and
860
- self.sleep_duration == other.sleep_duration
858
+ self.motion_sensitivity_threshold == other.motion_sensitivity_threshold and
859
+ self.s2d_transition_time == other.s2d_transition_time and
860
+ self.d2s_transition_time == other.d2s_transition_time
861
861
  )
862
862
  return False
863
863
 
864
864
  def dump(self):
865
- string = bitstruct.pack("u4u4u8u8u48u8u8u8u96", self.module_type, self.msg_type, self.api_version, self.seq_id, self.brg_mac, ((self.state_threshold-0)//31), ((self.wake_up_duration-0)//3), ((self.sleep_duration-0)//5), self.unused1)
865
+ string = bitstruct.pack("u4u4u8u8u48u8u8u8u96", self.module_type, self.msg_type, self.api_version, self.seq_id, self.brg_mac, ((self.motion_sensitivity_threshold-0)//31), ((self.s2d_transition_time-0)//3), ((self.d2s_transition_time-0)//5), self.unused1)
866
866
  return string.hex().upper()
867
867
 
868
868
  def set(self, string):
@@ -872,9 +872,9 @@ class ModuleCustomV12():
872
872
  self.api_version = d[2]
873
873
  self.seq_id = d[3]
874
874
  self.brg_mac = d[4]
875
- self.state_threshold = ((d[5]*31)+0)
876
- self.wake_up_duration = ((d[6]*3)+0)
877
- self.sleep_duration = ((d[7]*5)+0)
875
+ self.motion_sensitivity_threshold = ((d[5]*31)+0)
876
+ self.s2d_transition_time = ((d[6]*3)+0)
877
+ self.d2s_transition_time = ((d[7]*5)+0)
878
878
  self.unused1 = d[8]
879
879
 
880
880
  class ModuleCustomV11():
@@ -832,21 +832,21 @@ class ModuleExtSensorsV11():
832
832
  self.unused = d[7]
833
833
 
834
834
  class ModuleCustomV12():
835
- def __init__(self, raw='', module_type=MODULE_CUSTOM, msg_type=BRG_MGMT_MSG_TYPE_CFG_SET, api_version=API_VERSION_V12, seq_id=0, brg_mac=0, state_threshold=LIS2DW12_DEFAULTS_STATE_THRESHOLD, wake_up_duration=LIS2DW12_DEFAULTS_WAKE_UP_DURATION, sleep_duration=LIS2DW12_DEFAULTS_SLEEP_DURATION, unused1=0):
835
+ def __init__(self, raw='', module_type=MODULE_CUSTOM, msg_type=BRG_MGMT_MSG_TYPE_CFG_SET, api_version=API_VERSION_V12, seq_id=0, brg_mac=0, motion_sensitivity_threshold=LIS2DW12_DEFAULTS_STATE_THRESHOLD, s2d_transition_time=LIS2DW12_DEFAULTS_WAKE_UP_DURATION, d2s_transition_time=LIS2DW12_DEFAULTS_SLEEP_DURATION, unused1=0):
836
836
  self.module_type = module_type
837
837
  self.msg_type = msg_type
838
838
  self.api_version = api_version
839
839
  self.seq_id = seq_id
840
840
  self.brg_mac = brg_mac
841
- self.state_threshold = state_threshold # 31 [mg] resolution
842
- self.wake_up_duration = wake_up_duration # 3 [sec] resolution
843
- self.sleep_duration = sleep_duration # 5 [sec] resolution
841
+ self.motion_sensitivity_threshold = motion_sensitivity_threshold # 31 [mg] resolution
842
+ self.s2d_transition_time = s2d_transition_time # 3 [sec] resolution
843
+ self.d2s_transition_time = d2s_transition_time # 5 [sec] resolution
844
844
  self.unused1 = unused1
845
845
  if raw:
846
846
  self.set(raw)
847
847
 
848
848
  def __repr__(self) -> str:
849
- return "\n==> Packet module_custom_v12 <==\n" + tabulate.tabulate([['module_type', f"0x{self.module_type:X} ({self.module_type})"],['msg_type', f"0x{self.msg_type:X} ({self.msg_type})"],['api_version', f"0x{self.api_version:X} ({self.api_version})"],['seq_id', f"0x{self.seq_id:X} ({self.seq_id})"],['brg_mac', f"0x{self.brg_mac:X} ({self.brg_mac})"],['state_threshold', f"0x{self.state_threshold:X} ({self.state_threshold})"],['wake_up_duration', f"0x{self.wake_up_duration:X} ({self.wake_up_duration})"],['sleep_duration', f"0x{self.sleep_duration:X} ({self.sleep_duration})"]], tablefmt="texttable")
849
+ return "\n==> Packet module_custom_v12 <==\n" + tabulate.tabulate([['module_type', f"0x{self.module_type:X} ({self.module_type})"],['msg_type', f"0x{self.msg_type:X} ({self.msg_type})"],['api_version', f"0x{self.api_version:X} ({self.api_version})"],['seq_id', f"0x{self.seq_id:X} ({self.seq_id})"],['brg_mac', f"0x{self.brg_mac:X} ({self.brg_mac})"],['motion_sensitivity_threshold', f"0x{self.motion_sensitivity_threshold:X} ({self.motion_sensitivity_threshold})"],['s2d_transition_time', f"0x{self.s2d_transition_time:X} ({self.s2d_transition_time})"],['d2s_transition_time', f"0x{self.d2s_transition_time:X} ({self.d2s_transition_time})"]], tablefmt="texttable")
850
850
 
851
851
  def __eq__(self, other):
852
852
  if other and set(other.__dict__.keys()) == set(self.__dict__.keys()):
@@ -855,14 +855,14 @@ class ModuleCustomV12():
855
855
  self.msg_type == other.msg_type and
856
856
  self.api_version == other.api_version and
857
857
  self.brg_mac == other.brg_mac and
858
- self.state_threshold == other.state_threshold and
859
- self.wake_up_duration == other.wake_up_duration and
860
- self.sleep_duration == other.sleep_duration
858
+ self.motion_sensitivity_threshold == other.motion_sensitivity_threshold and
859
+ self.s2d_transition_time == other.s2d_transition_time and
860
+ self.d2s_transition_time == other.d2s_transition_time
861
861
  )
862
862
  return False
863
863
 
864
864
  def dump(self):
865
- string = bitstruct.pack("u4u4u8u8u48u8u8u8u96", self.module_type, self.msg_type, self.api_version, self.seq_id, self.brg_mac, ((self.state_threshold-0)//31), ((self.wake_up_duration-0)//3), ((self.sleep_duration-0)//5), self.unused1)
865
+ string = bitstruct.pack("u4u4u8u8u48u8u8u8u96", self.module_type, self.msg_type, self.api_version, self.seq_id, self.brg_mac, ((self.motion_sensitivity_threshold-0)//31), ((self.s2d_transition_time-0)//3), ((self.d2s_transition_time-0)//5), self.unused1)
866
866
  return string.hex().upper()
867
867
 
868
868
  def set(self, string):
@@ -872,9 +872,9 @@ class ModuleCustomV12():
872
872
  self.api_version = d[2]
873
873
  self.seq_id = d[3]
874
874
  self.brg_mac = d[4]
875
- self.state_threshold = ((d[5]*31)+0)
876
- self.wake_up_duration = ((d[6]*3)+0)
877
- self.sleep_duration = ((d[7]*5)+0)
875
+ self.motion_sensitivity_threshold = ((d[5]*31)+0)
876
+ self.s2d_transition_time = ((d[6]*3)+0)
877
+ self.d2s_transition_time = ((d[7]*5)+0)
878
878
  self.unused1 = d[8]
879
879
 
880
880
  class ModuleCustomV11():
@@ -832,21 +832,21 @@ class ModuleExtSensorsV11():
832
832
  self.unused = d[7]
833
833
 
834
834
  class ModuleCustomV12():
835
- def __init__(self, raw='', module_type=MODULE_CUSTOM, msg_type=BRG_MGMT_MSG_TYPE_CFG_SET, api_version=API_VERSION_V12, seq_id=0, brg_mac=0, state_threshold=LIS2DW12_DEFAULTS_STATE_THRESHOLD, wake_up_duration=LIS2DW12_DEFAULTS_WAKE_UP_DURATION, sleep_duration=LIS2DW12_DEFAULTS_SLEEP_DURATION, unused1=0):
835
+ def __init__(self, raw='', module_type=MODULE_CUSTOM, msg_type=BRG_MGMT_MSG_TYPE_CFG_SET, api_version=API_VERSION_V12, seq_id=0, brg_mac=0, motion_sensitivity_threshold=LIS2DW12_DEFAULTS_STATE_THRESHOLD, s2d_transition_time=LIS2DW12_DEFAULTS_WAKE_UP_DURATION, d2s_transition_time=LIS2DW12_DEFAULTS_SLEEP_DURATION, unused1=0):
836
836
  self.module_type = module_type
837
837
  self.msg_type = msg_type
838
838
  self.api_version = api_version
839
839
  self.seq_id = seq_id
840
840
  self.brg_mac = brg_mac
841
- self.state_threshold = state_threshold # 31 [mg] resolution
842
- self.wake_up_duration = wake_up_duration # 3 [sec] resolution
843
- self.sleep_duration = sleep_duration # 5 [sec] resolution
841
+ self.motion_sensitivity_threshold = motion_sensitivity_threshold # 31 [mg] resolution
842
+ self.s2d_transition_time = s2d_transition_time # 3 [sec] resolution
843
+ self.d2s_transition_time = d2s_transition_time # 5 [sec] resolution
844
844
  self.unused1 = unused1
845
845
  if raw:
846
846
  self.set(raw)
847
847
 
848
848
  def __repr__(self) -> str:
849
- return "\n==> Packet module_custom_v12 <==\n" + tabulate.tabulate([['module_type', f"0x{self.module_type:X} ({self.module_type})"],['msg_type', f"0x{self.msg_type:X} ({self.msg_type})"],['api_version', f"0x{self.api_version:X} ({self.api_version})"],['seq_id', f"0x{self.seq_id:X} ({self.seq_id})"],['brg_mac', f"0x{self.brg_mac:X} ({self.brg_mac})"],['state_threshold', f"0x{self.state_threshold:X} ({self.state_threshold})"],['wake_up_duration', f"0x{self.wake_up_duration:X} ({self.wake_up_duration})"],['sleep_duration', f"0x{self.sleep_duration:X} ({self.sleep_duration})"]], tablefmt="texttable")
849
+ return "\n==> Packet module_custom_v12 <==\n" + tabulate.tabulate([['module_type', f"0x{self.module_type:X} ({self.module_type})"],['msg_type', f"0x{self.msg_type:X} ({self.msg_type})"],['api_version', f"0x{self.api_version:X} ({self.api_version})"],['seq_id', f"0x{self.seq_id:X} ({self.seq_id})"],['brg_mac', f"0x{self.brg_mac:X} ({self.brg_mac})"],['motion_sensitivity_threshold', f"0x{self.motion_sensitivity_threshold:X} ({self.motion_sensitivity_threshold})"],['s2d_transition_time', f"0x{self.s2d_transition_time:X} ({self.s2d_transition_time})"],['d2s_transition_time', f"0x{self.d2s_transition_time:X} ({self.d2s_transition_time})"]], tablefmt="texttable")
850
850
 
851
851
  def __eq__(self, other):
852
852
  if other and set(other.__dict__.keys()) == set(self.__dict__.keys()):
@@ -855,14 +855,14 @@ class ModuleCustomV12():
855
855
  self.msg_type == other.msg_type and
856
856
  self.api_version == other.api_version and
857
857
  self.brg_mac == other.brg_mac and
858
- self.state_threshold == other.state_threshold and
859
- self.wake_up_duration == other.wake_up_duration and
860
- self.sleep_duration == other.sleep_duration
858
+ self.motion_sensitivity_threshold == other.motion_sensitivity_threshold and
859
+ self.s2d_transition_time == other.s2d_transition_time and
860
+ self.d2s_transition_time == other.d2s_transition_time
861
861
  )
862
862
  return False
863
863
 
864
864
  def dump(self):
865
- string = bitstruct.pack("u4u4u8u8u48u8u8u8u96", self.module_type, self.msg_type, self.api_version, self.seq_id, self.brg_mac, ((self.state_threshold-0)//31), ((self.wake_up_duration-0)//3), ((self.sleep_duration-0)//5), self.unused1)
865
+ string = bitstruct.pack("u4u4u8u8u48u8u8u8u96", self.module_type, self.msg_type, self.api_version, self.seq_id, self.brg_mac, ((self.motion_sensitivity_threshold-0)//31), ((self.s2d_transition_time-0)//3), ((self.d2s_transition_time-0)//5), self.unused1)
866
866
  return string.hex().upper()
867
867
 
868
868
  def set(self, string):
@@ -872,9 +872,9 @@ class ModuleCustomV12():
872
872
  self.api_version = d[2]
873
873
  self.seq_id = d[3]
874
874
  self.brg_mac = d[4]
875
- self.state_threshold = ((d[5]*31)+0)
876
- self.wake_up_duration = ((d[6]*3)+0)
877
- self.sleep_duration = ((d[7]*5)+0)
875
+ self.motion_sensitivity_threshold = ((d[5]*31)+0)
876
+ self.s2d_transition_time = ((d[6]*3)+0)
877
+ self.d2s_transition_time = ((d[7]*5)+0)
878
878
  self.unused1 = d[8]
879
879
 
880
880
  class ModuleCustomV11():
@@ -832,21 +832,21 @@ class ModuleExtSensorsV11():
832
832
  self.unused = d[7]
833
833
 
834
834
  class ModuleCustomV12():
835
- def __init__(self, raw='', module_type=MODULE_CUSTOM, msg_type=BRG_MGMT_MSG_TYPE_CFG_SET, api_version=API_VERSION_V12, seq_id=0, brg_mac=0, state_threshold=LIS2DW12_DEFAULTS_STATE_THRESHOLD, wake_up_duration=LIS2DW12_DEFAULTS_WAKE_UP_DURATION, sleep_duration=LIS2DW12_DEFAULTS_SLEEP_DURATION, unused1=0):
835
+ def __init__(self, raw='', module_type=MODULE_CUSTOM, msg_type=BRG_MGMT_MSG_TYPE_CFG_SET, api_version=API_VERSION_V12, seq_id=0, brg_mac=0, motion_sensitivity_threshold=LIS2DW12_DEFAULTS_STATE_THRESHOLD, s2d_transition_time=LIS2DW12_DEFAULTS_WAKE_UP_DURATION, d2s_transition_time=LIS2DW12_DEFAULTS_SLEEP_DURATION, unused1=0):
836
836
  self.module_type = module_type
837
837
  self.msg_type = msg_type
838
838
  self.api_version = api_version
839
839
  self.seq_id = seq_id
840
840
  self.brg_mac = brg_mac
841
- self.state_threshold = state_threshold # 31 [mg] resolution
842
- self.wake_up_duration = wake_up_duration # 3 [sec] resolution
843
- self.sleep_duration = sleep_duration # 5 [sec] resolution
841
+ self.motion_sensitivity_threshold = motion_sensitivity_threshold # 31 [mg] resolution
842
+ self.s2d_transition_time = s2d_transition_time # 3 [sec] resolution
843
+ self.d2s_transition_time = d2s_transition_time # 5 [sec] resolution
844
844
  self.unused1 = unused1
845
845
  if raw:
846
846
  self.set(raw)
847
847
 
848
848
  def __repr__(self) -> str:
849
- return "\n==> Packet module_custom_v12 <==\n" + tabulate.tabulate([['module_type', f"0x{self.module_type:X} ({self.module_type})"],['msg_type', f"0x{self.msg_type:X} ({self.msg_type})"],['api_version', f"0x{self.api_version:X} ({self.api_version})"],['seq_id', f"0x{self.seq_id:X} ({self.seq_id})"],['brg_mac', f"0x{self.brg_mac:X} ({self.brg_mac})"],['state_threshold', f"0x{self.state_threshold:X} ({self.state_threshold})"],['wake_up_duration', f"0x{self.wake_up_duration:X} ({self.wake_up_duration})"],['sleep_duration', f"0x{self.sleep_duration:X} ({self.sleep_duration})"]], tablefmt="texttable")
849
+ return "\n==> Packet module_custom_v12 <==\n" + tabulate.tabulate([['module_type', f"0x{self.module_type:X} ({self.module_type})"],['msg_type', f"0x{self.msg_type:X} ({self.msg_type})"],['api_version', f"0x{self.api_version:X} ({self.api_version})"],['seq_id', f"0x{self.seq_id:X} ({self.seq_id})"],['brg_mac', f"0x{self.brg_mac:X} ({self.brg_mac})"],['motion_sensitivity_threshold', f"0x{self.motion_sensitivity_threshold:X} ({self.motion_sensitivity_threshold})"],['s2d_transition_time', f"0x{self.s2d_transition_time:X} ({self.s2d_transition_time})"],['d2s_transition_time', f"0x{self.d2s_transition_time:X} ({self.d2s_transition_time})"]], tablefmt="texttable")
850
850
 
851
851
  def __eq__(self, other):
852
852
  if other and set(other.__dict__.keys()) == set(self.__dict__.keys()):
@@ -855,14 +855,14 @@ class ModuleCustomV12():
855
855
  self.msg_type == other.msg_type and
856
856
  self.api_version == other.api_version and
857
857
  self.brg_mac == other.brg_mac and
858
- self.state_threshold == other.state_threshold and
859
- self.wake_up_duration == other.wake_up_duration and
860
- self.sleep_duration == other.sleep_duration
858
+ self.motion_sensitivity_threshold == other.motion_sensitivity_threshold and
859
+ self.s2d_transition_time == other.s2d_transition_time and
860
+ self.d2s_transition_time == other.d2s_transition_time
861
861
  )
862
862
  return False
863
863
 
864
864
  def dump(self):
865
- string = bitstruct.pack("u4u4u8u8u48u8u8u8u96", self.module_type, self.msg_type, self.api_version, self.seq_id, self.brg_mac, ((self.state_threshold-0)//31), ((self.wake_up_duration-0)//3), ((self.sleep_duration-0)//5), self.unused1)
865
+ string = bitstruct.pack("u4u4u8u8u48u8u8u8u96", self.module_type, self.msg_type, self.api_version, self.seq_id, self.brg_mac, ((self.motion_sensitivity_threshold-0)//31), ((self.s2d_transition_time-0)//3), ((self.d2s_transition_time-0)//5), self.unused1)
866
866
  return string.hex().upper()
867
867
 
868
868
  def set(self, string):
@@ -872,9 +872,9 @@ class ModuleCustomV12():
872
872
  self.api_version = d[2]
873
873
  self.seq_id = d[3]
874
874
  self.brg_mac = d[4]
875
- self.state_threshold = ((d[5]*31)+0)
876
- self.wake_up_duration = ((d[6]*3)+0)
877
- self.sleep_duration = ((d[7]*5)+0)
875
+ self.motion_sensitivity_threshold = ((d[5]*31)+0)
876
+ self.s2d_transition_time = ((d[6]*3)+0)
877
+ self.d2s_transition_time = ((d[7]*5)+0)
878
878
  self.unused1 = d[8]
879
879
 
880
880
  class ModuleCustomV11():
@@ -832,21 +832,21 @@ class ModuleExtSensorsV11():
832
832
  self.unused = d[7]
833
833
 
834
834
  class ModuleCustomV12():
835
- def __init__(self, raw='', module_type=MODULE_CUSTOM, msg_type=BRG_MGMT_MSG_TYPE_CFG_SET, api_version=API_VERSION_V12, seq_id=0, brg_mac=0, state_threshold=LIS2DW12_DEFAULTS_STATE_THRESHOLD, wake_up_duration=LIS2DW12_DEFAULTS_WAKE_UP_DURATION, sleep_duration=LIS2DW12_DEFAULTS_SLEEP_DURATION, unused1=0):
835
+ def __init__(self, raw='', module_type=MODULE_CUSTOM, msg_type=BRG_MGMT_MSG_TYPE_CFG_SET, api_version=API_VERSION_V12, seq_id=0, brg_mac=0, motion_sensitivity_threshold=LIS2DW12_DEFAULTS_STATE_THRESHOLD, s2d_transition_time=LIS2DW12_DEFAULTS_WAKE_UP_DURATION, d2s_transition_time=LIS2DW12_DEFAULTS_SLEEP_DURATION, unused1=0):
836
836
  self.module_type = module_type
837
837
  self.msg_type = msg_type
838
838
  self.api_version = api_version
839
839
  self.seq_id = seq_id
840
840
  self.brg_mac = brg_mac
841
- self.state_threshold = state_threshold # 31 [mg] resolution
842
- self.wake_up_duration = wake_up_duration # 3 [sec] resolution
843
- self.sleep_duration = sleep_duration # 5 [sec] resolution
841
+ self.motion_sensitivity_threshold = motion_sensitivity_threshold # 31 [mg] resolution
842
+ self.s2d_transition_time = s2d_transition_time # 3 [sec] resolution
843
+ self.d2s_transition_time = d2s_transition_time # 5 [sec] resolution
844
844
  self.unused1 = unused1
845
845
  if raw:
846
846
  self.set(raw)
847
847
 
848
848
  def __repr__(self) -> str:
849
- return "\n==> Packet module_custom_v12 <==\n" + tabulate.tabulate([['module_type', f"0x{self.module_type:X} ({self.module_type})"],['msg_type', f"0x{self.msg_type:X} ({self.msg_type})"],['api_version', f"0x{self.api_version:X} ({self.api_version})"],['seq_id', f"0x{self.seq_id:X} ({self.seq_id})"],['brg_mac', f"0x{self.brg_mac:X} ({self.brg_mac})"],['state_threshold', f"0x{self.state_threshold:X} ({self.state_threshold})"],['wake_up_duration', f"0x{self.wake_up_duration:X} ({self.wake_up_duration})"],['sleep_duration', f"0x{self.sleep_duration:X} ({self.sleep_duration})"]], tablefmt="texttable")
849
+ return "\n==> Packet module_custom_v12 <==\n" + tabulate.tabulate([['module_type', f"0x{self.module_type:X} ({self.module_type})"],['msg_type', f"0x{self.msg_type:X} ({self.msg_type})"],['api_version', f"0x{self.api_version:X} ({self.api_version})"],['seq_id', f"0x{self.seq_id:X} ({self.seq_id})"],['brg_mac', f"0x{self.brg_mac:X} ({self.brg_mac})"],['motion_sensitivity_threshold', f"0x{self.motion_sensitivity_threshold:X} ({self.motion_sensitivity_threshold})"],['s2d_transition_time', f"0x{self.s2d_transition_time:X} ({self.s2d_transition_time})"],['d2s_transition_time', f"0x{self.d2s_transition_time:X} ({self.d2s_transition_time})"]], tablefmt="texttable")
850
850
 
851
851
  def __eq__(self, other):
852
852
  if other and set(other.__dict__.keys()) == set(self.__dict__.keys()):
@@ -855,14 +855,14 @@ class ModuleCustomV12():
855
855
  self.msg_type == other.msg_type and
856
856
  self.api_version == other.api_version and
857
857
  self.brg_mac == other.brg_mac and
858
- self.state_threshold == other.state_threshold and
859
- self.wake_up_duration == other.wake_up_duration and
860
- self.sleep_duration == other.sleep_duration
858
+ self.motion_sensitivity_threshold == other.motion_sensitivity_threshold and
859
+ self.s2d_transition_time == other.s2d_transition_time and
860
+ self.d2s_transition_time == other.d2s_transition_time
861
861
  )
862
862
  return False
863
863
 
864
864
  def dump(self):
865
- string = bitstruct.pack("u4u4u8u8u48u8u8u8u96", self.module_type, self.msg_type, self.api_version, self.seq_id, self.brg_mac, ((self.state_threshold-0)//31), ((self.wake_up_duration-0)//3), ((self.sleep_duration-0)//5), self.unused1)
865
+ string = bitstruct.pack("u4u4u8u8u48u8u8u8u96", self.module_type, self.msg_type, self.api_version, self.seq_id, self.brg_mac, ((self.motion_sensitivity_threshold-0)//31), ((self.s2d_transition_time-0)//3), ((self.d2s_transition_time-0)//5), self.unused1)
866
866
  return string.hex().upper()
867
867
 
868
868
  def set(self, string):
@@ -872,9 +872,9 @@ class ModuleCustomV12():
872
872
  self.api_version = d[2]
873
873
  self.seq_id = d[3]
874
874
  self.brg_mac = d[4]
875
- self.state_threshold = ((d[5]*31)+0)
876
- self.wake_up_duration = ((d[6]*3)+0)
877
- self.sleep_duration = ((d[7]*5)+0)
875
+ self.motion_sensitivity_threshold = ((d[5]*31)+0)
876
+ self.s2d_transition_time = ((d[6]*3)+0)
877
+ self.d2s_transition_time = ((d[7]*5)+0)
878
878
  self.unused1 = d[8]
879
879
 
880
880
  class ModuleCustomV11():