I am trying to evaluate OhNet for a Set-top Box UPnP Control Point solution on the an iOS platform.
I want to use OhNetGen to generate some custom proxies for the UPnP Control Point stack. I am unable to get any output from the tool, whether generated code or error messages!
I am on a Win7 x64 platform and I have tried downloading pre-built ohNet versions for both x86 and x64, both debug and release builds. I have also tried updating to the latest version of WinSDK which I think gives me .NET v4. When calling OhNetGen.exe with the requisite arguments, the behaviour is the same with any binaries.
ohNetGen.exe --language=c --stack=cp --xml="c:\Program Files (x86)\UPnP\Developer Tools for UPnP Technologies\Sample Service Descriptions\AV_AVTransport-0.9.xml" --output=c:\Resources\UPNP\ohNet\proxies --domain=urn:schemas-upnp-org --type=AV_AVTransport-0.9 --version=1
The command takes time before exiting, but nothing is output. Neither generated proxy code nor any error messages to say what failed. Since I have some custom UPnP services on my device, if I want to use OhNet (and I do) it is essential that I can generate the Proxies to control them!
Any help or advice you can offer is appreciated…
Following some advice and some trials, I did manage to generate the proxies using OhNetGen. Here are the steps:
Just for reference, these are the args I used:
Edit: Entering the domain as I did above causes OhNetGen to generate a proxy with dashes in the function names. Clearly these are invalid names in C (and C++). You should enter the domain in domain.org format and OhNetGen will handle any necessary translation. See below:
Hope this helps…
Doug