使用WireShark:如何找到设备的DLNA描述XML文件

huangapple go评论110阅读模式
英文:

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
/upnp/control/QPlay1
/upnp/event/QPlay1



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.

使用WireShark:如何找到设备的DLNA描述XML文件

答案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

huangapple
  • 本文由 发表于 2023年6月8日 04:37:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/76426955.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定