Hello,
FEIG ELECTRONIC supports some ST-custom commands on a selection of their readers. In particular, the following M24LR commands are supported on several devices (ID ISC.LR2000, LR2500, MR/PR101. LR1002, MR102, PRH102 and PRH200):
- RF command code 0xB1: Write Sector Password
- RF command code 0xB2: Lock Sector Password
- RF command code 0xB3: Present Sector Password
There are at least two ways to send custom commands using a FEIG ELECTRONIC reader:
- The easy way to go is to use the FedmIscTagHandler class for the M24LR tag. Check FEIG's C++ FEDM manual for more information (ref. H10202-32e-ID-B)
- In the ISOStart software provided by FEIG, you can find STMicroelectronics Custom commands in the 0xB1 ISO Host Commands section. There you can find M24LR commands such as Present Password, which translate into the following frame: 02 00 0F FF B1 02 B3 00 01 00 00 00 00 21 7E
The following code has not been tested but this should put you on the right path:
SetData(FEDM_ISC_TMP_B1_CMD, (UCHAR) 0xB3); // Present Password
SetData(FEDM_ISC_TMP_B1_MFR, (UCHAR) FEDM_ISC_ISO_MFR_STM);
// Other call to set password value
int iStatus = SendProtocol(0xB1);
If you were using Java, I would strongly recommend our ST25 SDK: https://www.st.com/st25sdk
Maybe for your next project?
Regards,
Damien