SierraWireless / octave-orp

Octave Resource Protocol
MIT License
1 stars 4 forks source link

Octave-ORP

A collection of utilities and information to support the Sierra Wireless Octave Resource Protocol.

The Octave Resource Protocol (ORP) is a simple ASCII-based protocol which enables a remote asset (device) to interact with Octave by exchanging messages with an Octave-enabled edge device.

More information on ORP is provided on the Octave website. See: https://docs.octave.dev/docs/octave-resource-protocol

clients

Client code and examples for communicating with an Octave device using the Octave Resource Protocol

Python

orp_test.py

A simple python command-line utilty which can be used to mimic an ORP client, for testing and demonstration.

Depends on:

Tested on:

Setup:

  1. Install Python 3.x
  2. Install the following, using pip3:

    Windows: > pip3 install six pythoncrc pyserial

    Linux: $ sudo -H pip3 install six pythoncrc pyserial

Usage:

python orp_test.py [-h] --dev DEV [--b BAUD] [--no-auto-ack]

Where:

DEV           : serial port name or path (e.g. COM3 on Windows or /dev/ttyUSB0 on Linux)
BAUD          : baud rate (default 9600)
--no-auto-ack : option to disable automatic acknowledgement of sync and notification packets

For a list of supported commands, type "h" at the prompt

C

orp

A simple binary command-line utilty which can be used to mimic an ORP client, for testing and demonstration.

Depends on:

Tested on:

Build:

  1. Install gcc (tested with ver 7, 9)
  2. cd clients/c
  3. make

Usage:

./bin/orp -d DEV -b BAUD

Where:

DEV           : serial port name or path (e.g. /dev/ttyUSB0)
BAUD          : baud rate (default 9600)

For a list of supported commands, type "h" at the prompt