SERIAL PROTOCOL
USER’S MANUAL
SWEEP
V1.0
9
Copyright ©2014-2017 Scanse LLC - www.scanse.io
Stops outputting measurement data.
(HOST -> SENSOR)
D
X
LF
(SENSOR -> HOST)
D
X
Status
(2 bytes)
SUM
LF
Returns a ready code representing whether or not the device is ready. A device is ready when the calibration
routine is complete, and that the motor speed has stabilized to its current setting. Intended use involves checking
whether device is ready before sending a “DS” or “MS” command.
(HOST -> SENSOR)
M
Z
LF
(SENSOR -> HOST)
M
Z
Ready Code
(2 bytes)
LF
Ready Code (2 byte ASCII code, ie: '01' = 0x3031):
•
'00' : Device is ready
•
'01' : Device is NOT ready
Whenever Sweep changes motor speed, it performs a calibration routine to account for inconsistencies in encoder
which helps the sweep produce accurate measurements. This calibration routine is initiated after:
•
powering on the device
•
after receiving any form of "Adjust Motor Speed - MS" command, regardless of the size of the
adjustment (ie: even calling "MS" with the current motor speed will still trigger a calibration)
During this calibration routine, the LED on the face of the device will blink blue. Once the blue LED has stopped
blinking, the calibration routine is complete and the motor is ready. This wait time also helps enforce that the
motor speed has stabilized at the new setting before anything else.
Currently, the device cannot process certain types of commands while the calibration routine is underway. These
types of commands include:
•
Data Start - DS
•
Adjust Motor Speed - MS
The MZ command allows the user to repeatedly query the motor speed state until the return code indicates the
motor speed has stabilized. After the motor speed is noted as stable, the user can safely send commands
like DS or MS.