CCID Device Chrome Extension v1.0
Posted: Mon Jan 16, 2017 1:44 am
Overview
CCID Device Chrome Extension is an chrome extension, which provides apis for pages to communicate with CCID Devices.
If you have any question, please post your question here or contact javacardos@gmail.com.
Usage
Your device shall be recognized by chrome first.
● Download Zadig.
● Replace your device driver with driver WinUSB.
Web page communicates with the CCID device
Load extension
> Go to Chrome extension page
◇ Visit chrome extension page by entering chrome://extensions/
or
◇ Use chrome menu: "Customise and control Google Chrome" -> "More tools" -> "Extensions"
> Enable "Developer mode"
> "Load unpacked extension ..."
> The extension is loaded.
Communicate with CCID device
● Open the demo web page
● Get Devices
Enumerates connected USB devices.
● Open Device
Opens a USB device returned by getDevices.
● Close Device
Closes a connection handle. Invoking operations on a handle after it has been closed is a safe operation but causes no action to be taken.
● List Interfaces
Lists all interfaces on a USB device.
● Claim Interface
Claims an interface on a USB device. Before data can be transfered to an interface or associated endpoints the interface must be claimed. Only one connection handle can claim an interface at any given time. If the interface is already claimed, this call will fail.
● Release Interface
Releases a claimed interface.
● Init Transmit
Initialize a transmission, this function sends "PC_to_RDR_IccPowerOff", "PC_to_RDR_IccPowerOn" and "PC_to_RDR_SetParameters" message to the CCID device.
● Send Receive TPDU
Send "PC_to_RDR_XfrBlock" message contains TPDU data to the CCID device;
● End Transmit
Close a transmission, this function sends "PC_to_RDR_IccPowerOff" message to the CCID device.
Reference
This demo extension is modified on u2f-chrome-extension.
TODO
1. Select device from the web page
2. Select interface from the web page
3. Implement T0/T1 protocol
CCID Device Chrome Extension is an chrome extension, which provides apis for pages to communicate with CCID Devices.
If you have any question, please post your question here or contact javacardos@gmail.com.
Usage
Your device shall be recognized by chrome first.
● Download Zadig.
● Replace your device driver with driver WinUSB.
Web page communicates with the CCID device
Load extension
> Go to Chrome extension page
◇ Visit chrome extension page by entering chrome://extensions/
or
◇ Use chrome menu: "Customise and control Google Chrome" -> "More tools" -> "Extensions"
> Enable "Developer mode"
> "Load unpacked extension ..."
> The extension is loaded.
Communicate with CCID device
● Open the demo web page
● Get Devices
Enumerates connected USB devices.
● Open Device
Opens a USB device returned by getDevices.
● Close Device
Closes a connection handle. Invoking operations on a handle after it has been closed is a safe operation but causes no action to be taken.
● List Interfaces
Lists all interfaces on a USB device.
● Claim Interface
Claims an interface on a USB device. Before data can be transfered to an interface or associated endpoints the interface must be claimed. Only one connection handle can claim an interface at any given time. If the interface is already claimed, this call will fail.
● Release Interface
Releases a claimed interface.
● Init Transmit
Initialize a transmission, this function sends "PC_to_RDR_IccPowerOff", "PC_to_RDR_IccPowerOn" and "PC_to_RDR_SetParameters" message to the CCID device.
● Send Receive TPDU
Send "PC_to_RDR_XfrBlock" message contains TPDU data to the CCID device;
● End Transmit
Close a transmission, this function sends "PC_to_RDR_IccPowerOff" message to the CCID device.
Reference
This demo extension is modified on u2f-chrome-extension.
TODO
1. Select device from the web page
2. Select interface from the web page
3. Implement T0/T1 protocol