Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinError 10056 error on recv(1024) #46

Closed
Fisherijus opened this issue Feb 20, 2019 · 4 comments
Closed

WinError 10056 error on recv(1024) #46

Fisherijus opened this issue Feb 20, 2019 · 4 comments
Labels
bug Something isn't working to be confirmed Reported but not yet confirmed

Comments

@Fisherijus
Copy link

this is my log:

2019-02-20 22:08:28,478 - INFO - PAI - Starting Paradox Alarm Interface
2019-02-20 22:08:28,479 - INFO - PAI - Console Log level set to 10
2019-02-20 22:08:29,480 - INFO - PAI - Using IP Connection
2019-02-20 22:08:29,646 - INFO - PAI - Starting...
2019-02-20 22:08:29,647 - INFO - PAI.paradox.paradox - Connecting to interface
2019-02-20 22:08:29,654 - DEBUG - PAI.paradox.connections.ip_connection - Authenticating with IP Module
2019-02-20 22:08:29,655 - DEBUG - PAI.paradox.connections.ip_connection - PC -> IP b'aa04000309f0000001eeeeeeeeeeeeee'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2019-02-20 22:08:34,909 - ERROR - PAI.paradox.connections.ip_connection - Unable to establish session with IP Module
Traceback (most recent call last):
File "C:\paradox150\pai-master\pai-master\paradox\connections\ip_connection.py", line 138, in connect_to_panel
data = self.socket.recv(1024)
socket.timeout: timed out
2019-02-20 22:08:34,913 - ERROR - PAI.paradox.connections.ip_connection - Try 2/3. Unable to connect to IP Module
Traceback (most recent call last):
File "C:\paradox150\pai-master\pai-master\paradox\connections\ip_connection.py", line 60, in connect
self.socket.connect((self.host, self.port))
OSError: [WinError 10056] A connect request was made on an already connected socket
2019-02-20 22:08:34,918 - ERROR - PAI.paradox.connections.ip_connection - Try 3/3. Unable to connect to IP Module
Traceback (most recent call last):
File "C:\paradox150\pai-master\pai-master\paradox\connections\ip_connection.py", line 60, in connect
self.socket.connect((self.host, self.port))
OSError: [WinError 10056] A connect request was made on an already connected socket

it seems that after it sends the first packet after connecting to the module and tries to read stream from the socket, it receives the exception, cause there is nothing to read..i tries to put some delay in between send and recv but did not help.

@Fisherijus Fisherijus added bug Something isn't working to be confirmed Reported but not yet confirmed labels Feb 20, 2019
@yozik04
Copy link
Collaborator

yozik04 commented Feb 20, 2019

Are you sure nothing is connected to the panel at the same time when you run pai?
Babyware, Winload?
I did not tried to run pai on Windows....

@jpbarraca
Copy link
Collaborator

If the panel fw is higher than 4, it is better to use the SITE ID, and not the direct IP.

@yozik04
Copy link
Collaborator

yozik04 commented Feb 26, 2019

@Fisherijus Which method you used install python on Windows?

@yozik04
Copy link
Collaborator

yozik04 commented Apr 26, 2019

Closing due to inactivity.

@yozik04 yozik04 closed this as completed Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working to be confirmed Reported but not yet confirmed
Projects
None yet
Development

No branches or pull requests

3 participants