Android Question Can I use a c# library in b4a or convert it to a b4a library

thescrapyard

New Member
Licensed User
Longtime User
I'm interested in writing an app to control my Nikon D3100 DSLR as there isn't much support for it currently, and have found a c# library that includes all the functions needed to access the DSLR via the USB port (or using a converter cable from a mobile)

There is already some apps that control 'some' DSLR camera but not all. Most are written with a specific model then start to expand on that to support more, the Nikon D3100 is slightly different on its lack of 'USB mode' so I want to try and concentrate on that as other apps support more advanced DSLR models then add 'some' support for the D3100

This is the current app for some Nikon DSLR that seems to be the better choice for my camera, but still struggles to access a lot of features and is a bit hit and miss

https://code.google.com/p/dslrdashboard/

This is the c# library I'm interested in using and also includes the full source and how to access the camera directly via c#

http://sourceforge.net/projects/nikoncswrapper/


Thanks
 

thescrapyard

New Member
Licensed User
Longtime User
No really protocol as such, just commands sent to the camera that can make the camera do various things. If the camera supports PTP then it the software almost controls the camera remotely. Or tell the camera to do things that are not really built into the camera firmware but is possible via direct commands (which PTP seems to be)

http://en.wikipedia.org/wiki/Picture_Transfer_Protocol

Some cameras are better supported than others,which is why most people seem to develop for those that have full support then try to add support for camera that offer some support

My Nikon D3100 is a camera that has 'some' PTP support but not as easy as others that have full support such as the Nikon D7000 and above, or the Canon equivalents

There is commercial software that fully supports PTP, but not 'low end DSLR' such as the D3100. In their opinion anyway .... even Nikon don't really offer much support or drivers but it is possible to control a lot of it remotely

I have managed to track down a c# to java converter, but I'll have to see what that achives

The c# library is really a 'gateway' to the Nikon SDK that covers the Nikon PTP, but even seasoned programmers say its far from easy to access but the c# library accesses all the functions via fairly simple commands and parameters without having to recreate the wheel just to access the SDK fully
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…