From f722e6469b21ac0b52312437a3e62c7c7dd87f52 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=8F=E9=A9=AC=5F666?=
<13089258+pony-six-hundred-and-sixty-six@user.noreply.gitee.com>
Date: Thu, 5 Jun 2025 16:09:25 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BF=83=E8=B7=B3=E4=B8=BA60?=
=?UTF-8?q?s,=E9=87=8D=E8=BF=9E=E4=B8=BA30s=EF=BC=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.cproject | 2 +-
ble_bjq_ch303rct6_ml307.launch | 2 +-
bsp/src/at_device_ml307.c | 15 +++++++--------
rt-thread/rtconfig.h | 2 +-
4 files changed, 10 insertions(+), 11 deletions(-)
diff --git a/.cproject b/.cproject
index b9a9ee6..a9a8985 100644
--- a/.cproject
+++ b/.cproject
@@ -646,4 +646,4 @@
-
+
\ No newline at end of file
diff --git a/ble_bjq_ch303rct6_ml307.launch b/ble_bjq_ch303rct6_ml307.launch
index 6e4870b..7523c2f 100644
--- a/ble_bjq_ch303rct6_ml307.launch
+++ b/ble_bjq_ch303rct6_ml307.launch
@@ -59,4 +59,4 @@
-
+
\ No newline at end of file
diff --git a/bsp/src/at_device_ml307.c b/bsp/src/at_device_ml307.c
index e05e648..e0f87d1 100644
--- a/bsp/src/at_device_ml307.c
+++ b/bsp/src/at_device_ml307.c
@@ -564,7 +564,6 @@ int ml307_netdev_check_link_status(struct netdev *netdev)
char tname[RT_NAME_MAX] = {0};
if (netdev == RT_NULL)
{
- LOG_E("input network interface device is NULL.\n");
return -RT_ERROR;
}
// RT_ASSERT(netdev);
@@ -947,7 +946,7 @@ static void ml307_init_thread_entry(void *parameter)
goto __exit;
}
/*设置心跳包*/
- if (at_obj_exec_cmd(device->client, resp, "AT+MIPTKA=0,1,120,60,3") != RT_EOK)
+ if (at_obj_exec_cmd(device->client, resp, "AT+MIPTKA=0,1,60,30,3") != RT_EOK)
{
result = -RT_ERROR;
goto __exit;
@@ -1129,12 +1128,12 @@ static void ml307_init_thread_entry(void *parameter)
result = -RT_ERROR;
goto __exit;
}
- if (at_obj_exec_cmd(device->client, resp, "AT+MIPCALL=1,1") != RT_EOK)
- // if (at_obj_exec_cmd(device->client, resp, "AT+MIPCALL=0") != RT_EOK)
- {
- result = -RT_ERROR;
- goto __exit;
- }
+ // if (at_obj_exec_cmd(device->client, resp, "AT+MIPCALL=1,1") != RT_EOK)
+ // // if (at_obj_exec_cmd(device->client, resp, "AT+MIPCALL=0") != RT_EOK)
+ // {
+ // result = -RT_ERROR;
+ // goto __exit;
+ // }
#if defined(AT_DEBUG)
/* check the GPRS network IP address */
for (i = 0; i < IPADDR_RETRY; i++)
diff --git a/rt-thread/rtconfig.h b/rt-thread/rtconfig.h
index 0fd4645..ebada39 100644
--- a/rt-thread/rtconfig.h
+++ b/rt-thread/rtconfig.h
@@ -134,7 +134,7 @@
#define RT_USING_AT
// #define NETDEV_USING_PING//用来监测和平台之间的延时
#ifdef ENABLE_LOG_ALL
-#define AT_DEBUG
+// #define AT_DEBUG
#endif
#define AT_USING_CLIENT