controlvault2-nfc-enable
controlvault2-nfc-enable copied to clipboard
Update README.Confirmed working for Dell Latritude 5420
[nix-shell:/tmp/controlvault2-nfc-enable]$ pcsc_scan PC/SC device scanner V 1.7.1 (c) 2001-2022, Ludovic RousseauUsing reader plug'n play mechanism Scanning present readers... 0: Broadcom Corp 58200 [Contacted SmartCard] (0123456789ABCD) 00 00 1: Broadcom Corp 58200 [Contactless SmartCard] (0123456789ABCD) 01 00
At least for turning on it worked, but turing off and back on does not work
[nix-shell:/tmp/controlvault2-nfc-enable]$ sudo python3 nfc.py on
[sudo] password for beardhatcode:
INFO:__main__:Looking for supported device...
INFO:__main__:Found 0A5C:5843
DEBUG:cvcomm:Enumerating interfaces...
DEBUG:cvcomm:Interface found: INTERFACE 3: Vendor Specific
DEBUG:cvcomm:Enumerating endpoints...
DEBUG:cvcomm:BULK IN found: ENDPOINT 0x84: Bulk IN
DEBUG:cvcomm:BULK OUT found: ENDPOINT 0x4: Bulk OUT
DEBUG:cvcomm:Endpoint discovery successful.
INFO:__main__:Handler ControlVault3 (Broadcom ControlVault 3)
INFO:__main__:Turning NFC on...
DEBUG:cvcomm:Control: (65, 1, 0, 3) {}
DEBUG:cvcomm:Put: 01 00 00 04 20 00 01 00
DEBUG:cvcomm:Got: 00 00 00 06 40 00 03 00 10 00
DEBUG:cvcomm:Control: (65, 1, 1, 3) {}
DEBUG:cvcomm:Control: (65, 0, 0, 3) {}
DEBUG:cvcomm:Control: (65, 0, 1, 3) {}
DEBUG:cvcomm:Control: (65, 1, 0, 3) {}
DEBUG:cvcomm:Put: 01 00 00 04 20 00 01 00
DEBUG:cvcomm:Got: 00 00 00 06 40 00 03 00 11 00
DEBUG:cvcomm:Put: 01 00 00 03 20 01 00
DEBUG:cvcomm:Got: 00 00 00 1a 40 01 17 00 03 0e 02 01 06 00 01 02 03 81 83 08 00 04 ff 0f 00 2e 04 10 2b 41
DEBUG:cvcomm:Put: 01 00 00 05 20 03 02 01 52
DEBUG:cvcomm:Got: 00 00 00 08 40 03 05 00 01 52 01 10
DEBUG:cvcomm:Put: 01 00 00 22 20 02 1f 0a 21 01 00 28 01 00 30 01 04 31 01 03 54 01 06 5b 01 00 60 01 07 80 01 01 81 01 01 82 01 0e
DEBUG:cvcomm:Got: 00 00 00 05 40 02 02 00 00
DEBUG:cvcomm:Put: 01 00 00 13 21 00 10 05 04 03 02 05 03 03 01 01 01 02 01 01 03 01 01
DEBUG:cvcomm:Got: 00 00 00 04 61 07 01 00
DEBUG:cvcomm:Put: 01 00 00 0a 21 01 07 00 01 01 03 00 01 05
DEBUG:cvcomm:Got: 00 00 00 04 41 00 01 00
DEBUG:cvcomm:Put: 01 00 00 0c 20 02 09 01 b9 06 01 00 00 0b 00 00
DEBUG:cvcomm:Got: 00 00 00 04 41 01 01 00
DEBUG:cvcomm:Put: 01 00 00 ca 20 02 c7 11 18 01 02 2a 01 32 80 01 00 c2 02 03 02 c4 02 00 13 ca 05 00 0f 0d 03 08 cb 01 00 d6 0b 01 01 00 01 12 00 01 00 01 00 01 d8 01 01 de 04 01 00 00 00 e0 07 00 60 93 1c 63 3e 0a e1 02 79 07 e2 2a 48 07 0c 10 00 31 39 39 39 39 39 39 39 39 39 39 41 39 90 90 90 90 3f 90 90 90 88 8a 8c 94 94 28 04 07 00 00 00 00 00 00 00 00 e3 08 17 04 16 0d 10 0c 2b 0b e4 01 37 e5 1e e0 1e 02 12 00 0a 00 10 04 54 54 54 54 2b 52 50 53 4e 20 2d 18 0c 02 07 00 94 70 94 70 20 e6 2d 01 68 00 77 00 8b 00 a7 00 d6 00 22 01 c0 01 9e 58 4c 40 33 26 20 1e 68 00 77 00 8b 00 a7 00 d6 00 22 01 c0 01 5e 58 4c 40 33 2b 26 1e
DEBUG:cvcomm:Got: 00 00 00 05 40 02 02 00 00
DEBUG:cvcomm:Put: 01 00 00 09 2f 1b 06 08 00 00 01 00 00
DEBUG:cvcomm:Got: 00 00 00 05 40 02 02 00 00
DEBUG:cvcomm:Put: 01 00 00 30 20 02 2d 04 29 11 46 66 6d 01 01 11 02 02 03 80 03 02 00 01 04 01 64 2a 01 30 61 11 46 66 6d 01 01 11 02 02 03 80 03 02 00 01 04 01 64 62 01 30
DEBUG:cvcomm:Got: 00 00 00 04 4f 1b 01 00
DEBUG:cvcomm:Put: 01 00 00 11 20 02 0e 04 18 01 01 32 01 40 50 01 02 00 02 2c 01
DEBUG:cvcomm:Got: 00 00 00 05 40 02 02 00 00
DEBUG:cvcomm:Put: 01 00 00 10 21 03 0d 06 00 01 01 01 02 01 06 01 80 01 82 01
DEBUG:cvcomm:Got: 00 00 00 05 40 02 02 00 00
DEBUG:cvcomm:Control: (65, 1, 1, 3) {}
INFO:__main__:NFC should be turned on now!
[nix-shell:/tmp/controlvault2-nfc-enable]$ pcsc_scan
PC/SC device scanner
V 1.7.1 (c) 2001-2022, Ludovic Rousseau <[email protected]>
Using reader plug'n play mechanism
Scanning present readers...
0: Broadcom Corp 58200 [Contacted SmartCard] (0123456789ABCD) 00 00
1: Broadcom Corp 58200 [Contactless SmartCard] (0123456789ABCD) 01 00
Fri Jul 5 09:25:04 2024
Reader 0: Broadcom Corp 58200 [Contacted SmartCard] (0123456789ABCD) 00 00
Event number: 0
Card state: Card removed,
Reader 1: Broadcom Corp 58200 [Contactless SmartCard] (0123456789ABCD) 01 00
Event number: 4
Card state: Card removed,
Fri Jul 5 09:25:56 2024
Reader 1: Broadcom Corp 58200 [Contactless SmartCard] (0123456789ABCD) 01 00
Event number: 5
Card state: Card inserted,
<redacted>
[nix-shell:/tmp/controlvault2-nfc-enable]$ sudo python3 nfc.py off
INFO:__main__:Looking for supported device...
INFO:__main__:Found 0A5C:5843
DEBUG:cvcomm:Enumerating interfaces...
DEBUG:cvcomm:Interface found: INTERFACE 3: Vendor Specific
DEBUG:cvcomm:Enumerating endpoints...
DEBUG:cvcomm:BULK IN found: ENDPOINT 0x84: Bulk IN
DEBUG:cvcomm:BULK OUT found: ENDPOINT 0x4: Bulk OUT
DEBUG:cvcomm:Endpoint discovery successful.
INFO:__main__:Handler ControlVault3 (Broadcom ControlVault 3)
INFO:__main__:Turning NFC off...
DEBUG:cvcomm:Control: (65, 1, 0, 3) {}
DEBUG:cvcomm:Control: (65, 0, 0, 3) {}
INFO:__main__:NFC should be turned off now!
[nix-shell:/tmp/controlvault2-nfc-enable]$ sudo python3 nfc.py on
INFO:__main__:Looking for supported device...
INFO:__main__:Found 0A5C:5843
DEBUG:cvcomm:Enumerating interfaces...
DEBUG:cvcomm:Interface found: INTERFACE 3: Vendor Specific
DEBUG:cvcomm:Enumerating endpoints...
DEBUG:cvcomm:BULK IN found: ENDPOINT 0x84: Bulk IN
DEBUG:cvcomm:BULK OUT found: ENDPOINT 0x4: Bulk OUT
DEBUG:cvcomm:Endpoint discovery successful.
INFO:__main__:Handler ControlVault3 (Broadcom ControlVault 3)
INFO:__main__:Turning NFC on...
DEBUG:cvcomm:Control: (65, 1, 0, 3) {}
DEBUG:cvcomm:Put: 01 00 00 04 20 00 01 00
Traceback (most recent call last):
File "/tmp/controlvault2-nfc-enable/nfc.py", line 66, in <module>
handler.turn_on()
File "/tmp/controlvault2-nfc-enable/cv3.py", line 30, in turn_on
self.communicator.talk(self.turn_on_seq1)
File "/tmp/controlvault2-nfc-enable/cvcomm.py", line 53, in talk
data = self.recv_packet()
^^^^^^^^^^^^^^^^^^
File "/tmp/controlvault2-nfc-enable/cvcomm.py", line 37, in recv_packet
packet = self.read(64, timeout=5000).tobytes()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/controlvault2-nfc-enable/cvcomm.py", line 28, in read
return self.bulk_in.read(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/vhmiaxicwjykiw0p0skn03ycnriijblm-python3-3.11.9-env/lib/python3.11/site-packages/usb/core.py", line 423, in read
return self.device.read(self, size_or_buffer, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/vhmiaxicwjykiw0p0skn03ycnriijblm-python3-3.11.9-env/lib/python3.11/site-packages/usb/core.py", line 1029, in read
ret = fn(
^^^
File "/nix/store/vhmiaxicwjykiw0p0skn03ycnriijblm-python3-3.11.9-env/lib/python3.11/site-packages/usb/backend/libusb1.py", line 846, in bulk_read
return self.__read(self.lib.libusb_bulk_transfer,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/vhmiaxicwjykiw0p0skn03ycnriijblm-python3-3.11.9-env/lib/python3.11/site-packages/usb/backend/libusb1.py", line 954, in __read
_check(retval)
File "/nix/store/vhmiaxicwjykiw0p0skn03ycnriijblm-python3-3.11.9-env/lib/python3.11/site-packages/usb/backend/libusb1.py", line 602, in _check
raise USBTimeoutError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBTimeoutError: [Errno 110] Operation timed out
[nix-shell:/tmp/controlvault2-nfc-enable]$ sudo python3 nfc.py reset
INFO:__main__:Looking for supported device...
INFO:__main__:Found 0A5C:5843
DEBUG:cvcomm:Enumerating interfaces...
DEBUG:cvcomm:Interface found: INTERFACE 3: Vendor Specific
DEBUG:cvcomm:Enumerating endpoints...
DEBUG:cvcomm:BULK IN found: ENDPOINT 0x84: Bulk IN
DEBUG:cvcomm:BULK OUT found: ENDPOINT 0x4: Bulk OUT
DEBUG:cvcomm:Endpoint discovery successful.
INFO:__main__:Handler ControlVault3 (Broadcom ControlVault 3)
INFO:__main__:Resetting device...
INFO:__main__:NFC device has been reset!
[nix-shell:/tmp/controlvault2-nfc-enable]$ sudo python3 nfc.py on
INFO:__main__:Looking for supported device...
INFO:__main__:Found 0A5C:5843
DEBUG:cvcomm:Enumerating interfaces...
DEBUG:cvcomm:Interface found: INTERFACE 3: Vendor Specific
DEBUG:cvcomm:Enumerating endpoints...
DEBUG:cvcomm:BULK IN found: ENDPOINT 0x84: Bulk IN
DEBUG:cvcomm:BULK OUT found: ENDPOINT 0x4: Bulk OUT
DEBUG:cvcomm:Endpoint discovery successful.
INFO:__main__:Handler ControlVault3 (Broadcom ControlVault 3)
INFO:__main__:Turning NFC on...
DEBUG:cvcomm:Control: (65, 1, 0, 3) {}
DEBUG:cvcomm:Put: 01 00 00 04 20 00 01 00
Traceback (most recent call last):
File "/tmp/controlvault2-nfc-enable/nfc.py", line 66, in <module>
handler.turn_on()
File "/tmp/controlvault2-nfc-enable/cv3.py", line 30, in turn_on
self.communicator.talk(self.turn_on_seq1)
...
usb.core.USBTimeoutError: [Errno 110] Operation timed out