The serial command API enables 3rd party control systems to interact with your RockAIR or RockFLEET device via an RS-232 or RS-485 serial interface.
The main purpose of the Serial API is to provide a method of sending and receiving hexadecimal or binary encoded data through your device. It is designed to be deliberately restrictive, with the overriding principle being that the external control system should not compromise the autonomous tracking capability of the device.
Enable Serial API mode via the CONNECT app
Connect to your tracker using the CONNECT app and ensure that Serial Mode is set to 'Serial API'.
Follow app menus: Configure>External Data>Serial Mode = Serial API
Serial API Support
RockFLEET (with appropriate configuration)
- RS232 versions are ‘3-wire’ with RX, TX and GND signals.
- RS485 versions are optoisolated, with A, B, Y, Z and GND signals.
For both serial interfaces we the recommended communication settings:
Serial API functionality requires the device to be set to 'Unlimited Power'.
Serial API functionality will be paused in limited power configuration and when deactivated, GPS streaming will be turned off whenever the API is paused.
Serial API can be enabled but not active!
The serial API feature can be enabled but its functionality may not be active on the serial port (paused) depending on system state. Whenever functionality does become active then an unsolicited message will now be issued to the serial port as a prompt for external equipment.
The message will include the current firmware version, for example:- "Version 03.04.19".
All commands should be followed by an \r Carriage Return
Request position data
Check/change the GPS Hot setting
Turn on GPS position data streaming to serial interface
Check/change the Tracking Frequency of the tracker
Transmit hex-encoded data with or without positional data and checksum
Transmit binary data with or without positional data and checksum
Sets outbound message ID. Used in combination with send hex or binary data commands.
Checks status of outbound message
Read inbound message
Delete inbound message
Returns the Firmware Version
This error type will be returned in response to any R7+WH.. or R7+WB.. message commands if the database is full.
This error will be returned to indicate rejection of a message command when the submitted ID is a duplicate of one already in the DB and not yet sent.
Updated 9 months ago