暂存,测试ok,低压8V
This commit is contained in:
parent
c25c9d3f9c
commit
7e844a79f9
|
@ -5,7 +5,7 @@
|
||||||
"type": "mrs-debugger",
|
"type": "mrs-debugger",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "ble_bjq_ch303rct6_ml307",
|
"name": "ble_bjq_ch303rct6_ml307",
|
||||||
"cwd": "d:\\SXDT\\Project\\CH32\\ble_bjq_ch303rct6_ml307",
|
"cwd": "c:\\Users\\16586\\Desktop\\ble_-tyq_-bjq_-ch32-v303",
|
||||||
"openOCDCfg": {
|
"openOCDCfg": {
|
||||||
"useLocalOpenOCD": true,
|
"useLocalOpenOCD": true,
|
||||||
"executable": "c:/MounRiver/MounRiver_Studio2/resources/app/resources/win32/components/WCH/OpenOCD/OpenOCD/bin/openocd.exe",
|
"executable": "c:/MounRiver/MounRiver_Studio2/resources/app/resources/win32/components/WCH/OpenOCD/OpenOCD/bin/openocd.exe",
|
||||||
|
@ -39,8 +39,8 @@
|
||||||
"additionalCommands": []
|
"additionalCommands": []
|
||||||
},
|
},
|
||||||
"loadedFiles": {
|
"loadedFiles": {
|
||||||
"executableFile": "d:\\SXDT\\Project\\CH32\\ble_bjq_ch303rct6_ml307\\obj\\ble_bjq_ch303rct6_ml307.elf",
|
"executableFile": "c:\\Users\\16586\\Desktop\\ble_-tyq_-bjq_-ch32-v303\\obj\\ble_bjq_ch303rct6_ml307.elf",
|
||||||
"symbolFile": "d:\\SXDT\\Project\\CH32\\ble_bjq_ch303rct6_ml307\\obj\\ble_bjq_ch303rct6_ml307.elf",
|
"symbolFile": "c:\\Users\\16586\\Desktop\\ble_-tyq_-bjq_-ch32-v303\\obj\\ble_bjq_ch303rct6_ml307.elf",
|
||||||
"executableFileOffset": 0,
|
"executableFileOffset": 0,
|
||||||
"symbolFileOffset": 0
|
"symbolFileOffset": 0
|
||||||
},
|
},
|
||||||
|
|
|
@ -30,16 +30,16 @@
|
||||||
|
|
||||||
|
|
||||||
// 正式平台链接
|
// 正式平台链接
|
||||||
// #define SYS_IOT_URL ("8.130.122.162")
|
#define SYS_IOT_URL ("8.130.122.162")
|
||||||
// #define SYS_IOT_PORT ("7153")
|
#define SYS_IOT_PORT ("7153")
|
||||||
|
|
||||||
//测试平台链接1
|
//测试平台链接1
|
||||||
// #define SYS_IOT_URL ("8.130.105.38")
|
// #define SYS_IOT_URL ("8.130.105.38")
|
||||||
// #define SYS_IOT_PORT ("7133")
|
// #define SYS_IOT_PORT ("7133")
|
||||||
|
|
||||||
//测试平台链接2
|
//测试平台链接2
|
||||||
#define SYS_IOT_URL ("8.130.105.38")
|
// #define SYS_IOT_URL ("8.130.105.38")
|
||||||
#define SYS_IOT_PORT ("7163")
|
// #define SYS_IOT_PORT ("7163")
|
||||||
|
|
||||||
#define K (8 * 1000)
|
#define K (8 * 1000)
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @LastEditors : stark1898y 1658608470@qq.com
|
* @LastEditors : stark1898y 1658608470@qq.com
|
||||||
* @LastEditTime : 2025-01-23 16:17:44
|
* @LastEditTime : 2025-01-23 16:17:44
|
||||||
* @FilePath : \JT-DT-YD4N02A_4G_RTT_MRS\bsp\inc\bsp_vin_detection.h
|
* @FilePath : \JT-DT-YD4N02A_4G_RTT_MRS\bsp\inc\bsp_vin_detection.h
|
||||||
* @Description
|
* @Description
|
||||||
*
|
*
|
||||||
* Copyright (c) 2024 by yzy, All Rights Reserved.
|
* Copyright (c) 2024 by yzy, All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -189,11 +189,13 @@ static void urc_tcp_connect_state (struct at_client *client, const char *data, r
|
||||||
|
|
||||||
if (sscanf (data, "+MIPOPEN:%d,%d", &id, &err_code) == 2)
|
if (sscanf (data, "+MIPOPEN:%d,%d", &id, &err_code) == 2)
|
||||||
{
|
{
|
||||||
|
|
||||||
{
|
{
|
||||||
switch (err_code)
|
switch (err_code)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
ml307_conncet_tcp_flag = 1;
|
ml307_conncet_tcp_flag = 1;
|
||||||
|
rt_sem_release (ml307_connect_flag_sem);
|
||||||
break;
|
break;
|
||||||
case 571:
|
case 571:
|
||||||
LOG_D ("PDP激活失败");
|
LOG_D ("PDP激活失败");
|
||||||
|
@ -207,9 +209,13 @@ static void urc_tcp_connect_state (struct at_client *client, const char *data, r
|
||||||
rt_sem_release (ml307_disconnect_sem);
|
rt_sem_release (ml307_disconnect_sem);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
rt_sem_release (ml307_connect_flag_sem); // 用于返回连接的标志量在连接函数中
|
// 用于返回连接的标志量在连接函数中
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
LOG_E ("ml307 tcp connect error, [%d]", __LINE__);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void urc_tcp_disconnect (struct at_client *client, const char *data, rt_size_t size)
|
static void urc_tcp_disconnect (struct at_client *client, const char *data, rt_size_t size)
|
||||||
|
|
Loading…
Reference in New Issue