How to find the ID of camera connect through USBHub
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to find the ID of camera connect through USBHub
Dear all,
I have about 20 cameras Aiptek Megacam (or called Mini Pencam 1.3) which are connected to PC through usb Hub. I can use gphoto2 command to find the address of the usb ports used by these cameras. But the problem is: each time I connect or disconnect the camera the address will change and the camera will be assigned a new address (seem to be random). So I hardly know which adress belong to which camera.
My question is " how to find a fix parameter belong to the camera that can help me to identify each camera ? ". I tried to look for something like camera serial number but not found yet.
"Not all cameras work in this way: some of them use a non-storage protocol such as cameras supported by gphoto2. In the gphoto case, you do not want to be writing rules for your device, as is it controlled purely through userspace (rather than a specific kernel driver). "
Unfortunately, my cameras are these types. So I guess this method doesn't help, right !?!
Ps: I tried lsusb command and find out that the names of cameras are exactly listed the same, so there is no way to use the command of udev:
# udevinfo -a -p $(udevinfo -q path -n /dev/sdb1)
Many cameras have a "setup menu" (mine all do), where you can change the mode the USB interfaces uses. I set mine to be "Storage". Perhaps yours can do the same? Otherwise, I do not think I can help.
Yes thank you, the information is really useful and I do hope that HAL could help me to get the cameraID. But from here http://www.linuxfromscratch.org/blfs...neral/hal.html
I see that installation is really difficult and complex. Do you have any experience on this or any easy guide for me cause am a beginner.
hi davimint,
I have HAL installed. Can you tell me more detail which command could help me get the camera ID ?
I tried some commands with some parameters but not get what i want
(tried hal-get-property, --udi not know how to use this parameter )
Thank you for any suggestion!
notiba,
I'm not going to be much help, I was just passing on some information that I had
read once with the hopes it may help. Google around I found tons of info on this but I
just don't have any equipment to sort it out for you. Maybe someone else can jump in
with some ideas.
Thanks for your kind ! Yes, i also google around with HAL and practice them. However since am not familiar with Linux, especially using HAL, someone knows it more than me could give value suggestion.
I also trying to update a driver of camera for Linux hoping to solve my problem.
Still on the way finding the solution.
Any help is highly appreciate!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.