Subject: HP Photosmart 435 and gphoto2
To: None <netbsd-help@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 04/06/2004 15:50:42
I am using NetBSD/i386 1.6.x with libexif-gtk-0.3.3nb7, gtkam-0.1.10nb7,
gphoto2-2.1.4, libgphoto2-2.1.4, and libusb-0.1.7 built from pkgsrc (with
the only change was getting rid of -DGTK_DISABLE_DEPRECATED from the gtkam
and libexif-gtk makefiles because I am using gtk2+-2.4.0).

dmesg tells me:

 uhub0: port error, restarting port 2
 uhub0: device problem, disabling port 2
 uhub0: port error, restarting port 2
 uhub0: port error, restarting port 2
 ugen0 at uhub0 port 2
 ugen0: HEWLETT-PACKARD HP PhotoSmart 43x Camera, rev 2.00/0.01, addr 2
 ugen0: at uhub0 port 2 (addr 2) disconnected
 ugen0 detached
 uhub0: port error, restarting port 2
 ugen0 at uhub0 port 2
 ugen0: HEWLETT-PACKARD HP PhotoSmart 43x Camera, rev 2.00/0.01, addr 2
 ugen0: at uhub0 port 2 (addr 2) disconnected
 ugen0 detached
 uhub0: port error, restarting port 2
 ugen0 at uhub0 port 2
 ugen0: HEWLETT-PACKARD HP PhotoSmart 43x Camera, rev 2.00/0.01, addr 2
 ugen0: at uhub0 port 2 (addr 2) disconnected
 ugen0 detached
 uhub0: port error, restarting port 2
 uhub0: port error, restarting port 2
 uhub0: port error, restarting port 2
 uhub0: device problem, disabling port 2
 uhub0: port error, restarting port 2

The camera's case says "hp 435".

Running "gphoto2 --debug --camera "HP PhotoSmart 43x (PTP mode)" --port "u
sb:" --list-files" results in:

 *** Error ***
 An error occurred in the io-library ('Bad parameters'): Could not find USB
 device (vendor 0x3f0, product 0x7202). Make sure this device is connected to
 the computer.
 *** Error (-2: 'Bad parameters') ***

--debug tells me:

0.000083 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.001329 main(2): gphoto2 2.1.4
0.001921 main(2): gphoto2 has been compiled with the following options:
0.002518 main(2):  + gcc (C compiler used)
0.003098 main(2):  + popt (for handling command-line parameters)
0.003684 main(2):  + exif (for displaying EXIF information)
0.004267 main(2):  + cdk (for accessing configuration options)
0.004880 main(2):  + aa (for displaying live previews)
0.005466 main(2):  + jpeg (for displaying live previews in JPEG format)
0.006055 main(2):  + no readline (for easy navigation in the shell)
0.006674 main(2): libgphoto2 2.1.4
0.007267 main(2): libgphoto2 has been compiled with the following options:
0.007870 main(2):  + gcc (C compiler used)
0.008451 main(2):  + EXIF (for special handling of EXIF files)
0.009034 main(2):  + no ltdl (working around buggy libltdl, eh? :-)
0.009622 main(2):  + no /proc/meminfo (adapts cache size to memory available)
0.010233 main(2): libgphoto2_port 0.5.1
0.010881 main(2): libgphoto2_port has been compiled with the following options:
0.011488 main(2):  + gcc (C compiler used)
0.012069 main(2):  + USB (for USB cameras)
0.012656 main(2):  + serial (for serial cameras)
0.013238 main(2):  + no resmgr (serial port access and locking)
0.013826 main(2):  + no baudboy (serial port locking)
0.016559 main(2):  + no ttylock (serial port locking)
0.017186 main(2):  + no lockdev (serial port locking)
0.017771 main(2):  + no ltdl (working around buggy libltdl, eh? :-)
0.019272 gp-port-info-list(2): Loading io-drivers from '/usr/pkg/lib/gphoto2_port/0.5.1'...
0.020999 gphoto2-port-serial(2): Trying to lock '/dev/tty00'...
1.014647 gphoto2-port-serial(2): Trying to lock '/dev/tty01'...
1.015430 gphoto2-port-serial(2): Trying to lock '/dev/tty02'...
1.016071 gphoto2-port-serial(2): Trying to lock '/dev/tty03'...
1.016712 gphoto2-port-serial(2): Trying to lock '/dev/tty04'...
1.017351 gphoto2-port-serial(2): Trying to lock '/dev/tty05'...
1.017985 gphoto2-port-serial(2): Trying to lock '/dev/tty06'...
1.018644 gphoto2-port-serial(2): Trying to lock '/dev/tty07'...
1.019277 gphoto2-port-serial(2): Trying to lock '/dev/tty08'...
1.019911 gphoto2-port-serial(2): Trying to lock '/dev/tty09'...
1.020544 gphoto2-port-serial(2): Trying to lock '/dev/tty010'...
1.021180 gphoto2-port-serial(2): Trying to lock '/dev/tty011'...
1.021817 gphoto2-port-serial(2): Trying to lock '/dev/tty012'...
1.022455 gphoto2-port-serial(2): Trying to lock '/dev/tty013'...
1.023089 gphoto2-port-serial(2): Trying to lock '/dev/tty014'...
1.023725 gphoto2-port-serial(2): Trying to lock '/dev/tty015'...
1.024364 gphoto2-port-serial(2): Trying to lock '/dev/tty016'...
1.025026 gphoto2-port-serial(2): Trying to lock '/dev/tty017'...
1.025663 gphoto2-port-serial(2): Trying to lock '/dev/tty018'...
1.026302 gphoto2-port-serial(2): Trying to lock '/dev/tty019'...
1.026936 gphoto2-port-serial(2): Trying to lock '/dev/tty020'...
1.027577 gphoto2-port-serial(2): Trying to lock '/dev/tty021'...
1.028214 gphoto2-port-serial(2): Trying to lock '/dev/tty022'...
1.028870 gphoto2-port-serial(2): Trying to lock '/dev/tty023'...
1.031424 gphoto2-port-serial(2): Trying to lock '/dev/tty024'...
1.032083 gphoto2-port-serial(2): Trying to lock '/dev/tty025'...
1.032721 gphoto2-port-serial(2): Trying to lock '/dev/tty026'...
1.033354 gphoto2-port-serial(2): Trying to lock '/dev/tty027'...
1.033988 gphoto2-port-serial(2): Trying to lock '/dev/tty028'...
1.034758 gphoto2-port-serial(2): Trying to lock '/dev/tty029'...
1.035399 gphoto2-port-serial(2): Trying to lock '/dev/tty030'...
1.036035 gphoto2-port-serial(2): Trying to lock '/dev/tty031'...
1.036671 gphoto2-port-serial(2): Trying to lock '/dev/tty032'...
1.037362 gphoto2-port-core(2): Loaded 'Serial Port 0' (serial:/dev/tty00) from 'libgphoto2_port_serial.so'
1.038029 gphoto2-port-core(2): Loaded '' (^serial) from 'libgphoto2_port_serial.so'
1.040405 gphoto2-port-core(2): Loaded 'Universal Serial Bus' (usb:) from 'libgphoto2_port_usb.so'
1.041511 gphoto2-port-info-list(2): Counting entries (3 available)...
1.042266 gphoto2-port-info-list(2): 2 regular entries available.
1.043021 gphoto2-port-info-list(2): Getting info of entry 0 (3 available)...
1.043661 gphoto2-port-info-list(2): Getting info of entry 1 (3 available)...
1.046004 gp-camera(2): Freeing camera...
1.046696 gphoto2-port(2): Freeing port...
1.047347 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list...
1.047952 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty
1.048546 gphoto2-filesystem(2): Internally deleting all folders from '/'...


The devices are:

Devices found: 2
Path                             Description
--------------------------------------------------------------
serial:/dev/tty00                Serial Port 0
usb:                             Universal Serial Bus


gtkam (which I tried first) also fails and pops up some windows saying:
"No cameras detected" when I click "Detect" (under "Select Camera").

When I select "HP PhotoSmart 43x (PTP mode)" and "Universal Serial Bus
(usb:)" (the only choice) it says "Could not initialize camera." and
"Could not list folders in '/'." in two windows titled "Bad parameters".

gtkam debug says:

ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE
MAILING LIST:
gtkam 0.1.10
gtkam has been compiled with the following options:
 + gcc (C compiler used)
 + no bonobo (for FIXME)
 + no gnome (for FIXME)
 + no gimp (plugin for The Gimp)
 + exif (for displaying exif information)
libgphoto2 2.1.4
libgphoto2 has been compiled with the following options:
 + gcc (C compiler used)
 + EXIF (for special handling of EXIF files)
 + no ltdl (working around buggy libltdl, eh? :-)
 + no /proc/meminfo (adapts cache size to memory available)
libgphoto2_port 0.5.1
libgphoto2_port has been compiled with the following options:
 + gcc (C compiler used)
 + USB (for USB cameras)
 + serial (for serial cameras)
 + serial (for serial cameras)
 + no resmgr (serial port access and locking)
 + no baudboy (serial port locking)
 + no ttylock (serial port locking)
 + no lockdev (serial port locking)
 + no ltdl (working around buggy libltdl, eh? :-)

Does anyone use gphoto2 with HP 435 under NetBSD?

Or any ideas on how I can get this to work?

Thank you,

Jeremy C. Reed

p.s. I also sent same email to gphoto-user list.