Command protocol
9-1
9 - Command protocol
9.1 Introduction
This chapter provides the information required to control the LR-01
programmable Logger Repeater via one of the communication ports (e.g.
the fiber optic) connected to a PC and by means of user’s own PC software
applications.
The communication between the host and the LR-01 can be in wired USB,
in optic USB (USB-OC) or wireless (Wi-Fi or Bluetooth).
Serial communication protocol is the following:
•
Baud: 115200 (default, or other speeds selectable)
•
Parity: NONE
•
Length: 8 bit
•
Bit Stop: 1
The commands have the following general format:
#LRcommand*
where:
#LR
= opens the command string;
?
= for query commands only;
Command
= command string;
*
= closes the command string.
#LR prefix is a wildcard to establish a communication with every
LR-01 unit. To connect to a specific unit, a #nn should be used
instead. Where nn is the address of the unit desired, which can be set
by the SADR command.
The commands available are divided into two main categories:
•
Query COMMANDs
;
•
Setting COMMANDs
.
Commands are made of ASCII strings delimited by the character “#” (0x23)
and the character “*”(0x2A).
The replies are terminated with <CR><LF> (0x0D)(0x0A).
An example to request the unit’s name is as follows:
#LR?IDN*
The answer is like: IDN=Cisano;000WE20501
Another example, to read the temperature at the unit with address 01:
#01?TMP*
The Baud Rate is set at 115200 baud as default.
To switch to one of the other speeds available, please refer to command
SBDR.
It is possible to return to a 115200 bps by following the same procedure.
Document LR01EN-30604-2.10 -
NARDA 2023
Summary of Contents for LR-01
Page 72: ...2 12 Installation and use This page has been left blank intentionally...
Page 76: ...3 4 Probes Manager software installation Click Next to proceed installing...
Page 116: ...5 4 Firmware Update This page has been intentionally left blank...
Page 168: ...9 40 Command protocol This page has been left blank intentionally...
Page 192: ...11 4 Service This page has been left blank intentionally...
Page 194: ...Suggerimenti Commenti Note Suggestions Comments Note...