Do-it DT-06 User manual

T
D
T
TL-
W
Man
u
D
OIT.
Us
e
W
iFi
u
al
AM
®
Doctors o
f
e
r M
a
User
M
V1.0
f
Intelligence
a
nua
l
M
anu
a
M
& Technolo
g
for
T
Tra
n
D
a
l for
T
M
ar., 31
2
g
y Co., Ltd (
w
T
TL-
n
smi
s
octors of
T
TL-W
i
2
017
w
ww.doit.am
WiF
i
s
sion
Intelligen
c
i
Fi Mo
d
No.:
D
)
Copyright
@
i
Tra
n
c
e & Techn
o
dule
D
D
BH010C
N
@
2014-2017
n
spa
r
o
logy Co.
L
D
T-06
N
r
ent
L
TD

DOIT.AM®
Doctors of Intelligence & Technology Co., LTD (www.doit.am) Copyright@2014-2017
Achieve Update
Date Version Update
Mar, 31 2017 V1.0 First

DOIT.AM®
Doctors of Intelligence & Technology Co., LTD (www.doit.am) Copyright@2014-2017
Catalog
User Manual for TTL-WiFi Transparent Transmission.........................................................................................1
1.Introduction...................................................................................................................................................................4
2. Interface definition............................................................................................................................................................5
3. Usage of Web configuration.............................................................................................................................................7
3.1 STATUS sub-configuration..................................................................................................................................9
3.2 MODULE configuration page............................................................................................................................10
Serial (serial configuration) ................................................................................................................................10
WiFi (WiFi configuration)..................................................................................................................................12
Networks configuration ......................................................................................................................................15
3.3 MORE configure...................................................................................................................................................16
Restart .................................................................................................................................................................16
Restore the factory setting ..................................................................................................................................16
Version................................................................................................................................................................17
4.Built-in AT command set ...........................................................................................................................................17
5.A classical configuration example ..............................................................................................................................20
5.1 Transparent transmission example in local network .............................................................................................20
5.2 Cloud transmission based on Doit Cloud ..............................................................................................................22
6.Minimum system for the module................................................................................................................................27
7.Shape and Size............................................................................................................................................................27
8.Recommended Installation .........................................................................................................................................28
Appendix.1 Parameters of TTL-WiFi Module ...................................................................................................................31
Appendix. 2.........................................................................................................................................................................31

DOIT.AM®
User Manual for TTL-WiFi DT-06
Shenzhen Doctors of Intelligence & Technology Co., LTD (www.doit.am) Copyright@2014-2017 Page 4
1. Introduction
TTL-WiFi is designed and developed based on ESP-M2 WiFi module from our company Shenzhen
Doctors of Intelligence & Technology Co., Ltd., which is extracted the TTL, EN, STATE and other pins.
Importantly, the TTL-WiFi is already built-in the serial transparent transmission firmware programmed
by our company (SZdoit), which can realize the transparent transmit the data to the cloud on the real-time,
together with low-power control, status indictor. This board can replace the old wiring serial WiFi device
to realize the data collection and control. It has the following features.
Fully compatible with the original electrical interface and physical interface for the serial transparent
Bluetooth;
Built-in the industrial transparent transmission firmware V3.0 with stability and reliability by using
the Web Configuration;
Built-in the high performance WiFi module ESP-M2 with size: 34mm*17mm*4mm;
Working voltage: 4.5V~6.0V, TTL working voltage: 3.3V (compatible with 5.0V);
Provided pins: STATE, TXD, RXD,EN;
Average current: 80mA; when data sent, it is 170mA; but it is 20μA at deep sleep mode;
Support serial AT command;
Support re-programmable, OTA firmware update;
Seamless transparent transmission between serial and WiFi;
Built-in HTTP Web Server, support configure parameters by web page;
Support re-connect automatically at WiFi STA mode and TCP Client;
Support set baud rate, data bit, parity check, stop bits, and/or subcontracting time;
Support baud rate (bps): 300/600/1200/2400/4800/9600/19200/38400/57600/74800/115200/
230400/460800/921600/1843200/3686400
Support AP enable, self-defined SSID/password, self-defined IP and network duration;
Automatically scan the peripheral WiFi hotspot, support STA enable, DHCP, self-defined IP;
Support TCP Server, TCP Client, UDP Server, UDP Client and UDP local broadcast;
Support DNS resolution automatically for the remote sever address;
Support checking the status by AT command;
Provide IO4 to show the WiFi status;
Working temperature: -40℃-125℃;
Applications: smart home, wireless data connection and transparent transmission, smart car control,
wireless serial printer, LED light industrial control etc.

DOIT.AM®
User Manual for TTL-WiFi DT-06
Shenzhen Doctors of Intelligence & Technology Co., LTD (www.doit.am) Copyright@2014-2017 Page 5
The Structure of TTL-WiFi can be shown as follows.
Fig. 1.1 Structure for TTL-WiFi module
Give up the complex AT command, Simply configure parameters by Web page to
transparently transmit data.
TTL-WiFi transparent transmission firmware is developed by Shenzhen Doctors of Intelligence &
Technology Co., Ltd based on the ESP-M2 wireless WiFi module, which can realize the real-time
transparent transmission between serial and WiFi. After our deep research, the performance of firmware
can be satisfied with industrial requirements on the stability and functionality. In this time, we have
already greatly optimized the receive and transmit performance. Especially, we design the reconnection
mechanisms at STA and TCP Client modes to guarantee the stable connection and transmission for the
data link.
2. Interface definition
The interface definition of TTL-WiFi can be shown in the following.
ESP-M2
Antenna onboard
LED
STATE
FLASHRST
RXD
TXD
GND
VCC
EN

DOIT.AM®
User Manual for TTL-WiFi DT-06
Shenzhen Doctors of Intelligence & Technology Co., LTD (www.doit.am) Copyright@2014-2017 Page 6
LED
SW2 SW1
1 2 3 4 5 6
STATE
RXD
81
0
91
1
1
2
1
3
1
4
ESP‐M2
1
5
16
1 2 43 5 6 7
TXD
GND
VCC
EN
TTL‐WiFi
Fig. 2.1 TTL-WiFi Interface definition
Functions of button and LED
Table 2.1 Functions of button and LED
Num. Type Function illustration
1 LED
LED connected to VCC3.3
b
y a pull up resitance, and other is
connected to GPIO4
2 SW1
Connected to GPIO0 to coordinate with SW2
b
utton to download
the firmware.
3 SW2 Connect to RST, to coordinate with SW1 to download the firmware
Importantly, when downloaded the firmware, please firstly press SW1 button, and then press SW2
button, and at last loose the button to finish the download. (Refer to the ESP-M2 module)
Table 2.2 LED definition
Num LED
indicator Function
1 Always
lighting
Successfully connect to the wireless router when WiFi module is a
t
STA or STA+AP mode
2 Lighting
slowly
Level for IO switches once each 1s; if works at AP mode, it shows tha
t
the WiFi module unsuccessfully connected to the wireless WiFi router;

DOIT.AM®
User Manual for TTL-WiFi DT-06
Shenzhen Doctors of Intelligence & Technology Co., LTD (www.doit.am) Copyright@2014-2017 Page 7
If at STA mode, the module is trying to connect the wireless router;
If at AP+STA mode, the module is trying to connect to the wireless
router.
3 Fast lighting
When press SW1/Flash
b
utton, if the serial received the data, or the
network received the data from the serial, LED would light fast.
4 Extinguish
WiFi module doesn’t work since the power isn’t normal or isn’t the
transparent transmission firmware.
Definition of pins is listed as follows.
Table 2.3 Definition of pins
Num Pin Type Function
1 STATE
I/O
GPIO4;
built-in transparent transmission firmware, to show the net
connection status: connect to wireless router at STA mode. STATE
is low level.
2 RXD
I/O
GPIO3;
Module is already serially connected to a 22Ωcurrent-limiting resistance in
the inner, thus can connect 5.0V voltage;
Can used as the UART Rx when built in the flash.
3 TXD
I/O
GPIO1;
Module is already serially connected to a 22
Ω
current-limiting resistance
in the inner, thus can connect 5.0V voltage;
Can used as the UART Tx when built in the flash.
4 GND
P GND
5 VCC P Module power:
4.5V~6.0V, recommended voltage is 5.0V
6 EN
I Enable, high level: enable to let chip work normally; low level, chip is
closed.
3. Usage of Web configuration
This module is already built-in the HTTP Server. Thus, it can configure the parameters by the browsers
on pc or mobile phone or other smart devices, without of need of any other tools or Apps. In the factory
settings, the module works at AP mode, and the signal is “Doit_WiFi_xxxxxx” , where, “xxxxxx” is the
last 6 number of MAC address of this module. Then, one can connect this WiFi hotspot by PCs or
phones , and other smart deveices (supportable Android and Ios, Windows) with no password.

D
W
th
e
D
OIT.
Shenzhen
D
After su
c
W
hen open t
h
e
following
AM
®
D
octors of I
n
c
cessful co
n
h
e configur
a
.
n
telligence &
n
nection, i
n
a
tion, there
Technology
Fig. 3. 2
D
n
put the def
a
Fig. 3. 3 I
n
is three su
b
User Manu
a
Co., LTD (
w
D
efault Wi
F
a
ult IP add
r
n
formation
b
-pages, ST
a
l for TTL-Wi
F
w
ww.doit.am)
F
i hotspot
r
ess: “192.1
for hotspot
A
TUS, M
O
F
i DT-06
Copyright@
2
68.4.1”.
O
DULE, an
d
@
2014-2017
d
MORE, a
Pa
g
s shown in
g
e 8

D
3.
1
D
OIT.
Shenzhen
D
1
STATUS
AM
®
D
octors of I
n
sub-confi
g
n
telligence &
g
uration
Fig.
3
Technology
Fig.
3
3
. 5 Succes
s
User Manu
a
Co., LTD (
w
3
. 4 Config
u
s
ful connec
t
a
l for TTL-Wi
F
w
ww.doit.am)
u
ratio
n
t
ion at ST
A
F
i DT-06
Copyright@
2
mode
@
2014-2017
Pa
g
g
e 9

D
O
c
o
“
W
fa
i
(i.
3.
2
I
n
c
a
D
OIT.
Shenzhen
D
O
n the STA
T
o
nnection st
a
W
i-Fi Statu
s
i
le
d
”, ”con
n
e., RSSI va
2
MODUL
E
“MOD
U
Seria
l
n
this page,
n set the p
a
Set
s
rate
:
184
3
Dat
a
Pari
t
Sto
p
AM
®
D
octors of Int
e
T
US page,
a
tus, IP ad
d
s
”: its value
n
ecte
d
(rssi
:
lue, it is a
n
E
confi
g
ur
U
LE” page
h
l
(serial co
n
one can se
t
a
ckage sube
x
s
erial baud
:
300/600/1
2
3
200/3686
4
a
bit: 5/6/7/
ty checkin
g
p
bits: 1/1.5
/
e
lligence &
T
it displays
m
d
ress at AP
m
can be “id
l
:
xxx)”. If
S
n
egative). “
S
ation pa
g
e
h
as 3 sub-
m
n
fi
g
uratio
n
t
the serial
b
x
tract time.
2
00/2400/4
8
4
00
8
g
: NONE/O
D
/
2
T
echnology
C
m
uch infor
m
m
ode, and
t
l
e”, “conne
c
S
TA is con
n
S
ystem Ru
n
m
enus, whic
h
Fig. 3.
6
n
)
b
aud rate,
d
8
00/9600/1
9
D
D/EVEN
User Manu
a
C
o., LTD (w
w
m
ation, e.g.
t
he run tim
e
c
ting”, “wr
o
n
ected suc
c
n
ning Time
”
h
can provi
d
6
MODUL
E
d
ata bits, pa
r
9
200/3840
0
a
l for TTL-Wi
F
w
w.doit.am)
C
, MAC ad
d
e
, where
o
ng passw
o
essfully, it
w
”
: display t
h
d
e many co
E
meanu
r
ity checki
n
0
/57600/74
8
F
i DT-06
C
opyright@2
d
ress, IP ad
d
r
d
”, “no ap
w
ould disp
l
h
e run time
n
figuration
s
n
g, stopbits
,
8
00/115200
2
014-2017
d
ress at ST
A
foun
d
”, “c
o
l
ay the sig
n
for the dev
s.
,
etc. At th
e
0
/230400/4
6
Pag
e
A
mode, W
i
o
nnect
n
al strength
i
ce.
same, one
6
0800/9216
0
e
10
i
Fi
0
0
/

D
A
re
m
E
D
OIT.
Shenzhen
D
A
fter settin
g
m
ind you a
E
specially,
i
AM
®
D
octors of Int
e
g
, can use “
S
failure. Or
,
i
f the settin
g
e
lligence &
T
S
ave ” to s
a
,
it would s
u
g
is success
T
echnology
C
Fig. 3. 6 S
e
a
ve the setti
n
u
ccessful.
ful, then th
e
Fig. 3.7
F
User Manu
a
C
o., LTD (w
w
e
rial config
u
n
g. If there
e
paramete
r
F
ailure pag
e
a
l for TTL-Wi
F
w
w.doit.am)
C
u
ration pag
e
are some e
r
r
s are enabl
e
e
after save
F
i DT-06
C
opyright@2
e
r
rors for th
e
e
after rebo
o
2
014-2017
e
paramete
r
ot the WiF
i
Pag
e
r
s, it would
i
module.
e
11

D
D
OIT.
Shenzhen
D
In the lat
e
WiFi
WiFi m
o
Note: tr
WiFi si
g
n
a
AP setti
n
C
S
e
n
S
m
N
s
1
AM
®
D
octors of Int
e
e
r, the we
(WiFi con
f
o
dule can b
e
ansmit a s
i
a
l.
n
g:
C
an open o
r
S
elf-define
e
ncrypted;
o
n
eeds 8~6
3
S
elf-define
m
ode.
N
ote: at A
P
s
ame netw
o
1
92.168.4.
1
e
lligence &
T
b sets are
f
i
g
uration)
e
set at AP,
ig
nal, and
o
r
close AP
m
the name a
n
o
r would u
3
character
s
IP address,
P
mode, th
e
o
rk durati
o
1
, then the
I
T
echnology
C
Fig. 3.8 S
u
similar, t
h
STA, and
A
o
ther devi
c
m
ode;
n
d passwor
se web enc
r
s
.
sub netwo
r
e
IP, sub-n
o
n from th
o
I
P at STA
c
User Manu
a
C
o., LTD (w
w
u
ccess pag
e
h
is manu
a
A
P+STA
m
c
es can con
n
r
d for the A
P
r
ypted to c
o
r
k mask, a
n
etwork m
a
o
se at ST
A
c
annot be
1
a
l for TTL-Wi
F
w
w.doit.am)
C
e
after save
a
l would
b
m
odes.
n
ect it; ST
A
P
. If passw
o
o
nnect the
W
n
d gateway
a
a
sk, and
g
a
t
A
mode. Fo
r
1
92.168.4.
X
F
i DT-06
C
opyright@2
e ignored
A
: as a sla
v
o
rd is none,
W
iFi signal.
a
ddress for
t
ewa
y
add
r
r
example,
X
.
2
014-2017
.
v
er to con
n
,
then it do
e
.
Note: Wi
F
WiFi mod
u
r
ess must
b
at AP mo
d
Pag
e
n
ect the ot
h
sn’t
F
i passwor
d
u
le at AP
b
e not the
d
e, if IP is
e
12
h
er
d

D
D
OIT.
Shenzhen
D
STA
s
W
l
S
W
n
AM
®
D
octors of Int
e
s
etting
W
hen open
l
isted in th
e
S
et the SSI
D
W
hether st
a
n
eed to be
a
e
lligence &
T
the WiFi c
e
table bloc
k
D
and Pass
w
a
rts DHCP,
a
ssigned.
T
echnology
C
Fig. 3.9
W
o
nfiguratio
n
k
.
w
ord for th
e
if yes, the
n
User Manu
a
C
o., LTD (w
w
W
iFi Confi
g
n
page, th
e
e
wireless r
o
n
, IP, netma
s
a
l for TTL-Wi
F
w
w.doit.am)
C
g
uratio
n
-A
P
e
WiFi mod
u
o
uter.
s
k, gatewa
y
F
i DT-06
C
opyright@2
P
mode
u
le would s
y
address c
a
2
014-2017
s
can the Wi
F
a
nnot
b
e as
s
Pag
e
F
i hotspot
s
igned. Or,
i
e
13
i
t

D
D
OIT.
Shenzhen
D
Not
e
net
w
then
AM
®
D
octors of Int
e
e
: at AP m
o
w
ork durat
i
the IP at
S
e
lligence &
T
o
de, the IP
,
i
on from t
h
S
TA canno
t
Fig
T
echnology
C
,
sub-netw
o
h
ose at ST
A
t
be 192.1
6
. 3.10 WiF
User Manu
a
C
o., LTD (w
w
o
rk mask,
a
A
mode. F
o
6
8.4.X.
F
i configura
t
a
l for TTL-Wi
F
w
w.doit.am)
C
a
nd
g
atew
a
o
r example
,
t
io
n
-STA
m
F
i DT-06
C
opyright@2
ay
address
m
,
at AP mo
d
m
ode
2
014-2017
must be n
o
d
e, if IP is
Pag
e
o
t the sam
e
192.168.4.
1
e
14
e
1
,

D
w
o
D
OIT.
Shenzhen
D
Netw
o
In the n
e
o
rk modes
h
Wh
e
do
m
na
m
UD
P
wh
e
AM
®
D
octors of Int
e
o
rks confi
g
e
twork con
f
h
ave TCP s
e
e
n TCP/U
D
m
ain name.
A
m
e;
P
mode ca
n
e
re “x” is t
h
e
lligence &
T
g
uration
f
iguration,
o
e
rver/Clien
D
P Client is
A
t this tim
e
n
support th
e
h
e obtained
T
echnology
C
o
ne can set
t
,
UDP serv
e
chosen, th
e
e
, our firm
w
e
broadcast
IP address
Fig.
3
User Manu
a
C
o., LTD (w
w
t
he net wor
k
e
r/Client, a
n
e
IP address
w
are can get
in the loca
l
segment a
t
3
.11 Netwo
r
a
l for TTL-Wi
F
w
w.doit.am)
C
k
mode for
n
d UDP br
o
of remote
s
the IP add
r
l
networks.
t
STA mod
e
r
k configur
a
F
i DT-06
C
opyright@2
this WiFi
m
o
adcast, wh
e
s
erver can
s
r
ess autom
a
The writin
g
e
.
a
tio
n
2
014-2017
m
odule. Th
e
ere
s
upport the
d
a
tically by t
h
g
rule is 19
2
Pag
e
e
optional
d
ynamical
h
e domain
2
.168.x.255
e
15
,

D
3.
3
D
OIT.
Shenzhen
D
3
MORE c
o
Rest
a
Rest
o
Th
e
ST
A
Ser
i
Ne
t
AM
®
D
octors of Int
e
o
nfi
g
ure
a
rt
o
re the fact
o
e
factory pa
r
A
is closed,
i
al paramet
e
t
work confi
g
e
lligence &
T
o
r
y
settin
g
r
ameters:
working a
t
e
rs is 9600
,
g
uration is
T
echnology
C
Fi
g
Fig.
3
t
AP mode,
n, 8, 1, su
b
T
CP Serve
r
User Manu
a
C
o., LTD (w
w
g
ure 3.12 M
3
. 7 Re-star
t
IP addres
s
b
extract ti
m
r
, monitor
p
a
l for TTL-Wi
F
w
w.doit.am)
C
ore config
u
t
page
is 192.168
m
e is 50ms;
p
ort is 9000
F
i DT-06
C
opyright@2
u
re
.
4.1;
.
2
014-2017 Pag
e
e
16

D
C
h
4.
O
u
o
f
D
OIT.
Shenzhen
D
Versi
h
eck the ve
r
Built-in
u
r transpar
e
f
WiFi mod
u
AM
®
D
octors of Int
e
on
r
sions of so
AT com
m
e
nt transmi
s
u
le, or rest
o
e
lligence &
T
ftware and
m
and set
s
sion firmw
a
o
re the WiF
i
T
echnology
C
Fig. 3.
8
h
ardware.
Fig. 3
a
re is alrea
d
i
parameter
s
User Manu
a
C
o., LTD (w
w
8
Restore t
h
3
. 9 Check
v
d
y built-in
t
s
, which ar
e
a
l for TTL-Wi
F
w
w.doit.am)
C
e factory
v
ersio
n
t
he serial A
T
e
listed as f
o
F
i DT-06
C
opyright@2
T
comman
d
o
llows.
2
014-2017
d
to get the
c
Pag
e
c
urrent stat
u
e
17
u
s

DOIT.AM®
User Manual for TTL-WiFi DT-06
Shenzhen Doctors of Intelligence & Technology Co., LTD (www.doit.am) Copyright@2014-2017 Page 18
Table 4. 2built-in AT command set
Data direction Command(ASCII string) meaning
STA status check
MCU->WiFi module AT+STASTATUS Check the STA status
WiFi module->MCU STA:OK WiFi modle replies STA
successful connection
WiFi module->MCU STA:DOWN WiFi module replies STA
connection is closed
Get IP and MAC at STA mode
MCU-> WiFi module AT+STAINFO Get IP and MAC from WiFi
module
WiFi module->MCU
Mac|IP, for example
5CCF7F116380|192.168.1.
125
Get the MAC and IP at STA mode
Check the connection status at TCP Client mode
MCU-> WiFi module AT+TCPCLIENT
Check the connection status at
TCP Client mode, and no meaning
at other modes.
WiFi module->MCU TCP: OK TCP client is already connected
WiFi module->MCU TCP: OFF TCP client is off the connection
Restart module
MCU->WiFi module AT+RST Restart WiFi module
WiFi module->MCU RST: OK Immediately reply when received
the command
Restore the factory setting
MCU->WiFi module AT+RESTORE Immediately reset after WiFi
restores
WiFi module->MCU RESTORE: OK Immediately reply when received
the command
Take a example
Step 1: use a USB-TTL module to connect TTL-WiFi module, and then open the corresponding
serial port, and press the RST button to restart the board.
Step2: send “AT+STASTATUS” to check the connection of STA.

D
D
OIT.
Shenzhen
D
Step 3
AM
®
D
octors of Int
e
use this c
o
e
lligence &
T
o
mmand to
T
echnology
C
Fig. 4.1
restart the
m
Fi
g
User Manu
a
C
o., LTD (w
w
AT+STA
S
m
odule: A
T
g
. 4.2 AT+
R
a
l for TTL-Wi
F
w
w.doit.am)
C
S
TATUS
T
+RST
R
ST
F
i DT-06
C
opyright@2
2
014-2017
Pag
e
e
19
Table of contents
Other Do-it Control Unit manuals
Popular Control Unit manuals by other brands

Viper
Viper SmartStart VSM50BT Quick reference user guide

Wavecom
Wavecom Open AT V3.13 Hardware Release Note

Huawei
Huawei MU609 Hardware guide

EUCHNER
EUCHNER CES-A-UEA-02B operating instructions

DeZurik
DeZurik APCO CVS-6000 Installation, operation and maintenance manual

Kessel
Kessel Staufix FKA Standard Installation and operating manual