The OSVR unit provides a com port on the USB interface. Commands begin with # and are terminated with \n. All command parsing is performed in SerialStateMachine.c Parsing functions generally work on one character, then pass control to a sub-parser.
Commands can be given in upper or lower case. For the descriptions below, however, I've used upper case for the literal command and lower case to denote parameters of commands.
- n - single numeric digit
- aa - two character hex address
- xx, yy, zz, ww - two character hex value.
#?V - display version info
#?C - display clock
#?B1948 - enter bootloader
#BDExx - Set DCD Cal enable flags to hex xx.
#BDS - Save the current DCD values in non-volatile storage.
#BMExx - Enable/disable Mag sensor (xx=00 disable, anything else = enable)
#BMQ - Query the Mag sensor status
#BSQ - Query status.
#BVVxx - Pretty print events on the serial port (xx=00 disable,
anything else = enable)
#BRI - Re-init BNO with the default settings
#BRH - Hard reset the BNO
#SIn -
#SWnaammcc
#SRn
#SRnaa
#SUn
#SN
#SF
#SDn
#S0
#S1n
#I...
#F...
#T...
#H...
#Pxx
#EI
#EWaaxxyyzzww
#EV
#ERaa
#Dxx - set debug level to xx