WiFly RTC Issues

Guys,

I’m stumped. I picked up one of the WiFly shields and have been working for a few days to get the date and time from the RTC. I was able to get the NTP setup and it’s actually syncing with the configured NTP server and the time I get back when I issue the “show t t” command is correct. I, however, need to get the date and the time so I read through the datasheet and reference guide which speak of the RTC but make no mention of what the RTC value is when you issue the “show t t” command. I know it’s in milli-seconds and I through it was a delphi date/time stamp or something…

Any help in getting this value to a unix datetime stamp is much apprecaited!

Once I get this figured out, I’m going to add the getTime() method to the WiFly library…seems like it needs more funcationality and I’m gald to help.

I’m lost and could use some help!

Thanks in advance!

To help those who may suffer the same frustration I did, I’ve figured out the issue. First, you MUST upgrade your WiFly shield to at least the 2.26 firmware. This is super easy, just upload the SPIUartTerminal sketch that comes with the WiFly library to the board, enter command mode, join your network (make sure you are associated with your network and it has internet access):

ftp u wifly-226.img

The board should connect to the ftp server which is factory configured, update the firmware and once you reboot, you’ll have the latest firmware. This new firmware seems to fix the RTC issue, I now have a valid unix timestamp and they’ve added a new value, “RAW” which is the raw counter itself which is a 64-bit counter that ticks at 32,768 HZ. The “RAW” counter is not normalized to 1970 and represents the original NTP time…

Hope this helps someone…