background image

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) 

Speed Code 
(2 bytes) 

LF 

 (SENSOR -> HOST) 

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) 

LF 

(SENSOR -> HOST) 

Speed Code 
(2 bytes) 

LF 

 

See previous “

MS 

 

Adjust Motor Speed” command for a breakdown of the possible Speed Codes.

 

 

Summary of Contents for Sweep V1

Page 1: ...cal drawings 0 9 12 19 2016 Initial Release Laser Safety 0 Power Safety 0 Specifications 2 Physical 2 Electrical 2 Measurement Performance 2 Field of View 2 Measurement Error Test Data 2 Overview of I...

Page 2: ...see Theory of Operation Sweep is a single plane scanner This means that as its head rotates counterclockwise it records data in a single plane The beam starts out at approximately 12 7mm in diameter a...

Page 3: ...e internal pull up Pull down to put device in sleep mode 3 Yellow Sync Device Ready Goes high when first range measurement of new scan is completed then goes low when second range measurement is compl...

Page 4: ...Sudden rotational shocks can cause the head to either slow down or speed up which can affect angular measurements If Sweep is rotationally jerked hard enough it can cause the motor to lose sync which...

Page 5: ...e Under normal operation Sweep limits the maximum time per measurement to a value determined by the sample rate set using the LR command see LR packet structure description If not enough light is retu...

Page 6: ...with ASCII letter command codes HOST SENSOR Command with no parameter Command Symbol 2 bytes Line Feed 1 byte Example DS DX MI IV Line Feed LF or Carriage Return CR or Command with parameter Command...

Page 7: ...al processing of a command ASCII byte values of 00 or 99 indicate that the sensor received and processed the command normally Value of 11 specifies an invalid parameter was included in the command Any...

Page 8: ...ation about a single sensor reading Sync Error Byte The sync error byte is multi purpose and encodes information about the rotation of the Sweep sensor as well as any error information Consider the in...

Page 9: ...e 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...

Page 10: ...z 08 8Hz 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...

Page 11: ...Hz LR 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 cod...

Page 12: ...LF Example IVSWEEP01011100000001 I V SWEEP 01 01 1 00000001 LF Returns details about the device s current state settings Bit Rate Laser State Mode Diagnostic Motor Speed Sample Rate HOST SENSOR I D L...

Page 13: ...s 0x30 return sum checkSumByteValue Example Consider the common case of 00P decimal 48 48 80 hex 0x30 0x30 0x50 0x30 0x30 0x60 sum of the status bytes 0x60 0x3F 0x20 retrieve only the lower 6 bits 0x2...

Page 14: ...e sum of 6 other bytes Instead the checksum byte uses the modulo operation and effectively contains the remainder after dividing the sum by 255 this is the same as saying sum 255 Validating the checks...

Reviews: