通过初步测试阶段,已经可以显示当前坐标,修改了蓝牙基站数量的逻辑。
已修改10个文件
15573 ■■■■ 文件已修改
keil/JLinkLog.txt 补丁 | 查看 | 原始文档 | blame | 历史
keil/Listings/uwb_simple_example.map 5690 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
keil/Objects/uwb_simple_example.build_log.htm 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
keil/Objects/uwb_simple_example.hex 9754 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
keil/Objects/uwb_simple_example.htm 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
keil/Objects/uwb_simple_example_MK8000 Release.dep 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
keil/include/drivers/serial_at_cmd_app.c 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
keil/include/main/main.c 62 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
keil/lora_3029.c 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
keil/uwb_simple_example.uvoptx 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
keil/JLinkLog.txt
Binary files differ
keil/Listings/uwb_simple_example.map
ÎļþÌ«´ó
keil/Objects/uwb_simple_example.build_log.htm
@@ -27,10 +27,9 @@
<h2>Output:</h2>
*** Using Compiler 'V6.14', folder: 'D:\keil\ARM\ARMCLANG\Bin'
Build Project 'uwb_simple_example' - Target 'MK8000 Release'
compiling lora_3029.c...
linking...
D:\zhangbo\2024\Code\ChinaUWB\ChinaUWBProject-biaoqian-RX - BT-zuixinceshi\keil\include\devices\MK800X\Source\ARM\MK800X_ac6_copy.sct(25): warning: L6314W: No section matches pattern *(.XIP_SECTION).
Program Size: Code=74028 RO-data=9452 RW-data=1628 ZI-data=28056
Program Size: Code=74060 RO-data=9452 RW-data=1628 ZI-data=28064
Finished: 0 information, 1 warning and 0 error messages.
FromELF: creating hex file...
After Build - User command #1: fromelf.exe --bincombined -o "Output\uwb_simple_example.bin" "D:\zhangbo\2024\Code\ChinaUWB\ChinaUWBProject-biaoqian-RX - BT-zuixinceshi\keil\Objects\uwb_simple_example.axf"
@@ -48,7 +47,7 @@
  D:\keil\pack\MKSEMI\MK800X_DFP\1.0.3\Device\Include
<h2>Collection of Component Files used:</h2>
Build Time Elapsed:  00:00:03
Build Time Elapsed:  00:00:02
</pre>
</body>
</html>
keil/Objects/uwb_simple_example.hex
ÎļþÌ«´ó
keil/Objects/uwb_simple_example.htm
@@ -3,7 +3,7 @@
<title>Static Call Graph - [.\Objects\uwb_simple_example.axf]</title></head>
<body><HR>
<H1>Static Call Graph for image .\Objects\uwb_simple_example.axf</H1><HR>
<BR><P>#&#060CALLGRAPH&#062# ARM Linker, 6140002: Last Updated: Mon Feb 24 16:24:38 2025
<BR><P>#&#060CALLGRAPH&#062# ARM Linker, 6140002: Last Updated: Tue Feb 25 15:56:35 2025
<BR><P>
<H3>Maximum Stack Usage =       2076 bytes + Unknown(Cycles, Untraceable Function Pointers)</H3><H3>
Call chain for Maximum Stack Depth:</H3>
@@ -972,7 +972,7 @@
<BR><BR>[Called By]<UL><LI><a href="#[99]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;LoraReportPoll
</UL>
<P><STRONG><a name="[99]"></a>LoraReportPoll</STRONG> (Thumb, 812 bytes, Stack size 136 bytes, lora_3029.o(.text.LoraReportPoll))
<P><STRONG><a name="[99]"></a>LoraReportPoll</STRONG> (Thumb, 832 bytes, Stack size 136 bytes, lora_3029.o(.text.LoraReportPoll))
<BR><BR>[Stack]<UL><LI>Max Depth = 528<LI>Call Chain = LoraReportPoll &rArr; LoraHeartBeartPoll &rArr; LORA_3029_SINGLE_SEND &rArr; rf_single_tx_data &rArr; rf_get_tx_time &rArr; rf_get_preamble &rArr; rf_read_spec_page_regs &rArr; rf_switch_page &rArr; rf_write_reg &rArr; rf_read_reg
</UL>
<BR>[Calls]<UL><LI><a href="#[98]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;Checksum_u16
@@ -1364,8 +1364,8 @@
</UL>
<BR>[Address Reference Count : 1]<UL><LI> startup_mk800x.o(RESET)
</UL>
<P><STRONG><a name="[31]"></a>UsartParseDataHandler</STRONG> (Thumb, 268 bytes, Stack size 1080 bytes, serial_at_cmd_app.o(.text.UsartParseDataHandler))
<BR><BR>[Stack]<UL><LI>Max Depth = 1080<LI>Call Chain = UsartParseDataHandler
<P><STRONG><a name="[31]"></a>UsartParseDataHandler</STRONG> (Thumb, 280 bytes, Stack size 1088 bytes, serial_at_cmd_app.o(.text.UsartParseDataHandler))
<BR><BR>[Stack]<UL><LI>Max Depth = 1088<LI>Call Chain = UsartParseDataHandler
</UL>
<BR>[Calls]<UL><LI><a href="#[42]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_memclr
<LI><a href="#[9f]">&gt;&gt;</a>&nbsp;&nbsp;&nbsp;__aeabi_memcpy
keil/Objects/uwb_simple_example_MK8000 Release.dep
@@ -664,7 +664,7 @@
I (include\drivers\mk_dma.h)(0x672473BD)
I (include\drivers\mk_misc.h)(0x67206CDC)
I (include\drivers\mk_clock.h)(0x67206CDC)
F (.\include\drivers\serial_at_cmd_app.c)(0x67B59A1C)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0 -c -fno-rtti -funsigned-char -D__MICROLIB -gdwarf-3 -O0 -ffunction-sections -w -I ./include/drivers -I ./include/board -I ../keil -I .. -I ./include/board -I ./include/CMSIS/Include -I ./include/components/algo/inc -I ./include/components/crc -I ./include/components/libc -I ./include/components/wsf/include -I ./include/components/wsf/include/platform -I ./include/devices/MK800X/Include -I ./include/drivers -I ./include/components/hido/Include -I ./include/components/internet/inc -I ./include/components/hal -I ../keil -I ./include/src -I ./include -Wno-declaration-after-statement -Wno-double-promotion -Wno-extra-semi-stmt -Wno-gnu-zero-variadic-macro-arguments -Wno-padded -Wno-unused-parameter -I./RTE/_MK8000_Release -ID:/keil/pack/MKSEMI/MK800X_DFP/1.0.3/Device/Include -ID:/keil/ARM/CMSIS/Include -D__UVISION_VERSION="530" -D_RTE_ -DUWB_EN -DSTD_LIBC -o ./objects/serial_at_cmd_app.o -MD)
F (.\include\drivers\serial_at_cmd_app.c)(0x67BD6138)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0 -c -fno-rtti -funsigned-char -D__MICROLIB -gdwarf-3 -O0 -ffunction-sections -w -I ./include/drivers -I ./include/board -I ../keil -I .. -I ./include/board -I ./include/CMSIS/Include -I ./include/components/algo/inc -I ./include/components/crc -I ./include/components/libc -I ./include/components/wsf/include -I ./include/components/wsf/include/platform -I ./include/devices/MK800X/Include -I ./include/drivers -I ./include/components/hido/Include -I ./include/components/internet/inc -I ./include/components/hal -I ../keil -I ./include/src -I ./include -Wno-declaration-after-statement -Wno-double-promotion -Wno-extra-semi-stmt -Wno-gnu-zero-variadic-macro-arguments -Wno-padded -Wno-unused-parameter -I./RTE/_MK8000_Release -ID:/keil/pack/MKSEMI/MK800X_DFP/1.0.3/Device/Include -ID:/keil/ARM/CMSIS/Include -D__UVISION_VERSION="530" -D_RTE_ -DUWB_EN -DSTD_LIBC -o ./objects/serial_at_cmd_app.o -MD)
I (include\drivers\serial_at_cmd_app.h)(0x672050F0)
I (D:\keil\ARM\ARMCLANG\include\stdint.h)(0x5DDFFD72)
I (include\drivers\global_param.h)(0x672B0902)
@@ -748,7 +748,7 @@
I (include\drivers\mk_gpio.h)(0x67206CDC)
I (include\drivers\Usart.h)(0x67B4382E)
I (..\keil\lora_3029.h)(0x67BBDB00)
F (.\include\main\main.c)(0x67B59611)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0 -c -fno-rtti -funsigned-char -D__MICROLIB -gdwarf-3 -O0 -ffunction-sections -w -I ./include/board -I ../keil -I .. -I ./include/board -I ./include/CMSIS/Include -I ./include/components/algo/inc -I ./include/components/crc -I ./include/components/libc -I ./include/components/wsf/include -I ./include/components/wsf/include/platform -I ./include/devices/MK800X/Include -I ./include/drivers -I ./include/components/hido/Include -I ./include/components/internet/inc -I ./include/components/hal -I ../keil -I ./include/src -I ./include -Wno-declaration-after-statement -Wno-double-promotion -Wno-extra-semi-stmt -Wno-gnu-zero-variadic-macro-arguments -Wno-padded -Wno-unused-parameter -I./RTE/_MK8000_Release -ID:/keil/pack/MKSEMI/MK800X_DFP/1.0.3/Device/Include -ID:/keil/ARM/CMSIS/Include -D__UVISION_VERSION="530" -D_RTE_ -DUWB_EN -DSTD_LIBC -o ./objects/main.o -MD)
F (.\include\main\main.c)(0x67BD24F9)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0 -c -fno-rtti -funsigned-char -D__MICROLIB -gdwarf-3 -O0 -ffunction-sections -w -I ./include/board -I ../keil -I .. -I ./include/board -I ./include/CMSIS/Include -I ./include/components/algo/inc -I ./include/components/crc -I ./include/components/libc -I ./include/components/wsf/include -I ./include/components/wsf/include/platform -I ./include/devices/MK800X/Include -I ./include/drivers -I ./include/components/hido/Include -I ./include/components/internet/inc -I ./include/components/hal -I ../keil -I ./include/src -I ./include -Wno-declaration-after-statement -Wno-double-promotion -Wno-extra-semi-stmt -Wno-gnu-zero-variadic-macro-arguments -Wno-padded -Wno-unused-parameter -I./RTE/_MK8000_Release -ID:/keil/pack/MKSEMI/MK800X_DFP/1.0.3/Device/Include -ID:/keil/ARM/CMSIS/Include -D__UVISION_VERSION="530" -D_RTE_ -DUWB_EN -DSTD_LIBC -o ./objects/main.o -MD)
I (include\drivers\mk_trace.h)(0x67206CDC)
I (include\drivers\mk_common.h)(0x67206CDC)
I (D:\keil\ARM\ARMCLANG\include\stddef.h)(0x5DDFFD72)
@@ -900,7 +900,7 @@
I (include\drivers\mk_gpio.h)(0x67206CDC)
I (include\drivers\mk_io.h)(0x67206CDC)
I (..\keil\lora_3029.h)(0x67BBDB00)
F (.\lora_3029.c)(0x67BC2CC3)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0 -c -fno-rtti -funsigned-char -D__MICROLIB -gdwarf-3 -O0 -ffunction-sections -w -I ./include/board -I ../keil -I .. -I ./include/board -I ./include/CMSIS/Include -I ./include/components/algo/inc -I ./include/components/crc -I ./include/components/libc -I ./include/components/wsf/include -I ./include/components/wsf/include/platform -I ./include/devices/MK800X/Include -I ./include/drivers -I ./include/components/hido/Include -I ./include/components/internet/inc -I ./include/components/hal -I ../keil -I ./include/src -I ./include -Wno-declaration-after-statement -Wno-double-promotion -Wno-extra-semi-stmt -Wno-gnu-zero-variadic-macro-arguments -Wno-padded -Wno-unused-parameter -I./RTE/_MK8000_Release -ID:/keil/pack/MKSEMI/MK800X_DFP/1.0.3/Device/Include -ID:/keil/ARM/CMSIS/Include -D__UVISION_VERSION="530" -D_RTE_ -DUWB_EN -DSTD_LIBC -o ./objects/lora_3029.o -MD)
F (.\lora_3029.c)(0x67BD6362)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0 -c -fno-rtti -funsigned-char -D__MICROLIB -gdwarf-3 -O0 -ffunction-sections -w -I ./include/board -I ../keil -I .. -I ./include/board -I ./include/CMSIS/Include -I ./include/components/algo/inc -I ./include/components/crc -I ./include/components/libc -I ./include/components/wsf/include -I ./include/components/wsf/include/platform -I ./include/devices/MK800X/Include -I ./include/drivers -I ./include/components/hido/Include -I ./include/components/internet/inc -I ./include/components/hal -I ../keil -I ./include/src -I ./include -Wno-declaration-after-statement -Wno-double-promotion -Wno-extra-semi-stmt -Wno-gnu-zero-variadic-macro-arguments -Wno-padded -Wno-unused-parameter -I./RTE/_MK8000_Release -ID:/keil/pack/MKSEMI/MK800X_DFP/1.0.3/Device/Include -ID:/keil/ARM/CMSIS/Include -D__UVISION_VERSION="530" -D_RTE_ -DUWB_EN -DSTD_LIBC -o ./objects/lora_3029.o -MD)
I (..\keil\lora_3029.h)(0x67BBDB00)
I (include\drivers\mk_io.h)(0x67206CDC)
I (include\drivers\mk_common.h)(0x67206CDC)
keil/include/drivers/serial_at_cmd_app.c
@@ -155,7 +155,7 @@
        // åŒ…头 0x55 0xAA 0x41
        if (buff[n] == 0x55 && buff[n+1] == 0xAA && buff[n+2] == 0x41)
        {
                        report_ancnum_bt=buff[n+4];
            length = buff[n+3];
            if (n + 6 + report_ancnum_bt * 6 + length > 1024) {
                continue; // å¦‚果数据越界,跳过该包
@@ -163,7 +163,7 @@
            
            // å°†æ•°æ®å¤åˆ¶åˆ° DMA ç¼“冲区
            memcpy(DMA_RXBuf_BT, &buff[n+4], length);
            report_ancnum_bt=buff[n+4];
            // ä¸ºäº†é¿å…å¤šæ¬¡é‡å¤è§£æžåŒä¸€ä¸ªæ•°æ®åŒ…,可以在这里添加跳跃
            n += 6 + report_ancnum_bt * 6 + length - 1; // è·³è¿‡å½“前数据包
        }
keil/include/main/main.c
@@ -354,44 +354,9 @@
 lora_tx_flag++;
}
//void uart0_receive_callback()
//{
//  uint8_t buff[buff_lenth]={0};
//    uint8_t lenth=0;
//
//    uart_receive(UART_ID0,Forward_BT_buff,buff_lenth,uart0_receive_callback);
//    memcpy(buff,Forward_BT_buff,1024);
//    for(int n=0;n<1024;n++)
//    {
//        if(buff[n]==0x55)
//        {
//            if(buff[n+1]==0xAA)
//            {
//                if(buff[n+2]==0x41)
//                {
//                    lenth=buff[n+4];
//                    memcpy(DMA_RXBuf_BT,&buff[n+4],lenth);
//                }
//            }
//
//        }
//    }
//    memset(buff, 0, buff_lenth);
//    memset(DMA_RXBuf_BT, 0, buff_lenth);
//    if(buff[0]==0x55||buff[1]==0xAA||buff[2]==0x41)
//    {
//      uint8_t lenth=0;
//        lenth=((buff[4]*2)+(buff[4]*2)+1);
//        memcpy(DMA_RXBuf_BT,&buff[4],lenth);
//    }
//}
//uint8_t base_station_count = 0;
//uint8_t last_ids[MAX_BASE_STATIONS] = {0};
void uart0_receive_callback()
{
        uart_receive(UART_ID0,m_EUART_DMA_RXBuf,EUART_RX_BUF_SIZE,uart0_receive_callback);
    uart_receive(UART_ID0,m_EUART_DMA_RXBuf,EUART_RX_BUF_SIZE,uart0_receive_callback);
}
    
@@ -444,7 +409,7 @@
    port = g_com_map[TCP_PORT];
    g_com_map[VERSION] = (1<<8)|11;
    LOG_INFO(TRACE_MODULE_APP,"设备ID: %x .\r\n",dev_id);
    LOG_INFO(TRACE_MODULE_APP,"固件版本:UWB-4G手环 V%d.%d. \r\n",g_com_map[VERSION]>>8,g_com_map[VERSION]&0xff);
    LOG_INFO(TRACE_MODULE_APP,"固件版本:BGK-mk+蓝牙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);
}
@@ -454,6 +419,7 @@
{    
 UART0_CheckReceive();
}
int bind_check(void)
{
    if(g_com_map[BIND_DEV_ID]!=0x00)
@@ -503,14 +469,10 @@
#define TEST_SPI_INTERUPT_MODE 1
#define TEST_SPI_DMA_MODE 2
#define TEST_SPI_MODE TEST_SPI_POLL_MODE
//#define ADC_PIN                              IO_PIN_0
//#define UART0_TX                                      IO_PIN_5
//#define UART0_RX                                                         IO_PIN_6
//#define UART1_TX                                                       IO_PIN_1
//#define UART1_RX
void Board_gpio_init()
{
    // SPI0 MOSI/MISO/CLK/CS
    //SPI0/MOSI/MISO/CLK/CS
    io_pin_mux_set(LORA_CS, IO_FUNC0);
    gpio_pin_set_dir(LORA_CS , GPIO_DIR_OUT, 0);
    io_pull_set(LORA_CS, IO_HIGH_Z, IO_PULL_UP_NONE);
@@ -524,16 +486,14 @@
//      //ADC
//      io_pin_mux_set(ADC_PIN, IO_FUNC1);
//       io_pull_set(ADC_PIN, IO_HIGH_Z, IO_PULL_UP_NONE);
    //串口0
        io_pin_mux_set(UART0_RX, IO_FUNC4);
    io_pin_mux_set(UART0_TX, IO_FUNC4);
    
      board_debug_console_open(TRACE_PORT_UART0);
//    uart_receive(UART_ID0,Forward_BT_buff,buff_lenth,uart0_receive_callback);
      uart_receive(UART_ID0,m_EUART_DMA_RXBuf,EUART_RX_BUF_SIZE,uart0_receive_callback);//开启dma
//      uart_receive(UART_ID0,&uart0_buffer,1024,uart0_receive_callback);
//      uart_receive(UART_ID0,DMA_RXBuf_BT,buff_lenth,uart0_receive_callback);
      //串口1
        io_pin_mux_set(UART1_RX, IO_FUNC4);
    io_pin_mux_set(UART1_TX, IO_FUNC4);
@@ -578,7 +538,7 @@
uint8_t flag_4guart_needinit=0;
#define TX_LEN  10
#define RX_LEN  200
uint8_t tx_test_buf[TX_LEN] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
extern uint8_t RX_Buffer[RX_LEN];
extern uint16_t BufferSize;
static uint16_t source_id;
@@ -618,17 +578,13 @@
uint8_t tx_buf[5]={0,1,0,1,1};
uint32_t sleep_time_count=0;
uint32_t uwb_ceju_count=0;
//ceshi
//uint8_t no_rx_flag=0;
//xtal_38m4_off_time(sleep_time_count);
/********************************************************************************************************/
static void Lora_irq_handler(enum IO_PIN_T pin)
{
        
            uint16_t checksum1;    
            rf_irq_process();
//        gpio_pin_set(IO_PIN_5);//测试
            no_rx_flag=0;
        tx_flag=rf_get_transmit_flag();
        recv_flag=rf_get_recv_flag();
keil/lora_3029.c
@@ -165,6 +165,8 @@
extern uint8_t DMA_RXBuf_BT[200];
extern uint8_t report_ancnum;
extern uint8_t report_ancnum_bt;
uint32_t BT_SEND_flag=0;
uint8_t BT_NUM=0;
void LoraReportPoll(void)
{
    // delay_ms(100);
@@ -260,36 +262,35 @@
    memcpy(&lora_sendbuffer[ANCID_IDX],report_ancid,report_ancnum*2);
    memcpy(&lora_sendbuffer[ANCID_IDX+report_ancnum*2],report_ancdist,report_ancnum*2);
        uint8_t LORA_RETRANSNUSSION_BT=0;
        if(0<report_ancnum_bt&&report_ancnum_bt<11)
        BT_NUM=DMA_RXBuf_BT[0];
        if(0<BT_NUM&&BT_NUM<11)
        {
      lora_sendbuffer[MSG_TYPE_IDX] = LORA_MSGTYPE_TAGMSGTOWG_BT;
    LORA_RETRANSNUSSION_BT=ANCID_IDX+report_ancnum*4;
        //LORA_RETRANSNUSSION_BT   report_ancnum_bt
        lora_sendbuffer[LORA_RETRANSNUSSION_BT] = 0x2D;         //蓝牙上传标识符
    memcpy(&lora_sendbuffer[LORA_RETRANSNUSSION_BT+1],&DMA_RXBuf_BT[0],report_ancnum_bt*2+1);                                     //基站ID
    memcpy(&lora_sendbuffer[LORA_RETRANSNUSSION_BT+report_ancnum_bt*2+2],&DMA_RXBuf_BT[1+report_ancnum_bt*2],report_ancnum_bt*2);//基站距离
        lora_sendbuffer[MSG_LENGTH] = 4*report_ancnum+4*report_ancnum_bt+ANCID_IDX+4;
    memcpy(&lora_sendbuffer[LORA_RETRANSNUSSION_BT+1],&DMA_RXBuf_BT[0],BT_NUM*2+1);                                     //基站ID
    memcpy(&lora_sendbuffer[LORA_RETRANSNUSSION_BT+BT_NUM*2+2],&DMA_RXBuf_BT[1+BT_NUM*2],BT_NUM*2);//基站距离
        lora_sendbuffer[MSG_LENGTH] = 4*report_ancnum+4*BT_NUM+ANCID_IDX+2;
        }
        if(lora_sendbuffer[LORA_RETRANSNUSSION_BT]==0x2D)
        {
        checksum = Checksum_u16(lora_sendbuffer,4*report_ancnum_bt+4*report_ancnum+ANCID_IDX+2);
        memcpy(&lora_sendbuffer[ANCID_IDX+report_ancnum_bt*4+report_ancnum*4+2],&checksum,2);
        checksum = Checksum_u16(lora_sendbuffer,4*BT_NUM+4*report_ancnum+ANCID_IDX+2);
        memcpy(&lora_sendbuffer[ANCID_IDX+BT_NUM*4+report_ancnum*4+2],&checksum,2);
        BT_SEND_flag++;
        }
        else
        {
        checksum = Checksum_u16(lora_sendbuffer,4*report_ancnum+ANCID_IDX);
        memcpy(&lora_sendbuffer[ANCID_IDX+report_ancnum*4],&checksum,2);
        }
        //rf_enter_continous_tx();
//    LORA_3029_SEND(lora_sendbuffer,ANCID_IDX+report_ancnum*4+2);
    LORA_3029_SINGLE_SEND(lora_sendbuffer,ANCID_IDX+report_ancnum*4+report_ancnum_bt*4+4,0);
    LORA_3029_SINGLE_SEND(lora_sendbuffer,ANCID_IDX+report_ancnum*4+BT_NUM*4+4,0);
        memset(DMA_RXBuf_BT, 0,200);
        memset(&lora_sendbuffer[ANCID_IDX],0,200);
//            rf_single_tx_data(lora_sendbuffer,ANCID_IDX+report_ancnum*4+2,2);
    //rf_enter_continous_rx();
    //LED_TB_ON;
   // bat_percent=Get_Battary();
    
    for(uint8_t i=0;i<3;i++)
    recnum[i] = 0;
keil/uwb_simple_example.uvoptx
@@ -120,7 +120,7 @@
        <SetRegEntry>
          <Number>0</Number>
          <Key>DLGUARM</Key>
          <Name>d</Name>
          <Name></Name>
        </SetRegEntry>
        <SetRegEntry>
          <Number>0</Number>
@@ -467,6 +467,21 @@
          <WinNumber>2</WinNumber>
          <ItemText>report_ancnum_bt</ItemText>
        </Ww>
        <Ww>
          <count>22</count>
          <WinNumber>2</WinNumber>
          <ItemText>BT_SEND_flag</ItemText>
        </Ww>
        <Ww>
          <count>23</count>
          <WinNumber>2</WinNumber>
          <ItemText>report_ancnum_bt</ItemText>
        </Ww>
        <Ww>
          <count>24</count>
          <WinNumber>2</WinNumber>
          <ItemText>DMA_RXBuf_BT</ItemText>
        </Ww>
      </WatchWindow2>
      <MemoryWindow1>
        <Mm>