This commit is contained in:
parent
90021b063e
commit
c4eb446742
|
@ -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-06-05 14:38:32
|
* @LastEditTime: 2025-06-05 15:28:05
|
||||||
* @FilePath: \ble_bjq_ch303rct6_ml307\bsp\src\at_device_ml307.c
|
* @FilePath: \ble_bjq_ch303rct6_ml307\bsp\src\at_device_ml307.c
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
|
@ -401,25 +401,25 @@ static int ml307_check_link_status(struct at_device *device)
|
||||||
return -RT_ERROR;
|
return -RT_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (at_obj_exec_cmd(device->client, resp, "AT+MIPCALL?") < 0)
|
// if (at_obj_exec_cmd(device->client, resp, "AT+MIPCALL?") < 0)
|
||||||
{
|
// {
|
||||||
result = -RT_ERROR;
|
// result = -RT_ERROR;
|
||||||
goto __exit;
|
// goto __exit;
|
||||||
}
|
// }
|
||||||
//// 查询拨号状态
|
// //// 查询拨号状态
|
||||||
if (at_resp_parse_line_args_by_kw(resp, "+MIPCALL:", "+MIPCALL: %d,%*d,%*s", &link_stat) > 0)
|
// if (at_resp_parse_line_args_by_kw(resp, "+MIPCALL:", "+MIPCALL: %d,%*d,%*s", &link_stat) > 0)
|
||||||
{
|
// {
|
||||||
if (link_stat == 1)
|
// if (link_stat == 1)
|
||||||
{
|
// {
|
||||||
result = RT_EOK;
|
// result = RT_EOK;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
LOG_E("AT+MIPCALL error.");
|
// LOG_E("AT+MIPCALL error.");
|
||||||
result = -RT_ERROR;
|
// result = -RT_ERROR;
|
||||||
goto __exit;
|
// goto __exit;
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (at_obj_exec_cmd(device->client, resp, "AT+CGACT?") < 0)
|
if (at_obj_exec_cmd(device->client, resp, "AT+CGACT?") < 0)
|
||||||
{
|
{
|
||||||
|
@ -547,7 +547,7 @@ static void ml307_check_link_status_entry(void *parameter)
|
||||||
if (link_status < 0)
|
if (link_status < 0)
|
||||||
{
|
{
|
||||||
rt_thread_mdelay(ML307_LINK_DELAY_TIME);
|
rt_thread_mdelay(ML307_LINK_DELAY_TIME);
|
||||||
at_exec_cmd(resp, "AT+MIPCALL=1,1");
|
// at_exec_cmd(resp, "AT+MIPCALL=1,1");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
rt_thread_delay(ML307_LINK_DELAY_TIME);
|
rt_thread_delay(ML307_LINK_DELAY_TIME);
|
||||||
|
|
Loading…
Reference in New Issue