I use CocoaAsyncSocket for communication. For communication, look at the PTP (over USB) spec and http://www.cipa.jp/ptp-ip/index_e.html. The payload packets are pretty much like in the USB spec but have some different header bytes.
Objective C PTP/IP connection
-
22-07-2023 - |
Question
I'd like to implement a "Picture Transfer Protocol over IP" (PTP/IP) connection with Objective C between my camera (Nikon D5300) and my Mac to transfer photos and other data wirelessly.
The camera creates a WiFi hotspot, and the Mac connects to it. I know that the camera uses port 15740.
What is the best point to start with? NSInputStream?
La solution 2
Autres conseils
I know that ShutterSnitch has this (iOS app). I emailed its author, who while wasn't willing to license me his work, was very kind to point me to the following resources: http://www.shuttersnitch.com/forums/viewtopic.php?f=4&t=1580
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow