summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-12 22:59:06 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-26 06:58:19 +0000
commite8d46de0e106f6312f9119132ba2754aa958347f (patch)
tree4e82e1fc270d38901049621e67bef74b022c192d /README.md
parent745e888edf9219ed95199e2e7fcc64c847a5ba4c (diff)
util/spkmodem-decode: also auto-detect separator
the tone detection currently only tracks data, not the separator. track both instead, for improved detection reliability. e.g. separator tone e.g: 9 data low tone e.g: 18 data high tone e.g: 24 two fir windows produce e.g. freq data 9 sep 0 then 18, 9 then 24, 9 18, 9 so we take min(data, separator) that gives 9,9,9,9 now we have the separator cluster however, if both windows are active during transitions, you can also capture the higher clusters, which would allow freq_max to grow so when you learn e.g.: freq min = 9 freq max 24 then the learned threshold would be: (9 + 24) / 2 = 16 and now you know how to separate the tones fir already suppresses noise so the pulse should be reliable. so freq/sep only go non-zero when an actual tone exists this should now result in being able to sync with spkmodem encoders with no prior knowledge of the correct tone frequences. we just use maths. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions