OPS-UM-001-C User Manual
OmniPreSense Corporation
5
API Commands
The following are the API commands supported by the OPS242-A. These commands can be sent by typing
into the command terminal to change settings on the module or control its operation. The commands
provided include simple queries to fetch information about the sensor and it settings or write commands
which control or change the operation of the sensor.
Module Information
–
returns information about the sensor
and it’s report setting.
Command
Name
R/W
Value
??
Module Information
Read
{"Product":"OMPS242A"}
{"Version":"1.2.0"}
{"SamplingRate":10000, "resolution":0.0607}
{"Clock":"20054"}
{"PowerMode":"Continuous"}
Sensor Part Number
–
returns sensor model number consisting of OmniPreSense ACPI vendor ID and
part number.
Command
Name
R/W
Value
?P
Sensor Part Number
Read
{"Product":"OMPS242A"}
Firmware Version
–
returns current firmware version of the sensor. Firmware version consists of a
major revision, minor revision, and patch revision in the form of xx.yy.zz.
Command
Name
R/W
Value
?V
Firmware Version Number
Read
{"Version":"1.2.0"}
?B
Firmware Build Number
Read
{"Build":"20180705_1500"}
Speed Output Units
–
read or set the units for the velocity output. Units supported include m/s
(default), cm/s, ft/s, km/hr, and miles per hour.
Command
Name
R/W
Value
U?
Current Velocity Units
Read
{"Units":"m-per-sec"}
UC
Centimeters per second
Write
{"Units":"cm-per-sec"}
UF
Feet per second
Write
{"Units":"ft-per-sec"}
UK
Kilometers per hour
Write
{"Units":"km-per-hr"}
UM
Meters per second
Write
{"Units":"m-per-sec"}
US
Miles per hour
Write
{"Units":"mph"}