background image

 

YHY638F

13.56MHz RFID Reader/Writer 

User Manual

 

Version 1.0     

Page 17 of 28 

Apr 2010

 

Prototype:  int WINAPI rf_M1_write (unsigned short icdev,     
                                unsigned char  block,  
                                unsigned char *pData)  
Parameter:  icdev:    [IN]  Device ID  
           block:   [IN]  block absolute address  
           pData:   [IN]  written data, 16 bytes  
Return:    return 0 if successful  
   

6.2.2.7 INT WINAPI RF_M1_INITVAL   

 

Function:  Mifare_Std card Initialize Value   
Prototype:  int WINAPI rf_M1_initval ( unsigned short    icdev,     
                                  unsigned char  block,   

 long  value)  

Parameter:  icdev:   [IN] Device ID  
           block:   [IN] block absolute address  
           pValue:  [IN]  initialize purse value at HEX format, low byte in former   
Return:    return 0 if successful  

   

6.2.2.8 INT WINAPI RF_M1_READVAL   
 

Function:  Mifare_Std Read Value   
Prototype:  int WINAPI rf_M1_readval ( unsigned short    icdev,     
                                  unsigned char  block,   
                                                            long *pValue)   
Parameter:  icdev:   [IN]  Device ID  
           block:   [IN] block absolute address  
                      pValue:      [OUT] response value at HEX format, low byte in former   
Return:    return 0 if successful  
   

6.2.2.9 INT WINAPI RF_M1_INCREMENT   

 

Function:    Mifare purse increment   
Prototype:  int WINAPI rf_M1_increment (unsigned short  icdev,   
                                    unsigned char  block,   
                                    long  value)  
Parameter:  icdev:   [IN]  Device ID  
           block:   [IN]  block absolute address  
                      value:      [IN]    increase value at HEX format, low byte in former   
Return:    return 0 if successful  
   

6.2.2.10 INT WINAPI RF_M1_DECREMENT   

 

Function:    Mifare purse decrement   
Prototype:  int WINAPI rf_M1_decrement (unsigned short  icdev,  
                                    unsigned char  block,   
                                    long  value)  
Parameter:  icdev:   [IN]  Device ID  
           block:   [IN]  block absolute address  
           value:   [IN]  decrease value at HEX format, low byte in former  
Return:    return 0 if successful  
   

Содержание YHY638F

Страница 1: ...Mifare_One S50 S70 UltraLight Mifare_ProX ISO 14443 TypeB AT88RF020 SR176 SRIX4K ISO 15693 Tag_it 2k HF 1 I CODE SLI and more 2 Special Features z Read and write contactless smart cards z Frequency 1...

Страница 2: ...Connecting Connect the YHY638F to the USB or RS232 port of PC after power on the RED led and GREEN led will flash one time then the GREEN led will light on again next the buzzer will beep twice it mea...

Страница 3: ...age 3 of 28 Apr 2010 Connect one of the A type USB connector to the rear side of the YHY638FR another USB connector which near the serial connector connect to the host USB port for power the device an...

Страница 4: ...yp Max Unit IDVDD Supply Current Reading started but no cards in the reader range 90 mA IDVDD Reading started 1 card in the reader range 95 mA Table 2 Current Consumption 4 3 Operating Distance Symbol...

Страница 5: ...tem 5 1 COM setup First run RFIDXray exe then connect the reader to PC COM port Choose the correct COM number click Connect button to connect the Reader to PC Baud set to 115200 Click Read the product...

Страница 6: ...RFID Reader Writer User Manual Version 1 0 Page 6 of 28 Apr 2010 5 3 Mifare_1K STD S50 Click the Request button to obtain the card serial number Input the correct password to read write increase or d...

Страница 7: ...ge 7 of 28 Apr 2010 5 4 Mifare_4K STD S70 Click the Request button to obtain the card serial number Input the correct password to read write increase or decrease the card 5 5 Mifare_ProX Click Reset b...

Страница 8: ...sion 1 0 Page 8 of 28 Apr 2010 the card according to ISO14443 4 protocol Input the COS command click Send button to commute data to card 5 6 SR176 Click Req button to obtain the ID number of the card...

Страница 9: ...ton to obtain the ID number of the card and click Read UID to obtain the UID of the card Then you can read write and lock blocks of the card 5 8 AT88RF020 Click ReqB button to obtain the serial number...

Страница 10: ...ual Version 1 0 Page 10 of 28 Apr 2010 Click INVENTORY button to obtain the serial number of the card You can operate 4 cards at most Choose certain card according to the UID to read or write This dem...

Страница 11: ...Version 1 0 Page 11 of 28 Apr 2010 Click INVENTORY button to obtain the serial number of the card You can operate 4 cards at most Choose certain card according to the UID to read write 5 11 HELP You c...

Страница 12: ...al Version 1 0 Page 12 of 28 Apr 2010 5 12 DISCONNECT READER 5 13 EXIT 6 DLL INFORMATION icdev 0 6 1 SYSTEM FUNCTION 6 1 1 INT WINAPI LIB_VER Function Get DLL Version Prototype int WINAPI lib_ver unsi...

Страница 13: ...formation pLen OUT length of response information Return return 0 if successful 6 1 5 INT WINAPI RF_INIT_TYPE Function Set Reader contactless working mode Prototype int WINAPI rf_init_type unsigned sh...

Страница 14: ...2 1 1 INT WINAPI RF_REQUEST Function ReqA Prototype int WINAPI rf_request unsigned short icdev unsigned char model unsigned short pTagType Parameter icdev IN Device ID model IN REQ MODE pTagType OUT...

Страница 15: ...unsigned char pData Parameter icdev IN Device ID page IN UltraLight card page address 0 0x0F pData IN written data 4 bytes Return return 0 if successful 6 2 1 5 INT WINAPI RF_HALT Function TYPE_A card...

Страница 16: ...nd only one TYPE_A card on active estate at the same influence range at same time 6 2 2 4 INT WINAPI RF_M1_AUTHENTICATION2 Function Mifare_Std Authentify Prototype int WINAPI rf_M1_authentication2 uns...

Страница 17: ...re_Std Read Value Prototype int WINAPI rf_M1_readval unsigned short icdev unsigned char block long pValue Parameter icdev IN Device ID block IN block absolute address pValue OUT response value at HEX...

Страница 18: ...on Mifare Halt Prototype int WINAPI rf_halt unsigned short icdev Parameter icdev IN Device ID Return return 0 if successful Explanation card exit active estate after received this command 6 2 3 Mifare...

Страница 19: ...d char pMsgLg Parameter icdev IN Device ID model IN REQ MODE 0 REQB 1 WUPB pData OUT response data from card pMsgLg OUT length of response data Return return 0 if successful 6 3 2 2 INT WINAPI RF_ AT0...

Страница 20: ...d char pData Parameter icdev IN Device ID pData IN 4 bytes data Return return 0 if successful 6 3 2 7 INT WINAPI RF_ AT020_DESELECT Function AT88RF020 card Deselect Prototype int WINAPI rf_at020_desel...

Страница 21: ...lockreg controls 2 blocks lockreg BLOCK bit_setting b7 14 15 0 Write Enable 1 Block set as ROM b6 12 13 0 Write Enable 1 Block set as ROM b5 10 11 0 Write Enable 1 Block set as ROM b4 8 9 0 Write Enab...

Страница 22: ...if successful Explanation 7 15 blocks of SRIX4K card can be written protect lockreg BLOCK bit_setting b7 15 1 Write Enable 0 Block set as ROM b6 14 1 Write Enable 0 Block set as ROM b5 13 1 Write Enab...

Страница 23: ...turn return 0 if successful Explanation If set Select_flag only the cards on Selected state respond this command If set Address_flag only the cards that the UID are congruous will respond this command...

Страница 24: ...ponse data from tag pLen OUT length of response data Return return 0 if successful Explanation If set Select_flag only the cards on Selected state respond this command If set Address_flag only the car...

Страница 25: ...ock_Block Prototype int WINAPI ISO15693_Lock_Block unsigned short icdev unsigned char model unsigned char pUID unsigned char block Parameter icdev IN Device ID model IN bit0 Select_flag bit1 Addres_fl...

Страница 26: ...e_DSFID Prototype int WINAPI ISO15693_Write_DSFID unsigned short icdev unsigned char model unsigned char UID unsigned char DSFID Parameter icdev IN Device ID model IN bit0 Select_flag bit1 Addres_flag...

Страница 27: ...YHY638F 13 56MHz RFID Reader Writer User Manual Version 1 0 Page 27 of 28 Apr 2010 If write I CODE SLI card clear Option_flag 7 Pictures YHY638 size picture YHY638 Top View...

Страница 28: ...8 Apr 2010 YHY638 Side View YHY638 Back Side View YHY638 Rear Side View Contact Information EHUOYAN Technology Co Ltd Tel 86 010 59870151 Fax 86 010 59754725 email info ehuoyan com WebSite www ehuoyan...

Отзывы: