CB-OWSPA311GI-01 ConnectBlue, CB-OWSPA311GI-01 Datasheet - Page 27

KIT START OEM WIRELESS LAN RS232

CB-OWSPA311GI-01

Manufacturer Part Number
CB-OWSPA311GI-01
Description
KIT START OEM WIRELESS LAN RS232
Manufacturer
ConnectBlue
Series
OEM Serial Port Adapter™r
Type
Bluetoothr
Datasheet

Specifications of CB-OWSPA311GI-01

Frequency
2.4GHz
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
809-1018
Example 3, Static IP Address and TCP Listener
Example 4, Find the DHCP Assigned Address and RSSI Value
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.
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).
7. The module will now restart and associate with the access point. When associated it
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
4. Turn on the TCP listener and set it to listen on port 5003 with the AT command
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-
7. Connect to the module with a terminal program (i.e. HyperTerminal in Windows) but
8. Start a telnet session to the module from a computer that is connected to the same
9. Telnet should now connect to the module. Verify the connection by typing something
1. Connect to the module and enter AT mode.
2. Tell the OWSPA311g to keep all connections, even when entering AT mode. This is
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
5. Read the assigned IP settings with the AT command AT*ANIP?
6. Read the current RSSI value with the AT command AT*AGRSS
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.
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.
AT*AMTL=5003,1,1
ured static IP settings.
do not enter AT mode.
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.
in the telnet window. The text should appear in the terminal window.
done with the AT command ATS4006=1
makes it possible to read out IP settings and RSSI value.
Version 1.6.6 - 2009-11
27

Related parts for CB-OWSPA311GI-01