7. The module will now restart and associate with the access point. When associated it
will request an IP address from the DHCP. When it has got a DHCP lease it will try to
connect to the IP address 10.0.0.9 on TCP port 5002.
Example 3, Static IP Address and TCP Listener
The OWSPA311g can be configured to listen for incoming TCP and/or UDP connections on a
specified port. This example shows how to configure the module for this purpose and how to
make sure the connection works. It also shows how to use static IP settings instead of dynamic
settings which was used in the previous example.
1. Connect to the module and enter AT mode.
2. Setup WLAN configuration settings (see Example 1, Configure a WLAN Connection).
3. Set the static IP address, netmask and gateway settings with the AT command
AT*ANIP=”192.168.0.42”,”255.255.0.0”,”192.168.0.1”,1 . Also make
sure DHCP is disabled with the AT command AT*ANDHCP=0,1 .
4. Turn on the TCP listener and set it to listen on port 5003 with the AT command
AT*AMTL=5003,1,1
5. Restart the module with the AT command AT*AMWS=0,0,0,0,1,0
6. The module will now restart and associate with the access point. It will use the config-
ured static IP settings.
7. Connect to the module with a terminal program (i.e. HyperTerminal in Windows) but
do not enter AT mode.
8. Start a telnet session to the module from a computer that is connected to the same
network as the access point to which the module is associated. In Windows, a telnet
session is started by opening command prompt (Start->Run, “cmd”). In the command
prompt type telnet 192.168.0.42 5003 and press ENTER.
9. Telnet should now connect to the module. Verify the connection by typing something
in the telnet window. The text should appear in the terminal window.
Example 4, Find the DHCP Assigned Address and RSSI Value
This example describes how to find out what IP settings the module is assigned when config-
ured to use DHCP IP settings. The default behavior of the OWSPA311g is to disconnect all peers
including the link layer (WLAN link) when AT mode is entered. Effectively this will release and
flush the assigned IP settings as soon as the module enters AT mode, which makes it impossible
to read out these settings. However, there is a way to change this behavior, so that the peers
and link layer are kept connected when the module enters AT mode. This method also applies if
you want to find out the RSSI value for the link layer connection.
The example requires the module to have valid WLAN settings (see Example 1, Configure a
WLAN Connection) and at least one remote peer configured (see Example 2, Enable DHCP and
configure a Remote Peer).
1. Connect to the module and enter AT mode.
2. Tell the OWSPA311g to keep all connections, even when entering AT mode. This is
done with the AT command ATS4006=1
3. Restart the module with the AT command AT*AMWS=0,0,0,0,1,0
4. Again enter AT mode. This time the peers and link layer will not be disconnected which
makes it possible to read out IP settings and RSSI value.
5. Read the assigned IP settings with the AT command AT*ANIP?
6. Read the current RSSI value with the AT command AT*AGRSS
Version 1.6.6 - 2009-11
27
相关PDF资料
CB-OWSPA311GX-04 MOD OEM WIRELESS LAN 311G I
CB-RWSPA311GS-03 SERIAL PORT ADAPTER WIRELESS LAN
CB-SPA312I-02 SERIAL PORT ADAPTER 312I BTOOTH
CBC-PV-01N PHOTOVOLTAIC SOLAR CELL
CBC-PV-02N PHOTOVOLTAIC SOLAR CELL
CC-900W-CA5 MODEM WIRELESS 900MHZ 5V W/ANT
CC-EVB-900W KIT EVAL SOCKET RADIO
CC2431DK KIT DEV FOR CC2431
相关代理商/技术参数
CB-OWSPA311GI-04 功能描述:MOD OEM WIRELESS LAN 311G I RoHS:是 类别:RF/IF 和 RFID >> RF 收发器 系列:CB-OWSPA 产品培训模块:Lead (SnPb) Finish for COTS Obsolescence Mitigation Program 标准包装:30 系列:- 频率:4.9GHz ~ 5.9GHz 数据传输率 - 最大:54Mbps 调制或协议:* 应用:* 功率 - 输出:-3dBm 灵敏度:- 电源电压:2.7 V ~ 3.6 V 电流 - 接收:* 电流 - 传输:* 数据接口:PCB,表面贴装 存储容量:- 天线连接器:PCB,表面贴装 工作温度:-25°C ~ 85°C 封装/外壳:68-TQFN 裸露焊盘 包装:管件
CB-OWSPA311GX-04 功能描述:MOD OEM WIRELESS LAN 311G I RoHS:是 类别:RF/IF 和 RFID >> RF 收发器 系列:CB-OWSPA 产品培训模块:Lead (SnPb) Finish for COTS Obsolescence Mitigation Program 标准包装:30 系列:- 频率:4.9GHz ~ 5.9GHz 数据传输率 - 最大:54Mbps 调制或协议:* 应用:* 功率 - 输出:-3dBm 灵敏度:- 电源电压:2.7 V ~ 3.6 V 电流 - 接收:* 电流 - 传输:* 数据接口:PCB,表面贴装 存储容量:- 天线连接器:PCB,表面贴装 工作温度:-25°C ~ 85°C 封装/外壳:68-TQFN 裸露焊盘 包装:管件
C-BOXQX2 功能描述:烙铁 QX2 BOX NOZZLE CUSTOM RoHS:否 制造商:Weller 产品:Soldering Stations 类型:Digital, Iron, Stand, Cleaner 瓦特:50 W 最大温度:+ 850 F 电缆类型:US Cord Included
CBP 3/8 制造商:Thomas & Betts 功能描述:STEEL COVER 制造商:Thomas & Betts 功能描述:Covers For Steel City Metallic Boxes
CBP0735A 制造商:2POWER 功能描述:BATTERY LI-ION SONY VAIO PCG-F
CBP-1 功能描述:TERM BARRIER 1CIRC SGL ROW .375 RoHS:是 类别:连接器,互连式 >> 接线座 - 隔板块 系列:CB 标准包装:1 系列:43000 端接块类型:阻隔块 电路数:3 导线入口数目:3 间距:0.438"(11.12mm) 行数:1 电流:20A 电压:600V 线规:12-22 AWG 顶部端子:螺钉(不包括) 底部端子:快速连接(0.250") 阻挡层类型:双壁(双) 特点:法兰 颜色:- 包装:散装 安装类型:底座安装或面板安装 工作温度:105°C 材料 - 绝缘体:聚丙烯(PP) 材料可燃性额定值:UL94 V-0
CBP-10 功能描述:TERM BARRIER 10CIRC SGL ROW .375 RoHS:是 类别:连接器,互连式 >> 接线座 - 隔板块 系列:CB 标准包装:1 系列:43000 端接块类型:阻隔块 电路数:21 导线入口数目:21 间距:0.438"(11.12mm) 行数:1 电流:20A 电压:600V 线规:12-22 AWG 顶部端子:螺钉 底部端子:绕接线,绝缘 阻挡层类型:双壁(双) 特点:- 颜色:- 包装:散装 安装类型:底座安装或面板安装;通孔 工作温度:105°C 材料 - 绝缘体:聚丙烯(PP) 材料可燃性额定值:UL94 V-0
CBP100-C 功能描述:电路板硬件 - PCB CB POST NYLON RoHS:否 制造商:Harwin 类型:Shield Clip 长度:9.4 mm 螺纹大小: 外径: 材料:Beryllium Copper 电镀:Tin