wiliot-certificate 4.4.2__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.2.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.91_app.zip +0 -0
- gw_certificate/interface/4.4.91_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.2.dist-info/METADATA +0 -211
- wiliot_certificate-4.4.2.dist-info/RECORD +0 -210
- wiliot_certificate-4.4.2.dist-info/entry_points.txt +0 -3
- wiliot_certificate-4.4.2.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.2.dist-info → wiliot_certificate-4.5.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
GW_ACTIONS_DOC = "https://community.wiliot.com/customers/s/article/Wiliot-Gateway-Actions"
|
|
3
|
-
GW_REGISTER_DOC = "https://community.wiliot.com/customers/s/article/Registering-Third-Party-Gateways"
|
|
4
|
-
GW_MQTT_DOC = "https://community.wiliot.com/customers/s/article/Sending-Wiliot-Packets-to-the-Wiliot-Cloud"
|
|
5
|
-
GW_BRIDGE_OTA_DOC = "https://community.wiliot.com/customers/s/article/Bridge-OTA"
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
from gw_certificate.interface.if_defines import *
|
|
2
|
-
from gw_certificate.ag.ut_defines import *
|
|
3
|
-
|
|
4
|
-
RECEIVED = 'received'
|
|
5
|
-
SHOULD_RECEIVE = 'shouldReceive'
|
|
6
|
-
SHARED_COLUMNS = [PAYLOAD]
|
|
7
|
-
INT64_COLUMNS = [RSSI]
|
|
8
|
-
OBJECT_COLUMNS = [PAYLOAD]
|
|
9
|
-
REPORT_COLUMNS = ['pkt_id', 'duplication', 'time_delay']
|
|
10
|
-
|
|
11
|
-
ADV_TIMESTAMP = 'adv_timestamp'
|
|
12
|
-
TS_DEVIATION = 4500
|
|
13
|
-
TS_TOLERANCE = 2500
|
|
14
|
-
REC_TIMESTAMP = 'rec_timestamp'
|
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
import datetime
|
|
2
|
-
import os
|
|
3
|
-
import time
|
|
4
|
-
import pandas as pd
|
|
5
|
-
import plotly.express as px
|
|
6
|
-
import tabulate
|
|
7
|
-
|
|
8
|
-
from gw_certificate.ag.ut_defines import PAYLOAD
|
|
9
|
-
from gw_certificate.common.debug import debug_print
|
|
10
|
-
from gw_certificate.api_if.gw_capabilities import GWCapabilities
|
|
11
|
-
from gw_certificate.interface.ble_simulator import BLESimulator
|
|
12
|
-
from gw_certificate.tests.static.uplink_defines import *
|
|
13
|
-
from gw_certificate.tests.uplink import TimestampsHelper
|
|
14
|
-
from gw_certificate.interface.mqtt import MqttClient
|
|
15
|
-
from gw_certificate.tests.static.generated_packet_table import StressRunData
|
|
16
|
-
from gw_certificate.tests.generic import PassCriteria, PERFECT_SCORE, GenericTest, GenericStage, INFORMATIVE
|
|
17
|
-
|
|
18
|
-
# HELPER DEFINES
|
|
19
|
-
ONE_SECOND_MS = 1000
|
|
20
|
-
STRESS_DEFAULT_DELAYS = [50, 25, 16.66, 12.5, 10, 8.33, 7.14, 6.25, 5.55, 5, 4.5, 4, 3.5, 3]
|
|
21
|
-
STRESS_DEFAULT_PPS = [int(1000 / delay) for delay in STRESS_DEFAULT_DELAYS]
|
|
22
|
-
TIME_PER_DELAY = 30
|
|
23
|
-
TIME_PER_DELAY_FIRST = 50
|
|
24
|
-
|
|
25
|
-
# HELPER FUNCTIONS
|
|
26
|
-
|
|
27
|
-
def process_payload(packet:dict):
|
|
28
|
-
payload = packet[PAYLOAD]
|
|
29
|
-
payload = payload.upper()
|
|
30
|
-
if len(payload) == 62 and payload[2:4] == '16':
|
|
31
|
-
payload = payload [4:]
|
|
32
|
-
# big2little endian
|
|
33
|
-
if payload[:4] == 'FCC6':
|
|
34
|
-
payload = 'C6FC' + payload[4:]
|
|
35
|
-
packet[PAYLOAD] = payload
|
|
36
|
-
return packet
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
# TEST STAGES
|
|
40
|
-
class GenericStressStage(GenericStage):
|
|
41
|
-
def __init__(self, mqttc:MqttClient, ble_sim:BLESimulator, gw_capabilities:GWCapabilities, stage_name,
|
|
42
|
-
**kwargs):
|
|
43
|
-
self.__dict__.update(kwargs)
|
|
44
|
-
super().__init__(stage_name=stage_name, **self.__dict__)
|
|
45
|
-
|
|
46
|
-
self.result_indication = INFORMATIVE
|
|
47
|
-
|
|
48
|
-
# Clients
|
|
49
|
-
self.mqttc = mqttc
|
|
50
|
-
self.ble_sim = ble_sim
|
|
51
|
-
|
|
52
|
-
# Packets list
|
|
53
|
-
self.local_pkts = []
|
|
54
|
-
self.mqtt_pkts = []
|
|
55
|
-
self.full_test_pkts = pd.DataFrame()
|
|
56
|
-
|
|
57
|
-
# GW Capabilities
|
|
58
|
-
self.gw_capabilities = gw_capabilities
|
|
59
|
-
|
|
60
|
-
#Run Data
|
|
61
|
-
self.run_stress_data = StressRunData()
|
|
62
|
-
|
|
63
|
-
# Data extracted from the test csv
|
|
64
|
-
self.all_test_payloads = None
|
|
65
|
-
|
|
66
|
-
def prepare_stage(self, reset_ble_sim=True):
|
|
67
|
-
super().prepare_stage()
|
|
68
|
-
self.mqttc.flush_messages()
|
|
69
|
-
if reset_ble_sim:
|
|
70
|
-
self.ble_sim.set_sim_mode(True)
|
|
71
|
-
|
|
72
|
-
def fetch_mqtt_from_stage(self):
|
|
73
|
-
mqtt_pkts = self.mqttc.get_all_tags_pkts()
|
|
74
|
-
self.mqtt_pkts = list(map(lambda p: process_payload(p), mqtt_pkts))
|
|
75
|
-
|
|
76
|
-
def compare_local_mqtt(self):
|
|
77
|
-
self.fetch_mqtt_from_stage()
|
|
78
|
-
local_pkts_df = pd.DataFrame(self.local_pkts, columns=[PAYLOAD])
|
|
79
|
-
mqtt_pkts_df = pd.DataFrame(self.mqtt_pkts)
|
|
80
|
-
comparison = local_pkts_df
|
|
81
|
-
|
|
82
|
-
if PAYLOAD not in mqtt_pkts_df.columns:
|
|
83
|
-
mqtt_pkts_df[PAYLOAD] = ''
|
|
84
|
-
received_pkts_df = pd.merge(local_pkts_df[PAYLOAD], mqtt_pkts_df[PAYLOAD], how='inner')
|
|
85
|
-
|
|
86
|
-
received_pkts = set(received_pkts_df[PAYLOAD])
|
|
87
|
-
|
|
88
|
-
self.pkts_received_count = pd.Series.count(received_pkts_df)
|
|
89
|
-
unique_received_count = len(received_pkts)
|
|
90
|
-
self.pkts_filtered_out_count = self.pkts_received_count - unique_received_count
|
|
91
|
-
|
|
92
|
-
comparison[RECEIVED] = comparison[PAYLOAD].isin(received_pkts)
|
|
93
|
-
self.comparison = comparison
|
|
94
|
-
|
|
95
|
-
class StressTestStage(GenericStressStage):
|
|
96
|
-
|
|
97
|
-
def __init__(self, mqttc, ble_sim, gw_capabilities, **kwargs):
|
|
98
|
-
super().__init__(mqttc, ble_sim, gw_capabilities, stage_name=type(self).__name__, **kwargs)
|
|
99
|
-
self.duplicates = 1
|
|
100
|
-
self.report_data = {}
|
|
101
|
-
self.stage_tooltip = "Attempts different PPS (packets per second) rates to examine the gateway limit (actual PPS may vary per OS)"
|
|
102
|
-
desired_pps = kwargs.get('stress_pps', None)
|
|
103
|
-
|
|
104
|
-
def pps_to_delay(pps):
|
|
105
|
-
delay = 1000 / pps
|
|
106
|
-
trunctuated = int(delay * 100) / 100
|
|
107
|
-
return trunctuated
|
|
108
|
-
|
|
109
|
-
self.delays = STRESS_DEFAULT_DELAYS if desired_pps == None else [pps_to_delay(desired_pps)]
|
|
110
|
-
self.ts_records_arr = [TimestampsHelper() for delay in self.delays]
|
|
111
|
-
debug_print(f"StressTest delays configured: {self.delays}")
|
|
112
|
-
|
|
113
|
-
def run(self):
|
|
114
|
-
super().run()
|
|
115
|
-
for idx, delay in enumerate(self.delays):
|
|
116
|
-
self.stress_delay = delay
|
|
117
|
-
debug_print(f"---Running Stress Test with delay of {delay}")
|
|
118
|
-
self.run_full_stress_test(idx, delay)
|
|
119
|
-
|
|
120
|
-
def run_full_stress_test(self, delay_idx, delay):
|
|
121
|
-
self.prepare_stage()
|
|
122
|
-
self.run_stress_test_with_delay(delay_idx, delay)
|
|
123
|
-
if self.aggregation_time > 0:
|
|
124
|
-
debug_print(f"Waiting {self.aggregation_time} seconds for packets to be uploaded before processing results..")
|
|
125
|
-
time.sleep(self.aggregation_time)
|
|
126
|
-
self.generate_stage_report(delay_idx)
|
|
127
|
-
self.teardown_stage()
|
|
128
|
-
|
|
129
|
-
def prepare_stage(self):
|
|
130
|
-
super().prepare_stage()
|
|
131
|
-
self.local_pkts = []
|
|
132
|
-
|
|
133
|
-
def run_stress_test_with_delay(self, delay_idx, delay):
|
|
134
|
-
run_data = self.run_stress_data.data
|
|
135
|
-
end_time = datetime.datetime.now() + datetime.timedelta(seconds=TIME_PER_DELAY_FIRST if delay == STRESS_DEFAULT_DELAYS[0] else TIME_PER_DELAY)
|
|
136
|
-
last_sent_time = time.perf_counter_ns()
|
|
137
|
-
debug_print('Advertising packets...')
|
|
138
|
-
for index, row in run_data.iterrows():
|
|
139
|
-
if datetime.datetime.now() > end_time:
|
|
140
|
-
debug_print(f"Timeout for PPS rate {int(ONE_SECOND_MS / delay)} reached")
|
|
141
|
-
break
|
|
142
|
-
data = row[ADVA_PAYLOAD]
|
|
143
|
-
self.local_pkts.append(row[PAYLOAD])
|
|
144
|
-
while True:
|
|
145
|
-
if time.perf_counter_ns() - last_sent_time >= delay * 10**6:
|
|
146
|
-
self.ble_sim.send_packet(data, duplicates=self.duplicates, delay=0, print_for_debug=False)
|
|
147
|
-
last_sent_time = time.perf_counter_ns()
|
|
148
|
-
break
|
|
149
|
-
self.ts_records_arr[delay_idx].set_adv_timestamp_current(data)
|
|
150
|
-
# Since stress entries in packet_table.csv are reused with different delays, we set it here.
|
|
151
|
-
# For each iteration a different ts_records instance that holds a different copy of the original dataframe.
|
|
152
|
-
self.ts_records_arr[delay_idx].table.loc[pd.DataFrame.notna(self.ts_records_arr[delay_idx].table[ADV_TIMESTAMP]), 'time_delay'] = delay
|
|
153
|
-
time.sleep(15)
|
|
154
|
-
|
|
155
|
-
def teardown_stage(self):
|
|
156
|
-
self.ble_sim.set_sim_mode(False)
|
|
157
|
-
self.mqttc.flush_messages()
|
|
158
|
-
|
|
159
|
-
def generate_stage_report(self, delay_idx):
|
|
160
|
-
def save_to_csv(df, csv_path):
|
|
161
|
-
"""
|
|
162
|
-
Save a DataFrame to a CSV file without overwriting existing content.
|
|
163
|
-
|
|
164
|
-
:param df: The DataFrame to be saved.
|
|
165
|
-
:param csv_path: The path to the CSV file.
|
|
166
|
-
"""
|
|
167
|
-
if os.path.exists(csv_path) and os.path.getsize(csv_path) > 0:
|
|
168
|
-
df.to_csv(csv_path, mode='a', header=False, index=False)
|
|
169
|
-
else:
|
|
170
|
-
df.to_csv(csv_path, mode='w', header=True, index=False)
|
|
171
|
-
|
|
172
|
-
self.compare_local_mqtt()
|
|
173
|
-
report = []
|
|
174
|
-
num_pkts_sent = len(self.comparison)
|
|
175
|
-
num_pkts_received = self.comparison['received'].eq(True).sum()
|
|
176
|
-
self.stage_pass = PERFECT_SCORE
|
|
177
|
-
self.comparison['duplications'] = self.duplicates
|
|
178
|
-
self.comparison['time_delay'] = self.stress_delay
|
|
179
|
-
self.full_test_pkts = pd.concat([self.full_test_pkts, self.comparison], ignore_index=True)
|
|
180
|
-
save_to_csv(self.comparison, self.csv_path)
|
|
181
|
-
|
|
182
|
-
if str(self.stress_delay) not in self.report_data:
|
|
183
|
-
self.report_data[str(self.stress_delay)] = {}
|
|
184
|
-
self.report_data[str(self.stress_delay)]['pkts_sent'] = num_pkts_sent
|
|
185
|
-
self.report_data[str(self.stress_delay)]['pkts_recieved'] = num_pkts_received
|
|
186
|
-
self.report_data[str(self.stress_delay)]['pkts_per_sec_desired'] = int(1000 / (self.stress_delay * self.duplicates))
|
|
187
|
-
self.report_data[str(self.stress_delay)]['pkts_per_sec_actual'] = (num_pkts_sent / (TIME_PER_DELAY_FIRST if self.stress_delay == STRESS_DEFAULT_DELAYS[0] else TIME_PER_DELAY))
|
|
188
|
-
self.report_data[str(self.stress_delay)]['percent_of_false_recieved'] = 100 - (num_pkts_received * 100 / num_pkts_sent)
|
|
189
|
-
|
|
190
|
-
self.ts_records_arr[delay_idx].validate_timestamps(self.mqtt_pkts)
|
|
191
|
-
|
|
192
|
-
if self.stress_delay == self.delays[-1]:
|
|
193
|
-
for delay in self.delays:
|
|
194
|
-
delay = str(delay)
|
|
195
|
-
report.append((f'Test - {self.report_data[delay]["pkts_per_sec_desired"]} packets per second. Actual packet per second - ', self.report_data[delay]["pkts_per_sec_actual"]))
|
|
196
|
-
report.append(((f'Number of packets sent'), self.report_data[delay]['pkts_sent']))
|
|
197
|
-
report.append(((f'Number of packets received'), self.report_data[delay]['pkts_recieved']))
|
|
198
|
-
self.add_report_header()
|
|
199
|
-
self.add_to_stage_report(tabulate.tabulate(pd.DataFrame(report), showindex=False))
|
|
200
|
-
for idx, delay in enumerate(self.delays):
|
|
201
|
-
if self.ts_records_arr[idx].is_ts_error():
|
|
202
|
-
self.add_to_stage_report(f"Timestamps errors during PPS {self.report_data[str(delay)]['pkts_per_sec_desired']}:")
|
|
203
|
-
self.ts_records_arr[idx].add_ts_errs_to_report(self, newline=False)
|
|
204
|
-
self.add_report_line_separator()
|
|
205
|
-
self.add_to_stage_report(f'Stage data saved - {self.csv_path}')
|
|
206
|
-
|
|
207
|
-
fig_data = pd.DataFrame.from_dict(self.report_data, orient='index')
|
|
208
|
-
fig_data.reset_index(inplace=True)
|
|
209
|
-
fig_data.rename(columns={'index': 'time_delay'}, inplace=True)
|
|
210
|
-
fig = px.line(fig_data, x='pkts_per_sec_actual', y='percent_of_false_recieved', title='Percentage of packets not recieved by packets per second sent',
|
|
211
|
-
labels={'pkts_per_sec_actual': 'Packets Sent Per Second', 'false_percentage': 'Percentage of packets not recieved'})
|
|
212
|
-
graph_div = fig.to_html(full_html=False, include_plotlyjs='cdn')
|
|
213
|
-
|
|
214
|
-
# Generate HTML
|
|
215
|
-
table_html = self.template_engine.render_template('table.html', dataframe=self.comparison.to_html(table_id=self.stage_name), table_id=self.stage_name)
|
|
216
|
-
self.report_html = self.template_engine.render_template('stage.html', stage=self,
|
|
217
|
-
stage_report=self.report.split('\n'), graph=graph_div)
|
|
218
|
-
|
|
219
|
-
return self.report
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
STAGES = [StressTestStage]
|
|
223
|
-
|
|
224
|
-
class StressTest(GenericTest):
|
|
225
|
-
def __init__(self, **kwargs):
|
|
226
|
-
self.__dict__.update(kwargs)
|
|
227
|
-
super().__init__(**self.__dict__, test_name=type(self).__name__)
|
|
228
|
-
self.all_messages_in_test = []
|
|
229
|
-
self.stages = [stage(**self.__dict__) for stage in STAGES]
|
|
230
|
-
self.result_indication = INFORMATIVE
|
|
231
|
-
self.test_tooltip = "Stages attempting to stress test a maximum throughput"
|
|
232
|
-
|
|
233
|
-
def run(self):
|
|
234
|
-
super().run()
|
|
235
|
-
for stage in self.stages:
|
|
236
|
-
stage.prepare_stage()
|
|
237
|
-
stage.run()
|
|
238
|
-
self.test_pass = PassCriteria.calc_for_test(self, stage)
|
|
239
|
-
self.all_messages_in_test.extend(self.mqttc.get_all_messages_from_topic('data'))
|
|
240
|
-
|