This commit is contained in:
parent
c4eb446742
commit
5f3a6d263e
|
@ -78,6 +78,7 @@
|
||||||
"stddef.h": "c",
|
"stddef.h": "c",
|
||||||
"netdev_ipaddr.h": "c",
|
"netdev_ipaddr.h": "c",
|
||||||
"stdint.h": "c",
|
"stdint.h": "c",
|
||||||
"stdarg.h": "c"
|
"stdarg.h": "c",
|
||||||
|
"math.h": "c"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: mbw
|
* @Author: mbw
|
||||||
* @Date: 2024-10-23 17:14:16
|
* @Date: 2024-10-23 17:14:16
|
||||||
* @LastEditors: mbw && 1600520629@qq.com
|
* @LastEditors: mbw && 1600520629@qq.com
|
||||||
* @LastEditTime: 2025-06-05 09:58:33
|
* @LastEditTime: 2025-06-06 08:48:12
|
||||||
* @FilePath: \ble_bjq_ch303rct6_ml307\applications\main.c
|
* @FilePath: \ble_bjq_ch303rct6_ml307\applications\main.c
|
||||||
* @Descrt_thread_
|
* @Descrt_thread_
|
||||||
*
|
*
|
||||||
|
@ -302,7 +302,7 @@ int main(void)
|
||||||
LOG_D("工作时长:%d", work_duration);
|
LOG_D("工作时长:%d", work_duration);
|
||||||
// 读取历史记录总数
|
// 读取历史记录总数
|
||||||
g_Calibration_status = Flash_Get_Calibration_State();
|
g_Calibration_status = Flash_Get_Calibration_State();
|
||||||
rt_thread_mdelay(10);
|
rt_thread_mdelay(100);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -952,6 +952,11 @@ static void ml307_init_thread_entry(void *parameter)
|
||||||
result = -RT_ERROR;
|
result = -RT_ERROR;
|
||||||
goto __exit;
|
goto __exit;
|
||||||
}
|
}
|
||||||
|
if (at_obj_exec_cmd(device->client, resp, "AT+CEREG=1") != RT_EOK)
|
||||||
|
{
|
||||||
|
result = -RT_ERROR;
|
||||||
|
goto __exit;
|
||||||
|
}
|
||||||
/* Define PDP Context */
|
/* Define PDP Context */
|
||||||
for (i = 0; i < COMMON_RETRY; i++)
|
for (i = 0; i < COMMON_RETRY; i++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: mbw
|
* @Author: mbw
|
||||||
* @Date: 2024-11-30 15:46:21
|
* @Date: 2024-11-30 15:46:21
|
||||||
* @LastEditors: mbw && 1600520629@qq.com
|
* @LastEditors: mbw && 1600520629@qq.com
|
||||||
* @LastEditTime: 2025-05-29 10:03:26
|
* @LastEditTime: 2025-06-06 08:37:07
|
||||||
* @FilePath: \ble_bjq_ch303rct6_ml307\bsp\src\bsp_ml307.c
|
* @FilePath: \ble_bjq_ch303rct6_ml307\bsp\src\bsp_ml307.c
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
|
@ -2020,6 +2020,11 @@ static void Ml307_Life_Thread_Entry (void *parameter)
|
||||||
result = -RT_ERROR;
|
result = -RT_ERROR;
|
||||||
goto __exit;
|
goto __exit;
|
||||||
}
|
}
|
||||||
|
if (at_obj_exec_cmd(device->client, resp, "AT+CEREG=1") != RT_EOK)
|
||||||
|
{
|
||||||
|
result = -RT_ERROR;
|
||||||
|
goto __exit;
|
||||||
|
}
|
||||||
rt_uint8_t i = 0;
|
rt_uint8_t i = 0;
|
||||||
/* check SIM card */
|
/* check SIM card */
|
||||||
for (i = 0; i < 60; i++)
|
for (i = 0; i < 60; i++)
|
||||||
|
|
Loading…
Reference in New Issue