CAI JINYONG
2018-3-30
CHONGHAN CH-D3 WIRELESS DTU USER MANUAL
页
12
at+i!snmd<cr>
// switch to transparent data
transmit mode
I/OK
4.
Configure DTU
4.1.
TCP Transmit
4.1.1.
TCP Client Always Online
at+ihsr0=ip:port<cr>
// set the host serve IP and
port
at+ipars<cr>
// parameter save
at+i!snmd<cr>
// switch to Serial Net mode
4.1.2.
TCP Client Trigger online
at+ihsr0=ip:port<cr>
// set the Server IP and port
at+iiato=n<cr>
// n=Integer, the DTU will
offline when the connect no
data transport in (n) seconds
at+itup=1<cr>
// set it to trigger up mode,
at+ipars<cr>
// parameters save
at+isnmd<cr>
// switch to Serial Net mode
4.1.3.
TCP Client Step by Step
at+istcp:ip,port<cr>
// establish a TCP connection to
the IP and port
I/(000)
// 000 is the Right connection
handle
I/ERROR(075)
// not register cellular
network
,
please check Card
and Signal quality
I/ERROR(207)
// register cellular network
,
But can 't connecting to TCP
server program
,
you should to
check firewall, IP Port and
port listen if collide with
them
at+issnd%:000,n:*******
// send a stream(******) to
connect 000, length is (n),
at+isrcv:000<cr>
// receive data from connection
000
at+iscls:000<cr>
// close the connection 000
4.1.4.
TCP Server
at+ihsrv=””<cr>
// clear the parameter
at+ilprt=port<cr>
// setting the listen port
at+istyp=0<cr>
// TCP protocol
at+ipars<cr>
// parameters save
at+i!snmd<cr>
// switch to Serial NET mode