WiFi1500CF Plug-In Hardware User Guide JA03-UM-WiFi
Page 9 Rev: P00 Date: 03/13/14
© Copyright 2014 Janus Remote Communications
Specifications subject to change without notice
All Rights Reserved See website for latest revision. Not intended for life support applications.
3. WiFi Module Continued
3.2 WiFi Module Operations continued
3.2.2 Operation examples
Below are several examples of configuring the GS1500M module. The UDP Client example configures the
module to connect to an existing infrastructure WiFi network using command mode, then sends UDP data to
a server using data mode. The Web Provisioning example is a command mode sequence of instructions that
initiates the module’s provisioning web server. The Auto Connect example configures the unit to automatically
connect as a TCP server to a specific client. Upon restart in the Auto Connect mode a connection is made
between the client and server, at which point data can be transparently passed back and forth between them.
These examples assume that the GS1500M WiFi module begins configured in its default state, and that no
encryption is used.
3.2.2.1 UDP Client
Issuing the following sequence of commands will set up the GS1500M module as a station in an existing infrastructure WiFi
network:
AT+WM=0
Mode (0=infrastructure).
AT+NDHCP=1
DHCP (1=enable).
AT+WA=<SSID>
Associate with a WiFi network having
designated SSID.
AT+NCUDP=<Dest-Address>,<Port>
Setup UDP Client. Successful Command will return
Returns:
CONNECT <CID>
a Connection Identifier number.
At this point UDP data can be sent to a server (at <Dest-address>, <port>) with the following command:
<Esc>S<CID><data><Esc>E
Send UDP data.
3.2.2.2 Web Provisioning
The web provisioning feature included in the default firmware load allows the GS1500M to host a few simple web pages
that allow for provisioning of the module. It can be set by issuing the following commands:
AT+NSET=<IP>,<SUBNET MASK>,<GATEWAY IP>
Static Configuration.
AT+WM=2
Mode (2=limited Access Point).
AT+WA=<SSID>,,<CHANNEL>
Start AP network using SSID on designated CHANNEL.
AT+DHCPSRVR=1
DHCP server (1=enable).
AT+WEBPROV=<USERNAME>,<PASSWORD>
Start web provisioning. The USERNAME and PASSWORD
will be required to login.
At this point a client can connect to the GS1500M module at it’s <IP> address. The GS1500M will request the
<USERNAME> and <PASSWORD> to be entered. This gives access to web pages hosted on the module that allow for
provisioning of the GS1500M.