User's Manual

Confidential Document
Page 15 of 19
6
6
.
.
A
A
T
T
$
$
I
I
O
O
C
C
G
G
C
C
o
o
m
m
m
m
a
a
n
n
d
d
R
R
e
e
f
f
e
e
r
r
e
e
n
n
c
c
e
e
6
6
.
.
1
1
.
.
C
C
o
o
n
n
f
f
i
i
g
g
u
u
r
r
e
e
o
o
r
r
Q
Q
u
u
e
e
r
r
y
y
I
I
/
/
O
O
P
P
i
i
n
n
C
C
h
h
a
a
r
r
a
a
c
c
t
t
e
e
r
r
i
i
s
s
t
t
i
i
c
c
s
s
Command Description
This command is used to set or query the I/O port characteristics of the AL7. It is recommended to disconnect all I/O
connections prior to changing the I/O characteristic in order to avoid damage to the I/O port.
Syntax
Write Command
AT$IOCG=<IO1>,<IO2>,<IO3>
Response
$OK
Read Command
AT$IOCG=?
Response
$IOCG=<IO1>,<IO2>,<IO3>
Parameter Description
Parameters
Description
Data Type
Default
<IO1>
1: Input1
4: 1-Wire Protocol
U8
1
<IO2>
1: Input 2
2: Output 1
3: Analog Input
U8
2
<IO3>
1: Input 3
2: Output 2
U8
2
Example
(1) Change all ports to inputs:
AT$IOCG=1,1,1
(2) Change Input1 to 1-Wire Protocol
AT$IOCG=4,2,2
(3) Change IO1 and IO3 to inputs, and IO2 to analog input:
AT$IOCG=1,3,1
Remark
MEMO SERIAL SMS GPRS