wiliot-certificate 1.3.0a1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. gw_certificate/__init__.py +0 -0
  2. gw_certificate/ag/ut_defines.py +361 -0
  3. gw_certificate/ag/wlt_types.py +85 -0
  4. gw_certificate/ag/wlt_types_ag.py +5310 -0
  5. gw_certificate/ag/wlt_types_data.py +64 -0
  6. gw_certificate/api/extended_api.py +1547 -0
  7. gw_certificate/api_if/__init__.py +0 -0
  8. gw_certificate/api_if/api_validation.py +40 -0
  9. gw_certificate/api_if/gw_capabilities.py +18 -0
  10. gw_certificate/common/analysis_data_bricks.py +1455 -0
  11. gw_certificate/common/debug.py +63 -0
  12. gw_certificate/common/utils.py +219 -0
  13. gw_certificate/common/utils_defines.py +102 -0
  14. gw_certificate/common/wltPb_pb2.py +72 -0
  15. gw_certificate/common/wltPb_pb2.pyi +227 -0
  16. gw_certificate/gw_certificate.py +138 -0
  17. gw_certificate/gw_certificate_cli.py +70 -0
  18. gw_certificate/interface/ble_simulator.py +91 -0
  19. gw_certificate/interface/ble_sniffer.py +189 -0
  20. gw_certificate/interface/if_defines.py +35 -0
  21. gw_certificate/interface/mqtt.py +469 -0
  22. gw_certificate/interface/packet_error.py +22 -0
  23. gw_certificate/interface/pkt_generator.py +720 -0
  24. gw_certificate/interface/uart_if.py +193 -0
  25. gw_certificate/interface/uart_ports.py +20 -0
  26. gw_certificate/templates/results.html +241 -0
  27. gw_certificate/templates/stage.html +22 -0
  28. gw_certificate/templates/table.html +6 -0
  29. gw_certificate/templates/test.html +38 -0
  30. gw_certificate/tests/__init__.py +11 -0
  31. gw_certificate/tests/actions.py +131 -0
  32. gw_certificate/tests/bad_crc_to_PER_quantization.csv +51 -0
  33. gw_certificate/tests/connection.py +181 -0
  34. gw_certificate/tests/downlink.py +174 -0
  35. gw_certificate/tests/generic.py +161 -0
  36. gw_certificate/tests/registration.py +288 -0
  37. gw_certificate/tests/static/__init__.py +0 -0
  38. gw_certificate/tests/static/connection_defines.py +9 -0
  39. gw_certificate/tests/static/downlink_defines.py +9 -0
  40. gw_certificate/tests/static/generated_packet_table.py +209 -0
  41. gw_certificate/tests/static/packet_table.csv +10051 -0
  42. gw_certificate/tests/static/references.py +4 -0
  43. gw_certificate/tests/static/uplink_defines.py +20 -0
  44. gw_certificate/tests/throughput.py +244 -0
  45. gw_certificate/tests/uplink.py +683 -0
  46. wiliot_certificate-1.3.0a1.dist-info/LICENSE +21 -0
  47. wiliot_certificate-1.3.0a1.dist-info/METADATA +113 -0
  48. wiliot_certificate-1.3.0a1.dist-info/RECORD +51 -0
  49. wiliot_certificate-1.3.0a1.dist-info/WHEEL +5 -0
  50. wiliot_certificate-1.3.0a1.dist-info/entry_points.txt +2 -0
  51. wiliot_certificate-1.3.0a1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Wiliot Ltd.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,113 @@
1
+ Metadata-Version: 2.2
2
+ Name: wiliot_certificate
3
+ Version: 1.3.0a1
4
+ Summary: A library for certifying Wiliot-compliant boards
5
+ Author-email: Wiliot <support@wiliot.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2025 Wiliot Ltd.
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in
18
+ all copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
+ THE SOFTWARE.
27
+
28
+ Project-URL: Wiliot, https://www.wiliot.com
29
+ Project-URL: Certified, https://www.wiliot.com/product/ambient-iot-network#partner-device-certification
30
+ Classifier: Programming Language :: Python :: 3
31
+ Classifier: License :: OSI Approved :: MIT License
32
+ Classifier: Operating System :: OS Independent
33
+ Requires-Python: >=3.9
34
+ Description-Content-Type: text/markdown
35
+ License-File: LICENSE
36
+ Requires-Dist: jinja2>=3.1.5
37
+ Requires-Dist: appdirs>=1.4.4
38
+ Requires-Dist: plotly>=6.0.0
39
+ Requires-Dist: numpy>=2.2.2
40
+ Requires-Dist: pandas>=2.2.3
41
+ Requires-Dist: colorama>=0.4.6
42
+ Requires-Dist: tabulate>=0.9.0
43
+ Requires-Dist: wiliot-core>=5.9.1
44
+ Requires-Dist: paho-mqtt>=2.1.0
45
+ Requires-Dist: bitstruct>=8.19.0
46
+ Requires-Dist: protobuf>=5.29.3
47
+ Requires-Dist: wiliot-api>=4.10.8
48
+ Requires-Dist: jsonschema>=4.23.0
49
+ Requires-Dist: statsmodels>=0.14.4
50
+
51
+ # wiliot-certificate #
52
+
53
+ <!-- Description -->
54
+ wiliot-certificate is a python library with tools used to test & certify boards and their compatibility with Wiliot's echosystem.
55
+ This python package includes the following CLI utilities:
56
+ - Gateway Certificate (`wlt-gw-certificate`)
57
+
58
+ ## Installing wiliot-certificate
59
+ ````commandline
60
+ pip install wiliot-certificate
61
+ ````
62
+
63
+ ## Using wiliot-certificate
64
+ ### Gateway Certificate
65
+ Test Wiliot GWs capabilities.
66
+ The GW Certificate includes different test that run sequentially to test each capability reported by the GW.
67
+ To run the GW Certificate the GW needs to use a public MQTT Broker (Eclipse):
68
+
69
+ Host: mqtt.eclipseprojects.io
70
+ TLS TCP Port: 8883
71
+ TLS Websocket Port: 443
72
+ TCP Port: 1883
73
+ Websocket Port: 80
74
+
75
+ More information can be found at https://mqtt.eclipseprojects.io/.
76
+
77
+ #### Connection Test
78
+ Processes status packet sent by the GW to the MQTT Broker and validates it according to API Version.
79
+
80
+ #### Uplink Test
81
+ Simulates Wiliot MEL and validates that data is uploaded correctly to the cloud.
82
+
83
+ #### Downlink Test
84
+ Sends advertising actions (txPacket) via MQTT to the GW and validates their advertisements.
85
+
86
+ #### Stress Test
87
+ Increments time delays between packets to evaluate GW's capability in handling increasing packets per second rates.
88
+
89
+ #### GW Certificate Release Notes:
90
+ 1.3.0:
91
+ - Released in a standalone wiliot-certificate package
92
+ - Python 3.13 support
93
+ - Gw API version 205 support
94
+ - Registration Test
95
+
96
+
97
+ ```
98
+ usage: wlt-gw-certificate [-h] -owner OWNER -gw GW [-suffix SUFFIX] [-tests {connection,uplink,downlink,stress}]
99
+
100
+ Gateway Certificate - CLI Tool to test Wiliot GWs
101
+
102
+ required arguments:
103
+ -gw GW Gateway ID
104
+ -owner OWNER Owner ID (optional when running only the registration test)
105
+
106
+ optional arguments:
107
+ -suffix Allow for different suffixes after the GW ID in MQTT topics
108
+ -tests Pick specific tests to run
109
+ -update Update the firmware of the test board
110
+ -pps Pick specific PPS rate for the stress test
111
+ -agg Time the uplink stages should wait before processing packets
112
+ -h, --help show this help message and exit
113
+ ```
@@ -0,0 +1,51 @@
1
+ gw_certificate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ gw_certificate/gw_certificate.py,sha256=HmB7dnrP7avlVYAVz_Chlq9MQl8g5URYc2kMBftcB9g,6191
3
+ gw_certificate/gw_certificate_cli.py,sha256=9zH3QaaqjKfOYpsdnCcTvvDU3K-66DWHfMMeNMTQm50,3742
4
+ gw_certificate/ag/ut_defines.py,sha256=O5pKh_z8NwGEHOSO2MN8zflQBPeASomi90nLkS-C4Uw,16733
5
+ gw_certificate/ag/wlt_types.py,sha256=WFiRPs0E0fN5f-9a9l0y8zjDNAR4Xfmon2k8n7rqODk,3637
6
+ gw_certificate/ag/wlt_types_ag.py,sha256=xEk9_8m12x0_Tu8zeTV_7v6OY52dWdENHnjM61re-5I,246870
7
+ gw_certificate/ag/wlt_types_data.py,sha256=bN3bh4A9WEhf4EbAzO4kPnqhFkMvZA6PDSP0_MFgwQ4,2142
8
+ gw_certificate/api/extended_api.py,sha256=8lAgFRqvxw1fEzm7M9fF_Ft4aD5W2npklZ-oYmAZb5w,65690
9
+ gw_certificate/api_if/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
+ gw_certificate/api_if/api_validation.py,sha256=EPFbp0RZI4TQ8ImiYGyoJHIbeq9F6291cwmaGyAr4uE,1415
11
+ gw_certificate/api_if/gw_capabilities.py,sha256=OqZJ5EfqnAE39011QB6e23IuH8fQbklY7UZvObFgYi4,616
12
+ gw_certificate/common/analysis_data_bricks.py,sha256=qbfUezbwvFyB6-ZXtlJh63G-D2_vur4tvrU9nM7SOFs,66556
13
+ gw_certificate/common/debug.py,sha256=fzyAyi20sUQYLTis9JqzfaAOUPD1l72qtffoQGD6-0I,1679
14
+ gw_certificate/common/utils.py,sha256=TRBTBl6OS1Laxf4tw9qcmHhuTfiBCvBcbu39zAm5oyY,7621
15
+ gw_certificate/common/utils_defines.py,sha256=lHEjh3uURMIiZoAef0PYwwU0qmOP2SiMJ7Gl5qCZvcw,5049
16
+ gw_certificate/common/wltPb_pb2.py,sha256=LsZWcpbU4dUwvK6VIuvfbd9QenZ9tVlTsompqieVGPs,8064
17
+ gw_certificate/common/wltPb_pb2.pyi,sha256=i0qoxMyLOUKgZhmuC1S8gcPeExQJicjIxnJHd5MR9J0,11142
18
+ gw_certificate/interface/ble_simulator.py,sha256=EBD5QwVS752Bj-A7ot-c-I6obG0BAy11Qcd1qEro49o,4080
19
+ gw_certificate/interface/ble_sniffer.py,sha256=S5AtT_3gWlm3FCmQSR4KnCIfnr70E9LgQPtQEJs1YFM,6869
20
+ gw_certificate/interface/if_defines.py,sha256=-6tz9vsOMTcW59j8SjzMlCkbEJD1HEGPBuC7P9gaw-w,942
21
+ gw_certificate/interface/mqtt.py,sha256=qcaR70Axm06FailV_jjCmOdGt__HCkC9Ejrrxk_XKaU,20266
22
+ gw_certificate/interface/packet_error.py,sha256=Ntk-Yn7JtTTQFB28goEx1ucnE7PcAtb4G_CpfygpELs,820
23
+ gw_certificate/interface/pkt_generator.py,sha256=PMuz-oTiqNzxmP01QVcHyp1WrUF9u_TnU8hDEo_D4eo,27494
24
+ gw_certificate/interface/uart_if.py,sha256=20EK3Hl7fwQbI5K9xGfyK47VqwDhVbru6y0fIsqM7OU,8040
25
+ gw_certificate/interface/uart_ports.py,sha256=HOIdrkr8OtALhoorT51k_tvSh6VYholR2ey4_WwcIAk,547
26
+ gw_certificate/templates/results.html,sha256=gDWobKZ-bPkJ4LyJsdXpsssWxOKixfh1SdCgjWx0cjc,12694
27
+ gw_certificate/templates/stage.html,sha256=o89N0DWCIs2foA9YzommBZ09EPPN7lytiEsHoXD6fWU,1009
28
+ gw_certificate/templates/table.html,sha256=PPUf0St1OPT0fB_6OK0SQlsRST-brUJ99x9-Rxwan1Y,201
29
+ gw_certificate/templates/test.html,sha256=lpwibyrmGXNyNxpxNbQNoT2b5oCq5WHUYZrF0oDnLSA,2062
30
+ gw_certificate/tests/__init__.py,sha256=OeaX-HgUyZo8YF9xpWXFA7AaXltZpaqeluR1aNox3bM,565
31
+ gw_certificate/tests/actions.py,sha256=W9rQSekVT0wxkyDIGdmrIdftrUdOMSd-G55Fk4TcD2E,5581
32
+ gw_certificate/tests/bad_crc_to_PER_quantization.csv,sha256=2V1_7HV7pKEKddA429rp4tTn-je9G3Xi2tMvDhqvGhc,357
33
+ gw_certificate/tests/connection.py,sha256=nXAy0SepMaYu4_I_NaobfVMkx1cAlCa1KQ2DE2USJhg,9281
34
+ gw_certificate/tests/downlink.py,sha256=z9dsndo23-j0P4LfS_QWpujGKbyJ8mQPRRK693VeVwo,8868
35
+ gw_certificate/tests/generic.py,sha256=ly-_QPjRn2-2xmy37yfa5Obl8BJpYSCnUzY3_2LD5ns,5816
36
+ gw_certificate/tests/registration.py,sha256=BOYkdR5gHEnKBPaqzssuFFW0_VCXXoUmhcdT6sZX0Lg,13660
37
+ gw_certificate/tests/throughput.py,sha256=eDdGhOckUHRjymNtwfhBhaqFFGx9gY7UJWqbx2RzNUg,10989
38
+ gw_certificate/tests/uplink.py,sha256=FZ3QznKCFWZEzjheyUNB0mez6ydu2Aima_s79W48D7I,31288
39
+ gw_certificate/tests/static/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
+ gw_certificate/tests/static/connection_defines.py,sha256=RZbqvGNjUN-ST5378VZpleRB_b3_6IwME-j0CFnWmgE,309
41
+ gw_certificate/tests/static/downlink_defines.py,sha256=gjzQff_70Rn8m6pmfGciFwEC7efYQGEM9yNwl-8zRCs,340
42
+ gw_certificate/tests/static/generated_packet_table.py,sha256=jjsR1A10ljHZsMnz-R1C3B1GCvAPPXP8ntsT0_n1Qik,17152
43
+ gw_certificate/tests/static/packet_table.csv,sha256=TzrVvdjMFGMm2nO-b-RK_1_46E6fDUCGp7YBRRX0McM,3938289
44
+ gw_certificate/tests/static/references.py,sha256=ujil3KfX5JNZoRxGku5XhVak-p5OozHy5g4m_wmrwnM,301
45
+ gw_certificate/tests/static/uplink_defines.py,sha256=C3C_MffiwqcrA7TEXlHrm_f78kauCaIIX7DK7YJRmoY,598
46
+ wiliot_certificate-1.3.0a1.dist-info/LICENSE,sha256=OL5ajUNVx888yC2ogol0BKwPRLdQAF1noGuQ7WrYiAA,1068
47
+ wiliot_certificate-1.3.0a1.dist-info/METADATA,sha256=HN8uCHID1sPiI9jele6XidznuTZhSPk8dNM-67cfZJQ,4360
48
+ wiliot_certificate-1.3.0a1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
49
+ wiliot_certificate-1.3.0a1.dist-info/entry_points.txt,sha256=ZCjykroNIU-nqVHGJX-s6YLBTOcoU11w5jO6nFp9Yl4,78
50
+ wiliot_certificate-1.3.0a1.dist-info/top_level.txt,sha256=F7kjyb_keCkoYHaDubGcNLu1T7mXuq5ptUttukQj2CQ,15
51
+ wiliot_certificate-1.3.0a1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (75.8.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ wlt-gw-certificate = gw_certificate.gw_certificate_cli:main
@@ -0,0 +1 @@
1
+ gw_certificate