Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 April 2013 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. Proprietary and Confidential.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 Part Number Description Device Number Description TCP/IP Enabled Option for TCP/IP Bypass RS9110-N-11-24 Part with UART as Host Interface Yes No RS9110-N-11-24-02 Part with SPI as Host Interface Yes Yes RS9110-N-11-24-04 Part with UART/SPI as Host Interface Yes Yes RS9110-N-11-24-04 will replace RS9110-N-11-24 and RS9110-N-11-24-02. RS9110-N-11-24-04 is feature compatible with RS9110-N-11-24 and RS9110N-11-24-02.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 Table of Contents 1 Introduction ........................................................................ 6 2 Components on the EVBs ..................................................... 7 3 Using the Evaluation Board in UART mode ......................... 10 3.1 Configure Serial port in computer .........................................10 3.2 Configure Serial Port Monitor in the PC .................................14 3.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 Table of Figures Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure 1: Evaluation Set-up - Infrastructure Mode ..................................... 2: Hyperterminal Messages ............................................................. 3: Messages in Laptop (C) ............................................................... 4: General Sequence of Commands ..................................
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 List of Tables Table 1: UART Header Pins ........................................................................... 8 Table 2: SPI Header Pins .............................................................................. 9 Table 3: DIP Switch Setting (6 switches) ..................................................... 9 Redpine Signals, Inc.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 1 Introduction This document describes how to use the RS9110-N-11-24 EVB. It describes the sequence of commands and set-up requirements to quickly evaluate the major functions of the modules. Chapters Using the Evaluation Board in UART mode to Evaluating the Module in Infrastructure mode describe operation using the UART interface. Using the Evaluation Board in SPI mode describes operation using the SPI interface.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 2 Components on the EVBs The RS9110-N-11-24 EVB has various switches and headers to enable the user to configure it for different scenarios1. The figure below shows the various components. The exact EVB may differ slightly from the pictures below due to different PCB versions or minor changes.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 USB Connector for Power The power for the board can be supplied through this connector. UART Header for MCU 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.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 5 6 7 8 9 SPI_CLK GND SPI_MOSI SPI_MISO INTR Input Input Output Output 10 NC - sourcing capacity of the Host should be 500mA. If not used, this pin should be left open SPI clock Ground SPI data input SPI data output Interrupt output (Active high) No connect Table 2: SPI Header Pins DIP Switches The DIP switches are used to select the module to work in UART or SPI mode.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 3 Using the Evaluation Board in UART mode The following sections describe how to use the Evaluation Board in UART mode. 3.1 Configure Serial port in computer 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.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 Open HyperTerminal Baud Rate: 115200 bps, Data bits: 8, Parity: None, Stop bits: 2, Flow Control: None Currently other baud rates are not supported. Redpine Signals, Inc.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 Click on ASCII Setup Redpine Signals, Inc.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 Complete the settings as shown below and click OK. Teraterm can also be used. Similar configuration steps should be followed. Redpine Signals, Inc.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 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 monitor2 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.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 Redpine Signals, Inc.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 All bytes exchanged through the UART interface will now be visible on the monitor. Redpine Signals, Inc.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 IP Address: 192.168.1.100 Subnet: 255.255.255.0 Gateway: 192.168.1.1 Redpine Signals, Inc.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 3.3 Evaluating the Module in Infrastructure mode The following sections describe the steps to evaluate the modules in Infrastructure mode. 3.3.1 Configuration and Test Procedure UART Interfac RS9110-N11-24 PC (P) Access Point (B) SSID=TEST_AP Laptop (C) Figure 1: Evaluation Set-up3 - Infrastructure Mode 1. Configure the EVB in UART mode and connect a UART cable4 between the PC and the EVB.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 c. at+rsi_fwversion? This returns the firmware version in the module. d. at+rsi_scan=0 This command makes the module scan for all channels. e. at+rsi_authmode=3 This command sets the security mode for the module to WPA2PSK. f. at+rsi_psk=12345678 This command configures the PSK in the module to match that in the Access Point (AP). It is assumed in this example that a WPA2PSK enabled AP is used, with a key “12345678”. g.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 string from the Keyboard (“Data sent from Remote terminal” in this example). On pressing “Enter” key on the keyboard, the data is sent from the Laptop (C) to the module and the terminal displays it with the AT+RSI_READ message. c. To send data from the Wi-Fi module, first type Option 2 in Laptop C and then type the below command in the module at+rsi_snd=1,0,0,0,Data sent from Module The first parameter in the command is the socket_handle.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 Figure 2: Hyperterminal Messages Figure 3: Messages in Laptop (C) . Redpine Signals, Inc.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 Note: The above sequence of command can be executed by a Python script as well. A sample Python script is provided at RS.CN.xx.GENR.UT.x.x.x\Software\Applications\Python\ . The script configures the module to associate to an Access Point with SSID “TEST_AP” and acquire an IP as a DHCP client. The user can build upon this script. 1. Power on the module. Wait for about 20 secs for the ABRD (auto baud-rate detection) process to be over. 2.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 3.4 Evaluating the Modules in Ad-hoc mode UART Interfac Laptop (A) Joiner 192.168.1.180(pref erably Windows) RS module (C) IBSS creator 192.168.1.17 PC (D) Figure 5: Evaluation Set-up – Ad-hoc Mode 1. Configure the EVB in UART mode and connect a UART cable between the PC and the EVB. Switch SW4 and SW5 should be set to select the DB9 connector. Supply power to the RS9110-N-11-24 EVB and switch on the power. 2.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 5. Exchanging data between the Wi-Fi module and Laptop (A) a. Open a server TCP socket in the module a+rsi_ltcp=5001 b. Open a TCP socket in the Laptop (A) by typing the below command in the Windows command line interface. Make sure that any firewalls, that might prevent opening of sockets, are disabled. TCP.exe c 2001 192.168.50.10 5001 The application is found in the path RS.CN.xx.GENR.UT.x.x.x\Software\Applications\Windows\. c.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 1. Auto Baud Rate Detection 2. The module sends the message: WELCOME TO REDPINE SIGNALS\r\n\r\n Byte sequence 0x20 0x57 0x45 0x4C 0x43 0x4F 0x4D 0x45 0x20 0x54 0x4F 0x20 0x52 0x45 0x44 0x50 0x49 0x4E 0x45 0x20 0x53 0x49 0x47 0x4E 0x41 0x4C 0x53 0x0D 0x0A 0x20 0x0D 0x0A 0x20 3.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 Select the firmware files from RS.CN.xx.GENR.UT.x.x.x\Software\Firmware\ Firmware files Redpine Signals, Inc.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 Select Kermi t Redpine Signals, Inc.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 Follow the same sequence to load all the files from RS.CN.xx.GENR.UT.4.7.x\Software\Firmware\ta*. After all the files are loaded, the message “Firmware Upgradation completed” is sent by the module. Firmware Upgradation completed\r\n Byte sequence 0x20 0x46 0x69 0x72 0x6D 0x77 0x61 0x72 0x65 0x20 0x55 0x70 0x67 0x72 0x61 0x64 0x61 0x74 0x69 0x6F 0x6E 0x20 0x63 0x6F 0x6D 0x70 0x6C 0x65 0x74 0x65 0x64 0x0D 0x0A Redpine Signals, Inc
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 NOTE: Firmware upgrade need not be done every time the module is powered up. It is only done when a new firmware is released for the product. 5. The user can now power cycle or hard reset the module and not opt for firmware upgrade when “Firmware upgrade (y/n)” comes in the screen, by sending ‘n\n’ (0x6E 0x0A) to the module immediately after the message comes.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 20 31 73 74 20 4C 65 76 65 6C 20 42 6F 6F 74 4C 6F 61 64 65 72 20 55 70 67 72 61 64 61 74 69 6F 6E 20 43 6F 6D 70 6C 65 74 65 64 0D 0A 4. Power cycle or hard reset the module. The module sends the message – “Firmware upgrade (y/n)”. Send ‘y’ to the module. 5. On being prompted by the module, send taim1, taim2, tadm1 and tadm2 from RS.CN.xx.GENR.UT.4.7.x\Software\Firmware\ta** to the module.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 20 63 6F 6E 66 69 67 75 72 61 74 69 6F 6E 20 66 69 72 6D 77 61 72 65 20 75 70 67 72 61 64 65 20 63 6F 6D 70 6C 65 74 65 64 20 0D 0A This completes the upgrade process. 3.5.3 Firmware Upgrade from 4.7.x to a higher version Wirelessly The module RS9110-N-11-24-04 can be upgraded wirelessly. Also, these modules can be configured wirelessly to join specific access points.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 Figure 7: Configuration GUI 4. By default, the “Device IP Address” is 192.168.40.61 and “Device Port” is 14320. Keep them unchanged and click “Connect”. This makes the laptop establish a TCP socket connection with the AP. The AP has an IP hardcoded into itself – 192.168.40.61. Ignore the values on the right side of the GUI. 5. Click “Enable Upgrade” button and then click on the “Firmware” tab. Redpine Signals, Inc.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 6. Click on “Upgrade Folder” and select the FOLDER RS.CN.xx.GENR.UT.x.x.x\Software\Wireless_Upgrade\Functional_firm ware\. Then click on the check box for the file wlan_file that appears on the GUI. Click on “Upgrade” button. NOTE: The file RS.CN.xx.GENR.UT.x.x.x\Software\Wireless_Upgrade\Functional_firmware\wlan_fil e.rps has the same contents as the files RS.CN.xx.GENR.UT.x.x.x\Software\Firmware\ta**, but is formatted appropriately fo
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 7. The upgrade process starts. After successful upgrade, a message “Upgrade Complete” is shown in the GUI. At the same time, the message “AT+FWUPGRADE_DONE” is sent to the Host PC (P) from the module through the UART interface. It can be seen on Hyperterminal. 8. The module is now upgraded with the latest firmware. It can be now power cycled or hard reset and used in functional mode by providing “n\n” as an answer to the module’s message
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 UART Interfac PC (P) RS9110-N-11-24 Laptop (C) Figure 8: Wireless Configuration Set-up 1. Power up the module. The module sends the message – “Firmware upgrade (y/n)”. Send ‘s’ to the module. The module sends two options: 1.Configuration Firmware upgrade 2.Load Configuration Firmware 2. Press ‘2’. The module now becomes an Access Point with open mode and SSID REDPINE_. 3.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 Figure 9: Configuration GUI 5. Click on the “Get Configuration” button. It displays the currently stored configuration parameters. These parameters can be ignored for now. 6. Fill the values of the parameters a. Channel number of the AP or Adhoc network that the module should connect to. Refer tables below: For 2.4 GHz Channel Number 1 2 3 4 5 6 7 8 9 10 11 12 13 Redpine Signals, Inc.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 For 5 GHz Channel Number 36 40 44 48 149 153 157 161 165 chan_num parameter 1 2 3 4 20 21 22 23 24 b. Network Type. c. Security Mode- Security mode of the Access Point or Adhoc network. This field has five options. Open: Joins to an open network. WPA: Joins to a WPA secured network. WPA2: Joins to a WPA2 secured network. WEP: Joins to a WEP secured network14.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 Data Rate (Mbps) Value of Data Rate 11 4 6 5 9 6 12 7 18 8 24 9 36 10 48 11 54 12 MCS0 13 MCS1 14 MCS2 15 MCS3 16 MCS4 17 MCS5 18 MCS6 19 MCS7 20 e. Transmit Power. f. Pre shared key- This can be left unfilled if the security mode is “Open”. g. SSID- This is the SSID of the Access Point or Ad-hoc network to which the module should join. h.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 “Source Subnet Mask” and “Source Gateway” respectively. The module will get configured with these parameters. l. Feature Bitmap- Set this field to ‘0’. m. Auth mode- If “WEP” is selected in “Security Mode”, then the options of “WEP Open” or “WEP Shared” should be used here. 7. Click on the button “Set Configuration”.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 Enter the IP address of the module in the field “Device IP Address”. Keep the “Device Port” unchanged to 14320. After clicking on “Connect” Button, click on the “Configuration” tab on top. Figure 11: Configuration GUI 3. Click on the “Get Configuration” button. It displays the currently stored configuration parameters. These parameters can be ignored for now. 4. Fill the values of the parameters a.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 10 11 12 13 10 11 12 13 Channel Number 36 40 44 48 149 153 157 161 165 chan_num parameter 1 2 3 4 20 21 22 23 24 For 5 GHz b. Network Type. c. Security Mode- Security mode of the Access Point or Adhoc network. This field has five options. Open: Joins to an open network. WPA: Joins to a WPA secured network. WPA2: Joins to a WPA2 secured network. WEP: Joins to a WEP secured network18.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 Data Rate (Mbps) Value of Data Rate 2 2 5.5 3 11 4 6 5 9 6 12 7 18 8 24 9 36 10 48 11 54 12 MCS0 13 MCS1 14 MCS2 15 MCS3 16 MCS4 17 MCS5 18 MCS6 19 MCS7 20 e. Transmit Power. f. Pre shared key- This can be left unfilled if the security mode is “Open”. g. SSID- This is the SSID of the Access Point or Ad-hoc network to which the module should join. h.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 k. Source IP Address, Source Subnet Mask, Source Gateway Address: If DHCP is disabled, an IP address, subnet mask and gateway address should be entered for “Source IP Address”, “Source Subnet Mask” and “Source Gateway” respectively. The module will get configured with these parameters. l. Feature Bitmap- Set this field to ‘0’. m.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 4 Using the Evaluation Board in SPI mode To use the EVB in the SPI mode, an MCU Host platform must be interfaced with the module using the SPI interface. The firmware package for the WiFi module comes with a reference driver in source code form. The reference driver can be ported to the Host MCU platform to interact and operate the Wi-Fi module.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 Signal Integrity Guidelines for SPI interface: Glitches in the SPI clock can potentially take the SPI interface out of synchronization. The quality and integrity of the clock line needs to be maintained. The following steps are recommended. Please note that this is not an exhaustive list of guidelines and depending on individual cases additional steps may be needed. 1.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 Figure 14: Architecture with TCP/IP Enabled 4.1.2 Using the Wi-Fi module with TCP/IP stack bypassed The TCP/IP stack in the WiFi module can be bypassed by sending a software command from the Host to the module. The “TCP bypass command” should be issued to convert the RS9110-N11-24 from a TCP/IP enabled module to a TCP/IP bypassed module. The following should be taken care of: 1.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 dev_addr of the network driver on the Host OS. Once this is stored after association with AP, the user can bring the wlan interface up In Linux, this is usually done by: ifconfig wlan0 ifconfig wlan0 up The user can query wlan0 interface status using: ifconfig wlan0 The Redpine Module’s MAC address should be listed in the HW Addr (00:23:A7:xx:xx:xx) Figure 15: Architecture with TCP/IP Bypassed 4.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 The SPI operations with the TCP/IP stack disabled in the module are shown below. In this mode, the module can be used with a Host that has its own TCP/IP stack.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 For comprehensive details on all the SPI commands that can be used to configure and operate the module, please refer to the Programming Reference Manual. NOTE: Writing code from a scratch to execute these sequences may be time consuming. The user is strongly advised to use the API set, the source code of which is provided with the software package inside RS.CN.xx.GENR.SP.x.x.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 5 FCC and IC Declaration 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. NOTE: This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the FCC Rules.
Connect-io-n™ RS9110-N-11-24 Evaluation Board User Guide Version 3.13 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.). énoncé de la FCC (états-Unis seulement) Cet équipement a été testé et jugé conforme aux limites de Classe B pour un appareil numérique, en vertu de l’article 15 de la réglementation de la FCC.