Search found 53 matches

by DaHuFa
Thu May 14, 2020 6:24 am
Forum: Questions & Answers
Topic: About FIDO CBOR cmd '04'
Replies: 0
Views: 724

About FIDO CBOR cmd '04'

When firefox send cbor cmd '04', COS need 1.2s to process this command. In this time, COS send keep alive command to firefox. But firefox send init command not wait for response. what happend?
by DaHuFa
Thu May 14, 2020 6:16 am
Forum: Questions & Answers
Topic: About pyusb
Replies: 5
Views: 11426

Re: About pyusb

If you want to work on libusb, the fist step is replacing your device driver. I usb "zadig-2.5.exe" replaced my CCID reader. I can send apdu and recv sw now. :lol:
by DaHuFa
Fri Apr 24, 2020 2:54 am
Forum: Questions & Answers
Topic: About pyusb
Replies: 5
Views: 11426

Re: About pyusb

Now, I'm getting a little clearer on Libusb. winUSB is the grandfather. libusb is the son. pyusb is grandson. All operations base on winUSB. libusb is only a lib. It encapsulates winUSB operations and provides a uniform interfaces. pyusb is python module. If I use C language, I can use libusb too.
by DaHuFa
Thu Mar 12, 2020 2:13 am
Forum: Questions & Answers
Topic: About pyusb
Replies: 5
Views: 11426

Re: About pyusb

Now I resolved this problem by installed the newest libusb(libusb-1.0.22). And set_configuration() worked rightly. But a new question appread. Tt is write function. dev = usb.core.find(idVendor=0x096e, idProduct=0x0856) dev.set_configuration() cfg = dev.get_active_configuration() for intf in cfg: if...
by DaHuFa
Wed Mar 11, 2020 2:45 am
Forum: Questions & Answers
Topic: About pyusb
Replies: 5
Views: 11426

Re: About pyusb

Did my smartcard reader driver cause this question?
by DaHuFa
Wed Mar 11, 2020 2:43 am
Forum: Questions & Answers
Topic: About pyusb
Replies: 5
Views: 11426

About pyusb

I want use pyusb to test my CCID device. But I'm new to pyusb. I installed pyusb and liusb. But when I called get_active_configuration() or set_configuration(), I got the "Operation not supported or unimplemented on this platform" information. Why?
by DaHuFa
Fri Jul 12, 2019 12:22 am
Forum: Questions & Answers
Topic: How to process INIT command of FIDO
Replies: 1
Views: 2061

Re: How to process INIT command of FIDO

javacard should return channel busy on 02 and process the command came form 01 continue.
by DaHuFa
Wed May 29, 2019 3:01 am
Forum: MCU Programming
Topic: What's the difference between SLEEP and HALT
Replies: 2
Views: 7481

Re: What's the difference between SLEEP and HALT

As far as I know, SLEEP mode and HALT mode are designed to save power. Because SLEEP mode usually closes more peripherals, SLEEP mode can save more power than HALT mode.
JavaCard OS : Disclaimer