You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The LMS1xx protocol handler allows the communication to the SICK laserscanner LMS1xx to receiver the status and the distance measurements of these sensors.

Options

  • byteorder: The byte order for the communication (optional)
  • username: The username for the administration of the laser scanner(optional)
  • password: The password for the administration of the laser scanner (optional)

Schema

The output of the protocol handler provides the following attributes that can be used through the schema of the access operator:

NameTypeDescription
TimestampLongThe time of measurement in UTC
VersionStringThe version of the laser scanner
DeviceStringThe device ID
SerialStringThe factory serial number
StatusIntegerThe status of the scanner
MessageCountIntegerThe message counter starting at the first measured value message. When the upper limit is reached, the counter starts again at 0.
ScanCountIntegerThe scan counter starting with the first scan after confirmation of the measured value message. When the upper limit is reached, the counter starts again at 0.
PowerUpDurationLongThe time since the scanner was switched on.
TransmissionDurationLongThe time since the transfer of the measured values
InputStatusBooleanThe state of the digital inputs
OutputStatusBooleanThe state of the digital outputs
ScanningFrequencyLongThe scanning frequency
MeasurementFrequencyLongThe frequency between two separate measurements
Dist1

List<SpatialPolarCoordinate>

The measured distance values
Rssi1List<Double>The measured remission
Dist2

List<SpatialPolarCoordinate>

The measured distance values
Rssi2List<Double>The measured remission

Example

PQL

LMS1xx Protocol Handler
input = ACCESS({source='lms1', wrapper='GenericPush',
transport='TCPClient',protocol='SICK',
  dataHandler='SICK',options=[['host','192.168.1.20'],['port','2111']],
  schema=[
    ['dist1','SpatialPolarCoordinate']
  ]
})

CQL

LMS1xx Protocol Handler
CREATE STREAM lms1 (dist1 SpatialPolarCoordinate)   
    WRAPPER 'GenericPush'
    PROTOCOL 'SICK'
    TRANSPORT 'File'
    DATAHANDLER 'Tuple'
    OPTIONS ( 'host' '192.168.1.20', 'port' '2111' )
  • No labels