From 583b3b48cf7b61334694bd7dcf9752c09d8e910c Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Wed, 21 Oct 2015 00:33:50 +0200 Subject: [PATCH] Added Init_Event_Request to init. --- ptpip.py | 17 +++++++++++++++-- theta.py | 14 +++++++++++++- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/ptpip.py b/ptpip.py index 9f7a6a2..e81dfc7 100644 --- a/ptpip.py +++ b/ptpip.py @@ -2,6 +2,7 @@ PTP/IP class for MicroPython @author Markus Birth +PTP/IP abstract: http://www.cipa.jp/ptp-ip/index_e.html PTP packet structure: http://www.gphoto.org/doc/ptpip.php and https://github.com/gphoto/libgphoto2/blob/master/camlibs/ptp2/PTPIP.TXT PTP example implementation in JavaScript: https://github.com/feklee/ptp.js @@ -74,11 +75,23 @@ class PTPIP: elif result[0] != 2: print("Unknown package type: %i" % result[0]) return False - session_id = struct.unpack('