wiliot-certificate 4.4.3__py3-none-any.whl → 4.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.
- {brg_certificate → certificate}/ag/wlt_cmd_if.html +10 -4
- {brg_certificate → certificate}/ag/wlt_types_ag.py +1878 -519
- certificate/cert_common.py +1488 -0
- certificate/cert_config.py +480 -0
- {brg_certificate → certificate}/cert_data_sim.py +134 -46
- {brg_certificate → certificate}/cert_defines.py +129 -128
- {brg_certificate → certificate}/cert_gw_sim.py +183 -53
- {brg_certificate → certificate}/cert_mqtt.py +179 -64
- {brg_certificate → certificate}/cert_prints.py +35 -33
- {brg_certificate → certificate}/cert_protobuf.py +15 -6
- {brg_certificate → certificate}/cert_results.py +240 -64
- certificate/cert_utils.py +634 -0
- certificate/certificate.py +205 -0
- certificate/certificate_cli.py +76 -0
- certificate/certificate_eth_test_list.txt +76 -0
- certificate/certificate_sanity_test_list.txt +66 -0
- certificate/certificate_test_list.txt +76 -0
- {brg_certificate → certificate}/tests/calibration/interval_test/interval_test.json +3 -2
- {brg_certificate → certificate}/tests/calibration/interval_test/interval_test.py +7 -6
- certificate/tests/calibration/output_power_test/output_power_test.json +23 -0
- certificate/tests/calibration/output_power_test/output_power_test.py +39 -0
- {brg_certificate → certificate}/tests/calibration/pattern_test/pattern_test.json +2 -1
- {brg_certificate → certificate}/tests/calibration/pattern_test/pattern_test.py +20 -15
- certificate/tests/cloud_connectivity/acl_ext_adv_test/acl_ext_adv_test.json +15 -0
- certificate/tests/cloud_connectivity/acl_ext_adv_test/acl_ext_adv_test.py +140 -0
- certificate/tests/cloud_connectivity/acl_test/acl_test.json +15 -0
- certificate/tests/cloud_connectivity/acl_test/acl_test.py +96 -0
- certificate/tests/cloud_connectivity/brg_ota_test/brg_ota_test.json +19 -0
- certificate/tests/cloud_connectivity/brg_ota_test/brg_ota_test.py +41 -0
- certificate/tests/cloud_connectivity/channel_scan_behaviour_test/channel_scan_behaviour_test.json +19 -0
- certificate/tests/cloud_connectivity/channel_scan_behaviour_test/channel_scan_behaviour_test.py +215 -0
- certificate/tests/cloud_connectivity/connection_test/connection_test.json +18 -0
- certificate/tests/cloud_connectivity/connection_test/connection_test.py +67 -0
- certificate/tests/cloud_connectivity/deduplication_test/deduplication_test.json +15 -0
- certificate/tests/cloud_connectivity/deduplication_test/deduplication_test.py +80 -0
- certificate/tests/cloud_connectivity/downlink_test/downlink_test.json +21 -0
- certificate/tests/cloud_connectivity/downlink_test/downlink_test.py +201 -0
- certificate/tests/cloud_connectivity/ext_adv_stress_test/ext_adv_stress_test.json +17 -0
- certificate/tests/cloud_connectivity/ext_adv_stress_test/ext_adv_stress_test.py +104 -0
- certificate/tests/cloud_connectivity/reboot_test/reboot_test.json +18 -0
- certificate/tests/cloud_connectivity/reboot_test/reboot_test.py +59 -0
- certificate/tests/cloud_connectivity/registration_test/registration_test.json +20 -0
- certificate/tests/cloud_connectivity/registration_test/registration_test.py +384 -0
- certificate/tests/cloud_connectivity/registration_test/registration_test_cli.py +90 -0
- certificate/tests/cloud_connectivity/stress_test/stress_test.json +17 -0
- certificate/tests/cloud_connectivity/stress_test/stress_test.py +101 -0
- certificate/tests/cloud_connectivity/uplink_ext_adv_test/uplink_ext_adv_test.json +25 -0
- certificate/tests/cloud_connectivity/uplink_ext_adv_test/uplink_ext_adv_test.py +92 -0
- certificate/tests/cloud_connectivity/uplink_test/uplink_test.json +20 -0
- certificate/tests/cloud_connectivity/uplink_test/uplink_test.py +169 -0
- {brg_certificate → certificate}/tests/datapath/aging_test/aging_test.json +2 -1
- certificate/tests/datapath/aging_test/aging_test.py +142 -0
- certificate/tests/datapath/event_ble5_test/event_ble5_test.json +17 -0
- certificate/tests/datapath/event_ble5_test/event_ble5_test.py +89 -0
- certificate/tests/datapath/event_test/event_test.json +17 -0
- certificate/tests/datapath/event_test/event_test.py +80 -0
- {brg_certificate → certificate}/tests/datapath/num_of_tags_test/num_of_tags_test.json +4 -3
- {brg_certificate → certificate}/tests/datapath/num_of_tags_test/num_of_tags_test.py +19 -13
- certificate/tests/datapath/output_power_test/output_power_test.json +23 -0
- {brg_certificate → certificate}/tests/datapath/output_power_test/output_power_test.py +17 -6
- {brg_certificate → certificate}/tests/datapath/pacer_interval_ble5_test/pacer_interval_ble5_test.json +2 -1
- {brg_certificate → certificate}/tests/datapath/pacer_interval_ble5_test/pacer_interval_ble5_test.py +13 -11
- {brg_certificate → certificate}/tests/datapath/pacer_interval_test/pacer_interval_test.json +2 -1
- {brg_certificate → certificate}/tests/datapath/pacer_interval_test/pacer_interval_test.py +9 -7
- {brg_certificate → certificate}/tests/datapath/pattern_test/pattern_test.json +3 -2
- {brg_certificate → certificate}/tests/datapath/pattern_test/pattern_test.py +18 -6
- certificate/tests/datapath/pkt_filter_ble5_chl21_test/pkt_filter_ble5_chl21_test.json +20 -0
- certificate/tests/datapath/pkt_filter_ble5_chl21_test/pkt_filter_ble5_chl21_test.py +61 -0
- {brg_certificate → certificate}/tests/datapath/pkt_filter_ble5_test/pkt_filter_ble5_test.json +2 -1
- {brg_certificate → certificate}/tests/datapath/pkt_filter_ble5_test/pkt_filter_ble5_test.py +15 -14
- certificate/tests/datapath/pkt_filter_brg2gw_ext_adv_test/pkt_filter_brg2gw_ext_adv_test.json +19 -0
- certificate/tests/datapath/pkt_filter_brg2gw_ext_adv_test/pkt_filter_brg2gw_ext_adv_test.py +85 -0
- {brg_certificate → certificate}/tests/datapath/pkt_filter_gen3_test/pkt_filter_gen3_test.json +2 -1
- {brg_certificate → certificate}/tests/datapath/pkt_filter_gen3_test/pkt_filter_gen3_test.py +10 -9
- {brg_certificate → certificate}/tests/datapath/pkt_filter_test/pkt_filter_test.json +2 -1
- {brg_certificate → certificate}/tests/datapath/pkt_filter_test/pkt_filter_test.py +10 -9
- {brg_certificate → certificate}/tests/datapath/rssi_threshold_test/rssi_threshold_test.json +3 -2
- {brg_certificate → certificate}/tests/datapath/rssi_threshold_test/rssi_threshold_test.py +9 -8
- brg_certificate/tests/datapath/output_power_test/output_power_test.json → certificate/tests/datapath/rx_channel_hopping_test/rx_channel_hopping_test.json +6 -4
- certificate/tests/datapath/rx_channel_hopping_test/rx_channel_hopping_test.py +77 -0
- {brg_certificate → certificate}/tests/datapath/rx_channel_test/rx_channel_test.json +3 -2
- {brg_certificate → certificate}/tests/datapath/rx_channel_test/rx_channel_test.py +7 -6
- {brg_certificate → certificate}/tests/datapath/rx_rate_gen2_test/rx_rate_gen2_test.json +8 -7
- {brg_certificate → certificate}/tests/datapath/rx_rate_gen2_test/rx_rate_gen2_test.py +113 -73
- {brg_certificate → certificate}/tests/datapath/rx_rate_gen3_test/rx_rate_gen3_test.json +8 -7
- {brg_certificate → certificate}/tests/datapath/rx_rate_gen3_test/rx_rate_gen3_test.py +112 -72
- {brg_certificate → certificate}/tests/datapath/stress_gen3_test/stress_gen3_test.json +4 -3
- {brg_certificate → certificate}/tests/datapath/stress_gen3_test/stress_gen3_test.py +15 -11
- {brg_certificate → certificate}/tests/datapath/stress_test/stress_test.json +4 -3
- {brg_certificate → certificate}/tests/datapath/stress_test/stress_test.py +15 -11
- {brg_certificate → certificate}/tests/datapath/tx_repetition_test/tx_repetition_test.json +3 -1
- {brg_certificate → certificate}/tests/datapath/tx_repetition_test/tx_repetition_test.py +14 -13
- certificate/tests/edge_mgmt/action_blink_test/action_blink_test.json +15 -0
- certificate/tests/edge_mgmt/action_blink_test/action_blink_test.py +24 -0
- certificate/tests/edge_mgmt/action_get_battery_sensor_test/action_get_battery_sensor_test.json +15 -0
- certificate/tests/edge_mgmt/action_get_battery_sensor_test/action_get_battery_sensor_test.py +43 -0
- certificate/tests/edge_mgmt/action_get_module_test/action_get_module_test.json +15 -0
- certificate/tests/edge_mgmt/action_get_module_test/action_get_module_test.py +42 -0
- certificate/tests/edge_mgmt/action_get_pof_data_test/action_get_pof_data_test.json +15 -0
- certificate/tests/edge_mgmt/action_get_pof_data_test/action_get_pof_data_test.py +44 -0
- certificate/tests/edge_mgmt/action_gw_hb_test/action_gw_hb_test.json +16 -0
- certificate/tests/edge_mgmt/action_gw_hb_test/action_gw_hb_test.py +42 -0
- certificate/tests/edge_mgmt/action_reboot_test/action_reboot_test.json +15 -0
- certificate/tests/edge_mgmt/action_reboot_test/action_reboot_test.py +49 -0
- certificate/tests/edge_mgmt/action_restore_defaults_test/action_restore_defaults_test.json +15 -0
- certificate/tests/edge_mgmt/action_restore_defaults_test/action_restore_defaults_test.py +102 -0
- certificate/tests/edge_mgmt/action_send_hb_test/action_send_hb_test.json +15 -0
- certificate/tests/edge_mgmt/action_send_hb_test/action_send_hb_test.py +45 -0
- {brg_certificate → certificate}/tests/edge_mgmt/periodic_msgs_test/periodic_msgs_test.json +3 -2
- {brg_certificate → certificate}/tests/edge_mgmt/periodic_msgs_test/periodic_msgs_test.py +22 -11
- {brg_certificate → certificate}/tests/energy2400/duty_cycle_test/duty_cycle_test.json +2 -1
- {brg_certificate → certificate}/tests/energy2400/duty_cycle_test/duty_cycle_test.py +7 -6
- certificate/tests/energy2400/output_power_test/output_power_test.json +23 -0
- {brg_certificate → certificate}/tests/energy2400/output_power_test/output_power_test.py +17 -6
- {brg_certificate → certificate}/tests/energy2400/pattern_test/pattern_test.json +2 -1
- {brg_certificate → certificate}/tests/energy2400/pattern_test/pattern_test.py +7 -6
- certificate/tests/energy2400/signal_indicator_ble5_test/signal_indicator_ble5_test.json +26 -0
- certificate/tests/energy2400/signal_indicator_ble5_test/signal_indicator_ble5_test.py +379 -0
- certificate/tests/energy2400/signal_indicator_ext_adv_test/signal_indicator_ext_adv_test.json +20 -0
- certificate/tests/energy2400/signal_indicator_ext_adv_test/signal_indicator_ext_adv_test.py +173 -0
- certificate/tests/energy2400/signal_indicator_test/signal_indicator_test.json +24 -0
- certificate/tests/energy2400/signal_indicator_test/signal_indicator_test.py +350 -0
- {brg_certificate → certificate}/tests/energy_sub1g/duty_cycle_test/duty_cycle_test.json +2 -1
- {brg_certificate → certificate}/tests/energy_sub1g/duty_cycle_test/duty_cycle_test.py +7 -6
- {brg_certificate → certificate}/tests/energy_sub1g/pattern_test/pattern_test.json +2 -1
- {brg_certificate → certificate}/tests/energy_sub1g/pattern_test/pattern_test.py +7 -6
- {brg_certificate → certificate}/tests/pwr_mgmt/pwr_mgmt_test/pwr_mgmt_test.json +2 -1
- {brg_certificate → certificate}/tests/pwr_mgmt/pwr_mgmt_test/pwr_mgmt_test.py +10 -10
- {brg_certificate → certificate}/tests/sensors/ext_sensor_test/ext_sensor_test.json +5 -4
- certificate/tests/sensors/ext_sensor_test/ext_sensor_test.py +450 -0
- certificate/wlt_types.py +122 -0
- {gw_certificate → common}/api_if/202/status.json +6 -0
- {gw_certificate → common}/api_if/203/status.json +6 -0
- {gw_certificate → common}/api_if/204/status.json +6 -0
- common/api_if/206/data.json +85 -0
- common/api_if/206/status.json +69 -0
- common/api_if/api_validation.py +91 -0
- common/web/templates/generator.html +210 -0
- common/web/templates/index.html +20 -0
- common/web/templates/menu.html +54 -0
- common/web/templates/parser.html +53 -0
- {brg_certificate/ag → common/web/templates}/wlt_types.html +1216 -191
- common/web/web_utils.py +399 -0
- {brg_certificate → common}/wltPb_pb2.py +14 -12
- {gw_certificate/common → common}/wltPb_pb2.pyi +16 -2
- gui_certificate/gui_certificate_cli.py +14 -0
- gui_certificate/server.py +1267 -0
- gui_certificate/templates/cert_run.html +1273 -0
- wiliot_certificate-4.5.0.dist-info/METADATA +99 -0
- wiliot_certificate-4.5.0.dist-info/RECORD +168 -0
- {wiliot_certificate-4.4.3.dist-info → wiliot_certificate-4.5.0.dist-info}/WHEEL +1 -1
- wiliot_certificate-4.5.0.dist-info/entry_points.txt +5 -0
- wiliot_certificate-4.5.0.dist-info/top_level.txt +3 -0
- brg_certificate/ag/energous_v0_defines.py +0 -925
- brg_certificate/ag/energous_v1_defines.py +0 -931
- brg_certificate/ag/energous_v2_defines.py +0 -925
- brg_certificate/ag/energous_v3_defines.py +0 -925
- brg_certificate/ag/energous_v4_defines.py +0 -925
- brg_certificate/ag/fanstel_lan_v0_defines.py +0 -925
- brg_certificate/ag/fanstel_lte_v0_defines.py +0 -925
- brg_certificate/ag/fanstel_wifi_v0_defines.py +0 -925
- brg_certificate/ag/minew_lte_v0_defines.py +0 -925
- brg_certificate/ag/wlt_types_ag_jsons/brg2brg_ota.json +0 -142
- brg_certificate/ag/wlt_types_ag_jsons/brg2gw_hb.json +0 -785
- brg_certificate/ag/wlt_types_ag_jsons/brg2gw_hb_sleep.json +0 -139
- brg_certificate/ag/wlt_types_ag_jsons/calibration.json +0 -394
- brg_certificate/ag/wlt_types_ag_jsons/custom.json +0 -515
- brg_certificate/ag/wlt_types_ag_jsons/datapath.json +0 -672
- brg_certificate/ag/wlt_types_ag_jsons/energy2400.json +0 -550
- brg_certificate/ag/wlt_types_ag_jsons/energySub1g.json +0 -595
- brg_certificate/ag/wlt_types_ag_jsons/externalSensor.json +0 -598
- brg_certificate/ag/wlt_types_ag_jsons/interface.json +0 -938
- brg_certificate/ag/wlt_types_ag_jsons/powerManagement.json +0 -1234
- brg_certificate/ag/wlt_types_ag_jsons/side_info_sensor.json +0 -105
- brg_certificate/ag/wlt_types_ag_jsons/signal_indicator_data.json +0 -77
- brg_certificate/ag/wlt_types_ag_jsons/unified_echo_ext_pkt.json +0 -61
- brg_certificate/ag/wlt_types_ag_jsons/unified_echo_pkt.json +0 -110
- brg_certificate/brg_certificate.py +0 -225
- brg_certificate/brg_certificate_cli.py +0 -63
- brg_certificate/cert_common.py +0 -923
- brg_certificate/cert_config.py +0 -402
- brg_certificate/cert_utils.py +0 -362
- brg_certificate/certificate_bcc_sanity_test_list.txt +0 -40
- brg_certificate/certificate_bcc_test_list.txt +0 -48
- brg_certificate/certificate_sanity_test_list.txt +0 -43
- brg_certificate/certificate_test_list.txt +0 -53
- brg_certificate/config/eclipse.json +0 -10
- brg_certificate/config/hivemq.json +0 -10
- brg_certificate/config/mosquitto.json +0 -10
- brg_certificate/config/mosquitto.md +0 -95
- brg_certificate/config/wiliot-dev.json +0 -10
- brg_certificate/restore_brg.py +0 -61
- brg_certificate/tests/calibration/output_power_test/output_power_test.json +0 -16
- brg_certificate/tests/calibration/output_power_test/output_power_test.py +0 -28
- brg_certificate/tests/datapath/aging_test/aging_test.py +0 -143
- brg_certificate/tests/datapath/pacer_interval_tags_count_test/pacer_interval_tags_count_test.json +0 -16
- brg_certificate/tests/datapath/pacer_interval_tags_count_test/pacer_interval_tags_count_test.py +0 -73
- brg_certificate/tests/datapath/tx_repetition_algo_test/tx_repetition_algo_test.json +0 -17
- brg_certificate/tests/datapath/tx_repetition_algo_test/tx_repetition_algo_test.py +0 -118
- brg_certificate/tests/edge_mgmt/actions_test/actions_test.json +0 -14
- brg_certificate/tests/edge_mgmt/actions_test/actions_test.py +0 -396
- brg_certificate/tests/edge_mgmt/brg2brg_ota_ble5_test/brg2brg_ota_ble5_test.json +0 -20
- brg_certificate/tests/edge_mgmt/brg2brg_ota_ble5_test/brg2brg_ota_ble5_test.py +0 -94
- brg_certificate/tests/edge_mgmt/brg2brg_ota_test/brg2brg_ota_test.json +0 -19
- brg_certificate/tests/edge_mgmt/brg2brg_ota_test/brg2brg_ota_test.py +0 -87
- brg_certificate/tests/edge_mgmt/leds_test/leds_test.json +0 -17
- brg_certificate/tests/edge_mgmt/leds_test/leds_test.py +0 -223
- brg_certificate/tests/edge_mgmt/ota_test/ota_test.json +0 -17
- brg_certificate/tests/edge_mgmt/ota_test/ota_test.py +0 -128
- brg_certificate/tests/energy2400/output_power_test/output_power_test.json +0 -16
- brg_certificate/tests/energy2400/signal_indicator_ble5_10_250k_test/signal_indicator_ble5_10_250k_test.json +0 -20
- brg_certificate/tests/energy2400/signal_indicator_ble5_10_250k_test/signal_indicator_ble5_10_250k_test.py +0 -321
- brg_certificate/tests/energy2400/signal_indicator_ble5_10_500k_test/signal_indicator_ble5_10_500k_test.json +0 -20
- brg_certificate/tests/energy2400/signal_indicator_ble5_10_500k_test/signal_indicator_ble5_10_500k_test.py +0 -321
- brg_certificate/tests/energy2400/signal_indicator_sub1g_2_4_test/signal_indicator_sub1g_2_4_test.json +0 -20
- brg_certificate/tests/energy2400/signal_indicator_sub1g_2_4_test/signal_indicator_sub1g_2_4_test.py +0 -141
- brg_certificate/tests/energy2400/signal_indicator_test/signal_indicator_test.json +0 -20
- brg_certificate/tests/energy2400/signal_indicator_test/signal_indicator_test.py +0 -276
- brg_certificate/tests/energy_sub1g/signal_indicator_functionality_test/signal_indicator_functionality_test.json +0 -20
- brg_certificate/tests/energy_sub1g/signal_indicator_functionality_test/signal_indicator_functionality_test.py +0 -390
- brg_certificate/tests/energy_sub1g/signal_indicator_test/signal_indicator_test.json +0 -16
- brg_certificate/tests/energy_sub1g/signal_indicator_test/signal_indicator_test.py +0 -28
- brg_certificate/tests/sensors/ext_sensor_test/ext_sensor_test.py +0 -305
- brg_certificate/wltPb_pb2.pyi +0 -234
- brg_certificate/wlt_types.py +0 -113
- gw_certificate/ag/ut_defines.py +0 -364
- gw_certificate/ag/wlt_types.py +0 -85
- gw_certificate/ag/wlt_types_ag.py +0 -5310
- gw_certificate/ag/wlt_types_data.py +0 -64
- gw_certificate/api/extended_api.py +0 -23
- gw_certificate/api_if/200/data.json +0 -106
- gw_certificate/api_if/200/status.json +0 -47
- gw_certificate/api_if/201/data.json +0 -98
- gw_certificate/api_if/201/status.json +0 -53
- gw_certificate/api_if/205/logs.json +0 -12
- gw_certificate/api_if/api_validation.py +0 -38
- gw_certificate/api_if/gw_capabilities.py +0 -54
- gw_certificate/cert_results.py +0 -145
- gw_certificate/common/analysis_data_bricks.py +0 -60
- gw_certificate/common/debug.py +0 -42
- gw_certificate/common/serialization_formatter.py +0 -93
- gw_certificate/common/utils.py +0 -8
- gw_certificate/common/utils_defines.py +0 -15
- gw_certificate/common/wltPb_pb2.py +0 -84
- gw_certificate/gw_certificate.py +0 -154
- gw_certificate/gw_certificate_cli.py +0 -87
- gw_certificate/interface/4.4.93_app.zip +0 -0
- gw_certificate/interface/4.4.93_sd_bl_app.zip +0 -0
- gw_certificate/interface/ble_simulator.py +0 -61
- gw_certificate/interface/ble_sniffer.py +0 -189
- gw_certificate/interface/flash_fw.py +0 -90
- gw_certificate/interface/if_defines.py +0 -36
- gw_certificate/interface/mqtt.py +0 -563
- gw_certificate/interface/nrfutil-linux +0 -0
- gw_certificate/interface/nrfutil-mac +0 -0
- gw_certificate/interface/nrfutil.exe +0 -0
- gw_certificate/interface/pkt_generator.py +0 -594
- gw_certificate/interface/uart_if.py +0 -236
- gw_certificate/interface/uart_ports.py +0 -20
- gw_certificate/templates/results.html +0 -241
- gw_certificate/templates/stage.html +0 -22
- gw_certificate/templates/table.html +0 -6
- gw_certificate/templates/test.html +0 -38
- gw_certificate/tests/__init__.py +0 -10
- gw_certificate/tests/actions.py +0 -289
- gw_certificate/tests/bad_crc_to_PER_quantization.csv +0 -51
- gw_certificate/tests/connection.py +0 -188
- gw_certificate/tests/downlink.py +0 -172
- gw_certificate/tests/generic.py +0 -238
- gw_certificate/tests/registration.py +0 -340
- gw_certificate/tests/static/__init__.py +0 -0
- gw_certificate/tests/static/connection_defines.py +0 -9
- gw_certificate/tests/static/downlink_defines.py +0 -9
- gw_certificate/tests/static/generated_packet_table.py +0 -195
- gw_certificate/tests/static/packet_table.csv +0 -10067
- gw_certificate/tests/static/references.py +0 -5
- gw_certificate/tests/static/uplink_defines.py +0 -14
- gw_certificate/tests/throughput.py +0 -240
- gw_certificate/tests/uplink.py +0 -853
- wiliot_certificate-4.4.3.dist-info/METADATA +0 -211
- wiliot_certificate-4.4.3.dist-info/RECORD +0 -210
- wiliot_certificate-4.4.3.dist-info/entry_points.txt +0 -3
- wiliot_certificate-4.4.3.dist-info/top_level.txt +0 -3
- {brg_certificate → certificate}/__init__.py +0 -0
- {gw_certificate → common}/api_if/202/data.json +0 -0
- {gw_certificate/api_if/200 → common/api_if/202}/logs.json +0 -0
- {gw_certificate → common}/api_if/203/data.json +0 -0
- {gw_certificate/api_if/201 → common/api_if/203}/logs.json +0 -0
- {gw_certificate → common}/api_if/204/data.json +0 -0
- {gw_certificate/api_if/202 → common/api_if/204}/logs.json +0 -0
- {gw_certificate → common}/api_if/205/data.json +0 -0
- {gw_certificate/api_if/203 → common/api_if/205}/logs.json +0 -0
- {gw_certificate → common}/api_if/205/status.json +0 -0
- {gw_certificate/api_if/204 → common/api_if/206}/logs.json +0 -0
- {gw_certificate → common/api_if}/__init__.py +0 -0
- {gw_certificate/api_if → gui_certificate}/__init__.py +0 -0
- {wiliot_certificate-4.4.3.dist-info → wiliot_certificate-4.5.0.dist-info}/licenses/LICENSE +0 -0
gw_certificate/ag/ut_defines.py
DELETED
|
@@ -1,364 +0,0 @@
|
|
|
1
|
-
# Files
|
|
2
|
-
UT_MQTT_LOG_FILE = "ut_mqtt_log.json"
|
|
3
|
-
|
|
4
|
-
# GW defines
|
|
5
|
-
GW_ID = "gatewayId"
|
|
6
|
-
ADDITIONAL = "additional"
|
|
7
|
-
REPORTED_CONF = "reportedConf"
|
|
8
|
-
GW_CONF = "gatewayConf"
|
|
9
|
-
GW_NAME = "gatewayName"
|
|
10
|
-
GW_API_VERSION = "apiVersion"
|
|
11
|
-
LAT = "lat"
|
|
12
|
-
LNG = "lng"
|
|
13
|
-
WLT_SERVER = "wiliotServer"
|
|
14
|
-
PACER_INTERVAL = "pacerInterval"
|
|
15
|
-
PKT_TYPES_MASK = "packetTypesMask"
|
|
16
|
-
RX_TX_PERIOD = "rxTxPeriodMs"
|
|
17
|
-
TX_PERIOD = "txPeriodMs"
|
|
18
|
-
ENERGY_PATTERN = "energyPattern"
|
|
19
|
-
OUTPUT_POWER_2_4 = "2.4GhzOutputPower"
|
|
20
|
-
NFPKT = "nfpkt"
|
|
21
|
-
RSSI = "rssi"
|
|
22
|
-
SRC_ID = "src_id"
|
|
23
|
-
|
|
24
|
-
MUL_BRG_TEST_MIN = 2
|
|
25
|
-
INTERNAL_BRG_RSSI = 1
|
|
26
|
-
BRIDGE_ID = "bridgeId"
|
|
27
|
-
ALIAS_BRIDGE_ID = "aliasBridgeId"
|
|
28
|
-
GROUP_ID = "group_id"
|
|
29
|
-
BRG_ACTION = "bridgeAction"
|
|
30
|
-
INTERNAL_BRG_STR = "internal_brg"
|
|
31
|
-
INTERNAL = "INTERNAL"
|
|
32
|
-
|
|
33
|
-
GW_DATA_MODE = "gwDataMode"
|
|
34
|
-
TAGS_AND_BRGS = "Tags & Bridges"
|
|
35
|
-
TAGS_ONLY = "Tags only"
|
|
36
|
-
BRGS_ONLY_37 = "Bridges only (ch37)"
|
|
37
|
-
BRGS_ONLY_38 = "Bridges only (ch38)"
|
|
38
|
-
BRGS_ONLY_39 = "Bridges only (ch39)"
|
|
39
|
-
HIBERNATE = "Hibernate"
|
|
40
|
-
|
|
41
|
-
BLE_WIFI = "ble_wifi"
|
|
42
|
-
BLE_LAN = "ble_lan"
|
|
43
|
-
|
|
44
|
-
WLT_SERVER = "wiliotServer"
|
|
45
|
-
PACER_INTERVAL = "pacerInterval"
|
|
46
|
-
OUTPUT_POWER_2_4 = "2.4GhzOutputPower"
|
|
47
|
-
USE_STAT_LOC = "useStaticLocation"
|
|
48
|
-
GW_ENERGY_PATTERN = "energizingPattern"
|
|
49
|
-
VERSION = "version"
|
|
50
|
-
WIFI_VERSION = "interfaceChipSwVersion"
|
|
51
|
-
BLE_VERSION = "bleChipSwVersion"
|
|
52
|
-
DATA_COUPLING = "dataCoupling"
|
|
53
|
-
GW_MODE = "gwMode"
|
|
54
|
-
PROD = "prod"
|
|
55
|
-
|
|
56
|
-
GET_INFO_ACTION = "getGwInfo"
|
|
57
|
-
REBOOT_GW_ACTION = "rebootGw"
|
|
58
|
-
LOG_PERIOD_ACTION = "LogPeriodSet"
|
|
59
|
-
GET_LOGS = "getLogs"
|
|
60
|
-
GW_INFO = "gatewayInfo"
|
|
61
|
-
GW_LOGS = "gatewayLogs"
|
|
62
|
-
GW_LATITUDE = "Latitude"
|
|
63
|
-
GW_LONGITUDE = "Longitude"
|
|
64
|
-
GW_LOG_PERIOD = 30
|
|
65
|
-
|
|
66
|
-
# Thin gw defines
|
|
67
|
-
THIN_GW_PROTOCOL_VERSION = "protocolVersion"
|
|
68
|
-
TX_PKT = "txPacket"
|
|
69
|
-
TX_MAX_DURATION_MS = "txMaxDurationMs"
|
|
70
|
-
TX_MAX_RETRIES = "txMaxRetries"
|
|
71
|
-
TRANPARENT_PKT_LEN = 31 * 2
|
|
72
|
-
COUPLED_DATA_PKT_LEN = 29 * 2 # No 1E16
|
|
73
|
-
|
|
74
|
-
# Configurable brg fields' names
|
|
75
|
-
BRG_TX_REPETITION = "tx_repetition"
|
|
76
|
-
BRG_GLOBAL_PACING_GROUP = "global_pacing_group"
|
|
77
|
-
BRG_OUTPUT_POWER = "output_power"
|
|
78
|
-
BRG_CALIB_OUTPUT_POWER = "calib_output_power"
|
|
79
|
-
BRG_COMM_OUTPUT_POWER = "comm_output_power"
|
|
80
|
-
BRG_CALIB_INTERVAL = "calib_interval"
|
|
81
|
-
BRG_CALIB_PATTERN = "calib_pattern"
|
|
82
|
-
BRG_RXTX_PERIOD = "rx_tx_period" # rx_tx_period_ms in Brg2GwCfg & Gw2BrgCfg
|
|
83
|
-
BRG_TX_PERIOD = "tx_period" # tx_period_ms in Brg2GwCfg & Gw2BrgCfg
|
|
84
|
-
BRG_DUTY_CYCLE = "duty_cycle"
|
|
85
|
-
BRG_CYCLE = "cycle"
|
|
86
|
-
BRG_PACER_INTERVAL = "pacer_interval"
|
|
87
|
-
BRG_PKT_FILTER = "pkt_filter"
|
|
88
|
-
BRG_ENERGY_PATTERN_2_4 = "energy_pattern_2400"
|
|
89
|
-
BRG_SUB1GHZ_ENERGY_PATTERN = "sub1g_energy_pattern"
|
|
90
|
-
BRG_ADAPTIVE_PACER = "adaptive_pacer"
|
|
91
|
-
BRG_UNIFIED_ECHO_PKT = "unified_echo_pkt"
|
|
92
|
-
BRG_COMM_PATTERN = "comm_pattern"
|
|
93
|
-
|
|
94
|
-
# Common defines
|
|
95
|
-
PACKETS = "packets"
|
|
96
|
-
TIMESTAMP = "timestamp"
|
|
97
|
-
ACTION = "action"
|
|
98
|
-
PAYLOAD = "payload"
|
|
99
|
-
SEQUENCE_ID = "sequenceId"
|
|
100
|
-
MODULE_IF = "module IF"
|
|
101
|
-
HB = "HB"
|
|
102
|
-
DATETIME = "datetime"
|
|
103
|
-
TIME = "time"
|
|
104
|
-
TIMESTAMP_DELTA = "timestamp_delta"
|
|
105
|
-
TAGS_COUNT = "tags_count"
|
|
106
|
-
NEW_TAGS = "new_tags"
|
|
107
|
-
TTFP = "ttfp"
|
|
108
|
-
|
|
109
|
-
# External Sensors
|
|
110
|
-
IS_SENSOR = "isSensor"
|
|
111
|
-
IS_EMBEDDED = "isEmbedded"
|
|
112
|
-
IS_SCRAMBLED = "isScrambled"
|
|
113
|
-
SENSOR_UUID = "sensorServiceId"
|
|
114
|
-
SENSOR_ID = "sensorId"
|
|
115
|
-
|
|
116
|
-
# OTA
|
|
117
|
-
STATUS_CODE_STR = "statusCode"
|
|
118
|
-
IMG_DIR_URL = "imageDirUrl"
|
|
119
|
-
UPGRADE_BLSD = "upgradeBlSd"
|
|
120
|
-
VER_UUID_STR = "versionUUID"
|
|
121
|
-
VER_MAX_LEN = 31
|
|
122
|
-
|
|
123
|
-
# Versions
|
|
124
|
-
VERSIONS = {
|
|
125
|
-
"1.5.0" : {WIFI_VERSION: "3.5.32", BLE_VERSION: "3.7.25"},
|
|
126
|
-
"1.5.2" : {WIFI_VERSION: "3.5.132", BLE_VERSION: "3.7.25"},
|
|
127
|
-
"1.6.1" : {WIFI_VERSION: "3.5.51", BLE_VERSION: "3.8.18"},
|
|
128
|
-
"1.7.0" : {WIFI_VERSION: "3.9.8", BLE_VERSION: "3.9.24"},
|
|
129
|
-
"1.7.1" : {WIFI_VERSION: "3.10.6", BLE_VERSION: "3.10.13"},
|
|
130
|
-
"1.8.0" : {WIFI_VERSION: "3.11.36", BLE_VERSION: "3.11.40"},
|
|
131
|
-
"1.8.2" : {WIFI_VERSION: "3.11.36", BLE_VERSION: "3.11.42"},
|
|
132
|
-
"1.9.0" : {WIFI_VERSION: "3.12.10", BLE_VERSION: "3.12.36"},
|
|
133
|
-
"1.10.1" : {WIFI_VERSION: "3.13.29", BLE_VERSION: "3.13.25"},
|
|
134
|
-
"3.14.0" : {WIFI_VERSION: "3.14.33", BLE_VERSION: "3.14.64"},
|
|
135
|
-
"3.15.0" : {WIFI_VERSION: "3.15.38", BLE_VERSION: "3.15.72"},
|
|
136
|
-
"3.16.3" : {WIFI_VERSION: "3.16.20", BLE_VERSION: "3.16.96"},
|
|
137
|
-
"3.17.0" : {WIFI_VERSION: "3.17.25", BLE_VERSION: "3.17.90"},
|
|
138
|
-
"4.0.0" : {WIFI_VERSION: "4.0.8", BLE_VERSION: "4.0.65"},
|
|
139
|
-
"4.1.0" : {WIFI_VERSION: "4.1.8", BLE_VERSION: "4.1.33"}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
# Tests defines
|
|
143
|
-
DEFAULT_GW_FIELD_UPDATE_TIMEOUT = 10
|
|
144
|
-
DEFAULT_BRG_FIELD_UPDATE_TIMEOUT = 10
|
|
145
|
-
HB_PERIOD = 30
|
|
146
|
-
VER_UPDATE_TIMEOUT = 300
|
|
147
|
-
GW_LATITUDE_DEFAULT = 33.0222
|
|
148
|
-
GW_LONGITUDE_DEFAULT = -117.0839
|
|
149
|
-
# Set to work with default when versions tests only pass through new api ver
|
|
150
|
-
GW_API_VER_DEFAULT = "201"
|
|
151
|
-
GW_API_VER_OLD = "200"
|
|
152
|
-
BRG_CFG_HAS_LEN = 2
|
|
153
|
-
CLEAR_DATA_PATH_TIMEOUT = 10
|
|
154
|
-
BRG_ADVERTISEMENT_TIMEOUT = 30 + 2 # First 30 for wlt app start & 2 extra for brg to settle to recieve its get module action
|
|
155
|
-
BRG_OTA_TIMEOUT = 100
|
|
156
|
-
ACTION_LONG_TIMEOUT = 120
|
|
157
|
-
ACTION_SI_PKT_TIMEOUT = 10
|
|
158
|
-
ACTION_SHORT_TIMEOUT = 5
|
|
159
|
-
|
|
160
|
-
# Internal python ut defines - used only in ut
|
|
161
|
-
PACER_INTERVAL_THRESHOLD_HIGH = 0.90
|
|
162
|
-
PACER_INTERVAL_THRESHOLD = 0.80
|
|
163
|
-
GLOBAL_PACING_GROUP_THRESHOLD = 0.70
|
|
164
|
-
PACKETS_ECHO_OFF = 16
|
|
165
|
-
TEST_PASSED = 0
|
|
166
|
-
TEST_FAILED = -1
|
|
167
|
-
TEST_INCONCLUSIVE = 1
|
|
168
|
-
TEST_INFO = 2
|
|
169
|
-
TEST_WARNING = 3
|
|
170
|
-
TEST_OPTIONAL = 4
|
|
171
|
-
NO_RESPONSE = "NO_RESPONSE"
|
|
172
|
-
DONE = "DONE"
|
|
173
|
-
MGMT_PKT = "mgmt_pkt"
|
|
174
|
-
UNIFIED_PKT = "unified_pkt"
|
|
175
|
-
SIDE_INFO_PKT = "side_info_pkt"
|
|
176
|
-
DECODED_DATA = "decoded_data"
|
|
177
|
-
TAG_ID = "tag_id"
|
|
178
|
-
PACKET_CNTR = "packet_cntr"
|
|
179
|
-
PACKET_TYPE = "packet_type"
|
|
180
|
-
PACKET_DATA = "packet_data"
|
|
181
|
-
PKTS = "pkts"
|
|
182
|
-
MQTT_LOG_PRE_STR = "mqtt_log_"
|
|
183
|
-
GW_DATA = "gw_data"
|
|
184
|
-
GW_ID = "gw_id"
|
|
185
|
-
CER = "cer"
|
|
186
|
-
PKT_CNTR_DIFF = "packet_cntr_diff"
|
|
187
|
-
AVG = "avg_"
|
|
188
|
-
CER_PER_TAG = "cer_per_tag"
|
|
189
|
-
AWS = "aws"
|
|
190
|
-
TEST = "test"
|
|
191
|
-
|
|
192
|
-
# test reasons
|
|
193
|
-
BRG_VER_SUCCESS = "SUCCESS - BRG version matches expected version!"
|
|
194
|
-
WANTED_VER_SAME = "Wanted version is same as original one!"
|
|
195
|
-
WANTED_VER_SAME_MUL = "Wanted versions is same as original ones!"
|
|
196
|
-
VER_UPDATE_PASSED = "Version Update Ran Successfully!"
|
|
197
|
-
VER_UPDATE_FAILED = "The Update Process Has Been Interrupted!"
|
|
198
|
-
|
|
199
|
-
# Non Default defines
|
|
200
|
-
BRG_NON_DEFAULT_DUTY_CYCLE = 15
|
|
201
|
-
BRG_NON_DEFAULT_OP_2_4 = 6
|
|
202
|
-
BRG_NON_DEFAULT_EP_2_4 = 1
|
|
203
|
-
BRG_NON_DEFAULT_OUTPUT_POWER_SUB1G = 26
|
|
204
|
-
BRG_NON_DEFAULT_CYCLE_SUB1G = 40
|
|
205
|
-
BRG_NON_DEFAULT_PWR_MGMT_KEEP_ALIVE_SCAN = 0
|
|
206
|
-
BRG_NON_DEFAULT_TX_REPETITION = 2
|
|
207
|
-
BRG_NON_DEFAULT_PACER_INTERVAL = 20
|
|
208
|
-
BRG_NON_DEFAULT_CALIB_OUTPUT_POWER = 8
|
|
209
|
-
BRG_NON_DEFAULT_PKT_FILTER = 17
|
|
210
|
-
BRG_NON_DEFAULT_CALIB_PATTERN = 2
|
|
211
|
-
BRG_NON_DEFAULT_CALIB_INTERVAL = 15
|
|
212
|
-
|
|
213
|
-
LIS2DW12_NON_DEFAULT_STATE_THRESHOLD = 93
|
|
214
|
-
LIS2DW12_NON_DEFAULT_WAKE_UP_DURATION = 120
|
|
215
|
-
LIS2DW12_NON_DEFAULT_SLEEP_DURATION = 35
|
|
216
|
-
|
|
217
|
-
# ---------------------------------------------------RTSA defines---------------------------------------------------
|
|
218
|
-
# common defines
|
|
219
|
-
TRACE_LOG_FILE_NAME = "TRACELOG"
|
|
220
|
-
TRACE_LOG_FILE_PATH = "C:/SignalVu-PC Files/" + TRACE_LOG_FILE_NAME + ".TOV"
|
|
221
|
-
|
|
222
|
-
# freq defines
|
|
223
|
-
FREQ_2_4_GHZ = {'37':2.402, '38':2.426, '39':2.480}
|
|
224
|
-
FREQ_SUB1G_MHZ = {'865_7':865.700, '915':915.000, '916_3':916.300, '917_5':917.500, '918':918.000, '919_1':919.100}
|
|
225
|
-
|
|
226
|
-
# SignalVu API commands defines
|
|
227
|
-
TRACE_DETECTION = {'average':'AVERage', 'positive':'POSitive', 'negative':'NEGative', 'positive-negative':'POSNegative', 'sample':'SAMPle'}
|
|
228
|
-
MAX_TRACE_POINTS = {'1K':'ONEK', '10K':'TENK', '100K':'HUNDredk', 'never_decimate':'NEVerdecimate' }
|
|
229
|
-
|
|
230
|
-
# default values
|
|
231
|
-
DEFAULT_LENGTH_MS = 30
|
|
232
|
-
DEFAULT_TIME_PER_DIVISION_SEC = 5
|
|
233
|
-
DEFAULT_RX_TX_PERIOD_SEC = 0.015
|
|
234
|
-
BEACON_MIN_LENGTH_SEC = 375e-6
|
|
235
|
-
BEACON_MAX_LENGTH_SEC = 500e-6
|
|
236
|
-
ENERGIZING_TIME_THRESHOLD = 0.3
|
|
237
|
-
BEACON_POWER_THRESHOLD = 0.9
|
|
238
|
-
BEACON_POWER_CURVE_38 = 0.7
|
|
239
|
-
BEACON_POWER_CURVE_39 = 0.625
|
|
240
|
-
DEFAULT_SPAN_MHZ = 5
|
|
241
|
-
RXTX_MAX_CFG = 255
|
|
242
|
-
RXTX_CFG_DEFAULT = 100
|
|
243
|
-
|
|
244
|
-
# test times
|
|
245
|
-
FREQ_BEACONS_ANALYSIS_TIME_DELTA = 10
|
|
246
|
-
|
|
247
|
-
# structured energizing patterns information
|
|
248
|
-
class energizingPattern:
|
|
249
|
-
def __init__(self, ble_calibration_beacons = [], ble_energy = {}, ble_post_energy_beacons = [], sub1G_energy = False, info = ""):
|
|
250
|
-
self.ble_calibration_beacons = ble_calibration_beacons
|
|
251
|
-
self.ble_energy = ble_energy
|
|
252
|
-
self.ble_post_energy_beacons = ble_post_energy_beacons
|
|
253
|
-
self.sub1G_energy = sub1G_energy
|
|
254
|
-
self.info = info
|
|
255
|
-
|
|
256
|
-
EP_INFO = {
|
|
257
|
-
'17' : energizingPattern(ble_calibration_beacons=[FREQ_2_4_GHZ['37'], FREQ_2_4_GHZ['38'], FREQ_2_4_GHZ['39']]),
|
|
258
|
-
'18' : energizingPattern(ble_calibration_beacons=[FREQ_2_4_GHZ['37'], FREQ_2_4_GHZ['38'], FREQ_2_4_GHZ['39']], ble_energy={FREQ_2_4_GHZ['39'] : 1.0}),
|
|
259
|
-
'20' : energizingPattern(ble_calibration_beacons=[FREQ_2_4_GHZ['37'], FREQ_2_4_GHZ['38'], FREQ_2_4_GHZ['39']], ble_energy={FREQ_2_4_GHZ['37'] : 0.2, FREQ_2_4_GHZ['39'] : 0.8}),
|
|
260
|
-
'24' : energizingPattern(ble_calibration_beacons=[FREQ_2_4_GHZ['37'], FREQ_2_4_GHZ['38'], FREQ_2_4_GHZ['39']], ble_energy={FREQ_2_4_GHZ['37'] : 1.0}),
|
|
261
|
-
'25' : energizingPattern(ble_calibration_beacons=[FREQ_2_4_GHZ['37'], FREQ_2_4_GHZ['38'], FREQ_2_4_GHZ['39']], ble_energy={FREQ_2_4_GHZ['38'] : 1.0}),
|
|
262
|
-
'26' : energizingPattern(ble_calibration_beacons=[FREQ_2_4_GHZ['37'], FREQ_2_4_GHZ['38'], FREQ_2_4_GHZ['39']], ble_energy={2.454 : 1.0}),
|
|
263
|
-
'27' : energizingPattern(ble_calibration_beacons=[FREQ_2_4_GHZ['37'], FREQ_2_4_GHZ['38'], FREQ_2_4_GHZ['39'], FREQ_2_4_GHZ['39']]),
|
|
264
|
-
'29' : energizingPattern(ble_calibration_beacons=[FREQ_2_4_GHZ['37'], FREQ_2_4_GHZ['38'], FREQ_2_4_GHZ['39']], ble_energy={FREQ_2_4_GHZ['38'] : 0.3333, 2.454 : 0.3333, FREQ_2_4_GHZ['39'] : 0.3333}),
|
|
265
|
-
'36' : energizingPattern(ble_calibration_beacons=[FREQ_2_4_GHZ['37'],FREQ_2_4_GHZ['38'],FREQ_2_4_GHZ['39']], info="idle"),
|
|
266
|
-
'37' : energizingPattern(ble_calibration_beacons=[FREQ_2_4_GHZ['37'], 2.415, FREQ_2_4_GHZ['39'], 2.441, 2.428, 2.454, 2.467], ble_energy={2.450 : 1.0}, info="euro"),
|
|
267
|
-
'50' : energizingPattern(ble_calibration_beacons=[FREQ_2_4_GHZ['37'], FREQ_2_4_GHZ['38'], FREQ_2_4_GHZ['39']], sub1G_energy=True),
|
|
268
|
-
'51' : energizingPattern(ble_calibration_beacons=[FREQ_2_4_GHZ['37'], FREQ_2_4_GHZ['38'], FREQ_2_4_GHZ['39']], ble_energy={FREQ_2_4_GHZ['39'] : 1.0}, sub1G_energy=True),
|
|
269
|
-
'52' : energizingPattern(sub1G_energy=True),
|
|
270
|
-
'55' : energizingPattern(ble_calibration_beacons=[FREQ_2_4_GHZ['37'], FREQ_2_4_GHZ['38'], FREQ_2_4_GHZ['39']], ble_energy={FREQ_2_4_GHZ['37'] : 1.0}, sub1G_energy=True),
|
|
271
|
-
'56' : energizingPattern(ble_calibration_beacons=[FREQ_2_4_GHZ['37'], FREQ_2_4_GHZ['38'], FREQ_2_4_GHZ['39']], ble_energy={FREQ_2_4_GHZ['38'] : 1.0}, sub1G_energy=True),
|
|
272
|
-
'57' : energizingPattern(ble_calibration_beacons=[FREQ_2_4_GHZ['37'], FREQ_2_4_GHZ['38'], FREQ_2_4_GHZ['39']], ble_energy={2.454 : 1.0}, sub1G_energy=True),
|
|
273
|
-
'61' : energizingPattern(ble_calibration_beacons=[FREQ_2_4_GHZ['37'], 2.415, FREQ_2_4_GHZ['39'], 2.441, 2.428, 2.454, 2.467], sub1G_energy=True, info="euro"),
|
|
274
|
-
'62' : energizingPattern(ble_calibration_beacons=[FREQ_2_4_GHZ['37'], 2.415, FREQ_2_4_GHZ['39'], 2.441, 2.428, 2.454, 2.467], ble_energy={2.475 : 1.0}, sub1G_energy=True, info="euro"),
|
|
275
|
-
'99' : energizingPattern(ble_calibration_beacons=[i/1000.0 for i in range(2402, 2481, 2)])
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
EP_FREQ_BREAKDOWN_COUNTER_SETUP = {
|
|
279
|
-
2.402 : {'beacons':0, 'energy_in_ms': 0.0},
|
|
280
|
-
2.426 : {'beacons':0, 'energy_in_ms': 0.0},
|
|
281
|
-
2.480 : {'beacons':0, 'energy_in_ms': 0.0},
|
|
282
|
-
2.403 : {'beacons':0, 'energy_in_ms': 0.0},
|
|
283
|
-
2.427 : {'beacons':0, 'energy_in_ms': 0.0},
|
|
284
|
-
2.483 : {'beacons':0, 'energy_in_ms': 0.0},
|
|
285
|
-
2.454 : {'beacons':0, 'energy_in_ms': 0.0},
|
|
286
|
-
2.481 : {'beacons':0, 'energy_in_ms': 0.0},
|
|
287
|
-
2.415 : {'beacons':0, 'energy_in_ms': 0.0},
|
|
288
|
-
2.441 : {'beacons':0, 'energy_in_ms': 0.0},
|
|
289
|
-
2.428 : {'beacons':0, 'energy_in_ms': 0.0},
|
|
290
|
-
2.467 : {'beacons':0, 'energy_in_ms': 0.0},
|
|
291
|
-
2.475 : {'beacons':0, 'energy_in_ms': 0.0},
|
|
292
|
-
0.8657 : {'beacons':0, 'energy_in_ms': 0.0},
|
|
293
|
-
0.915 : {'beacons':0, 'energy_in_ms': 0.0},
|
|
294
|
-
0.9163 : {'beacons':0, 'energy_in_ms': 0.0},
|
|
295
|
-
0.9175 : {'beacons':0, 'energy_in_ms': 0.0},
|
|
296
|
-
0.918 : {'beacons':0, 'energy_in_ms': 0.0},
|
|
297
|
-
0.9191 : {'beacons':0, 'energy_in_ms': 0.0}
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
# Tag IDs for setup 1 & 4 - private setups in a chamber
|
|
301
|
-
# Added to support tag count in versions_analysis_test
|
|
302
|
-
NO_TAGS_STR = "no_tags"
|
|
303
|
-
SETUP_1_STR = "setup_1"
|
|
304
|
-
SETUP_4_STR = "setup_4"
|
|
305
|
-
|
|
306
|
-
PRIVATE_SETUP_CHOICES = [NO_TAGS_STR,
|
|
307
|
-
SETUP_1_STR,
|
|
308
|
-
SETUP_4_STR]
|
|
309
|
-
|
|
310
|
-
SETUP_1_TAG_IDS = [
|
|
311
|
-
"000d40174823",
|
|
312
|
-
"000d401747df",
|
|
313
|
-
"000d401747f2",
|
|
314
|
-
"000d40174862",
|
|
315
|
-
"000d4017483d",
|
|
316
|
-
"000d40174843",
|
|
317
|
-
"000d401747f1",
|
|
318
|
-
"000d4017482a",
|
|
319
|
-
"000d401747f7",
|
|
320
|
-
"000d40174869",
|
|
321
|
-
"000d40174824",
|
|
322
|
-
"000d40174829",
|
|
323
|
-
"000d40174810",
|
|
324
|
-
"000d4017480b",
|
|
325
|
-
"000d401747d1",
|
|
326
|
-
"000d4017480a",
|
|
327
|
-
"000d401747f8",
|
|
328
|
-
"000d401747cc",
|
|
329
|
-
"000d40174882",
|
|
330
|
-
"000d40174863",
|
|
331
|
-
"000d4017483b",
|
|
332
|
-
"000d401747cb",
|
|
333
|
-
"000d40174842",
|
|
334
|
-
"000d4017487c",
|
|
335
|
-
"000d40174811",
|
|
336
|
-
"000d401747e0",
|
|
337
|
-
"000d40174881"
|
|
338
|
-
]
|
|
339
|
-
SETUP_4_TAG_IDS = [
|
|
340
|
-
"000d40ce912e",
|
|
341
|
-
"000d40ce9107",
|
|
342
|
-
"000d40ce9233",
|
|
343
|
-
"000d40ce9240",
|
|
344
|
-
"000d40ce9219",
|
|
345
|
-
"000d40ce912d",
|
|
346
|
-
"000d40ce9120",
|
|
347
|
-
"000d40ce9228",
|
|
348
|
-
"000d40ce9146",
|
|
349
|
-
"000d40ce9138",
|
|
350
|
-
"000d40ce9200",
|
|
351
|
-
"000d40ce9229",
|
|
352
|
-
"000d40ce921a",
|
|
353
|
-
"000d40ce9148",
|
|
354
|
-
"000d40ce911f",
|
|
355
|
-
"000d40ce920e",
|
|
356
|
-
"000d40ce9232",
|
|
357
|
-
"000d40ce9201",
|
|
358
|
-
"000d40ce9137"
|
|
359
|
-
]
|
|
360
|
-
|
|
361
|
-
TAG_IDS = {
|
|
362
|
-
SETUP_1_STR: SETUP_1_TAG_IDS,
|
|
363
|
-
SETUP_4_STR: SETUP_4_TAG_IDS
|
|
364
|
-
}
|
gw_certificate/ag/wlt_types.py
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
from gw_certificate.ag.ut_defines import *
|
|
3
|
-
from gw_certificate.ag.wlt_types_ag import *
|
|
4
|
-
|
|
5
|
-
def eval_pkt(str):
|
|
6
|
-
try:
|
|
7
|
-
return eval(str)
|
|
8
|
-
except:
|
|
9
|
-
return None
|
|
10
|
-
|
|
11
|
-
class WltPkt():
|
|
12
|
-
supported_pkt_types = WLT_PKT_TYPES
|
|
13
|
-
|
|
14
|
-
def __init__(self, raw='', hdr=None, data_hdr=None, generic=None, pkt=None):
|
|
15
|
-
self.hdr = Hdr() if hdr is None else hdr
|
|
16
|
-
self.data_hdr = DataHdr() if data_hdr is None else data_hdr
|
|
17
|
-
self.generic = generic
|
|
18
|
-
self.pkt = pkt
|
|
19
|
-
if raw:
|
|
20
|
-
self.set(raw)
|
|
21
|
-
|
|
22
|
-
def __eq__(self, other):
|
|
23
|
-
if isinstance(other, WltPkt):
|
|
24
|
-
return (
|
|
25
|
-
(self.hdr == other.hdr or
|
|
26
|
-
self.data_hdr == other.data_hdr) and
|
|
27
|
-
self.generic == other.generic and
|
|
28
|
-
self.pkt == other.pkt
|
|
29
|
-
)
|
|
30
|
-
return False
|
|
31
|
-
|
|
32
|
-
def dump(self):
|
|
33
|
-
if self.pkt:
|
|
34
|
-
if isinstance(self.pkt, UnifiedEchoPkt):
|
|
35
|
-
return self.data_hdr.dump() + self.pkt.dump()
|
|
36
|
-
else:
|
|
37
|
-
return self.hdr.dump() + self.pkt.dump()
|
|
38
|
-
return self.data_hdr.dump() + self.generic.dump()
|
|
39
|
-
|
|
40
|
-
def set(self, string):
|
|
41
|
-
if not string.startswith("1E16"):
|
|
42
|
-
string = "1E16" + string
|
|
43
|
-
|
|
44
|
-
self.hdr.set(string[0:14])
|
|
45
|
-
self.data_hdr.set(string[0:14])
|
|
46
|
-
if self.hdr.group_id == GROUP_ID_BRG2GW or self.hdr.group_id == GROUP_ID_GW2BRG:
|
|
47
|
-
# GROUP_ID_BRG2GW & GROUP_ID_GW2BRG
|
|
48
|
-
self.generic = eval_pkt(f'GenericV{API_VERSION_LATEST}()')
|
|
49
|
-
self.generic.set(string[14:62])
|
|
50
|
-
|
|
51
|
-
# MEL modules
|
|
52
|
-
if self.generic.module_type:
|
|
53
|
-
if self.generic.module_type == MODULE_CUSTOM:
|
|
54
|
-
self.pkt = eval_pkt(f'ModuleCustomLis2Dw12V{self.generic.api_version}()')
|
|
55
|
-
else:
|
|
56
|
-
self.pkt = eval_pkt(f'{MODULES_DICT[self.generic.module_type]}{self.generic.api_version}()')
|
|
57
|
-
elif self.generic.module_type == MODULE_GLOBAL:
|
|
58
|
-
# Action pkts
|
|
59
|
-
if self.generic.msg_type == BRG_MGMT_MSG_TYPE_ACTION:
|
|
60
|
-
pkt = eval_pkt(f'ActionGenericV{self.generic.api_version}("{string[14:62]}")')
|
|
61
|
-
if self.generic.api_version >= API_VERSION_V8 and (type(pkt) != type(None)):
|
|
62
|
-
pkt = eval_pkt(f'{ACTIONS_DICT[pkt.action_id]}{self.generic.api_version}()')
|
|
63
|
-
self.pkt = pkt
|
|
64
|
-
# OLD global config (GW2BRG & BRG2GW)
|
|
65
|
-
elif self.hdr.group_id == GROUP_ID_GW2BRG and self.generic.msg_type == BRG_MGMT_MSG_TYPE_CFG_SET:
|
|
66
|
-
self.pkt = eval_pkt(f'Gw2BrgCfgV8()') # no api_version field in Gw2BrgCfg pkts - default parse as api version 8 (Latest Gw2BrgCfg)
|
|
67
|
-
elif self.hdr.group_id == GROUP_ID_BRG2GW:
|
|
68
|
-
if self.generic.msg_type == BRG_MGMT_MSG_TYPE_CFG_SET or self.generic.msg_type == BRG_MGMT_MSG_TYPE_CFG_INFO:
|
|
69
|
-
self.pkt = eval_pkt(f'Brg2GwCfgV{self.generic.api_version}()')
|
|
70
|
-
# Brg2GwHb pkts
|
|
71
|
-
elif self.generic.msg_type == BRG_MGMT_MSG_TYPE_HB:
|
|
72
|
-
self.pkt = eval_pkt(f'Brg2GwHbV{self.generic.api_version}()')
|
|
73
|
-
# Unified pkt
|
|
74
|
-
elif self.data_hdr.group_id_major == GROUP_ID_UNIFIED_PKT:
|
|
75
|
-
self.pkt = UnifiedEchoPkt()
|
|
76
|
-
# SideInfo pkts
|
|
77
|
-
elif self.hdr.group_id == GROUP_ID_SIDE_INFO_SENSOR:
|
|
78
|
-
self.pkt = SideInfoSensor()
|
|
79
|
-
elif self.hdr.group_id == GROUP_ID_SIDE_INFO:
|
|
80
|
-
self.pkt = SideInfo()
|
|
81
|
-
|
|
82
|
-
if self.pkt:
|
|
83
|
-
self.pkt.set(string[14:62])
|
|
84
|
-
|
|
85
|
-
hex_str2int = lambda x: int(x,16)
|