first steps in understading and optimizing this function.
replace != with < - if we don't poll fast enough, it is possible that
the condition != is missed.
still not done with DemodPCF7931(). But now including changes in ReadPCF7931().
They work tightly together.
Trying to resolve some issues and bugs. Basically it seems to work and
my results are consistent. However, they still deviate from what I get if
I do analyze the signal using lf read and data commands.
still some issues somewhere.
demod function now seems to work basically. Not all error cases are handled I guess.
Also still debug prints, since I've to figure out the rest.
Also unclear, why limit the buffer size to 1-2 blocks only?
firs commit of a few to come.
First renames of variables, added a few comments to improve clarity.
Fixed types (int -> unitx_t , const, ...) - not all. still some to come
Fixed 2 conditions that did not work properly. Here some explanation:
Imagine dest[i-1] = 255 and dest[i] = 0. THis would mean a clear falling edge.
However, this code would not work, since dest[i] > lmax is not true.
This condition only works if I have at least 1 sample between lmax and 255.
Same for the other way around.
Sufficient for configuration of an MF4 tag A-Z as needed.
I hope you figure it out!
Signed-off-by: team-orangeBlue <63470411+team-orangeBlue@users.noreply.github.com>
Author: jareckib - created 02.02.2025
version v1.00
A simple script for searching the password for T5577. The script creates a
dictionary starting from the entered starting year to the entered ending year.
There are two search methods - DDMMYYYY or YYYYMMDD. Checking the entire year
takes about 1 minute and 50 seconds. Date from 1900 to 2100. The script may be
useful if the password is, for example, a date of birth.
Usage:
script run t55_chk [-s start_year] [-e end_year] [-d | -y]
Options:
-h Show this help message
-s Starting year (required)
-e Ending year (default: current year)
-d Search method: DDMMYYYY
-y Search method: YYYYMMDD
Examples:
script run t55_chk -s 1999 -d - start from 1999, end year is current year, method 01011999
script run t55_chk -s 1999 -y - start from 1999, end year is current year, method 19990101
script run t55_chk -s 1999 -e 2001 -y - start from 1999, end year 2001, method 19990101
script run t55_chk -s 1999 -e 2001 -d - start from 1999, end year 2001, method 01011999
Signed-off-by: Jarek Barwinski <116510448+jareckib@users.noreply.github.com>
A simple script for searching the password for T5577. The script creates a
dictionary starting from the entered starting year to the entered ending year.
There are two search methods - DDMMYYYY or YYYYMMDD. Checking the entire year
takes about 1 minutes and 50 seconds. Date from 1900 to 2100. The script may be
useful if the password is for example date of birth.
Signed-off-by: Jarek Barwinski <116510448+jareckib@users.noreply.github.com>