Skip to content

Latest commit

 

History

History
79 lines (51 loc) · 2.65 KB

README.md

File metadata and controls

79 lines (51 loc) · 2.65 KB

rwc-python-api

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
    RWC5020B Tester RWC5020M Tester
  • Supported analyzer (previous generation):

    RWC5020A
    RWC5020A Tester

Requirements

API Setup

Python API Setup

  • To access RWC5020x tester using Python Library, please follow the setup shown in the diagram.

How to install the package

  1. Clone the repository from github

  2. Open a terminal window and change directory to {path_to_repository}/rwc-python-api.

  3. To install the library in your local Python setup, enter the command

    python setup.py install

How to use the package

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.

Support

The Python library supports RWC5020x firmware from v1.150 to latest version (v1.310 at time of release).

Release History

  • v1.0.4 has the following changes:

    • Fix #6: Added new remote commands for the latest firmware v1.310
  • v1.0.3.10 includes the following changes:

    • Fix #2: Updated latest remote commands and added backward compatibility to python library for support of RWC5020x firmware from v1.150 to v1.305.