mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-18 14:07:53 +08:00
chg: psk demodualtion, lets keep those starting samples to easily find the zero init bit
This commit is contained in:
parent
b4cc7a9ad3
commit
9af1807122
1 changed files with 0 additions and 10 deletions
|
@ -960,24 +960,14 @@ bool DecodeT55xxBlock(void) {
|
||||||
ans = ASKDemod_ext(cmdStr, false, false, 1, &ST);
|
ans = ASKDemod_ext(cmdStr, false, false, 1, &ST);
|
||||||
break;
|
break;
|
||||||
case DEMOD_PSK1:
|
case DEMOD_PSK1:
|
||||||
// skip first 160 samples to allow antenna to settle in (psk gets inverted occasionally otherwise)
|
|
||||||
save_restoreGB(GRAPH_SAVE);
|
|
||||||
CmdLtrim("150");
|
|
||||||
snprintf(cmdStr, sizeof(buf), "%d %d 6", bitRate[config.bitrate], config.inverted);
|
snprintf(cmdStr, sizeof(buf), "%d %d 6", bitRate[config.bitrate], config.inverted);
|
||||||
ans = PSKDemod(cmdStr, false);
|
ans = PSKDemod(cmdStr, false);
|
||||||
//undo trim samples
|
|
||||||
save_restoreGB(GRAPH_RESTORE);
|
|
||||||
break;
|
break;
|
||||||
case DEMOD_PSK2: //inverted won't affect this
|
case DEMOD_PSK2: //inverted won't affect this
|
||||||
case DEMOD_PSK3: //not fully implemented
|
case DEMOD_PSK3: //not fully implemented
|
||||||
// skip first 160 samples to allow antenna to settle in (psk gets inverted occasionally otherwise)
|
|
||||||
save_restoreGB(GRAPH_SAVE);
|
|
||||||
CmdLtrim("150");
|
|
||||||
snprintf(cmdStr, sizeof(buf), "%d 0 6", bitRate[config.bitrate]);
|
snprintf(cmdStr, sizeof(buf), "%d 0 6", bitRate[config.bitrate]);
|
||||||
ans = PSKDemod(cmdStr, false);
|
ans = PSKDemod(cmdStr, false);
|
||||||
psk1TOpsk2(DemodBuffer, DemodBufferLen);
|
psk1TOpsk2(DemodBuffer, DemodBufferLen);
|
||||||
//undo trim samples
|
|
||||||
save_restoreGB(GRAPH_RESTORE);
|
|
||||||
break;
|
break;
|
||||||
case DEMOD_NRZ:
|
case DEMOD_NRZ:
|
||||||
snprintf(cmdStr, sizeof(buf), "%d %d 1", bitRate[config.bitrate], config.inverted);
|
snprintf(cmdStr, sizeof(buf), "%d %d 1", bitRate[config.bitrate], config.inverted);
|
||||||
|
|
Loading…
Reference in a new issue