Design method and device for UWB positioning base station
By combining the CPU, GPU and UWB radio frequency module in the UWB positioning base station, using heterogeneous computing technology, disassembling and delivering the kernel function to the GPU for processing, the problem of CPU overload in the UWB positioning base station is solved, and the efficiency per unit time is improved. Locate the number of cards and system throughput.
Patent Information
- Application Number
- CN202410759146.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-10
AI Technical Summary
When the UWB positioning base station processes a large number of tag signals, the CPU is overloaded, resulting in system delays and positioning failures. It is difficult to effectively increase the number of positioning cards and system throughput per unit time with existing technology.
Design a UWB positioning base station, combining CPU, GPU and UWB radio frequency module, through the connection of SPI bus and PCIE high-speed bus. The CPU is responsible for control and simple signal processing, and the GPU is responsible for filtering and positioning algorithm processing, dismantling the computing tasks and issuing core Functions are transferred to the GPU to realize heterogeneous computing and improve data processing efficiency.
Through the assisted processing of the GPU, the data processing load of the CPU is reduced, the number of UWB tags processed per unit time is increased, and the throughput and accuracy of the positioning system are improved.
Smart Images

Figure CN118632185A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of parallel computing, and specifically provides a UWB positioning base station design method and device. Background Art
[0002] Ultra Wide Band (UWB) technology is a wireless carrier communication technology that uses nanometer-level non-sinusoidal narrow pulses to transmit data. It has the advantages of low transmitted signal power spectrum density, insensitivity to channel fading, low interception capability, and high positioning accuracy. It is widely used in high-precision positioning systems.
[0003] With the popularization of UWB positioning system applications, the number of tags that positioning base stations need to process has increased significantly. Especially in some crowded application scenarios, when the base station responds to a large number of tag signal processing requests, the base station processing load will exceed the upper limit, resulting in system processing delays, positioning failures and other problems. Especially when the base station uses the CPU as the processing core design, after the CPU receives the data from the RF module, it needs to execute the filtering algorithm and positioning algorithm in series. Due to the large amount of algorithm calculation, it takes up a lot of CPU time, resulting in the UWB positioning base station. The number of positioning cards that can be processed per unit time is very limited.
[0004] With the continuous maturity of various hardware acceleration card technologies represented by GPU, heterogeneous computing mode has become one of the important means to solve large-scale computing problems. Heterogeneous computing requires the coordination of various computing devices including CPU (such as GPU, FPGA, DSP, etc.), assigning computing tasks to different computing devices according to their characteristics, giving full play to the different characteristics of various computing devices, and collaboratively solving problems.
[0005] Therefore, how to utilize the parallel computing capabilities of modern computing hardware to increase the number of positioning tags processed by UWB positioning base stations per unit time and improve the throughput of the positioning system has become an issue worthy of study. Summary of the invention
[0006] The present invention aims at solving the above-mentioned deficiencies of the prior art and provides a highly practical UWB positioning base station design method.
[0007] A further technical task of the present invention is to provide a UWB positioning base station design device that is reasonably designed, safe and applicable.
[0008] The technical solution adopted by the present invention to solve its technical problem is:
[0009] A method for designing a UWB positioning base station, wherein the UWB positioning base station is provided with a CPU, a GPU and a UWB radio frequency module;
[0010] The CPU is responsible for the control of the entire UWB positioning base station functional logic, task scheduling and simple signal processing;
[0011] The GPU is responsible for filtering algorithms and positioning algorithm processing of wireless data packets;
[0012] The UWB radio frequency module is responsible for receiving and sending wireless data packets.
[0013] Furthermore, the CPU is connected to the UWB radio frequency module via the SPI bus to realize the reception and transmission of radio frequency data packets, and the GPU is connected to the CPU via the PCIE high-speed bus to realize the data transmission of data packets.
[0014] Furthermore, when the UWB positioning base station is running, the CPU receives the data packet sent by the UWB positioning tag through the UWB radio frequency module according to preset rules. When the CPU receives the data packet sent by the UWB positioning tag, the processing unit of the GPU performs data processing operations. After the GPU completes the processing, it returns the processing result, and the CPU sends the processed data packet to the corresponding positioning tag node through the UWB radio frequency module.
[0015] Furthermore, when the UWB positioning base station is running, the CPU sends the executable file of the kernel function to the corresponding GPU processing node. When the CPU receives the data packet of the UWB positioning tag through the UWB radio frequency module, it sends the data processing task to the corresponding GPU node for execution.
[0016] Furthermore, when the CPU sends the kernel function, it first breaks down the computing tasks of the filtering algorithm and the positioning algorithm into more fine-grained computing tasks, then writes the kernel function of the corresponding computing task and compiles it into a binary file executed on the GPU.
[0017] Furthermore, the specific operations in the UWB positioning base station are as follows:
[0018] S1, device initialization, initialization configuration of UWB radio module and GPU;
[0019] S2: GPU kernel function delivery: Deliver the compiled executable binary file to the GPU processing node through the heterogeneous programming framework;
[0020] S3, TASK1-receive wireless data packets. When the UWB base station is running, the CPU receives the data packets sent by the UWB positioning tag through the UWB radio frequency module according to the preset rules. When the CPU receives the data packets sent by the UWB positioning tag, it writes the data packets into the data queue List-A;
[0021] S4, TASK2-read data queue;
[0022] S5, TASK3-result read back;
[0023] S6, TASK4-send wireless data packets.
[0024] Furthermore, in step S4, a poll is performed to detect whether the data queue List-A is empty. If it is not empty, a data packet is read from the data queue List-A, and after parsing according to preset rules, it is distributed to the computing unit corresponding to the GPU to perform the computing task.
[0025] Furthermore, in step S5, after the GPU completes executing the corresponding computing task, the CPU reads back the task result processed by the GPU through the PCIE bus and writes it into the data queue List-B.
[0026] Further, in step S6, a poll is performed to detect whether the data queue List-B is empty. If it is not empty, the CPU reads the data packet in List-B in the data queue, and sends the data packet through the UWB radio frequency module according to a preset rule.
[0027] A UWB positioning base station design device, comprising: at least one memory and at least one processor;
[0028] The at least one memory is used to store a machine-readable program;
[0029] The at least one processor is used to call the machine-readable program to execute a UWB positioning base station design method.
[0030] Compared with the prior art, the UWB positioning base station design method and device of the present invention have the following outstanding beneficial effects:
[0031] The present invention processes data with the assistance of GPU hardware, releases the CPU from heavy data processing tasks, and reads more UWB data packets by calling the UWB radio frequency module, thereby greatly increasing the number of UWB tags processed per unit time. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0033] Attached Figure 1 It is an architectural diagram of a UWB positioning base station design method;
[0034] Attached Figure 2It is a flow chart of the CPU sending kernel function in the UWB positioning base station design method;
[0035] Attached Figure 3 It is a schematic diagram of a process in a UWB positioning base station design method (I);
[0036] Attached Figure 4 It is a flow chart of a UWB positioning base station design method (II). DETAILED DESCRIPTION
[0037] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0038] A best embodiment is given below:
[0039] like Figure 1 As shown, a UWB positioning base station design method in this embodiment, the UWB positioning base station is provided with a CPU, a GPU and a UWB radio frequency module;
[0040] The CPU is responsible for the control of the entire UWB positioning base station function logic, task scheduling and simple signal processing;
[0041] The GPU is responsible for the filtering algorithm and positioning algorithm processing of wireless data packets;
[0042] The UWB radio frequency module is responsible for receiving and sending wireless data packets.
[0043] The CPU is connected to the UWB RF module through the SPI bus to realize the reception and transmission of RF data packets. The GPU is connected to the CPU through the PCIE high-speed bus to realize the data transmission of data packets, ensuring low latency and high bandwidth.
[0044] When the UWB positioning base station is running, the CPU sends the executable file of the kernel function to the corresponding GPU processing node. When the CPU receives the data packet of the UWB positioning tag through the UWB radio frequency module, it sends the data processing task to the corresponding GPU node for execution.
[0045] like Figure 2 As shown in the figure, when the CPU sends the kernel function, it first breaks down the computing tasks of the filtering algorithm and the positioning algorithm into more fine-grained computing tasks, then writes the kernel functions of the corresponding computing tasks, and compiles them into binary files executed on the GPU.
[0046] In traditional designs, the CPU calls the RF module to send and receive data packets, which takes up very little CPU time. However, the CPU itself is responsible for operations such as filtering algorithms, verification, and positioning algorithm solving of wireless data, which takes up a lot of CPU time. This time is the main time-consuming part of each positioning task.
[0047] The present invention processes data with the assistance of GPU hardware, releases the CPU from heavy data processing tasks, and reads more UWB data packets by calling the UWB radio frequency module, thereby greatly increasing the number of UWB tags processed per unit time.
[0048] like Figure 3 , 4 As shown, the specific operations in the UWB positioning base station are as follows:
[0049] S1, device initialization, initialization configuration of UWB radio module and GPU;
[0050] When the UWB base station is powered on, the initialization configuration of the UWB module and GPU is completed first, including the initialization parameter configuration of the SPI bus, the initialization parameter configuration of the PCIE bus, the communication parameter configuration of the UWB chip, and other operations.
[0051] S2, GPU kernel function delivery, through heterogeneous programming frameworks such as (CUDA, OPENCL, etc.) to deliver compiled executable binary files to GPU processing nodes;
[0052] S3, TASK1-receive wireless data packets;
[0053] When the UWB base station is running, the CPU receives the data packet sent by the UWB positioning tag through the UWB radio frequency module according to the preset rules. When the CPU receives the data packet sent by the UWB positioning tag, it writes the data packet into the data queue List-A;
[0054] S4, TASK2-read data queue;
[0055] The round-robin training detects whether the data queue List-A is empty. If it is not empty, the data packet is read from the data queue List-A, parsed according to the preset rules, and distributed to the corresponding computing unit of the GPU to perform the computing task.
[0056] S5, TASK3-result read back;
[0057] After the GPU completes the corresponding computing task, the CPU reads back the task results processed by the GPU through the PCIE bus and writes them into the data queue List-B.
[0058] S6, TASK4-send wireless data packets;
[0059] Polling detects whether the data queue List-B is empty. If it is not empty, the CPU reads the data packet in List-B in the data queue and sends the data packet through the UWB radio module according to the preset rules.
[0060] The above process includes four processing tasks. These four tasks have no strict dependencies on each other, but they maintain two data queues List-A and List-B at the same time.
[0061] TASK1 and TASK3 are triggered to execute through interrupts, and write data to the data queues List-A and List-B respectively. TASK2 and TASK4 are executed by CPU round-robin scheduling, and read data from the data queues List-A and List-B respectively and execute.
[0062] Based on the above method, a UWB positioning base station design device in this embodiment includes: at least one memory and at least one processor;
[0063] The at least one memory is used to store a machine-readable program;
[0064] The at least one processor is used to call the machine-readable program to execute a UWB positioning base station design method.
[0065] The above-mentioned specific implementations are only specific cases of the present invention. The patent protection scope of the present invention includes but is not limited to the above-mentioned specific implementations. Any technical solutions that comply with the claims of the present invention and any appropriate changes or substitutions made by ordinary technicians in the relevant technical field shall fall within the patent protection scope of the present invention.
[0066] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A UWB positioning base station design method, It is characterized in that The UWB positioning base station is provided with a CPU, a GPU and a UWB radio frequency module; The CPU is responsible for the control of the entire UWB positioning base station functional logic, task scheduling and simple signal processing; The GPU is responsible for filtering algorithms and positioning algorithm processing of wireless data packets; The UWB radio frequency module is responsible for receiving and sending wireless data packets.
2. A UWB positioning base station design method according to claim 1, It is characterized in that The CPU is connected to the UWB radio frequency module via the SPI bus to realize the reception and transmission of radio frequency data packets, and the GPU is connected to the CPU via the PCIE high-speed bus to realize the data transmission of data packets.
3. A UWB positioning base station design method according to claim 2, It is characterized in that When the UWB positioning base station is running, the CPU receives the data packet sent by the UWB positioning tag through the UWB radio frequency module according to the preset rules. When the CPU receives the data packet sent by the UWB positioning tag, the processing unit of the GPU performs the data processing operation. After the GPU completes the processing, it returns the processing result, and the CPU sends the processed data packet to the corresponding positioning tag node through the UWB radio frequency module.
4. A UWB positioning base station design method according to claim 3, It is characterized in that When the UWB positioning base station is running, the CPU sends the executable file of the kernel function to the corresponding GPU processing node. When the CPU receives the data packet of the UWB positioning tag through the UWB radio frequency module, it sends the data processing task to the corresponding GPU node for execution.
5. A UWB positioning base station design method according to claim 4, It is characterized in that When the CPU sends the kernel function, it first breaks down the computing tasks of the filtering algorithm and the positioning algorithm into more fine-grained computing tasks, then writes the kernel function of the corresponding computing task and compiles it into a binary file executed on the GPU.
6. A UWB positioning base station design method according to claim 5, It is characterized in that The specific operations in the UWB positioning base station are as follows: S1, device initialization, initialization configuration of UWB radio module and GPU; S2: GPU kernel function delivery: Deliver the compiled executable binary file to the GPU processing node through the heterogeneous programming framework; S3, TASK1-receive wireless data packets. When the UWB base station is running, the CPU receives the data packets sent by the UWB positioning tag through the UWB radio frequency module according to the preset rules. When the CPU receives the data packets sent by the UWB positioning tag, it writes the data packets into the data queue List-A; S4, TASK2-read data queue; S5, TASK3-result read back; S6, TASK4-send wireless data packets.
7. A UWB positioning base station design method according to claim 6, It is characterized in that In step S4, a poll is performed to detect whether the data queue List-A is empty. If it is not empty, a data packet is read from the data queue List-A, and after parsing according to preset rules, it is distributed to the computing unit corresponding to the GPU to perform the computing task.
8. A UWB positioning base station design method according to claim 7, It is characterized in that In step S5, after the GPU completes executing the corresponding computing task, the CPU reads back the task result processed by the GPU through the PCIE bus and writes it into the data queue List-B.
9. A UWB positioning base station design method according to claim 7, It is characterized in that In step S6, a poll is performed to detect whether the data queue List-B is empty. If it is not empty, the CPU reads the data packet in List-B in the data queue and sends the data packet through the UWB radio module according to a preset rule.
10. A UWB positioning base station design device, It is characterized in that include: at least one memory and at least one processor; The at least one memory is used to store a machine-readable program; The at least one processor is configured to call the machine-readable program to execute the method according to any one of claims 1 to 9.
