Download WiFly Command Reference, Advanced Features and

Transcript
WiFly Command Reference, Advanced Features & Applications User’s Guide
<2. 23> show t
Time NOT SET
UpTime=8 s
<2. 23> time
<2. 23> show t
Time=08:51:31
UpTime=15 s
Note:
The module must be associated with a network for the module to contact
the sNTP server.
The module can also be configured to get the time whenever it powers up using the set
time enable 1 command. If you set the time enable to a value greater than 1, the module pulls the time continuously every <value> minutes.
For example, to configure the module to get time upon power up, see the following
example:
<2. 23> set time enable 1
AOK
<2. 23> get time
ENA=1
ADDR=129.6.15.28:123
ZONE=7
To view a complete listing of the time variable, use the following command:
<2. 23> show t t
Time=09:02:10
UpTime=653 s
RTC=1293567548
Restarts=1
Wake=6
RAW=2345ab
Note:
3.9
The RAW value is the 64-bit hex RAW value of the RTC, which ticks at
32,768 Hz.
TIME STAMPING PACKETS
You can use the time stamping feature to append 8 bytes to a TCP or UDP packet automatically. The set ip flags 0x87 command enables the time stamp and keeps other
default settings). The time stamp bits from MSB to LSB are:
User’s TCP or UDP packet data
63..56
55..48
47..40
39..32
31..24
23..16
15..8
7..0
The 8 bytes represents the 64-bit raw value of the real-time clock register. The data is
appended before calculating the TCP checksum so that the data passes through the
TCP stack correctly. This register counts at 32,768 Hz. If the timeserver function is
enabled, the RTC should accurately reflect the real time. This register also counts when
the module is in Sleep mode.
DS50002230A-page 68
 2014 Microchip Technology Inc.