英文:
using WireShark: how can I find the DLNA description xml for a device
问题
I'm trying to get my Wi-Fi speaker working on HomeAssistant.
我正在尝试让我的Wi-Fi音响在HomeAssistant上工作。
For this I need the device.xml location.
为此,我需要设备的xml位置。
I found a technical manual on the UPNP site describing the discovery of devices. The SSPD message should contain the location of the xml.
我在UPNP网站上找到了一份描述设备发现的技术手册。SSPD消息应该包含xml文件的位置。
I installed Wireshark and connected to the speaker from my computer.
我安装了Wireshark,并从我的电脑连接到了音响。
As a result, I get a packet that contains this
结果,我获得了一个包含以下内容的数据包
(øWW"l]öEÕN@@/
(
ÀîD+aÌZÕá|Pµâ¢/upnp/QPlaySCPD.xml
I was expecting I could go to http://192.0.0.xx/upnp/QPlaySCPD.xml but that returns "Access Error: site or page Not found".
我本以为我可以访问http://192.0.0.xx/upnp/QPlaySCPD.xml,但返回“访问错误:网站或页面未找到”。
In wireshark I do see the xml file and it's content in the "reassembled TCP".
在Wireshark中,我确实看到了XML文件及其内容在“重组的TCP”中。
I'm not a network guy; I just fiddle until things work. Please see below for the packet; in the left column you see the XML I'm searching, in the right you see the frame.
我不是网络专家;我只是摸索,直到事情能够正常工作。请参见下面的数据包;左列显示了我正在寻找的XML,右列显示了帧。
英文:
I'm trying to get my Wi-Fi speaker working on HomeAssistant.
For this I need the device.xml location.
I found a technical manual on the UPNP site describing the discovery of devices. The SSPD message should contain the location of the xml.
I installed Wireshark and connected to the speaker from my computer.
As a result, I get a packet that contains this
(øWW"l]öEÕN@@/
(
ÀîD+aÌZÕá|P´â¢/upnp/QPlaySCPD.xml</SCPDURL>
<controlURL>/upnp/control/QPlay1</controlURL>
<eventSubURL>/upnp/event/QPlay1</eventSubURL>
</service>
</serviceList>
</device>
</root>
I was expecting I could go to http://192.0.0.xx/upnp/QPlaySCPD.xml but that returns "Access Error: site or page Not found".
In wireshark I do see the xml file and it's content in the "reassembled TCP".
I'm not a network guy; I just fiddle until things work. Please see below for the packet; in the left column you see the XML I'm searching, in the right you see the frame.
答案1
得分: 0
作为参考,我找到了另一个Wireshark数据包,其中包含设备.xml的URL。
所以对于我的Stereoboomm设备,它是ip:49152/description.xml。
英文:
for reference, I found another wireshark packet containing the url to the device.xml
so for my stereoboomm device it was ip:49152/description.xml
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论