locked
UPnP - Options for implementation RRS feed

  • Question

  • I'm aware of some open source offerings that are managed libraries supporting UPnP.

    However these are not ideal for my needs - for one they rely on a COM component that is not available on all platforms or all versions of Windows or .Net

    From what I have gathered so far UPnP uses HTTP (like) requests as the communication mechanism and SOAP as the means of interacting with networked UPnP devices, so in theory there is no need to worry about OS or .Net versions or COM - just deal directly at the HTTP level.

    My question is - should I consider implementing this msyelf? Should I consider creating some classes that encapsulate the HTTP message strings and expose HTTP response strings in a more abstract OO fashion?

    I have created a simple desktop app that sends a discovery string (HTTP) over UDP and receives responses (also HTTP strings) back from various devices.

    Naturally nobody wants to parse such text strings so I wanted to create some classes that represent these - is this something to consider or is the whole UPnP domain much more complex?

    Thanks

    Cap'n


    • Edited by Captain Kernel Thursday, February 14, 2013 5:57 PM
    • Moved by Bob Shen Tuesday, February 26, 2013 3:01 AM
    Thursday, February 14, 2013 5:56 PM

All replies

  • Intel's stack is now open source, and doesn't rely on the Microsoft COM implementation: http://opentools.homeip.net/dev-tools-for-upnp

    The COM component versions should work on any Windows release >= Windows XP, though, so it's perfectly acceptable for desktop development.


    Reed Copsey, Jr. - http://reedcopsey.com
    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    Thursday, February 14, 2013 6:11 PM
  • Thanks Reed;

    Yes I did take a look at that but can find no URL to the open source area, so I have no idea where to access the source code.

    OK the 0.58 v src is there - I will take a look at that.

    By the way - "all platforms" here means Windows 8, Tablet and Phone 8.

    Cap'n



    Thursday, February 14, 2013 7:06 PM
  • Interesting though that Intel code is - it cannot work on Windows Phone 8 - too many .Net classes it uses just do not exist in the Phone 8 API.

    I'm gonna try to quantify how bad this is and decide if the code can be modified...

    For example ArrayList does not exist in any form in the Phone 8 API nor does XmlTextReader or XmlTextWriter...

    Cap'n



    Thursday, February 14, 2013 9:05 PM
  • Hi Captain,

    For Windows Phone please use below forum:

    http://social.msdn.microsoft.com/Forums/en-US/wpdevelop/threads

    Thanks.


    Bob Shen
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, February 18, 2013 6:07 AM