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