Serial-to-WiFi Adapter Application Programmer Reference Adapter Application Programmer Reference Guide ... 107 3.9.8 EAP ... 3.15 Network Connection Manager

  • View
    225

  • Download
    2

Embed Size (px)

Text of Serial-to-WiFi Adapter Application Programmer Reference Adapter Application Programmer Reference...

  • Release 5.21, 12/05/2014Copyright 2014 GainSpan. All rights reserved.

    Serial-to-WiFi AdapterApplication Programmer

    Reference GuideGS1500-S2W-APP-PRG-RG-001208

    ModuleGS1500M

    Software Release 3.5.9

    GainSpan 802.11b/g/n Ultra-Low Power WiFi Series Modules

  • Copyright Statement This GainSpan manual is owned by GainSpan or its licensors and protected by U.S. and international copyright laws, conventions, and treaties. Your right to use this manual is subject to limitations and restrictions imposed by applicable licenses and copyright laws. Unauthorized reproduction, modification, distribution, display or other use of this manual may result in criminal and civil penalties.

    GainSpan assumes no liability whatsoever, and disclaims any express or implied warranty, relating to sale and/or use of GainSpan products including liability or warranties relating to fitness for a particular purpose, merchantability, or infringement of any patent, copyright or other intellectual property right. GainSpan products are not authorized for use as critical components in medical, lifesaving, or life-sustaining applications

    GainSpan may make changes to specifications and product descriptions at any time, without notice.

    Trademark GainSpan is a registered trademark of GainSpan Corporation. All rights reserved. Other names and brands may be claimed as the property of others.

    Contact Information In an effort to improve the quality of this document, please notify GainSpan Technical Assistance at 1.408.627.6500 in North America or +91 80 42526503 outside North America.

  • Table of Contents

    Chapter 1 Interface Architecture ...................................................................................................... 211.1 Overview ...............................................................................................................................211.2 Interfaces ..............................................................................................................................211.3 Architecture of Adapter .........................................................................................................21

    Chapter 2 Adapter Description ........................................................................................................ 252.1 System Initialization ..............................................................................................................25

    2.1.1 External PA Auto Detection .......................................................................................26 2.1.2 Network Configuration ...............................................................................................26

    2.1.2.1 Profile Definition ...................................................................................................312.2 Command Processing Mode ................................................................................................33

    2.2.1 Auto Connection ........................................................................................................342.2.1.1 Auto Connection Operation .................................................................................36

    2.3 Data Handling .......................................................................................................................37 2.3.1 Bulk Data Tx and Rx .................................................................................................39

    2.3.1.1 Raw Data Handling (BACNET Support Only) ......................................................41 2.3.2 Software Flow Control ...............................................................................................42 2.3.3 Hardware Flow Control .............................................................................................43

    2.4 Serial Data Handling .............................................................................................................442.5 Connection Management .....................................................................................................45

    2.5.1 Packet Reception ......................................................................................................45 2.5.2 Remote Close ...........................................................................................................45 2.5.3 TCP Server Connections ..........................................................................................46

    2.6 Wireless Network Management ............................................................................................47 2.6.1 Scanning ...................................................................................................................47

    2.6.1.1 Association ..........................................................................................................472.6.1.2 Response Codes .................................................................................................482.6.1.3 Enhanced Asynchronous Messages ...................................................................502.6.1.4 Exception Messages ............................................................................................512.6.1.5 Boot Message ......................................................................................................522.6.1.6 SSID and Passphrase .........................................................................................52

    Chapter 3 Commands for Command Processing Mode .................................................................. 553.1 Overview ...............................................................................................................................573.2 Command Interface ..............................................................................................................58

    3.2.1 Interface Verification .................................................................................................58 3.2.2 Echo ..........................................................................................................................58 3.2.3 Verbose .....................................................................................................................59

    3.3 UART Interface Configuration ..............................................................................................60 3.3.1 UART Parameters .....................................................................................................60 3.3.2 Software Flow Control ...............................................................................................61 3.3.3 Hardware Flow Control .............................................................................................61

    3.4 SPI Configuration .................................................................................................................63 3.4.1 SPI Interface Configuration .......................................................................................63

    3.5 Serial-to-WiFi Configuration .................................................................................................643.6 Identification Information ......................................................................................................683.7 Serial-to-WiFi Profile Configuration ......................................................................................68

    3.7.1 Save Profile ...............................................................................................................69 3.7.2 Load Profile ...............................................................................................................69

    GS1500-S2W-APP-PRG-RG-001208, Release 5.21 3

  • Serial-to-Wi-Fi Adapter Application Programmer Reference Guide

    3.7.3 Selection of Default Profile ........................................................................................71 3.7.4 Restore to Factory Defaults ......................................................................................72 3.7.5 Output Current Configuration ....................................................................................73

    3.8 WiFi Interface Configuration .................................................................................................74 3.8.1 Set MAC Address ......................................................................................................74 3.8.2 Get MAC Address .....................................................................................................76 3.8.3 Set Regulatory Domain .............................................................................................77 3.8.4 Get Regulatory Domain .............................................................................................78 3.8.5 Set Scan Time ...........................................................................................................79 3.8.6 Get Scan Time ..........................................................................................................80 3.8.7 Scanning ...................................................................................................................81 3.8.8 Mode .........................................................................................................................83 3.8.9 Set PHY Mode ..........................................................................................................84 3.8.10 Get PHY Mode ........................................................................................................86 3.8.11 Associate with a Network, or Start an Ad Hoc or Infrastructure (AP) Network ........87 3.8

Recommended

View more >