rui3pylib 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rui3pylib-0.1.0/LICENSE +21 -0
- rui3pylib-0.1.0/PKG-INFO +63 -0
- rui3pylib-0.1.0/README.md +18 -0
- rui3pylib-0.1.0/pyproject.toml +38 -0
- rui3pylib-0.1.0/src/.gitignore +2 -0
- rui3pylib-0.1.0/src/example.py +15 -0
- rui3pylib-0.1.0/src/requirements.txt +1 -0
- rui3pylib-0.1.0/src/rui3pylib/__init__.py +1 -0
- rui3pylib-0.1.0/src/rui3pylib/rui3pylib.py +2230 -0
- rui3pylib-0.1.0/test/.gitignore +5 -0
- rui3pylib-0.1.0/test/README.md +190 -0
- rui3pylib-0.1.0/test/pytest.ini +29 -0
- rui3pylib-0.1.0/test/rui3pylib.py +2230 -0
- rui3pylib-0.1.0/test/tests/conftest.py +166 -0
- rui3pylib-0.1.0/test/tests/test_bootloader.py +161 -0
- rui3pylib-0.1.0/test/tests/test_class_b_info_regional_multicast.py +558 -0
- rui3pylib-0.1.0/test/tests/test_connection.py +254 -0
- rui3pylib-0.1.0/test/tests/test_core_functions.py +277 -0
- rui3pylib-0.1.0/test/tests/test_general_commands.py +389 -0
- rui3pylib-0.1.0/test/tests/test_lorawan_join_send.py +474 -0
- rui3pylib-0.1.0/test/tests/test_lorawan_keys.py +382 -0
- rui3pylib-0.1.0/test/tests/test_lorawan_network_mgmt.py +719 -0
- rui3pylib-0.1.0/test/tests/test_low_power.py +180 -0
- rui3pylib-0.1.0/test/tests/test_p2p.py +1142 -0
- rui3pylib-0.1.0/test/tests/test_rf_test.py +705 -0
- rui3pylib-0.1.0/test/tests/test_serial_commands.py +167 -0
rui3pylib-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Daniele Magnaterra
|
|
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 all
|
|
13
|
+
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 THE
|
|
21
|
+
SOFTWARE.
|
rui3pylib-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rui3pylib
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python wrapper for the RUI3 AT command set (RAKwireless)
|
|
5
|
+
Project-URL: Homepage, https://github.com/danielemagnaterradev/RUI3_AT-lib
|
|
6
|
+
Project-URL: Repository, https://github.com/danielemagnaterradev/RUI3_AT-lib
|
|
7
|
+
Project-URL: Issues, https://github.com/danielemagnaterradev/RUI3_AT-lib/issues
|
|
8
|
+
Author-email: Daniele Magnaterra <dev.danielemagnaterra@gmail.com>
|
|
9
|
+
License: MIT License
|
|
10
|
+
|
|
11
|
+
Copyright (c) 2026 Daniele Magnaterra
|
|
12
|
+
|
|
13
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
15
|
+
in the Software without restriction, including without limitation the rights
|
|
16
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
17
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
18
|
+
furnished to do so, subject to the following conditions:
|
|
19
|
+
|
|
20
|
+
The above copyright notice and this permission notice shall be included in all
|
|
21
|
+
copies or substantial portions of the Software.
|
|
22
|
+
|
|
23
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
24
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
26
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
27
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
28
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
29
|
+
SOFTWARE.
|
|
30
|
+
License-File: LICENSE
|
|
31
|
+
Keywords: at-commands,lorawan,rakwireless,rui3,serial
|
|
32
|
+
Classifier: Development Status :: 3 - Alpha
|
|
33
|
+
Classifier: Intended Audience :: Developers
|
|
34
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
35
|
+
Classifier: Programming Language :: Python :: 3
|
|
36
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
37
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
38
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
39
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
40
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
41
|
+
Classifier: Topic :: System :: Hardware
|
|
42
|
+
Requires-Python: >=3.9
|
|
43
|
+
Requires-Dist: pyserial>=3.5
|
|
44
|
+
Description-Content-Type: text/markdown
|
|
45
|
+
|
|
46
|
+
# RUI3_AT-lib
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
This is a wrapper for the RUI3_AT API and was made strictly following the official API documentation: https://docs.rakwireless.com/product-categories/software-apis-and-libraries/rui3/at-command-manual/
|
|
50
|
+
|
|
51
|
+
The docstrings inside the source code mimic quite precisely what is said in the documentation but, if you happen to have any doubts or there are some documentation clashes, always refer back to the official docs since they are the authorative source.
|
|
52
|
+
|
|
53
|
+
The library is built around node class (RUI3Node) which, when instantiated, will automatically find and connect to, when available, **ONE AND ONLY ONE** RUI3_AT compatible device. Trying to connect multiple devices at once will result in errors and/or undefined behaviour.
|
|
54
|
+
|
|
55
|
+
All the commands are wrapped inside methods for the RUI3Node class, with the names being as self-explanatory as possible.
|
|
56
|
+
|
|
57
|
+
Since the API error messages are very generic and unclear, most of the checking for the correctness of the values passed to the methods will be done inside the library, with more descriptive error messages.
|
|
58
|
+
|
|
59
|
+
While the entirety of the API commands provided in the official documentation has been implemented, not all of them are compatible with all the devices. I suggest running the at_help() method first to verify which commands are available for you particular device, and which ones have read and/or write permissions.
|
|
60
|
+
|
|
61
|
+
I am in no way associated with RAK nor did I have any contact with them during the making of this library. This is entirely a personal project that I decided to publish.
|
|
62
|
+
|
|
63
|
+
For any issue, you can contact me at: dev.danielemagnaterra@gmail.com
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# RUI3_AT-lib
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
This is a wrapper for the RUI3_AT API and was made strictly following the official API documentation: https://docs.rakwireless.com/product-categories/software-apis-and-libraries/rui3/at-command-manual/
|
|
5
|
+
|
|
6
|
+
The docstrings inside the source code mimic quite precisely what is said in the documentation but, if you happen to have any doubts or there are some documentation clashes, always refer back to the official docs since they are the authorative source.
|
|
7
|
+
|
|
8
|
+
The library is built around node class (RUI3Node) which, when instantiated, will automatically find and connect to, when available, **ONE AND ONLY ONE** RUI3_AT compatible device. Trying to connect multiple devices at once will result in errors and/or undefined behaviour.
|
|
9
|
+
|
|
10
|
+
All the commands are wrapped inside methods for the RUI3Node class, with the names being as self-explanatory as possible.
|
|
11
|
+
|
|
12
|
+
Since the API error messages are very generic and unclear, most of the checking for the correctness of the values passed to the methods will be done inside the library, with more descriptive error messages.
|
|
13
|
+
|
|
14
|
+
While the entirety of the API commands provided in the official documentation has been implemented, not all of them are compatible with all the devices. I suggest running the at_help() method first to verify which commands are available for you particular device, and which ones have read and/or write permissions.
|
|
15
|
+
|
|
16
|
+
I am in no way associated with RAK nor did I have any contact with them during the making of this library. This is entirely a personal project that I decided to publish.
|
|
17
|
+
|
|
18
|
+
For any issue, you can contact me at: dev.danielemagnaterra@gmail.com
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "rui3pylib"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Python wrapper for the RUI3 AT command set (RAKwireless)"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = { file = "LICENSE" }
|
|
11
|
+
requires-python = ">=3.9"
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "Daniele Magnaterra", email = "dev.danielemagnaterra@gmail.com" }
|
|
14
|
+
]
|
|
15
|
+
keywords = ["rui3", "rakwireless", "lorawan", "serial", "at-commands"]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 3 - Alpha",
|
|
18
|
+
"Intended Audience :: Developers",
|
|
19
|
+
"License :: OSI Approved :: MIT License",
|
|
20
|
+
"Programming Language :: Python :: 3",
|
|
21
|
+
"Programming Language :: Python :: 3.9",
|
|
22
|
+
"Programming Language :: Python :: 3.10",
|
|
23
|
+
"Programming Language :: Python :: 3.11",
|
|
24
|
+
"Programming Language :: Python :: 3.12",
|
|
25
|
+
"Topic :: Software Development :: Libraries",
|
|
26
|
+
"Topic :: System :: Hardware",
|
|
27
|
+
]
|
|
28
|
+
dependencies = [
|
|
29
|
+
"pyserial>=3.5",
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
[project.urls]
|
|
33
|
+
Homepage = "https://github.com/danielemagnaterradev/RUI3_AT-lib"
|
|
34
|
+
Repository = "https://github.com/danielemagnaterradev/RUI3_AT-lib"
|
|
35
|
+
Issues = "https://github.com/danielemagnaterradev/RUI3_AT-lib/issues"
|
|
36
|
+
|
|
37
|
+
[tool.hatch.build.targets.wheel]
|
|
38
|
+
packages = ["src/rui3pylib"]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import rui3pylib
|
|
2
|
+
|
|
3
|
+
iface = rui3pylib.RUI3Node()
|
|
4
|
+
try:
|
|
5
|
+
|
|
6
|
+
iface.set_device_eui("AC1F09FFFE285584")
|
|
7
|
+
iface.get_device_alias()
|
|
8
|
+
iface.get_device_eui()
|
|
9
|
+
|
|
10
|
+
iface.close()
|
|
11
|
+
|
|
12
|
+
except rui3pylib.serial.serialutil.PortNotOpenError as e:
|
|
13
|
+
print(f"SerialException on {iface.port}: {e}")
|
|
14
|
+
if iface.is_open:
|
|
15
|
+
iface.close()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pyserial==3.5
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .rui3pylib import RUI3Node, send_command, check_success
|