You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OSDP CPs require a response within 200ms according the OSDP spec. timeout is set to 1 meaning the PD will wait up to 1 second if it does not read the max amount of bytes. max is always set to 64 by libosdp, so if a command comes through which is 32 bytes, for instance, the PD can take up to 1 second to respond.
Expected behavior
When using the example app, a correctly functioning PD should be simulated i.e. it should reply to commands within 200ms.
Observed behavior
The 1 second timeout means that commands which do not sum up to a multiple of 64 bytes can take up to 1 second to read, meaning a sub-200ms response is not always possible.
Notes
Switching the timeout to zero appears to solve the issue as the library will wait for a complete message.
The text was updated successfully, but these errors were encountered:
Describe the bug
This appears to be an issue to me, but would appreciate insight if it is not:
The example Python pd_app.py includes the following pySerial usage:
OSDP CPs require a response within 200ms according the OSDP spec.
timeout
is set to1
meaning the PD will wait up to 1 second if it does not read the max amount of bytes. max is always set to64
by libosdp, so if a command comes through which is 32 bytes, for instance, the PD can take up to 1 second to respond.Expected behavior
When using the example app, a correctly functioning PD should be simulated i.e. it should reply to commands within 200ms.
Observed behavior
The 1 second timeout means that commands which do not sum up to a multiple of 64 bytes can take up to 1 second to read, meaning a sub-200ms response is not always possible.
Notes
Switching the timeout to zero appears to solve the issue as the library will wait for a complete message.
The text was updated successfully, but these errors were encountered: