I recently bought a USB reader/writer for 125kHz RFID tokens. It comes directly from china with no driver/API description, just a windows application called RFID-APP-E-N.exe or RFID_APP_EN.exe on a CD, and a PL2303 driver for the USB-to-serial convertor used by the device.

A reverse engineering of a USB capture allowed to have a good view of the serial protocol used.

Here's a python script/driver to handle the device: rfid_app.py

Comme de nombreux propriétaires de macbook, le connecteur de mon adaptateur secteur a malheureusement cassé il y a quelques jours :(. Les fils et prises semblent trop fins, et tendent à casser à l'intérieur du connecteur magsafe après de nombreuses tortions. Pour tous les appareils non-apple, les connecteurs sont renforcés pour limiter le rayon de courbure, ce qui augmente la durée de vie.

Bon, tentons de le réparer !

Après démontage du connecteur (en utilisant une pince pour tirer sur la pièce métallique) :

The osx-pl2303 project proposes a Mac OS X driver for the PL2303 Serial/USB convertor. Unfortunately, the current version do not support 64bits kernel.

Here's a patch to allow to compile the source code for the x86_64 architecture (Intel 64bits):

# svn checkout svn://svn.code.sf.net/p/osx-pl2303/code/trunk osx-pl2303
# cd osx-pl2303
# ftp http://www.triades.net/downloads/osx-pl2303-intel64.patch
# patch < osx-pl2303-intel64.patch

And an installation package (the original PPC and Intel 32bits versions, with additional Intel 64bits support). Tested on Mac OS X Lion (10.7.x).