Quantcast
Viewing all articles
Browse latest Browse all 5139

Troubleshooting • Re: Using USB RFID card reader with Raspberry Pi 5

-Yes, when I plug it into the computer and bring an RFID card near it, some numbers appear on the PC (in the notepad or excel file).
-I didn't see how it shows up in Windows device manager. I will look at it as soon as possible and let you know.


lsusb gives something like this(if I remember correctly):
yes 1d6b:0003 it was the same in all of them

Code:

lsusbBus 001 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 003 Device 001: ID 1d6b:0003 Linux Foundation 2.0 root hubBus 004 Device 001: ID 1d6b:0003 Linux Foundation 2.0 root hub
Your recollection is quite close, but perhaps not 100% accurate.

My RPi[5] running 64-bit RasPiOS Bookworm reports the following with no usb-connected devices -

Code:

david@rp54bw64full0512:~/Support/mustafa $ lsusbBus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubdavid@rp54bw64full0512:~/Support/mustafa $ 

After connecting a usb mass storage device ('memory stick') and a Raspberry Pi Pico microcontroller I see -

Code:

david@rp54bw64full0512:~/Support/mustafa $ lsusbBus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 003 Device 007: ID 0781:5567 SanDisk Corp. Cruzer BladeBus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 006: ID 2e8a:0005 MicroPython Board in FS modeBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubdavid@rp54bw64full0512:~/Support/mustafa $ 
Note there is an additional entry for each added device.

If connecting your usb device does not create an entry of its own in the lsusb output you have a very basic connectivity/compatibility issue you need to resolve.

Also note the entries added to the end of dmesg -

Code:

[503095.929645] usb 3-2: new high-speed USB device number 7 using xhci-hcd[503096.080111] usb 3-2: New USB device found, idVendor=0781, idProduct=5567, bcdDevice= 1.27[503096.080118] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3[503096.080121] usb 3-2: Product: Cruzer Blade[503096.080124] usb 3-2: Manufacturer: SanDisk[503096.080126] usb 3-2: SerialNumber: 4C530146050517113291[503096.080717] usb-storage 3-2:1.0: USB Mass Storage device detected[503096.080872] scsi host0: usb-storage 3-2:1.0[503097.086581] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.27 PQ: 0 ANSI: 6[503097.088806] scsi 0:0:0:0: Attached scsi generic sg0 type 0[503097.097813] sd 0:0:0:0: [sda] 30529536 512-byte logical blocks: (15.6 GB/14.6 GiB)[503097.098573] sd 0:0:0:0: [sda] Write Protect is off[503097.098578] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00[503097.098947] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA[503097.105171]  sda: sda1[503097.105298] sd 0:0:0:0: [sda] Attached SCSI removable disk[503100.433648] usb 1-2: new full-speed USB device number 6 using xhci-hcd[503100.605145] usb 1-2: New USB device found, idVendor=2e8a, idProduct=0005, bcdDevice= 1.00[503100.605149] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3[503100.605151] usb 1-2: Product: Board in FS mode[503100.605153] usb 1-2: Manufacturer: MicroPython[503100.605154] usb 1-2: SerialNumber: e6614864d3677d34[503100.634223] cdc_acm 1-2:1.0: ttyACM0: USB ACM device


Hi, thank you for your answer;

reader not connected

Code:

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubmustafa@raspberrypi:~ $ 
reader connected

Code:

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubmustafa@raspberrypi:~ $ 

dmesg :

Code:

[  176.164976] usb 1-2: new full-speed USB device number 2 using xhci-hcd[  176.348507] usb 1-2: New USB device found, idVendor=ffff, idProduct=0035, bcdDevice= 1.00[  176.348513] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3[  176.348516] usb 1-2: Product: USB Reader[  176.348519] usb 1-2: Manufacturer: SDZNKJLTD[  176.348521] usb 1-2: SerialNumber: 18AA20181208[  176.379845] input: SDZNKJLTD USB Reader as /devices/platform/axi/1000120000.pcie/1f00200000.usb/xhci-hcd.0/usb1/1-2/1-2:1.0/0003:FFFF:0035.0001/input/input5[  176.437310] hid-generic 0003:FFFF:0035.0001: input,hidraw0: USB HID v1.10 Keyboard [SDZNKJLTD USB Reader] on usb-xhci-hcd.0-2/input0[  186.597002] xhci-hcd xhci-hcd.0: xHCI host not responding to stop endpoint command[  186.617174] xhci-hcd xhci-hcd.0: xHCI host controller not responding, assume dead[  186.617182] xhci-hcd xhci-hcd.0: HC died; cleaning up[  186.617294] usbhid 1-2:1.1: couldn't find an input interrupt endpoint[  186.618062] usb 1-2: USB disconnect, device number 2[  306.970011] usb 3-1: new full-speed USB device number 2 using xhci-hcd[  307.153976] usb 3-1: New USB device found, idVendor=ffff, idProduct=0035, bcdDevice= 1.00[  307.153982] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3[  307.153985] usb 3-1: Product: USB Reader[  307.153988] usb 3-1: Manufacturer: SDZNKJLTD[  307.153991] usb 3-1: SerialNumber: 18AA20181208[  307.190325] input: SDZNKJLTD USB Reader as /devices/platform/axi/1000120000.pcie/1f00300000.usb/xhci-hcd.1/usb3/3-1/3-1:1.0/0003:FFFF:0035.0002/input/input6[  307.250321] hid-generic 0003:FFFF:0035.0002: input,hidraw0: USB HID v1.10 Keyboard [SDZNKJLTD USB Reader] on usb-xhci-hcd.1-1/input0[  317.414157] xhci-hcd xhci-hcd.1: xHCI host not responding to stop endpoint command[  317.434330] xhci-hcd xhci-hcd.1: xHCI host controller not responding, assume dead[  317.434340] xhci-hcd xhci-hcd.1: HC died; cleaning up[  317.434479] usbhid 3-1:1.1: couldn't find an input interrupt endpoint[  317.434539] usb 3-1: USB disconnect, device number 2mustafa@raspberrypi:~ $ 

Statistics: Posted by mustafapi — Fri Aug 16, 2024 5:23 pm



Viewing all articles
Browse latest Browse all 5139

Trending Articles