Download Print this page

Aska NFC-9812 Instructions Manual

Uhf reader

Advertisement

Quick Links

API/SDK Instruction for
UHF Reader
1

Advertisement

loading
Need help?

Need help?

Do you have a question about the NFC-9812 and is the answer not in the manual?

Questions and answers

Summary of Contents for Aska NFC-9812

  • Page 1 API/SDK Instruction for UHF Reader...
  • Page 2 Instruction The API Development Kit is designed for user developing application software conveniently, which provide to user in the form of dynamic link file. It supports Visual C++ 、 VB 、 C++ Builder and Delphi platform developing environment. User can correct develop their application software efficiently by reading this instruction manual.
  • Page 3: Function List

    Function List -------------------------------------------------------------------------------  Definition of Data Structure 1. TagIds structure definition 2. Gen2TagList structure definition 3. Gen2LockFlags structure definition  Reader management function 1. OpenReader -----------------------------Open the reader 2. CloseReader -----------------------------Close the reader 3. SetBaudRate -----------------------------Configure the baud rate between PC and reader 4.
  • Page 4 1. InitGen2Tag ------------------------------ Initialize the EPC Gen2 tag 2. InitGen2EpcCode----------------------- Initialize the EPC code for EPC Gen2 tag 3. SingleTagIdentify-------------------------Single tag identification 4. MultipleTagIdentify-----------------------Multiple tag identification 5. Gen2ReadTag---------------------------- Read the memory data of EPC Gen2 tag 6. Gen2WriteTag-----------------------------Write data to the memory area of EPC Gen2 tag 7.
  • Page 5 ● Definition of Data Structure 1. TagIds Structure Definition typedef struct nsigned char TagType; nsigned char AntNum; nsigned char Length; nsigned char Ids[ID_Length]; }TagIds; The definition of TagIds Structure is as below :  TagType—Tag type  AntNum —Antenna Serial Number ...
  • Page 6 D1 is “0” -- Doesn’t reading the TID code D2 is “1” -- Reading the data of User area D2 is “0” -- Doesn’t reading the data of User area D3 ~ D7 ---The five bits data are reserved ▲ EpcLength - The double-byte length of EPC code read (D0 is “1”) ▲...
  • Page 7: Set Baud Rate

    ● Reader Management Function Reader management function is used to achieve the work of configuring the reader working condition, status query and function operating by host PC. 1. OpenReader Function prototype: short OpenReader (HANDLE * hCom, unsigned char LinkType,char *com_port) Explanation: Open the reader Input parameter: hCom-- Handle...
  • Page 8 4.SetParameter Function prototype : short SetParameter(HANDLE hCom, unsigned int Addr, unsigned char Count, unsigned char * Parameter) Function explanation : configuring the reader working parameters. Input parameter :  hCom-- Handle  Addr - The first working parameter address needs to be configured, range from 2 to 255 ...
  • Page 9 Return results: the result is zero, which shows the action is correct, others are wrong. Explanation : it’s only used for multi-ports reader(NFC-9812,NFC-9814 etc.). User can operate the designated antenna and do reading, writing, kill operating for specific tag. This function is not valid for single ports reader.
  • Page 10 12、SetWorkAntenna Function prototype : short SetWorkAntenna (HANDLE hCom, unsigned char Antenna) Function explanation : Configure the working antenna(channel) for multi-port reader Input parameter :  hCom—Handle bit mask mode, If D0-D7 is ‘1’, which indicates antena1~8  Antenna—Configured antenna, can work. If it’s zero, the corresponding antenna doesn’t work. Return results: the result is zero, which shows the action is correct, others are wrong.
  • Page 11  Mark— Relay bit mask needs to be operated; D0 is for operating”relay 1”. If D0 value is”1”, it means the state value will affect the change of reply state. If the value is “0”, then there is no impact. The definition for D1-D3 is the same as D0. ...
  • Page 12 ID- Return value of identified tag. Please refer to the definition of TagIds Return results: the result is zero, which shows the action is correct, others are wrong. Explanation : The function is suitable for single tag identifying of multi ports reader.(Model No.NFC-9812, NFC- 9814) 3、MultipleTagIdentify...
  • Page 13  Length - tag byte length needs to be read Id - return value of identified tag ID  Value - return value of reading memory data  Return results: the result is zero, which shows the action is correct, others are wrong. 6、ReadSingleTag0 Function prototype :...
  • Page 14 with designated byte length) Input parameter : hCom— Handle   TagType— Tag type identification, “1” for ISO18000-6B tag,  Addr - byte address of tag memory  Length - byte length needs to be written  Id - return value of identified tag ID ...
  • Page 15 Input parameter : hCom— Handle  TagType— Tag type identification, “1” for ISO18000-6B tag,   Addr - byte address of tag memory which needs to query the locking status.  ID - Returning value of identified tag ID.  Length -...
  • Page 16  MustInit - Whether the tag need to initialize parameters or not.. “1” for yes,”0” for no need. EpcCode - The EPC code which needs to be written into tag  Return results: the result is zero, which shows the action is correct, others are wrong. Explanation: It contains “InitGen2Tag”...
  • Page 17 char Length ,unsigned char * Data) Function explanation : Write data to the memory area of EPC Gen tag Input parameters :  hCom— Handle  MemBank - Designated memory area , 1 for EPC, 3 for USER  Addr - Designated memory address needs to be written ...
  • Page 18  MemBank - Memory type Value is 1 --- Write data to EPC memory Value is 3 --- Write data to USER memory  Addr - The start writing address EPC : Range 2~7, USER : Double byte address, starts from 0 ...
  • Page 19 Function explanation : Modify the EPC code of designated cryptographic tag Input parameters : hCom— Handle   Password - access password of tag  MemBank - Memory type Value is 1 --- Write data to EPC memory Value is 3 --- Write data to USER memory ...
  • Page 20  Scope - value=1, comparing with EPC memory; Value=2, comparing with TID memory. Length - Byte length of compared data   MaskData - The data needs to be compared; Scope value=1, stands for EPC code; Scope value=2, stands for TID code. Return results: the result is zero, which shows the action is correct, others are wrong.
  • Page 21  Password - The kill password of tag Scope - value=1, comparing with EPC memory;  Value=2, comparing with TID memory.  Length - Byte length of compared data  MaskData - The data needs to be compared; Scope value=1, stands for EPC code; Scope value=2, stands for TID code.
  • Page 22 Function prototype : short Gen2EASAlarm(HANDLE hCom) Function explanation : Tag alarm Input parameters :  hCom— Handle Return results: the result is zero, which means giving alarm, others are wrong. 19、Gen2TagContentList Function prototype : short Gen2TagContentList(HANDLE hCom, Gen2TagList * Data) Function explanation :...

This manual is also suitable for:

Nfc9814