LF: support read LF config

This commit is contained in:
wh201906
2021-02-23 16:35:58 +08:00
parent 019afed198
commit 466cd0ecc1
5 changed files with 120 additions and 6 deletions
+6 -1
View File
@@ -1251,7 +1251,7 @@ void MainWindow::onLFfreqConfChanged(int value, bool isCustomized)
if(isCustomized)
ui->LF_Conf_freqOtherButton->setChecked(true);
ui->LF_Conf_freqLabel->setText(QString("Actural Freq: %1kHz").arg(12000.0 / (value + 1.0), 0, 'f', 3));
ui->LF_Conf_freqLabel->setText(QString("Actural Freq: %1kHz").arg(LF::divisor2Freq(value), 0, 'f', 3));
ui->LF_Conf_freqDivisorBox->setValue(value);
ui->LF_Conf_freqSlider->setValue(value);
@@ -1334,3 +1334,8 @@ void MainWindow::contextMenuEvent(QContextMenuEvent *event)
{
contextMenu->exec(event->globalPos());
}
void MainWindow::on_LF_Conf_getButton_clicked()
{
lf->getConfig();
}
+2
View File
@@ -197,6 +197,8 @@ private slots:
void on_LF_Op_sniffButton_clicked();
void on_LF_Conf_getButton_clicked();
private:
Ui::MainWindow* ui;
QButtonGroup* MFCardTypeBtnGroup;
+8 -4
View File
@@ -136,7 +136,7 @@
</sizepolicy>
</property>
<property name="currentIndex">
<number>0</number>
<number>1</number>
</property>
<widget class="QWidget" name="mifareTab">
<attribute name="title">
@@ -1442,10 +1442,14 @@ You might need a modified LF antenna if the freq is not 125k/134k.</string>
</widget>
</item>
<item row="4" column="1">
<widget class="QSpinBox" name="LF_Conf_skipsBox"/>
<widget class="QSpinBox" name="LF_Conf_skipsBox">
<property name="maximum">
<number>65535</number>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="LF_Conf_bitRateBox">
<widget class="QSpinBox" name="LF_Conf_bitPerSampleBox">
<property name="minimum">
<number>1</number>
</property>
@@ -1689,7 +1693,7 @@ On Iceman/RRG repo, press the button on PM3 to stop measuring</string>
<item>
<widget class="QLabel" name="label_27">
<property name="text">
<string>Sniff low frequency signal wit LF field OFF.
<string>Sniff low frequency signal with LF field OFF.
Use this to get raw data from a reader
or the communication between a tag and a reader.</string>
</property>