2107 N. First Street, #680 2107 N. First Street, #680 San Jose, CA 95131. San Jose, CA 95131. Tel: (408) 748-3385 Tel: (408) 748-3385 Fax: (408) 705-2019 Fax: (408) 705-2019 Email: Email: info@redpinesignals.com info@redpinesignals.com Website: Website: www.redpinesignals.com www.redpinesignals.com Redpine Signals, Inc. Proprietary and Confidential.
Table of Contents RS-WC-301 ................1 1 Introduction ................ 6 2 Components on the EVB ............7 Test Setup ................13 3 Using the EVB in UART mode ..........14 Configure Serial port in PC ..........14 Configure Serial Port Monitor in the PC ....... 19 4 Evaluation of Client Mode with Personal Security ....
Page 3
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 ............
Page 4
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.
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.
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.
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 number...
Page 9
The maximum current sourcing capacity of the Host should be 500mA. If not used, this pin should be left open ADC1 Input Analog input to internal ADC. Not used in current firmware, should Redpine Signals, Inc. Page 9...
Not used in current firmware, should be left open No connect No connect No connect No connect Ground Table 3: General Purpose Header (RS-WC-301-EVB) number Pin name Direction Description SPI_READY Output Handshake signal used in SPI mode and connected to a GPIO pin of the Host MCU.
No connect No connect No connect No connect Ground 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. Pin Name Direction Number...
Table 5: SPI Header Pins UART Interface Selection 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”...
A Wi-Fi Direct™ compatible mobile phone or laptop (see section Evaluation of Wi-Fi Direct Mode 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...
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...
Page 15
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...
Page 16
Click on ASCII Setup Redpine Signals, Inc. Page 16...
Page 17
Complete the settings as shown below and click OK. Redpine Signals, Inc. Page 17...
Page 18
Teraterm can also be used. The steps for configuring Teraterm are shown below. Open Teraterm. Configure COM port settings Redpine Signals, Inc. Page 18...
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.
Access Point with WPA2-PSK security. It is assumed, in this example, that the SSID of the AP is Test_AP and IP of the AP is 192.168.50.1. Note: The Serial Port Monitor mentioned in the document works reliably in Windows XP machines Redpine Signals, Inc. Page 23...
Page 24
Figure 3: Access Point Settings (Personal Security Mode) Redpine Signals, Inc. Page 24...
This configures the PSK of the module to connect to a security enabled AP. g. at+rsi_join=Test_AP,0,2 This commands the module to join to the AP “Test_AP”. On successful association, the module responds with OK<GO_status>. The GO_status parameter can be ignored. h. at+rsi_ipconf=0,192.168.50.10,255.255.255.0,192.168. 50.1 Redpine Signals, Inc. Page 25...
Page 26
192.168.50.10 has been assigned. at+rsi_ltcp=5001 This command opens a server TCP socket in the module. The module responds with OK<socket_type><socket_handle><lport><module_ipaddr>. The socket_handle parameter will be used in the subsequent sections to send data. Figure 4: Commands in Hyper-terminal Redpine Signals, Inc. Page 26...
Page 27
– to open a client TCP socket lport – Local port number dipaddr – IP address of the destination dport – Port number of the destination UDP.exe is also used in the same way. Redpine Signals, Inc. Page 27...
Page 28
Open the webpage in Laptop C by typing http://192.168.50.10 in the browser of the Laptop. 192.168.50.10 is the IP address of the module in this example. The source code of the default page is provided in RS.WSC.x.x.GENR.x.x.x.x.x.x\ Resources\Applications\WebPage\webpage.html Redpine Signals, Inc. Page 28...
Page 29
(91 characters in total). <html><head><title>Untitled Document</title></head><body><h1>Hello World</h1></body></html> This can be loaded into the module with the below command at+rsi_webpage=91,<html><head><title>Untitled Document</title></head><body><h1>Hello World</h1></body></html> Refer to the command “Load Web Page in Module” in the Programming Reference Manual for more details. Redpine Signals, Inc. Page 29...
“Test_AP” Server Laptop (C) Figure 6: Enterprise Security Set-up In this set-up the RS-WC-301 EVB acts as a client Wi-Fi module. It connects to an Enterprise security enabled Access Point. RS-WC-301 module support four Enterprise Security modes: 1. EAP-TLS 2. EAP-TTLS 3.
This should match IP Address of the PC (D) in figure Enterprise Security Set-up running the Radius Server This should match the parameter “secret” in file clients.conf inside raddb folder Figure 7: Access Point Settings (Enterprise Security Mode) Redpine Signals, Inc. Page 33...
NOTE: It is strongly recommended that the user downloads the latest software package inside www.redpinesignals.com/OpenKM (inside Wi-Fi Modules/WiSeConnect/Software folder. The software package contains the latest raddb folder and also the latest Python script that is used in this illustration. Redpine Signals, Inc. Page 34...
Page 35
Open a server TCP socket with port number 5001 Figure 8: Command Flow in Enterprise Security Mode Data received by the module, sent from Laptop (C) in step 8 below. Figure 9: Running of Python Script WiFi_Enterprise_TLS.py Redpine Signals, Inc. Page 35...
The module can respond to a ping request sent from a remote terminal. There is no command to send a ping request from the module. This is true in all the modes- Client, AP and Wi-Fi Direct. Redpine Signals, Inc. Page 36...
Page 37
It should have proper security credentials to connect to the AP a. Open a client TCP socket on the Laptop C by typing the below command in the command line: TCP.exe c 2001 <Module’s IP address> 5001 The application is found in the path RS.WSC.x.x.GENR.x.x.x.x.x.x\Resources\Applications\Peer\Windo Redpine Signals, Inc. Page 37...
Page 38
3. HTTP server access: To access the HTTP server, the step #7 in section Configuration and Test Procedure should be used. The URL http://<module‟s IP Address> should be opened in a browser in Laptop C. Redpine Signals, Inc. Page 38...
Fi Direct device (B) Figure 10: Wi-Fi Direct Set-up In this set-up, a RS-WC-301 EVB is at one end of the set-up and the other end is a Wi-Fi Direct device such as a phone. 6.1 Configuration and Test Procedure The following steps should be executed: 1.
Page 40
On successful connection, the module responds with OK and the Phone displays “Connected” Please refer to the Programming Reference Manual for detailed descriptions of all the commands. Redpine Signals, Inc. Page 40...
Page 41
(assuming DHCP client is enabled in the phone). Since the Group_Owner_Intent in point #5 above has been set to the highest value, there is a very strong chance the module will become a Group Owner. Redpine Signals, Inc. Page 41...
Page 42
RS-WC-301 (A) Wi-Fi Direct phone or other device (B) Power Up EVB Power Up Device “Welcome to Wise Connect” Card Ready LED glows Scan for Wi-Fi Direct ”READY” message sent devices from module at+rsi_opermode = 1 at+rsi_band at+rsi_init Issue “join” or “connect”...
Page 43
IP><Source port><data stream> 10. HTTP server access: To access the HTTP server, the step #7 in section Configuration and Test Procedure should be used. The URL http://<module‟s IP Address> should be opened in the connected phone. Redpine Signals, Inc. Page 43...
This configures the EVB to function in AP mode. The module responds with “OK”. b. at+rsi_band=0 This configures the operating band of the EVB. The module responds with “OK”. c. at+rsi_init Redpine Signals, Inc. Page 44...
Page 45
Laptop(B) to the module and the Hyperterminal displays it with the AT+RSI_READ message. d. To send data from the Wi-Fi module, type Option 2 in Laptop (B) and then type the below command in the module at+rsi_snd=<socket_handle>,0,0,0,abcdefgh Redpine Signals, Inc. Page 45...
Page 46
6. HTTP server access: To access the HTTP server, the step #7 in section Configuration and Test Procedure should be used. The URL http://<module‟s IP Address> should be opened in any of the connected client devices. Redpine Signals, Inc. Page 46...
3. Connect a Laptop (B) to the created AP. Open the URL http://<Module’s IP address>/config.htm in the Laptop. In this case, the URL is http://192.168.50.1/config.html. Make sure the browser in the laptop does not have any proxies enabled. Redpine Signals, Inc. Page 47...
Page 48
“Set IP Parameters” command. Note that once the module is restarted, no commands need to be given. The module automatically scans and joins the target AP, after which the stored configuration parameters can be retrieved using the Redpine Signals, Inc. Page 48...
Page 49
PRM. Tx Power: RF power for Tx. Set this to „2‟. Security mode and PSK: This should match the security mode of the AP to which the module should connect. Redpine Signals, Inc. Page 49...
Page 50
The module automatically scans and joins the target AP, after which the stored configuration parameters can be retrieved using the command at+rsi_cfgget. If the auto-connect feature needs to be disabled, issue the command at+rsi_cfgenable=0. Refer to the PRM for more details on these commands. Redpine Signals, Inc. Page 50...
IP, Mask, Gateway: These parameters set the IP parameters of the Beacon Interval and DTIM count: This to set the beacon parameters of the AP. For example, if beacon interval is 200 (msecs) and DTIM count is 3, the DTIM interval would be 2x300=600 msecs. Redpine Signals, Inc. Page 51...
Page 52
AP. The stored configuration parameters can be retrieved using the command at+rsi_cfgget. If the auto-connect feature needs to be disabled, issue the command at+rsi_cfgenable to the module. Refer to the PRM for more details on these commands. Redpine Signals, Inc. Page 52...
Page 53
Tx Power: RF power for Tx. Set this value to „2‟. Security mode , PSK, security type, encryption type: This is to configure the security mode of the AP. Channel: Channel number at which the target AP is present. Value of „0‟ is not allowed. Redpine Signals, Inc. Page 53...
Page 54
AP. The stored configuration parameters can be retrieved using the command at+rsi_cfgget. If the auto-connect feature needs to be disabled, issue the command at+rsi_cfgenable=0 to the module. Refer to the PRM for more details on these commands. Redpine Signals, Inc. Page 54...
Hyperterminal. The COM port number (COM3 in the above example) should be supplied to the Hyperterminal. Set “Flow Control” to “None”. Baud rate, Data bits, Parity and Stops bits for “Don‟t care” fields in USB mode. Redpine Signals, Inc. Page 55...
Page 56
NOTE: If after one session of testing, the user wants to reset the EVB and start over again, he should open a fresh Hyperterminal session and make sure the newly assigned COM port is supplied to the Hyperterminal. Redpine Signals, Inc. Page 56...
I/O to an output with as high a drive as is available. 5. Ensure that the EVB‟s reset input is mapped to a MCU controllable line, so that the system can recover through a hard reset. Redpine Signals, Inc. Page 57...
The porting guidelines to port the driver are present in the document RS-WC-301_Software_PRM.pdf in the section “Driver Porting Guide for SPI” c. The section “RS-WC-301 in SPI mode” in RS-WC- 301_Software_PRM.pdf should be carefully read to understand all the commands to configure and operate the module.
Page 59
(using TCP.exe) remote terminal remote terminal and transfer data (using TCP.exe) (using TCP.exe) and transfer data and transfer data Figure 15: Flow of Commands in SPI mode Redpine Signals, Inc. Page 59...
RS.WSC.x.x.GENR.x.x.x.x.x.x\Firmware\WiSe_WLAN.S19. Now press “Connect” button. 4.Within 10 secs of pressing the “Connect” button, give a hard-reset to the module. 5.The message window of the GUI will prompt to start the upgrade. Click on “Start Upgrade” button. Redpine Signals, Inc. Page 60...
Page 61
1.Connect a PC to the module through the UART interface, using a UART cable. 2.Open the application RS.WSC.x.x.GENR.2.1.0.1.2.5\Resources\UART\Firmware_upgrade\WS C_FW_Upgrade_Util.exe in the PC. This application can be found in the software release package. The application will automatically scan for UART ports in the PC and display the appropriate port. Redpine Signals, Inc. Page 61...
Page 62
This section is for users migrating from version x to version y, both x and y being equal to or greater than 2.1.0.1.2.5. There are two options available: 1. Wireless firmware upgrade. For this option follow the section Wireless Firmware Upgrade. Redpine Signals, Inc. Page 62...
Page 63
2. Wired firmware upgrade using the UART interface. For this option, follow the process in the sub-section: For Users of Firmware Version lower than 2.1.0.1.2.5. The process for upgrade is same as listed in that section. Redpine Signals, Inc. Page 63...
SSID REDPINE_<MAC> where <MAC> are the last 3 bytes of the MAC address of the module. The default IP address of the module is found 192.168.40.61. Connect a Laptop to the Access Point Open the application RS.WSC.x.x.GENR.x.x.x.x.x.x\Firmware\WFU WiSeConfigGUI.exe in the Laptop Redpine Signals, Inc. Page 64...
Page 65
Click on the “Connect” button. Then click on the button “Upgrade Folder”. Select the files RS.WSC.x.x.GENR.x.x.x.x.x.x\Firmware\WFU\control_file.rps and RS.WSC.x.x.GENR.x.x.x.x.x.x\Firmware\WFU\wlan_file.rps in the browsing window that comes up. Redpine Signals, Inc. Page 65...
Page 66
Tick the check boxes and click on the “Upgrade” button. The progress of the upgrade is shown in the progress bars. After the files are transferred, it may take up to 1 min for the final upgrade confirmation to come in as shown below. Redpine Signals, Inc. Page 66...
Page 67
WF_HNDSHKE2 for 1 msec Upgrade in progress 0-Upgrade failure. Try again after fresh power cycle Figure 17: Signal Status During Firmware Upgrade After the confirmation, the module should be power cycled and operated normally thereafter. Redpine Signals, Inc. Page 67...
Page 68
RS.WSC.x.x.GENR.x.x.x.x.x.x\Firmware\WiSe_Control.S19. The former is in a different format and is used to wirelessly upgrade the firmware, while the latter is used to upgrade the firmware using the UART interface. Same is the case with RS.WSC.x.x.GENR.x.x.x.x.x.x\Firmware\WFU\wlan_file.rps and RS.WSC.x.x.GENR.x.x.x.x.x.x\Firmware\Wise_WLAN.S19 ***** Redpine Signals, Inc. Page 68...
Page 69
RF module or change RF related parameters in the user manual of the end product. The OEM integrator is still responsible for testing their end-product for any additional compliance requirements required with this module installed (for example, digital device emissions, PC peripheral requirements, etc.). Redpine Signals, Inc. Page 69...
Page 70
Pour obtenir de l’aide, contacter le vendeur ou un technician radio/television expérimenté. REMARQUE: Toute modifi cation non autorisée expressément par le fabricant responsable de la onformité peut annuler le droit de l’utilisateur à faire fonctionner le produit. Redpine Signals, Inc. Page 70...
Need help?
Do you have a question about the RS-WC-301 and is the answer not in the manual?
Questions and answers