mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-20 13:23:25 -07:00
lf read adjustments
add parameter for # bits to read auto get samples after lf read/snoop (don't need to do a `data samples` anymore) add safe function to get DemodBuffer add some lf demod comments and apply new lf_read function instead of read then get samples. fixed output bug in lf t55xx config print fixed small bug in lf t55xx detect during ST check
This commit is contained in:
parent
bed24f53c2
commit
b9957414a5
27 changed files with 146 additions and 117 deletions
|
@ -6,6 +6,7 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// Low frequency visa 2000 tag commands
|
||||
// by iceman
|
||||
// ASK/Manchester, RF/64, STT, 96 bits (complete)
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "cmdlfvisa2000.h"
|
||||
|
@ -83,12 +84,12 @@ static uint8_t visa_parity( uint32_t id) {
|
|||
/**
|
||||
*
|
||||
* 56495332 00096ebd 00000077 —> tag id 618173
|
||||
* aaaaaaaa iiiiiiii -----..c
|
||||
* aaaaaaaa iiiiiiii -----ppc
|
||||
*
|
||||
* a = fixed value ascii 'VIS2'
|
||||
* i = card id
|
||||
* p = even parity bit for each nibble in card id.
|
||||
* c = checksum (xor of card id)
|
||||
* . = unknown
|
||||
*
|
||||
**/
|
||||
//see ASKDemod for what args are accepted
|
||||
|
@ -146,9 +147,8 @@ int CmdVisa2kDemod(const char *Cmd) {
|
|||
}
|
||||
|
||||
int CmdVisa2kRead(const char *Cmd) {
|
||||
CmdLFRead("s");
|
||||
//64*96*2=12288 samples just in case we just missed the first preamble we can still catch 2 of them
|
||||
getSamples("12500",true);
|
||||
lf_read(true, 12500);
|
||||
return CmdVisa2kDemod(Cmd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue