Janus WiFi1500CF Plug-In User Manual - page 9
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=
AssociatewithaWiFinetworkhaving
designatedSSID.
AT+NCUDP=
SetupUDPClient.SuccessfulCommandwillreturn
Returns:CONNECT
aConnectionIdentifiernumber.
At this point UDP data can be sent to a server (at
SendUDPdata.
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=
AT+WM=2
Mode(2=limitedAccessPoint).
AT+WA=
StartAPnetworkusingSSIDondesignatedCHANNEL.
AT+DHCPSRVR=1
DHCPserver(1=enable).
AT+WEBPROV=
Startwebprovisioning.TheUSERNAMEandPASSWORD
willberequiredtologin.
At this point a client can connect to the GS1500M module at it’s
provisioning of the GS1500M.