Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8172795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:53:49+00:00 2026-06-06T21:53:49+00:00

I am trying to evaluate OhNet for a Set-top Box UPnP Control Point solution

  • 0

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…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T21:53:51+00:00Added an answer on June 6, 2026 at 9:53 pm

    Following some advice and some trials, I did manage to generate the proxies using OhNetGen. Here are the steps:

    1. Unpack the x64 release binary download.
    2. In the folder ohNet-Windows-x64-release-dev\lib\t4, create a new path OpenHome\Net\T4\Templates
    3. Copy all the *.tt files from lib\t4 to lib\t4\OpenHome\Net\T4\Templates
    4. Put the XML Service templates to a sub directory relative to OhNetGen.exe
    5. Create an Output directory for the proxies that is a sub-directory relative to OhNetGen.exe
    6. At a command prompt, change directory to lib\t4
    7. Give relative paths for the xml and output options
    8. You should now be able to run ohNetGen.exe with lib\t4 as your current directory.

    Just for reference, these are the args I used:

    ohNetGen.exe --language=c --stack=cp --xml=config\EventServices.xml --output=proxies\ --domain=schemas-upnp-org --type=EventServices --version=1
    

    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:

    ohNetGen.exe --language=c --stack=cp --xml=config\EventServices.xml --output=proxies\ --domain=upnp.org --type=EventServices --version=1
    

    Hope this helps…

    Doug

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to evaluate the use of Windows Azure storage/media/cdn services to host the
I'm trying to evaluate whether to use classic Principal based authorization vs. IdentityModel authorization.
I'm trying to evaluate Ruport for use in my Rails app, but am not
I am trying to evaluate Excel DNA to use it in one of my
We are trying to evaluate and eventually migrate to the windows azure cloud platform.
I'm trying to evaluate Fitnesse to use with our .Net projects. I've been following
I am trying to evaluate the derivative of a function at a point (3,5,1)
I've been trying to evaluate emberjs for a rails project. Can someone suggest (or
I'm trying to evaluate an xml node using xpath and i'm not sure why
I'm trying to evaluate an XPath varable I'm building dynamically based on the position

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.