2019-11-30, 10:16 PM
(This post was last modified: 2019-11-30, 10:16 PM by mvallevand.)
Ok no problem at all. My mistake, this needs python3 (python 2.7 is EOL in January)
Martin
Martin
2019-11-30, 10:16 PM
(This post was last modified: 2019-11-30, 10:16 PM by mvallevand.)
Ok no problem at all. My mistake, this needs python3 (python 2.7 is EOL in January)
Martin
2019-11-30, 11:56 PM
Here's some results:
desktop:/home/bill/Downloads# python3 opendct.py DISCOVERY ('192.168.1.15', 8271) b'STN\x04\x01\x00#(\x0f0:0:0:0:0:0:0:0' 9000 Timed out, no more responses Exit NOTE: 192.168.1.15 is my SageTV server, but my R5000 (Win7) server is at .16. desktop:/home/bill/Downloads# python3 opendct.py VERSION VERSION Exit Traceback (most recent call last): File "opendct.py", line 188, in <module> main(sys.argv) File "opendct.py", line 41, in main payload = sendMessage(message) File "opendct.py", line 69, in sendMessage sock.connect(server_address) ConnectionRefusedError: [Errno 111] Connection refused After updating with my IP address and port: desktop:/home/bill/Downloads# python3 opendct.py PROPERTIES PROPERTIES Exit Traceback (most recent call last): File "opendct.py", line 190, in <module> main(sys.argv) File "opendct.py", line 43, in main payload = sendMessage(message) File "opendct.py", line 76, in sendMessage data = sock.recv(1024) socket.timeout: timed out desktop:/home/bill/Downloads# python3 opendct.py VERSION VERSION 2
2019-12-01, 12:06 AM
It looks like the r5000 doesn't support discovery (or UDP is firewalled) but that is not a big deal.
When you run against the r5000 version should return the same as the NetworkRecorder plugin. Are you sure you had 192.168.1.16 and port 6969 (which you showed on the first post here) in the .py file? Martin
2019-12-01, 12:11 AM
(This post was last modified: 2019-12-01, 12:16 AM by checkbin99.)
I changed the Ip and port here in the script:
#edit server IP keep the single quotes^M ^M server = '192.168.1.16'^M port = 6969^M I see these ^M s probably from this script having been edited in Windows and Im testing in Linux. I removed them and now get this: desktop:/home/bill/Downloads# python3 opendct.py PROPERTIES PROPERTIES Exit
2019-12-01, 12:17 AM
It couldn't hurt but I don't think that is the issue. Is the firewall open on the 6969 server?
Martin
2019-12-01, 12:26 AM
(This post was last modified: 2019-12-01, 12:35 AM by checkbin99.)
Windows firewall is off on the R5000 server. Opened the firewall on my Linux box with the script to allow all in and out. If I telnet to the R5000 on port 6969 it responds, so the port seems to be open:
desktop:/home/bill/Downloads# telnet 192.168.1.16 6969 Trying 192.168.1.16... Connected to 192.168.1.16. Escape character is '^]'. Connection closed by foreign host. I'm seeing this now: desktop:/home/bill/Downloads# python3 opendct.py PROPERTIES PROPERTIES Exit Traceback (most recent call last): File "opendct.py", line 190, in <module> main(sys.argv) File "opendct.py", line 43, in main payload = sendMessage(message) File "opendct.py", line 76, in sendMessage data = sock.recv(1024) socket.timeout: timed out
2019-12-01, 12:35 AM
You are getting
ConnectionRefusedError: [Errno 111] Connection refused which typically means the server is not running on that port, firewall typically timeout. There are two ports in the file I want you to change the one at the top if that matters. Martin
2019-12-01, 12:41 AM
(This post was last modified: 2019-12-01, 12:44 AM by checkbin99.)
Stupid question, but you don't want NextPV and/or the recording service on for this tests, do you? When I go to the R5000 server and open the NextCom app, for the device I see "SageTV: Waiting for connection on port 6969" (SageTV is not running for this test of course)
Yes, I changed the port at the top where it says #edit server IP keep the single quotes - just after the server = <IP> line
2019-12-01, 12:53 AM
No this is just trying to get the basis for a support file that will talk to the r5000. Later on NextPVR will talk to this file (from Windows or linux).
The logic seems simple enough it is not even opening the socket. It works fine between my Windows PC and linux and vice -versa using OpenDCT Martin
2019-12-01, 12:58 AM
(This post was last modified: 2019-12-01, 01:01 AM by checkbin99.)
I see. I'm puzzled though, when I try to connect to port 69 of the R5000 server, there is a response. Wouldn't this indicate the port is open and listening?:
desktop:/home/bill/Downloads# telnet 192.168.1.16 6969 Trying 192.168.1.16... Connected to 192.168.1.16. Escape character is '^]'. I also use opendct with SageTV on Linux and the R5000 works for me in that environment too. I'm going to try this right from the Linux box that I have sageTV on to see if the results are any different. |
|