Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 2003 15:40:03 -0800 (PST)
From:      "Jeremy C. Reed" <reed@reedmedia.net>
To:        freebsd-multimedia@freebsd.org
Subject:   gphoto2 for Casio QV300 with /dev/cuaa0 hanging
Message-ID:  <Pine.LNX.4.43.0302051458290.8779-100000@pilchuck.reedmedia.net>

next in thread | raw e-mail | index | archive | help
Anyone have success with gphoto2 with serial?

Anyone use a Casio QV300 camera?

I have gphoto2-2.1.1 installed.

crw-rw----  1 uucp  dialer   28, 128 Jan 21 15:13 /dev/cuaa0
I am member of dialer group. And I also tried as root.

gphoto2 hangs my X when running. (I thought my machine was locked up; I
didn't try remote connection to it.)

After a reboot, when it hung again, I unplugged the serial and my X was
usable again.

gphoto2 did core dump:

#0  0x281e0471 in gp_camera_init () from /usr/local/lib/libgphoto2.so.2
#1  0x281e1f6e in gp_camera_folder_list_files ()
   from /usr/local/lib/libgphoto2.so.2
#2  0x804bac7 in list_files_action ()
#3  0x804d779 in for_each_folder ()
#4  0x804fcca in cli_error_print ()
#5  0x2825432f in invokeCallbacksOPTION () from
/usr/local/lib/libpopt.so.0
#6  0x28255974 in poptGetNextOpt () from /usr/local/lib/libpopt.so.0
#7  0x80517a5 in main ()
#8  0x804b242 in _start ()

Some debugging follows my signature.

Any suggestions?

   Jeremy C. Reed
   http://www.bsdnewsletter.com/

0.023973 main(2): gphoto2 2.1.1
0.034874 main(2): gphoto2 has been compiled with the following options:
0.046045 main(2):  + cc (C compiler used)
0.056906 main(2):  + popt (for handling command-line parameters)
0.068027 main(2):  + exif (for displaying EXIF information)
0.078950 main(2):  + no cdk (for accessing configuration options)
0.089972 main(2):  + aa (for displaying live previews)
0.100868 main(2):  + jpeg (for displaying live previews in JPEG format)
0.111892 main(2):  + no readline (for easy navigation in the shell)
0.122811 main(2): libgphoto2 2.1.1
0.133661 main(2): libgphoto2 has been compiled with the following options:
0.144554 main(2):  + cc (C compiler used)
0.155462 main(2):  + EXIF (for special handling of EXIF files)
0.166058 main(2):  + no ltdl (working around bugg libltdl, eh? :-)
0.177354 main(2):  + no /proc/meminfo (adapts cache size to memory
available)
0.188052 main(2): libgphoto2_port 0.5.1
0.198956 main(2): libgphoto2_port has been compiled with the following
options:
0.209617 main(2):  + cc (C compiler used)
0.220492 main(2):  + USB (for USB cameras)
0.230983 main(2):  + serial (for serial cameras)
0.241875 main(2):  + no baudboy (serial port locking)
0.252418 main(2):  + no ttylock (serial port locking)
0.263388 main(2):  + no lockdev (serial port locking)
0.274101 main(2):  + no ltdl (working around bugg libltdl, eh? :-)
0.285479 main(2): Processing 'model' option ('Casio QV300')...
0.296462 gphoto2-camera(2): Setting abilities ('Casio QV300')...
0.308017 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
0.319980 setting/gphoto2-setting.c(2): Loading settings from file
"/root/.gphoto
/settings"
0.338501 gphoto2-setting(2): Setting key 'model' to value 'Casio QV300'
(gphoto2
)
0.356560 gphoto2-setting(2): Saving 2 setting(s) to file
"/root/.gphoto/settings
"
0.387116 main(2): Processing 'port' option ('serial:/dev/cuaa0')...
0.398579 gp-port-info-list(2): Loading io-drivers from
'/usr/local/lib/gphoto2_p
ort/0.5.1'...
0.419570 gphoto2-port-serial(2): Trying to lock '/dev/cuaa0'...
0.431845 gphoto2-port-serial(2): Trying to lock '/dev/cuaa1'...
0.443740 gphoto2-port-serial(2): Trying to lock '/dev/cuaa2'...
0.455080 gphoto2-port-serial(2): Trying to lock '/dev/cuaa3'...
0.465989 gphoto2-port-serial(2): Trying to lock '/dev/cuaa4'...
0.477461 gphoto2-port-serial(2): Trying to lock '/dev/cuaa5'...
0.489322 gphoto2-port-serial(2): Trying to lock '/dev/cuaa6'...
0.501409 gphoto2-port-serial(2): Trying to lock '/dev/cuaa7'...
0.513068 gphoto2-port-serial(2): Trying to lock '/dev/cuaa8'...
0.517911 gphoto2-port-serial(2): Trying to lock '/dev/cuaa9'...
0.536396 gphoto2-port-serial(2): Trying to lock '/dev/cuaaa'...
0.548579 gphoto2-port-serial(2): Trying to lock '/dev/cuaab'...
0.561630 gphoto2-port-serial(2): Trying to lock '/dev/cuaac'...
0.573624 gphoto2-port-serial(2): Trying to lock '/dev/cuaad'...
0.584405 gphoto2-port-serial(2): Trying to lock '/dev/cuaae'...
0.596237 gphoto2-port-serial(2): Trying to lock '/dev/cuaaf'...
0.607493 gphoto2-port-core(2): Loaded 'Serial Port 0' (serial:/dev/cuaa0)
from 'libgphoto2_port_serial.so'
0.626716 gphoto2-port-core(2): Loaded 'Serial Port 1' (serial:/dev/cuaa1)
from 'libgphoto2_port_serial.so'
0.636625 gphoto2-port-core(2): Loaded '' (^serial) from
'libgphoto2_port_serial.so'
0.657051 gphoto2-port-core(2): Loaded 'Universal Serial Bus' (usb:) from
'libgphoto2_port_usb.so'
0.675391 gphoto2-port-info-list(2): Looking for path 'serial:/dev/cuaa0'
(4 entries available)...
0.692713 gphoto2-port-info-list(2): Getting info of entry 0 (4
available)...
0.709632 gphoto2-camera(2): Setting port info for port 'Serial Port 0' at
'serial:/dev/cuaa0'...
0.729993 gphoto2-port(2): Setting timeout to 500 millisecond(s)...
0.741184 gphoto2-port(2): Setting settings...
0.752433 gphoto2-setting(2): Setting key 'port' to value
'serial:/dev/cuaa0' (gp
hoto2)
0.765842 gphoto2-setting(2): Saving 2 setting(s) to file
"/root/.gphoto/settings"
0.785576 gphoto2-camera(2): Listing files in '/'...
0.797676 gphoto2-camera(2): Initializing camera...
0.809185 gphoto2-camera(2): Loading
'/usr/local/lib/gphoto2/2.1.1/libgphoto2_casio_qv.so'...
0.819074 gphoto2-port(2): Opening SERIAL port...
0.829236 gphoto2-port-serial(2): Trying to lock '/dev/cuaa0'...

*** I think this is where it hung until I unplugged the serial -jcr ***

3.427843 gphoto2-port(2): Setting timeout to 1000 millisecond(s)...
3.429422 gphoto2-port(2): Setting settings...
3.429532 gphoto2-port-serial(2): Setting baudrate to 9600...
3.430191 gphoto2-port(2): Writing 1=0x1 byte(s) to port...
3.430407 gphoto2-port(3): Hexdump of 1 = 0x1 bytes follows:
0000  05                     -                         .

3.430869 gphoto2-port(2): Reading 1=0x1 bytes from port...
3.452538 gphoto2-port(3): Hexdump of 1 = 0x1 bytes follows:
0000  00                     -                         .

3.517433 gphoto2-port(2): Reading 1=0x1 bytes from port...
3.517674 gphoto2-port(3): Hexdump of 1 = 0x1 bytes follows:

...


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.43.0302051458290.8779-100000>