wiki:Internal/AntennaController

Version 2 (modified by jkol, 8 years ago) ( diff )

Antenna Controller

REST API

All valid calls will reply with formatted XML. The first line will be <response status="OK"> for commands that execute correctly, or <response status="ERROR"> if either the parameters passed are invalid of the call failed for some other reason (check /var/log/syslog on the relevant Pi for more information).

REST API Call Description
/Antenna/enable Powers up the antenna and enables further communication.
/Antenna/disable Powers down the antenna.
/Antenna/select?pattern=<int> Selects the requested antenna pattern (valid numbers: 0 to 49)
/Antenna/status Returns status information. Last known configured pattern and whether the antenna is enabled.
/Antenna/default Restores antenna configuration to defaults: auto TX/RX on omni and directional ports, 115200bpbs on RS485, selects pattern 49 (all array elements off).
/Antenna/factory_restore Restores antenna pattern states to factory configuration. THIS TAKES SEVERAL MINUTES TO COMPLETE. DO NOT USE UNLESS NECESSARY.
Note: See TracWiki for help on using the wiki.