Command protocol
9-7
?CLK
This query command
#LR?CLK*
requests the date and time to the internal RTC.
The reply provides the requested information formatted as:
CLK=
HH.mm.ss;DD.MM.YY
•
HH: hours
•
mm: minutes
•
ss: seconds
•
DD: day
•
MM: month
•
YY: year (last two digits)
Example of reply
: CLK=20.02.09;19.05.22
?CPS
This query command
#LR?CPS*
requests the compass and accelerometer readings.
The reply is formatted as following:
Heading:
bearing
(
orientation
); G:
x
;
y
;
z
Bearing is expressed in degrees and orientation as per the compass rose cardinal points.
Gravitational acceleration is expressed in hundredths of g (cm/s
2
) for each of the three
axes.
Note: compass heading 0 (North) corresponds to the direction where the GPS antenna is
located.
Note: it is advisable to query this command at a rate lower than 3 times per second.
Example of reply
: Heading: 35 (NE); G:-1; 100; 7
?DCM
This query command
#LR?DCM*
requests the setting for the preferred wireless
communication channel at power on.
If DCM=1 or DCM=2, the corresponding wireless communication channel will be kept active
for 60 seconds. Any command received via the wireless channel will keep it active for
another 60 seconds. Otherwise, at the end of this period, the communication is deactivated.
This setting is saved in the internal flash memory.
The reply provides the preferred channel at power on, as follows:
•
DCM=0 for wireless channel disabled at power on;
•
DCM=1 for Wi-Fi communication enabled at power on;
•
DCM=2 for BLE communication enabled at power on.
Example of reply
: DCM=2
which means that each time the unit will be turned on, the BLE
module will be activated.
?GCS
This query command
#LR?GCS*
requests the Real Time Clock setting status.
The reply is as follows:
•
M for manual time setting (refer to SCLT and SCLD commands)
•
A:x for automatic time setting where x is the time zone (integer value between -12
and 12)
Examples of reply
: GCS=M
which means that RTC is set manually
GCS=A:2
which means that RTC is set automatically and the time zone
is +2 hours corresponding to the time zone of Rome during
summertime.
Содержание LR-01
Страница 72: ...2 12 Installation and use This page has been left blank intentionally...
Страница 76: ...3 4 Probes Manager software installation Click Next to proceed installing...
Страница 116: ...5 4 Firmware Update This page has been intentionally left blank...
Страница 168: ...9 40 Command protocol This page has been left blank intentionally...
Страница 192: ...11 4 Service This page has been left blank intentionally...
Страница 194: ...Suggerimenti Commenti Note Suggestions Comments Note...