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

When adding multiple devices that are offline the serial port is blocking waiting for timeout #12

Open
kenhun93 opened this issue Nov 16, 2022 · 0 comments

Comments

@kenhun93
Copy link

kenhun93 commented Nov 16, 2022

Hi Ryan,

I've been inspired by your project, and im trying to create a OSDP control panel with some OSDP readers i have laying around.
However when i try to add multiple devices the serial port is blocked while waiting for the device to respond (this is when device is offline).
cp.add_device(connection_id=bus_id, address=2, use_crc=False, use_secure_channel=False) cp.add_device(connection_id=bus_id, address=1, use_crc=False, use_secure_channel=False)

The traceback looks like this:
Traceback (most recent call last): File "C:\Users\Kenneth\PycharmProjects\OSDP\venv\lib\site-packages\osdp\_bus.py", line 95, in run_polling_loop reply = self.send_command_and_receive_reply(data, command, device) File "C:\Users\Kenneth\PycharmProjects\OSDP\venv\lib\site-packages\osdp\_bus.py", line 158, in send_command_and_receive_reply raise TimeoutError("Timeout waiting for reply message") TimeoutError: Timeout waiting for reply message

Could you please advice in case im doing something silly?
Thank you in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant