Jump to content

Sonos Play 5 and Connect working


Smaky

Recommended Posts

Spaceboy

no, i assume thats what its detecting from the sonos itself. i've added some of it tom mine but i didn't know what the model no or url is

 

is that what i need to do? update my prfile with that info?

Edited by Spaceboy
Link to comment
Share on other sites

Happy2Play

OST: 239.255.255.250:1900
CACHE-CONTROL: max-age = 1800
LOCATION: http://192.168.1.50:1400/xml/device_description.xml
NT: uuid:RINCON_000E58C7BAE401400
NTS: ssdp:alive
SERVER: Linux UPnP/1.0 Sonos/27.2-80071 (ZPS1)
USN: uuid:RINCON_000E58C7BAE401400
X-RINCON-BOOTSEQ: 9
X-RINCON-HOUSEHOLD: Sonos_b62ZP6dyphrboTkeqGtxpCZIAB

 

Now it is a matter of figuring out where to put "Linux UPnP/1.0 Sonos/27.2-80071 (ZPS1)" in your profile.

Edited by Happy2Play
Link to comment
Share on other sites

arche

I had the same problem with NeoTV dlna, I had to use wireshark to fine the user-agent substring.

Link to comment
Share on other sites

Spaceboy

is that what i should use as the agent bit? too late to test tonight, i'll get into trouble. tomorrow. cheers for your help

Link to comment
Share on other sites

arche

If you use wireshark to fine this info, try something like this for the filter:

 

(ip.src == 192.168.1.5 &&  ip.dst == 192.168.1.127) || (ip.src == 192.168.1.127 && ip.dst == 192.168.1.5)

 

replace 192.168.1.5 with your server IP

 

replace 192.168.1.127 with the client IP

 

just incase this helps.

Link to comment
Share on other sites

Happy2Play

Since the server is providing this information I would mirror it as much as possible, and would remove the user-agent since the log isn't producing on right now.

 

Have you enabled dlna debug logging to see if it provides you with more information?

Link to comment
Share on other sites

Happy2Play

From this post is should display this for the Sonos Play 5 or something very similar.

 

Debug - Dlna: No matching device profile found. The default will be used. User-agent: Linux UPnP/1.0 Sonos/26.1-76230 (ZPS5)

 

http://mediabrowser.tv/community/index.php?/topic/7796-calling-up-profiles-with-the-dlna-server/?p=105700

 

You could try customizing the default profile with that user-agent.

 

But googling this shows these also.

 

USER-AGENT: Linux UPnP/1.0 Sonos/19.4-59140 (MDCR_MacBookPro6,2)

User-Agent: Linux UPnP/1.0 Sonos/24.0-69180 (WDCR:Microsoft Windows NT 6.2.9200.0)

Edited by Happy2Play
Link to comment
Share on other sites

Happy2Play

It doesn't show as user-agent in you log.  But that would be the first thing to try.

Link to comment
Share on other sites

Spaceboy

dunno what to say, this is the entire section:

 

2014-08-12 20:24:25.5605 Debug - HttpServer: HTTP POST http://myserver.org:8096/mediabrowser/Sessions/f81233ca48a44e74b75a441002074d43/Playing?ItemIds=62739508748882a82c6694152266e405&PlayCommand=PlayNow
2014-08-12 20:24:25.5715 Debug - Dlna: 192.168.1.50 - Sonos PLAY:1 Bathroom - Received PlayRequest: PlayNow
2014-08-12 20:24:25.5715 Debug - Dlna: No matching device profile found. The default will need to be used.
2014-08-12 20:24:25.5715 Info - Dlna: No matching device profile found. The default will need to be used.
    DeviceDescription:
    FriendlyName:192.168.1.50 - Sonos PLAY:1 Bathroom
    Manufacturer:Sonos, Inc.
    ManufacturerUrl:http://www.sonos.com
    ModelDescription:Sonos PLAY:1
    ModelName:Sonos PLAY:1
    ModelNumber:S1
    ModelUrl:http://www.sonos.com/products/zoneplayers/S1
    SerialNumber:

 

it then repeats that maybe 10 times. one thing i notice, should it being trying to use the external address? replaced with myserver.org. i've never used dlna before so really not sure what to expect?

Link to comment
Share on other sites

arche

Try renaming the Default dlna profile and saving it. Once saved add this to the http header:

 

name: User-Agent

value: Linux UPnP/1.0 Sonos/19.4-59140

change the drop down to substring.

Link to comment
Share on other sites

Spaceboy

ok, i had already created a new profile, which i think i've configured but i can't see where to add what you are asking? do you mean in the web app or editing a text file somewhere?

 

cheers

Link to comment
Share on other sites

arche

When your in the profile through the admin panel, go to identification and scroll to the bottom. Click on the plus sign for http headers.

Link to comment
Share on other sites

Spaceboy

still the same

 

2014-08-12 21:32:17.1603 Debug - Dlna: 192.168.1.50 - Sonos PLAY:1 Bathroom - Received PlayRequest: PlayNow
2014-08-12 21:32:17.1603 Debug - Dlna: No matching device profile found. The default will need to be used.
2014-08-12 21:32:17.1603 Info - Dlna: No matching device profile found. The default will need to be used.
    DeviceDescription:
    FriendlyName:192.168.1.50 - Sonos PLAY:1 Bathroom
    Manufacturer:Sonos, Inc.
    ManufacturerUrl:http://www.sonos.com
    ModelDescription:Sonos PLAY:1
    ModelName:Sonos PLAY:1
    ModelNumber:S1
    ModelUrl:http://www.sonos.com/products/zoneplayers/S1
    SerialNumber:

 

at least its using the internal ip now. i don't understand how mb3 is suppsed to know what profile it needs to use? do i not have to link the device and the profile somehow?

Link to comment
Share on other sites

Happy2Play

Could you post your custom dlna profile?

 

C:\Users\xxxxxxx\AppData\Roaming\MediaBrowser-Server\config\dlna\user

Edited by Happy2Play
Link to comment
Share on other sites

arche

I would change the http header to what @@Happy2Play suggested:

 

User-Agent: Linux UPnP/1.0 Sonos/24.0-69180 (WDCR:Microsoft Windows NT 6.2.9200.0)

 

It is just easier to delete the old header and add this one. The one I suggested might be outdated.

Edited by nirvmedia
Link to comment
Share on other sites

arche

I would try changing the header.

 

User-Agent: Linux UPnP/1.0 Sonos/24.0-69180 (WDCR:Microsoft Windows NT 6.2.9200.0)

Link to comment
Share on other sites

Happy2Play

This is interesting, is your Sonos on ip .50 or .27

 

Dlna: 192.168.1.50 - Sonos PLAY:1 Bathroom

 

LOCATION: http://192.168.1.27:1400/xml/device_description.xml

 

 

Line 27951

HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age = 1800
LOCATION: http://192.168.1.27:1400/xml/device_description.xml
NT: upnp:rootdevice
NTS: ssdp:alive
SERVER: Linux UPnP/1.0 Sonos/27.2-80071 (BR100)
USN: uuid:RINCON_B8E93713693A01400::upnp:rootdevice
X-RINCON-BOOTSEQ: 7
X-RINCON-HOUSEHOLD: Sonos_b62ZP6dyphrboTkeqGtxpCZIAB
 

Link to comment
Share on other sites

Spaceboy

hi, i tried that line above as the user agent but still not go. it still doesn't report anything in the log, mp3's play fine but flac and alac do not.

 

i'm still completely baffled how the device an the profile are matched  :blink:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...