Professional Documents
Culture Documents
VH-75 Development Handbook
VH-75 Development Handbook
VH-75 Development Handbook
Development Handbook
Vanch has the modification authority about hardware, software and the manual of the product.
The manual will be modified without notice.
The specification and power of the equipment is based on the origin country, Please confirm the
voltage and read relevant safety attentions, especially when it is in outdoor Installation.
CONTENT| VH-75 development handbook
CONTENT
1 . 1 SUMMARY....................................................................................4
1 . 1 . 1 C o m m a n d p a c k e t f o r m a t ..............................................4
1 . 1 . 2 R e t u r n p a c k e t f o r m a t ...................................................5
1 . 1 . 3 E r r o r c o d e ..........................................................................5
1.1.4 E x a m p l e ........................................................................6
1 . 2 SERIAL PORT CONTROL COMMAND FORMAT..........................................6
1.2.1 R e a d v e r s i o n n u m b e r ...............................................6
1.2.2 A d d n a m e l i s t .............................................................7
1.2.3 D d e l e t e n a m e ..............................................................8
1.2.4 G e t L i s t .........................................................................8
1.2.5 G e t t i n g w o r k p a r a m e t e r .........................................9
1.2.6 s e t u p L a b e l f i l t e r .................................................1 1
1.2.7 G e t t i n g T a g f i l t e r p a r a m e t e r .............................1 2
1.2.8 S e t w o r k p a r a m e t e r ...............................................1 2
1.2.9 F a c t o r y R e s e t ..........................................................1 4
1.2.10 S e t c u r r e n t t i m e .....................................................1 4
1.2.11 G e t c u r r e n t t i m e .....................................................1 5
1.2.12 G e t r e c o r d i n s p e c i f i c t i m e f r o m S D c a r d . . .1 5
1.2.13 D e l e t e a l l r e c o r d s i n S D c a r d ...........................1 7
1.2.14 S e t h a n d h e l d B l u e t o o t h n a m e ...........................1 7
1.2.15 G e t h a n d h e l d B l u e t o o t h n a m e ...........................1 8
1.3 CHECK AND COMPUTING METHOD(C LANGUAGE).............................18
2 . 1 . SDK COMPONENT...................................................................19
2 . 2 . DESIGN DESCRIPTION...............................................................20
2.2.1 B a s i c C o n s t a n t a n d S t r u c t u r e ..........................2 0
2 . 2 . 1 . 1 D e f i n i t i o n o f t h e C o n s t a n t .....................................2 0
2 . 2 . 1 . 2 A P I f u n c t i o n r e t u r n c o d e .......................................2 0
2 . 2 . 1 . 3 D a t a M o d e D e f i n i t i o n ..............................................2 1
2 . 2 . 1 . 4 P a r a m e t e r s t r u c t u r e o f h a n d h e l d r e a d e r ..........2 1
2.2.2 C o n t r o l C o m m a n d F u n c t i o n ................................2 4
2 . 2 . 3 . 1 c o n n e c t t o h a n d h e l d r e a d e r ..................................2 4
2 . 2 . 3 . 2 D i s c o n n e c t ..................................................................2 4
2 . 2 . 3 . 3 T e s t i f t h e U S B i s o n ...............................................2 5
2 . 2 . 3 . 4 I n i t i a l i z e U S B ............................................................2 5
2 . 2 . 3 . 5 C l o s e U S B ....................................................................2 5
090909RevA|Page 2 of 38
CONTENT| VH-75 development handbook
2.2.3.6 T r a n s m i s s i o n M o d e S e t t i n g s .................................2 5
2.2.3.7 C h a r a c t e r a n d t i m e s w i t c h t o m e t r i c s y s t e m . .2 5
2.2.3.8 C o m p a r e i f t h e t w o d a t a a r e e q u a l .....................2 6
2.2.3.9 G e t V e r s i o n ................................................................2 6
2 . 2 . 3 . 1 0 A d d l a b e l I D ...............................................................2 7
2 . 2 . 3 . 1 1 D e l e t e L a b e l I D .........................................................2 7
2 . 2 . 3 . 1 2 G e t L a b e l I D ...............................................................2 8
2 . 2 . 3 . 1 3 S u b m i t t h e l i s t ..........................................................2 8
2.2.3.14 Get the basic working parameter of the
h a n d h e l d r e a d e r .........................................................................2 9
2.2.3.15 Setting the basic working parameter of the
h a n d h e l d r e a d e r .........................................................................2 9
2.2.3.16 Reset to the factory parameter of the handheld
reader 30
2 . 2 . 3 . 1 7 S e t t i n g T i m e ..............................................................3 0
2 . 2 . 3 . 1 8 G e t t h e t i m e ...............................................................3 0
2 . 2 . 3 . 1 9 S e t t i n g t h e t a g f i l t e r ..............................................3 1
2 . 2 . 3 . 2 0 G e t t h e t a g f i l t e r ......................................................3 1
2 . 2 . 3 . 2 1 G e t t h e r e c o r d ...........................................................3 2
2 . 2 . 3 . 2 2 D e l e t e a l l r e c o r d ......................................................3 2
2 . 2 . 3 . 2 3 G e t h a n d h e l d r e a d e r I D ..........................................3 3
2.2.3 R e a d & W r i t e I S O 1 8 0 0 0 - 6 C F u n c t i o n ..............3 3
2.2.3.1 R e a d I S O 1 8 0 0 0 - 6 C t a g ’ s E P C n u m b e r ................3 3
2.2.3.2 R e a d a B l o c k o f d a t a ...............................................3 4
2.2.3.3 W r i t e a B l o c k o f d a t a ..............................................3 5
2.2.3.4 S e t t i n g p r o t e c t i o n m o d e f o r r e a d & w r i t e ........3 6
090909RevA|Page 3 of 38
Serial port bidirectional communication protocol | VH-75development handbook
communication protocol
communication)
1 . 1 Summary
RS232, It receive the command from control board , and return result of
090909RevA|Page 4 of 38
Serial port bidirectional communication protocol | VH-75development handbook
Command: 1byte
correct
Return Data: return the result of executing command, its length will
090909RevA|Page 5 of 38
Serial port bidirectional communication protocol | VH-75development handbook
Command correct
00(00H)
or test correctly
16(10H) Invalid command
17(11H) Error parameter
18(12H) Error checkSum
Command exec
32(20H)
error
1.1.4 Example
For example: Getting reader’s current time on command packet is: 『40H
40H bootcode
Effective length is
02H
2bytes
Command code
12H of『get reader’s
current time』
No command
null
parameter
ACH Check sum
01
When execute correct, return packet is : 『F0H 08H 12H 0CH 01H 01H
When execute error, return packet may is: 『F4H 03H 12H 10H E7H』
090909RevA|Page 6 of 38
Serial port bidirectional communication protocol | VH-75development handbook
Parameter specification :
MAIN HARDWARE
Byte0
VERSION
Second Hardware
Byte1
VERSION
Byte2 Main software version
Second Software
Byte3
VERSION
function: Add a new list based on the original list of VH-75 handset.
090909RevA|Page 7 of 38
Serial port bidirectional communication protocol | VH-75development handbook
parameter specification:
LENGTH(Byte
parameter Introductions
)
indicate increase total number of
M 1
list ,M<=8
Len 1 The length of EPC code
EPC Len*2 EPC code
command: 04H
090909RevA|Page 8 of 38
Serial port bidirectional communication protocol | VH-75development handbook
command: 05H
LENGTH(BY
parameter INTRODUCTIONS
TE)
SADDR 1 Start address of getting list
indicate total number of list in this
M 1
action ,M<=8
LENGTH(BY
parameter INTRODUCTIONS
TE)
indicate get total number of
N 1
list ,N<=8
Len 1 EPC code length
EPC Len*2 EPC code
command: 06H
090909RevA|Page 9 of 38
Serial port bidirectional communication protocol | VH-75development handbook
parameter specification:
BYTES DEFINE
0 tag types:01H-ISO18000-6B,02H-EPCC1,04H-ISO-18000-
6C
1 Alarm based on list : 0 - No Alarm ,1 - Alarm
2 tag output way: 0-Save and output directly,1- save but not
outout,2-not save but output directly .
3 USB port baud rate, default :07—57600bps
04H 9600bps
05H 19200bps
06H 38400bps
07H 57600bps
08H 115200bps
4 reserve
5 Min carrier frequency,1-63,Refer to frequency list
6 Max carrier frequency ,1-63, Refer to frequency list
7 RF Output power 18-26 dBm
8 Byte0 Main hardware version number (only read parameters Low
Level software settings)
9 Byte1 Second hardware version number (only read parameters
Low Level settings)
10 Byte2 Main software major version number (only read
parameters Low Level software settings)
11 Byte3 Second software version number (only read parameters
Low Level software settings)
12 Whether reading TID area
13 Start ADD on Read TID
14 Reading TID length
15 Whether reading USER area
16 Start ADD Read USER area
090909RevA|Page 10 of 38
Serial port bidirectional communication protocol | VH-75development handbook
Function: output the list only when the tag ID accord with filter setting
command: 07H
parameter specification:
LENGTH(BY
parameter INTRODUCTIONS
TE)
MAC address,high in the front
ADDR 2
,low in the back, Bit address
MAC length,high in the front ,low
Len 2
in the back, Bit length .
090909RevA|Page 11 of 38
Serial port bidirectional communication protocol | VH-75development handbook
command: 08H
LENGTH(BY
parameter INTRODUCTIONS
TE)
MAC address,high in the front
ADDR 2
,low in the back, Bit address
MAC length,high in the front ,low
Len 2
in the back, Bit length .
M M high in the front ,low in the back,if
Len/8 is integer,M=Len/8;if
090909RevA|Page 12 of 38
Serial port bidirectional communication protocol | VH-75development handbook
command: 09H
command parameter:null
parameter specification:
BYTES DEFINE
Tag type:01H-ISO18000-6B,02H-EPCC1,04H-ISO-18000-
0
6C
1 Whether Alarm based on alarm: 0 - No Alarm, 1 – Alarm
tag output way: 0-Save and output directly,1- save but not
2
outout,2-not save but output directly .
USB port baud rate, default 07—57600bps
04H 9600bps
05H 19200bps
3 06H 38400bps
07H 57600bps
08H 115200bps
4 reserve
5 Min carrier frequency,1-63,Refer to frequency list
6 Max carrier frequency,1-63,Refer to frequency list
7 RF Output power 18-26
8 Byte0 Main hardware version number (only read parameters Low
090909RevA|Page 13 of 38
Serial port bidirectional communication protocol | VH-75development handbook
command: 0DH
command parameter:null
090909RevA|Page 14 of 38
Serial port bidirectional communication protocol | VH-75development handbook
Command code:11H
CheckSum』
090909RevA|Page 15 of 38
Serial port bidirectional communication protocol | VH-75development handbook
Command code:16H
Command parameter:
Data:
090909RevA|Page 16 of 38
Serial port bidirectional communication protocol | VH-75development handbook
BYTE DateTime[6];
BYTE TagType;
BYTE EPCLen;
BYTE EPC[16];
BYTE USERLen;
BYTE USER[216];
} TagData;
Notes:when start time and end time both are o ,indicate download all
data on SD Card
090909RevA|Page 17 of 38
Serial port bidirectional communication protocol | VH-75development handbook
null.
parameter specification:
090909RevA|Page 18 of 38
Serial port bidirectional communication protocol | VH-75development handbook
Command parameter:null
parameter specification:
language)
uBuffLen)
for(i=0;i<uBuffLen;i++)
090909RevA|Page 19 of 38
Serial port bidirectional communication protocol | VH-75development handbook
uSum = (~uSum) + 1;
return uSum;
The VH-75 product package provide the Software Development Kit (SDK),
Description Explanation
#define ID_MAX_SIZE_64BIT 8 // The ID number of the label is
64bit
#define ID_MAX_SIZE_96BIT 13 // The ID number of the label is
128bit
#define MAX_LABELS 100 // Maximum tags to be read in
one time operation is 100pcs
090909RevA|Page 20 of 38
Serial port bidirectional communication protocol | VH-75development handbook
All API function will return to an apiReturn value after executing. By this
value (function return code), we can figure out if the execute function is
successful or the failure reason and other information.
090909RevA|Page 21 of 38
Serial port bidirectional communication protocol | VH-75development handbook
}ReaderDate;
EPCC1,04H-EPCC1G2,08H-EM4442。
output directly
090909RevA|Page 22 of 38
Serial port bidirectional communication protocol | VH-75development handbook
090909RevA|Page 23 of 38
Serial port bidirectional communication protocol | VH-75development handbook
} HandsetParam;
Inlet parameter:
090909RevA|Page 24 of 38
Serial port bidirectional communication protocol | VH-75development handbook
Inlet parameter:
2.2.3.2 Disconnect
Feature: close the connection with handheld reader, release serial port
resources
Inlet parameter:
bDech---1 is on or is off
090909RevA|Page 25 of 38
Serial port bidirectional communication protocol | VH-75development handbook
Output parameter:
Input parameter:
Input parameter:
090909RevA|Page 26 of 38
Serial port bidirectional communication protocol | VH-75development handbook
Input parameter:
Feature: get the hardware and software version of the handheld reader.
Input parameter:
Output parameter:
090909RevA|Page 27 of 38
Serial port bidirectional communication protocol | VH-75development handbook
BYTE * data);
Input parameter:
Input parameter:
Input parameter:
090909RevA|Page 28 of 38
Serial port bidirectional communication protocol | VH-75development handbook
Output parameter:
Input parameter:
pParam);
Feature: read the working parameter that written to the handheld reader
by previous command.
Input parameter:
090909RevA|Page 29 of 38
Serial port bidirectional communication protocol | VH-75development handbook
Output parameter:
* pParam);
Input parameter:
Input parameter:
090909RevA|Page 30 of 38
Serial port bidirectional communication protocol | VH-75development handbook
Input parameter:
*time);
Input parameter:
Output parameter:
BYTE *mask);
090909RevA|Page 31 of 38
Serial port bidirectional communication protocol | VH-75development handbook
Input parameter:
BYTE *mask);
Input parameter:
Output parameter:
Mask:Mask, hexadecimal.
Feature: read the indentified tag record from the handheld reader.
090909RevA|Page 32 of 38
Serial port bidirectional communication protocol | VH-75development handbook
Input parameter:
Output parameter:
Input parameter:
090909RevA|Page 33 of 38
Serial port bidirectional communication protocol | VH-75development handbook
Input parameter:
Output parameter:
Feature: read all EPC numbers which can be indentified within radiation
range of antenna.
Input parameter:
0 Password zone
1 EPC number
2 ID number of TID tag
3 User zone
090909RevA|Page 34 of 38
Serial port bidirectional communication protocol | VH-75development handbook
Output parameter:
Input parameter:
090909RevA|Page 35 of 38
Serial port bidirectional communication protocol | VH-75development handbook
Output parameter:
Input parameter:
0 Password zone
1 EPC number
TID tag ID
2
number
3 User zone
090909RevA|Page 36 of 38
Serial port bidirectional communication protocol | VH-75development handbook
Feature: set the assigned data zone of assigned tag as write protection.
Input parameter:
0 Kill Password
1 Access Password
2 EPC number
3 TID tag ID number
4 User zone
090909RevA|Page 37 of 38
Serial port bidirectional communication protocol | VH-75development handbook
0 Writable
Permanently
1
writable
Writable by
2
password
3 Never writable
Readable &
4
writable
Permanently
5 readable &
writable
Readable &
6 writable by
password
Never
7 readable &
writable
Remark: 0~3 are only suitable for EPC, TID and User; 4~7 are only
suitable for Kill Password and Access Password.
090909RevA|Page 38 of 38