Bourgogne ET Grasset SAS VEGRDE2 Manual De Usuario
Vegas Long Range Read/Write Device
27-07-2002
Vegrde3/EG
Confidentiality Level 1
Page 12 (48)
Bourgogne et Grasset -– ZI Beaune Savigny -– 21200 Beaune – France – Tel. +33 380 26 26 26 – Fax. +33 3 80 26 26 00
3.3.1. GetSnr
This command provides the serial number of a data carrier.
Definition:
void proloc_GetSnr (DWORD *snr, char *more);
Serial protocol:
HOST - Read/Write Device
0x02 'G' 0x45
Read/Write Device - HOST
7 0 ------ 31 24
0x07 Status
Data[0]
------
Data[3] more
BCC
Note: More not equal zero (0) indicates that there is at least one additional data carrier in the
reading area of the read/write device.
Status:
0 ... no error
- 1 ...
SERIAL error
- 3 ...
NOTAG
3.3.2. SelectSnr
This command selects the data carrier with the specified serial number snr. If there is no such
data carrier in the field, a NOTAG error message is displayed.
In the case of errorfree execution the contents of page 1 (configuration) is saved in *otp.
data carrier in the field, a NOTAG error message is displayed.
In the case of errorfree execution the contents of page 1 (configuration) is saved in *otp.
Attention:
SelectSnr needs a preceding GetSnr. The serial number (snr) has to be the same as
received with the preceding GetSnr (see Chapter 12.4, Examples).
Definition:
void proloc_SelectSnr (DWORD snr, DWORD *otp);
Serial protocol:
HOST - Read/Write Device
7 0
......
......
31 24
0x06 'S' snr ...... ...... snr BCC
Read/Write Device - HOST
7 0 ------ 31 24
n Status
OTP-LSB
------
OTP-MSB BCC
n = 2 if an error occured (error code in Status).
n = 6 if data were read from a data carrier (Status = 0).
n = 6 if data were read from a data carrier (Status = 0).
Status:
0 ... no error
- 1 ...
SERIAL error
- 3 ...
NOTAG