Skip to content

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

@kenhun93

Description

@kenhun93

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions