修改心跳为60s,重连为30s,

This commit is contained in:
小马_666 2025-06-05 16:09:25 +08:00
parent c4eb446742
commit f722e6469b
4 changed files with 10 additions and 11 deletions

View File

@ -646,4 +646,4 @@
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
</cproject>
</cproject>

View File

@ -59,4 +59,4 @@
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
</launchConfiguration>
</launchConfiguration>

View File

@ -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++)

View File

@ -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