LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-23-2007, 03:35 AM   #1
nobtiba
Member
 
Registered: Jan 2007
Posts: 40

Rep: Reputation: 0
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.

Pls, help !
Thank you

Ps: I use Ubuntu.
 
Old 10-23-2007, 04:11 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
You can do this with some udev rules. See here: http://www.reactivated.net/writing_udev_rules.html
 
Old 10-23-2007, 05:08 AM   #3
nobtiba
Member
 
Registered: Jan 2007
Posts: 40

Original Poster
Rep: Reputation: 0
There is a paragraph in the link you gave (http://www.reactivated.net/writing_udev_rules.html), :

"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)
 
Old 10-23-2007, 05:30 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
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.
 
Old 10-23-2007, 05:49 AM   #5
nobtiba
Member
 
Registered: Jan 2007
Posts: 40

Original Poster
Rep: Reputation: 0
I am afraid mine doesn't have this mode. Anyway, many thanks for your help!
Any idea please !?
 
Old 10-23-2007, 10:13 PM   #6
nobtiba
Member
 
Registered: Jan 2007
Posts: 40

Original Poster
Rep: Reputation: 0
Looking for help ! :|
 
Old 10-23-2007, 10:35 PM   #7
davimint
Member
 
Registered: Jan 2006
Distribution: Slackware Current
Posts: 272

Rep: Reputation: 33
nobtiba,
Don't know if this will produce any help full info but "lshal" will dump hals
"Global Device List".
 
Old 10-29-2007, 12:17 AM   #8
nobtiba
Member
 
Registered: Jan 2007
Posts: 40

Original Poster
Rep: Reputation: 0
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.

Thanks alot !
 
Old 10-31-2007, 08:59 PM   #9
nobtiba
Member
 
Registered: Jan 2007
Posts: 40

Original Poster
Rep: Reputation: 0
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!
 
Old 11-02-2007, 08:02 AM   #10
davimint
Member
 
Registered: Jan 2006
Distribution: Slackware Current
Posts: 272

Rep: Reputation: 33
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.
 
Old 11-04-2007, 12:25 AM   #11
nobtiba
Member
 
Registered: Jan 2007
Posts: 40

Original Poster
Rep: Reputation: 0
Hi Davimint,

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!

Thank you !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Digital camera cant connect riba43 SUSE / openSUSE 8 07-15-2006 12:34 PM
how to find a camera in mepis? Adamant1988 MEPIS 7 05-02-2006 11:49 AM
Can not connect my digital camera Mandriva 2006 Fnurr Mandriva 8 10-23-2005 04:11 AM
I can find the camera but can't find the images? sneckert Linux - Newbie 2 02-02-2005 09:51 AM
connect digital camera to laptop with SlackWare 8 al_m Slackware 2 05-13-2002 09:30 AM


All times are GMT -5. The time now is 04:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration