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
|
@@ -1,390 +0,0 @@
|
|
|
1
|
-
from brg_certificate.cert_prints import *
|
|
2
|
-
from brg_certificate.cert_defines import *
|
|
3
|
-
from brg_certificate.wlt_types import *
|
|
4
|
-
import brg_certificate.cert_common as cert_common
|
|
5
|
-
import brg_certificate.cert_config as cert_config
|
|
6
|
-
import random
|
|
7
|
-
|
|
8
|
-
# Test Description:
|
|
9
|
-
# This test is to verify the functionality of both signal indicator tx (tx_brg) and rx (rx_brg) at BRG level.
|
|
10
|
-
# We will configure several signal indicator params during the test, and check the functionality of the signal indicator logic
|
|
11
|
-
# for each of them.
|
|
12
|
-
# It is important to execute the test with several setups: 2 Fanstel BRG's, 2 Minew BRG's and 1 Fanstel and 1 Minew BRG.
|
|
13
|
-
# At first, we will configure several tx signal indicator params and check for ack's, to verify all indicated params were
|
|
14
|
-
# received at the cloud.
|
|
15
|
-
# Then, we will examine the signal indicator end-2-end logic with both transmitter and receiver:
|
|
16
|
-
# phase 1 - One BRG will be configured as signal indicator tx, and the other as signal indicator rx, and we expect to see
|
|
17
|
-
# signal indicator packets only from the tx BRG, and according to the tx params (to check the repetition and cycle params).
|
|
18
|
-
# phase 2 - Same as phase 1, but with different tx params configured.
|
|
19
|
-
# phase 3 - One rx BRG without any tx BRG. We don't expect to see any signal indicator packets. This phase is to verify the
|
|
20
|
-
# brg module logic is working properly, and no tag packet is accidentally being treated as signal indicator packet.
|
|
21
|
-
# phase 4 - Both BRG's will be configured to be transmitters and receivers, with different tx params for each one. we expect
|
|
22
|
-
# to see signal indicator packets from both BRG's, according to the tx params.
|
|
23
|
-
# phase 5 - One BRG will be configured as signal indicator tx, but no rx, so we don't expect to receive signal indicator packets.
|
|
24
|
-
# that way we can assure the logic within the receiver is not confused by the signal indicator uuid as external sensor.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
# Test MACROS #
|
|
28
|
-
DEFAULT_HDR = ag.Hdr(group_id=ag.GROUP_ID_GW2BRG)
|
|
29
|
-
NUM_OF_SCANNING_CYCLE = 2
|
|
30
|
-
DEFAULT_SCAN_TIME = 60
|
|
31
|
-
SCAN_DELAY_TIME = 5
|
|
32
|
-
VALUES_DICT = {0: (5, 3), 1: (5, 3),
|
|
33
|
-
2: (60, 4),
|
|
34
|
-
3: (ag.BRG_DEFAULT_SIGNAL_INDICATOR_CYCLE, ag.BRG_DEFAULT_SIGNAL_INDICATOR_REP),
|
|
35
|
-
4: [(45, 3), (90, 4)],
|
|
36
|
-
5: (15, 1)}
|
|
37
|
-
CYCLE_IDX = 0
|
|
38
|
-
REP_IDX = 1
|
|
39
|
-
TX_BRG_IDX = 0
|
|
40
|
-
RX_BRG_IDX = 1
|
|
41
|
-
TEST_SUB1G_ENERGY_PATTERNS = [ag.SUB1G_ENERGY_PATTERN_SINGLE_TONE_915000, ag.SUB1G_ENERGY_PATTERN_FCC_HOPPING,
|
|
42
|
-
ag.SUB1G_ENERGY_PATTERN_SINGLE_TONE_916300, ag.SUB1G_ENERGY_PATTERN_SINGLE_TONE_917500,
|
|
43
|
-
ag.SUB1G_ENERGY_PATTERN_AUSTRALIA, ag.SUB1G_ENERGY_PATTERN_ISRAEL, ag.SUB1G_ENERGY_PATTERN_NZ_HOPPING]
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
# Helper function #
|
|
47
|
-
def get_phase_tx_params_values(phase, brg):
|
|
48
|
-
if phase == 4:
|
|
49
|
-
return VALUES_DICT[phase][brg][CYCLE_IDX], VALUES_DICT[phase][brg][REP_IDX]
|
|
50
|
-
else:
|
|
51
|
-
return VALUES_DICT[phase][CYCLE_IDX], VALUES_DICT[phase][REP_IDX]
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
# Test functions #
|
|
55
|
-
def terminate_test(test, phase=0, revert_rx_brg=False, revert_tx_brg=False, modules=[]):
|
|
56
|
-
# Temp solution for internal_brg test because test_epilog doesn't support both internal brg and test.brgs
|
|
57
|
-
utPrint("Terminating test!!!!!!!!\n", "BLUE")
|
|
58
|
-
if revert_rx_brg:
|
|
59
|
-
restore_modules = [modules[1]] if (test.internal_brg or phase != 4) else modules
|
|
60
|
-
utPrint(f"reverting rx_brg {test.brg1.id_str} to defaults\n", "BOLD")
|
|
61
|
-
test, response = cert_config.config_brg1_defaults(test, modules=restore_modules)
|
|
62
|
-
if response == NO_RESPONSE and test.exit_on_param_failure:
|
|
63
|
-
test.rc = TEST_FAILED
|
|
64
|
-
test.add_reason(f"BRG {test.brg1.id_str} didn't revert modules {restore_modules} to default configuration!")
|
|
65
|
-
|
|
66
|
-
if revert_tx_brg:
|
|
67
|
-
restore_modules = [modules[0]] if (test.internal_brg or phase != 4) else modules
|
|
68
|
-
utPrint(f"reverting tx_brg {test.brg0.id_str} to defaults\n", "BOLD")
|
|
69
|
-
test, response = cert_config.config_brg_defaults(test, modules=restore_modules)
|
|
70
|
-
if response == NO_RESPONSE and test.exit_on_param_failure:
|
|
71
|
-
test.rc = TEST_FAILED
|
|
72
|
-
test.add_reason(f"BRG {test.brg0.id_str} didn't revert modules {restore_modules} to default configuration!")
|
|
73
|
-
return cert_common.test_epilog(test)
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
def run(test):
|
|
77
|
-
|
|
78
|
-
# Test modules evaluation #
|
|
79
|
-
sub1g_module = test.active_brg.energy_sub1g
|
|
80
|
-
ext_sensors_module = test.active_brg.sensors
|
|
81
|
-
|
|
82
|
-
# Transmitter related defines #
|
|
83
|
-
tx_brg_ = test.brg0
|
|
84
|
-
tx_module = sub1g_module
|
|
85
|
-
|
|
86
|
-
# Receiver related defines #
|
|
87
|
-
rx_brg_ = test.brg1
|
|
88
|
-
|
|
89
|
-
# Modules list #
|
|
90
|
-
modules = [tx_module, ext_sensors_module]
|
|
91
|
-
|
|
92
|
-
# RSSI Threshold
|
|
93
|
-
rssi_threshold = -25
|
|
94
|
-
|
|
95
|
-
# Test prolog
|
|
96
|
-
test = cert_common.test_prolog(test)
|
|
97
|
-
if test.rc == TEST_FAILED:
|
|
98
|
-
return terminate_test(test)
|
|
99
|
-
|
|
100
|
-
phase = 0
|
|
101
|
-
functionality_run_print(f"phase {phase}")
|
|
102
|
-
# Phase 1 - BRG0 Tx, BRG1 Rx. No Energizing.
|
|
103
|
-
# Checking for RSSI Threshold violations.
|
|
104
|
-
tx_signal_ind_cycle, tx_signal_ind_rep = get_phase_tx_params_values(phase, TX_BRG_IDX)
|
|
105
|
-
utPrint(f"TX BRG with RX- cycle = {tx_signal_ind_cycle}, repetition = {tx_signal_ind_rep}\n", "HEADER")
|
|
106
|
-
|
|
107
|
-
# configuring RX #
|
|
108
|
-
utPrint(f"Configuring BRG {rx_brg_.id_str} as SUB1G Signal Indicator Receiver", "BOLD")
|
|
109
|
-
test = cert_config.brg1_configure(test=test, module=ext_sensors_module, fields=[BRG_SENSOR0, BRG_SUB1G_RSSI_THRESHOLD],
|
|
110
|
-
values=[ag.EXTERNAL_SENSORS_SIGNAL_INDICATOR, rssi_threshold])[0]
|
|
111
|
-
if test.rc == TEST_FAILED and test.exit_on_param_failure:
|
|
112
|
-
test.add_reason(f"BRG {rx_brg_.id_str}: didn't receive signal indicator receiver configuration!")
|
|
113
|
-
return terminate_test(test, phase=phase, revert_rx_brg=True, modules=modules)
|
|
114
|
-
utPrint(f"BRG {rx_brg_.id_str} successfully configured to be Receiver", "GREEN")
|
|
115
|
-
|
|
116
|
-
# configuring TX #
|
|
117
|
-
utPrint(f"Configuring BRG {tx_brg_.id_str} as SUB1G Signal Indicator Transmitter\n", "BOLD")
|
|
118
|
-
transmitter_cfg_pkt = WltPkt(hdr=DEFAULT_HDR, pkt=tx_module(seq_id=random.randrange(99), brg_mac=tx_brg_.id_int,
|
|
119
|
-
signal_indicator_cycle=tx_signal_ind_cycle, signal_indicator_rep=tx_signal_ind_rep,
|
|
120
|
-
pattern=ag.SUB1G_ENERGY_PATTERN_ISRAEL, duty_cycle=30))
|
|
121
|
-
test = cert_config.brg_configure(test=test, cfg_pkt=transmitter_cfg_pkt)[0]
|
|
122
|
-
if test.rc == TEST_FAILED and test.exit_on_param_failure:
|
|
123
|
-
test.add_reason(f"BRG {tx_brg_.id_str}: didn't receive signal indicator transmitter configuration!")
|
|
124
|
-
return terminate_test(test, phase=phase, revert_rx_brg=True, revert_tx_brg=True, modules=modules)
|
|
125
|
-
utPrint(f"BRG {tx_brg_.id_str} successfully configured to be transmitter - cycle = {tx_signal_ind_cycle},"
|
|
126
|
-
f"repetition = {tx_signal_ind_rep}, pattern = {ag.SUB1G_ENERGY_PATTERN_ISRAEL}", "GREEN")
|
|
127
|
-
|
|
128
|
-
# Analyzing RSSI Threshold violation #
|
|
129
|
-
mqtt_scan_n_create_log_file(test, (NUM_OF_SCANNING_CYCLE * tx_signal_ind_cycle) + SCAN_DELAY_TIME, phase)
|
|
130
|
-
received_signal_ind_pkts = cert_common.get_all_sig_ind_pkts(test=test, rx_brg=rx_brg_, tx_brg=tx_brg_)
|
|
131
|
-
rssi_threshold_violation_pkts = [p for p in received_signal_ind_pkts if p[RSSI] >= -1 * rssi_threshold]
|
|
132
|
-
if rssi_threshold_violation_pkts:
|
|
133
|
-
test.rc = TEST_FAILED
|
|
134
|
-
test.add_reason(f"rssi_threshold phase failed - BRG {rx_brg_.id_str} echoed" +
|
|
135
|
-
f" {len(rssi_threshold_violation_pkts)} signal indicator packets\n with RSSI weaker than {rssi_threshold}")
|
|
136
|
-
|
|
137
|
-
field_functionality_pass_fail_print(test, 'phase', phase)
|
|
138
|
-
if test.rc == TEST_FAILED:
|
|
139
|
-
return terminate_test(test, phase=phase, revert_rx_brg=True, revert_tx_brg=True, modules=modules)
|
|
140
|
-
|
|
141
|
-
phase = 1
|
|
142
|
-
functionality_run_print(f"phase {phase}")
|
|
143
|
-
# Phase 1 - BRG0 Tx, BRG1 Rx. No Energizing.
|
|
144
|
-
# expecting the receiver to receive signal indicator packets from the transmitter
|
|
145
|
-
# according to the tx params.
|
|
146
|
-
tx_signal_ind_cycle, tx_signal_ind_rep = get_phase_tx_params_values(phase, TX_BRG_IDX)
|
|
147
|
-
utPrint(f"TX BRG with RX- cycle = {tx_signal_ind_cycle}, repetition = {tx_signal_ind_rep}\n", "HEADER")
|
|
148
|
-
|
|
149
|
-
# configuring RX #
|
|
150
|
-
utPrint(f"Configuring BRG {rx_brg_.id_str} as SUB1G Signal Indicator Receiver", "BOLD")
|
|
151
|
-
test = cert_config.brg1_configure(test=test, module=ext_sensors_module, fields=[BRG_SENSOR0],
|
|
152
|
-
values=[ag.EXTERNAL_SENSORS_SIGNAL_INDICATOR])[0]
|
|
153
|
-
if test.rc == TEST_FAILED and test.exit_on_param_failure:
|
|
154
|
-
test.add_reason(f"BRG {rx_brg_.id_str}: didn't receive signal indicator receiver configuration!")
|
|
155
|
-
return terminate_test(test, phase=phase, revert_rx_brg=True, modules=modules)
|
|
156
|
-
utPrint(f"BRG {rx_brg_.id_str} successfully configured to be Receiver", "GREEN")
|
|
157
|
-
|
|
158
|
-
for energy_pattern in TEST_SUB1G_ENERGY_PATTERNS:
|
|
159
|
-
utPrint(f"Energy pattern is {energy_pattern}", "WARNING")
|
|
160
|
-
|
|
161
|
-
# configuring RX BRG to desired pattern #
|
|
162
|
-
utPrint(f"Configuring RX BRG {rx_brg_.id_str} to EP {energy_pattern}", "BOLD")
|
|
163
|
-
receiver_cfg_pkt = WltPkt(hdr=DEFAULT_HDR, pkt=tx_module(seq_id=random.randrange(99), brg_mac=rx_brg_.id_int,
|
|
164
|
-
pattern=energy_pattern, duty_cycle=30))
|
|
165
|
-
test = cert_config.brg1_configure(test=test, cfg_pkt=receiver_cfg_pkt)[0]
|
|
166
|
-
if test.rc == TEST_FAILED and test.exit_on_param_failure:
|
|
167
|
-
test.add_reason(f"Receiver BRG {rx_brg_.id_str} didn't received sub1g EP configuration!")
|
|
168
|
-
return terminate_test(test, phase=phase, revert_rx_brg=True, revert_tx_brg=True, modules=modules)
|
|
169
|
-
utPrint(f"Receiver BRG {rx_brg_.id_str} successfully configured to desired sub1g EP", "GREEN")
|
|
170
|
-
|
|
171
|
-
# configuring TX #
|
|
172
|
-
# in sub1g must configure also the energy pattern
|
|
173
|
-
utPrint(f"Configuring BRG {tx_brg_.id_str} as SUB1G Signal Indicator Transmitter\n", "BOLD")
|
|
174
|
-
transmitter_cfg_pkt = WltPkt(hdr=DEFAULT_HDR, pkt=tx_module(seq_id=random.randrange(99), brg_mac=tx_brg_.id_int,
|
|
175
|
-
signal_indicator_cycle=tx_signal_ind_cycle,
|
|
176
|
-
signal_indicator_rep=tx_signal_ind_rep, pattern=energy_pattern, duty_cycle=30))
|
|
177
|
-
test = cert_config.brg_configure(test=test, cfg_pkt=transmitter_cfg_pkt)[0]
|
|
178
|
-
if test.rc == TEST_FAILED and test.exit_on_param_failure:
|
|
179
|
-
test.add_reason(f"BRG {tx_brg_.id_str}: didn't receive signal indicator transmitter configuration!")
|
|
180
|
-
return terminate_test(test, phase=phase, revert_rx_brg=True, revert_tx_brg=True, modules=modules)
|
|
181
|
-
utPrint(f"BRG {tx_brg_.id_str} successfully configured to be transmitter - cycle = {tx_signal_ind_cycle},"
|
|
182
|
-
f"repetition = {tx_signal_ind_rep}, pattern = {energy_pattern}", "GREEN")
|
|
183
|
-
|
|
184
|
-
# phase analysis #
|
|
185
|
-
mqtt_scan_n_create_log_file(test, (NUM_OF_SCANNING_CYCLE * tx_signal_ind_cycle) + SCAN_DELAY_TIME, phase)
|
|
186
|
-
expected_signal_ind_pkts = NUM_OF_SCANNING_CYCLE
|
|
187
|
-
received_signal_ind_pkts = cert_common.get_all_sig_ind_pkts(test=test, rx_brg=rx_brg_, tx_brg=tx_brg_)
|
|
188
|
-
if len(received_signal_ind_pkts) < expected_signal_ind_pkts:
|
|
189
|
-
test.rc = TEST_FAILED
|
|
190
|
-
test.add_reason(f"Phase {phase} failed - BRG {rx_brg_.id_str} received wrong number of "
|
|
191
|
-
f"signal indicator packets\n received {len(received_signal_ind_pkts)} packets, "
|
|
192
|
-
f"expected {expected_signal_ind_pkts} packets")
|
|
193
|
-
field_functionality_pass_fail_print(test, 'Energy pattern', energy_pattern)
|
|
194
|
-
if test.rc == TEST_FAILED:
|
|
195
|
-
return terminate_test(test, phase=phase, revert_rx_brg=True, revert_tx_brg=True, modules=modules)
|
|
196
|
-
field_functionality_pass_fail_print(test, 'phase', phase)
|
|
197
|
-
|
|
198
|
-
phase = 2
|
|
199
|
-
functionality_run_print(f"phase {phase}")
|
|
200
|
-
# Phase 2 - Tx BRG with rx. tx params changed from last values configured in phase 1
|
|
201
|
-
# expecting the receiver to receive signal indicator packets from the transmitter according to the tx params.
|
|
202
|
-
tx_signal_ind_cycle, tx_signal_ind_rep = get_phase_tx_params_values(phase, TX_BRG_IDX)
|
|
203
|
-
utPrint(f"TX BRG with RX- cycle = {tx_signal_ind_cycle}, repetition = {tx_signal_ind_rep}\n", "HEADER")
|
|
204
|
-
|
|
205
|
-
# configuring RX BRG to default pattern #
|
|
206
|
-
utPrint(f"Configuring BRG {rx_brg_.id_str} to default EP", "BOLD")
|
|
207
|
-
receiver_cfg_pkt = WltPkt(hdr=DEFAULT_HDR, pkt=tx_module(seq_id=random.randrange(99), brg_mac=rx_brg_.id_int,
|
|
208
|
-
pattern=ag.SUB1G_ENERGY_PATTERN_ISRAEL, duty_cycle=30))
|
|
209
|
-
test = cert_config.brg1_configure(test=test, cfg_pkt=receiver_cfg_pkt)[0]
|
|
210
|
-
if test.rc == TEST_FAILED and test.exit_on_param_failure:
|
|
211
|
-
test.add_reason(f"Receiver BRG {rx_brg_.id_str} didn't revert to default sub1g EP!")
|
|
212
|
-
return terminate_test(test, phase=phase, revert_rx_brg=True, revert_tx_brg=True, modules=modules)
|
|
213
|
-
utPrint(f"Receiver BRG {rx_brg_.id_str} successfully configured to desired sub1g EP", "GREEN")
|
|
214
|
-
|
|
215
|
-
# configuring transmitter, SUB1G_ENERGY_PATTERN_ISRAEL is must here because this is the receiver freq #
|
|
216
|
-
utPrint(f"Configuring BRG {tx_brg_.id_str} as Signal Indicator Transmitter\n", "BOLD")
|
|
217
|
-
transmitter_cfg_pkt = WltPkt(hdr=DEFAULT_HDR, pkt=tx_module(seq_id=random.randrange(99), brg_mac=tx_brg_.id_int,
|
|
218
|
-
signal_indicator_cycle=tx_signal_ind_cycle, signal_indicator_rep=tx_signal_ind_rep,
|
|
219
|
-
pattern=ag.SUB1G_ENERGY_PATTERN_ISRAEL, duty_cycle=30))
|
|
220
|
-
test = cert_config.brg_configure(test=test, cfg_pkt=transmitter_cfg_pkt)[0]
|
|
221
|
-
if test.rc == TEST_FAILED and test.exit_on_param_failure:
|
|
222
|
-
test.add_reason(f"BRG {tx_brg_.id_str}: didn't receive signal indicator transmitter configuration!")
|
|
223
|
-
return terminate_test(test, phase=phase, revert_rx_brg=True, revert_tx_brg=True, modules=modules)
|
|
224
|
-
utPrint(f"BRG {tx_brg_.id_str} successfully configured to be transmitter - cycle = {tx_signal_ind_cycle},"
|
|
225
|
-
f"repetition = {tx_signal_ind_rep}, EP = {ag.SUB1G_ENERGY_PATTERN_ISRAEL}", "GREEN")
|
|
226
|
-
|
|
227
|
-
# phase analysis #
|
|
228
|
-
mqtt_scan_n_create_log_file(test, (NUM_OF_SCANNING_CYCLE * tx_signal_ind_cycle) + SCAN_DELAY_TIME, phase)
|
|
229
|
-
expected_signal_ind_pkts = NUM_OF_SCANNING_CYCLE
|
|
230
|
-
received_signal_ind_pkts = cert_common.get_all_sig_ind_pkts(test=test, rx_brg=rx_brg_, tx_brg=tx_brg_)
|
|
231
|
-
if (not len(received_signal_ind_pkts) or
|
|
232
|
-
len(received_signal_ind_pkts) < expected_signal_ind_pkts or
|
|
233
|
-
len(received_signal_ind_pkts) > expected_signal_ind_pkts):
|
|
234
|
-
test.rc = TEST_FAILED
|
|
235
|
-
test.add_reason(f"Phase {phase} failed - BRG {rx_brg_.id_str} received wrong number of "
|
|
236
|
-
f"signal indicator packets\n received {len(received_signal_ind_pkts)} packets, "
|
|
237
|
-
f"expected {expected_signal_ind_pkts} packets")
|
|
238
|
-
field_functionality_pass_fail_print(test, 'phase', phase)
|
|
239
|
-
if test.rc == TEST_FAILED:
|
|
240
|
-
return terminate_test(test, phase=phase, revert_rx_brg=True, revert_tx_brg=True, modules=modules)
|
|
241
|
-
|
|
242
|
-
phase = 3
|
|
243
|
-
functionality_run_print(f"phase {phase}")
|
|
244
|
-
# Phase 3 - Rx BRG without tx.Expecting no signal indicator packets to be received.
|
|
245
|
-
tx_signal_ind_cycle, tx_signal_ind_rep = get_phase_tx_params_values(phase, TX_BRG_IDX)
|
|
246
|
-
utPrint(f"RX BRG without TX- cycle = {tx_signal_ind_cycle}, repetition = {tx_signal_ind_rep}\n", "HEADER")
|
|
247
|
-
|
|
248
|
-
# configuring transmitter to no TX #
|
|
249
|
-
utPrint(f"Configuring BRG {tx_brg_.id_str} to default\n", "BOLD")
|
|
250
|
-
transmitter_cfg_pkt = WltPkt(hdr=DEFAULT_HDR, pkt=tx_module(seq_id=random.randrange(99), brg_mac=tx_brg_.id_int,
|
|
251
|
-
signal_indicator_cycle=tx_signal_ind_cycle, signal_indicator_rep=tx_signal_ind_rep,
|
|
252
|
-
pattern=ag.SUB1G_ENERGY_PATTERN_ISRAEL))
|
|
253
|
-
test = cert_config.brg_configure(test=test, cfg_pkt=transmitter_cfg_pkt)[0]
|
|
254
|
-
if test.rc == TEST_FAILED and test.exit_on_param_failure:
|
|
255
|
-
test.add_reason(f"BRG {tx_brg_.id_str}: didn't revert to default (no signal indicator tx)!")
|
|
256
|
-
return terminate_test(test, phase=phase, revert_rx_brg=True, revert_tx_brg=True, modules=modules)
|
|
257
|
-
utPrint(f"BRG {tx_brg_.id_str} successfully configured to default!!! cycle = {tx_signal_ind_cycle},"
|
|
258
|
-
f"repetition = {tx_signal_ind_rep}, EP = {ag.SUB1G_ENERGY_PATTERN_ISRAEL}", "GREEN")
|
|
259
|
-
|
|
260
|
-
# phase analysis #
|
|
261
|
-
mqtt_scan_n_create_log_file(test, DEFAULT_SCAN_TIME, phase)
|
|
262
|
-
expected_signal_ind_pkts = 0
|
|
263
|
-
received_signal_ind_pkts = cert_common.get_all_sig_ind_pkts(test=test, rx_brg=rx_brg_, tx_brg=tx_brg_)
|
|
264
|
-
if len(received_signal_ind_pkts) != expected_signal_ind_pkts:
|
|
265
|
-
test.rc = TEST_FAILED
|
|
266
|
-
test.add_reason(f"Phase {phase} failed - received signal indicator packet from BRG {rx_brg_.id_str}")
|
|
267
|
-
field_functionality_pass_fail_print(test, 'phase', phase)
|
|
268
|
-
if test.rc == TEST_FAILED:
|
|
269
|
-
return terminate_test(test, phase=phase, revert_rx_brg=True, modules=modules)
|
|
270
|
-
|
|
271
|
-
if not test.internal_brg:
|
|
272
|
-
phase = 4
|
|
273
|
-
functionality_run_print(f"phase {phase}")
|
|
274
|
-
# Phase 4 - Both BRG's will be configured to be transmitters and receivers, with different tx params for each one.
|
|
275
|
-
# expecting to see signal indicator packets from both BRG's, according to the tx params.
|
|
276
|
-
utPrint("Both BRG's are transmitter and receivers, with different values\n", "HEADER")
|
|
277
|
-
|
|
278
|
-
# configuring first BRG (tx_brg_) #
|
|
279
|
-
tx_brg_signal_indicator_cycle, tx_brg_signal_indicator_rep = get_phase_tx_params_values(phase, TX_BRG_IDX)
|
|
280
|
-
# configuring first brg (tx_brg_) as receiver
|
|
281
|
-
utPrint(f"Configuring BRG {tx_brg_.id_str} as Signal Indicator Receiver", "BOLD")
|
|
282
|
-
test = cert_config.brg_configure(test=test, module=ext_sensors_module, fields=[BRG_SENSOR0],
|
|
283
|
-
values=[ag.EXTERNAL_SENSORS_SIGNAL_INDICATOR])[0]
|
|
284
|
-
if test.rc == TEST_FAILED and test.exit_on_param_failure:
|
|
285
|
-
test.add_reason(f"BRG {tx_brg_.id_str}: didn't receive signal indicator receiver configuration!")
|
|
286
|
-
return terminate_test(test, phase=phase, revert_rx_brg=True, revert_tx_brg=True, modules=modules)
|
|
287
|
-
utPrint(f"BRG {tx_brg_.id_str} successfully configured as Signal Indicator Receiver\n", "GREEN")
|
|
288
|
-
# configuring first brg (tx_brg_) as transmitter
|
|
289
|
-
utPrint(f"Configuring BRG {tx_brg_.id_str} as Signal Indicator Transmitter", "BOLD")
|
|
290
|
-
transmitter_cfg_pkt = WltPkt(hdr=DEFAULT_HDR, pkt=tx_module(seq_id=random.randrange(99), brg_mac=tx_brg_.id_int,
|
|
291
|
-
signal_indicator_cycle=tx_brg_signal_indicator_cycle,
|
|
292
|
-
signal_indicator_rep=tx_brg_signal_indicator_rep,
|
|
293
|
-
pattern=ag.SUB1G_ENERGY_PATTERN_ISRAEL))
|
|
294
|
-
test = cert_config.brg_configure(test=test, cfg_pkt=transmitter_cfg_pkt)[0]
|
|
295
|
-
if test.rc == TEST_FAILED and test.exit_on_param_failure:
|
|
296
|
-
test.add_reason(f"BRG {tx_brg_.id_str}: didn't receive signal indicator transmitter configuration!")
|
|
297
|
-
return terminate_test(test, phase=phase, revert_rx_brg=True, revert_tx_brg=True, modules=modules)
|
|
298
|
-
utPrint(f"BRG {tx_brg_.id_str} successfully configured to be transmitter - cycle = {tx_brg_signal_indicator_cycle},"
|
|
299
|
-
f"repetition = {tx_brg_signal_indicator_rep}, EP = {ag.SUB1G_ENERGY_PATTERN_ISRAEL}", "GREEN")
|
|
300
|
-
|
|
301
|
-
# configuring second BRG (rx_brg_), already configured as rx, need only tx configuration #
|
|
302
|
-
rx_brg_signal_indicator_cycle, rx_brg_signal_indicator_rep = get_phase_tx_params_values(phase, RX_BRG_IDX)
|
|
303
|
-
# configuring second brg (rx_brg_) as transmitter
|
|
304
|
-
utPrint(f"Configuring BRG {rx_brg_.id_str} as Signal Indicator Transmitter\n", "BOLD")
|
|
305
|
-
transmitter_cfg_pkt = WltPkt(hdr=DEFAULT_HDR, pkt=tx_module(seq_id=random.randrange(99), brg_mac=rx_brg_.id_int,
|
|
306
|
-
signal_indicator_cycle=rx_brg_signal_indicator_cycle,
|
|
307
|
-
signal_indicator_rep=rx_brg_signal_indicator_rep,
|
|
308
|
-
pattern=ag.SUB1G_ENERGY_PATTERN_ISRAEL))
|
|
309
|
-
test = cert_config.brg1_configure(test=test, cfg_pkt=transmitter_cfg_pkt)[0]
|
|
310
|
-
if test.rc == TEST_FAILED and test.exit_on_param_failure:
|
|
311
|
-
test.add_reason(f"BRG {rx_brg_.id_str}: didn't receive signal indicator transmitter configuration!")
|
|
312
|
-
return terminate_test(test, phase=phase, revert_rx_brg=True, revert_tx_brg=True, modules=modules)
|
|
313
|
-
utPrint(f"BRG {rx_brg_.id_str} successfully configured to be transmitter - cycle = {rx_brg_signal_indicator_cycle},"
|
|
314
|
-
f"repetition = {rx_brg_signal_indicator_rep}, EP = {ag.SUB1G_ENERGY_PATTERN_ISRAEL}", "GREEN")
|
|
315
|
-
|
|
316
|
-
# phase analysis #
|
|
317
|
-
duration = NUM_OF_SCANNING_CYCLE * max(tx_brg_signal_indicator_cycle, rx_brg_signal_indicator_cycle) + SCAN_DELAY_TIME
|
|
318
|
-
mqtt_scan_n_create_log_file(test, duration, phase)
|
|
319
|
-
|
|
320
|
-
# Analyzing tx_brg_ performance as receiver
|
|
321
|
-
rx_brg_tx_cycles = max(tx_brg_signal_indicator_cycle, rx_brg_signal_indicator_cycle) / rx_brg_signal_indicator_cycle
|
|
322
|
-
expected_signal_ind_pkts = int(NUM_OF_SCANNING_CYCLE * rx_brg_tx_cycles)
|
|
323
|
-
received_signal_ind_pkts = cert_common.get_all_sig_ind_pkts(test=test, rx_brg=tx_brg_, tx_brg=rx_brg_)
|
|
324
|
-
if (not len(received_signal_ind_pkts) or
|
|
325
|
-
len(received_signal_ind_pkts) < expected_signal_ind_pkts or
|
|
326
|
-
len(received_signal_ind_pkts) > expected_signal_ind_pkts):
|
|
327
|
-
test.rc = TEST_FAILED
|
|
328
|
-
test.add_reason(f"Phase {phase} failed - BRG {tx_brg_.id_str} received wrong number of "
|
|
329
|
-
f"signal indicator packets\n received {len(received_signal_ind_pkts)} packets, "
|
|
330
|
-
f"expected {expected_signal_ind_pkts} packets")
|
|
331
|
-
if test.rc == TEST_FAILED:
|
|
332
|
-
field_functionality_pass_fail_print(test, 'phase', phase)
|
|
333
|
-
return terminate_test(test, phase=phase, revert_rx_brg=True, revert_tx_brg=True, modules=modules)
|
|
334
|
-
|
|
335
|
-
# Analyzing rx_brg_ performance as receiver
|
|
336
|
-
tx_brg_tx_cycles = max(tx_brg_signal_indicator_cycle, rx_brg_signal_indicator_cycle) / tx_brg_signal_indicator_cycle
|
|
337
|
-
expected_signal_ind_pkts = int(NUM_OF_SCANNING_CYCLE * tx_brg_tx_cycles)
|
|
338
|
-
received_signal_ind_pkts = cert_common.get_all_sig_ind_pkts(test=test, rx_brg=rx_brg_, tx_brg=tx_brg_)
|
|
339
|
-
if (not len(received_signal_ind_pkts) or
|
|
340
|
-
len(received_signal_ind_pkts) < expected_signal_ind_pkts or
|
|
341
|
-
len(received_signal_ind_pkts) > expected_signal_ind_pkts):
|
|
342
|
-
test.rc = TEST_FAILED
|
|
343
|
-
test.add_reason(f"Phase {phase} failed - BRG {rx_brg_.id_str} received wrong number of "
|
|
344
|
-
f"signal indicator packets\n received {len(received_signal_ind_pkts)} packets, "
|
|
345
|
-
f"expected {expected_signal_ind_pkts} packets")
|
|
346
|
-
if test.rc == TEST_FAILED:
|
|
347
|
-
field_functionality_pass_fail_print(test, 'phase', phase)
|
|
348
|
-
return terminate_test(test, phase=phase, revert_rx_brg=True, revert_tx_brg=True, modules=modules)
|
|
349
|
-
field_functionality_pass_fail_print(test, 'phase', phase)
|
|
350
|
-
|
|
351
|
-
phase = 5 if not test.internal_brg else 4
|
|
352
|
-
functionality_run_print(f"phase {phase}")
|
|
353
|
-
# for internal_brg this is phase 4 !!!!!!!!!!!!!!!!
|
|
354
|
-
# Phase 5 - Tx BRG without rx. just waiting for packets to be sent from the transmitter and verify
|
|
355
|
-
# The receiver isn't receiving any signal indicator packets.
|
|
356
|
-
tx_signal_ind_cycle, tx_signal_ind_rep = get_phase_tx_params_values(5, TX_BRG_IDX)
|
|
357
|
-
utPrint(f"TX BRG without RX - cycle = {tx_signal_ind_cycle}, repetition = {tx_signal_ind_rep}\n", "HEADER")
|
|
358
|
-
|
|
359
|
-
# restore default configuration for receiver #
|
|
360
|
-
utPrint(f"Configuring BRG {rx_brg_.id_str} to default", "BOLD")
|
|
361
|
-
test = cert_config.config_brg1_defaults(test, modules=modules)[0]
|
|
362
|
-
if test.rc == TEST_FAILED and test.exit_on_param_failure:
|
|
363
|
-
test.add_reason(f"BRG {rx_brg_.id_str}: didn't revert to default configuration!")
|
|
364
|
-
return terminate_test(test, phase=phase, revert_rx_brg=True, revert_tx_brg=True, modules=modules)
|
|
365
|
-
|
|
366
|
-
# configuring transmitter #
|
|
367
|
-
utPrint(f"Configuring BRG {tx_brg_.id_str} as Signal Indicator Transmitter", "BOLD")
|
|
368
|
-
transmitter_cfg_pkt = WltPkt(hdr=DEFAULT_HDR, pkt=tx_module(seq_id=random.randrange(99), brg_mac=tx_brg_.id_int,
|
|
369
|
-
signal_indicator_cycle=tx_signal_ind_cycle, signal_indicator_rep=tx_signal_ind_rep,
|
|
370
|
-
pattern=ag.SUB1G_ENERGY_PATTERN_ISRAEL))
|
|
371
|
-
test = cert_config.brg_configure(test=test, cfg_pkt=transmitter_cfg_pkt)[0]
|
|
372
|
-
if test.rc == TEST_FAILED and test.exit_on_param_failure:
|
|
373
|
-
test.add_reason(f"BRG {tx_brg_.id_str}: didn't receive signal indicator transmitter configuration!")
|
|
374
|
-
return terminate_test(test, phase=phase, revert_tx_brg=True, modules=modules)
|
|
375
|
-
utPrint(f"BRG {tx_brg_.id_str} successfully configured to be transmitter - cycle = {tx_signal_ind_cycle},"
|
|
376
|
-
f"repetition = {tx_signal_ind_rep}, EP = {ag.SUB1G_ENERGY_PATTERN_ISRAEL}", "GREEN")
|
|
377
|
-
|
|
378
|
-
# phase analysis #
|
|
379
|
-
mqtt_scan_n_create_log_file(test, (NUM_OF_SCANNING_CYCLE * tx_signal_ind_cycle) + SCAN_DELAY_TIME, phase)
|
|
380
|
-
expected_signal_ind_pkts = 0
|
|
381
|
-
received_signal_ind_pkts = cert_common.get_all_sig_ind_pkts(test=test, rx_brg=rx_brg_, tx_brg=tx_brg_)
|
|
382
|
-
if len(received_signal_ind_pkts) != expected_signal_ind_pkts:
|
|
383
|
-
test.rc = TEST_FAILED
|
|
384
|
-
test.add_reason(f"Phase {phase} failed - received signal indicator packet from BRG {rx_brg_.id_str}")
|
|
385
|
-
field_functionality_pass_fail_print(test, 'phase', phase)
|
|
386
|
-
if test.rc == TEST_FAILED:
|
|
387
|
-
return terminate_test(test, phase=phase, revert_rx_brg=False, revert_tx_brg=True, modules=modules)
|
|
388
|
-
|
|
389
|
-
# Test epilog
|
|
390
|
-
return terminate_test(test, phase=phase, revert_rx_brg=False, revert_tx_brg=True, modules=modules)
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Signal Indicator Configuration",
|
|
3
|
-
"module": "Energizer Sub-1GHz",
|
|
4
|
-
"purpose": "Test configuration for supported energy_sub1g signal indicator cycle & repetitions sets of values",
|
|
5
|
-
"documentation": "https://community.wiliot.com/customers/s/article/Wiliot-Network-Sub1-Ghz-Energizer-module",
|
|
6
|
-
"initialCondition": "Bridge configured to defaults",
|
|
7
|
-
"procedure": ["Test prolog",
|
|
8
|
-
"For each supported value - configure the BRG and verify the value",
|
|
9
|
-
"Test epilog and revert to defaults"],
|
|
10
|
-
"expectedOutcome": "All values configured successfully",
|
|
11
|
-
"mandatory": 0,
|
|
12
|
-
"multiBridgeTest": 0,
|
|
13
|
-
"gwOnlyTest": 0,
|
|
14
|
-
"internalBridge": 1,
|
|
15
|
-
"allSupportedValues": [[60,4], [100,3]]
|
|
16
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
from brg_certificate.cert_prints import *
|
|
2
|
-
from brg_certificate.cert_defines import *
|
|
3
|
-
from brg_certificate.wlt_types import *
|
|
4
|
-
import brg_certificate.cert_common as cert_common
|
|
5
|
-
import brg_certificate.cert_config as cert_config
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def run(test):
|
|
9
|
-
|
|
10
|
-
fields = [BRG_SIGNAL_INDICATOR_CYCLE, BRG_SIGNAL_INDICATOR_REP]
|
|
11
|
-
sub1g_module = test.active_brg.energy_sub1g
|
|
12
|
-
|
|
13
|
-
test = cert_common.test_prolog(test)
|
|
14
|
-
if test.rc == TEST_FAILED:
|
|
15
|
-
return cert_common.test_epilog(test)
|
|
16
|
-
for param in test.params:
|
|
17
|
-
param_name = f"{param.name}"
|
|
18
|
-
test = cert_config.brg_configure(test, fields=fields, values=param.value, module=sub1g_module)[0]
|
|
19
|
-
field_functionality_pass_fail_print(test, fields[0] + "_sub1g", value=param_name)
|
|
20
|
-
generate_log_file(test, param_name)
|
|
21
|
-
test.set_phase_rc(param.name, test.rc)
|
|
22
|
-
test.add_phase_reason(param.name, test.reason)
|
|
23
|
-
if test.rc == TEST_FAILED:
|
|
24
|
-
if test.exit_on_param_failure:
|
|
25
|
-
break # break the whole for loop and keep the test as failed
|
|
26
|
-
test.reset_result() # reset result and continue to next param
|
|
27
|
-
|
|
28
|
-
return cert_common.test_epilog(test, revert_brgs=True, modules=[sub1g_module])
|