LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   canon usb camera (https://www.linuxquestions.org/questions/linux-hardware-18/canon-usb-camera-96337/)

dARkHunTEr 09-24-2003 11:48 AM

canon usb camera
 
hi

ive got an canon powershot a100 digital camera connected via usb. how can I use it in linux to import my pictures?

thanks!!

Thymox 09-24-2003 01:11 PM

Firstly you have to make sure that you camera communicates in a nice way. A lot of them don't and so the purchase of a card reader (if it uses cards) is necessary.

Run usbview and then plug in your camera. Also, once the camera is plugged in, run dmesg and check the last few lines about USB devices.

If it behaves and is recognised as a USB storage device, then you can mount it as a normal SCSI disk, ie mount -t vfat /dev/sda1 /mnt/camera.

If none of that made sense, then have a quick look at some of the other camera related threads that have been kicking about for a few months now.

Hope that helps.

dARkHunTEr 09-24-2003 01:57 PM

dmesg returns:
hub.c: new USB device 00:10.1-1.1, assigned address 3
usb.c: USB device 3 (vend/prod 0x4a9/0x3061) is not claimed by any active driver.
[...disconnecting the camera...]
usb.c: USB disconnect on device 00:10.1-1.1 address 3

usbview returns (when selecting the camera):
PowerShot A100
Manufacturer: Canon Inc.
Speed: 12Mb/s (full)
USB Version: 1.10
Device Class: ff(vend.)
Device Subclass: ff
Device Protocol: ff
Maximum Default Endpoint Size: 32
Number of Configurations: 1
Vendor Id: 04a9
Product Id: 3061
Revision Number: 0.01

Config Number: 1
Number of Interfaces: 1
Attributes: c0
MaxPower Needed: 100mA

Interface Number: 0
Name: (none)
Alternate Number: 0
Class: ff(vend.)
Sub Class: 0
Protocol: 0
Number of Endpoints: 3

Endpoint Address: 81
Direction: in
Attribute: 2
Type: Bulk
Max Packet Size: 64
Interval: 0ms

Endpoint Address: 02
Direction: out
Attribute: 2
Type: Bulk
Max Packet Size: 64
Interval: 0ms

Endpoint Address: 83
Direction: in
Attribute: 3
Type: Int.
Max Packet Size: 64
Interval: 96ms

dARkHunTEr 09-24-2003 02:03 PM

root@mercure:/home/mark# mount -t vfat /dev/sda1 /mnt/camera
mount: /dev/sda1 is not a valid block device

:(

Genesee 09-24-2003 02:44 PM

gphoto says the A100 is supported:

http://www.gphoto.org/proj/libgphoto2/support.php

dARkHunTEr 09-24-2003 02:47 PM

Any KDE equivalent?

Genesee 09-24-2003 04:07 PM

maybe digikam?

http://loll.sourceforge.net/cgi-bin/...=gphoto&num=10

dARkHunTEr 09-26-2003 11:47 AM

I've installed libgphoto2 and digikam. The digikam setup detects the camera correct. However, when I try to connect, it tells me it was unable to initialize the camera.
Any help?

glennb0665 09-26-2003 09:32 PM

I have a Nikon E2500 and went through a similar trial. I tried using the various camera packages to no avail. As it turns out, the USB port on the camera should let you mount it just like a disk. The trick is to find which device it is linked to.

Unfortunately, I am not aware of a quick method to find this short of brute force. In my case, my camera mounts under /dev/hdb1.

One simple approach might be the following shell script:

# Search the sd devices a through e
for i in a b c d e; do
# Search the sd[a-e] devices 1 through 6
for j in 1 2 3 4 5 6; do
echo sd${i}${j}
# I use sudo(1) rather than logging in as root
# You could also run this as root and remove the sudo
# command
sudo mount /dev/sd${i}${j} /mnt/camera
if [ $? -eq 0 ]; then
# If we found it, break out of the loops
break 2
fi
done
done

This script attempts to mount /dev/sd[a-e][1-6] on /mnt/camera. You may need to create the /mnt/camera mount point. If this script doesn't find the right device, you can expand it to search the more obscure devices (on my RedHat 7.3 system there are 2048 /dev/sd* devices)

[Note: Check your mounted partitions first with df(1) If there are any /dev/sd?? partitions listed they should be excluded as they are already used]

If anyone knows of a better way of finding the correct device, please post a follow up.

maroonbaboon 09-27-2003 01:09 AM

I have a Canon Powershot A40. To download pictures I run the following script (as root):

#!/bin/sh
modprobe usb-uhci
mount -t usbdevfs usb /proc/bus/usb/

I think this was the result of reading the gphoto2 docs. You may not need the first line if usb-uhci is already loaded or compiled into the kernel. Then I just use gphoto2 from the command line (gphoto2 with no arguments gives all the options). e.g. 'gphoto2 -L' should list the files on the camera. 'gphoto2 -P' copies the pictures to the disk.

yiangos 10-01-2003 03:50 AM

I have a Powershot A70, using SuSE 8.2. I don't know about SuSE 9 (I'll update if they have a better sound card support, my SB live 4.1m my SB live 5.1, my SB Audigy2 AND my Via8235 chip dont work :-( in 8.2 pro for some weird reason). Now, according to gphoto2, A70 was NOT supported - it reached up to A40. However, I used the generic PTP camera protocol in digicam, and it all came out nicely.

Here's my instructions (completely step by step, after you set digikam to wait for general PTP protocol digital cameras)
Turn on the camera
Set the camera to viewing mode (not shooting mode).
Connect it to the USB port.
Run digikam.
Wait till the image on the LCD display of the camera dsappears and tha double beep comes out of the PC speaker.
Click the camera icon at the bottom left.
Browse the directories you get. The pictures should be in there.
Oh and make sure you have enough power left in your batteries. Sometimes the transfer doesnt take kindly to low power.

Lemme know if it helped

Yiangos

P.S. SuSE 9 is out?????

ehdwuld 10-01-2003 04:08 AM

gtkam
menu
graphics
digital camera tool

dARkHunTEr 10-05-2003 03:59 PM

No luck.

The display of the camera doesn't turn off when I connect the camera to the USB port. It does in Windows XP.

ehdwuld 10-05-2003 05:05 PM

do you have anything else that uses the usb port?

the usb port may not be activated

scrounge around to see if it is

I , myself , have no idea how to do this but maybe someone will be able to help

shepper 10-05-2003 09:56 PM

Try it as root and if it works then it means you do not have the gphoto hotplug script installed.

I went with libgphoto2, gphoto2 and gtkam and compiled all with --prefix=/usr.



My Canon S10 works flawlessly.

Check out the Chapter 4 in the manual

Gphoto Manual


All times are GMT -5. The time now is 01:37 PM.