c - UPNP - Bind between Device and Services (miniupnp) -
i using miniupnp sw package running on router. in order list available devices / services on lan network, used 'listdevice' application, query miniupnpc discover devices / services , print them out.
can please explain how can understand, service belong each device?
see example table below:
1: urn:schemas-upnp-org:service:layer3forwarding:1 http://192.168.1.1:5000/rootdesc.xml uuid:63ce4f39-1485-4bd6-ba33-bb1ec09dc1cf::urn:schemas-upnp-org:service:layer3forwarding:1 2: uuid:63ce4f39-1485-4bd6-ba33-bb1ec09dc1cf http://192.168.1.1:5000/rootdesc.xml uuid:63ce4f39-1485-4bd6-ba33-bb1ec09dc1cf 3: uuid:63ce4f39-1485-4bd6-ba33-bb1ec09dc1c0 http://192.168.1.1:5000/rootdesc.xml uuid:63ce4f39-1485-4bd6-ba33-bb1ec09dc1c0 4: uuid:63ce4f39-1485-4bd6-ba33-bb1ec09dc1c1 http://192.168.1.1:5000/rootdesc.xml uuid:63ce4f39-1485-4bd6-ba33-bb1ec09dc1c1 5: urn:schemas-upnp-org:device:wanconnectiondevice:1 http://192.168.1.1:5000/rootdesc.xml uuid:63ce4f39-1485-4bd6-ba33-bb1ec09dc1c1::urn:schemas-upnp-org:device:wanconnectiondevice:1 6: urn:schemas-upnp-org:device:wandevice:1 http://192.168.1.1:5000/rootdesc.xml uuid:63ce4f39-1485-4bd6-ba33-bb1ec09dc1c0::urn:schemas-upnp-org:device:wandevice:1 7: urn:schemas-upnp-org:service:wanipconnection:1 http://192.168.1.1:5000/rootdesc.xml uuid:63ce4f39-1485-4bd6-ba33-bb1ec09dc1c1::urn:schemas-upnp-org:service:wanipconnection:1 8: urn:schemas-upnp-org:service:wancommoninterfaceconfig:1 http://192.168.1.1:5000/rootdesc.xml uuid:63ce4f39-1485-4bd6-ba33-bb1ec09dc1c0::urn:schemas-upnp-org:service:wancommoninterfaceconfig:1 9: urn:schemas-upnp-org:service:wanpppconnection:1 http://192.168.1.1:5000/rootdesc.xml uuid:63ce4f39-1485-4bd6-ba33-bb1ec09dc1c1::urn:schemas-upnp-org:service:wanpppconnection:1 10: upnp:rootdevice http://192.168.1.1:5000/rootdesc.xml uuid:63ce4f39-1485-4bd6-ba33-bb1ec09dc1cf::upnp:rootdevice 11: urn:schemas-upnp-org:device:internetgatewaydevice:1 http://192.168.1.1:5000/rootdesc.xml uuid:63ce4f39-1485-4bd6-ba33-bb1ec09dc1cf::urn:schemas-upnp-org:device:internetgatewaydevice:1 12: urn:microsoft.com:service:x_ms_mediareceiverregistrar:1 http://192.168.1.1:8200/rootdesc.xml uuid:4d696e69-444c-164e-9d41-7e1fa325930c::urn:microsoft.com:service:x_ms_mediareceiverregistrar:1 13: urn:schemas-upnp-org:service:connectionmanager:1 http://192.168.1.1:8200/rootdesc.xml uuid:4d696e69-444c-164e-9d41-7e1fa325930c::urn:schemas-upnp-org:service:connectionmanager:1 14: urn:schemas-upnp-org:service:contentdirectory:1 http://192.168.1.1:8200/rootdesc.xml uuid:4d696e69-444c-164e-9d41-7e1fa325930c::urn:schemas-upnp-org:service:contentdirectory:1 15: urn:schemas-upnp-org:device:mediaserver:1 http://192.168.1.1:8200/rootdesc.xml uuid:4d696e69-444c-164e-9d41-7e1fa325930c::urn:schemas-upnp-org:device:mediaserver:1 16: upnp:rootdevice http://192.168.1.1:8200/rootdesc.xml uuid:4d696e69-444c-164e-9d41-7e1fa325930c::upnp:rootdevice 17: uuid:4d696e69-444c-164e-9d41-7e1fa325930c http://192.168.1.1:8200/rootdesc.xml uuid:4d696e69-444c-164e-9d41-7e1fa325930c
for case, response trick you.
each device followed services, can seen in table above, device might offer no services, example:
5: urn:schemas-upnp-org:device:wanconnectiondevice:1 http://192.168.1.1:5000/rootdesc.xml uuid:63ce4f39-1485-4bd6-ba33-bb1ec09dc1c1::urn:schemas-upnp-org:device:wanconnectiondevice:1
or can offer several services, example:
6: urn:schemas-upnp-org:device:wandevice:1 http://192.168.1.1:5000/rootdesc.xml uuid:63ce4f39-1485-4bd6-ba33-bb1ec09dc1c0::urn:schemas-upnp-org:device:wandevice:1 7: urn:schemas-upnp-org:service:wanipconnection:1 http://192.168.1.1:5000/rootdesc.xml uuid:63ce4f39-1485-4bd6-ba33-bb1ec09dc1c1::urn:schemas-upnp-org:service:wanipconnection:1 8: urn:schemas-upnp-org:service:wancommoninterfaceconfig:1 http://192.168.1.1:5000/rootdesc.xml uuid:63ce4f39-1485-4bd6-ba33-bb1ec09dc1c0::urn:schemas-upnp-org:service:wancommoninterfaceconfig:1 9: urn:schemas-upnp-org:service:wanpppconnection:1 http://192.168.1.1:5000/rootdesc.xml uuid:63ce4f39-1485-4bd6-ba33-bb1ec09dc1c1::urn:schemas-upnp-org:service:wanpppconnection:1
Comments
Post a Comment