LF config file

pull/33/head
wh201906 3 years ago
parent d56c5f8dc7
commit 24adc08d84

@ -1,4 +1,6 @@
{ {
"//": "Based on Proxmark3 official repo v3.1.0, commit 6116334",
"//": "You can change this file if the command format of client changes",
"mifare classic": { "mifare classic": {
"nested": { "nested": {
"cmd": "hf mf nested <card type> *", "cmd": "hf mf nested <card type> *",
@ -102,6 +104,7 @@
"cmd": "hf mf cgetsc <sector>", "cmd": "hf mf cgetsc <sector>",
"data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}" "data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}"
}, },
"//": "When writing a block, if the result is not empty and doesn't contain the failed flag, the function will return true",
"normal write block": { "normal write block": {
"cmd": "hf mf wrbl <block> <key type> <key> <data>", "cmd": "hf mf wrbl <block> <key type> <key> <data>",
"key type": { "key type": {
@ -135,5 +138,58 @@
"Magic Card set parameter": { "Magic Card set parameter": {
"cmd": "hf mf csetuid <uid> <atqa> <sak>" "cmd": "hf mf csetuid <uid> <atqa> <sak>"
} }
},
"lf": {
"read": {
"cmd": "lf read",
"show cmd": "data plot"
},
"sniff": {
"cmd": "lf snoop",
"show cmd": "data plot"
},
"search": {
"cmd": "lf search u"
},
"tune": {
"cmd": "hw tune l"
},
"get config": {
"cmd": "hw status",
"field start": "LF Sampling config:",
"field end": "USB Speed:",
"divisor": {
"flag": "divisor:",
"pattern": "\\d+"
},
"bits per sample": {
"flag": "bps:",
"pattern": "\\d+"
},
"decimation": {
"flag": "decimation:",
"pattern": "\\d+"
},
"averaging": {
"flag": "averaging:",
"pattern": "\\d+"
},
"trigger threshold": {
"flag": "trigger threshold:",
"pattern": "\\d+"
},
"samples to skip": {
"flag": "samples to skip:",
"pattern": "\\d+"
},
"//": "execute 'cmd' then find parameters between 'field stard' and 'field end'",
"//": "for each line, if the line doesn't have any flag, skip",
"//": "otherwise, delete characters before 'flag' and 'flag' itself, then use 'pattern' to get the parameter",
"//": "If 'replace' dict exists, replace all keys with respective values before getting parameters"
},
"set config": {
"cmd": "lf config q <divisor> b <bits per sample> d <decimation> a <averaging> t <trigger threshold> s <samples to skip>",
"divisor cmd": "hw setlfdivisor <divisor>"
}
} }
} }

@ -1,4 +1,6 @@
{ {
"//": "Based on Proxmark3 rrg repo v4.13441, commit 35ddebc",
"//": "You can change this file if the command format of client changes",
"mifare classic": { "mifare classic": {
"nested": { "nested": {
"cmd": "hf mf nested --<card type> --blk <block> -<key type> -k <key>", "cmd": "hf mf nested --<card type> --blk <block> -<key type> -k <key>",
@ -102,6 +104,7 @@
"cmd": "hf mf cgetsc --sec <sector>", "cmd": "hf mf cgetsc --sec <sector>",
"data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}" "data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}"
}, },
"//": "When writing a block, if the result is not empty and doesn't contain the failed flag, the function will return true",
"normal write block": { "normal write block": {
"cmd": "hf mf wrbl --blk <block> -<key type> -k <key> -d <data>", "cmd": "hf mf wrbl --blk <block> -<key type> -k <key> -d <data>",
"key type": { "key type": {
@ -137,5 +140,64 @@
"Magic Card set parameter": { "Magic Card set parameter": {
"cmd": "hf mf csetuid --uid <uid> --atqa <atqa> --sak <sak>" "cmd": "hf mf csetuid --uid <uid> --atqa <atqa> --sak <sak>"
} }
},
"lf": {
"read": {
"cmd": "lf read -v",
"show cmd": "data plot"
},
"sniff": {
"cmd": "lf sniff -v",
"show cmd": "data plot"
},
"search": {
"cmd": "lf search -u"
},
"tune": {
"cmd": "lf tune --divisor <divisor>"
},
"get config": {
"cmd": "hw status",
"field start": "LF Sampling config",
"field end": "LF Sampling Stack",
"divisor": {
"flag": "divisor",
"pattern": "\\d+"
},
"bits per sample": {
"flag": "bits per sample",
"pattern": "\\d+"
},
"decimation": {
"flag": "decimation",
"pattern": "\\d+"
},
"averaging": {
"flag": "averaging",
"pattern": "\\d+",
"replace": {
"yes": "1",
"no": "0",
"Yes": "1",
"No": "0"
}
},
"trigger threshold": {
"flag": "trigger threshold",
"pattern": "\\d+"
},
"samples to skip": {
"flag": "samples to skip",
"pattern": "\\d+"
},
"//": "execute 'cmd' then find parameters between 'field stard' and 'field end'",
"//": "for each line, if the line doesn't have any flag, skip",
"//": "otherwise, delete characters before 'flag' and 'flag' itself, then use 'pattern' to get the parameter",
"//": "If 'replace' dict exists, replace all keys with respective values before getting parameters"
},
"set config": {
"cmd": "lf config --divisor <divisor> --bps <bits per sample> --dec <decimation> --avg <averaging> --trig <trigger threshold> --skip <samples to skip>",
"divisor cmd": "hw setlfdivisor -d <divisor>"
}
} }
} }

@ -1,6 +1,7 @@
#include "lf.h" #include "lf.h"
#include <QJsonArray>
const LF::Config LF::defaultConfig; const LF::LFConfig LF::defaultLFConfig;
LF::LF(Ui::MainWindow *ui, Util *addr, QWidget *parent): QObject(parent) LF::LF(Ui::MainWindow *ui, Util *addr, QWidget *parent): QObject(parent)
{ {
@ -8,142 +9,122 @@ LF::LF(Ui::MainWindow *ui, Util *addr, QWidget *parent): QObject(parent)
util = addr; util = addr;
this->ui = ui; this->ui = ui;
configPattern = new QRegularExpression("(\\d+)|Yes|No"); LFconfigPattern = new QRegularExpression("(\\d+)|Yes|No");
currConfig = defaultConfig; currLFConfig = defaultLFConfig;
} }
void LF::read() void LF::read()
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QVariantMap config = configMap["read"].toMap();
util->execCMD("lf read"); util->execCMD(config["cmd"].toString());
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN)
util->execCMD("lf read -v");
Util::gotoRawTab(); Util::gotoRawTab();
util->execCMD("data plot"); util->execCMD(config["show cmd"].toString());
} }
void LF::sniff() void LF::sniff()
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QVariantMap config = configMap["sniff"].toMap();
util->execCMD("lf snoop"); util->execCMD(config["cmd"].toString());
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN)
util->execCMD("lf sniff -v");
Util::gotoRawTab(); Util::gotoRawTab();
util->execCMD("data plot"); util->execCMD(config["show cmd"].toString());
} }
void LF::search() void LF::search()
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QVariantMap config = configMap["search"].toMap();
util->execCMD("lf search u"); util->execCMD(config["cmd"].toString());
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN)
util->execCMD("lf search -u");
Util::gotoRawTab(); Util::gotoRawTab();
} }
void LF::tune() void LF::tune()
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QVariantMap config = configMap["tune"].toMap();
util->execCMD("hw tune l"); QString cmd = config["cmd"].toString();
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN) cmd.replace("<divisor>", QString::number(currLFConfig.divisor));
util->execCMD("lf tune --divisor " + QString::number(currConfig.divisor)); util->execCMD(cmd);
Util::gotoRawTab(); Util::gotoRawTab();
} }
void LF::getConfig() bool LF::getLFConfig_helper(const QVariantMap& map, QString& str, int* result)
{ {
int len;
QString flag = map["flag"].toString();
QRegularExpressionMatch reMatch; QRegularExpressionMatch reMatch;
QString result; if(!str.contains(flag))
QStringList resultList; return false;
QStringList symbolList = len = str.length() - (str.indexOf(flag) + flag.length());
{ str = str.right(len);
"divisor", if(map.contains("replace"))
"bps",
"bits per sample",
"decimation",
"averaging",
"trigger threshold",
"samples to skip"
};
int offset;
QStringList configList = {"", "", "", "", "", "", ""};
result = util->execCMDWithOutput("hw status", 400); // not all output from "hw status will be processed".
result = result.right(result.length() - result.indexOf("LF Sampling config"));
offset = result.indexOf("samples to skip");
offset = result.indexOf("\n", offset);
result = result.mid(0, offset + 2);
qDebug() << "LF CONFIG GET\n" << result;
resultList = result.split("\n");
for(int i = 0; i < resultList.length(); i++)
{ {
for(int j = 0; j < symbolList.length(); j++) QVariantMap table = map["replace"].toMap();
for(auto it = table.begin(); it != table.end(); it++)
{ {
if(!configList[j].isEmpty()) str.replace(it.key(), it.value().toString());
continue;
offset = resultList[i].indexOf(symbolList[j]);
if(offset != -1)
{
reMatch = configPattern->match(resultList[i]);
qDebug() << "finded: " << resultList[i];
if(!reMatch.hasMatch())
continue;
qDebug() << "captured: " << reMatch.captured();
configList[j] = reMatch.captured();
break;
}
} }
} }
qDebug() << "configList: " << configList; reMatch = QRegularExpression(map["pattern"].toString()).match(str);
currConfig.divisor = configList[0].toUInt(); if(!reMatch.hasMatch())
currConfig.decimation = configList[3].toUInt(); return false;
currConfig.triggerThreshold = configList[5].toUInt(); *result = reMatch.captured().toInt();
currConfig.samplesToSkip = configList[6].toUInt(); qDebug() << *result;
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) return true;
{
currConfig.bitPerSample = configList[1].toUInt(); }
currConfig.averaging = (configList[4] == "1");
} void LF::getLFConfig()
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN) {
QRegularExpressionMatch reMatch;
QString result;
QStringList resultList;
int start, end, temp;
QVariantMap config = configMap["get config"].toMap();
QString cmd = config["cmd"].toString();
result = util->execCMDWithOutput(cmd, 400);
start = result.indexOf(config["field start"].toString());
end = result.indexOf(config["field end"].toString());
result = result.mid(start, end - start);
resultList = result.split("\n", Qt::SkipEmptyParts);
qDebug() << "LF CONFIG GET\n" << resultList;
for(auto it = resultList.begin(); it != resultList.end(); it++)
{ {
currConfig.bitPerSample = configList[2].toUInt(); if(getLFConfig_helper(config["divisor"].toMap(), *it, &temp))
currConfig.averaging = (configList[4] == "Yes"); currLFConfig.divisor = temp;
else if(getLFConfig_helper(config["bits per sample"].toMap(), *it, &temp))
currLFConfig.bitsPerSample = temp;
else if(getLFConfig_helper(config["decimation"].toMap(), *it, &temp))
currLFConfig.decimation = temp;
else if(getLFConfig_helper(config["averaging"].toMap(), *it, &temp))
currLFConfig.averaging = (bool)temp;
else if(getLFConfig_helper(config["trigger threshold"].toMap(), *it, &temp))
currLFConfig.triggerThreshold = temp;
else if(getLFConfig_helper(config["samples to skip"].toMap(), *it, &temp))
currLFConfig.samplesToSkip = temp;
} }
syncWithUI(); syncWithUI();
} }
void LF::setConfig(LF::Config config) void LF::setLFConfig(LF::LFConfig lfconfig)
{ {
currConfig = config; currLFConfig = lfconfig;
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QVariantMap config = configMap["set config"].toMap();
{ QString cmd = config["cmd"].toString();
util->execCMDWithOutput(QString("lf config") cmd.replace("<divisor>", QString::number(currLFConfig.divisor));
+ " q " + QString::number(currConfig.divisor) cmd.replace("<bits per sample>", QString::number(currLFConfig.bitsPerSample));
+ " b " + QString::number(currConfig.bitPerSample) cmd.replace("<decimation>", QString::number(currLFConfig.decimation));
+ " d " + QString::number(currConfig.decimation) cmd.replace("<averaging>", currLFConfig.averaging ? "1" : "0");
+ " a " + QString(currConfig.averaging ? "1" : "0") cmd.replace("<trigger threshold>", QString::number(currLFConfig.triggerThreshold));
+ " t " + QString::number(currConfig.triggerThreshold) cmd.replace("<samples to skip>", QString::number(currLFConfig.samplesToSkip));
+ " s " + QString::number(currConfig.samplesToSkip), util->execCMDWithOutput(cmd, 500);
500); cmd = config["divisor cmd"].toString();
util->execCMDWithOutput("hw setlfdivisor " + QString::number(currConfig.divisor), 500); cmd.replace("<divisor>", QString::number(currLFConfig.divisor));
} util->execCMDWithOutput(cmd, 500);
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN)
{
util->execCMDWithOutput(QString("lf config")
+ " -a " + QString(currConfig.averaging ? "1" : "0")
+ " -b " + QString::number(currConfig.bitPerSample)
+ " --dec " + QString::number(currConfig.decimation)
+ " --divisor " + QString::number(currConfig.divisor)
+ " -s " + QString::number(currConfig.samplesToSkip)
+ " -t " + QString::number(currConfig.triggerThreshold),
500);
util->execCMDWithOutput("hw setlfdivisor -d " + QString::number(currConfig.divisor), 500);
}
} }
void LF::resetConfig() void LF::resetLFConfig()
{ {
setConfig(defaultConfig); setLFConfig(defaultLFConfig);
getConfig(); getLFConfig();
} }
float LF::divisor2Freq(uint8_t divisor) float LF::divisor2Freq(uint8_t divisor)
@ -158,10 +139,16 @@ uint8_t LF::freq2Divisor(float freq)
void LF::syncWithUI() void LF::syncWithUI()
{ {
ui->LF_Conf_freqDivisorBox->setValue(currConfig.divisor); // will trigger valueChanged() ui->LF_LFConf_freqDivisorBox->setValue(currLFConfig.divisor); // will trigger valueChanged()
ui->LF_Conf_bitPerSampleBox->setValue(currConfig.bitPerSample); ui->LF_LFConf_bitsPerSampleBox->setValue(currLFConfig.bitsPerSample);
ui->LF_Conf_decimationBox->setValue(currConfig.decimation); ui->LF_LFConf_decimationBox->setValue(currLFConfig.decimation);
ui->LF_Conf_averagingBox->setChecked(currConfig.averaging); ui->LF_LFConf_averagingBox->setChecked(currLFConfig.averaging);
ui->LF_Conf_thresholdBox->setValue(currConfig.triggerThreshold); ui->LF_LFConf_thresholdBox->setValue(currLFConfig.triggerThreshold);
ui->LF_Conf_skipsBox->setValue(currConfig.samplesToSkip); ui->LF_LFConf_skipsBox->setValue(currLFConfig.samplesToSkip);
}
void LF::setConfigMap(const QVariantMap& configMap)
{
this->configMap = configMap;
qDebug() << configMap;
} }

@ -12,17 +12,17 @@ class LF : public QObject
public: public:
explicit LF(Ui::MainWindow *ui, Util *addr, QWidget *parent = nullptr); explicit LF(Ui::MainWindow *ui, Util *addr, QWidget *parent = nullptr);
struct Config struct LFConfig
{ {
uint8_t divisor; uint8_t divisor;
uint8_t bitPerSample; uint8_t bitsPerSample;
uint8_t decimation; uint8_t decimation;
bool averaging; bool averaging;
uint8_t triggerThreshold; uint8_t triggerThreshold;
uint16_t samplesToSkip; uint16_t samplesToSkip;
}; };
static constexpr Config defaultConfig = static constexpr LFConfig defaultLFConfig =
{ {
95, 95,
8, 8,
@ -36,19 +36,22 @@ public:
void sniff(); void sniff();
void search(); void search();
void tune(); void tune();
void getConfig(); void getLFConfig();
void setConfig(LF::Config config); void setLFConfig(LF::LFConfig lfconfig);
void resetConfig(); void resetLFConfig();
static float divisor2Freq(uint8_t divisor); static float divisor2Freq(uint8_t divisor);
static uint8_t freq2Divisor(float freq); static uint8_t freq2Divisor(float freq);
void setConfigMap(const QVariantMap &configMap);
private: private:
QWidget* parent; QWidget* parent;
Ui::MainWindow *ui; Ui::MainWindow *ui;
Util* util; Util* util;
Config currConfig; LFConfig currLFConfig;
QRegularExpression* configPattern; QRegularExpression* LFconfigPattern;
QVariantMap configMap;
void syncWithUI(); void syncWithUI();
bool getLFConfig_helper(const QVariantMap& map, QString& str, int* result);
signals: signals:
}; };

@ -84,6 +84,7 @@ void MainWindow::loadConfig()
QByteArray configData = configList.readAll(); QByteArray configData = configList.readAll();
QJsonDocument configJson(QJsonDocument::fromJson(configData)); QJsonDocument configJson(QJsonDocument::fromJson(configData));
mifare->setConfigMap(configJson.object()["mifare classic"].toObject().toVariantMap()); mifare->setConfigMap(configJson.object()["mifare classic"].toObject().toVariantMap());
lf->setConfigMap(configJson.object()["lf"].toObject().toVariantMap());
} }
@ -1182,7 +1183,7 @@ void MainWindow::setButtonsEnabled(bool st)
ui->MF_sniffGroupBox->setEnabled(st); ui->MF_sniffGroupBox->setEnabled(st);
ui->Raw_CMDEdit->setEnabled(st); ui->Raw_CMDEdit->setEnabled(st);
ui->Raw_sendCMDButton->setEnabled(st); ui->Raw_sendCMDButton->setEnabled(st);
ui->LF_configGroupBox->setEnabled(st); ui->LF_LFconfigGroupBox->setEnabled(st);
ui->LF_operationGroupBox->setEnabled(st); ui->LF_operationGroupBox->setEnabled(st);
} }
@ -1279,37 +1280,37 @@ void MainWindow::on_Set_Client_keepClientActiveBox_stateChanged(int arg1)
emit setSerialListener(!keepClientActive); emit setSerialListener(!keepClientActive);
} }
void MainWindow::on_LF_Conf_freqSlider_valueChanged(int value) void MainWindow::on_LF_LFConf_freqSlider_valueChanged(int value)
{ {
onLFfreqConfChanged(value, true); onLFfreqConfChanged(value, true);
} }
void MainWindow::onLFfreqConfChanged(int value, bool isCustomized) void MainWindow::onLFfreqConfChanged(int value, bool isCustomized)
{ {
ui->LF_Conf_freqDivisorBox->blockSignals(true); ui->LF_LFConf_freqDivisorBox->blockSignals(true);
ui->LF_Conf_freqSlider->blockSignals(true); ui->LF_LFConf_freqSlider->blockSignals(true);
if(isCustomized) if(isCustomized)
ui->LF_Conf_freqOtherButton->setChecked(true); ui->LF_LFConf_freqOtherButton->setChecked(true);
ui->LF_Conf_freqLabel->setText(tr("Actural Freq: ") + QString("%1kHz").arg(LF::divisor2Freq(value), 0, 'f', 3)); ui->LF_LFConf_freqLabel->setText(tr("Actural Freq: ") + QString("%1kHz").arg(LF::divisor2Freq(value), 0, 'f', 3));
ui->LF_Conf_freqDivisorBox->setValue(value); ui->LF_LFConf_freqDivisorBox->setValue(value);
ui->LF_Conf_freqSlider->setValue(value); ui->LF_LFConf_freqSlider->setValue(value);
ui->LF_Conf_freqDivisorBox->blockSignals(false); ui->LF_LFConf_freqDivisorBox->blockSignals(false);
ui->LF_Conf_freqSlider->blockSignals(false); ui->LF_LFConf_freqSlider->blockSignals(false);
} }
void MainWindow::on_LF_Conf_freqDivisorBox_valueChanged(int arg1) void MainWindow::on_LF_LFConf_freqDivisorBox_valueChanged(int arg1)
{ {
onLFfreqConfChanged(arg1, true); onLFfreqConfChanged(arg1, true);
} }
void MainWindow::on_LF_Conf_freq125kButton_clicked() void MainWindow::on_LF_LFConf_freq125kButton_clicked()
{ {
onLFfreqConfChanged(95, false); onLFfreqConfChanged(95, false);
} }
void MainWindow::on_LF_Conf_freq134kButton_clicked() void MainWindow::on_LF_LFConf_freq134kButton_clicked()
{ {
onLFfreqConfChanged(88, false); onLFfreqConfChanged(88, false);
} }
@ -1375,32 +1376,32 @@ void MainWindow::contextMenuEvent(QContextMenuEvent *event)
contextMenu->exec(event->globalPos()); contextMenu->exec(event->globalPos());
} }
void MainWindow::on_LF_Conf_getButton_clicked() void MainWindow::on_LF_LFConf_getButton_clicked()
{ {
setState(false); setState(false);
lf->getConfig(); lf->getLFConfig();
setState(true); setState(true);
} }
void MainWindow::on_LF_Conf_setButton_clicked() void MainWindow::on_LF_LFConf_setButton_clicked()
{ {
LF::Config config; LF::LFConfig config;
setState(false); setState(false);
config.divisor = ui->LF_Conf_freqDivisorBox->value(); config.divisor = ui->LF_LFConf_freqDivisorBox->value();
config.bitPerSample = ui->LF_Conf_bitPerSampleBox->value(); config.bitsPerSample = ui->LF_LFConf_bitsPerSampleBox->value();
config.decimation = ui->LF_Conf_decimationBox->value(); config.decimation = ui->LF_LFConf_decimationBox->value();
config.averaging = ui->LF_Conf_averagingBox->isChecked(); config.averaging = ui->LF_LFConf_averagingBox->isChecked();
config.triggerThreshold = ui->LF_Conf_thresholdBox->value(); config.triggerThreshold = ui->LF_LFConf_thresholdBox->value();
config.samplesToSkip = ui->LF_Conf_skipsBox->value(); config.samplesToSkip = ui->LF_LFConf_skipsBox->value();
lf->setConfig(config); lf->setLFConfig(config);
Util::gotoRawTab(); Util::gotoRawTab();
setState(true); setState(true);
} }
void MainWindow::on_LF_Conf_resetButton_clicked() void MainWindow::on_LF_LFConf_resetButton_clicked()
{ {
setState(false); setState(false);
lf->resetConfig(); lf->resetLFConfig();
setState(true); setState(true);
} }

@ -179,13 +179,13 @@ private slots:
void on_Set_Client_keepClientActiveBox_stateChanged(int arg1); void on_Set_Client_keepClientActiveBox_stateChanged(int arg1);
void on_LF_Conf_freqSlider_valueChanged(int value); void on_LF_LFConf_freqSlider_valueChanged(int value);
void on_LF_Conf_freqDivisorBox_valueChanged(int arg1); void on_LF_LFConf_freqDivisorBox_valueChanged(int arg1);
void on_LF_Conf_freq125kButton_clicked(); void on_LF_LFConf_freq125kButton_clicked();
void on_LF_Conf_freq134kButton_clicked(); void on_LF_LFConf_freq134kButton_clicked();
void on_LF_Op_searchButton_clicked(); void on_LF_Op_searchButton_clicked();
@ -195,11 +195,11 @@ private slots:
void on_LF_Op_sniffButton_clicked(); void on_LF_Op_sniffButton_clicked();
void on_LF_Conf_getButton_clicked(); void on_LF_LFConf_getButton_clicked();
void on_LF_Conf_setButton_clicked(); void on_LF_LFConf_setButton_clicked();
void on_LF_Conf_resetButton_clicked(); void on_LF_LFConf_resetButton_clicked();
void on_Set_Client_workingDirEdit_editingFinished(); void on_Set_Client_workingDirEdit_editingFinished();

@ -1247,7 +1247,7 @@
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_14"> <layout class="QVBoxLayout" name="verticalLayout_14">
<item> <item>
<widget class="QGroupBox" name="LF_configGroupBox"> <widget class="QGroupBox" name="LF_LFconfigGroupBox">
<property name="title"> <property name="title">
<string>LF Config</string> <string>LF Config</string>
</property> </property>
@ -1268,7 +1268,7 @@
<number>2</number> <number>2</number>
</property> </property>
<item> <item>
<widget class="QGroupBox" name="LF_Conf_freqGroupBox"> <widget class="QGroupBox" name="LF_LFConf_freqGroupBox">
<property name="title"> <property name="title">
<string>Frequency</string> <string>Frequency</string>
</property> </property>
@ -1291,7 +1291,7 @@
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_13"> <layout class="QHBoxLayout" name="horizontalLayout_13">
<item> <item>
<widget class="QRadioButton" name="LF_Conf_freq125kButton"> <widget class="QRadioButton" name="LF_LFConf_freq125kButton">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -1307,7 +1307,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QRadioButton" name="LF_Conf_freq134kButton"> <widget class="QRadioButton" name="LF_LFConf_freq134kButton">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -1320,7 +1320,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QRadioButton" name="LF_Conf_freqOtherButton"> <widget class="QRadioButton" name="LF_LFConf_freqOtherButton">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -1340,7 +1340,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QSpinBox" name="LF_Conf_freqDivisorBox"> <widget class="QSpinBox" name="LF_LFConf_freqDivisorBox">
<property name="minimum"> <property name="minimum">
<number>19</number> <number>19</number>
</property> </property>
@ -1353,7 +1353,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="LF_Conf_freqLabel"> <widget class="QLabel" name="LF_LFConf_freqLabel">
<property name="text"> <property name="text">
<string>Actural Freq: 125.000kHz</string> <string>Actural Freq: 125.000kHz</string>
</property> </property>
@ -1375,7 +1375,7 @@
</layout> </layout>
</item> </item>
<item> <item>
<widget class="QSlider" name="LF_Conf_freqSlider"> <widget class="QSlider" name="LF_LFConf_freqSlider">
<property name="minimum"> <property name="minimum">
<number>19</number> <number>19</number>
</property> </property>
@ -1393,8 +1393,7 @@
<item> <item>
<widget class="QLabel" name="label_22"> <widget class="QLabel" name="label_22">
<property name="text"> <property name="text">
<string>Note: <string>You might need a modified LF antenna if the freq is not 125k/134k.
You might need a modified LF antenna if the freq is not 125k/134k.
When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</string> When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</string>
</property> </property>
<property name="wordWrap"> <property name="wordWrap">
@ -1425,7 +1424,7 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</str
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="label_6"> <widget class="QLabel" name="label_6">
<property name="text"> <property name="text">
<string>Bit per sample:</string> <string>Bits per sample:</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -1437,7 +1436,7 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</str
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="1" column="1">
<widget class="QSpinBox" name="LF_Conf_decimationBox"> <widget class="QSpinBox" name="LF_LFConf_decimationBox">
<property name="minimum"> <property name="minimum">
<number>1</number> <number>1</number>
</property> </property>
@ -1454,7 +1453,7 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</str
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item row="2" column="1">
<widget class="QCheckBox" name="LF_Conf_averagingBox"> <widget class="QCheckBox" name="LF_LFConf_averagingBox">
<property name="text"> <property name="text">
<string/> <string/>
</property> </property>
@ -1468,7 +1467,7 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</str
</widget> </widget>
</item> </item>
<item row="3" column="1"> <item row="3" column="1">
<widget class="QSpinBox" name="LF_Conf_thresholdBox"> <widget class="QSpinBox" name="LF_LFConf_thresholdBox">
<property name="maximum"> <property name="maximum">
<number>128</number> <number>128</number>
</property> </property>
@ -1482,14 +1481,14 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</str
</widget> </widget>
</item> </item>
<item row="4" column="1"> <item row="4" column="1">
<widget class="QSpinBox" name="LF_Conf_skipsBox"> <widget class="QSpinBox" name="LF_LFConf_skipsBox">
<property name="maximum"> <property name="maximum">
<number>65535</number> <number>65535</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="0" column="1">
<widget class="QSpinBox" name="LF_Conf_bitPerSampleBox"> <widget class="QSpinBox" name="LF_LFConf_bitsPerSampleBox">
<property name="minimum"> <property name="minimum">
<number>1</number> <number>1</number>
</property> </property>
@ -1534,7 +1533,7 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</str
</spacer> </spacer>
</item> </item>
<item> <item>
<widget class="QPushButton" name="LF_Conf_getButton"> <widget class="QPushButton" name="LF_LFConf_getButton">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -1553,7 +1552,7 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</str
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="LF_Conf_setButton"> <widget class="QPushButton" name="LF_LFConf_setButton">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -1572,7 +1571,7 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</str
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="LF_Conf_resetButton"> <widget class="QPushButton" name="LF_LFConf_resetButton">
<property name="text"> <property name="text">
<string>Reset</string> <string>Reset</string>
</property> </property>

Loading…
Cancel
Save