![Roving Networks RN-171 Скачать руководство пользователя страница 37](http://html1.mh-extra.com/html/roving-networks/rn-171/rn-171_user-manual-and-command-reference_1492508037.webp)
WiFly GSX
www.rovingnetworks.com
WiFlyRN171-um 2/23/2011
809 University Avenue
•
Los Gatos, CA 95032
•
Tel (408) 395-6539
~
37
~
UpTime=8 s
<2.20>
time
<2.20>
show t
Time=08:51:31
UpTime=15 s
NOTE: the WiFly module must by successfully associated with a network for the module to contact the
sNTP server.
Alternatively, the module can be configured to get the time whenever it powers up by setting the time
enable to 1. Any value greater than 1 gets time continuously every <value> minutes.
To configure the Wifly module to get time upon power up
<2.20>
set time enable 1
AOK
<2.20>
get time
ENA=1
ADDR=129.6.15.28:123
ZONE=7
To view a complete listing of the time variable use the command
<2.20>
show t t
Time=09:02:10
UpTime=653 s
Powerup=1792 s
RTC=7753271426558 ms
timera=66885
10.8.
Time Stamping Packets
This feature can be used to automatically append 8 bytes to a TCP or UDP packet.
setip flags 0x87
(enables timestamp and keeps other default settings )
TIME STAMP (MSB to LSB )
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 TCP checksum so it will pass thru 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 is
also counting while in sleep mode.