2018년 10월 6일 토요일

UPnP 개발자 도구

UPnP 개발자 도구


윈도 UPnP Tools

http://www.meshcommander.com/upnptools


유용한 툴
  • Device Sniffer (SSDP monitor)
  • Device Spy (Control Point)
  • Network Light (UPnP Device)

 

위 다운로드 링크가 고장난 것으로 보임

https://github.com/jeremypoulter/DeveloperToolsForUPnP 

소스를 받아 visual studio 로 빌드 가능


e.g.)

> git clone git@github.com:jeremypoulter/DeveloperToolsForUPnP.git

> cd DeveloperToolsForUPnP\Tools

> DeveloperTools.sln


0.0.69 바이너리 다운로드

https://github.com/bjtj/DeveloperToolsForUPnP/releases/tag/0.0.69

 


Android - UPnP Tools

Play store

SOAP


SOAP requset 예



Service type
urn:schemas-upnp-org:service:ContentDirectory:1

Action name
GetSystemUpdateID

HTTP header

SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#GetSystemUpdateID"

XML
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<u:GetSystemUpdateID xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"/>
</s:Body>
</s:Envelope>


SOAP response 예


HTTP header
HTTP/1.1 200  OK
CONTENT-TYPE:  text/xml; charset="utf-8"
EXT: 
SERVER:  UPnP/1.0 DLNADOC/1.50 Platinum/1.0.5.13
Content-Length: 328


XML
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<u:GetSystemUpdateIDResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
<Id>76941487</Id>
</u:GetSystemUpdateIDResponse>
</s:Body>
</s:Envelope>



UPnP 용어 정리

용어 정리 https://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.0.pdf https://openconnectivity.org/upnp-specs/UPnP-arch-DeviceArchitecture...