Im developing a NFC reading system with C#, according to given sample codes with SDK I cannot connect the device with the application. Sometimes it return unknown error code (-2146434967) which is not handled in the sample application codes.
But sometimes it return error code 6, which is a constant public const int SCARD_SPECIFIC = 6;
and describe as
/*===============================================================
' This value implies the card has been reset and specific
' communication protocols have been established.
'===============================================================*/
I don't know how to proceed, does somebody have any idea?
Thanks
Contacted ACS team member and found some answers.
For the error 'retCode=6', please do the following steps:
Go to Build->Configuration Manager
Under 'Active solution platform', select 'New' (if x86 does not exists)
Set 'Type or select the new platform:' to "x86"
Set "Copy settings from:" to ""
Check the 'Create new project platforms'
Click 'OK' and rebuild the solution.
For the error 'retCode=-2146434967', it means that the smart card has been removed on the reader.
I've tried this with C#. Ive described on my blog : Simple NFC reading system for windows
I used Mifare classic 1K Tags. Hope someone will take the advantage.
Thanks
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With