Nikon 1 J5 support

Report bugs and errors to the digiCamControl development team.
Post Reply
bardico
Posts: 1
Joined: Tue Aug 27, 2019 5:34 pm

Nikon 1 J5 support

Post by bardico » 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:

Code: Select all

{"J5", typeof(NikonD600Base)},
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:

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.
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

Nikon 1 J5 support

Advertisment
 

admin
Site Admin
Posts: 102
Joined: Tue Sep 15, 2015 8:33 pm

Re: Nikon 1 J5 support

Post by admin » Wed Aug 28, 2019 8:50 am

Thanks for the code.

Post Reply