fix 5g bugs

This commit is contained in:
zhangsheng 2025-11-29 14:13:48 +08:00
parent eb1c97b60e
commit 7c3b49662b
3 changed files with 8 additions and 2 deletions

View File

@ -17,7 +17,7 @@ enum enumZigBeeTransmitStatus {
}; };
//#define NR5G_MODULE #define NR5G_MODULE
//#define Q4G_MODULE //#define Q4G_MODULE
//#define WIFI_MODULE //#define WIFI_MODULE
//#define NR5G_MEIGE //#define NR5G_MEIGE

View File

@ -83,7 +83,7 @@ int main(int argc, char *argv[]) {
#ifdef NR5G_MODULE #ifdef NR5G_MODULE
print_info("NR5G_MODULE \n"); zlog_info(zbt,"NR5G_MODULE \n");
// 5G // 5G
boost::thread startCSQ(GetCSQ); boost::thread startCSQ(GetCSQ);
startCSQ.detach(); startCSQ.detach();

View File

@ -17,7 +17,11 @@
extern zlog_category_t *zct; extern zlog_category_t *zct;
extern zlog_category_t *zbt; extern zlog_category_t *zbt;
#ifdef NR5G_MODULE
#include "wifi_5g/dial.h"
int fd = -1;
#endif
void CheckThread() { void CheckThread() {
zlog_info(zbt, "ENTER CHECK THREAD "); zlog_info(zbt, "ENTER CHECK THREAD ");
@ -34,6 +38,7 @@ void CheckThread() {
int mqttresend = 0; int mqttresend = 0;
int checkNet0 = 0; int checkNet0 = 0;
int wifi_reconnect_count = 0; int wifi_reconnect_count = 0;
int connectCount = 0;
while (GlobalConfig::QuitFlag_G) { while (GlobalConfig::QuitFlag_G) {
GlobalConfig::threadStatus = 1; GlobalConfig::threadStatus = 1;
sleep(1); sleep(1);
@ -83,6 +88,7 @@ void CheckThread() {
} }
#endif #endif
#ifdef NR5G_MODULE #ifdef NR5G_MODULE
Dial dial;
dial.closePort(); dial.closePort();
gpio_set(GlobalConfig::GPIO_G.commPower, 0); gpio_set(GlobalConfig::GPIO_G.commPower, 0);
zlog_warn(zct, "commPower start"); zlog_warn(zct, "commPower start");