WiSnap User Manual 4.41 05282015-ML
Page 40
AP MAC
address
Chan RSSI
Local
TCP port
Real
Time
Clock
Battery
Voltage
GPIO
pins
Time
of day
Version
and
datecode
User
DEVICEID
Boot
time
Sensor
pins
Bytes
Size
0-5
6
MAC address of AP that we are Associated with (for location)
6
1
Channel we are on
7
1
RSSI
8-9
2
local TCP port# (for connecting into the WiSnap device)
10-13
4
RTC value (MSB first to LSB last)
14-15
2
Battery Voltage on Pin 20 in millivolts (2755 for example)
16-17
2
Value of the GPIO pins
18-31
13
ASCII time
32-59
26
Version string with date code
60-91
32
Programmable Device ID string (
set option deviceid
<string>
)
92-93
2
Boot time in milliseconds
94-110
16
Voltage readings of Sensors 0 through 7 (enabled with
set opt format
<mask>
)
NOTE:
To add sensor data to the UDP broadcast message, the sensors have to be enabled using the sensor mask.
set q
sensor 0xff
enables all sensors.
12 Joining Networks and Making Connections
Configuring the module to make connections is a two set process. First you need to associate with an access point (AP) and
second you need to open a connection.
To configure the module over the Wi-Fi link is a chicken and egg problem. The module must be associated to a network to
connect to it and program the network settings. This problem can be solved by configuring the module from the UART or over
the air using ad-hoc mode.
If configuring the module using ad-hoc mode, see section 15. Once in ad-hoc mode open up a telnet window on IP address
169.254.1.1 port 2000.
If configuring the module using the UART mode either using the RS232 or development board, open a terminal emulator on the
COM port associated with that device. The default baud rate is 9600, 8 bits no parity.
12.1 Associate with a network access point
From within the terminal window, put the WiSnap module into command mode by typing
$$$
in the terminal window. You
should get CMD back confirming you are in command mode.
Type
show net
to display the current network settings.
CMD
show net
SSid=TheLoft
Chan=6
Assoc=OK
DHCP=OK
Time=Fail
Links=1
<2.03>
Now finding all available networks with the
scan
command