6. LW2 Programmer's Reference
RAP-B511 series
– User's Manual
41
6.2.3. Query Control Protocol
Description
: The device can be controlled with different control protocols. This command queries the active
protocol of the currently used control interface.
Format
Example
Command {P_?}
Response (CURRENT
●
PROTOCOL
●
=
●
#<protocol>)
CrLf
{P_?}
(CURRENT PROTOCOL = #1)
Explanation
: The device communicates with LW2 protocol.
6.2.4. View Firmware Version of the Package
Description
: View the firmware package version.
Format
Example
Command {f}
Response (FW:<FW_VER><s>)CrLf
{f}
(FW:v1.0.4b1)
Legend
: <FW_VER> is the firmware version. It is followed by <s> string which may indicate special versions.
6.2.5. View Firmware for All Controllers
Description
: Shows the firmware versions of all installed controllers.
Format
Example
Command {FC}
Response (CF
●
<DESC>)CrLf
(CF END)CrLf
{fc}
(CF RAP-B511-EU-K v1.0.4b1)
(SL END)
6.2.6.
Connection Test
Description
: Simple test to see if the connection is established successfully.
Format
Example
Command {PING}
Response (PONG!)CrLf
{ping}
(PONG!)
6.2.7.
View Serial Number
Description
: The device responds its 8-digit serial number.
Format
Example
Command {s}
Response (SN:<SERIAL_N>)CrLf
{s}
(SN:12345678)
6.2.8.
Compile Time
Description
: Returns the date, when the microcontroller firmware was compiled.
Format
Example
Command {CT}
Response (Complied: <DATE&TIME>)CrLf
{ct}
(Compiled: Jan 23 2019 12:58:38)
6.2.9.
View Installed Board
Description
: Shows the hardware name and revision of the installed card.
Format
Example
Command {is}
Response (SL#
●
0
●
<MB_DESC>)CrLf
(SL
●
END)CrLf
{is}
(SL# 0 RAP-B511)
(SL END)
Explanation
: The device reports its motherboard (slot 0).
6.2.10.
Restart the Device
Description
: The device can be restarted without unplugging power.
Format
Example
Command {RST}
Response
{rst}
Explanation
: The device reboots; no response is sent in this case.
6.2.11. Query Health Status
Description:
Internal voltages and measured temperature values are shown.
Format
Example
Command {ST}
Response (ST
●
<DESC>)CrLf
{st}
(ST CPU 3.00V 5.06V 1.81V 3.35V 50.20C 50.15C)
6.2.12. Restore Factory Default Settings
Description
: Settings can be reset to factory default values as follows:
Format
Example
Command {FACTORY=ALL}
Response (FACTORY ALL…)CrLf
{factory=all}
(FACTORY ALL…)
Explanation
: All settings and parameters are reset to factory default, see the table in the
section.