User manual

Confidential, the whole present document is the sole property of Maestro Wireless Solution Ltd.
18
4.2.2. AT+AUTOUDP command
This command controls the Maestro 100 2G to start UDPacket connection automatically.
Before using AT+AUTOUDP TCP and GPRS settings MUST be setup properly using AT+IPUDP and AT+IPGPRS
command respectively.
Command Syntax
AT+AUTOUDP=<mode>
Response syntax:
+AUTOUDP: <mode>
Command
Possible responses:
AT+AUTOUDP=0
OK
Note : disable AutoUDP
AT+AUTOUDP=1
OK
Note: Enable AutoUDP
AT+ AUTOUDP?
+AUTOUDP : 1
OK
Note: display current status
AT+AUTOUDP=?
+AUTOUDP : (0-3)
Note : possible argument
Defined Values:
<mode>
0 disable auto UDP (for main and USB UART)
1 enable auto UDP for main UART, disable autoUDP for USB UART
Note :
- Before enabling Auto UDP, it MUST be properly set the GPRS settings by AT+IPGPRS command and UDP settings
by AT+IPUDP command
- ONLY GPRS PDP context # 1 will be used. So please setup +IPGPRS settings with <cid>=1
- Once AutoUDP is enabled, it will start the UDP socket connection automatically after 20 seconds.
- Once the UDP connection is established successfully, the serial port will go to data mode, all data entered to the
serial port will be sent to remote UDP peer. No more AT commands will be accepted then.
- In UDP connected data mode, the DSR and DCD signals of the serial port will go to high.
- If the UDP connection is broken the modem will try to reconnect automatically. During re-connection period serial port
will go back to command mode, and DSR/DCD signal back to low.
- The setting will be saved, and after power off, the AUTOUDP will be restarted with the 20 seconds delay after power
up.
- To stop auto UDP connection, you need to enter the command AT+AUTOUDP=0 by 1: within 20 seconds after
power up, or 2: during reconnection (serial port back to command mode) or 3: by SMS (see Chapter 11, SMS AT
command).
- Auto UDP connection is exclusive to other TCP/UDP feature. See Chapter 22Q&A)
- Due to the nature of UDP socket connection, AT+AUTOUDP=0 may not be able to disconnection. in this case you
may send command AT+IPCONNECT=1,0 to disconnect GPRS connection.