
USR-G786-G User Manual
Technical Support:
Jinan USR IOT Technology Limited
www.pusr.com
56
AT+APN{CR} or AT+APN?{CR}
{CR}{LF}+APN:code,user_name,password,auth{CR}{LF}
Setting
:
AT+APN=code,user_name,password,auth{CR}
{CR}{LF}OK{CR}{LF}
Parameters:
code
:
APN, default is AUTO, with a maximum length of 50.
user_name
:
User name, default is empty, maximum length 64.
password
:
Password, default empty, maximum length 127.
auth
:
Authentication mode
,
0
:
None
,
1
:
PAP
,
2
:
CHAP
,
3
:
PAP+CHAP
,
default is 0.
E.g
:
AT+APN=4gnet,admin,admin,1.
7.2.29.
AT+SOCKA
Function
:
Query/Setting the parameters of socket A.
Format
:
Query current parameter:
AT+SOCKA{CR} or AT+SOCKA?{CR}
{CR}{LF}+SOCKA:protocol,address,port{CR}{LF}
Setting
:
AT+SOCKA=protocol,address,port{CR}
{CR}{LF}OK{CR}{LF}
Parameters:
protocol
:
Connection Type
,
including
:
TCPS
:
TCP Server
TCPC
:
TCP Client
UDPC
:
UDP Client
Default is TCPC.
address
:
Server address. This address can be a domain name or IP. Default is test.usr.cn. It is invalid under
TCPS. Can set any domain name or IP. Cannot be empty.
port
:
Server port, range 1~65535, default 2317, local port in TCPS mode
E.g
:
AT+SOCKA=TCPC,test.usr.cn,8899.
7.2.30.
AT+SOCKB
Function
:
Query/Setting the parameters of socket B .
Function
:
Query/Setting the parameters of socket B.
Format
:
Query current parameter:
AT+SOCKB{CR} or AT+SOCKB?{CR}
{CR}{LF}+SOCKB:protocol,address,port{CR}{LF}
Setting
:
AT+SOCKB=protocol,address,port{CR}
{CR}{LF}OK{CR}{LF}
Parameters
:
protocol
:
protocol, including: