Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

U2F extension can not access USB device

JavaCard Applet Development Related Questions and Answers.
Tarantino
Posts: 101
Joined: Wed Aug 19, 2015 1:56 am
Points :478
Contact:

U2F extension can not access USB device

Post by Tarantino » Tue Jan 03, 2017 5:22 am

Me again. I still have a problem. I have modified usbDevices vendorId and productId of permisssions in manifest.json. But it can not enumerate my device all the same, please help me out.
The greatest glory in living lies not in never falling, but in rising every time we fall.--Nelson Mandela

Thelogan
Posts: 40
Joined: Thu Aug 20, 2015 4:48 am
Points :250
Contact:

Re: U2F extension can not access USB device

Post by Thelogan » Tue Jan 03, 2017 10:44 pm

Is your device a hid device or a usb device?

User avatar
mabel
Posts: 237
Joined: Mon May 18, 2015 3:09 am
Points :1705
Contact:

Re: U2F extension can not access USB device

Post by mabel » Tue Jan 03, 2017 10:48 pm

Is your device a U2F device?

Tarantino
Posts: 101
Joined: Wed Aug 19, 2015 1:56 am
Points :478
Contact:

Re: U2F extension can not access USB device

Post by Tarantino » Tue Jan 03, 2017 11:13 pm

Thelogan wrote:Is your device a hid device or a usb device?


USB device
The greatest glory in living lies not in never falling, but in rising every time we fall.--Nelson Mandela

Tarantino
Posts: 101
Joined: Wed Aug 19, 2015 1:56 am
Points :478
Contact:

Re: U2F extension can not access USB device

Post by Tarantino » Tue Jan 03, 2017 11:28 pm

mabel wrote:Is your device a U2F device?


No. Image that if it's a u2f device, after i added "u2fDevices" permission in permisssions of manifest.json, it was supposed to work.

Am i right?
The greatest glory in living lies not in never falling, but in rising every time we fall.--Nelson Mandela

Thelogan
Posts: 40
Joined: Thu Aug 20, 2015 4:48 am
Points :250
Contact:

Re: U2F extension can not access USB device

Post by Thelogan » Wed Jan 04, 2017 1:25 am

Is the extension written by yourself? Or use the open source extension https://github.com/google/u2f-ref-code ?

Tarantino
Posts: 101
Joined: Wed Aug 19, 2015 1:56 am
Points :478
Contact:

Re: U2F extension can not access USB device

Post by Tarantino » Wed Jan 04, 2017 1:57 am

Thelogan wrote:Is the extension written by yourself? Or use the open source extension https://github.com/google/u2f-ref-code ?


I used the open source extension.
The greatest glory in living lies not in never falling, but in rising every time we fall.--Nelson Mandela

Thelogan
Posts: 40
Joined: Thu Aug 20, 2015 4:48 am
Points :250
Contact:

Re: U2F extension can not access USB device

Post by Thelogan » Wed Jan 04, 2017 2:22 am

Here is part of code from usbgnubbydevice.js

Code: Select all

/**
  * @const
  */
 UsbGnubbyDevice.WINUSB_VID_PIDS = [
       {'vendorId': 4176, 'productId': 529}  // Yubico WinUSB
            ];


From the code, you can get that the usb device in this extension works only for Yubico device. So you need to modify vendorId and productId according to to your own device.

Note:
The extension is sure to call API chrome.usb.getDevices() to enumerate usb device. Thus you can check palce where uses this API to find out the problem.

Tarantino
Posts: 101
Joined: Wed Aug 19, 2015 1:56 am
Points :478
Contact:

Re: U2F extension can not access USB device

Post by Tarantino » Wed Jan 04, 2017 6:14 am

Thelogan wrote:Here is part of code from usbgnubbydevice.js

Code: Select all

/**
  * @const
  */
 UsbGnubbyDevice.WINUSB_VID_PIDS = [
       {'vendorId': 4176, 'productId': 529}  // Yubico WinUSB
            ];


From the code, you can get that the usb device in this extension works only for Yubico device. So you need to modify vendorId and productId according to to your own device.

Note:
The extension is sure to call API chrome.usb.getDevices() to enumerate usb device. Thus you can check palce where uses this API to find out the problem.



Aha, it works, it works.. Thank you very much for your help.
The greatest glory in living lies not in never falling, but in rising every time we fall.--Nelson Mandela

Tarantino
Posts: 101
Joined: Wed Aug 19, 2015 1:56 am
Points :478
Contact:

Re: U2F extension can not access USB device

Post by Tarantino » Wed Jan 04, 2017 10:29 pm

Command format that the extension sends is not inconsistent with my product command format. I may need to implement it by myself.
The greatest glory in living lies not in never falling, but in rising every time we fall.--Nelson Mandela

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: Majestic-12 [Bot] and 14 guests

JavaCard OS : Disclaimer