Skip to content

Experimental plugin using a USB smartcard reader and a CSCS card

License

Notifications You must be signed in to change notification settings

digi-chris/cordova-plugin-usb-ccid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-usb-ccid

Experimental plugin using a USB smartcard reader and a CSCS card

This code has been built upon original code by Krishnendu Sekhar Das:

https://github.com/krish-dev/cordova-plugin-k-usb-nfc

I was looking for something that could connect with a USB CCID reader and read the data from a card.

While Krishnendu's original code was designed to work with NFC readers, I found it was able to communicate just as easily with a USB smartcard reader when running in non-contactless mode. However, I needed to make some changes to make it work correctly for my use case - starting by adding a 'listen' callback that fires whenever a card is inserted or removed from the reader.

I also added the 'transmit' function that allows low-level communications to/from the card directly within Cordova. The main idea is that you can write your own data handling logic in Javascript.

However, at the moment it is a bit of a hack between the original code and my new methods - for example, it will generate APDU commands internally, but doesn't really interpret the response codes, sending them onto the host app instead.

About

Experimental plugin using a USB smartcard reader and a CSCS card

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published