chdkptp on Raspberry Pi 4 - ERROR: no matching device - General Help and Assistance on using CHDK stable releases - CHDK Forum

chdkptp on Raspberry Pi 4 - ERROR: no matching device

  • 6 Replies
  • 4078 Views
chdkptp on Raspberry Pi 4 - ERROR: no matching device
« on: 25 / January / 2021, 22:18:53 »
Advertisements
I am trying to get chdkptp running on a Raspberry Pi 4 connected to a Cannon PowerShot Elph 180. I put CHDK on an SD card using the STICK tool, disabled the USB remote thing in the menu, plugged it in, and powered it on.  I downloaded the chdkptp-r921-raspbian-gui.zip, unzipped it, and  executed the chdkptp_gui.sh script. The camera is not listed to connect. I am trying to figure out what else I need to do.


*

Offline reyalp

  • ******
  • 14126
Re: chdkptp on Raspberry Pi 4 - ERROR: no matching device
« Reply #1 on: 25 / January / 2021, 22:53:38 »
I am trying to get chdkptp running on a Raspberry Pi 4 connected to a Cannon PowerShot Elph 180. I put CHDK on an SD card using the STICK tool, disabled the USB remote thing in the menu, plugged it in, and powered it on.
That error message sounds like the camera isn't recognized at all.

Do you see the camera in the output of lsusb? It should be something like
Code: [Select]
Bus 001 Device 005: ID 04a9:32c1 Canon, Inc. PowerShot ELPH 180 / IXUS 175
You should also see some messages in the kernel log (dmesg output) like
Code: [Select]
[1417978.009601] usb 1-1.3.4: new high-speed USB device number 5 using dwc_otg
[1417978.141879] usb 1-1.3.4: New USB device found, idVendor=04a9, idProduct=32c1, bcdDevice= 0.02
[1417978.141912] usb 1-1.3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1417978.141929] usb 1-1.3.4: Product: Canon Digital Camera
[1417978.141944] usb 1-1.3.4: Manufacturer: Canon Inc.
...

Edit:
This would also happen if you had USB remote turned on, so double check that the "enable remote" checkbox is empty.
« Last Edit: 25 / January / 2021, 22:55:53 by reyalp »
Don't forget what the H stands for.

Re: chdkptp on Raspberry Pi 4 - ERROR: no matching device
« Reply #2 on: 26 / January / 2021, 12:58:29 »
I do not see the camera with lsusb.

Code: [Select]
pi@raspberrypi:~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

When I plug in a camera I get the following in /va/log/kern.log
Code: [Select]
Jan 26 11:33:12 raspberrypi kernel: [78899.630307] usb 1-1.3: new high-speed USB device number 3 using xhci_hcd
Jan 26 11:33:13 raspberrypi kernel: [78900.180491] usb 1-1.3: device descriptor read/64, error -71
Jan 26 11:33:13 raspberrypi kernel: [78900.620559] usb 1-1.3: device descriptor read/64, error -71
Jan 26 11:33:13 raspberrypi kernel: [78900.840327] usb 1-1.3: new high-speed USB device number 5 using xhci_hcd
Jan 26 11:33:14 raspberrypi kernel: [78901.780951] usb 1-1-port3: Cannot enable. Maybe the USB cable is bad?
Jan 26 11:33:14 raspberrypi kernel: [78901.781598] usb 1-1-port3: attempt power cycle
Jan 26 11:33:15 raspberrypi kernel: [78902.660347] usb 1-1.3: new high-speed USB device number 6 using xhci_hcd
Jan 26 11:33:15 raspberrypi kernel: [78902.660651] usb 1-1.3: Device not responding to setup address.
Jan 26 11:33:15 raspberrypi kernel: [78902.880633] usb 1-1.3: Device not responding to setup address.
Jan 26 11:33:15 raspberrypi kernel: [78903.100385] usb 1-1.3: device not accepting address 6, error -71
Jan 26 11:33:16 raspberrypi kernel: [78904.010948] usb 1-1-port3: Cannot enable. Maybe the USB cable is bad?
Jan 26 11:33:16 raspberrypi kernel: [78904.011590] usb 1-1-port3: unable to enumerate USB device

I see it says, "Maybe the USB cable is bad?" However, when I plug the camera into my laptop running Windows 10, it is able to connect without problem.

I double checked to make sure that remote USB is disabled in the CHDK menu.


*

Offline reyalp

  • ******
  • 14126
Re: chdkptp on Raspberry Pi 4 - ERROR: no matching device
« Reply #3 on: 26 / January / 2021, 13:55:57 »
I see it says, "Maybe the USB cable is bad?" However, when I plug the camera into my laptop running Windows 10, it is able to connect without problem.
The kernel messages and the fact it's missing from lsusb output definitely suggest this is a USB level problem rather than a CHDK / chdkptp problem.

Have you tried with the card unlocked so CHDK isn't running? If it works, it will show up in lsusb and also in chdkptp (though you won't be able to use CHDK features, obviously).

If you have an external USB 2 hub and/or a different cable, maybe try that. There could be something particular about the combo of the Pi4 USB 3 port, the cable and the camera that doesn't play nice.
Don't forget what the H stands for.

Re: chdkptp on Raspberry Pi 4 - ERROR: no matching device
« Reply #4 on: 26 / January / 2021, 18:37:25 »


Success! It was the USB cable. I had ruled that out early because I have two brand new cables that I got for this project and neither one worked, yet they seemed fine on the Windows PC. The Pi didn't like them, for some reason. I swiped one from my wife's Cycling Garmin and it connected.  I am new to Linux and I didn't even know to look in the log file, so thank you so much for tracking down this problem for me.

Now I have some fiddling to do, to get this all set up like I want for a book scanner, focusing, understanding the CLI, and all that. I may have some more questions about setting up two cameras at one time, but I will start a new thread for that, when I get to that step.

BTW, The plan is to use the Raspberry Pi to trigger two cameras running CHDK, taking two images, of opposing pages at one time, and digitize books. I'll then take the images, run them through OCR, so that blind people can use voice synthesis to read the books. So, thank you so much for your help! Here is the prototype for my scanning rig:


*

Offline reyalp

  • ******
  • 14126
Re: chdkptp on Raspberry Pi 4 - ERROR: no matching device
« Reply #5 on: 26 / January / 2021, 22:33:48 »
Nice, glad to hear you got it sorted out. I expect you're already aware of it, but https://www.diybookscanner.org/ has a lot of information on this kind of thing.

FWIW, I noticed you're using chdkptp-r921. The latest release is r964, available from https://app.assembla.com/spaces/chdkptp/documents
The only change likely to be relevant to your setup is the change to usb_reset_on_close. If you have issues reconnecting, you can either set it in user.chdkptp, or update. See https://chdk.setepontos.com/index.php?topic=13997.0
Don't forget what the H stands for.

Re: chdkptp on Raspberry Pi 4 - ERROR: no matching device
« Reply #6 on: 27 / January / 2021, 08:47:57 »
Thanks, I somehow overlooked the updated version. Got it now, and it works.

and Yes, I have seen the DIY Book Scanner site, and that's where I got much of the inspiration for this. Thank you so much.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal