SERIAL PROTOCOL
USER’S MANUAL
SWEEP
V1.0
10
Copyright ©2014-2017 Scanse LLC - www.scanse.io
Adjusts motor speed setting to the specified code indicating a motor speed between 0Hz and 10Hz. This sets the
target speed setting, but the motor will take time (~6 seconds) to perform a calibration routine and stabilize to the
new speed setting. The blue LED on the device will flash until the calibration is complete and the motor speed has
stabilized. Once a speed is set, the sensor will always return to this speed, even after a power cycle (except when
setting the speed to 0Hz
–
in which case it will go back to 5Hz after a power cycle).
(HOST -> SENSOR)
M
S
Speed Code
(2 bytes)
LF
(SENSOR -> HOST)
M
S
Speed Code
(2 bytes)
LF
Status
(2 bytes)
Sum
LF
Speed Code (2 byte ASCII code
, ie: ‘05’ = 0x3035
):
•
‘00’ = 0Hz
•
‘01’ = 1Hz
•
‘02’ = 2Hz
•
‘03’ = 3Hz
•
‘04’ = 4Hz
•
‘05’ = 5Hz
•
‘06’ = 6Hz
•
‘07’ = 7Hz
•
‘08’ = 8
Hz
•
‘09’ = 9Hz
•
‘10’ = 10Hz
MS command is not guaranteed to succeed. There are a few conditions where it will fail. In the event of a failure,
the two status bytes are used to communicate the failure.
Status Code (2 byte ASCII code, ie: ‘11’ = 0x3131):
•
‘00’: Successfully processed command. Motor speed setting effectively changed to new value. Device still
requires time to stabilize, and calibrate.
•
‘11’: Failed to process command. The command was sent with an invalid parameter. Use a valid
parameter when trying again.
•
‘12’: Failed to process command. Motor speed has not yet stabilized to the previous setting. Motor speed
setting NOT changed to new value. Wait until motor speed has stabilized before trying to adjust it again.
Returns current motor speed code representing the rotation frequency (in Hz) of the current target motor speed
setting. This does not mean that the motor speed is stabilized yet.
(HOST -> SENSOR)
M
I
LF
(SENSOR -> HOST)
M
I
Speed Code
(2 bytes)
LF
See previous “
MS
–
Adjust Motor Speed” command for a breakdown of the possible Speed Codes.