WiFly GSX
WiFlyGSX-um.pdf 11/11/2009
www.rovingnetworks.com
Phone 408-395-6539
-
25 -
10.7
Using the Real Time Clock Function
The real time clock in the module keeps track of the number of seconds since the module was
powered on and the actual time when synchronized with the sNTP time server. By default the
module keeps track of up time but does not synchronize with the time server since this requires
being associated with a network that can access the sNTP server.
The default sNTP server is at
ADDR=129.6.15.28:123
ZONE=7
(GMT -7)
Use the
show time
command to see the current time and uptime
<2.09>
show t
Time=08:43:10
UpTime=10 s
Time can be set by using the
time
command
<2.09>
show t
Time NOT SET
UpTime=8 s
<2.09>
time
<2.09>
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.09>
set time enable 1
AOK
<2.09>
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.09>
show t t
Time=09:02:10
UpTime=653 s
Powerup=1792 s
RTC=7753271426558 ms
timera=66885