Checkin pré développement SIM module
This commit is contained in:
@@ -58,7 +58,7 @@ CAVReceiverDevice::~CAVReceiverDevice()
|
||||
delete mReceiverSocket;
|
||||
delete mDisconnectTimer;
|
||||
delete mStateRequestTimer;
|
||||
delete mSyncDelayTimer;
|
||||
// delete mSyncDelayTimer;
|
||||
}
|
||||
|
||||
int CAVReceiverDevice::Start()
|
||||
|
||||
@@ -17,6 +17,7 @@ CLoraSettingsGui::~CLoraSettingsGui()
|
||||
CLoraSettingsGui::SetSettings(CSettings *settings)
|
||||
{
|
||||
ui->mLoraAddressSpinBx->setValue(settings->mChaletLoraAddress);
|
||||
ui->mLoraChannelSpinBx->setValue(settings->mChaletLoraChannel);
|
||||
ui->mComportComboBox->setCurrentText(settings->mChaletComPort);
|
||||
ui->mUseLoraIFCheckBx->setChecked(settings->mChaletUseLoraIF);
|
||||
return RET_OK;
|
||||
@@ -30,7 +31,8 @@ quint16 CLoraSettingsGui::GetChaletLoraAddress()
|
||||
|
||||
quint8 CLoraSettingsGui::GetChaletLoraChannel()
|
||||
{
|
||||
return 4;
|
||||
quint16 Chan = ui->mLoraChannelSpinBx->value();
|
||||
return Chan;
|
||||
}
|
||||
|
||||
QString CLoraSettingsGui::GetChaletLoraComPort()
|
||||
|
||||
@@ -28,20 +28,20 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Lora Settings</string>
|
||||
<string>Chalet Settings</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>50</x>
|
||||
<y>120</y>
|
||||
<x>110</x>
|
||||
<y>170</y>
|
||||
<width>221</width>
|
||||
<height>191</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Chalet</string>
|
||||
<string>LoRa</string>
|
||||
</property>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="geometry">
|
||||
@@ -69,19 +69,6 @@
|
||||
<string>Lora Channel:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>90</x>
|
||||
<y>20</y>
|
||||
<width>71</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>4</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QSpinBox" name="mLoraAddressSpinBx">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
@@ -201,6 +188,51 @@ Chaloupe = 8</string>
|
||||
<string>Use LoraInterface (restart needed)</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QSpinBox" name="mLoraChannelSpinBx">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>90</x>
|
||||
<y>20</y>
|
||||
<width>71</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>65535</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>6</number>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>200</x>
|
||||
<y>30</y>
|
||||
<width>71</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>4</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="checkBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>70</x>
|
||||
<y>60</y>
|
||||
<width>281</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Use LTE interface (restart needed)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<resources/>
|
||||
|
||||
@@ -20,7 +20,7 @@ CSettingsWindow::CSettingsWindow()
|
||||
mOptionsTabBar->addTab("SMS");
|
||||
mOptionsTabBar->addTab("Network");
|
||||
mOptionsTabBar->addTab("Contacts");
|
||||
mOptionsTabBar->addTab("Lora");
|
||||
mOptionsTabBar->addTab("Chalet");
|
||||
mOptionsTabBar->resize(this->geometry().width(),mOptionsTabBar->height());
|
||||
MainLayout->addWidget(mOptionsTabBar);
|
||||
|
||||
|
||||
@@ -127,7 +127,8 @@ void CMasterCtrl::Start()
|
||||
else
|
||||
{
|
||||
mChaletLoraNetworkCommInterface->mMyLoraAddress = 5;
|
||||
mChaletLoraNetworkCommInterface->mMyLoraChannel = 4;
|
||||
// mChaletLoraNetworkCommInterface->mMyLoraChannel = 4;
|
||||
mChaletLoraNetworkCommInterface->mMyLoraChannel = mMasterCtrlSettings.mChaletLoraChannel;
|
||||
mChaletLoraNetworkCommInterface->SetLoraDestinationAddress(mMasterCtrlSettings.mChaletLoraAddress,mMasterCtrlSettings.mChaletLoraChannel);
|
||||
mChaletLoraNetworkCommInterface->SetLoraSerialPortSettings(mMasterCtrlSettings.mChaletComPort,QSerialPort::Baud9600);
|
||||
}
|
||||
@@ -189,6 +190,7 @@ unsigned int CMasterCtrl::SettingsWindowClosed()
|
||||
}
|
||||
if(mChaletLoraNetworkCommInterface != 0)
|
||||
{
|
||||
mChaletLoraNetworkCommInterface->mMyLoraChannel = mMasterCtrlSettings.mChaletLoraChannel;
|
||||
mChaletLoraNetworkCommInterface->SetLoraDestinationAddress(mMasterCtrlSettings.mChaletLoraAddress,mMasterCtrlSettings.mChaletLoraChannel); //JFM LoraInterface Dev
|
||||
mChaletLoraNetworkCommInterface->SetLoraSerialPortSettings(mMasterCtrlSettings.mChaletComPort,QSerialPort::Baud9600); //JFM LoraInterface Dev
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user