goToMain / libosdp

Implementation of IEC 60839-11-5 OSDP (Open Supervised Device Protocol); provides a C library with support for C++, Rust and Python3
https://libosdp.sidcha.dev
Apache License 2.0
140 stars 73 forks source link

Packet scan skipped? #199

Open alexanderturner opened 1 month ago

alexanderturner commented 1 month ago

Describe the bug Possible erroneous data flags packet scan skipped and CP hangs.

All I'm seeing at this point is recOSDP: CP: PD-1: [2024-10-22T22:42:49Z] [DEBUG] src/osdp_phy.c:521: Packet scan skipped:1 mark:0

Following this, all OSDP operations hang / don't occur. Is this known or any idea what could cause these. Occurs after weeks of perfect operation

sidcha commented 3 weeks ago

@alexanderturner, this doesn't ring any bells immediately. One possible reason is invalid data in the serial stream; since you mention the device was working fine for a long time, that's unlikely.

Also, this cannot cause the CP to just hang. Did you see any issues before or after a while? Would be helpful if you can provide more info to debug this issue.