This is a Python library to control the RWC5020x LoRa Tester remotely through either the serial port (RS232) or the Ethernet port.
-
Supported analyzers (current generation):
RWC5020B RWC5020M -
Supported analyzer (previous generation):
RWC5020A
- To access RWC5020x tester using Python Library, please follow the setup shown in the diagram.
-
Clone the repository from github
-
Open a terminal window and change directory to
{path_to_repository}/rwc-python-api
. -
To install the library in your local Python setup, enter the command
python setup.py install
Create a Python file and import the class library from package:
from rwclib.cRWC5020x import RWCTesterApi
Create a class object and pass serial port or ethernet port & ip address as constructor parameter
# ---Serial Communication---
rwc = RWCTesterApi('COM5') #windows
(or)
rwc = RWCTesterApi('/dev/ttyUSB0') #Linux
# ---Ethernet Communication---
rwc = RWCTesterApi('5001', '192.168.0.33')
Access the class methods using instantiated object
rwc.query_identification()
To know more about class methods, please see the code documentation in the following location in this repository: ./doc/build/html/index.html
Example scripts showing how to use the library can be found in the examples
directory.
The Python library supports RWC5020x firmware from v1.150 to latest version (v1.310 at time of release).