Telit Wireless Solutions GS2101M Series Command Reference Manual
Telit Wireless Solutions GS2101M Series Command Reference Manual

Telit Wireless Solutions GS2101M Series Command Reference Manual

Ip2wifi adapter
Table of Contents

Advertisement

Quick Links

GS2101M
IP2WiFi Adapter Command
Reference Guide
1VV0301499 Rev. 2.0 – 2019-08-05

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the GS2101M Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Telit Wireless Solutions GS2101M Series

  • Page 1 GS2101M IP2WiFi Adapter Command Reference Guide 1VV0301499 Rev. 2.0 – 2019-08-05...
  • Page 2 GS2101M IP2WiFi Adapter Command Reference Guide SPECIFICATIONS ARE SUBJECT TO CHANGE WITHOUT NOTICE NOTICE While reasonable efforts have been made to assure the accuracy of this document, Telit assumes no liability resulting from any inaccuracies or omissions in this document, or from use of the information obtained herein.
  • Page 3 GS2101M IP2WiFi Adapter Command Reference Guide USAGE AND DISCLOSURE RESTRICTIONS I. License Agreements The software described in this document is the property of Telit and its licensors. It is furnished by express license agreement only and may be used only in accordance with the terms of such an agreement.
  • Page 4 GS2101M IP2WiFi Adapter Command Reference Guide APPLICABILITY TABLE PRODUCT GS2101M Software Release 5.8.0 1VV0301499 Rev. 2.0 2019-08-05...
  • Page 5: Table Of Contents

    GS2101M IP2WiFi Adapter Command Reference Guide Table of Contents Chapter 1 Getting Started ........................ 18 1.1 Overview ..........................18 1.2 Using SDK Builder ......................... 20 1.2.1 IP-to-WiFi Module Information ..................20 Chapter 2 Architecture ........................22 2.1 Overview ..........................22 2.2 Serial Interface ........................
  • Page 6 GS2101M IP2WiFi Adapter Command Reference Guide 4.3 Profile Setting ........................64 4.3.1 Get Profile ........................64 4.3.2 Save Profile ........................65 4.3.3 Load Profile ........................66 4.3.4 Select Default Profile ....................67 4.3.5 Restore Profile ......................68 4.3.6 Define Profile ........................ 68 4.3.7 Identification Information ....................70 4.3.8 Enhanced Asynchronous Notification ................
  • Page 7 GS2101M IP2WiFi Adapter Command Reference Guide 5.4 WiFi Direct Mode .........................119 5.4.1 Set Device ........................119 5.4.2 Set WPS ........................121 5.4.3 Start Find ........................122 5.4.4 Stop Find ........................125 5.4.5 Provoke ........................126 5.4.6 Provision Discovery ....................127 5.4.7 Group Form (Group Owner Negotiation) ..............128 5.4.7.1 Provision Discovery Request Handling ..............132 5.4.8 Client Join ........................134 5.4.9 Invitation Procedures ....................136...
  • Page 8 GS2101M IP2WiFi Adapter Command Reference Guide 8.2.1 Enable Live Calibration ....................176 8.2.2 Erase Live Calibration ....................178 8.2.3 Start Live Calibration ....................179 8.2.4 For Complete Sequence of Live Calibration ..............181 8.3 Debug ..........................181 8.3.1 Log Level ........................181 8.3.2 Echo ...........................182 8.3.3 Verbose ........................183 8.3.4 RSSI ...........................184 8.3.5 WLAN Status ......................184 8.3.6 WLAN Statistics ......................185...
  • Page 9 This manual provides guidelines for using the GainSpan ® AT command-line interface to design, configure, and provision the GS2101M series module to enable IP-to-WiFi embedded devices with a UART/SPI interface to access an 802.11-compliant WiFi wireless network connection using only serial commands.
  • Page 10 GS2101M IP2WiFi Adapter Command Reference Guide Standards The standards that are supported by the Telit GS module series are: – IEEE 802.11 b/g/n Documentation Conventions This manual uses the following text and syntax conventions: – Special text fonts represent particular commands, keywords, variables, or window sessions –...
  • Page 11 GS2101M IP2WiFi Adapter Command Reference Guide Table 2 Document Text Conventions (Continued) Convention Type Description <CR> Each command is terminated by a carriage return. Carriage return <LF> Each command is terminated by a line feed. Line feed <CR> <LF> Each response is started with a carriage return and line feed with some Carriage return exceptions.
  • Page 12 GS2101M IP2WiFi Adapter Command Reference Guide Table 3, page 12, describes the symbol conventions used in this manual for notification and important instructions Table 3 Symbol Conventions Icon Type Description Provides helpful suggestions needed in understanding Note a feature or references to material not available in the manual.
  • Page 13 GS2101M IP2WiFi Adapter Command Reference Guide Documentation The Telit documentation suite listed in Table 4, page 13 includes the part number, documentation name, and a description of the document. The documents are available from the Telit Wi-Fi Portal. Refer to Accessing the Telit Wi-Fi Portal, page 16 for details.
  • Page 14 GS2101M IP2WiFi Adapter Command Reference Guide Documentation Feedback We encourage you to provide feedback, comments, and suggestions so that we can improve the documentation. You can send your comments by logging into Telit Support Portal. If you are using email, be sure to include the following information with your comments: –...
  • Page 15 GS2101M IP2WiFi Adapter Command Reference Guide Contact Information, Support For general contact, technical support services, technical questions and to report documentation errors contact Telit Technical Support at: TS-SRD@telit.com We recommend adding “Wi-Fi” in subject of the email. For example, the subject of email can be “Wi-Fi: Your actual issue or question in brief”...
  • Page 16 GS2101M IP2WiFi Adapter Command Reference Guide Returning Products to Telit If a problem cannot be resolved by Telit technical support, a Return Material Authorization (RMA) is issued. This number is used to track the returned material at the factory and to return repaired or new components to the customer as needed.
  • Page 17 GS2101M IP2WiFi Adapter Command Reference Guide NOTE: You must first contact Telit Support to set up an account, and obtain a customer user name and password before you can access the Telit Wi-Fi Portal. 1. Visit https://www.telit.com, go to Products> Wi-Fi and Blue-tooth, then scroll down the Telit Wi- Fi Portal.
  • Page 18: Chapter 1 Getting Started

    GS2101M IP2WiFi Adapter Command Reference Guide Chapter 1 Getting Started This chapter describes how to get started. • Overview, page 18 • Using SDK Builder, page 20 1.1 Overview The IP-to-WiFi stack is used to provide WiFi capability to any device having a serial interface.
  • Page 19 GS2101M IP2WiFi Adapter Command Reference Guide 3. Develop Host firmware – Following Live Calibrations commands are highly recommended to be issued before doing any Wi-Fi operations: AT+WLCALERASE AT+RESET AT+WLCALSTART=1 – Interface host application using AT commands. (Refer GS2xxxM S2W Adapter Command Reference Guide) Configure the serial interface (UART/SPI/SDIO) as required, refer UART,...
  • Page 20: Using Sdk Builder

    GS2101M IP2WiFi Adapter Command Reference Guide 1.2 Using SDK Builder 1.2.1 IP-to-WiFi Module Information Selecting the IP-to-WiFi (Hosted) under the SDK Builder Configuration screen displays the module information that includes the module selected, firmware version, application, SRAM (APP/WLAN/RTC), and Flash (Internal/External) summary information. There are several tabs that allow you to select various features and options to build and configure the IP-to-WiFi (Hosted) application.
  • Page 21 GS2101M IP2WiFi Adapter Command Reference Guide NOTE: When building Firmware Binary for EVK or AEK Package, it is recommended that you use the Default Evaluation Build. Otherwise, you can build Custom, SDK, or ADK Packages for your environment. The tabular selections to build your IP-to-WiFi (Hosted) application and firmware are as follows •...
  • Page 22: Chapter 2 Architecture

    GS2101M IP2WiFi Adapter Command Reference Guide Chapter 2 Architecture This chapter describes the overview and architecture of IP-to-WiFi Application. • Overview, page 22 • Serial Interface, page 23 • System Initialization, page 23 • Command Processing Mode, page 25 • Data Handling, page 26 •...
  • Page 23: Serial Interface

    GS2101M IP2WiFi Adapter Command Reference Guide • System Initialization, page 23 • Command Processing Mode, page 25 • Data Handling, page 26 • Serial Data Handling, page 28 • Wireless Network Management, page 29 The software for the IP-to-WiFi Application is mainly driven using a state machine. Upon powering on, the required initialization of all the modules is performed and then the state machine is entered.
  • Page 24: Profile Definition

    GS2101M IP2WiFi Adapter Command Reference Guide – Interface enters the command processing state. Figure 2 Operating Modes of the IP-to-WiFi Application IP-to-WiFi binary uses the interface and configuration as per the binary configuration options selected in SDK Builder. The evaluation binary packages use the following defaults: •...
  • Page 25: Command Processing Mode

    GS2101M IP2WiFi Adapter Command Reference Guide 2.4 Command Processing Mode In Command mode, the application receives commands over the serial port. Commands are processed line by line. Verbose Mode is used when referring to commands being executed, refers to the displaying of status of any command executed in ASCII (human readable) format.
  • Page 26: Data Handling

    GS2101M IP2WiFi Adapter Command Reference Guide 2.5 Data Handling In Data Processing Mode, data transfers are managed using various escape sequences. Each escape sequence starts with the ASCII character 27 (0x1B); this is equivalent to the ESC key. The encoding of data and related commands are described in the following pages. This encoding is used for both transmitted and received data.
  • Page 27: Unsolicited/Unassociated/Beacon Mode Data Handling

    GS2101M IP2WiFi Adapter Command Reference Guide 2.5.1 Unsolicited/Unassociated/Beacon Mode Data Handling In Unsolicited Data Mode (data transmission without association), data transfer is managed using escape sequences. Each escape sequence starts with the ASCII character 27 (0x1B), equivalent to the Escape <ESC> key. For more details, see 5.2.1 Unassociated/Unsolicited Tx, page 2.5.2 Software Flow Control The Software Flow Control (for UART interface) works only with ASCII data transfers...
  • Page 28: Serial Data Handling

    GS2101M IP2WiFi Adapter Command Reference Guide 2.6 Serial Data Handling The Serial Data Handler receives and transmits data to and from the hardware serial controller. Data read from the serial port is passed to: – The command processor in command mode –...
  • Page 29: Wireless Network Management

    GS2101M IP2WiFi Adapter Command Reference Guide 2.7 Wireless Network Management 2.7.1 Scanning The IP-to-WiFi interface can instruct the WiFi radio to scan for access points with a specified SSID, BSSID and/or channel for a specified scan time. Scanning can be performed to find networks with a specific SSID or BSSID, networks operating on a specific radio channel or a combination of these constraints.
  • Page 30 GS2101M IP2WiFi Adapter Command Reference Guide Table 8 Expected and Input SSID Expected SSID Input SSID Remarks TEST TEST Valid (satisfies rule 2) TEST “TEST” Valid (satisfies rule 2) TE”ST TE”ST Valid (satisfies rule 3) TE”ST “TE”ST” Invalid (breaks rule 3) TE,ST “TE,ST”...
  • Page 31: Chapter 3 Host Interaction

    GS2101M IP2WiFi Adapter Command Reference Guide Chapter 3 Host Interaction This chapter describes how a communication interface is established between Host and GS node. IP-to-WiFi Application (GS node) interacts with host using one of the following ways: • Single interface: It supports to use one of the following interfaces to communicate with Host.
  • Page 32: Startup Handling

    GS2101M IP2WiFi Adapter Command Reference Guide 3.1 Startup Handling 3.1.1 Single Interface Startup Handling For proper synchronization between Host micro controller (MCU) and GS node (IP2WiFi Application), the following steps must be followed: Once the GS node is up, Host MCU needs to first read the complete IP2WiFi start-up banner r\nIP2WiFi<SP>APP\r\n before issuing any command.
  • Page 33: Dual Interface Startup Handling

    GS2101M IP2WiFi Adapter Command Reference Guide 5. If Host MCU gets reset for some reason, then GS node (IP2WiFi Application) must be explicitly reset using EXT_RESET pin and the Host MCU should wait for the host wake-up signal to become high in case of SPI interface. However, if reset provision is not available, then Host MCU must continuously send dummy ‘AT’...
  • Page 34 GS2101M IP2WiFi Adapter Command Reference Guide in that command must also be set as the power-on profile using AT&Y (see 4.3.4 Select Default Profile, page Command Syntax ATB=<baudrate>[[,<bitsperchar>][,<parity>][,<stopbits>]] Usage NOTE: 1> All standard baud rates are supported. 2> It is strongly recommended to use hardware or software flow control to prevent data loss and data corruption.
  • Page 35: Software Flow Control

    GS2101M IP2WiFi Adapter Command Reference Guide 3.2.1.2 Software Flow Control This command is used to enable or disable software flow control for the UART interface. AT&Kn Command Syntax Parameter Description Table 12, page 35 describes the Software Flow Control parameters. Table 12 Software Flow Control Parameters Parameter Optional/Mandatory...
  • Page 36: Hardware Flow Control

    GS2101M IP2WiFi Adapter Command Reference Guide 3.2.1.3 Hardware Flow Control This command is used to enable or disable hardware flow control for the UART interface. AT&Rn Command Syntax Parameter Description Table 14, page 36 describes the Hardware Flow Control parameters. Table 14 Hardware Flow Control Parameters Parameter Optional/Mandatory...
  • Page 37: Spi Interface And Configuration

    GS2101M IP2WiFi Adapter Command Reference Guide 3.2.2 SPI Interface and Configuration For higher throughput application, we make use of SPI interface between MCU and GS node. SPI mode is a combination of clock polarity and clock phase with respect to the data. There are four types of SPI modes: •...
  • Page 38: Spi Byte Stuffing (Legacy Spi, Spi-No-Dma)

    GS2101M IP2WiFi Adapter Command Reference Guide Table 17, page 38 describes the configuration for clock polarity and clock phase with respect to SPI Mode. Table 17 SPI Modes, Clock Polarity, and Clock Phase SPI Mode Clock Polarity Clock Phase Synchronous Response Table 18, page 38 describes the synchronous responses and remarks for the SPI Interface Configuration command.
  • Page 39: Spi Command Response (Spi-Dma)

    GS2101M IP2WiFi Adapter Command Reference Guide Table 19 SPI Transmit Data Handling Link Pattern Pattern Encoded as Description 0xFB 0xFB 0xDB Control ESCAPE 0xF5 0xFB 0xD5 IDLE character 0xFF 0xFB 0xDF Inactive link detection 0xF3 0xFB 0xD3 SPI link ready indication One dedicated GPIO signal (GS_SPI _HOST_WAKEUP) is available for data ready indications from Slave GS node to Master Host controller.
  • Page 40 GS2101M IP2WiFi Adapter Command Reference Guide The HI Format is used for the message exchange. Refer to 3.2.2.3 Annexure - HI Frame Format (From Host), page 50 3.2.2.4 Annexure - HI Frame Response (From GS Node), page Based on MCU capabilities (such as multi threaded application, single threaded application, interrupt supported application, and so on), SPI command response method supports the following methodologies to transfer data between MCU and GS node.
  • Page 41 GS2101M IP2WiFi Adapter Command Reference Guide NOTE: 2.) If a race condition occurs when the GS node wants to send data to MCU and MCU wants to send data to GS node at the same time, then this scenario is being handled as follows: When data is received over the network which is supposed to be sent to MCU, the task that is responsible for making the GPIO37 high can never run ahead of the...
  • Page 42 GS2101M IP2WiFi Adapter Command Reference Guide Figure 3, page 42 shows the timing diagram from step 1 to step 3. Figure 3 Transferring data from MCU to GS node 4. GS node receives the four bytes in SPI FIFO. It parses the WRITE_REQUEST and formulates the WRITE_RESPONSE.
  • Page 43 GS2101M IP2WiFi Adapter Command Reference Guide 9. MCU sends the actual data. 10. When the size of data is less than 1024 bytes, the time GPIO37 takes to become low after step 5 is 16 clock cycles (WRITE_RESPONSE + Data Header). When the size of data is more than 1024 bytes, the time taken wait cycle will be (Data length-1024+16) clocks.
  • Page 44 GS2101M IP2WiFi Adapter Command Reference Guide 3. When GS node receives A first 4bytes of READ_REQUEST in SPI FIFO, it triggers an interrupt to pull the GPIO37 LOW. Here the MCU need not wait for GPIO37 to go HIGH. After receiving the READ_REQUEST, GS node parses the READ REQUEST, formulates the READ RESPONSE, puts the READ RESPONSE along with the Data header in the PING buffer, and pulls the GPIO37 high.
  • Page 45 GS2101M IP2WiFi Adapter Command Reference Guide 3.2.2.2.2 Polling Methodology This method can only be used if the MCU is not capable to generate the interrupts where the MCU is single threaded. Currently its not recommended to use this mode. For high speed MCUs, it is always recommended to use interrupt mode. The following section provides steps involved while transferring data from MCU to GS node using Polling methodology.
  • Page 46 GS2101M IP2WiFi Adapter Command Reference Guide a. Class field – WRITE_RESPONSE_OK/WRITE_RESPONSE_NOK b. Length as the size of the data, MCU initiates to send data. c. The status field is WRITE_RESPONSE_OK if it is ready to receive the data and WRITE_RESPONSE_NOK if it is not ready to receive the data. NOTE: GS node sends WRITE_RESPONSE_NOK, when there is no sufficient buffer to accommodate the length mentioned in the WRITE_REQUEST or if the checksum does not match.
  • Page 47 GS2101M IP2WiFi Adapter Command Reference Guide 3. MCU sends the command READ_REQUEST to GS node. It uses HI frame with: a. Class field - READ_REQUEST b. Length is the size of data that MCU can receive from GS node. – The maximum available data size is 2032 (2048-8-8).
  • Page 48 GS2101M IP2WiFi Adapter Command Reference Guide When the size of data is less than 1024 bytes, the time GPIO37 takes to NOTE: become low after step 6 is 16 clock cycles (READ RESPONSE + Data Header). When the size of data is more than 1024 bytes, the wait cycle will be (Data length-1024+16) clocks.
  • Page 49 GS2101M IP2WiFi Adapter Command Reference Guide Figure 6, page 49 shows the timing diagram for MCU write (>1024 Bytes) to GS node. Figure 6 MCU Write (>1024 Bytes) to GS Node CMD PHASE RESPONSE PHASE DATA PHASE DATA_HEADER DATA WRITE_REQUEST from HOST WRITE_RESPONSE 3 4 5 6 3 4 5 6 9 10 11 12 13 14 15 16 HOST CLOCK...
  • Page 50: Annexure - Hi Frame Format (From Host)

    GS2101M IP2WiFi Adapter Command Reference Guide Figure 8, page 50 shows the timing diagram for MCU Read (>1024 Bytes) to GS node. Figure 8 MCU Read (>1024 Bytes) to GS Node CMD PHASE RESPONSE PHASE DATA PHASE DATA READ_REQUEST from HOST DATA_HEADER 3 4 5 6 READ_RESPONSE GPIO37 goes LOW after receiving ...
  • Page 51: Annexure - Hi Frame Response (From Gs Node)

    GS2101M IP2WiFi Adapter Command Reference Guide The format of HI Parameters field is determined by the service class. The service class of each frame is signaled by the value of the first field. Available service class identifiers (see Table 20, page 51).
  • Page 52: Pin Connection For Spi Interface

    GS2101M IP2WiFi Adapter Command Reference Guide Table 21 HI Frame Response (from GS Node) Identifier Description Start of frame 0xA5 0x11 - WRITE_RESPONSE_OK to MCU side 0x12 - READ_RESPONSE_OK to MCU side Class 0x13 - WRITE_RESPONSE_NOK to MCU side 0x14 - READ_RESPONSE_NOK to MCU side 0x15 - DATA to MCU side Reserved 0x00...
  • Page 53: Sdio Interface

    GS2101M IP2WiFi Adapter Command Reference Guide 3.2.3 SDIO Interface GS node is supported to be configured as SDIO slave only. It uses the SDIO interface with a maximum clock frequency of 33 MHz. NOTE: There is no command available to configure SDIO interface. This interface can be only enabled from the SDK Builder while compiling the firmware.
  • Page 54: Sdio Host Slave Initialization And Communication

    GS2101M IP2WiFi Adapter Command Reference Guide 3.2.3.2 SDIO Host Slave Initialization and Communication This section provides initialization steps to be performed by the Host (SDIO Master) after power up. NOTE: Before the Host powers up, GS node needs to be interfaced with Host via SDIO. 3.2.3.2.4 Host-SDIO Master Initialization The following steps are performed to initialize Host-SDIO Master: Initialization...
  • Page 55 GS2101M IP2WiFi Adapter Command Reference Guide – Set the 4bit/1 bit mode depends on the above capability 4. Write the CCR register 0x02 to enable the SDIO card. 5. Write the CCR register 0x04 to enable the card interrupt for a function 6.
  • Page 56 GS2101M IP2WiFi Adapter Command Reference Guide 3.2.3.2.5 Host Read Sequence When GS node writes data to the Host, it receives read interrupt. Upon receiving the interrupt following steps should be performed by the HOST. • Check 'Interrupt Pending' register. - Read Interrupt Pending register (function 0 address 0x05) - If value is '0x02', it means there is an interrupt pending.
  • Page 57: Sdio Host Recommendations

    GS2101M IP2WiFi Adapter Command Reference Guide – If HIGH, continue with WRITE operation • Issue CMD53 with respective arguments for writing the data to GS node. NOTE: It is strongly recommended to send maximum of 1400 bytes in a single write.
  • Page 58 GS2101M IP2WiFi Adapter Command Reference Guide receive any more data. At this point, Host MCU cannot perform WRITE and READ operations as the SDIO CMD response returns failure. To avoid WRITE and READ failures, Host needs to perform the following: 1.
  • Page 59: Pin Description

    GS2101M IP2WiFi Adapter Command Reference Guide 3.2.3.4 Pin Description The following are the pin descriptions in GS module: Table 24 Pin Descriptions Description GPIO_35/SDIO_CLK/SPI0_CLK SDIO Clock/ SPI0 Clock GPIO_34/SDIO_CMD/SPI0_DIN SD4 bit mode, command line SD1 bit mode, command line SPI mode, Data input SD4 bit mode, Data line GPIO_37/SDIO_DAT1_INT IN/OUT...
  • Page 60: Chapter 4 General Operations

    GS2101M IP2WiFi Adapter Command Reference Guide Chapter 4 General Operations This chapter describes the commands for generic operations as required by IP-to-WiFi Application. • Version, page 60 • Time Setting, page 62 • Profile Setting, page 64 • Reset, page 72 •...
  • Page 61 GS2101M IP2WiFi Adapter Command Reference Guide – Build time – Build date – WLAN firmware extension version – Application firmware extension version – WLAN feature bitmap – GEPS firmware extension version – Module flash ID with storage capacity AT+VER=?? Example 2 IP2WiFi APP VERSION=5.1.4 IP2WiFi GEPS VERSION=5.1.4 IP2WiFi WLAN VERSION=5.1.4...
  • Page 62: Time Setting

    GS2101M IP2WiFi Adapter Command Reference Guide 4.2 Time Setting 4.2.1 Set System Time 4.2.1.1 Manual Setting This command is used to set the GS node’s system time to the time specified as the parameters and returns the standard command response. GS node expects either one of the time parameters.
  • Page 63: Get System Time

    GS2101M IP2WiFi Adapter Command Reference Guide 4.2.2 Get System Time This command is used to receive the current system time in milliseconds since epoch (1970) followed by the standard command response to the serial interface. AT+GETTIME=? Command Syntax Synchronous Response Table 28, page 63 describes the synchronous responses and remarks for the Get System Time command.
  • Page 64: Profile Setting

    GS2101M IP2WiFi Adapter Command Reference Guide 4.3 Profile Setting GS node supports different operating modes with various settings pre-configured to work with the system. A pre-defined set of variables can be stored in a profile. GS node currently supports storing two different profiles (profile0 and profile1). The following AT commands are sequentially executed for setting a profile: –...
  • Page 65: Save Profile

    GS2101M IP2WiFi Adapter Command Reference Guide 4.3.2 Save Profile This command is used to save the current profile. Upon deployment of this command, the current configuration settings are stored in non-volatile memory under the specified profile, (profile 0, or profile 1). In order to ensure that these parameters are restored after power cycling the GS node, the command AT&Y must also be issued, using the same profile number selected here.
  • Page 66: Load Profile

    GS2101M IP2WiFi Adapter Command Reference Guide 4.3.3 Load Profile This command is used to load a profile. Upon deployment of this command, the currently configured settings are overwritten by those stored in non-volatile memory under the specified profile. Command Syntax ATZn Parameter Description Table 32, page 66...
  • Page 67: Select Default Profile

    GS2101M IP2WiFi Adapter Command Reference Guide 4.3.4 Select Default Profile This command is used to select the default profile. The settings from the profile that are chosen as the default profile are loaded from non-volatile memory when the device is started.
  • Page 68: Restore Profile

    GS2101M IP2WiFi Adapter Command Reference Guide 4.3.5 Restore Profile This command is used to restore current profile to factory default values. The factory default values are stored in RAM, and will be lost after each power cycle. Upon deployment of this command, the current configuration variables are reset to the factory defaults.
  • Page 69 GS2101M IP2WiFi Adapter Command Reference Guide Table 37 Define Profile Parameters (Continued) Parameter Values Reference 802.11 Radio Mode Enabled, Disabled 6.1.1 Active Radio Receive, page 138 Wireless Interface Security Configuration Authentication Mode Open, Shared 5.3.8 Advanced Commands, page 118 PSK Valid Valid, Invalid 5.3.3.5 WPA-PSK and WPA2-PSK Key Any valid SSID, used for...
  • Page 70: Identification Information

    GS2101M IP2WiFi Adapter Command Reference Guide 4.3.7 Identification Information This command is used to return various identification information of GS node. ATIn Command Syntax Parameter Description Table 38, page 70 describes the Identification Information parameters. Table 38 Identification Information Parameters Parameter Optional/Mandatory Value...
  • Page 71: Enhanced Asynchronous Notification

    GS2101M IP2WiFi Adapter Command Reference Guide 4.3.8 Enhanced Asynchronous Notification This command is used to support enhanced asynchronous notification method. AT+ASYNCMSGFMT=n Command Syntax Parameter Description Table 40, page 71 describes the Enhanced Asynchronous Notification parameters. Table 40 Enhanced Asynchronous Notification Parameters Parameter Optional/Mandatory Value...
  • Page 72: Reset

    GS2101M IP2WiFi Adapter Command Reference Guide 4.4 Reset This command is used to reset the GS node. When this command is used without parameter (AT+RESET), it forcefully resets the module core and comes out with a fresh boot message “APP Reset-APP SW Reset”. AT+RESET Command Syntax NOTE: This command without parameter (AT+RESET) is obsolete and it is...
  • Page 73: Mac

    GS2101M IP2WiFi Adapter Command Reference Guide 4.5 MAC All new GainSpan modules will have “00:21:7E:xx:xx:xx” as MAC address with Telit Organizational Unique Identifier (OUI). 4.5.1 Set MAC Address NOTE: This command is obsolete as GS node uses the MAC address from OTP. It is retained for backward compatibility.
  • Page 74 GS2101M IP2WiFi Adapter Command Reference Guide Table 44, page 74 describes the synchronous responses and remarks for the Set MAC Address command. Table 44 Set MAC Address Synchronous Responses Responses Remarks Success ERROR:INVALID INPUT If value is not in the valid format. To set the MAC address for the GS node in STA mode, execute the following sequence of Example 1 commands:...
  • Page 75: Get Mac Address

    GS2101M IP2WiFi Adapter Command Reference Guide 4.5.2 Get MAC Address This command is used to output the current MAC address of the wireless interface to the serial port. NOTE: 1.) The GS node is stored with two MAC addresses. One when it is in STA mode and the other when it is in AP mode.
  • Page 76: Chapter 5 Wireless

    GS2101M IP2WiFi Adapter Command Reference Guide Chapter 5 Wireless This chapter describes commands for configurations and operations related to WLAN layer. • Wireless Generic, page 76 • Beacon Mode (Unassociated Mode), page 90 • Station/AP Mode, page 100 • WiFi Direct Mode, page 119 5.1 Wireless Generic 5.1.1 Regulatory Domain 5.1.1.1 Set Regulatory Domain...
  • Page 77: Get Regulatory Domain

    GS2101M IP2WiFi Adapter Command Reference Guide Table 46 Set Regulatory Domain Parameters Parameter Optional/ Value Regulatory Supported Mandatory Domain Channels 0 (default) 1 to 11 Regulatory Domain Mandatory ETSI 1 to 13 TELEC 1 to 14 The Regulatory domain set is required only once since it is being updated in the Flash.
  • Page 78: Operation Mode

    GS2101M IP2WiFi Adapter Command Reference Guide Where possible values of REG_DOMAIN are: FCC, ETSI, TELEC 5.1.2 Operation Mode This command is used to set the wireless mode and related parameters. Command Syntax AT+WM=<wireless mode>[,<beacon interval in LAP mode>,<broadcast ssid in LAP mode>, <no.
  • Page 79 GS2101M IP2WiFi Adapter Command Reference Guide Table 49 Mode Parameters Parameter Optional/Mandatory Value Description 0: WiFi station mode 1: Reserved 2: WiFi limited AP It specifies the wireless mode to be set. mode Note: When this parameter is set to 3, do 3: WiFi direct not issue AT+WA command.
  • Page 80 GS2101M IP2WiFi Adapter Command Reference Guide Table 49 Mode Parameters Parameter Optional/Mandatory Value Description This value specifies the inactivity time out per STA, after which LAP send a NULL/QoS-NULL frame expecting the STA to MAC level acknowledge it. Minimum value: 1 When there is no activity from a connected Maximum value: inactivity time-out in...
  • Page 81: Mac Retry

    GS2101M IP2WiFi Adapter Command Reference Guide Table 50 Mode Synchronous Responses Events Verbose mode Non Verbose mode Remarks Success <CR><LF>OK<CR><LF> <CR><LF>OK<CR><LF> All parameters are valid <CR><LF>ERROR:<SP>INVALID<SP>I Parameters are invalid or in Failure <CR><LF>2<CR><LF> NPUT<CR><LF> incorrect format. Configure device in STA mode Example 1 AT+WM=0 Configure device in Limited-AP mode (default configuration)
  • Page 82 GS2101M IP2WiFi Adapter Command Reference Guide Synchronous Response Table 52, page 82 describes the synchronous responses and remarks for the Set Retry Count command. Table 52 Set Retry Count Synchronous Responses Responses Remarks Success If parameters are not valid ERROR:INVALID INPUT (If value is more than 1 to 255) AT+WRETRY=5 Example...
  • Page 83: Sync Loss Interval

    GS2101M IP2WiFi Adapter Command Reference Guide 5.1.4 Sync Loss Interval This command is used to set the GS node for sync loss interval for n times the beacon interval so that if the GS node does not receive the beacon for this time, it informs the user this event is “Disassociation event.”...
  • Page 84: Set Rts Threshold

    GS2101M IP2WiFi Adapter Command Reference Guide Table 55 Sync Loss Interval Asynchronous Responses Responses Remarks 314Disassociation Event Where, Subtype - 3 GS node does not receive beacons for this time Length - 14 (ASCII equivalent decimal is 20 characters, i.e., informs the user with this message.
  • Page 85: Transmit Data Rate

    GS2101M IP2WiFi Adapter Command Reference Guide Table 57 RTS Threshold Synchronous Responses Responses Remarks Success Example AT+WRTS=0 5.1.6 Transmit Data Rate NOTE: These commands are obsolete and they are retained for backward compatibility. It is recommended to use the default dynamic rate selection. 5.1.6.1 Set Transmit Rate This command is used to set the transmit rate.
  • Page 86 GS2101M IP2WiFi Adapter Command Reference Guide Table 58 Set Transmit Rate Parameters Parameter Optional/Mandatory Value Corresponding Description Transmission Rate 1 MBPS 2 MBPS 5.5 MBPS 6.5 MBPS 6 MBPS 9 MBPS 11 MBPS This parameter specifies the 12 MBPS transmission rate for data frames. If only this parameter is provided 18 MBPS Transmit rate of...
  • Page 87: Get Transmit Rate

    GS2101M IP2WiFi Adapter Command Reference Guide Synchronous Response Table 59, page 87 describes the synchronous responses and remarks for the Set Transmit Rate command. Table 59 Set Transmit Rate Synchronous Responses Responses Remarks Success If parameters are not valid ERROR:INVALID INPUT (if value is other than above specified value) Example AT+WRATE=2...
  • Page 88: Graceful Shutdown Of Wlan

    GS2101M IP2WiFi Adapter Command Reference Guide 5.1.7 Graceful Shutdown of WLAN This command is used to prepare WLAN for graceful shutdown. It writes intermediate calibration data in SRAM to flash. This command needs to be used when there is a possibility of loosing calibration data and other WLAN related data stored in RAM or RTC memory.
  • Page 89: Ssid Hide

    GS2101M IP2WiFi Adapter Command Reference Guide 5.1.8 SSID Hide This command is used to hide the SSID information in a wireless network. Command Syntax AT+SSIDHIDE=<n> Parameter Description Table 62, page 89 describes the SSID Hide parameters. Table 62 SSID Hide Parameters Parameter Optional/Mandatory Value...
  • Page 90: Beacon Mode (Unassociated Mode)

    GS2101M IP2WiFi Adapter Command Reference Guide 5.2 Beacon Mode (Unassociated Mode) Beacon mode or unassociated mode supports to receive and transmit frames on WLAN interface without association. 5.2.1 Unassociated/Unsolicited Tx This command is used to transmit 802.11 management frames, control frames, or data frames without associating with an Access Point based on the configured parameters.
  • Page 91 GS2101M IP2WiFi Adapter Command Reference Guide Table 64 Unassociated/Unsolicited Tx Parameters (Continued) Parameter Optional/Mandatory Value Description This field consists of two fields, 12 bits (LSB) of sequence number and 4 bits of (MSB) fragment number. Sequence Control Mandatory 0-65535 For more information, refer 802.11 specification.
  • Page 92 GS2101M IP2WiFi Adapter Command Reference Guide Table 64 Unassociated/Unsolicited Tx Parameters (Continued) Parameter Optional/Mandatory Value Description Types of frames with their values are as follows: • 1: Beacon frame • 2: Probe request frame • 4: Probe response frame • 8: Multi cast data frame •...
  • Page 93 GS2101M IP2WiFi Adapter Command Reference Guide Table 65, page 93 provides the transmission rate and the corresponding input value range for Power in Unassociated/unsolicited Tx command. Table 65 Transmission Rate and input value range for Power Transmission Rate Input Value Range for Power 1 to 8 1 to 4 1 to 7...
  • Page 94 GS2101M IP2WiFi Adapter Command Reference Guide Table 67 Unassociated/Unsolicited Tx command Examples Frame Control Example AT Command Type Type Description Subtype Subtype Description Bits-B7B6B5B4 Association AT+UNSOLICITEDTX=0,0,1,2,1, 0000 request 1,5,0,00:1d:c9:aa:bb:dd Association AT+UNSOLICITEDTX=16,0,1,2,1 0001 response ,1,5,0,00:1d:c9:aa:bb:dd Reassociation AT+UNSOLICITEDTX=32,0,1,2,1 0010 Request ,1,5,0,00:1d:c9:aa:bb:dd Reassociation AT+UNSOLICITEDTX=48,0,1,2,1 0011 response...
  • Page 95 GS2101M IP2WiFi Adapter Command Reference Guide AT+UNSOLICITEDTX=8,0,1,2,1,1,10,0,20:f8:5e:aa:25:05 For sending Data frame where sequence number is 1 and fragment number is 0 in Sequence Example 3 Control field: The hex value for the Sequence Control field = 0x0010 The decimal value for the Sequence Control field = 16 AT+UNSOLICITEDTX=8,16,1,2,1,1,10,0,20:f8:5e:aa:25:05 For sending Data frame where sequence number is 973 and fragment number is 0 in Example 4...
  • Page 96: Unassociated/Unsolicited Rx

    GS2101M IP2WiFi Adapter Command Reference Guide 5.2.2 Unassociated/Unsolicited Rx This command is used to receive 802.11 management frames, control frames, or data frames on a specific channel without associating with an Access Point based on the configured parameters. Command Syntax AT+UNSOLICITEDRX=<Frame type>,<Enable/Disable IE filter for reception frames>,<Reception IE ID>,<Channel>,<Reception wait time>...
  • Page 97 GS2101M IP2WiFi Adapter Command Reference Guide Table 68 Unassociated/Unsolicited Rx Parameters (Continued) Parameter Optional/Mandatory Value Description It is used to enable or disable IE 1 or 0 Enable/Disable IE filter for reception frames based filter for reception Mandatory • 1: Enable IE based filtering on the frame IDs configured in frames •...
  • Page 98 GS2101M IP2WiFi Adapter Command Reference Guide – 0x03: Probe response – 0x04: Unicast data – 0x05: Multicast data – 0x06: CTS – 0x07: RTS – 0x08: Associated request – 0x09: Associated response – 0x0F: Raw data with MAC header • 3 bytes of reserved field which is left empty.
  • Page 99: Examples For Unassociated/Unsolicited Tx And Rx Commands

    GS2101M IP2WiFi Adapter Command Reference Guide 5.2.2.1 Examples for Unassociated/Unsolicited Tx and Rx Commands Example 1 AT+UNSOLICITEDTX=776,0,1,2,1,1,5,0,01:40:96:00:00:03,01:40:96:00:00:03 ,20:f8:5e:ed:5d:ce <ESC>D 1 2 3 4 5 AT+UNSOLICITEDRX=8,0,,1,5000 Example 2 AT+UNSOLICITEDTX=264,15568,1,2,1,1,8,0,20:f8:5e:ed:5d:ce,20:f8:5e:ed:5 d:ce,cc:b0:da:10:33:80 AT+UNSOLICITEDRX=16,0,,1,10000 5.2.3 Unassociated/Unsolicited Rx Stop This command is used to stop the unsolicited data reception. Command Syntax AT+UNSOLICITEDRXSTOP 5.2.4 Unassociated/Unsolicited Data Encryption...
  • Page 100: Station/Ap Mode

    GS2101M IP2WiFi Adapter Command Reference Guide 5.3 Station/AP Mode 5.3.1 Scan Time Settings 5.3.1.1 Set Scan Time This command is used to set the minimum and maximum scan time per channel. The maximum scan time should always be greater than or equal to the minimum scan time. Command Syntax AT+WST=<Minimum scan time><Reserved><CR>...
  • Page 101: Get Scan Time

    GS2101M IP2WiFi Adapter Command Reference Guide 5.3.1.2 Get Scan Time This command is used to display minimum and maximum scan time in milliseconds. AT+WST=? Command Syntax Synchronous Response Table 72, page 101 describes the synchronous responses and remarks for the Get Scan Time command.
  • Page 102: Authentication Mode

    GS2101M IP2WiFi Adapter Command Reference Guide 5.3.2 Authentication Mode This command is used to configure the authentication mode. AT+WAUTH=n Command Syntax Parameter Description Table 73, page 102 describes the WiFi Security Configuration Authentication Mode parameters. Table 73 WiFi Security Configuration Authentication Mode Parameter Optional/Mandatory Value...
  • Page 103: Security Configuration

    GS2101M IP2WiFi Adapter Command Reference Guide 5.3.3 Security Configuration 5.3.3.1 Security Setting This command is used to configure the GS node with different security configuration. AT+WSEC=n Command Syntax Parameter Description Table 75, page 103 describes the Security Configuration parameters. Table 75 Security Configuration Parameters Parameter Optional/Mandatory Value...
  • Page 104: Wep Keys

    GS2101M IP2WiFi Adapter Command Reference Guide Table 76, page 104 describes the synchronous responses and remarks for the Security Configuration command. Table 76 Security Configuration Synchronous Responses Responses Remarks Success If parameters are not valid. ERROR:INVALID INPUT (n value is other than above mentioned value) Example - GS node is AT+WAUTH=2 configured with WEP...
  • Page 105: Wep Key Type Configuration

    GS2101M IP2WiFi Adapter Command Reference Guide Synchronous Response Table 78, page 105 describes the synchronous responses and remarks for the WEP Keys command. Table 78 WEP Keys Synchronous Responses Responses Remarks Success If parameters are not valid. ERROR:INVALID INPUT (n value is other than 1,2,3, and 4 or key is invalid) Example - WEP Open AT+WRXACTIVE=1...
  • Page 106 GS2101M IP2WiFi Adapter Command Reference Guide Table 79 WEP Key Type Configuration Parameters Parameter Optional/Mandatory Value Description This parameter value enables ASCII mode where the WEP key entered through the AT+WWEPn=<key> enable ASCII Mandatory command are characters whose ASCII value gets stored.
  • Page 107: Wpa-Psk And Wpa2-Psk Passphrase

    GS2101M IP2WiFi Adapter Command Reference Guide 5.3.3.4 WPA-PSK and WPA2-PSK Passphrase This command is used to set the WPA-PSK and WPA2-PSK passphrase. Upon receiving the command, the PSK passphrase is reset to the value provided. NOTE: It is recommended to use AT+WPAPSK command instead of the following 5.3.3.5 WPA-PSK and WPA2-PSK Key Calculation, page 108 command.
  • Page 108: Wpa-Psk And Wpa2-Psk Key Calculation

    GS2101M IP2WiFi Adapter Command Reference Guide 5.3.3.5 WPA-PSK and WPA2-PSK Key Calculation This command is used to compute and store the value of the WPA/WPA2 PSK, derived from the SSID and Passphrase values. Computation of the PSK from the passphrase is complex and consumes substantial amounts of time and energy.
  • Page 109: Wpa-Psk And Wpa2-Psk Key

    GS2101M IP2WiFi Adapter Command Reference Guide Example AT+WPAPSK=GainSpanDemo,test12345 Computing PSK from SSID and PassPhrase... AT+WA=GainSpanDemo,,11 AT&W0 AT+PSSTBY=1000 Out of StandBy-Timer AT+WA=GainSpanDemo,,11 5.3.3.6 WPA-PSK and WPA2-PSK Key This command is used to configure the WPA/WPA2 PSK key directly. It directly sets the pre-shared key as provided.
  • Page 110 GS2101M IP2WiFi Adapter Command Reference Guide Synchronous Response Table 85, page 110 describes the synchronous responses and remarks for the WPA-PSK and WPA2-PSK Key command. Table 85 WPA-PSK and WPA2-PSK Key Synchronous Responses Responses Remarks Success After the PSK has been entered, the commands AT&W (to save the relevant profile) and AT&Y (to ensure that the profile containing the new PSK is the default profile) should be issued.
  • Page 111: Scanning

    GS2101M IP2WiFi Adapter Command Reference Guide 5.3.4 Scanning This command is used to scan for networks with the specified parameters and displays the results. Scanning can be performed to find networks with specific SSID or in a particular operating channel, or a combination of these parameters. Scanning for a specific SSID employs active scanning, in which probe requests are transmitted with the SSID fields being filled appropriately.
  • Page 112 GS2101M IP2WiFi Adapter Command Reference Guide Table 87 Scanning Synchronous Responses Responses Remarks <CR><LF><7 SP><BSSID><14 SP><SSID><21 SP><Channel><2 SP><TYPE><2 Success SP><RSSI><SP><Security><CR><LF><SP> Type is INFRA for infrastructure network and <CR><LF><No.Of><SP><AP><SP><Found:><CR><LF> ADHOC for ad-hoc networks. <CR><LF>OK<CR><LF> Example Use Case 1 - for Infrastructure Network AT+WS=GainSpanDemo,,11 BSSID...
  • Page 113: Association

    GS2101M IP2WiFi Adapter Command Reference Guide 5.3.5 Association This command is used to create or join an infrastructure network (limited access point mode). AT+WA=<SSID>[,[<BSSID>][,<Channel>],[Rssi Flag],[WPS Command Syntax Registrar],[Unscheduled automatic power save delivery configuration]] • The WPS registrar is supported only with WPA/WPA2 security. It is not supported in Command Note open security.
  • Page 114 GS2101M IP2WiFi Adapter Command Reference Guide Table 88 Associate with Network or Create an AP Network Parameters Parameter Optional/Mandatory Value Description The SSID is a string containing between 1 and 32 SSID Mandatory 1-32 characters ASCII characters. See 2.7.3 SSID and Passphrase, page 29 for SSID format details.
  • Page 115 GS2101M IP2WiFi Adapter Command Reference Guide Table 88 Associate with Network or Create an AP Network Parameters (Continued) Parameter Optional/Mandatory Value Description This parameter specifies whether RSSI Flag is enabled or disabled based on the following configuration values: 0: GS node associates with AP of the first found SSID or BSSID based on the configured SSIDs or 0: Disable BSSIDs using AT+WAUTO command.
  • Page 116: Disassociation

    GS2101M IP2WiFi Adapter Command Reference Guide 5.3.6 Disassociation This command is used to disassociate the current infrastructure network or stop the limited AP created by the node. It is also used to disconnect P2P mode. AT+WD Command Syntax Synchronous Response Table 90, page 116 describes the synchronous responses and remarks for the Disassociation command.
  • Page 117: Wlan Keep Alive Interval

    GS2101M IP2WiFi Adapter Command Reference Guide Table 92 Association Keep Alive Timer Parameters Parameter Optional/Mandatory Value Description 0 to 255 seconds Mandatory When set to 0, the Keep alive timer is disabled. 0 (default) Synchronous Response Table 93, page 117 describes the synchronous responses and remarks for the Association Keep Alive Timer command.
  • Page 118: Advanced Commands

    GS2101M IP2WiFi Adapter Command Reference Guide Table 94 WLAN Keep Alive Interval Parameters Parameter Optional/Mandatory Value Description 0 to 255 seconds This parameter specifies the time GS node keeps sending NULL frame to AP to Interval Mandatory maintain the association. 45 seconds (default) The value 0 disables this feature.
  • Page 119: Wifi Direct Mode

    GS2101M IP2WiFi Adapter Command Reference Guide Table 96 Get Clients Information Synchronous Responses Responses Remarks Success No. Of Stations Limited AP mode: Connected=<NoOfClients> MAC address and the IP of each of the client <MacAddr> IP <no> associated to the Limited AP. The IP address will be the one assigned to the client using DHCP.
  • Page 120 GS2101M IP2WiFi Adapter Command Reference Guide Command Syntax AT+P2PSETDEV=<Group owner intent value>,<Operating class>,<Listen channel>,<Operating channel>,<WPS config methods>, <country code><CR> Parameter Description Table 97, page 120 describes the Set Device parameters. Table 97 Set Device Parameters Parameter Optional/Mandatory Value Description The group owner intent value is p2p device’s 0 to 15 Group owner intent Mandatory...
  • Page 121: Set Wps

    GS2101M IP2WiFi Adapter Command Reference Guide Table 98 Set Device Synchronous Responses Events Verbose mode Non Verbose mode Remarks Success <CR><LF>OK<CR><LF> <CR><LF>0<CR><LF> All parameters are valid. Failure <CR><LF>ERROR:<SP>INPUT<CR><LF> <CR><LF>2<CR><LF> Parameters are valid. Example 1 AT+P2PSETDEV=7,81,6,6,2388,US Intent Value=7 Regulatory class:1-13 Listen class: 6 Operating channel: 6 WPS config methods: Display, Push Button, Keypad Country code: USA...
  • Page 122: Start Find

    GS2101M IP2WiFi Adapter Command Reference Guide Table 99 Set WPS Parameters Parameter Optional/Mandatory Value Description Unique name to identify the device. P2P Device manufacturers should attempt to 32 bit character. create unique Device Names and user Device name Mandatory interfaces that maximize the probability of default value selecting the correct device, but there will be (GAINSPAN-P2P)
  • Page 123 GS2101M IP2WiFi Adapter Command Reference Guide Table 101 Start Find Parameters Parameter Optional/Mandatory Value Description If timeout is not specified, then it is 0 (default) considered as infinite, i.e., the system will be Timeout Mandatory (0 to 4294967296) in find phase forever or until stopped explicitly using the AT+P2PSTOPFIND Unit: seconds command.The value is a 32 bit variable.
  • Page 124 GS2101M IP2WiFi Adapter Command Reference Guide Table 103, page 124 describes the asynchronous responses and remarks for the Set P2P Find command. Table 103 Start Find Asynchronous Responses Events Verbose mode Non Verbose mode Remarks Enhanced Enhanced Asynchronous Asynchronous Asynchronous Asynchronous After the completion of same as...
  • Page 125: Stop Find

    GS2101M IP2WiFi Adapter Command Reference Guide 1. Mac addr, devaddr, type, config methods, device cap and group cap values are Command Note displayed in Hex. 2. P2P find is NOT supported in GO mode. 5.4.4 Stop Find This command is used to stop the P2P find operation that is currently in progress. Response This command returns the standard command response to the serial interface.
  • Page 126: Provoke

    GS2101M IP2WiFi Adapter Command Reference Guide 5.4.5 Provoke This command triggers the WPS- registrar functionality for GO. Once this command is issued the registrar automatically turns off after 120seconds. If the command is issued multiple times, the timeout starts from the last issued command. AT+P2PPROVOK=<WPS-KEYPAD PIN><CR>...
  • Page 127: Provision Discovery

    GS2101M IP2WiFi Adapter Command Reference Guide 5.4.6 Provision Discovery This command is used to send provisioning discovery request to given peer with the given configuration method and wait for provisioning discovery response. AT+P2PPD=<peer P2P device MAC address>,<WPS configration Command Syntax method><CR>...
  • Page 128: Group Form (Group Owner Negotiation)

    GS2101M IP2WiFi Adapter Command Reference Guide Table 109 Provision Discovery Synchronous Responses Events Verbose mode Non Verbose mode Remarks Provision Discovery Response with Push Button Method • Peer p2p device triggers Provision Discovery Response with the push method and the Push Button Method <Provision Discovery Response with Push MCU issues the join...
  • Page 129 GS2101M IP2WiFi Adapter Command Reference Guide This command is used to start P2P group formation with a discovered P2P peer.Before issuing this command P2Pfind has to be stopped. Command Syntax AT+P2PGRPFORM=<peer (p2p device)MAC address>,<peer (p2p device)listen channel>,<WPS config method>,<WPS PIN>,<group owner intent value>,<Trigger GO Negotiation Request>,<p2p group type><CR>...
  • Page 130 GS2101M IP2WiFi Adapter Command Reference Guide Table 110 Group Form (Group Owner Negotiation) Parameters Parameter Optional/Mandatory Value Description Note: The intent value in AT+P2PSETDEV is same asAT+P2PGRPFORM 0-Timeout per request id 1000ms, i.e, the time state expecting the GO negotiation 0- Trigger GO response.
  • Page 131 GS2101M IP2WiFi Adapter Command Reference Guide peer P2P device with MAC address “42:b0:fa:62:74:ac,1,4,,13,1,0” Channel 1 Push Button Method Intent value of 13 Don’t trigger “GO negotiation request” In case group owner, start temporary group. Response p2p-go-neg-complete client,<ssid>,<channel>,<GO device address>,<passphrase>|<psk> Example 1 - When a p2p-group-started new group is created client,DIRECT-gs,6,02:1d:c9:01:02:03,GSDemo123...
  • Page 132: Provision Discovery Request Handling

    GS2101M IP2WiFi Adapter Command Reference Guide AT+P2PGRPFORM=02:1d:c9:01:02:03,6,2,42746188,1,15,1,0 At the peer where the PIN needs to be displayed, the following command should be given: AT+P2PGRPFORM=02:1d:c9:01:02:04,6,3,42746188,0,4,0,0 The GO negotiation should happen between the two devices followed by provisioning and connection and then he following response is given out. p2p-group-started GO,DIRECT-gs,6,02:1d:c9:01:02:04,GSDemo123 p2p-group-started...
  • Page 133 GS2101M IP2WiFi Adapter Command Reference Guide Response - Display Method p2p-prov-disc-req display-pin <PIN> <peer address>,<device address>,>,<primary device category>,<primary device subcategory>,<secondary device category>,<secondary device subcategory>,<,<device name>,<config methods>,<device capability>,<group capability> The user action should be to show the PIN on a display and issue following. AT+P2PGRPFORM=…...
  • Page 134: Client Join

    GS2101M IP2WiFi Adapter Command Reference Guide 5.4.8 Client Join This command is used to join the P2P group owner. Provision discovery request and response (AT+P2PPD) needs to be exchanged with the group owner’s intent to join. AT+P2PJOIN=<GO MAC address>,<wps config Command Syntax method>,<WPS-pin><CR>...
  • Page 135 GS2101M IP2WiFi Adapter Command Reference Guide Table 113 Client Join Synchronous Responses Events Verbose mode Non Verbose mode Remarks <CR><LF>p2p-join-success-client<SP>< <CR><LF>p2p-join-success-client<SP>< WPA-personal Connected SSID>,<channel><<MAC address for SSID>,<channel><<MAC address for PSK per shared key successfully to GO>WPA2-personal GO>WPA2-personal is 32bytes long PSK<CR><LF>OK<CR><LF>...
  • Page 136: Invitation Procedures

    GS2101M IP2WiFi Adapter Command Reference Guide 5.4.9 Invitation Procedures This command is used to send an invitation request to the given peer address to join an active group. AT+P2PINVITE=<peer p2p device MAC address><CR> Command Syntax The invitation is sent to request the peer to join the group for which this device is a GO or Usage to request the peer to join the group for which the device address is specified.
  • Page 137: Disconnect

    GS2101M IP2WiFi Adapter Command Reference Guide Table 116 Invitation Procedure Asynchronous Responses Events Verbose mode Non Verbose mode Remarks Enhanced Enhanced Asynchronous Asynchronous Asynchronous Asynchronous same as same as same as Peer P2P device doesn't <CR><LF>p2p-invitation-sent<SP verbose & verbose & verbose &...
  • Page 138: Chapter 6 Power Management - Radio And System

    GS2101M IP2WiFi Adapter Command Reference Guide Chapter 6 Power Management - Radio and System This chapter describes the commands for configurations and operations related to power management for radio and system. • Radio Receiver Setting, page 138 • Battery Measurement, page 144 •...
  • Page 139 GS2101M IP2WiFi Adapter Command Reference Guide NOTE: The number of times radio is enabled using AT+WRXACTIVE, that many times has to be disabled. Example AT+WRXACTIVE=1 AT+WRXACTIVE=1 AT+WRXACTIVE=0 AT+WRXACTIVE=0 Radio receiver is always on, Power Save mode is enabled but will not save power since the Example Use Case 1 receiver is left on.
  • Page 140: Standard Power Save Radio Receive Based On Dtim/Listen Interval

    GS2101M IP2WiFi Adapter Command Reference Guide 6.1.2 Standard Power Save Radio Receive based on DTIM/Listen Interval 6.1.2.1 IEEE PS Poll Listen Interval This command is issued once to configure the mode (DTIM based wakeup, Listen interval based wake up or Custom wake up) and then to enable the configuration (in commands issued when configured for listen interval based wakeup).
  • Page 141 GS2101M IP2WiFi Adapter Command Reference Guide Table 119 IEEE PS Poll Listen Interval Parameters (Continued) Parameter Optional/Mandatory Value Description 0: DTIM based wakeup 1: Listen interval based wakeup Optional (valid if wakeup type is WakeupType 0 - 3 listen interval and custom) 2: Custom wakeup 3: DTIM aligned custom wakeup Wakeup Interval to be used for listening...
  • Page 142 GS2101M IP2WiFi Adapter Command Reference Guide – Wake up for DTIM – Wake up for a custom number of beacons To configure the STA to wake up for the listen interval, the command is Wake up for Listen Interval AT+WIEEEPSPOLL=2,10,1. This means that the STA will advertise in the Association Request that the listen interval will be for every 10 beacons.
  • Page 143: Custom Power Save Radio Receive

    GS2101M IP2WiFi Adapter Command Reference Guide 6.1.3 Custom Power Save Radio Receive This command is used to enter Power Save Mode. Once enabled, radio will be switched off (after informing AP) when ever possible (e.g., in between beacons intervals, when there is no data transmission).
  • Page 144: Battery Measurement

    GS2101M IP2WiFi Adapter Command Reference Guide beacons, set by the Access Point configuration. Many Access Points default to 100msec between beacons; in most cases this parameter can be adjusted. 6.2 Battery Measurement 6.2.1 Battery Check Start This command is used to send out a unit of battery check frequency in number of packets from the IP-to-WiFi Application, and store the resulting values in nonvolatile memory.
  • Page 145: Battery Warning/Standby Level Set

    GS2101M IP2WiFi Adapter Command Reference Guide 6.2.2 Battery Warning/Standby Level Set This command is used to set the battery warning/standby level to and enable the GS node’s internal battery level monitoring logic starts. This command should be executed before the battery check start command (see 6.2.1 Battery Check Start, page 144).
  • Page 146: Battery Check Set

    GS2101M IP2WiFi Adapter Command Reference Guide 6.2.3 Battery Check Set This command is used to set/reset the battery check period after the battery check has been started. Upon receipt, the GS node records the new value of the battery check frequency so that GS node performs the battery voltage check with the new value set.
  • Page 147: Battery Check Stop

    GS2101M IP2WiFi Adapter Command Reference Guide 6.2.4 Battery Check Stop This command is used to halt battery check. Command Syntax AT+BCHKSTOP Response This command returns standard command response or ERROR, if the operation fails. 6.2.5 Battery Value Get This command is used to retrieve the results of battery check operations. Command Syntax AT+BATTVALGET Response...
  • Page 148: System Power Save

    GS2101M IP2WiFi Adapter Command Reference Guide 6.3 System Power Save 6.3.1 Hibernate This command is used to enable the GS nodes to enter the hibernate mode. In this mode, the power consumption is at the lowest possible value and no information is retained in latch memory.
  • Page 149: Standby

    GS2101M IP2WiFi Adapter Command Reference Guide 6.3.2 Standby 6.3.2.1 Putting the System in Standby This command is used to request a transition to ultra-low-power Standby operation. Command Syntax AT+PSSTBY=x[,<DELAY TIME>,<ALARM1 POL>,<ALARM2 POL>] When this command is issued, the GS node will enter the ultra-low-power Standby state Usage (after the optional delay time if present), remaining there until x milliseconds have passed since the command was issued, or an enabled alarm input is received.
  • Page 150 GS2101M IP2WiFi Adapter Command Reference Guide Table 130 Request Standby Mode Parameters Parameter Optional/Mandatory Value Description This is the Standby time in x=Standby time milliseconds. If a delay time is Mandatory in milliseconds provided, the Standby count begins after the delay time has expired. This is the delay in milliseconds from the time the command is issued to the DELAY TIME...
  • Page 151: Enabling Standby Mode Between Beacons

    GS2101M IP2WiFi Adapter Command Reference Guide 6.3.2.2 Enabling Standby Mode Between Beacons This command is used to enable the GS node to transition to ultra low power standby mode between beacons. Command Syntax AT+PSSTBYBWBEACON=1 Parameter Description Table 132, page 151 describes the Enabling standby mode between beacons parameters.
  • Page 152: Configuring Standby Between Beacons

    GS2101M IP2WiFi Adapter Command Reference Guide 6.3.2.3 Configuring Standby Between Beacons This command is used to configure GS node to support transitioning to ultra low power standby mode between beacons. Command Syntax AT+PSSTBYBWBEACONCONF = <Conf ID>,<Value> Parameter Description Table 134, page 152 describes the Configuring standby mode between beacons parameters.
  • Page 153 GS2101M IP2WiFi Adapter Command Reference Guide Synchronous Response Table 135, page 155 describes the synchronous responses and remarks for Request Standby Mode command. 1VV0301499 Rev. 2.0 2019-08-05...
  • Page 154 GS2101M IP2WiFi Adapter Command Reference Guide 1VV0301499 Rev. 2.0 2019-08-05...
  • Page 155: Deep Sleep

    GS2101M IP2WiFi Adapter Command Reference Guide Table 135 Configure Standby Mode Between Beacons Synchronous Responses Responses Remarks Success ERROR:INVALID INPUT If parameters are not valid. 6.3.3 Deep Sleep This command is used to enable the GS node’s power-saving Deep Sleep processor mode. Command Syntax AT+PSDPSLEEP When enabled, the GS node will enter the power-saving Deep Sleep mode when no actions...
  • Page 156 GS2101M IP2WiFi Adapter Command Reference Guide Table 136 Enable/Disable GS node Deep Sleep Parameters Parameter Optional/Mandatory Value Description Node goes to deep sleep state for the Integer by 32bit configured time in milliseconds and upon Timeout Optional value time out exits the node from deep sleep state.Max time out value is 32 bit.
  • Page 157: Power Save In Limited Ap

    GS2101M IP2WiFi Adapter Command Reference Guide 6.3.4 Power Save in Limited AP This command is used to configure power save in Limited AP Mode. AT+WAPPSCFG=<Power-Save Command Syntax Configuration>,<Reserved>,<Receiver on-time after Tx>,<Power-save behavioral control> When enabled, the module will enter the power saving mode when no actions are pending. Usage In power save mode, the processor clock is turned OFF, and the module power consumption is reduced.
  • Page 158: Hardware Cryptography

    GS2101M IP2WiFi Adapter Command Reference Guide The following table provides the behavior of an AP corresponding to the combination of values configured for Power-save control and Power-save configuration parameters. Table 139 AP behavior based on Power-Save Control and Power-Save Configuration Power-Save Control Power-Save Configuration Exit power save immediately.
  • Page 159 GS2101M IP2WiFi Adapter Command Reference Guide NOTE: If the user wants to save power or does not want to use this feature, then they are allowed to switch off the hardware crypto block. The SW internally keeps a count of ON and OFF requests and when the count becomes 0, it is switched off.
  • Page 160: Chapter 7 Peripherals

    GS2101M IP2WiFi Adapter Command Reference Guide Chapter 7 Peripherals This chapter describes commands for configurations and operations related to GainSpan supported peripherals. • GPIO Commands, page 160 7.1 GPIO Commands 7.1.1 GPIO Out HIGH/LOW This command is used to set or reset the GPIO ‘GPIO-NO’ pin level to high or low as per the SET/RESET parameter.
  • Page 161: Chapter 8 Production And Debug

    GS2101M IP2WiFi Adapter Command Reference Guide Chapter 8 Production and Debug This chapter describes commands for configurations and operations used in Production and helpful in debugging. • RF Test, page 161 • Live Calibration, page 176 • Debug, page 181 8.1 RF Test 8.1.1 Regulatory and Transmit Tests using RF Test Commands 8.1.1.1 Regulatory Testing...
  • Page 162: Gain Control Table

    GS2101M IP2WiFi Adapter Command Reference Guide 8.1.1.3 Gain Control Table Table 143 Gain Control Table Data Rate 1 Mbps 2 Mbps 5.5 Mbps 11 Mbps 6 Mbps 9 Mbps 12 Mbps 18 Mbps 24 Mbps 36 Mbps Data Rate 48 Mbps 54 Mbps MCS0 MCS1 MCS2 MCS3...
  • Page 163 GS2101M IP2WiFi Adapter Command Reference Guide Table 144 Asynchronous Frame Transmission Parameters Parameter Optional/Mandatory Value Description Note: for continuous transmission, configure this parameter with the value 99. Once configured in continuous transmission mode, to come out of this mode, stop the test mode and start the test mode again (i.e., AT+WRFTESTSTOP, AT+WRFTESTSTART).
  • Page 164: Start Asynchronous Frame Reception

    GS2101M IP2WiFi Adapter Command Reference Guide Table 145 Asynchronous Frame Transmission Data Rates TxRate HtEnable Data Rate (Mbps) MCS0 MCS1 MCS2 MCS3 MCS4 MCS5 MCS6 MCS7 Example AT+WFRAMETXTEST=1,0,50000,1000,11,16,00:11:22:33:44:55,00 :50:c2:5e:10:99,0,0,0,0,0,4,0,2,0,1 NOTE: Check the wireless sniffer to see if the frames are on air. 8.1.1.7 Start Asynchronous Frame Reception The command is used to enable the asynchronous frame reception.
  • Page 165 GS2101M IP2WiFi Adapter Command Reference Guide Table 146 Asynchronous Frame Reception Start Parameters Parameter Optional/Mandatory Value Description The channel on which the data is to be Channel Mandatory 1 to 14 sent (1-14). BandWidth Mandatory The values of 0 is 20MHz. Note: Currently supports only 20MHz operation.
  • Page 166 GS2101M IP2WiFi Adapter Command Reference Guide No of packets received at 48M = 0 No of packets received at 54M = 6988 No of packets received atrespective MCS Index with Short GI=00000000 No of packets received atrespective MCS Index with Long GI=00000000 NOTE: This will receive frames with MAC address 00:1d:c9:17:8d:b1.
  • Page 167: Stop Asynchronous Frame Reception

    GS2101M IP2WiFi Adapter Command Reference Guide 8.1.1.8 Stop Asynchronous Frame Reception This command is used to stop RF reception. Command Syntax AT+WRXSTOP When the command is executed it stops the frame reception and displays the PER stats: Example AT+WRXTEST=6,0,429493010,00:11:22:33:44:55,0 AT+WRXSTOP No of packets received = 9613 No of bytes received = 9613000 No of packets received with CRC Errors = 1432...
  • Page 168: Asynchronous Frame Transmission (Tx99 Mode)

    GS2101M IP2WiFi Adapter Command Reference Guide 8.1.1.9 Asynchronous Frame Transmission (TX99 mode) This command is used to enable TX99 mode. NOTE: Issue AT+WRFTESTSTART command before issuing the FrameTX test or the TX99 test commands; otherwise a WLAN exception/reset will occur. Command Syntax AT+WTX99TEST=<Channel>,<BandWidth>,<NumFrames>,<FrameLen>...
  • Page 169 GS2101M IP2WiFi Adapter Command Reference Guide Table 147 Asynchronous Frame Transmission Parameters Parameter Optional/Mandatory Value Description 0, 1 GuardInterval Mandatory It specifies the guard interval. • 0 - Short guard interval • 1 - Long guard interval 0, 1 It specifies whether to enable or GreenField Mandatory •...
  • Page 170 GS2101M IP2WiFi Adapter Command Reference Guide Table 147 Asynchronous Frame Transmission Parameters Parameter Optional/Mandatory Value Description • 000 (0)- All 1’s • 001 (1)- All 0’s • 010 (2)- Alternate 1’s and 0’s It specifies the type of test pattern to •...
  • Page 171 GS2101M IP2WiFi Adapter Command Reference Guide Table 148 ModeSelect, TxRate, PHY test transmit rates for corresponding Data rates (TX99 mode) Data Rate (Mbps) ModeSelect Mode TxRate PhyTestTxRate MCS0 MCS1 MCS2 MCS3 802.11n MCS4 MCS5 MCS6 MCS7 To support data rate of 11 Mbps, configure the ModeSelect parameter to 1, TxRate Example for Mode 802.11b parameter to 0, and PhyTestTxRate to 3.
  • Page 172 GS2101M IP2WiFi Adapter Command Reference Guide Table 149 Examples for Asynchronous Frame Transmission (TX99 mode) Data Rate (Mbps) Example AT+WTX99TEST=1,0,99,1000,0,27,00:11:22:33:44:55,00:50: c2:5e:10:99,0,0,0,0,0,0,0,0,0,0,3,3,0 AT+WTX99TEST=1,0,99,1000,0,27,00:11:22:33:44:55,00:50: c2:5e:10:99,0,0,0,0,0,0,0,0,0,0,3,7,0 AT+WTX99TEST=1,0,99,1000,0,27,00:11:22:33:44:55,00:50: c2:5e:10:99,0,0,0,0,0,0,0,0,0,0,3,2,0 AT+WTX99TEST=1,0,99,1000,0,27,00:11:22:33:44:55,00:50: c2:5e:10:99,0,0,0,0,0,0,0,0,0,0,3,6,0 AT+WTX99TEST=1,0,99,1000,0,26,00:11:22:33:44:55,00:50: c2:5e:10:99,0,0,0,0,0,0,0,0,0,0,3,1,0 AT+WTX99TEST=1,0,99,1000,0,25,00:11:22:33:44:55,00:50: c2:5e:10:99,0,0,0,0,0,0,0,0,0,0,3,5,0 AT+WTX99TEST=1,0,99,1000,0,24,00:11:22:33:44:55,00:50: c2:5e:10:99,0,0,0,0,0,0,0,0,0,0,3,0,0 AT+WTX99TEST=1,0,99,1000,0,19,00:11:22:33:44:55,00:50: c2:5e:10:99,0,0,0,0,0,0,0,0,0,0,3,4,0 AT+WTX99TEST=1,0,99,1000,0,27,00:11:22:33:44:55,00:50: MCS0 c2:5e:10:99,0,0,0,0,0,0,0,0,0,0,3,0,2 AT+WTX99TEST=1,0,99,1000,1,27,00:11:22:33:44:55,00:50: MCS1 c2:5e:10:99,0,0,0,0,0,0,0,0,0,0,3,1,2 AT+WTX99TEST=1,0,99,1000,2,27,00:11:22:33:44:55,00:50: MCS2...
  • Page 173: Asynchronous Frame Transmission (Tx100 Mode)

    GS2101M IP2WiFi Adapter Command Reference Guide 8.1.1.10 Asynchronous Frame Transmission (TX100 mode) This command is used to enable the TX100. Command Syntax AT+WTX100TEST=<Channel>,<BandWidth>,<TxPower>,<Antenna>,< Cca>,<Agc>,<ContPreambleMode>,<Spreader>,<Scrambler>,<Pre amble>,<PreambleType>,<TestPatternType>,<PhyTestTxRate>,< ModeSelect> Parameter Description Table 150, page 173 describes the Asynchronous Frame Transmission (TX100 mode) parameters. Table 150 Asynchronous Frame Transmission (TX100 mode) Parameter Optional/Mandatory...
  • Page 174 GS2101M IP2WiFi Adapter Command Reference Guide Table 150 Asynchronous Frame Transmission (TX100 mode) (Continued) Parameter Optional/Mandatory Value Description Selects the test pattern to be transmitted. TestPatternType Mandatory • 0 - All 1s • 1 - All 0s The rate will differ depending on the PhyTestTxRate Mandatory 0 to 7...
  • Page 175: Carrier Wave Transmission

    GS2101M IP2WiFi Adapter Command Reference Guide 8.1.1.11 Carrier Wave Transmission This command is used to enable the carrier wave transmission. Command Syntax AT+WCARWAVTEST=<Channel>,<BandWidth>,<TxPower>,<Antenna>, <CustomWavePeriod> Parameter Description Table 152, page 175 describes the Carrier Wave Transmission parameters. Table 152 Carrier Wave Transmission Parameters Parameter Optional/Mandatory Value...
  • Page 176: Live Calibration

    GS2101M IP2WiFi Adapter Command Reference Guide 8.2 Live Calibration 8.2.1 Enable Live Calibration NOTE: This command is obsolete and it is retained for backward compatibility. This command is used to enable or disable live calibration. When live calibration is enabled, •...
  • Page 177 GS2101M IP2WiFi Adapter Command Reference Guide Parameter Description Table 153, page 177 describes the Live Calibration parameters. Table 153 Live Calibration Parameters Parameter Optional/Mandatory Value Description 0:Disables live calibration. 1:Enables live calibration. 0, 1, ? ?:Provides the current value of the live value Mandatory Default value - 1...
  • Page 178: Erase Live Calibration

    GS2101M IP2WiFi Adapter Command Reference Guide 8.2.2 Erase Live Calibration This command is used to erase the live calibration data in flash and reset live calibration to factory default settings. It invalidates any previous settings related to live calibration, erases all the previous information such as enable or disable live calibration from flash, and enables live calibration.
  • Page 179: Start Live Calibration

    GS2101M IP2WiFi Adapter Command Reference Guide 8.2.3 Start Live Calibration This command and associated API is added to support all-channel calibration for customers that want to perform all-channel calibration in their production line to get better performance right from beginning. The calibration is performed for ambient temperature range.
  • Page 180 GS2101M IP2WiFi Adapter Command Reference Guide Table 157 Start Live Calibration Synchronous Responses Responses Remarks Calibration Info: status = SUCCESS Length = Length of Calibration data Success Data: Calibration data Calibration Info: status = FAIL Length = Length of Calibration data Failure Data: Calibration data AT+WLCALSTART=1...
  • Page 181: For Complete Sequence Of Live Calibration

    GS2101M IP2WiFi Adapter Command Reference Guide 8.2.4 For Complete Sequence of Live Calibration After cold boot, it is highly recommended to issue following live calibration commands before performing any of the Wi-Fi operations: AT+WLCALERASE AT+RESET AT+WLCALSTART=1 8.3 Debug 8.3.1 Log Level This command is used to configure the debug level so that the response of a command will include more information (error reason) in case of an error.
  • Page 182: Echo

    GS2101M IP2WiFi Adapter Command Reference Guide Table 159 Error Code Synchronous Responses Responses Remarks Success ERROR Failure AT+LOGLVL=1 Example - AT+WA=GSDEMO SSID NOT FOUND ERROR 8.3.2 Echo NOTE: This command is applicable for all the AT Commands, but not to their Responses.
  • Page 183: Verbose

    GS2101M IP2WiFi Adapter Command Reference Guide Synchronous Response Table 161, page 183 describes the synchronous responses and remarks for the Echo command. Table 161 Echo Synchronous Responses Synchronous Responses Remarks Success ERROR: INVALID INPUT If parameters are not valid. 8.3.3 Verbose This command is used to enable or disable verbose mode for synchronous and asynchronous responses.
  • Page 184: Rssi

    GS2101M IP2WiFi Adapter Command Reference Guide 8.3.4 RSSI This command is used to get information regarding the received signal strength of the incoming packets in dBm. WLAN updates the RSSI value of only Management frame (Beacon). Command Syntax AT+WRSSI=? Synchronous Response Table 164, page 184 describes the synchronous responses and remarks for the Get RSSI command.
  • Page 185: Wlan Statistics

    GS2101M IP2WiFi Adapter Command Reference Guide Example 1 - Not AT+WSTATUS associated state NOT ASSOCIATED Example 2 - AT+WA=GainSpanDemo,,11 Associated state AT+WSTATUS MODE:0CHANNEL:11 SSID:”GainSpanDemo” BSSID:98:fc:11:4a:b8:56SECURITY:NONE 8.3.6 WLAN Statistics This command is used to transmit or request statistics from WLAN. After providing the statistics it resets all the counters.
  • Page 186 GS2101M IP2WiFi Adapter Command Reference Guide Table 166 GS Node WLAN TX Statistic Counters (Continued) WLAN Statistic Counters Description ccmp CCMP encrypted unencryp Not encrypted ukencryp Unknown encryption Legacy frames ht20l HT-LongGl-20MHz ht20s HT-Shrtl-20MHz ht40l HT-LongGl-40MHz ht40s HT-ShrtGl-40MHZ mcs32s MCS-32 ShortGl mcs32l MCS-32 LongGl probersp...
  • Page 187 GS2101M IP2WiFi Adapter Command Reference Guide Table 167 GS Node WLAN RX Statistic Counters (Continued) WLAN Statistic Counters Description irxkf Key Failed irxicvf ICV Failed irxtkipicvf ICV failed for TKIP irxtkipmf MIC failed for TKIP irxrf CCM Replay Failure irxtkiprf TKIP Replay Failure irxdip Defragmentation in Progress...
  • Page 188 GS2101M IP2WiFi Adapter Command Reference Guide Table 167 GS Node WLAN RX Statistic Counters (Continued) WLAN Statistic Counters Description qos_mc_data Unicast QoS data qos_oth_data Other QoS data amsdu_uc_data Multicast AMSDU data amsdu_mc_data Unicast AMSDU data amsdu_oth_data Other AMSDU data oth_mgmt Other Management frame oth_ctrl Other Control frame...
  • Page 189: Appendix A Response Codes

    GS2101M IP2WiFi Adapter Command Reference Guide Appendix A Response Codes This appendix provides a list of response codes for IP-to-WiFi AT commands. • Synchronous Messages, page 189 • Asynchronous & Enhanced Asynchronous Messages, page 189 The possible responses sent by the Adapter to the serial host are categorized as follows: •...
  • Page 190 GS2101M IP2WiFi Adapter Command Reference Guide Starts with “CR” and “LF” and ends with “CR” and “LF” or “\r\n” or “\n\r\” or “\r\n\r\n” or “\r\n\n\r”. Enhanced asynchronous message format: <ESC><Type><Subtype><Length><message> Table 169 Response codes for Asynchronous and Enhanced Asynchronous Messages Events Verbose mode Non Verbose Mode...
  • Page 191 GS2101M IP2WiFi Adapter Command Reference Guide Table 169 Response codes for Asynchronous and Enhanced Asynchronous Messages Events Verbose mode Non Verbose Mode Asynchronous message Enhanced Asynchronous Enhanced asynchronous message message asynchronous message \r\n\n\rAPP Reset-Wlan <ESC>Af315APP <ESC>Af30212\r\ APP Reset-Wlan Except \r\n24\r\n Except\r\n\r\n Reset-Wlan Except\r\n APP Reset External...
  • Page 192 GS2101M IP2WiFi Adapter Command Reference Guide Table 169 Response codes for Asynchronous and Enhanced Asynchronous Messages Events Verbose mode Non Verbose Mode Asynchronous message Enhanced Asynchronous Enhanced asynchronous message message asynchronous message <ESC>Af0021c\r\ p2p-Dev-found <SP>P2P Dev Found\r\n <ESC>Af0 r\n41\r\n <SP>P2P Find <ESC>Aff0111p2p-find <ESC>Af1021f\r\ p2p-find-complete...
  • Page 193: Exception Messages

    GS2101M IP2WiFi Adapter Command Reference Guide A.3.1 Exception Messages The possible exception messages sent by the Adapter to the serial host are enumerated in Table 170, page 193. Table 170 Exception Messages ASCII String Meaning Adapter reset due to WLAN \r\n\n\rAPP Reset-Wlan SW Reset\r\n\r\n processor software reset.
  • Page 194: Boot Messages

    GS2101M IP2WiFi Adapter Command Reference Guide A.3.2 Boot Messages The possible boot messages sent by the Adapter to the serial host are enumerated in Table 171, page 194. Table 171 Boot Messages ASCII String Meaning Normal IP-to-WiFi adapter boot message with internal PA. \r\nIP2WiFi APP\r\n This boot message is also applicable when reset is triggered from external...
  • Page 195 GS2101M IP2WiFi Adapter Command Reference Guide – COMMAND RESPONSE + DATA – COMMAND RESPONSE + ASYNCHRONOUS MESSAGE NOTE: a.) If S2W ECHO is disabled, then whenever HOST MCU issues any AT command, GainSpan only responds with corresponding COMMAND RESPONSE. Here, there is no way that HOST MCU can receive network DATA or ASYNCHRONOUS MESSAGE before COMMAND RESPONSE b.) If S2W ECHO is enabled, then there is a chance of receiving network DATA or ASYNCHRONOUS MESSAGE before COMMAND RESPONSE.

Table of Contents