alexmohr / sonyapilib

Contains a python api to control sony devices.
MIT License
20 stars 11 forks source link

Can't get DMR for STR-DN1040 #56

Open palfrey opened 4 years ago

palfrey commented 4 years ago

Mine doesn't seem to listen on 52323 at all. NMAP on it got me the following:

80/tcp    open  http
1083/tcp  open  ansoft-lm-1
1900/tcp  open  upnp
10100/tcp open  itap-ddtp
33335/tcp open  unknown
50001/tcp open  unknown
60151/tcp open  unknown

I've tried all of those ports for the DMR, and no luck on any of them. The port 80 Sony information page says the firmware version is "1.08 / fv=s9327.1092.0", if that helps.

Any ideas?

alexmohr commented 4 years ago

It would be great if you could post your device type

palfrey commented 4 years ago

It would be great if you could post your device type

It's the STR-DN1040 AV-Receiver. Or did you need a different piece of information as I'm a little confused?

palfrey commented 4 years ago

So I've managed to find out (from some messing around with https://github.com/KHerron/SonyAPILib) that a file that looks a lot like the test dmr files is actually available at "/description.xml" on port 8080. Changing the DMR url for that then gets 403's trying to get /cers/getRemoteCommandList

alexmohr commented 4 years ago

It seems like the authentication is not properly set up at this point. It might be possible to get this information after we authenticated. Currently I'm very busy writing my thesis so I can't really look into this. I'd be happy to accept a pr, otherwise I will look into this in October. But any information you are able to acquire makes fixing this issue easier.

palfrey commented 4 years ago

So, I finally managed to get it to register. Turns out it's very picky about the device name. "MediaRemote:11-22-33-44-55-66" worked at least. Once that works, I can now at least manually get the remote command list and I'm now doing some very hacky things with IRCC (as the receiver doesn't have any of the input buttons in the SOAP interface, so I'm doing things like "Home", "Confirm", "Right", "Confirm" to change to a particular input).

alexmohr commented 4 years ago

You might be be interested in issue #45. Although it's not implemented yet it might be worth watching this issue. As soon as it's closed we should be able o provide a proper source selection for all devices

RyanMorash commented 4 years ago

I am also having this same issue (in concert with alexmohr/media_player.sony) with the STR-DN840 A/V Receiver. The DLNA descriptor for this is also description.xml on port 8080

alexmohr commented 4 years ago

@RyanMorash did you try using the device name mentioned above?

alexmohr commented 3 years ago

@palfrey @RyanMorash Do you need any further support on this?