Multitech SocketWireless MT800SWM, MultiConnect MTS2WFA Reference Manual

®
SocketWireless
Wi-Fi®
MT800SWM
&
®
MultiConnect
MTS2WFA
AT Commands
Reference Guide
Copyright and Technical Support
AT Commands for the following products:
SocketWireless Wi-Fi (MT800SWM) MultiConnect WF, a Serial-to-Wi-Fi Device Server (MTS2WFA)
Document Product Number S000425D, Revision D Copyright
This publication may not be reproduced, in whole or in part, without prior expressed written permissio n from Multi­Tech Systems, Inc. All rights reserved. Copyright © 2006-8, by Multi-Tech Systems, Inc. Multi-Tech Systems, Inc. makes no representations or warranties with respect to the contents hereof and specifically disclaim any implied warranties of merchantability or fitness for any particular purpose. Furthermore, Multi-Tech Systems, Inc. reserves the right to revise this publication and to make changes from time to time in the content hereof without obligation of Multi-Tech Systems, Inc. to notify any person or organization of such revisions or changes.
Revisions Revision Level Date Description
A 02/13/07 Initial release. B 05/15/07 Updated the Technical Support contact list. Changed the A\ command to A/. 06/29/07 Removed a duplicate Reset command.
08/22/07 Updated for firmware 1.2x Added #WEP?, #WEPKEYID, #WLANPOWERSAVE, #WLANDOZE,
#WLANACTIVATE, #WLANROAM, #WLANASSOCINFO, #TCPAUTOLISTEN, #UART?, #BOOTMSG commands.
C 11/09/07 Added the MultiConnect WF, a Serial-to-Wi-Fi Device Server, as a product that
uses these commands.
D 01/11/08 Added that the #SMTPPUTMAIL command will request the message body to
be entered. Added a space before the -B in the command #SMTPPUTMAIL -B
Trademarks
SocketWireless, Multi-Tech, and the Multi-Tech logo are registered trademarks of Multi-Tech Systems, Inc.
World Headquarters
Multi-Tech Systems, Inc. 2205 Woodale Drive Mounds View, Minnesota 55112 Phone: 763-785-3500 or 800-328-9717 Fax: 763-785-9874 Internet Address: http://www.multitech.com
Technical Support Country By Email By Phone
Europe, Middle East, Africa support@multitech.co.uk +(44) 118 959 7774 U.S., Canada, all others support@multitech.com 800-972-2439 or 763-717-5863
Multi-Tech Systems, Inc. AT Commands for the MT800SWM & MTS2WFA (S000425D) 2
Table of Contents
Contents
Chapter 1 – IP Commands...........................................................................................................................................6
#IPDEFGW – Default Gateway...............................................................................................................................6
#IPDHCP – DHCP Client........................................................................................................................................6
#IPADDR – Static IP Address.................................................................................................................................6
#IPNETMASK – Subnet Mask ................................................................................................................................6
#IPDNSSERV1 – DNS Server 1.............................................................................................................................6
#IPDNSSERV2 – DNS Server 2.............................................................................................................................7
#IPRELEASE – Release a DHCP Address Assigned by the Server.......................................................................7
#IPRENEW – Renew the DHCP Information from the Server................................................................................. 7
#IP? – IP Module ....................................................................................................................................................7
#IPDNSSERV – Configure the DNS Server............................................................................................................7
#IPQUERY – Give a Domain Name........................................................................................................................7
#IPRESOLV – To Observe Whether There Is a Connection with DNS or Not........................................................8
#IPDNSTABLE – Display DNS Table ..................................................................................................................... 8
Chapter 2 – PING Commands .....................................................................................................................................9
#PINGNUM – Number of PING Requests...............................................................................................................9
#PINGREMOTE – IP Address of Remote Device...................................................................................................9
#PINGSTART – PING.............................................................................................................................................9
#PING? – PING Module..........................................................................................................................................9
Chapter 3 – WLAN Commands .................................................................................................................................10
#WLANSECURITYMODE – Security Mode of WLAN Module..............................................................................10
#WEP64KEY – Keys for WEP64 Security Mode...................................................................................................10
#WEP128KEY – Keys for WEP128 Security Mode...............................................................................................10
#WEPKEYID – Set the Default TX Key Index.......................................................................................................10
#WLANNETWORKMODE – WLAN Network Mode ..............................................................................................10
#WLANCOUNTRYCODE – Country Code............................................................................................................11
#WLANSCANMODE – Scanning Mode................................................................................................................11
#WLANTXPOWER – Maximum Transmit Output Power for the WLAN Module...................................................11
#WLANSSID – SSID of WLAN.............................................................................................................................. 11
#WLANDATARATE – WLAN Transmission Data Rate.........................................................................................11
#WLANIBSSCHANNEL – Channel for Ad-Hoc Mode...........................................................................................12
#WLAN? – WLAN Module.....................................................................................................................................12
#WLANSETTXPOWER – Transmit Power............................................................................................................12
#WLANCONNECT – Connect with AP .................................................................................................................12
#WLANDISCONNECT – Disconnect with AP.......................................................................................................12
#WLANENABLE – Auto Connect Module with AP................................................................................................12
#WLANGETRSSI – Received Signal Strength......................................................................................................13
#WEP? – See the Value of WEP Keys.................................................................................................................13
#WLANPOWERSAVE – Enable Power Save at Boot...........................................................................................13
#WLANDOZE – Move Module into Power Save...................................................................................................13
#WLANACTIVATE – Move Module out Power Save ............................................................................................13
#WLANROAM – Enable/Disable Roaming............................................................................................................13
#WLANASSOCINFO – Display Association Information.......................................................................................14
Multi-Tech Systems, Inc. AT Commands for the MT800SWM & MTS2WFA (S000425D) 3
Table of Contents
Chapter 4 – SMTP Commands..................................................................................................................................15
#SMTPSENDERNAME – Give Sender Name ......................................................................................................15
#SMTPSENDERADDR – Give Sender Address...................................................................................................15
#SMTPCCRECi – Give the CC Address...............................................................................................................15
#SMTPDOMAIN – Domain Name of the Sender ..................................................................................................15
#SMTPRECiADD – Address of the Recipient.......................................................................................................16
#SMTPSUBJi – Subject of Email ..........................................................................................................................16
#SMTPBODYi – Mail Body ...................................................................................................................................16
#SMTPPORT – Port of the SMTP Server.............................................................................................................16
#SMTPPW – SMTP Account Password................................................................................................................17
#SMTPSERV – SMTP Server Address.................................................................................................................17
#SMTPUN – SMTP User Name............................................................................................................................17
#SMTPSENDMAIL – Send Mail through Interactive Mode ...................................................................................17
#SMTPSENDMAILi – Send Mail without Interactive Mode ...................................................................................18
#SMTPPUTMAIL – Send Mail to Recipient 1 and CC 1........................................................................................18
#SMTPPUTMAIL -B – Send Mail to Recipient 1 and CC 1 with Interactive Mode ................................................18
#SMTPVERBOSE – Verbose Mode .....................................................................................................................19
#SMTP? – SMTP Module .....................................................................................................................................19
Chapter 5 – TCP Commands.....................................................................................................................................20
#TCPDLEMODE – Coding the ETX Character.....................................................................................................20
#TCPPORT – Port of Remote Peer Used for TCP Session..................................................................................20
#TCPSERV – Address of the Remote TCP Server...............................................................................................20
#TCPTXDELAY – Time Delay Before Sending a TCP Frame ..............................................................................20
#TCPLISTEN – Open a Listening TCP Connection..............................................................................................21
#TCPSTOP – Close TCP Listening Mode ............................................................................................................21
#TCPOPEN – Open a TCP Connection................................................................................................................21
#TCP? – TCP Module Configuration.....................................................................................................................21
#TCPAUTOCONNECT – Auto Connect to TCP Server........................................................................................22
#UDPPORT – UDP Port Number..........................................................................................................................22
#UDPSERV – UDP Server Address .....................................................................................................................22
#UDPTXDELAY – Delay before Sending UDP Datagram ....................................................................................22
#UDPSTART – Initiate the UDP Session in Listen Mode......................................................................................22
#UDPSTOP – Close the UDP Listening Mode......................................................................................................23
#UDPOPEN – Initiate UDP Session in Active Mode.............................................................................................23
#UDP? – UDP Module..........................................................................................................................................23
#CONTERMINATE – Termination of TCP/UDP Connection.................................................................................23
#TCPLISTENLIST – List the Listening TCP Ports ................................................................................................23
#TCPAUTOLISTEN – Enable/Disable Auto Listen ...............................................................................................24
Chapter 6 – POP3 Commands................................................................................................................................... 25
#POP3HEADERMODE – POP3 Header ..............................................................................................................25
#POP3PORT – Port of the POP3 Server..............................................................................................................25
#POP3PW – Password of the POP3 Account.......................................................................................................25
#POP3SERV – Address of the POP3 Server........................................................................................................25
#POP3UN – User Name of the POP3 Account.....................................................................................................26
#POP3RECVMAILLIST – List of Emails in Inbox ..................................................................................................26
#POP3RECVMAILHEAD – Header Information of the Mail..................................................................................26
Multi-Tech Systems, Inc. AT Commands for the MT800SWM & MTS2WFA (S000425D) 4
Table of Contents
#POP3RECVMAIL – Receive Mail........................................................................................................................26
#POP3DELMAIL – Delete Mail from Inbox ...........................................................................................................26
#POP3? – POP3 Module...................................................................................................................................... 27
#POP3UNIQUEIDLIST – Receive Unique Email ID of the Message....................................................................27
#POP3GETMAIL or #POP3RECVMAIL – Receive All Emails..............................................................................27
#POP3RECVTOP – Receive Top Lines of an Email.............................................................................................27
#POP3VERBOSE – Verbose Mode......................................................................................................................27
Chapter 7 – FTP Commands .....................................................................................................................................28
#FTPPORT – Port of the FTP Server ...................................................................................................................28
#FTPMODE – FTP Mode......................................................................................................................................28
#FTPTYPE – Type of FTP Session ......................................................................................................................28
#FTPSERV – FTP Server Address.......................................................................................................................28
#FTPUN – User Name of the FTP Server.............................................................................................................29
#FTPPW – Password of the FTP Server ..............................................................................................................29
#FTPGETFILENAME – Name of the Downloadable File from the FTP Server.....................................................29
#FTPPUTFILENAME – Name of the Uploadable File to the FTP Server..............................................................29
#FTPDIR – Path of Files to Upload and Download...............................................................................................29
#FTPFILESIZE – Size of the File to Upload to the FTP Server.............................................................................30
#FTPGET – Download Files from the FTP Server................................................................................................30
#FTPPUT – Upload Files to the FTP Server.........................................................................................................30
#FTPCSTART – FTP Interactive Mode.................................................................................................................31
#FTPVERBOSE – Verbose Mode.........................................................................................................................31
#FTP? – FTP Module............................................................................................................................................31
Chapter 8 – UART Commands..................................................................................................................................32
#UARTBAUDRATE – Set UART Baud Rate .........................................................................................................32
#UARTDATABITS – Set Number of Data Bits......................................................................................................32
#UARTPARITY – Set Parity Type.........................................................................................................................32
#UARTSTOPBITS – Set Number of Stop Bits......................................................................................................32
#UARTFLOWCONTROL – Set Flow Control Type...............................................................................................32
#UART? – UART Configurations ..........................................................................................................................33
Chapter 9 – Miscellaneous Commands....................................................................................................................34
#VVERSION – Software Version..........................................................................................................................34
#VSTATE – Display the Current Status of the Device ..........................................................................................34
#VALL – Display All AT Parameters .....................................................................................................................34
&F – Restore Default Factory Settings..................................................................................................................34
A/ – Previous Command.......................................................................................................................................34
#RESET – Restart the Module..............................................................................................................................35
E – Turn Echo ON/OFF ........................................................................................................................................35
S2 – Escape Sequence ........................................................................................................................................ 35
#WATCHDOG – Enable/Disable Watchdog..........................................................................................................35
#WATCHDOGTIMER – Watchdog Timer .............................................................................................................35
#BOOTMSG – Enable/Disable Boot Message......................................................................................................35
Index............................................................................................................................................................................36
Multi-Tech Systems, Inc. AT Commands for the MT800SWM & MTS2WFA (S000425D) 5
Chapter 1 – IP Commands
Chapter 1 – IP Commands
#IPDEFGW – Default Gateway
Description: Sets the default gateway address. The view command shows whether the address is
statically configured or obtained from the DHCP server.
Syntax: Set Value: AT#IPDEFGW=<value>
View Value: AT#IPDEFGW?
Values: IP address in dotted decimal notation (xxx.xxx.xxx.xxx) Default Value: 192.168.1.1
#IPDHCP – DHCP Client
Description: Enables or disables DHCP client. If DHCP client is enabled, the module will take the IP
address from the DHCP server. If DHCP client is disabled, the module will take the static
IP address configured for the module. The view command shows whether the addres s is
statically configured or obtained from the DHCP server.
Syntax: Set Value: AT#IPDHCP=<value>
View Value: AT#IPDHCP?
Values: 1: enable 0: disable
Default Value: 0: disable
#IPADDR – Static IP Address
Description: Sets the local static IP address. The view command shows whether the address is
statically configured or obtained from the DHCP server.
Syntax: Set Value: AT#IPADDR=<value>
View Value: AT#IPADDR?
Values: IP address in dotted decimal notation (xxx.xxx.xxx.xxx)
255 is Maximum Value in an Octate
Default Value: 192.168.1.100
#IPNETMASK – Subnet Mask
Description: Sets the subnet mask. Syntax: Set Value: AT#IPNETMASK=<value>
View Value: AT#IPNETMASK?
Values: IP address in dotted decimal notation (xxx.xxx.xxx.xxx)
255 is maximum value in an Octate
Default Value: 255.255.255.0
#IPDNSSERV1 – DNS Server 1
Description: In order to translate the server names from literal format into IP addresses, the TCP/IP
stack software implements the Domain Name System (DNS) protocol. The DNS Server
IP address must be specified for use by the TCP/IP stack software.
Syntax: Set Value: AT#IPDNSSERV1=<value>
View Value: AT#IPDNSSERV1?
Values: 32-bit number in dotted-decimal notation (i.e., xxx.xxx.xxx.xxx) Default Value: 202.56.215.6
Multi-Tech Systems, Inc. AT Commands for the MT800SWM & MTS2WFA (S000425D) 6
Chapter 1 – IP Commands
#IPDNSSERV2 – DNS Server 2
Description: In order to translate the server names from literal format into IP addresses, the TCP/IP
stack software implements the Domain Name System (DNS) protocol. The DNS Server
IP address must be specified for use by the TCP/IP stack software. This secondary DNS
server is used in the case where the primary DNS server does not respond to a request.
Syntax: Set Value: AT#IPDNSSERV2=<value>
View Value: AT#IPDNSSERV2?
Values: 32-bit number in dotted-decimal notation (i.e., xxx.xxx.xxx.xxx) Default Value: 202.56.230.6
#IPRELEASE – Release a DHCP Address Assigned by the
Server
Description: In order to gracefully release a DHCP address assigned by the server, the module should
issue a command of IPRELEASE.
Syntax: Set Value: AT#IPRELEASE
#IPRENEW – Renew the DHCP Information from the Server
Description: The DHCP client can renew the DHCP information from the server. On completion of
lease time, the DHCP client will automatically renew the DHCP information. Before that, if
the client wants to renew the information, it can use this command.
Syntax: Set: AT#IPRENEW
#IP? – IP Module
Description: Displays all IP module values/parameters. Syntax: View Values: AT#IP? Values: IP Address
Subnet mask
Default Gateway
DHCP (Enable/Disable)
Primary DNS IP address
Secondary DNS IP address
Default Value: None
#IPDNSSERV – Configure the DNS Server
Description: Enables DNS. By default, DNS is enabled. Use this command before using DNS
services.
Syntax: Set: AT#IPDNSSERV
#IPQUERY – Give a Domain Name
Description: Sends a query to the DNS server to resolve the name. Syntax: Set Value: AT#IPQUERY=<Host Name> Values: Host name in alpha-numeric string format. Default Value: None
Multi-Tech Systems, Inc. AT Commands for the MT800SWM & MTS2WFA (S000425D) 7
Chapter 1 – IP Commands
#IPRESOLV – To Observe Whether There Is a Connection
with DNS or Not
Description: If the DNS client is successful in resolving the name, this command shows the IP address
of the resolved host name. If the DNS client fails to resolve, it shows error message.
Syntax: AT#IPRESOLV=<Host Name> Values: Host name in alpha-numeric string format. Default Value: None
#IPDNSTABLE – Display DNS Table
Description: This command displays the DNS table. Syntax: AT#IPDNSTABLE Values: None
Multi-Tech Systems, Inc. AT Commands for the MT800SWM & MTS2WFA (S000425D) 8
Chapter 2 – PING Commands
Chapter 2 – PING Commands
#PINGNUM – Number of PING Requests
Description: This command sets the number of PING echo requests to issue to PINGREMOTE. Syntax: Set Value: AT#PINGNUM=<Value>
View Value: AT#PINGNUM?
Values: From 1 to 255 inclusive Default Value: 20
#PINGREMOTE – IP Address of Remote Device
Description: This command sets the IP address of remote device to PING. Syntax: Set Value: AT#PINGREMOTE=<IP Address>
View Value: AT#PINGREMOTE?
Values: 32-bit number in dotted-decimal notation (i.e., xxx.xxx.xxx.xxx) Default Value: 192.168.1.1
#PINGSTART – PING
Description: Directs the module to start PING requests to the configured PING remote address. The
number of requests to be sent is obtained from the PINGNUM command.
Syntax: Set Value: AT#PINGSTART Values: PINGNUM
PINGREMOTE
Default Value: None
#PING? – PING Module
Description: Displays PING module related information. Syntax: AT#PING? Values: PINGNUM
PINGREMOTE
Default Value: None
Multi-Tech Systems, Inc. AT Commands for the MT800SWM & MTS2WFA (S000425D) 9
Chapter 3 – WLAN Commands
Chapter 3 – WLAN Commands
#WLANSECURITYMODE – Security Mode of WLAN Module
Description: Sets the Wireless LAN security mode. Syntax: Set Value: AT#WLANSECURITYMODE =<value>
View Value: AT#WLANSECURITYMODE?
Values: 0: Security Disable
1: WEP64 Security 2: WEP128 Security
Default Value: 0: Security Disable
#WEP64KEY – Keys for WEP64 Security Mode
Description: Sets keys for WEP64 Security mode. Syntax: Set Value: AT#WEP64KEYn =<value>, where "n" can be 1 to 4
View Value: AT#NWEP64KEYn?
Values: ASCII text string of 10 hexadecimal characters
e.g., 1234567890
Default Value: 6162636465
#WEP128KEY – Keys for WEP128 Security Mode
Description: Sets keys for WEP64 Security mode. Syntax: Set Value: AT#WEP128KEYn =<value>, where "n" can be 1 to 4
View Value: AT#WEP128KEYn?
Values: ASCII text string of 26 hexadecimal characters
e.g., 12345678901234567890123456
Default Value: "12345678901234567890123456"
#WEPKEYID – Set the Default TX Key Index
Description: Sets the default Transmission Key used for data encryption in WEP. Syntax: Set Value: AT#WEP128KEY=<value>
Values: Any value from 1 to 4 Default Value: 1
#WLANNETWORKMODE – WLAN Network Mode
Description: Sets Wireless LAN Network mode. Syntax: Set Value: AT#WLANNETWORKMODE =<value>
View Value: AT#WLANNETWORKMODE?
Values: 0: Infrastructure mode
1: Ad – Hoc mode
Default Value: 0: Infrastructure mode
Multi-Tech Systems, Inc. AT Commands for the MT800SWM & MTS2WFA (S000425D) 10
Chapter 3 – WLAN Commands
#WLANCOUNTRYCODE – Country Code
Description: Sets country code. Different countries have different restrictions on Wireless LAN
parameters like operating channels and transmit power. To make it operable, the country
code can be set by using this AT command.
Syntax: Set Value: AT#WLANCOUNTRYCODE =<value>
View Value: AT#WLANCOUNTRYCODE?
Values: DOMAIN_FCC (For US)
DOMAIN_IC (For Canada)
DOMAIN_ETSI (For Europe)
DOMAIN_SPAIN (For Spain)
DOMAIN_FRANCE (For France)
DOMAIN_MKK (For Japan)
Default Value: DOMAIN_FCC (For US)
#WLANSCANMODE – Scanning Mode
Description: Sets scanning mode. The module can work in both active scanning and passive scanning
modes. In active scanning, the module actively sends a probe request to associa t e with
the AP, and in passive scanning, the module waits for a beacon from the AP and then it
associates.
Syntax: Set Value: AT#WLANSCANMODE =<value>
View Value: AT#WLANSCANMODE?
Values: 0: Active scanning
1: Passive scanning
Default Value: 0: Active scanning
#WLANTXPOWER – Maximum Transmit Output Power for
the WLAN Module
Description: Sets the maximum transmit output power for WLAN module while communicating. Syntax: Set Value: AT# WLANTXPOWER =<value>
View Value: AT# WLANTXPOWER?
Values: Only integer values. Range is 0 dBm to 16 dBm Default Value: 15
#WLANSSID – SSID of WLAN
Description: Sets the WLAN network SSID. Syntax: Set Value: AT#WLANSSID =<value>
View Value: AT#WLANSSID?
Values: Alphanumeric ASCII Text String of up to 32 characters. It will take a blank space also. Default Value: mt800swm
#WLANDATARATE – WLAN Transmission Data Rate
Description: Sets the WLAN transmission data rate. Syntax: Set Value: AT#WLANDATARATE=<value>
View Value: AT#WLANDATARATE?
Values: 1, 2, 5.5, 11 (in Mbps) Default Value: 11 (in Mbps)
Multi-Tech Systems, Inc. AT Commands for the MT800SWM & MTS2WFA (S000425D) 11
Chapter 3 – WLAN Commands
#WLANIBSSCHANNEL – Channel for Ad-Hoc Mode
Description: Sets channel for Ad-Hoc mode. Syntax: Set Value: AT#WLANIBSSCHANNEL=<value>
View Value: AT#WLANIBSSCHANNEL?
Values: 1 – 14 Default Value: 9
#WLAN? – WLAN Module
Description: Displays WLAN module-related information. Syntax: View Values: AT#WLAN? Values: SECURITYMODE SSID
NETWORKMODE IBSSCHANNEL
COUNTRYCODE DATARATE SCANMODE WLANENABLE TXPOWER(dBm) MACADDR
Default Value: None
#WLANSETTXPOWER – Transmit Power
Description: Sets transmit power of the WLAN radio. Syntax: Set Value: AT#WLANSETTXPOWER=<value in dBm> Values: Any value from 0 to 16 dBm Default Value: 15 dBm
#WLANCONNECT – Connect with AP
Description: Connects the module with AP. Syntax: Set Value: AT#WLANCONNECT Values: None
#WLANDISCONNECT – Disconnect with AP
Description: Disconnects the module with AP. Syntax: Set Value: AT#WLANDISCONNECT Values: None
#WLANENABLE – Auto Connect Module with AP
Description: On power up, this parameter determines whether to connect to the AP automatically or
manually. Connection to the AP can be established by AT#WLANCONNECT command.
A value of 0 means the module will not connect to AP automatically. A value of 1 means
that on power up the module tries to connect to the AP for configured settings.
Syntax: Set Value: AT#WLANENABLE=<value> View Value: AT#WLANENABLE? Values: 0: Manual connection to the AP 1: Automatic connection to the AP Default Value: 0
Multi-Tech Systems, Inc. AT Commands for the MT800SWM & MTS2WFA (S000425D) 12
Loading...
+ 26 hidden pages