Skip to content
Commit a233dea2 authored by Siddharth Chandrasekaran's avatar Siddharth Chandrasekaran Committed by Stephanos Ioannidis
Browse files

mgmt/osdp: phy: Rework MARK byte handling



OSDP specification section 5.7 states that a transmitting device has to
drive the transmission line to a marking state for a period of one char
in the current baud rate. This can be achieved by sending 0xFF. Since
this is not mentioned in the packet structure definition, many commercial
implementations of OSDP out in the wild do not send/expect this byte.

To work with such non-conforming devices, we will try to be as flexible
as possible in the PD: send mark byte only if the other side sent one. In
case of CP, we have no option but to send the mark byte to be as close
to the specification as possible. If a particular use case needs the CP
to not send it, we will provide a Kconfig option to disable it.

Signed-off-by: default avatarSiddharth Chandrasekaran <sidcha.dev@gmail.com>
parent d44bdb50
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment