|
State of PTP/IP support: msg#00041multimedia.gphoto.devel
Hi folks, I just committed the state of my current PTP/IP work to CVS. The camera driver support is still disabled, so it can not have broken anything. The port will be listed already. Implementation details: Port "ptpip:" This is implemented as a simple container: Detect the camera via zeroconf (if possible) in --list-ports. This uses the Apple Bonjour code currently, mDNSResponder is the name for the UNIX sources. Support for other MDNS style libraries should be easy. It will work without this support too, you can specify "ptpip:192.168.0.5" or similar as port directly. The port implementation does not do any communication, it only is used for passing the IP address or hostname to the ptp2 driver. Reason for this is that PTP/IP uses 2 TCP/IP socket pipes, one for commands/data and one for events. To support this via our libgphoto_port structure would have required several API additions and a strange broken abstraction between port <-> camera driver. -> The port is only used for carrying the IP Address to the ptp2 driver. ABI Changes: Only a new GP_PORT_PTPIP enum entry was added to the visible ABI. Camera Driver "ptp2": It was already prepared for additional protocols, so adding ptpip was trivial. ptpip.c does all the socket communications, including connect, write, read, close, and does all the stuff required by ptp_transaction(). Current problems: - local machine GUID is fixed (this is sent to the camera via configuration via USB, which I currently cannot do). - IP address still hardcoded (soon changed) - PTP/IP event handling not fully done. Currently working: - Downloading Images works fine. - summary works, including displaying all the property values et.al. The support is currently disabled and not compiled in. If you want to try yourself: - #define ENABLE_PTPIP in library.c - move ptpip.c from EXTRA_DIST to ptp2_la_SOURCES - make What can you do to help (even without camera)? - Please try compiling it under non-Linux systems. I just do not have them :( Ciao, Marcus ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [gphoto-cvs] libgphoto2/libgphoto2_port/libgphoto2_port gphoto2-port-info-list.h,1.9,1.10: 00041, Marcus Meissner |
|---|---|
| Next by Date: | Embedded gPhoto: 00041, Richard Taylor |
| Previous by Thread: | Re: [gphoto-cvs] libgphoto2/libgphoto2_port/libgphoto2_port gphoto2-port-info-list.h,1.9,1.10i: 00041, Marcus Meissner |
| Next by Thread: | Re: State of PTP/IP support: 00041, Dan Fandrich |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |