From 2377c6703af01ee2dfa33ff8e7b8b4692c9837e8 Mon Sep 17 00:00:00 2001 From: QQY <979527038@qq.com> Date: Mon, 4 Sep 2023 14:29:38 +0800 Subject: [PATCH] =?utf8?q?=E6=96=B0=E5=A2=9E=E5=8D=8F=E8=AE=AE=E4=BB=A3?= =?utf8?q?=E7=A0=81=E4=BF=AE=E6=94=B9=201:=E6=96=AD=E7=94=B5=E6=95=B0?= =?utf8?q?=E6=8D=AE=E4=B8=8A=E4=BC=A0=202:=E7=83=AD=E5=83=8F=E4=BB=AA?= =?utf8?q?=E6=8B=8D=E7=85=A7=E6=95=B0=E6=8D=AE=E9=80=8F=E4=BC=A0=203:?= =?utf8?q?=E6=8C=89=E9=94=AE=E7=8A=B6=E6=80=81=E6=98=BE=E7=A4=BA=E4=BF=AE?= =?utf8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ZDBYQ/canshupeizhi.cpp | 40 ++++++ ZDBYQ/mainpage_rxy.cpp | 79 +++++++++++- ZDBYQ/mainwindow.cpp | 60 +++++++++ ZDBYQ/mcu_arm1.cpp | 197 ++++++++++++++++++++++++++++ ZDBYQ/mcu_arm1.h | 5 + ZDBYQ/modulepostdata.cpp | 24 ++++ ZDBYQ/modulepostdata.h | 3 + ZDBYQ/uart1.cpp | 271 ++++++++++++++++++++++++++++++++++++++- ZDBYQ/xitongshezhi.h | 2 +- 9 files changed, 677 insertions(+), 4 deletions(-) diff --git a/ZDBYQ/canshupeizhi.cpp b/ZDBYQ/canshupeizhi.cpp index 0e115e3a..3c60343f 100644 --- a/ZDBYQ/canshupeizhi.cpp +++ b/ZDBYQ/canshupeizhi.cpp @@ -3098,6 +3098,8 @@ void canshupeizhi::button_cspz_rxy1_start_Clicked()//开启热像仪1 label_cspz_rxy1_start->setText("热像仪1已开启"); button_cspz_rxy1_start->setText("关闭热像仪1"); } + + ARM3->rxy_state(); //下发热像仪状态 23.8.30 } void canshupeizhi::button_cspz_rxy2_start_Clicked()//开启热像仪2 @@ -3126,6 +3128,7 @@ void canshupeizhi::button_cspz_rxy2_start_Clicked()//开启热像仪2 label_cspz_rxy2_start->setText("热像仪2已开启"); button_cspz_rxy2_start->setText("关闭热像仪2"); } + ARM3->rxy_state(); //下发热像仪状态 23.8.30 } void canshupeizhi::button_cspz_5_1_Clicked()//开启风机 @@ -3948,6 +3951,43 @@ void canshupeizhi::label_cspz_0_3_clicked()//页面3label点击槽函数 void canshupeizhi::label_cspz_0_5_clicked()//页面5label点击槽函数 { + //更新按钮状态 23.8.31 + QFile file_read3("/home/data/select_fan.txt"); + if(file_read3.open(QIODevice::ReadOnly | QIODevice::Text)) + { + QTextStream in(&file_read3);//创建一个对象让它去读文件 + QString line1=in.readLine(); + if(line1=="1") + { + button_cspz_5_4->setText("关闭风机定时运行"); + label_cspz_5_19->setText("风机定时运行已开启!"); + } + else + { + button_cspz_5_4->setText("开启风机定时运行"); + label_cspz_5_19->setText("风机定时运行已关闭!"); + } + } + file_read3.close(); + + QFile file_read4("/home/data/select_tiexin.txt"); + if(file_read4.open(QIODevice::ReadOnly | QIODevice::Text)) + { + QTextStream in(&file_read4);//创建一个对象让它去读文件 + QString line1=in.readLine(); + if(line1=="1") + { + button_cspz_5_5->setText("关闭铁芯温度检测"); + label_cspz_5_20->setText("铁芯温度检测已开启!"); + } + else + { + button_cspz_5_5->setText("开启铁芯温度检测"); + label_cspz_5_20->setText("铁芯温度检测已关闭!"); + } + } + file_read4.close(); + cspz_page(5);//显示第1页 label_cspz_5_show(1); } diff --git a/ZDBYQ/mainpage_rxy.cpp b/ZDBYQ/mainpage_rxy.cpp index edb9e724..0ad77806 100644 --- a/ZDBYQ/mainpage_rxy.cpp +++ b/ZDBYQ/mainpage_rxy.cpp @@ -1,5 +1,11 @@ #include "mainpage_rxy.h" +#include +#include "mcu_arm1.h" + +mcu_arm1 *ARM_2; //调用串口通信 + + void Delay_MSec_1(unsigned int msec) { QEventLoop eventloop; @@ -26,13 +32,13 @@ mainpage_Rxy::mainpage_Rxy(QWidget *parent) : QWidget(parent) button9_1->setGeometry(150,50,100,30); button9_1->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(255, 255, 255)"); button9_1->setText("热像仪1拍摄"); - label_9_1->setGeometry(150,50,200,30); + label_9_1->setGeometry(150,100,200,30); label_9_1->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(0, 0, 0)"); button9_2->setGeometry(550,50,100,30); button9_2->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(255, 255, 255)"); button9_2->setText("热像仪2拍摄"); - label_9_2->setGeometry(550,50,200,30); + label_9_2->setGeometry(550,100,200,30); label_9_2->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(0, 0, 0)"); rxy_show_picture=new QLabel(this); @@ -75,6 +81,9 @@ void mainpage_Rxy::button9_1_clicked()//热像仪1按钮槽函数 { button9_1->hide(); + button9_2->setEnabled(false); //防止传输数据粘包 23.8.30 + label_9_2->setText("等待获取热像仪1图片..."); + emit sigPageEightSend(); QString Thermal_imager_Alarm_file_rxy1; @@ -148,12 +157,48 @@ void mainpage_Rxy::button9_1_clicked()//热像仪1按钮槽函数 std::system("rm -rf /home/data/IMAGE/"); } std::system("mkdir /home/data/IMAGE/"); + + //实时温度部分 数据正常读取,已处理 + QFile file_temperature("/home/data/Real-TimeTemperature.txt"); + if(file_temperature.exists()) + { + if(file_temperature.open(QIODevice::ReadOnly)) + { + QTextStream in(&file_temperature); + QString maxTemperature = in.readLine(); + QString minTemperature = in.readLine(); + QString averageTemperature = in.readLine(); + qDebug() << maxTemperature << endl + <Realtime_temperature(max,min,ave); + + + } + file_temperature.close(); + } + + label_9_2->clear(); + button9_2->setEnabled(true); //防止传输数据粘包 23.8.30 + + + QFile file_temperature_temp("/home/data/Real-TimeTemperature.txt");//删除温度存储部分 + file_temperature_temp.remove(); + } void mainpage_Rxy::button9_2_clicked()//热像仪2按钮槽函数 { button9_2->hide(); + + button9_1->setEnabled(false); //防止传输数据粘包 23.8.30 + label_9_1->setText("等待获取热像仪2图片..."); + emit sigPageEightSend(); QString Thermal_imager_Alarm_file_rxy2; @@ -226,6 +271,36 @@ void mainpage_Rxy::button9_2_clicked()//热像仪2按钮槽函数 std::system("rm -rf /home/data/IMAGE1/"); } std::system("mkdir /home/data/IMAGE1/"); + + //实时温度部分 数据正常读取,串口传输数据 + QFile file_temperature("/home/data/Real-TimeTemperature1.txt"); + if(file_temperature.exists()) + { + if(file_temperature.open(QIODevice::ReadOnly)) + { + QTextStream in(&file_temperature); + QString maxTemperature = in.readLine(); + QString minTemperature = in.readLine(); + QString averageTemperature = in.readLine(); + qDebug() << maxTemperature << endl + <Realtime_temperature1(max,min,ave); + + + } + file_temperature.close(); + } + + label_9_1->clear(); + button9_1->setEnabled(true); //防止传输数据粘包 23.8.30 + + QFile file_temperature_temp("/home/data/Real-TimeTemperature1.txt");//删除温度存储部分 + file_temperature_temp.remove(); } void mainpage_Rxy::onPageEightDataUpdate() diff --git a/ZDBYQ/mainwindow.cpp b/ZDBYQ/mainwindow.cpp index cc60a546..aadb406e 100644 --- a/ZDBYQ/mainwindow.cpp +++ b/ZDBYQ/mainwindow.cpp @@ -1,5 +1,7 @@ #include "mainwindow.h" +#include + mcu_arm1 *ARM_1;//调用串口通信 QString line_lan_ip,line_4G_ip;//LAN的IP地址 QString wireless_name[60]; @@ -1368,6 +1370,9 @@ void MainWindow::dispPopWindwows() Pop_alarm_rxy_disconnect->show(); Pop_alarm_rxy_disconnect->raise(); Pop_alarm_rxy_disconnect->setText("热像仪掉线"); + + ARM_1->rxy_state(); //向下位机发送警报 23.8.16 + } else { @@ -2582,6 +2587,30 @@ void MainWindow::Thermal_imager_Alarm_fun(void) #ifdef LINUX std::system("mkdir /home/data/IMAGE/"); #endif + //实时温度部分 数据正常读取,调用串口发送数据 + QFile file_temperature("/home/data/Real-TimeTemperature.txt"); + if(file_temperature.exists()) + { + if(file_temperature.open(QIODevice::ReadOnly)) + { + QTextStream in(&file_temperature); + QString maxTemperature = in.readLine(); + QString minTemperature = in.readLine(); + QString averageTemperature = in.readLine(); + qDebug() << maxTemperature << endl + <Realtime_temperature(max,min,ave); + } + file_temperature.close(); + } + + QFile file_temperature_temp("/home/data/Real-TimeTemperature.txt");//删除温度存储部分 + file_temperature_temp.remove(); + QLOG_TRACE() << "--trace msg Thermal_imager_Alarm_fun :"<Realtime_temperature1(max,min,ave); + + } + file_temperature.close(); + } + + QFile file_temperature_temp("/home/data/Real-TimeTemperature1.txt");//删除温度存储部分 + file_temperature_temp.remove(); + QLOG_TRACE() << "--trace msg Thermal_imager_Alarm_fun1 :"<powerlost(); + } } void MainWindow::onSelfTestCheck(uint32_t data_alarm) diff --git a/ZDBYQ/mcu_arm1.cpp b/ZDBYQ/mcu_arm1.cpp index 3bb4d7d9..65c1bb62 100644 --- a/ZDBYQ/mcu_arm1.cpp +++ b/ZDBYQ/mcu_arm1.cpp @@ -76,6 +76,203 @@ void mcu_arm1::setBuzzerState(uint8_t state){ } +//热像仪状态 23.8.16 +void mcu_arm1::rxy_state() +{ + QByteArray data; + uint8_t CRC_lowData; + + data[0] = 0xAA; + data[1] = 0x55; + data[2] = 0x30; + data[3] = 0x01; + data[4] = 0x00; + data[5] = 0x01; + + uint8_t state = 0x00; + //热像仪报警状态部分 + QFileInfo file_alarm6_1("/home/data/Pop_rxy1.txt"); + QFileInfo file_alarm6_2("/home/data/Pop_rxy2.txt"); + + if(file_alarm6_2.exists()) + { + state += 1; //末位至1并左移一位 + state = state << 1; + } + else + { + state = state << 1; + } + + if(file_alarm6_1.exists()) //热像仪掉线 + { + state += 1; + state = state << 1; + } + else + { + state = state << 1; + } + + + //热像仪连接状态部分 + QFile file_readr2("/home/data/connect_rxy2.txt"); + if(file_readr2.exists()){ + if(file_readr2.open(QIODevice::ReadOnly | QIODevice::Text)) + { + QTextStream in(&file_readr2);//创建一个对象让它去读文件 + if(in.readLine()=="1") + { + state += 1; + } + else + { + + } + } + file_readr2.close(); + }else { + QFile file_write_rxy2("/home/data/connect_rxy2.txt");//文件路径 + if(file_write_rxy2.open(QFile::WriteOnly)) + { + QTextStream setWIFI_data(&file_write_rxy2); + setWIFI_data<<"0"<ModBusCRC16(data); + CRC_lowData = CRC1; + CRC1 = CRC1>>8; + data[7] = CRC_lowData; + data[8] = CRC1; + uart_mcu1->ShuJu_Write(data); +} + + +//热像仪1实时温度 23.8.16 +void mcu_arm1::Realtime_temperature(int max,int min,int average) +{ + QByteArray data; + uint8_t CRC_lowData; + + data[0] = 0xAA; + data[1] = 0x55; + data[2] = 0x26; + data[3] = 0x01; + data[4] = 0x00; + data[5] = 0x0c; + data[6] = max>>24; + data[7] = max>>16; + data[8] = max>>8; + data[9] = max; + data[10] = min>>24; + data[11] = min>>16; + data[12] = min>>8; + data[13] = min; + data[14] = average>>24; + data[15] = average>>16; + data[16] = average>>8; + data[17] = average; + + uart_mcu1->ModBusCRC16(data); + CRC_lowData = CRC1; + CRC1 = CRC1>>8; + data[18] = CRC_lowData; + data[19] = CRC1; + uart_mcu1->ShuJu_Write(data); + +} + + +//热像仪2实时温度 23.8.16 +void mcu_arm1::Realtime_temperature1(int max, int min, int average) +{ + QByteArray data; + uint8_t CRC_lowData; + + data[0] = 0xAA; + data[1] = 0x55; + data[2] = 0x29; + data[3] = 0x01; + data[4] = 0x00; + data[5] = 0x0c; + data[6] = max>>24; + data[7] = max>>16; + data[8] = max>>8; + data[9] = max; + data[10] = min>>24; + data[11] = min>>16; + data[12] = min>>8; + data[13] = min; + data[14] = average>>24; + data[15] = average>>16; + data[16] = average>>8; + data[17] = average; + + uart_mcu1->ModBusCRC16(data); + CRC_lowData = CRC1; + CRC1 = CRC1>>8; + data[18] = CRC_lowData; + data[19] = CRC1; + uart_mcu1->ShuJu_Write(data); +} + +//23.8.24 断电数据发送完成标志 +void mcu_arm1::Powerlost_datapost(bool isok) +{ + QByteArray data; + uint8_t CRC_lowData; + + data[0] = 0xAA; + data[1] = 0x55; + data[2] = 0x32; + data[3] = 0x01; + data[4] = 0x00; + data[5] = 0x01; + if(isok) + data[6] = 0x01; + else + data[6] = 0x00; + + uart_mcu1->ModBusCRC16(data); + CRC_lowData = CRC1; + CRC1 = CRC1>>8; + data[7] = CRC_lowData; + data[8] = CRC1; + uart_mcu1->ShuJu_Write(data); +} + + void mcu_arm1::setTime() { QByteArray data; diff --git a/ZDBYQ/mcu_arm1.h b/ZDBYQ/mcu_arm1.h index f426dff2..78846ede 100644 --- a/ZDBYQ/mcu_arm1.h +++ b/ZDBYQ/mcu_arm1.h @@ -22,6 +22,11 @@ public: void GetRtcTime(); void setFanTiming(uint8_t state); void setBuzzerState(uint8_t state); + + void rxy_state(); // ÈÈÏñÒÇ״̬ 23.8.16 + void Realtime_temperature(int max,int min,int average); //ÈÈÏñÒÇ1ʵʱÎÂ¶È 23.8.16 + void Realtime_temperature1(int max,int min,int average); //ÈÈÏñÒÇ2ʵʱÎÂ¶È 23.8.16 + void Powerlost_datapost(bool isok); //¶ÏµçÊý¾ÝÉÏ´«³É¹¦ÐźŠprivate: QSerialPort *m_serialPort; diff --git a/ZDBYQ/modulepostdata.cpp b/ZDBYQ/modulepostdata.cpp index b353fb54..6674051f 100644 --- a/ZDBYQ/modulepostdata.cpp +++ b/ZDBYQ/modulepostdata.cpp @@ -1,5 +1,9 @@ #include "modulepostdata.h" +#include "mcu_arm1.h" + +mcu_arm1 *ARM_4; //调用串口通信 + modulePostData::modulePostData(QObject *parent) : QObject(parent) { // QString filename = "/home/data/systeminit.ini" ; @@ -15,6 +19,17 @@ modulePostData::modulePostData(QObject *parent) : QObject(parent) QTimer::singleShot(900000, this, SLOT(onTimerTimeOutSendData())); } +//23.8.24 断电数据上传 +void modulePostData::powerlost() +{ + postAccData(); + if(isPost) //判断Acc是否上传成功,失败则直接反馈失败信号 + postAnaData(); + + ARM_4->Powerlost_datapost(isPost); + +} + void modulePostData::authentication() { QString urlName = urlHead + "auth"; @@ -246,6 +261,7 @@ void modulePostData::on_finishedana() QJsonDocument jsonDoc(QJsonDocument::fromJson(replyData, &json_error)); if(json_error.error != QJsonParseError::NoError) { + isPost = false; //上传表示符号 23.8.24 qDebug()<< "--trace msg 上传失败...!"<errorString(); //QMessageBox::critical(this, tr("错误"), tr("ana上传失败...!"), QMessageBox::Ok, QMessageBox::Ok); m_pReplyAna->disconnect(); @@ -259,6 +275,7 @@ void modulePostData::on_finishedana() if (codeStr == 0) { //返回代码为200的时候证明请求成功对包含的结构数据进行处理 + isPost = true; //上传表示符号 23.8.24 qDebug()<<"successssssssssssssssssssssssssssssssssssssssssssssssssssssana"; } else @@ -267,6 +284,7 @@ void modulePostData::on_finishedana() //写log //重新申请token //authentication(); + isPost = false; //上传表示符号 23.8.24 qDebug()<<"faollllllllllllllllllllllllllllllllllllllllllllllllllllllllana"; } @@ -286,6 +304,7 @@ void modulePostData::on_finishedacc() QJsonDocument jsonDoc(QJsonDocument::fromJson(replyData, &json_error)); if(json_error.error != QJsonParseError::NoError) { + isPost = false; //上传表示符号 23.8.24 qDebug()<< "--trace msg 上传失败...!"<errorString(); //QMessageBox::critical(this, tr("错误"), tr("上传失败...acc!"), QMessageBox::Ok, QMessageBox::Ok); m_pReplyAcc->disconnect(); @@ -299,6 +318,7 @@ void modulePostData::on_finishedacc() if (codeStr == 0) { //返回代码为200的时候证明请求成功对包含的结构数据进行处理 + isPost = true; //上传表示符号 23.8.24 qDebug()<<"successssssssssssssssssssssssssssssssssssssssssssssssssacc"; } else @@ -307,6 +327,7 @@ void modulePostData::on_finishedacc() //写log //重新申请token //authentication(); + isPost = false; //上传表示符号 23.8.24 qDebug()<<"faollllllllllllllllllllllllllllllllllllllllllllllllllacc"; } @@ -328,6 +349,7 @@ void modulePostData::on_finisheddig() QJsonDocument jsonDoc(QJsonDocument::fromJson(replyData, &json_error)); if(json_error.error != QJsonParseError::NoError) { + isPost = false; //上传表示符号 23.8.24 qDebug()<< "--trace msg 上传失败...!"<errorString(); //QMessageBox::critical(this, tr("错误"), tr("上传失败...dig!"), QMessageBox::Ok, QMessageBox::Ok); m_pReplyDig->disconnect(); @@ -342,6 +364,7 @@ void modulePostData::on_finisheddig() if (codeStr == 0) { //返回代码为200的时候证明请求成功对包含的结构数据进行处理 + isPost = true; //上传表示符号 23.8.24 qDebug()<<"successssssssssssssssssssssssssssssssssssssssssssssssdig"; } else @@ -350,6 +373,7 @@ void modulePostData::on_finisheddig() //写log //重新申请token //authentication(); + isPost = false; //上传表示符号 23.8.24 qDebug()<<"faollllllllllllllllllllllllllllllllllllllllllllldig"; } diff --git a/ZDBYQ/modulepostdata.h b/ZDBYQ/modulepostdata.h index db0d7f42..0d0ffb55 100644 --- a/ZDBYQ/modulepostdata.h +++ b/ZDBYQ/modulepostdata.h @@ -26,6 +26,8 @@ class modulePostData : public QObject public: explicit modulePostData(QObject *parent = nullptr); + //23.8.24 断电数据上传 + void powerlost(); private: QNetworkAccessManager *m_pNetWorkManagerAna; QNetworkAccessManager *m_pNetWorkManagerAcc; @@ -33,6 +35,7 @@ private: QEventLoop m_loop; QString tokenStr = ""; QString urlHead = ""; + bool isPost = true; //23.8.24 判断上传是否成功 void authentication(); void postAnaData(); void postAccData(); diff --git a/ZDBYQ/uart1.cpp b/ZDBYQ/uart1.cpp index cae453c0..254863cb 100644 --- a/ZDBYQ/uart1.cpp +++ b/ZDBYQ/uart1.cpp @@ -41,6 +41,14 @@ UART1::~UART1() { } +void Delay_MSec_Temp(unsigned int msec) +{ + QEventLoop eventloop; + QTimer::singleShot((int)msec, &eventloop, SLOT(quit())); + eventloop.exec(); +} + + void UART1::Delay_MSec(unsigned int msec) { QEventLoop eventloop; @@ -73,6 +81,7 @@ void UART1::UartFrameProcess(QByteArray & data) uint32_t concentrator_data_count = 0; uint8_t lower_CRC = 0; uint32_t wireless_checkcount = 0; + uint8_t temperature_order = 0; //温度获取指令 23.8.16 int year,month,day,hour,minute,seconds; QString ass_year,ass_month,ass_day,ass_hour,ass_minute,ass_seconds; QString Sys_time; @@ -94,7 +103,7 @@ void UART1::UartFrameProcess(QByteArray & data) Check[1] = CRC1; if((Check[0] == data[data.size()-2])&&(Check[1] == data[data.size()-1])&&(data.data()!=NULL)) { - if(data.at(2) >= 0x20) + if(data.at(2) >= 0x20 && data.at(2) <=0x30) { dataLen = data.size(); result = data.at(dataLen - 3); @@ -692,6 +701,27 @@ void UART1::UartFrameProcess(QByteArray & data) data_war[0] = data[5]; waring_data = data_war.toHex().toInt(&ok,16); + + if(waring_data & 128){ + QFile file("/home/data/select_fan.txt");//文件路径 + if(file.open(QFile::WriteOnly)) + { + QTextStream set_wifi_connect(&file); + set_wifi_connect<<"1"<Realtime_temperature(max,min,ave); + + + } + file_temperature.close(); + } + + QFile file_temperature_temp("/home/data/Real-TimeTemperature.txt");//删除温度存储部分 + file_temperature_temp.remove(); + } + else + { + ARM1->rxy_state(); + } + } + if(temperature_order == 2 || temperature_order == 3) + { + if(rxy2_flag) + { + QFile file_write2("/home/data/rxy_temperature_show2.txt");//文件路径 + if(file_write2.open(QFile::WriteOnly)) + { + QTextStream data2(&file_write2); + } + file_write2.close(); + QFileInfo file2("/home/data/Real-TimeTemperature1.txt"); + for(int i =0;i<10;i++) + { + Delay_MSec_Temp(1000); + + if(file2.exists()) + { + break; + } + else + { + QFile file_write2("/home/data/rxy_temperature_show2.txt");//文件路径 + + if(file_write2.exists()) + { + } + else + { + if(file_write2.open(QFile::WriteOnly)) + { + QTextStream data2(&file_write2); + } + file_write2.close(); + } + } + } + + + //实时温度部分 数据正常读取,串口传输数据 + QFile file_temperature1("/home/data/Real-TimeTemperature1.txt"); + if(file_temperature1.exists()) + { + if(file_temperature1.open(QIODevice::ReadOnly)) + { + QTextStream in1(&file_temperature1); + QString maxTemperature1 = in1.readLine(); + QString minTemperature1 = in1.readLine(); + QString averageTemperature1 = in1.readLine(); + qDebug() << maxTemperature1 << endl + <Realtime_temperature1(max1,min1,ave1); + + + } + file_temperature1.close(); + } + + QFile file_temperature_temp1("/home/data/Real-TimeTemperature1.txt");//删除温度存储部分 + file_temperature_temp1.remove(); + } + else + { + ARM1->rxy_state(); + } + } + + break; + } } } diff --git a/ZDBYQ/xitongshezhi.h b/ZDBYQ/xitongshezhi.h index 89aeba07..e3c76fdf 100644 --- a/ZDBYQ/xitongshezhi.h +++ b/ZDBYQ/xitongshezhi.h @@ -18,7 +18,7 @@ extern bool lowpower_mode_flag1; extern bool cspz_flag,wlpz_flag; -static QString version="软件版本号:A20230613test"; +static QString version="软件版本号:A20230831test"; namespace Ui { class xitongshezhi; -- 2.34.1