Nikon 1 J5 support
Posted: Tue Aug 27, 2019 5:50 pm
Hi all,
I noticed there is a bug that prevents Nikon 1 J5 wifi support from working.
After adding in CameraDeviceManager.cs in DeviceClass dictionary:
The Wifi connection is not working because the model is returning 'J5\0\0\0', instead of 'J5'.
To fix this I suggest adding this line in PtpIpPtococol class in LoadDeviceInfo method:
By doing so, J5 connects and LiveView works. Still it's not possible to take photos (operation not supported error raises, I don't know why), but al least is one step forward towards supporting Nikon 1 devices.
Best
I noticed there is a bug that prevents Nikon 1 J5 wifi support from working.
After adding in CameraDeviceManager.cs in DeviceClass dictionary:
Code: Select all
{"J5", typeof(NikonD600Base)},
To fix this I suggest adding this line in PtpIpPtococol class in LoadDeviceInfo method:
Code: Select all
Model = Encoding.Unicode.GetString(res.Data, index, strlen2 - 2); // This lines is already in the code, just included as a reference.
Model = Model.Substring(0, Model.IndexOf('\0')); // Otherwise, at least for Nikon 1 J5 returns 'J5\0\0\0', and doesn't work.
Best