-1

Hey guys well i'm working on a project.

Basically i need to be able to retrieve result of a SSDP packet to find the IP of my Pioneer VSX AVR. It responds to SSDP to be used with the official apps and i am working on a windows application to do the same sort off thing.

Source: http://github.com/cyanlabs/vsxremote

What i know so far...

  1. the packet need to be sent to the ip 239.255.255.250

  2. The port is 1900 and the AVR responds to Telnet/TCP on 23/8102

  3. The description.xml is located at 192.168.0.111:8080/description.xml

  4. I tried to figure this code out but it didn't seem to work. http://social.msdn.microsoft.com/Forums/vstudio/en-US/d7f53b79-80dc-46f7-96dd-fc3b7a28f8d4

  5. The request i need to send is

    M-SEARCH * HTTP/1.1
    HOST: 239.255.255.250:1900
    ST:urn:schemas-upnp-org:device:MediaRenderer:1
    MAN: "ssdp:discover"
    MX: 1
    

Any help would be great. Thanks.

4

1 回答 1

1

基于wireshark输出和链接代码(两者都应该在帖子中):

CONTENT-LENGTH 标头不应是 M-SEARCH 消息的一部分。您最后还缺少一个空行 (vbCrLf) - 这是 CONTENT-LENGTH 行末尾缺少的 CrLf 的补充。换句话说,包括最后一行在内的每一行都必须以“\r\n”结尾,然后最后必须有一个额外的“\r\n”。省略空行通常会导致设备忽略您的消息(因为他们无法真正知道它是否完整)。

有关SSDP 的事实规范,请参阅UPnP 设备架构第 1 部分。

于 2014-07-07T21:20:29.570 回答