Issues while searching DLNA enabled devices

107 views
Skip to first unread message

sudheer dantuluri

unread,
Jan 2, 2012, 6:45:13 AM1/2/12
to upnpx
Hi Bruno,

I'm facing issues while fetching the devices list. I could see some odd behavior while retrieving the devices list.
Initially I've started with m-search string with the default string mentioned in the library (ssdp:all) searching for all the devices in the list. In this scenario I've faced issues like I'm unable to find an already running DMS sometimes. Sometimes I'm unable to find some renederers. Relaunching the application or refreshing the search one or twice is identifying the device.

Later, I've changed the search criteria to get only Digital Media Servers with the following search m-search string in int SSDP::Search() method.

sprintf(buf, "M-SEARCH * HTTP/1.1\r\nHOST: 239.255.255.250:1900\r\nMAN: \"ssdp:discover\"\r\nMX: %d\r\nST: urn:schemas-upnp-org:device:MediaServer:1\r\nUSER-AGENT: %s UPnP/1.1 %s\r\n\r\n", seconds,os, product);


This time, I'm able to successfully identify the the servers but unable to browse the content. The issue is with the search criteria. I've updated the search as follows to get the DMS devices as well as to browse the content. 

Calling the same multiple times with different m-search string resulted in browsing the device content. Attached the code snippet.


Can you please let me know if there is anything that we need to do in order to get a consistent search result when we search for all DLNA enabled  devices in the network without missing any devices?


Thanks

Sudheer




CodeSnippet.rtf

zein

unread,
Dec 6, 2012, 8:42:36 PM12/6/12
to up...@googlegroups.com
Hi,

You said that you have change the m-search string. Does it cause you any problem to connect it as a renderer?
I have try your solution, it does show DMR in faster way, but most of time I can't connect it as a renderer. I can't get to to connect avTransport.

Please advice. Thanks.
Reply all
Reply to author
Forward
0 new messages