Está en la página 1de 32

ZFM-20

Ver: 2.0

ZFM-20
()

20102012

http://www.zhiantec.com

160 8 C/D

86-571-88210122

0571-88210122-807

86-571-88210122-818

1 28

310012

..................................................................... 3
1.1 ................................................................... 3
1.2 ................................................................... 3
............................................................. 4
................................................................. 5
3.1 J1.................................................. 5
3.1.1 ............................................................... 5
3.1.2 USB ............................................................... 6
3.2 J2.................................................. 7
................................................................. 8
4.1 ..................................................................... 8
4.1.1 ............................................................. 8
4.1.2 .......................................................... 8
4.2 ..................................................................... 8
4.3 ............................................................... 8
4.3.1 4............................................... 9
4.3.2 ................................................ 9
4.3.3 .............................................. 9
4.4 ............................................................. 9
4.5 ................................................................... 9
4.6 .................................................................. 10
4.7 .............................................................. 10
................................................................ 11
5.1 ................................................................ 11
5.2 ......................................................... 12
............................................................ 13
6.1 ................................................................ 13
6.2 ............................................................ 17
6.3 .................................................................. 26
6.4 .............................................................. 30
6.4.1 ............................................................ 30
6.4.2 ......................................................... 30
........................................................................... 31
1 .......................................................... 31
2 MM ........................... 31

2 28


ZFM-20 SynoChip DSP

1.1
1:1
1:N
2 2

1:1
1:N

1.2

ZFM 20

x x x x Vxx

mm

A162
B930

U USB1.1
S SeriesUART)

0
1

20

1
2

3 28


DC 3.6~6.0V

<120mA
<150mA
1.0
14 18 mm

1:1
1:N
256
512
162/930
12345
(FAR)0.001% 3
(FRR)1.0%

1.0 1:200
UARTTTL USB1.1
(UART)(9600N)bps N=112 N=6 57600bps

-20+50
40RH85RH ()

-40+85
85H
(LWH)

42 25 8.5mm
56 20 21.5mm

(31.5 19 mm )

56 20 21.5mm

4 28


3.1 J1
UART USB
PCB / 5 2.0
4 1.27
150mm

3.1.1
J1

Vin

in

TD

out

TTL

RD

in

TTL

GND

NC

()

in out

3.1.1.1
3.3V 5V
2 TDRXD, 3 RD
TXD
RS-232 PC
MAX232

3.1.1.2
57600bps 9600115200bps
1

D0

D1

D2

D3

D4

D5

D6

D7

10

10 0 8

5 28


3.1.1.3
500mS

3.1.1.4 / GND

1.

Vin

3.6

6.0

Vinmax

0.3

7.0

Icc

90

110

mA

150

mA

Ipeak

100

TXDTTL

2.

VOL

IOL=4mA

VOH

IOH=

4mA

2.4

0.4

3.3

RXD TTL

3.

VIL

0.6

VIH
IIH

2.4

VIH =5V

mA

VIH =3.3V

30

uA

0.3

VImax

5.5

3.1.2 USB
USB J1

Vin

in

DP+

In/Out

USB

DP-

In/Out

USB

GND

END

()

3.1.1.4

in out

6 28

3.2 J2
15 / 1.25mm
15 150mm

7 28

4.1
RAM 72K bytes ImageBuffer 512 bytes
CharBuffer1 CharBuffer2

4.1.1
ImageBuffer /
256288
UART 16

16 PC BMP
256 8bit
USB 8 256

4.1.2
CharBuffer1 CharBuffer2

4.2
FLASH

N01
2N-2N-1

4.3

SetSysPara ReadSysPara

8 28

FLASH

4.3.1 4
UART N(N 1
12)(9600N)bps

4.3.2
5 12345
, 5 ,

4.3.3

1233264128256

4.4
ReadSysPara 1Word

15

Reserved

ImgBufStat

PWD

Pass

Busy

z Busy 1 1 0
z Pass 1 1
z PWD 1
z ImgBufStat 1

4.5

4 , 0x00000000
SetPwd

Flash
VfyPwd SetPwd

9 28

4.6
/

4 0xFFFFFFFF
SetAdder

4.7
32
GetRandomCode

10 28


ZFM-20 UART
USB PC USB
USB

5.1

///

START

0xef01,

ADDER

0xffffffff,

0x01

Command packet
(Data packet),

PID

0x02

0x07

ACK packet

0x08

(EndData
packet)

LENGTH

256 (/)
+2

DATA

SUM

11 28

5.2

1. 0x00 OK
2. 0x01
3. 0x02
4. 0x03
5. 0x06
6. 0x07
7. 0x08
8. 0x09
9. 0x0a
10. 0x0b
11. 0x0c
12. 0x0d
13. 0x0e
14. 0x0f
15. 0x10
16. 0x11
17. 0x13
18. 0x15
19. 0x18 FLASH
20. 0x1a
21. 0x20
22. 0x21
23.

12 28


ZFM-20 21
/ 5.1

6.1
1

VfyPwd

4.6
PassWord

0x13

2 bytes

4 bytes

1 byte

2 bytes

1 byte

4 bytes

2 bytes

0xef01

XXXX

0x01

0x0007

0x13

PassWord

Sum

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x07

0x0003

Sum

=0x00
=0x01
=0x13
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)+(4 bytes)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
2
0xffffffff0x00000000

2 SetPwd
4.6
PassWord

0x12

2 bytes

4 bytes

1 byte

2 bytes

1 byte

4 byte

2 bytes

0xef01

XXXX

0x01

0x0007

0x12

PassWord

Sum

13 28

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x07

0x0003

Sum

=0x00 OK
=0x01
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)+(4 bytes)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
2
0xffffffff0x00000000

3 SetAdder
4.7

0x15

2 bytes

4 bytes

1 byte

2 bytes

1 byte

4 bytes

2 bytes

0xef01

XXXX

0x01

0x0007

0x15

XXXX

Sum

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x07

0x0003

Sum

=0x00
=0x01
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)+(4 bytes)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
2
0xffffffff0x00000000

4 SetSysPara
4.4

0x0e

2 bytes

4 bytes

1 byte

2 bytes

1 byte

1 byte

1 byte

2 bytes

0xef01

XXXX

0x01

0x0005

0x0e

4/5/6

Sum

14 28

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x07

0x0003

Sum

=0x00 OK
=0x01
=0x1a
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)+(1 byte)
+(1 byte)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
2
0xffffffff0x00000000

9600N

5 12345

0123()3264128256

bpsN 112

5 ReadSysPara
4.4 4.5

none
+
0x0f

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x01

0x0003

0x0f

Sum

2 bytes

4 bytes

1 byte

2 bytes

1 byte

16 bytes

2 bytes

0xef01

XXXX

0x07

0x0013

Sum

=0x00 OK
=0x01
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)+(16 bytes)
2
0xffffffff0x00000000

15 28

6)

()

0x0000

12345

32

0123

N( 9600N bps)

ReadConList

256

0 0255
1 256511
2 512767
3 7681024
+
0x1f

2 bytes

4 bytes

1 byte

2 bytes

1 byte

1 byte

2 bytes

0xef01

XXXX

0x01

0x0004

0x1f

0/1/2/3

Sum

2 bytes

4 bytes

1 byte

2 bytes

1 byte

32 bytes

2 bytes

0xef01

XXXX

0x07

0x0023

Sum

1=0x00
=0x01
2 256 256 0

3 8

0/1

0/1

0/1

0/1

0/1

0/1

0/1

0/1

15

14

13

12

11

10

0/1

0/1

0/1

0/1

0/1

0/1

0/1

0/1

255

254

253

252

251

250

249

248

0/1

0/1

0/1

0/1

0/1

0/1

0/1

0/1

0
1

16 28

(2 bytes)=(1 byte)+(2 bytes)+(1 byte)+(1 byte)


(2 bytes)=(1 byte)+(2 bytes)+(1 byte)+(N bytes)
2
0xffffffff0x00000000

7 TempleteNum

none
+ N
0x1d

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x01

0x0003

0x1d

0x0021

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

2 bytes

0xef01

XXXX

0x07

0x0005

Sum

=0x00
=0x01
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)+(2 bytes)
2
0xffffffff0x00000000

6.2
8 GenImg
ImageBuffer

none

0x01

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x01

0x0003

0x01

0x0005

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

17 28


0xef01

XXXX

0x07

0x0003

Sum

=0x00
=0x01
=0x02
=0x03
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
2
0xffffffff0x00000000

9 UpImage
ImageBuffer
1.1.1
none

0x0a

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x01

0x0003

0x0a

0x000e

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x07

0x0003

Sum

2 bytes

4 bytes

1 byte

2 bytes

N bytes

2 bytes

0xef01

XXXX

0x02

N+2

Sum

2 bytes

4 bytes

1 byte

2 bytes

N bytes

2 bytes

0xef01

XXXX

0x08

N+2

Sum

1=0x00
=0x01
=0x0f
2
3 N 128 bytes
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
2
0xffffffff0x00000000
18 28

10 DownImage
ImageBuffer 1.1.1

none

0x0b

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x01

0x0003

0x0b

0x000f

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x07

0x0003

Sum

2 bytes

4 bytes

1 byte

2 bytes

N bytes

2 bytes

0xef01

XXXX

0x02

N+2

Sum

2 bytes

4 bytes

1 byte

2 bytes

N bytes

2 bytes

0xef01

XXXX

0x08

N+2

Sum

1=0x00
=0x01
=0x0e
2
3 N 128 bytes
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
2
0xffffffff0x00000000

11 Img2Tz
ImageBuffer , CharBuffer1
CharBuffer2
BufferID()

0x02

19 28


2 bytes

4 bytes

1 byte

2 bytes

1 byte

1 byte

2 bytes

0xef01

XXXX

0x01

0x0004

0x02

BufferID

Sum

CharBuffer1CharBuffer2 BufferID 0x01 0x02


CharBuffer2

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x07

0x0003

Sum

=0x00
=0x01
=0x06
=0x07
=0x15
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)+(1 byte)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
2
0xffffffff0x00000000

12 RegModel
CharBuffer1 CharBuffer2
CharBuffer1 CharBuffer2()
none

0x05

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x01

0x0003

0x05

0x0009

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x07

0x0003

Sum

=0x00
=0x01
=0x0a
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
2
0xffffffff0x00000000

20 28


13 UpChar
CharBuffer1 CharBuffer2
BufferID()

0x08

2 bytes

4 bytes

1 byte

2 bytes

1 byte

1 byte

2 bytes

0xef01

XXXX

0x01

0x0004

0x08

BufferID

Sum

CharBuffer1CharBuffer2 BufferID 0x01 0x02

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x07

0x0003

Sum

2 bytes

4 bytes

1 byte

2 bytes

N bytes

2 bytes

0xef01

XXXX

0x02

N+2

Sum

2 bytes

4 bytes

1 byte

2 bytes

N bytes

2 bytes

0xef01

XXXX

0x08

N+2

Sum

1=0x00
=0x01
=0x0d
2
3 N 128 bytes
4
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)+(1 byte)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
2
0xffffffff0x00000000

14

DownChar

BufferID()

0x09

2 bytes

4 bytes

1 byte

2 bytes

1 byte

1 byte

2 bytes

0xef01

XXXX

0x01

0x0004

0x09

BufferID

Sum

21 28


CharBuffer1CharBuffer2 BufferID 0x01 0x02

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x07

0x0003

Sum

2 bytes

4 bytes

1 byte

2 bytes

N bytes

2 bytes

0xef01

XXXX

0x02

N+2

Sum

2 bytes

4 bytes

1 byte

2 bytes

N bytes

2 bytes

0xef01

XXXX

0x08

N+2

Sum

1=0x00
=0x01
=0x0e
2
3 N 128 bytes.
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)+(1 byte)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
2
0xffffffff0x00000000

15 Store
CharBuffer1 CharBuffer2
Flash
BufferID() + PageID

0x06

2 bytes

4 bytes

1 byte

2 bytes

1 byte

1 byte

2 bytes

2 bytes

0xef01

XXXX

0x01

0x0006

0x06

BufferID

PageID

Sum

CharBuffer1CharBuffer2 BufferID 0x01 0x02

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x07

0x0003

Sum

=0x00
=0x01
=0x0b PageID
=0x18 FLASH
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)+(1 byte)
22 28


+(2 bytes)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
2
0xffffffff0x00000000

16 LoadChar
flash ID CharBuffer1
CharBuffer2
BufferID() + PageID()

0x07

2 bytes

4 bytes

1 byte

2 bytes

1 byte

1 byte

2 bytes

2 bytes

0xef01

XXXX

0x01

0x0006

0x07

BufferID

PageID

Sum

CharBuffer1CharBuffer2 BufferID 0x01 0x02

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x07

0x0003

Sum

=0x00
=0x01
=0x0c
=0x0b PageID
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)+(2 bytes)
+(2 bytes)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
2
0xffffffff0x00000000

17 DeletChar
ID N
PageID() + N

0x0c

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

2 bytes

2 bytes

0xef01

XXXX

0x01

0x0007

0x0c

PageID

Sum

23 28


2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x07

0x0003

Sum

=0x00
=0x01
=0x10
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)+(2 bytes)
+(2 bytes)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
2
0xffffffff0x00000000

18 Empty

none

0x0d

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x01

0x0003

0x0d

0x0011

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x07

0x0003

Sum

=0x00
=0x01
=0x11
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
2
0xffffffff0x00000000

19 Match
1:1CharBuffer1 CharBuffer2

none
+
0x03

2 bytes

4 bytes

1 byte

2 bytes

24 28

1 byte

2 bytes

0xef01

XXXX

0x01

0x0003

0x03

0x0007

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

2 bytes

0xef01

XXXX

0x07

0x0005

XX

Sum

1=0x00
=0x01
=0x08
2
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)+(2 bytes)
2
0xffffffff0x00000000

20 Search
CharBuffer1 CharBuffer2

BufferID + StartPage() + PageNum


+
0x04

2 bytes

4 bytes

1 byte

2 bytes

1 byte

1 byte

2 bytes

2 bytes

2 bytes

0xef01

XXXX

0x01

0x0008

0x04

BufferID

StartPage

PageNum

Sum

CharBuffer1CharBuffer2 BufferID 0x01 0x02

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

2 bytes

2 bytes

0xef01

XXXX

0x07

0x007

PageID

MatchScore

Sum

1=0x00
=0x01
=0x09
2
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)+(1 bytes)
+(2 bytes)+(2 bytes)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)+(2 bytes)
+(2 bytes)
2
0xffffffff0x00000000

25 28

6.3
21

GetRandomCode

4.8

none

0x14

2 bytes

4 bytes

1 byte

2 bytes

1 byte

2 bytes

0xef01

XXXX

0x01

0x0003

0x14

0x0018

2 bytes

4 bytes

1 byte

2 bytes

1 byte

4 bytes

2 bytes

0xef01

XXXX

0x07

0x0007

XXXX

Sum

=0x00
=0x01
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)
(2 bytes)=(1 byte)+(2 bytes)+(1 byte)+(4 bytes)
2
0xffffffff0x00000000

26 28

7.

27 28

28 28

29 28

6.4
6.4.1

0x13

0x12

13

0x08

14

0x09

15

0x06

16

0x07

17

0x0c

18

0x0d

19

0x03

20

0x04

21

0x14

0x15

0x0e

0x0f

0x1f

0x1d

0x01

0x0a

10

0x0b

11

0x02

12

0x05

6.4.2

0x01

GenImg

0x0d

Empty

0x02

Img2Tz

0x0e

SetSysPara

0x03

Match

0x0f

ReadSysPara

0x04

Serach

0x12

SetPwd

0x05

RegModel

0x13

VfyPwd

0x06

Store

0x14

GetRandomCode

0x07

LoadChar

0x15

SetAdder

0x08

UpChar

0x1d

TempleteNum

0x09

DownChr

0x1f

ReadConList

0x0a

UpImage

0x0b

DownImage

0x0c

DeletChar

30 28

2 mm

-----------End----------

31 28

También podría gustarte