UpNP and NETLINX
cheekytigerapps
Posts: 37
Hi,
I was wondering if anyone could shed some light on how to send UPnP commands from Netlinx or a Netlinx Module. It would be greatly appreciated if anyone could post an example.
I was wondering if anyone could shed some light on how to send UPnP commands from Netlinx or a Netlinx Module. It would be greatly appreciated if anyone could post an example.
0
Comments
I guess it would really help to know what your trying to do, control, discovery, or get information on with uPnP. Please shed some light on the purpose of your request,
Thanks!
Jeff
Its no different than sending any TCP packet. UPNP uses a weird mixture of http, xml, soap and a few other ingredients to communicate, so its just a matter of creating http packets and sending them. Here's an example of a function for a Sonos module that uses UPNP. It won't format correctly it seems but you get the point.
Theres also some good books around, there's an Intel one that I used to get background info when I was developing a Module for a mediastreamer. Its partly about UPNP design but it gives you all the basic - think its called UPNP design by example - I found it quite useful. Also there is quite a bit on the web, some of it crap, some good.
As others have said, it depends what you are looking for....
Duncan
...or alternatively grab an app that already controls the device you are looking at and watch it on wireshark.takes a bit of getting used to but works
https://github.com/ok1mpd/Netlinx-UPnP-control-point