mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
ADD: a Noralsy detection, looking for preamble 0xBB0
This commit is contained in:
parent
d48175d4f4
commit
207fc33a42
2 changed files with 13 additions and 1 deletions
|
@ -708,7 +708,18 @@ int Visa2kDemod_AM(uint8_t *dest, size_t *size) {
|
||||||
//return start position
|
//return start position
|
||||||
return (int) startIdx;
|
return (int) startIdx;
|
||||||
}
|
}
|
||||||
|
// by iceman
|
||||||
|
// find Noralsy preamble in already demoded data
|
||||||
|
int NoralsyDemod_AM(uint8_t *dest, size_t *size) {
|
||||||
|
if (*size < 96*2) return -1; //make sure buffer has data
|
||||||
|
size_t startIdx = 0;
|
||||||
|
uint8_t preamble[] = {1,0,1,1,1,0,1,1,0,0,0,0};
|
||||||
|
uint8_t errChk = preambleSearch(dest, preamble, sizeof(preamble), size, &startIdx);
|
||||||
|
if (errChk == 0) return -2; //preamble not found
|
||||||
|
if (*size != 96) return -3; //wrong demoded size
|
||||||
|
//return start position
|
||||||
|
return (int) startIdx;
|
||||||
|
}
|
||||||
// find presco preamble 0x10D in already demoded data
|
// find presco preamble 0x10D in already demoded data
|
||||||
int PrescoDemod(uint8_t *dest, size_t *size) {
|
int PrescoDemod(uint8_t *dest, size_t *size) {
|
||||||
if (*size < 128*2) return -1; //make sure buffer has data
|
if (*size < 128*2) return -1; //make sure buffer has data
|
||||||
|
|
|
@ -59,4 +59,5 @@ int PrescoDemod(uint8_t *dest, size_t *size);
|
||||||
int NedapDemod(uint8_t *dest, size_t *size);
|
int NedapDemod(uint8_t *dest, size_t *size);
|
||||||
int JablotronDemod(uint8_t *dest, size_t *size);
|
int JablotronDemod(uint8_t *dest, size_t *size);
|
||||||
int Visa2kDemod_AM(uint8_t *dest, size_t *size);
|
int Visa2kDemod_AM(uint8_t *dest, size_t *size);
|
||||||
|
int NoralsyDemod_AM(uint8_t *dest, size_t *size);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue