Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown CardService type: MifarePlusStorageSL1 when writing MAD Data to PLUS S chip in SL1 #207

Open
c3rebro opened this issue Aug 9, 2022 · 2 comments
Labels

Comments

@c3rebro
Copy link

c3rebro commented Aug 9, 2022

It seems using a StorageService on SL1 Plus Cards is not implemented?

var cmd = card.getCommands() as MifareCommands;
var cardService = card.getService(LibLogicalAccess.CardServiceType.CST_STORAGE) as StorageCardService;

try
{
     cardService.writeData(mlocation, aiToUse, aiToWrite, new ByteVector(buffer), CardBehavior.CB_AUTOSWITCHAREA);
}
catch (Exception e)
{
...
}

The above throws the mentioned LibLogicalAccessNETCE Exception. I tried with:

var aiToUse = new MifareAccessInfo
{
		useMAD = _useMADToAuth, (true)
		keyA = mAKeyToUse,
		keyB = mBKeyToUse

		aiToUse.madKeyA = madAKeyToUse;
		aiToUse.madKeyB = madBKeyToUse;
		aiToUse.madGPB = _madGPB; (0xC1)
};
@Maxhy Maxhy added the bug label Aug 19, 2022
@Maxhy
Copy link
Member

Maxhy commented Aug 19, 2022

Yeah Mifare Plus are not well supported, see #1. We added such chip support a decade ago but we are not testing it anymore as we used to "not like" this chip for several technical reasons. I guess it could be easily fixed if you are using SL1.

@c3rebro
Copy link
Author

c3rebro commented Aug 22, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants