From 212477b65d086bfe1c8779266edcaec2a67a6416 Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期三, 20 十一月 2024 14:20:46 +0800 Subject: [PATCH] GPS定位手环V1.1版本,修复4G发送长数据耦合短数据问题,有问题UDP第一包发出前4G连接成功没有办法4G设置未解决 --- keil/include/main/main.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/keil/include/main/main.c b/keil/include/main/main.c index 1345438..9a5a7c1 100644 --- a/keil/include/main/main.c +++ b/keil/include/main/main.c @@ -443,7 +443,7 @@ ip2 = (g_com_map[TCP_IP_2]>>12&0xf)*1000+(g_com_map[TCP_IP_2]>>8&0xf)*100+(g_com_map[TCP_IP_2]>>4&0xf)*10+(g_com_map[TCP_IP_2]&0xf); ip3 = (g_com_map[TCP_IP_3]>>12&0xf)*1000+(g_com_map[TCP_IP_3]>>8&0xf)*100+(g_com_map[TCP_IP_3]>>4&0xf)*10+(g_com_map[TCP_IP_3]&0xf); port = g_com_map[TCP_PORT]; - g_com_map[VERSION] = (1<<8)|0; + g_com_map[VERSION] = (1<<8)|1; LOG_INFO(TRACE_MODULE_APP,"设备ID: %x .\r\n",dev_id); LOG_INFO(TRACE_MODULE_APP,"固件版本:4G-GPS定位手环 V%d.%d. \r\n",g_com_map[VERSION]>>8,g_com_map[VERSION]&0xff); LOG_INFO(TRACE_MODULE_APP,"服务器地址: %d.%d.%d.%d:%d.\r\n",ip0,ip1,ip2,ip3,port); @@ -595,6 +595,7 @@ board_acceleration_detection_init(move_handler); // LOG_INFO(TRACE_MODULE_APP, "测试进入app"); board_4GUsart_detection_init(_4gUsart_handler); + while (1) { test4=gpio_pin_get_val(SCL_PIN); -- Gitblit v1.9.3