Forum / MIFARE and NFC Reader IC`s / CLRC663 family / RC663 Anticollision
-
Does anyone have an example script to handle anticollision when 2 cards are in the field?
+ 0 | - 0
Thank you very much Jamie for finding it yourself. This change is mentioned in the release note of that library.
+ 0 | - 0
Here is one example of scanning ISO14443 -A type cards based on NXPRdLib. Please let me know if it is you are looking for or you want a script like running in joiner.
static void ScanTags(void)
{
uint8_t bMoreCardsAvailable;
uint8_t bSak[1];
uint8_t numTags = 0;
bLastUidLength = 0;
/* Activate the communication layer part 3
* of the ISO 14443A standard. */
status = phpalI14443p3a_Sw_ActivateCard(&I14443p3a, NULL, 0x00, bUid,
&bUidLength, bSak, &bMoreCardsAvailable);
numTags = 1;
while(PH_ERR_SUCCESS == status)
{
bLastUidLength = bUidLength;
memcpy(bSelectedUid,bUid,bUidLength);
debug_printf_msg("Tag number:");
debug_printf_hex_msg(&numTags, 1);
debug_printf_msg("UID:");
debug_printf_hex_msg(bUid, bUidLength);
//halt the tag
status = phpalI14443p3a_Sw_HaltA(&I14443p3a);
/* move on to activating the next card */
status = phpalI14443p3a_Sw_ActivateCard(&I14443p3a, NULL, 0x00,bUid,
&bUidLength, bSak, &bMoreCardsAvailable);
if(status != PH_ERR_SUCCESS)
debug_printf_msg("No more tags detected");
else
numTags++;
}
}
+ 0 | - 0
Thanks for the link.
I have looked at the code
Even tried to install Eclipse IDE and compile them(failed).
These projects use the NXPRdLib to most of the work.
My problem is, i have been using the MifareDiscover application (which uses the NXPRdLib).
But I cannot get it to complete the anticollision loop.(using NXP pagoda, doesn't work with RC663)
I have also found a VS2008 set of example RC663 projects using the NXPRdLib.
This will complie but fails on phhalHw_ApplyProtocolSettings . status 0x0225
Any help would be most appreciated.
+ 0 | - 0
Please refer this link http://www.nxp.com/demoboard/CLEV663B.html#documentation. The Anticollision flows is shown inside any one of the example projects.
+ 0 | - 0
Update.
I have tired using the VS2008 examples for the RC663 contained within the NxpRdLib.
Using the NXP Red board Evaluation PCB v3.0. The Example-Rc663_Mfc example fails.
I have now found this to be a error in the libray.
specifically
#define PHHAL_HW_CLRC663_PRODUCT_ID 0x0140U /**< Product ID for CLRC663. */
in phhalHw_Rc663_Int.h
changed to
#define PHHAL_HW_CLRC663_PRODUCT_ID 0x0100U /**< Product ID for CLRC663. */
This now works..
Do I have an odd PCB?
+ 0 | - 0
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.