Did you set the camera its self to ptp mode?
ptpip is for networks as I understand it.
On Tue, Oct 6, 2009 at 8:51 PM, <fitz@fitzharris.com> wrote:
Hi All,

I have a Nikon D70s I am trying to get working with gphoto2.

I am running CentOS release 5.3 (2.6.18-128.el5 x86) with libgphoto2-2.4.7
and gphoto2-2.4.7.  Both compiled without any trouble after satisfying the
dependancies.  The OS see's the camera.  gphoto has the ptpip port, which
I understand the D70s uses.  I looks like gphoto2 has the Nikon driver
installed.  If I try to capture an image I receive a io-library error.

Any help would be appreciated.

Thanks,
Sean


>From dmesg:

Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
 Vendor: NIKON     Model: D70s              Rev: 1.00
 Type:   Direct-Access                      ANSI SCSI revision: 02
usb-storage: device scan complete



[root@barf ~]# gphoto2 --auto-detect
Model                          Port
----------------------------------------------------------
[root@barf ~]#


[root@nozzle ~]# gphoto2 --list-cameras | grep D70
       "Canon PowerShot SD700 (PTP mode)"
       "Nikon DSC D70 (PTP mode)"
       "Nikon DSC D700 (PTP mode)"
       "Nikon DSC D70s (PTP mode)"
[root@nozzle ~]#


[root@nozzle ~]# gphoto2 --list-ports
Devices found: 6
Path                             Description
--------------------------------------------------------------
ptpip:                           PTP/IP Connection
serial:/dev/ttyS0                Serial Port 0
serial:/dev/ttyS1                Serial Port 1
serial:/dev/ttyS2                Serial Port 2
serial:/dev/ttyS3                Serial Port 3
usb:                             Universal Serial Bus
[root@nozzle ~]#[root@nozzle ~]# gphoto2 --camera "Nikon DSC D70s (PTP
mode)" --port ptpip:  --capture-image-and-download --filename
"%Y%m%d%H%M%S.jpg"
failed to scan for addr in

*** Error ***
An error occurred in the io-library ('Bad parameters'): No error
description available
ERROR: Could not capture.
*** Error (-2: 'Bad parameters') ***

For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <gphoto-devel@lists.sourceforge.net>, please run
gphoto2 as follows:

   env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --camera
"Nikon DSC D70s (PTP mode)" --port ptpip: --capture-image-and-download
--filename %Y%m%d%H%M%S.jpg

Please make sure there is sufficient quoting around the arguments.

[root@nozzle ~]#



1.889775 gphoto2-port-info-list(2): Could not load port driver list:
'Unspecified error'.
1.890144 gphoto2-port-info-list(2): Called for filename
'/usr/local/lib/libgphoto2_port/0.8.0/ptpip'.
1.893055 gphoto2-port-info-list(2): Loaded 'PTP/IP Connection' ('ptpip:')
from '/usr/local/lib/libgphoto2_port/0.8.0/ptpip'.
1.893485 gphoto2-port-info-list(2): Loaded '' ('^ptpip') from
'/usr/local/lib/libgphoto2_port/0.8.0/ptpip'.
1.893887 gphoto2-port-info-list(2): Called for filename
'/usr/local/lib/libgphoto2_port/0.8.0/serial'.
1.899476 gphoto2-port-info-list(2): Loaded 'Serial Port 0'
('serial:/dev/ttyS0') from '/usr/local/lib/libgphoto2_port/0.8.0/serial'.
1.899908 gphoto2-port-info-list(2): Loaded 'Serial Port 1'
('serial:/dev/ttyS1') from '/usr/local/lib/libgphoto2_port/0.8.0/serial'.
1.900242 gphoto2-port-info-list(2): Loaded 'Serial Port 2'
('serial:/dev/ttyS2') from '/usr/local/lib/libgphoto2_port/0.8.0/serial'.
1.900628 gphoto2-port-info-list(2): Loaded 'Serial Port 3'
('serial:/dev/ttyS3') from '/usr/local/lib/libgphoto2_port/0.8.0/serial'.
1.900959 gphoto2-port-info-list(2): Loaded '' ('^serial') from
'/usr/local/lib/libgphoto2_port/0.8.0/serial'.
1.901293 gphoto2-port-info-list(2): Called for filename
'/usr/local/lib/libgphoto2_port/0.8.0/usb'.
1.909482 gphoto2-port-info-list(2): Loaded 'Universal Serial Bus' ('usb:')
from '/usr/local/lib/libgphoto2_port/0.8.0/usb'.
1.909917 gphoto2-port-info-list(2): Loaded '' ('^usb:') from
'/usr/local/lib/libgphoto2_port/0.8.0/usb'.
1.910319 gphoto2-port-info-list(2): Counting entries (10 available)...
1.910704 gphoto2-port-info-list(2): 6 regular entries available.
1.911056 gphoto2-port-info-list(2): Looking for path 'ptpip:' (10 entries
available)...
1.911449 gphoto2-port-info-list(2): Getting info of entry 0 (10 available)...
1.911869 gphoto2-camera(2): Setting port info for port 'PTP/IP Connection'
at 'ptpip:'...
1.914333 gphoto2-port(2): Setting settings...
1.914736 gphoto2-setting(2): Setting key 'port' to value 'ptpip:' (gphoto2)
1.915088 gphoto2-setting(2): Saving 2 setting(s) to file
"/root/.gphoto/settings"
1.919105 gphoto2-camera(2): Initializing camera...
1.919450 gphoto2-camera(2): Loading '/usr/local/lib/libgphoto2/2.4.7/ptp2'...
1.923390 gphoto2-port(2): Opening  port...
1.924010 ptpip/connect(2): connecting to ptpip:.
1.925454 ptpip(0): Failed to connect.

1.925913 gphoto2-port(2): Closing port...
1.926723 context(0): An error occurred in the io-library ('Bad
parameters'): No error description available
1.951327 gp-camera(2): Freeing camera...
1.951772 gphoto2-port(2): Freeing port...
1.952111 gphoto2-port(2): Closing port...
1.952811 gphoto2-filesystem(2): resetting filesystem
1.953131 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list...
1.953431 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty
1.953774 gphoto2-filesystem(2): Internally deleting all folders from '/'...
1.954086 gphoto2-filesystem(2): Lookup folder '/'...
1.954391 gphoto2-filesystem(2): Found! / is 0x8a8f310
1.954773 gphoto2-filesystem(2): Recurse delete folder 0x8a8f310//





------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gphoto-user mailing list
Gphoto-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gphoto-user



--
Todd Burdeinei
Web Developer
Burdeinei Corp
702-259-3273 office / fax number
702-372-9920 cell
Todd@burdeinei.com