The WSN802G transceiver module is a low cost, robust solution for 802.11b/g/n sensor networks. The WSN802G is unique in that it is able to sleep while still remaining a member of an 802.11b/g/n network. The WSN802G’s low active current and very low sleep current makes long life battery operation practical.
The sensor network application on the server or PC uses a simple protocol to send and receive data from WSN802G sensor nodes, as detailed in Section 4. WSN802G modules can receive configura- tion commands through either their serial port or over-the-air in UDP packets carrying SNMP commands.
2.1 Active and Sleep Modes Once the SNMP Server IP address has been set, the default state of the WSN802G is sleep mode. The WSN802G has a dedicated input to switch it from sleep to active mode, WAKE_IN (Pin 26). There are five events that will wake the WSN802G from sleep mode: •...
Whenever the module is in active mode, a logic high is asserted on WAKE_OUT (Pin 27). WAKE_OUT can be used to signal an external processor. When the WSN802G is in sleep mode, WAKE_OUT is set to logic low. 2.2 Automatic I/O Reporting The WSN802G sends an I/O report when one of the following events occur: •...
Figure 2.5.2 2.6 Analog I/O The WSN802G includes two 10-bit ADC inputs, ADC0 (Pin 18) and ADC1 (Pin 19). Pin 25 provides a full- scale reference voltage to support ratiometric ADC measurements. ADC measurements are triggered and added to the automatic I/O report when a logic high signal is first applied to the WAKE_ IN pin or the Au- toReport timer fires, as discussed in Section 2.2.
Section 4.4. 2.7 Digital I/O The WSN802G includes four general purpose input/output (GPIO) ports, GPIO0 (Pin 4), GPIO1 (Pin 11), GPIO2 (Pin 10) and GPIO3 (Pin 12). When programmed as inputs, GPIO pins include an internal weak pull-up.
2474 MHz, with a nominal RF output power of 10 mW. WSN802G modules support four standard 802.11g RF data rates, 1, 2, 5.5 and 11 Mbps. WSN802G modules provide a variety of hardware inter- faces. There are two serial interfaces, one for data and a second for diagnostics. The data port supports standard serial baud rates from 1.2 to 921.6 kbps, and the diagnostic port supports standard serial baud...
Alternately, a U.FL coaxial jumper cable can be used to connect the WSN802G module to a U.FL connector on the host circuit board. The connection between the host circuit board U.FL connector and the antenna or antenna connector on the host circuit board should be imple- mented as a 50 ohm stripline.
3.7 Interfacing to 5 V Logic System All logic signals including the serial ports on the WSN802G are 3.3 V signals. To interface to 5 V signals, the resistor divider network shown in Figure 3.7.1 below must be placed between the 5 V signal outputs and the WSN802G signal inputs.
WSN802G FCC Notices and Labels - This device complies with Part 15 of the FCC rules. Operation is subject to the following two conditions: (1) this device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation.
AutoReport and WakeTimeout timers. There are three ways to read and write data and configuration parameters to and from the WSN802G module: (1) over the air using SNMP traps - configuration only; (2) over the air using UDP to send the WSN protocol;...
Page 18
ID will be set for all transactions that the server originates. The WSN802G application protocol messages are listed in Table 4.0.1 below. The port number that the module sends and receives wireless UDP application messages on is defined by the SensorServer- PortNum parameter, as discussed in Section 7.2.
The IO_READ_REQUEST datagram is used to request current I/O values, as shown in Figure 4.1.1. Byte 0 Byte 1 Byte 2 Byte 3 WSN802G Protocol Identifier = 0x52464D49 Opcode = 0x0000 Transaction ID = varies Figure 4.1.1 The module responds to an IO_READ_REQUEST with an IO_READ - IO_REPORT 4.2 I/O Read - I/O Report...
PWM0 setting, 16-bit unsigned value The module responds to an IO_WRITE_PWM with an IO_WRITE_REPLY. 4.5 I/O Write Reply An IO_WRITE_REPLY datagram is sent by the WSN802G module to confirm receipt of an IO_WRITE_GPIO, or IO_WRITE_PWM datagram, as shown in Figure 4.5.1. Byte 0...
The IO_SERIAL_READ datagram shown in Figure 4.6.1 is used by the module to transmit data received on its serial port. Byte 0 Byte 1 Byte 2 Byte 3 WSN802G Protocol Identifier = 0x52464D49 Opcode = 0x0005 Transaction ID = varies Timestamp High Bytes Timestamp Low Bytes MAC Address Bytes [5..2] MAC Address Bytes [1..0] (sender)
SPI port. Configuration registers are sorted into banks. The register location in a bank may also be referred to as the register’s offset. Byte 0 Byte 1 Byte 2 Byte 3 WSN802G Protocol Identifier = 0x52464D49 Opcode = 0x0010 Transaction ID = varies Length Bank Location Figure 4.10.1...
Byte 0 Byte 1 Byte 2 Byte 3 WSN802G Protocol Identifier = 0x52464D49 Opcode = 0x0012 Transaction ID = varies Length Bank Location Value Figure 4.12.1 The fields specific to this datagram are: Length: Total length of the following bank, register and value sections, in bytes...
5.0 IP Address Discovery Protocol The WSN802G module supports a separate UDP client port that provides a discovery protocol for wire- less communications. The discovery protocol is used to find IP addresses of modules in a network when the IP addresses have been assigned by a DHCP server. The discovery protocol is also used to set the module’s SNMP Server IP addresses which enables module commissioning.
The WSN802G module will automatically enter Ad Hoc mode if it is unable to join any of the three net- works specified in the preferred SSID parameters. To operate in Ad Hoc mode, the WSN802G module must have DHCP disabled, have an IP address statically assigned as well as a subnet mask and a gate- way IP address.
OID parameter sets, as discussed in Section 7.2 below. The first set of OIDs is very similar to the OIDs in the WSN802G modules prior to revision F. There are a few OIDs that did change - these are detailed in the document 11 Mbps Firmware Changes which can be found on the CD in the developer’s kit or on the...
The WSNConfig utility included with the developer’s kit is designed to operate as a commissioning utility for the WSN802G. The WSNConfig utility allows for each node to be configured independently or as a whole. Individual settings may be configured or a list of configuration parameters can be queued for transmission when the node or nodes wake up and issue the Config Trap.
Page 53
The time base within a WSN802G module is crystal controlled, so to conserve battery power, a sync update once a day or less is generally sufficient. gsnTimeSyncSntpSrvrIp - this parameter holds the IP address of the time sync server. Note that if the IP...
Page 69
6. Start the WSNConfig.exe program. Click on the Discovery button. In a few moments the IP address of the WSN802G module will be displayed near the top of the left hand text box on the WSNConfig window, as shown in Figure 8.3.3. If the module IP address does not appear, see Section 8.4 below.
WSN802G module is associated with the access point. If the WSN802G module is not associated with the access point, check for an RF issue such as a loose antenna connection. If the WSN802G module is associated with the access point, there is something blocking module IP address discovery in the host PC.
Figures 8.5.1 and 8.5.2. Figure 8.5.1 Switch S1 is connected to the WSN802G’s GPIO0 input and switch S2 is connected to the GPIO1 input. These normally open, momentary contact switches present a logic low unless pressed, when they pre- sent a logic high.
Page 74
D3 illuminates when the WSN802G’s WAKE_OUT line is high. D4 illuminates when GPIO3 on the module outputs a logic high. D5 illuminates when GPIO2 on the module outputs a logic high.
Clicking the Refresh button loads the configuration parameters from the local buffer into various tabs in the Config dialog box. Clicking the Get All button queues a request to the WSN802G module to send a new copy of all its con- figuration parameters. How quickly the module responds depends on the ConfigTrapInterval system pa- rameter and when in the trap interval the request was queued.
Page 76
How quickly the module responds depends on the ConfigTrapInterval sys- tem parameter and when in the trap interval the request was queued. The IP Address in the lower left of each tab in the Config dialog box is the WSN802G module IP address. Figure 8.6.2 The first Network tab displays basic network parameters information.
Page 79
The GPIO tab displays analog and digital module inputs and displays and accepts changes in analog and digital module outputs. Numerical data is displayed and entered in decimal format. Note: the PWM 1 text box is not used by the current version of the WSN802G module. Figure 8.6.9 The Serial tab displays and accepts changes for parameters related to the module’s serial ports.
Page 80
Figure 8.6.10 The Firmware Update tab allows new firmware to be loaded into a WSN802G module. Input the names of the two firmware Application Files including the paths to the files if they are not located in the same folder as WSNConfig.exe.
Page 83
Figure 8.6.17 The WSN802G module must be awake in order to use the IO Read tab. To hold the module awake, place a jumper on JP14, which is labeled ALWAYS ON or push and hold the WAKE IN button. The IP Address and Port Number on the I/O Read tab refer to the WSN802G module’s Sensor socket.
Page 84
Figure 8.6.19 The WSN802G module must be awake in order to use the IO Write tab. To hold the module awake, place a jumper on JP14, which is labeled ALWAYS ON or push and hold the WAKE IN button. The IP Address and Port Number on the I/O Read tab refer to the WSN802G module’s Sensor socket.
Page 85
Figure 8.6.21 The WSN802G module must be awake in order to use the IO Report tab. To hold the module awake, place a jumper on JP14, which is labeled ALWAYS ON or push and hold the WAKE IN button. Either a single parameter can be selected for charting from the drop-down box in the lower left corner of the IO Report tab, or all parameters can be selected for charting by clicking on the Show All button.
Page 86
Figure 8.6.22 The WSN802G module must be awake in order to use the COM Port tab. To hold the module awake, place a jumper on JP14, which is labeled ALWAYS ON or push and hold the WAKE IN button. The Com Port tab allows access to the same parameters through the serial port that can be accessed by the SNMP server over the wireless link using the RFM OID addresses.
Page 87
Clicking the Get All button requests the WSN802G module to send a new copy of all its configuration pa- rameters. As a new copy of the configuration parameters is received, the local buffer is updated. Clicking the Refresh button after the local buffer is updated will, in turn, update the data in the various tabs in the Config dialog box.
11 with an SSID of WSN-Default (case sensitive) in secure mode. The security passphrase to allow router access is WSN-PASSWORD. Note: the router shipped in the WSN802GDK is preconfigured for use with the WSN802G module. Do not reconfigure the router. The WSN802G module must be con- nected to an antenna to work.
WSN802GPA: transceiver module for pin-socket mounting with integral chip antenna 10.2 Technical Support For WSN802G product support contact RFM’s module technical support group. The phone number is +1.678.684.2000. Phone support is available from 08.30 AM to 5:30 PM US Eastern Time Zone, Monday through Friday.
Need help?
Do you have a question about the WSN802G and is the answer not in the manual?
Questions and answers