Jump to content

Digi Cam


Guest c_m_f
 Share

Recommended Posts

Guest c_m_f

Right then, i have my digi cam plugged in and i think the comps recognised theres a cam there and is using a generic driver and in kde info center under usb its says 'USB Dual Mode Camera', so i assume its got it, so how now i do retrieve pics form it, do i mount it, and if so what will it be in /dev (i already have a usb mouse) or do i access it some other way?

 

Also is it possibl to webchat using kopete and msn protocol?

Link to comment
Share on other sites

Hi

 

Usually those kind of devices uses flash card memory. If your flash memory isn't too weird then the kernel should have loaded the proper driver. What do you get when you type

 

cat /proc/bus/usb/devices

 

and

 

cat /proc/scsi/usb-storage-0/1

 

If you DON'T get a Driver=(none) for the first command then the kernel loaded the proper drivers (usb-storage, sg, ide-scsi, ....). You should get something like that if it loaded the proper driver:

 

 

...

I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

...

 

Do a 'lsmod' to know what is loaded. That would be cool if you post the output here also. Now look in /dev for a sdaX where X is an integer. Or look at /dev/scsi/hostX/busX/targetX/lunX/part where X is again an integer. You should be able to mount the device (let's say) in /mnt/Flash as follow.

 

mount -t vfat /dev/scsi/host0/bus0/target0/lun0/part /mnt/Flash

 

or

 

mount -t vfat /dev/sda0 /mnt/Flash

 

You have to notice that the kernel uses those devices as scsi hard drive. So if you recompiled your kernel for a reason or another then scsi support has to be enabled as well as usb support. The filesystem on those card is vfat... lol. Check in 'kcontrol' also.. sometimes it gives hints about where scsi devices are plugged (host, bus, target, lun ....)

 

Hope this help

 

MOttS

Link to comment
Share on other sites

Guest c_m_f

ok well, its a cheap and nasty camera so its just a direct connect to the comp (no flash or removeable memory) but heres my cat /proc/bus/usb/devices

 

T:  Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 6

B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0

D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS= 8 #Cfgs=  1

P:  Vendor=0000 ProdID=0000 Rev= 2.04

S:  Manufacturer=Linux 2.4.19-16mdk ehci-hcd

S:  Product=VIA Technologies, Inc. USB 2.0

S:  SerialNumber=00:10.3

C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA

I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=256ms

T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2

B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0

D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1

P:  Vendor=0000 ProdID=0000 Rev= 0.00

S:  Product=USB UHCI Root Hub

S:  SerialNumber=e000

C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA

I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2

B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0

D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1

P:  Vendor=0000 ProdID=0000 Rev= 0.00

S:  Product=USB UHCI Root Hub

S:  SerialNumber=dc00

C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA

I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2

B:  Alloc= 93/900 us (10%), #Int=  1, #Iso=  0

D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1

P:  Vendor=0000 ProdID=0000 Rev= 0.00

S:  Product=USB UHCI Root Hub

S:  SerialNumber=d800

C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA

I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0

D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1

P:  Vendor=045e ProdID=0025 Rev= 1.07

S:  Manufacturer=Microsoft

S:  Product=Microsoft IntelliMouse ® with IntelliEye

C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA

I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usb_mouse

E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=10ms

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  3 Spd=12  MxCh= 0

D:  Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1

P:  Vendor=0553 ProdID=0202 Rev= 0.00

S:  Manufacturer=STMicroelectronics

S:  Product=USB Dual-mode Camera

C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 70mA

I:  If#= 0 Alt= 0 #EPs= 0 Cls=ff(vend.) Sub=00 Prot=00 Driver=stv680

I:  If#= 0 Alt= 1 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=stv680

E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

 

and my cat /proc/scsi/usb-storage-0/1

 

cat: /proc/scsi/usb-storage-0/1: No such file or directory

 

 

and my lsmod

 

Module                  Size  Used by    Tainted: P

ppp_deflate            41024   0  (autoclean)

bsd_comp                4344   0  (autoclean)

agpgart                31840   3  (autoclean)

lp                      6720   0

parport_pc             21672   1

parport                23936   1  [lp parport_pc]

ipt_TOS                  984  12  (autoclean)

ipt_MASQUERADE          1272   1  (autoclean)

ipt_LOG                 3384   5  (autoclean)

ipt_REJECT              2744   4  (autoclean)

ipt_state                568  44  (autoclean)

iptable_mangle          2072   1  (autoclean)

ip_nat_irc              2384   0  (unused)

ip_nat_ftp              2992   0  (unused)

iptable_nat            15224   3  [ipt_MASQUERADE ip_nat_irc ip_nat_ftp]

ip_conntrack_irc        3056   1

ip_conntrack_ftp        3952   1

ip_conntrack           18400   4  [ipt_MASQUERADE ipt_state ip_nat_irc ip_nat_ftp iptable_nat ip_conntrack_irc ip_conntrack_ftp]

iptable_filter          1644   1  (autoclean)

ip_tables              11672  10  [ipt_TOS ipt_MASQUERADE ipt_LOG ipt_REJECT ipt_state iptable_mangle iptable_nat iptable_filter]

snd-seq-midi            3680   0  (autoclean) (unused)

snd-seq-oss            26176   0  (unused)

snd-seq-midi-event      3208   0  [snd-seq-midi snd-seq-oss]

snd-seq                33264   2  [snd-seq-midi snd-seq-oss snd-seq-midi-event]

snd-pcm-oss            36932   0

snd-mixer-oss           9016   0  [snd-pcm-oss]

snd-ens1370             7724   0

snd-pcm                55808   0  [snd-pcm-oss snd-ens1370]

snd-timer               9964   0  [snd-seq snd-pcm]

snd-rawmidi            12864   0  [snd-seq-midi snd-ens1370]

snd-seq-device          3836   0  [snd-seq-midi snd-seq-oss snd-seq snd-rawmidi]

snd-ak4531-codec        4784   0  [snd-ens1370]

snd                    24804   0  [snd-seq-midi snd-seq-oss snd-seq-midi-event snd-seq snd-pcm-oss snd-mixer-oss snd-ens1370 snd-pcm snd-timer snd-rawmidi snd-seq-device snd-ak4531-codec]

nfsd                   66576   8  (autoclean)

lockd                  46480   1  (autoclean) [nfsd]

sunrpc                 60188   1  (autoclean) [nfsd lockd]

ppp_async               7456   1

ppp_generic            20064   3  [ppp_deflate bsd_comp ppp_async]

slhc                    5072   0  [ppp_generic]

ip_vs                  74328   0  (autoclean)

af_packet              13000   2  (autoclean)

eepro100               19096   1  (autoclean)

supermount             14340   1  (autoclean)

isofs                  25652   0  (autoclean)

inflate_fs             17892   0  (autoclean) [isofs]

NVdriver             1065920  10  (autoclean)

vfat                    9588   0  (autoclean)

fat                    31864   0  (autoclean) [vfat]

sr_mod                 15096   0  (autoclean)

floppy                 49340   0  (autoclean)

ide-cd                 28712   0

stv680                 22804   0

cdrom                  26848   0  [sr_mod ide-cd]

tuner                   9536   1  (autoclean)

bttv                   66880   0

keybdev                 1920   0  (unused)

i2c-algo-bit            7432   1  [bttv]

mousedev                4116   1

hid                    18340   0  (unused)

i2c-core               15332   0  [tuner bttv i2c-algo-bit]

soundcore               3780   0  [snd bttv]

usbmouse                2004   0  (unused)

videodev                5792   3  [stv680 bttv]

input                   3456   0  [keybdev mousedev hid usbmouse]

ide-scsi                8212   0

scsi_mod               90372   2  [sr_mod ide-scsi]

ehci-hcd               14472   0  (unused)

usb-uhci               21676   0  (unused)

usbcore                58304   1  [stv680 hid usbmouse ehci-hcd usb-uhci]

rtc                     6560   0  (autoclean)

ext3                   74004   3

jbd                    38452   3  [ext3]

 

that help at all?

 

btw its a Digital dream l'esprit

Link to comment
Share on other sites

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  3 Spd=12  MxCh= 0 

D:  Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1 

P:  Vendor=0553 ProdID=0202 Rev= 0.00 

S:  Manufacturer=STMicroelectronics 

S:  Product=USB Dual-mode Camera 

C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 70mA 

I:  If#= 0 Alt= 0 #EPs= 0 Cls=ff(vend.) Sub=00 Prot=00 Driver=stv680 

I:  If#= 0 Alt= 1 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=stv680 

E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

 

Those are the important lines. As you can see the kernel recognise the device (USB Dual-mode Camera) and loads a driver (Driver=stv680). However, it's the first time I see that driver used for a Camera. In fact, I don't know if it loaded the right driver. You could search google a bit about that driver (stv680). But all the scsi modules are loaded ..

 

BTW, how come you loaded so much modules ? Do you really need IPT_MASQUERADE and all the others ? .. do you share your net connection ?

 

Did you check if /dev/sdaX and /dev/scsi/hostX/busX/targetX/lunX/part are there ? (Don't forget, X is an integer starting from 0) If you see one of those device, try to mount it with the command I gave you above.

 

Do you have anything in /proc/scsi that could help ? Do you see a 001, 002 etc.. in /proc/bus/usb ?

 

MOttS

Link to comment
Share on other sites

Guest c_m_f

ok.....im sharing a net connection so thats why the ip masq'ing

 

no /dev/sdax at all

 

only thing in /dev/scsi/host0/bus0/target2/lun0 is cd and on a hover over it says its the cd writer

 

in proc/bus/usb is

 

001

002

003

004 (all folders)

 

and 2 files

 

drivers

devices

 

and im going to search google now

 

if its all loaded now then, how do i go about accessing the camera?

Link to comment
Share on other sites

Guest c_m_f

found a prog on google called pencam from http://stv0680-usb.sourceforge.net/

 

but when it run it i get

 

 pencam_set_configuration error

usb_control_msg error: 255,  command = 0xff

Camera ping failed!! Check connections and try again!

Error initializing camera!!

 

could this be anything to do with teh fact i have usb 2.0? and the prog is pre 2.0?

Link to comment
Share on other sites

Hey.. I looked at google too (I was intrigued). You have a web cam that can take pictures too.. I thought it was a regular camera with flash memory. Forget about scsi stuff...

 

The kernel loaded the proper modules. There is a couple of programs you can use to download pictures from the cam actually.

 

Acording to http://stv0680-usb.sourceforge.net/#NOTES you can use XAWTV, GQCAM and PENCAM. Don't know if those progs are on the MDK cds though.

 

http://csce.unl.edu/~cluening/gqcam/

http://bytesex.org/xawtv/

http://stv0680-usb.sourceforge.net/

 

Good luck

 

MOttS

Link to comment
Share on other sites

oops .. lol .. I posted almost in the same time as you .. lol

 

According to the website .. http://stv0680-usb.sourceforge.net/#NOTES , you have to 'rmmod stv680' before to use the prog. I didn't read a lot since I don't have any camera but you shoud read the note carefully. Check the other prog too!

 

Good luck

 

MOttS

Link to comment
Share on other sites

Guest c_m_f

did 'rmmod stv680'

 

then ran as root

and its all systems go :D just got 3 pics off the cam, and its 10x faster then i recall from the windows days!

 

OHHHH YEAHHHH

lol

 

EDIT:

 

any idea how to run not as root?

Link to comment
Share on other sites

I just use GTKAM with my Kodak 4900 Easyshare and Docking station. Once I push the sync button on the docking station, I can see it show up in USB Viewer, then I run GTKAM and autodetect my camera, then transfer the Pics over to HD space. This is just another option thats all. Thanks again MottS :)

Link to comment
Share on other sites

Hey c_m_f, you should look at the following link for usb permission:

 

http://gphoto.sourceforge.net/doc/manual/p...ssions-usb.html

 

BTW, if you use Gphoto2 (another prog for stv680), you should be able to access the cam with 'camera:/' in konqueror .. lol .. That is COOL !

 

MOttS

Link to comment
Share on other sites

Guest c_m_f

well just to thankyou to motts here are some of the outcome, very crappy quality, but what do you expect when bundled with a pc? espically at £1200 :)

 

pencam008.jpg

 

pencam010.jpg

 

pencam012.jpg

 

pencam018.jpg

 

last one of my desk

 

EDIT: ok they dont work :? well ill go find another image hoster, any ideas?

Link to comment
Share on other sites

So it works !!! :lol:

 

What a face man :P You seems to have rastas in you hairs (is that called this way in english ? .. like the Bob Marley's hairs) do you? I had big fat ones when I was snowboarding at Whistler in British Colombia (One of the provinces in Canada). But since then I cut them all to get a 'clean' job here in Montreal :cry:

 

cya!

 

MOttS

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...