User`s guide

RN-WIFLYCR-UG
www.rovingnetworks.com Version 1.2r 4/30/13 page 67
3.7.2 UART Heartbeat Messages
In firmware version 2.22 and higher, the module can output UART heartbeat mes-
sages. The bit-mapped message is output periodically while the module is in data
mode and not connected to a remote host. Messages are not output while in command
mode. The heartbeat message encodes the module’s state for the embedded micro-
processor. Based on the heartbeat message, the microprocessor can choose to
change the configuration by going into command mode.
To enable the UART heartbeat messages, use the set sys printlvl 0x10 command.
The output of this mode is:
*8b30*8b30*8b30….
Tabl e 3-16 shows the output bit format.
3.8 USING THE REAL-TIME CLOCK FUNCTION
The module’s real-time clock keeps track of the number of seconds since the module
was powered on and the actual time when the module synchronized with the sNTP time
server. By default, the module keeps track of up time but does not synchronize with the
time server because this synchronization requires the module to be associated with a
network that can access the sNTP server. The real-time clock reads the time in sec-
onds since 1970, which corresponds to the UNIX time.
In firmware version 2.23 and higher, you can set the RTC value in seconds using the
set time rtc <value> command.
The default sNTP server is:
ADDR=129.6.15.28:123
ZONE=7 (GMT -7)
Note: For soft AP mode, the UART heartbeat message reflects the number of cli-
ent devices associated with the module. In this case, the number 8 in the
output is incremented according to the number of devices currently associ-
ated to the soft AP network. For example:
*81xx indicates no associated client devices
*91xx indicates one associated client device
*a1xx indicates two associated client devices, etc.
TABLE 3-16: OUTPUT BIT FORMAT
Bit 15..14 13..12 11..8 7..6 5 4 3..0
Function Fixed RESERVED Channel RESERVED Authentication Association TCP status
Value 2 = Access point
mode
3 = Ad hoc mode
Unused 0 - 13 Unused 1 = OK 1 = OK 0 = Idle
1 = Connected
3 = No IP
4 = Connecting
5 = Challenge
for password