WiSnap User Manual 4.41 05282015-ML
Page 47
6)
set sys auto 10 -
auto connect every 10 seconds
7)
set option format 1 -
send an HTML header
8)
set uart mode 2 -
automatically connect using data Trigger mode
9)
save -
save the configurations in config file
10)
reboot -
reboot so that the settings take effect
With the above settings enabled, the WiSnap module will connect out to the web server every time it receives data on the RX
line. Serial data is sent to the host web server according to the flush timer and the flush size.
NOTE:
You cannot append the sampled sensor data to the UART data. Enabling “option format 7” along with
set uart
mode 2
will result in erroneous data being sent.
14 Firmware Upgrade over FTP
The WiSnap module has a file system for storing firmware, web pages and config files. Use the
ls
command to view files. File
size is displayed in sectors and the active boot image is identified in the final message.
FL#
SIZ
FLAGS
11
18
3
WiSnap_GSX-2.21
29
1
10
config
190 Free, Boot=11, Backup=0
Multiple firmware images and config files can be stored on the module file system.
NOTE:
The Flash File system is used only to store firmware and configuration files. Currently the file system cannot be
used to store data files.
14.1 FTP Upload and Upgrade
WiSnap contains a built in FTP client for getting files and updating the firmware. The client uses passive mode FTP, which
allows operation through firewalls and the Internet.
To download the latest firmware release, the following settings are required (but set by default):
FTP username =
roving
FTP password =
Pass123
FTP filename =
wifly-GSX.img (VARIES BY DEVICE - DO NOT CHANGE THIS SETTING)
FTP directory =
./public
(this parameter cannot be modified)
NOTE:
To use FTP to upgrade the firmware, WiSnap module has to be associated to an Access Point with internet
connectivity.
To update the firmware, issue the following command:
ftp upload
<string>
(
<string>
is an optional filename, use to bypass the
default firmware filename).
The ftp upload command will retrieve the file and switch the boot image to the new version.
<2.10>
ftp update
<2.10> FTP connecting to 198.175.253.161
FTP file=30
.......................................................................
FTP OK.