projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
contrib: LF Programming script
[proxmark3-svn]
/
armsrc
/
lfops.c
diff --git
a/armsrc/lfops.c
b/armsrc/lfops.c
index 9c6c9ed8d85b7339a3be90833368760d10da598e..a3f7a02fb9dc5965fd3ed580d0582adfdd10495a 100644
(file)
--- a/
armsrc/lfops.c
+++ b/
armsrc/lfops.c
@@
-72,7
+72,7
@@
void ModThenAcquireRawAdcSamples125k(uint32_t delay_off, uint32_t period_0, uint
FpgaWriteConfWord(FPGA_MAJOR_MODE_LF_ADC | FPGA_LF_ADC_READER_FIELD);
// now do the read
FpgaWriteConfWord(FPGA_MAJOR_MODE_LF_ADC | FPGA_LF_ADC_READER_FIELD);
// now do the read
- DoAcquisition_config(false);
+ DoAcquisition_config(false
, 0
);
}
/* blank r/w tag data stream
}
/* blank r/w tag data stream
@@
-1132,7
+1132,7
@@
void T55xxResetRead(void) {
TurnReadLFOn(READ_GAP);
// Acquisition
TurnReadLFOn(READ_GAP);
// Acquisition
-
doT55x7Acquisition(
BigBuf_max_traceLen());
+
DoPartialAcquisition(0, true,
BigBuf_max_traceLen());
// Turn the field off
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF); // field off
// Turn the field off
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF); // field off
@@
-1161,7
+1161,8
@@
void T55xxWriteBlockExt(uint32_t Data, uint32_t Block, uint32_t Pwd, uint8_t arg
// Std Opcode 10
T55xxWriteBit(testMode ? 0 : 1);
T55xxWriteBit(testMode ? 1 : Page); //Page 0
// Std Opcode 10
T55xxWriteBit(testMode ? 0 : 1);
T55xxWriteBit(testMode ? 1 : Page); //Page 0
- if (PwdMode){
+
+ if (PwdMode) {
// Send Pwd
for (i = 0x80000000; i != 0; i >>= 1)
T55xxWriteBit(Pwd & i);
// Send Pwd
for (i = 0x80000000; i != 0; i >>= 1)
T55xxWriteBit(Pwd & i);
@@
-1181,22
+1182,19
@@
void T55xxWriteBlockExt(uint32_t Data, uint32_t Block, uint32_t Pwd, uint8_t arg
// so wait a little more)
// "there is a clock delay before programming"
// so wait a little more)
// "there is a clock delay before programming"
- // - programming takes ~5.6ms for t5577 ~18ms for E5550
+ // - programming takes ~5.6ms for t5577 ~18ms for E5550
or t5567
// so we should wait 1 clock + 5.6ms then read response?
// so we should wait 1 clock + 5.6ms then read response?
- // but we need to know we are dealing with t55
x
7 vs e5550 (or q5) marshmellow...
+ // but we need to know we are dealing with t55
77 vs t556
7 vs e5550 (or q5) marshmellow...
if (testMode) {
if (testMode) {
- // Turn field on to read the response
- TurnReadLFOn(READ_GAP);
+ //TESTMODE TIMING TESTS:
+ // <566us does nothing
+ // 566-568 switches between wiping to 0s and doing nothing
+ // 5184 wipes and allows 1 block to be programmed.
+ // indefinite power on wipes and then programs all blocks with bitshifted data sent.
+ TurnReadLFOn(5184);
- // Acquisition
- // Now do the acquisition
- // Now do the acquisition
- DoPartialAcquisition(20, true, 12000);
-
- //doT55x7Acquisition(12000);
} else {
TurnReadLFOn(20 * 1000);
} else {
TurnReadLFOn(20 * 1000);
- }
//could attempt to do a read to confirm write took
// as the tag should repeat back the new block
// until it is reset, but to confirm it we would
//could attempt to do a read to confirm write took
// as the tag should repeat back the new block
// until it is reset, but to confirm it we would
@@
-1205,6
+1203,9
@@
void T55xxWriteBlockExt(uint32_t Data, uint32_t Block, uint32_t Pwd, uint8_t arg
// response should be (for t55x7) a 0 bit then (ST if on)
// block data written in on repeat until reset.
// response should be (for t55x7) a 0 bit then (ST if on)
// block data written in on repeat until reset.
+ //DoPartialAcquisition(20, true, 12000);
+ }
+
// turn field off
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
LED_A_OFF();
// turn field off
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
LED_A_OFF();
@@
-1265,8
+1266,6
@@
void T55xxReadBlock(uint16_t arg0, uint8_t Block, uint32_t Pwd) {
// Now do the acquisition
DoPartialAcquisition(0, true, 12000);
// Now do the acquisition
DoPartialAcquisition(0, true, 12000);
- // doT55x7Acquisition(12000);
-
// Turn the field off
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF); // field off
cmd_send(CMD_ACK,0,0,0,0,0);
// Turn the field off
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF); // field off
cmd_send(CMD_ACK,0,0,0,0,0);
@@
-1754,7
+1753,7
@@
void Cotag(uint32_t arg0) {
switch(rawsignal) {
case 0: doCotagAcquisition(50000); break;
case 1: doCotagAcquisitionManchester(); break;
switch(rawsignal) {
case 0: doCotagAcquisition(50000); break;
case 1: doCotagAcquisitionManchester(); break;
- case 2: DoAcquisition_config(
TRUE
); break;
+ case 2: DoAcquisition_config(
true, 0
); break;
}
// Turn the field off
}
// Turn the field off
Impressum
,
Datenschutz