Redpine Signals RSWC301 User Manual

EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
Redpine Signals, Inc.
2107 N. First Street, #680
San Jose, CA 95131. Tel: (408) 748-3385
Fax: (408) 705-2019
Email: info@redpinesignals.com
Website: www.redpinesignals.com
Redpine Signals, Inc.
2107 N. First Street, #680
San Jose, CA 95131. Tel: (408) 748-3385
Fax: (408) 705-2019
Email: info@redpinesignals.com
Website: www.redpinesignals.com
RS-WC-301
December 2012
Redpine Signals, Inc. Proprietary and Confidential.
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
Table of Contents
RS-WC-301 ............................................................................... 1
1 Introduction ........................................................................ 6
2 Components on the EVB ....................................................... 7
2.1 Test Setup ........................................................................... 13
3 Using the EVB in UART mode ............................................. 14
3.1 Configure Serial port in PC .................................................. 14
3.2 Configure Serial Port Monitor in the PC ............................... 19
4 Evaluation of Client Mode with Personal Security .............. 23
4.1 Configuration and Test Procedure ....................................... 25
5 Evaluation of Client Mode with Enterprise Security ............ 30
5.1 Radius Server Configuration ............................................... 30
5.2 AP Settings ......................................................................... 33
5.3 Evaluating EAP-TLS Mode ................................................... 34
5.4 Evaluating EAP-TTLS, EAP-FAST and PEAP Modes ............... 36
6 Evaluation of Wi-Fi Direct Mode ......................................... 39
6.1 Configuration and Test Procedure ....................................... 39
7 Evaluation of Access Point Mode ........................................ 44
7.1 Configuration and Test Procedure ....................................... 44
8 Wireless Configuration ...................................................... 47
8.1 Configuration to join a Specific AP ...................................... 47
8.2 Configuration to create an AP ............................................. 51
9 Using the Module in USB Mode ........................................... 55
10 Using the Module in SPI Mode ......................................... 57
10.1 Sample flow for evaluating SPI mode ................................. 58
11 Upgrading Firmware Through the UART Interface ........... 60
12 Wireless Firmware Upgrade ............................................ 64
12.1 Users of Firmware Lower than version 2.1.0.1.2.5 .............. 64
12.2 Upgrading Firmware Wirelessly .......................................... 64
Redpine Signals, Inc. Page 2
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
Table of Figures
Figure 5: RS-WC-301-EVB ............................................................................ 7
Figure 6: Client Mode Set-up with Personal Security .................................. 23
Figure 7: Access Point Settings (Personal Security Mode) .......................... 24
Figure 8: Commands in Hyper-terminal ...................................................... 26
Figure 9: Execution of TCP.exe in Laptop C ................................................ 28
Figure 10: Enterprise Security Set-up ........................................................ 30
Figure 11: Access Point Settings (Enterprise Security Mode) ..................... 33
Figure 12: Command Flow in Enterprise Security Mode .............................. 35
Figure 13: Running of Python Script WiFi_Enterprise_TLS.py .................... 35
Figure 14: Wi-Fi Direct Set-up .................................................................... 39
Figure 15: Messages in Hyper-terminal ...................................................... 41
Figure 16: Command Flow in Wi-Fi Direct Mode ......................................... 42
Figure 17: Access Point Set-up ................................................................... 44
Figure 20: Interface between Module and Host .......................................... 57
Figure 21: Flow of Commands in SPI mode ................................................ 59
Figure 22: Set-up for Wireless Firmware Upgrade ...................................... 64
Figure 23: Signal Status During Firmware Upgrade .................................... 67
Redpine Signals, Inc. Page 3
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
List of Tables
Table 1:UART Header (RS-WC-301).............................................................. 8
Table 2: Interface Selection ......................................................................... 8
Table 3: General Purpose Header (RS-WC-301-EVB) .................................. 10
Table 4: General Purpose Header(RS-WC-301-EVB) ................................... 11
Table 5: SPI Header Pins ............................................................................ 12
Table 6: Sensor Interface Header ............................................................... 13
Redpine Signals, Inc. Page 4
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
Redpine Signals, Inc. Page 5
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
1 Introduction
This document describes how to use the RS-WC-301 EVB. It describes the sequence of commands and set-up requirements to quickly evaluate the major functions of the modules. The document should be used in conjunction with the Programming Reference Manual (PRM) where all commands to configure and operate the modules are described in detail.
Even if the user does not plan to use the UART interface, it is recommended to go through the UART sections because all the set-ups to evaluate different functionalities of the module in UART mode are directly reusable in the SPI and USB modes also.
Redpine Signals, Inc. Page 6
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
2 Components on the EVB
The RS-WC-301 EVB has various switches and headers to enable the user to configure it for different scenarios.
Figure 1: RS-WC-301-EVB
USB Connector for Power
The power for the board can be supplied through this connector. Note that this connector is used only for supplying power. For actual communication using USB, the USB interface described below is used.
Power Selection Switch
The power selection switch should be put in the position shown in the figures above so that the board receives power from the USB connector.
Reset
Push button reset for the board. Note that there is a power-on reset circuit on the board that generates the necessary reset. This additional push-button is to reset the module during normal operation.
UART Connector
A DB9 connector is provided to interface the UART port.
UART Header for MCU
Redpine Signals, Inc. Page 7
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
Pin number
Pin name
Direction
Description
1
NC - This pin must be left unconnected
2
NC - This pin must be left unconnected
3
NC - This pin must be left unconnected
4
UART-RX
Input
UART Rx pin of the module
5
UART-TX
Output
UART Tx pin of the module
6
UART-CTS
-
Not used in current firmware. Should be left unconnected
7
UART-RTS
-
Not used in current firmware. Should be left unconnected
8
GND
-
Ground
9
GND
-
Ground
10
GND
-
Ground
Switch #
UART Mode
SPI Mode
USB
1
ON
ON
ON
2
ON
OFF
ON
3
ON
ON
OFF
4
ON
ON
ON
If the EVB needs to be connected to the serial interface of an MCU platform, this header can be used. The voltage level of the UART Tx and Rx pins of this header is 3.3V. The Ground pin should be connected to a corresponding ground signal of the MCU board. For RS-WC-301 the header assignment is shown below
Table 1:UART Header (RS-WC-301)
Mode Selection Switches
To select the interface in the EVB, configure the individual switches of Mode Selection Switch bank as shown in the below table.
Table 2: Interface Selection
Card Ready
The Card Ready LED glows after the module has booted up successfully. It is an indication that the EVB is ready to accept commands from the Host.
WIFI Activity
Redpine Signals, Inc. Page 8
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
Pin number
Pin name
Direction
Description
1
SPI_READY
Output
Handshake signal used in SPI mode and connected to a GPIO pin of the Host MCU. In other modes, this signal can be left open
2
NC - No connect
3
RESET_N
Input
Active low reset input. This can be connected to the Host MCU to reset the module from the Host. If not used, should be left open
4
NC - No connect
5
WAKEUP
Input
The module wakes up from sleep if a logic high is driven into this pin. Used only in SPI mode, should be left open in UART mode
6
PT_GPIO2
Output
Pass through output pin controllable by Host software. Not used in current firmware, should be left open
7
ADC2
Input
Analog input to internal ADC. Not used in current firmware, should be left open
8
PT_GPIO1
Output
Pass through output pin controllable by Host software. Not used in current firmware, should be left open
9
GND
-
Ground
10
VCC
Power
3.3V power supply. If the USB port for power supply is not used, this pin can be used to drive power to the EVB from the Host MCU platform. The direction
of the “Power Selection” switch is
ignored in this case. The maximum current sourcing capacity of the Host should be 500mA. If not used, this pin should be left open
11
ADC1
Input
Analog input to internal ADC. Not used in current firmware, should
The LED indicates that wireless data transfer activity is in progress. This LED is not used in the current firmware.
General Purpose Header
Redpine Signals, Inc. Page 9
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
be left open
12
NC - No connect
13
BT_PRIORITY
Input
Used to indicate through logic high that BT is transmitting high priority traffic. When BT coexistence is not used, this pin should be grounded
14
NC - No connect
15
WLAN_ACTIVE
Output
Used for BT Coexistence. It indicates with logic high that WLAN activity is in progress. When low, BT device has the opportunity to transmit. Not used in current firmware, should be left open
16
NC - No connect
17
NC - No connect
18
NC - No connect
19
NC - No connect
20
GND
-
Ground
Pin number
Pin name
Direction
Description
1
SPI_READY
Output
Handshake signal used in SPI mode and connected to a GPIO pin of the Host MCU. In other modes, this signal can be left open
2
NC - No connect
3
RESET_N
Input
Active low reset input. This can be connected to the Host MCU to reset the module from the Host. If not used, should be left open
4
NC - No connect
5
WAKEUP
Input
The module wakes up from sleep if a logic high is driven into this pin. Used only in SPI mode, should be left open in UART mode
6
PT_GPIO2
Output
Pass through output pin controllable by Host software. Not used in current firmware, should be left open
7
NC - No connect
8
PT_GPIO1
Output
Pass through output pin controllable by Host software. Not used in current firmware, should
Table 3: General Purpose Header (RS-WC-301-EVB)
Redpine Signals, Inc. Page 10
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
be left open
9
GND
-
Ground
10
VCC
Power
3.3V power supply. If the USB port for power supply is not used, this pin can be used to drive power to the EVB from the Host MCU platform. The direction of the
“Power Selection” switch is
ignored in this case. The maximum current sourcing capacity of the Host should be 500mA. If not used, this pin should be left open
11
NC - No connect
12
NC - No connect
13
BT_PRIORITY
Input
Used to indicate through logic high that BT is transmitting high priority traffic. When BT coexistence is not used, this pin should be grounded
14
NC - No connect
15
WLAN_ACTIVE
Output
Used for BT Coexistence. It indicates with logic high that WLAN activity is in progress. When low, BT device has the opportunity to transmit. Not used in current firmware, should be left open
16
NC - No connect
17
NC - No connect
18
NC - No connect
19
NC - No connect
20
GND
-
Ground
Pin Number
Pin Name
Direction Description
1
NC
-
No connect
2
SPI_CS
Input
SPI slave select. Active low.
3
GND
-
Ground
4
NC
-
This pin must be left unconnected
5
SPI_CLK
Input
SPI clock. Max frequency of 12.5
Table 4: General Purpose Header(RS-WC-301-EVB)
SPI Header
The SPI header is used to connect the SPI interface of the module to a Host MCU.
Redpine Signals, Inc. Page 11
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
MHz
6
GND
-
Ground
7
SPI_MOSI
Input
SPI data input
8
SPI_MISO
Output
SPI data output
9
INTERRUPT
Output
Active high, level triggered interrupt, used in SPI mode. The interrupt is raised by the module to indicate there is data to be read by the Host, or to indicate the module has woken up from sleep. In UART mode, it can be left open
10
NC
-
No connect
Pin Number
Pin Name
Direction Description
1
NC
-
No connect
2
NC
-
No connect
3
GND
-
Ground
4
NC
-
This pin must be left unconnected
5
ADC2
Input
Analog input to internal ADC. Not used in current firmware, should be left open
6
GND
-
Ground
7
ADC1
Input
Analog input to internal ADC. Not used in current firmware, should be left open
8
WF_HNDSHKE1
Input
Handshake signal for wireless firmware upgrade. Should be connected to a GPIO pin of the Host MCU
9
NC
-
No connect
10
WF_HNDSHKE2
Ouput
Handshake signal for wireless firmware upgrade. Should be connected to a GPIO pin of the Host MCU
UART Interface Selection
Table 5: SPI Header Pins
These switches are present in RS-WC-301-EVB. If both the switches are put in the direction shown by the green arrow, the DB9 connector for UART is selected. If the switches are put in the direction shown by the red arrow, the “UART Header for MCU” is selected.
Sensor Interface Header
This header is present RS-WC-301-EVB.
Redpine Signals, Inc. Page 12
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
Table 6: Sensor Interface Header
USB Interface
This is a USB 2.0 interface and is supported in firmware version
2.0.0.1.2.4 and above.
Jumper
The jumper shown in some versions of the EVBs can be used for measurement of current consumed by the module.
NOTE: EVB Versions below 3.1 do not support Power Save Mode 3 (Refer to Programming Reference Manual version 1.9 or higher for definition of this mode).
2.1 Test Setup
The following additional components (not included with the EVB) are required to complete the procedures described here.
1. PC with an available serial port, and running Windows XP. The PC
would be interfaced to the UART port of the EVB.
2. An 802.11a, 11b, 11g, or 11n Access Point with administrative
access to change its settings
3. A RADIUS server for operation in enterprise security mode (see
section Evaluation of Client Mode with Enterprise Security for details)
4. A Wi-Fi Direct™ compatible mobile phone or laptop (see section
Evaluation of Wi-Fi Direct Mode )
5. A third party client device, such as a laptop or Wi-Fi phone, for
evaluating the EVB in the Access Point mode.
Redpine Signals, Inc. Page 13
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
3 Using the EVB in UART mode
The following sections describe how to use the Evaluation Board in UART mode. The sections should be used in conjunction with the Programming Reference Manual to understand the commands better.
3.1 Configure Serial port in PC
To know the COM port name, check the computer‟s Device Manager settings.
The COM port name is displayed in the window. Hyperterminal or Teraterm should be opened and configured accordingly with this COM port name.
The steps for configuring Hyperterminal are shown below.
Redpine Signals, Inc. Page 14
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
Open Hyperterminal
Baud Rate: 115200 bps, Data bits: 8, Parity: None, Stop bits: 2, Flow Control: None
Other baud rates are not currently supported.
Redpine Signals, Inc. Page 15
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
Click on ASCII Setup
Redpine Signals, Inc. Page 16
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
Complete the settings as shown below and click OK.
Redpine Signals, Inc. Page 17
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
Teraterm can also be used. The steps for configuring Teraterm are shown below.
Open Teraterm.
Configure COM port settings
Redpine Signals, Inc. Page 18
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
1
Complete the settings as shown below and click OK.
3.2 Configure Serial Port Monitor in the PC
The actual bytes exchanged between the module and the Host PC may not all be readable on Hyperterminal or Teraterm because of ASCII conversion. A serial port monitor1 can be used to see the actual bytes. A free package is available at http://www.serial-port-monitor.com/ , while other similar software such as Hterm, Docklight etc. also provide good interfaces to simultaneously view ASCII and actual bytes exchanged in the UART interface. The following sections assume that HHD Free Serial Port Monitor has been installed from the above link.
Open the “HHD Free Serial Port Monitor” BEFORE opening the Hyperterminal or Teraterm. Click on File -> New Session. Select “Serial
Port Monitor”. Select the appropriate COM port and “Request view” for
the display format.
Redpine Signals Inc. assumes no liability for damages of any kind resulting from
use of third party software.
Redpine Signals, Inc. Page 19
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
Redpine Signals, Inc. Page 20
RRSS--WWCC--330011
EEvvaalluuaattiioonn BBooaarrdd UUsseerr GGuuiiddee
VVeerrssiioonn 22..5511
All bytes exchanged through the UART interface will now be visible on the monitor.
Redpine Signals, Inc. Page 21
Loading...
+ 49 hidden pages