Thank you for your reply.
I have previously referred to PTPPassThrough, but there is no example of sending the outData parameter, and I have not found it on Apple forums or online.
And I have also tried putting sendData into sendCommand, and sending the command and data in two separate requests, but none of them worked.
I have tried changing the command type to 1, but it did not work. I think it should be 2 because it requires sending sendData, and another reason is that I have referenced other PTP libraries that use 2 to send data.
The command and data are using little endian, which should not be a problem because we have referenced other PTP libraries that also use little endian.
There are new developments or changes now, and I am using this camera. If there is no time limit for waiting for a response after sending a request, I will receive a normal response after more than 1 minute, which is a 12 byte length ptpResponseData. But obviously, normally I wouldn't wait that long. The timeout I set is 20 seconds.
I am currently annotating the request to send commands and data to prevent it from working. Some cameras can function normally, but other cameras may not, and any request that contains both commands and data cannot work. I have tested several brands of cameras, and some will respond with error messages in a short period of time, such as not being able to complete this request, while others will respond with empty commands. If some cameras really need to receive timely and correct responses after sending commands and data requests to work properly, then the business will be seriously affected.
Topic:
App & System Services
SubTopic:
Hardware