Skip to content

drinkcat/openez

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EZ100PU open-source driver

NOT FUNCTIONAL

EZ100PU smartcard readers are (still?) very popular in Taiwan, and commonly used to read NHI (health insurance) cards to access services (tax payment, health insurance data, etc.).

There is (was?) an closed source at this URL, but the link is now dead (it's, however, possible to find at least one mirror).

The goal here is to replicate enough of the driver to support the basic features required by the NHI service mLNHIICC.

Status

  • Can power on, and down, the card.
  • Can read ATR.
  • Unable to do anything more complicated.
  • When starting to dig into operations, I realized that the protocol is very close to official USB CCID spec.

Debugging tricks

Run

This doesn't include an Info.plist, so you'll have to get it from the original closed source driver.

This builds a file ezusb.so that you can just swap in /usr/lib/pcsc/drivers/ezusb.bundle/Contents/Linux/.

Packet capture and debug

sudo modprobe usbmon
sudo tcpdump --list-interfaces
# With lsusb, check which bus to monitor
sudo tcpdump -i usbmon3 -s0 -w capture-read.pcap
# I like to use wireshark to look at the pcap.

About

EZ100PU opensource driver

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published