projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CHG: moved some from THUMB to ARM.. Looks like usb communication became bad.
[proxmark3-svn]
/
client
/
cmdlfnedap.c
diff --git
a/client/cmdlfnedap.c
b/client/cmdlfnedap.c
index 52cc7359fdd230bb7456146a294e87ac8e27027b..eeb0793918d749fd8e6fd3e0ae1c62215440ca40 100644
(file)
--- a/
client/cmdlfnedap.c
+++ b/
client/cmdlfnedap.c
@@
-202,7
+202,7
@@
lf t55xx wr b 4 d 4c0003ff
int CmdLFNedapRead(const char *Cmd) {
CmdLFRead("s");
int CmdLFNedapRead(const char *Cmd) {
CmdLFRead("s");
- getSamples("
20
000", TRUE);
+ getSamples("
12
000", TRUE);
return CmdLFNedapDemod("");
}
/*
return CmdLFNedapDemod("");
}
/*
@@
-254,7
+254,7
@@
int CmdLFNedapClone(const char *Cmd) {
c.arg[1] = i;
clearCommandBuffer();
SendCommand(&c);
c.arg[1] = i;
clearCommandBuffer();
SendCommand(&c);
- if (!WaitForResponseTimeout(CMD_ACK, &resp,
1000
)){
+ if (!WaitForResponseTimeout(CMD_ACK, &resp,
T55XX_WRITE_TIMEOUT
)){
PrintAndLog("Error occurred, device did not respond during write operation.");
return -1;
}
PrintAndLog("Error occurred, device did not respond during write operation.");
return -1;
}
@@
-298,7
+298,7
@@
int CmdLFNedapSim(const char *Cmd) {
}
int CmdLFNedapChk(const char *Cmd){
}
int CmdLFNedapChk(const char *Cmd){
-
+ //301600714021BE
uint8_t data[256] = { 0x30, 0x16, 0x00, 0x71, 0x40, 0x21, 0xBE};
int len = 0;
param_gethex_ex(Cmd, 0, data, &len);
uint8_t data[256] = { 0x30, 0x16, 0x00, 0x71, 0x40, 0x21, 0xBE};
int len = 0;
param_gethex_ex(Cmd, 0, data, &len);
@@
-313,7
+313,7
@@
int CmdLFNedapChk(const char *Cmd){
uint8_t cl = 0x1D, ch = 0x1D, carry = 0;
uint8_t al, bl, temp;
uint8_t cl = 0x1D, ch = 0x1D, carry = 0;
uint8_t al, bl, temp;
- for (int i =
len; i >=
0; --i){
+ for (int i =
len; i >=
0; --i){
al = data[i];
for (int j = 8; j > 0; --j) {
al = data[i];
for (int j = 8; j > 0; --j) {
@@
-340,7
+340,7
@@
int CmdLFNedapChk(const char *Cmd){
}
}
}
}
- PrintAndLog("Nedap checksum:
[ 0x21, 0xBE ] %x
", ((ch << 8) | cl) );
+ PrintAndLog("Nedap checksum:
0x%X
", ((ch << 8) | cl) );
return 0;
}
return 0;
}
Impressum
,
Datenschutz