summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2020-08-31 11:26:00 +0200
committerMarcus Meissner <marcus@jet.franken.de>2020-08-31 11:26:00 +0200
commit4aaa71211af0e4876bdacdb71998db21ba5d4b6a (patch)
treef9ecf755e9b8a9c84e2c2f2029ec9d29587fd4c2
parentcfbf0c07e61d4f9ce041308c2179686b53d9f866 (diff)
downloadlibgphoto2-4aaa71211af0e4876bdacdb71998db21ba5d4b6a.tar.gz
coment current state
-rw-r--r--camlibs/ptp2/fujiptpip.c27
1 files changed, 19 insertions, 8 deletions
diff --git a/camlibs/ptp2/fujiptpip.c b/camlibs/ptp2/fujiptpip.c
index a228001d9..5a733d228 100644
--- a/camlibs/ptp2/fujiptpip.c
+++ b/camlibs/ptp2/fujiptpip.c
@@ -20,15 +20,26 @@
/*
* This is a copy of ptpip.c...
*
- * This is working, but unfinished!
- * - Event handling not finished.
- * - Some configure checking magic missing for the special header files
- * and functions.
- * - Not everything implementation correctly cross checked.
- * - Coolpix P3 does not give transfer status (image 000x/000y), and reports an
- * error when transfers finish correctly.
+ * This is working, but might be buggy.
*
- * Nikon WU-1* adapters might use 0011223344556677 as GUID always...
+ * Only the setup packet is similar to PTP/IP.
+ * The rest speaks a protocol very like to the USB Bulk protocol.
+ *
+ * <32bit length> <16 bit transfertype> <16 bit code> <32bit transaction id> <...data...>
+ *
+ *
+ * transfertype as usual:
+ * - 1: send command (with optional parameters)
+ * - 2: send data (data follows transid)
+ * - 3: response (and optional parameters)
+ * - 4: event (over event pipe)
+ *
+ * For JPEG pipe, also <length> <data...> blobs are sent. There is a 14 byte blob in front of the FF D8 start.
+ *
+ * There are 3 TCP pipes:
+ * - command pipe , port 55740
+ * - event pipe , port 55741 (camera remote port starts listen when you run "InitiateOpenCapture")
+ * - jpeg pipe , port 55742 (camera remote port starts listen when you run "InitiateOpenCapture")
*/
#define _DEFAULT_SOURCE
#include "config.h"