Skip to content

Commit

Permalink
Document baud rates for OOK sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
argilo committed May 24, 2023
1 parent ebb133b commit f98c322
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions secplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,9 @@ def decode_wireline(code):
def encode_ook(rolling, fixed, fast=True):
"""Encode a Security+ payload and produce an OOK stream for transmission
The resulting pulses should be transmitted at a baud rate of 2000. That is,
each 0 (off) or 1 (on) should be 0.5 ms long.
Arguments:
rolling -- the rolling code
fixed -- the fixed code
Expand Down Expand Up @@ -439,6 +442,9 @@ def _manchester(code):
def encode_v2_manchester(rolling, fixed, data=None, fast=True):
"""Encode a Security+ 2.0 payload and produce a Manchester stream for transmission
The resulting pulses should be transmitted at a baud rate of 4000. That is,
each 0 (off) or 1 (on) should be 0.25 ms long.
Arguments:
rolling -- the rolling code (28 bits)
fixed -- the fixed code (40 bits)
Expand Down

0 comments on commit f98c322

Please sign in to comment.