Antenna setting adjustment method and device, storage medium and electronic device

CN120342800APending Publication Date: 2025-07-18HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510568860.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-30
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

[0004]本申请实施例提供了一种天线设置的调整方法、装置、存储介质及电子装置,以至少解决相关技术中,Wi-Fi和线性调频波雷达大多是通过不同硬件进行功能的实现,无法通过单一通信电路实现不同模式切换的问题

Benefits of technology

[0016]In the embodiment of the present application, when it is determined to use the first communication unit to send target data, the second communication unit is controlled to send a target frame signal to the communication area covered by the communication circuit. The second communication unit and the first communication unit are in the same communication circuit. The target frame signal is used to instruct other communication units to be silent and carry a silent period. When the transmission duration of the target frame signal is greater than the silent duration corresponding to the silent period, a first radio frequency instruction is sent to the communication circuit. The first radio frequency instruction is used to set the first antenna corresponding to the first communication unit as a radar chirp antenna and set the second antenna corresponding to the second communication unit as a radar function antenna. When the execution duration of the first radio frequency instruction is greater than a preset detection duration, a second radio frequency instruction is sent to the communication circuit. The second radio frequency instruction is used to set the first antenna as a Wi-Fi data antenna and set the second antenna to the off state. By adopting the above technical solution, the problem that Wi-Fi and chirp radars mostly achieve functions through different hardware and cannot achieve different mode switches through a single communication circuit is solved. Furthermore, by dynamically adjusting the antenna roles and sending silent frames, flexible switching between the radar mode and the Wi-Fi mode is realized, and a non-interfering and efficient switching mechanism for Wi-Fi data transmission and radar detection is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120342800A_ABST
    Figure CN120342800A_ABST
Patent Text Reader

Abstract

The invention discloses an antenna setting adjustment method and device, a storage medium and an electronic device, and relates to the technical field of smart home. A second communication unit is controlled to send a target frame signal to a communication area allowed to be covered by the communication circuit, the second communication unit and the first communication unit are located in the same communication circuit, and the target frame signal is used for indicating other communication units to be silent and carry a silent period; under the condition that the sending duration of the target frame signal is greater than the silence duration corresponding to the silence period, sending a first radio frequency instruction to a communication circuit; under the condition that the execution duration of the first radio frequency instruction is larger than the preset detection duration, a second radio frequency instruction is sent to the communication circuit, and the second radio frequency instruction is used for setting the first antenna to be a Wi-Fi data antenna and setting the second antenna to be in a closed state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of smart homes. Specifically, it relates to a method, device, storage medium, and electronic device for adjusting antenna settings. Background Technique

[0002] In the fields of smart homes and the Internet of Things, wireless communication and radar sensing technologies, as core components, are responsible for data transmission and environmental perception functions respectively. However, traditional designs tend to regard Wi-Fi modules and radar sensors as independent hardware units. Although this separate architecture can meet basic communication and detection requirements, it is accompanied by significant cost and space utilization efficiency problems. Specifically, independent Wi-Fi modules and LFM radar sensors each require dedicated radio frequency circuits, antennas, and signal processing circuits. This redundant design not only drives up the hardware cost but also complicates the device structure, occupies additional physical space, posing challenges to cost-sensitive and space-constrained smart home and Internet of Things devices. Although separate solutions are commonly adopted in the market, in actual deployment, the limitations of this design are becoming increasingly prominent, manifested as an increase in device cost, a decrease in deployment flexibility and portability, especially in application scenarios that pursue miniaturization and high performance. Moreover, the independent operation of Wi-Fi and radar may cause interference with each other. The electromagnetic radiation of Wi-Fi will reduce the detection accuracy of the radar, and the signal of the radar may interfere with the data transmission of Wi-Fi, resulting in an increase in the bit error rate and a decrease in the transmission rate, thus affecting the overall performance and user experience of the device.

[0003] Therefore, in view of the problem in the related technology that Wi-Fi and linear frequency modulation wave radars mostly achieve functions through different hardware and cannot achieve different mode switching through a single communication circuit, no effective solution has been proposed yet. Summary of the Invention

[0004] Embodiments of this application provide a method, device, storage medium, and electronic device for adjusting antenna settings to at least solve the problem in the related technology that Wi-Fi and linear frequency modulation wave radars mostly achieve functions through different hardware and cannot achieve different mode switching through a single communication circuit.

[0005] According to an embodiment of the present application, an adjustment method for antenna settings is provided, including: when it is determined that the target data is to be sent using the first communication unit, controlling the second communication unit to send a target frame signal to the communication area covered by the communication circuit, where the second communication unit and the first communication unit are in the same communication circuit, and the target frame signal is used to instruct other communication units to be silent and carry a silent period; when the sending duration of the target frame signal is greater than the silent duration corresponding to the silent period, sending a first radio frequency instruction to the communication circuit, where the first radio frequency instruction is used to set the first antenna corresponding to the first communication unit as a radar chirp antenna, and set the second antenna corresponding to the second communication unit as a radar function antenna; when the execution duration of the first radio frequency instruction is greater than a preset detection duration, sending a second radio frequency instruction to the communication circuit, where the second radio frequency instruction is used to set the first antenna as a Wi-Fi data antenna, and set the second antenna to the off state.

[0006] In an exemplary embodiment, after sending the first radio frequency instruction to the communication circuit when the sending duration of the target frame signal is greater than the silent duration corresponding to the silent period, the above method further includes: obtaining a first execution result of the first radio frequency instruction; when the first execution result is successful, sending a generated chirp signal through the first antenna, and performing coherent processing using the second antenna; when the first execution result is failed, sending a first prompt message to the management object corresponding to the communication circuit, where the first prompt message is used to indicate that there is an abnormal setting in the current communication circuit and it is impossible to enter the radar mode.

[0007] In an exemplary embodiment, after sending the second radio frequency instruction to the communication circuit when the execution duration of the first radio frequency instruction is greater than a preset detection duration, the above method further includes: obtaining a second execution result of the second radio frequency instruction; when the second execution result is successful, sending the generated target Wi-Fi data through the first antenna; when the second execution result is failed, sending a second prompt message to the management object corresponding to the communication circuit, where the second prompt message is used to indicate that there is an abnormal setting in the current communication circuit and it is impossible to enter the WIFI mode.

[0008] In an exemplary embodiment, after sending the second radio frequency instruction to the communication circuit when the execution duration of the first radio frequency instruction is greater than a preset detection duration, the above method further includes: obtaining a first value corresponding to the sending duration, and a second value corresponding to the execution duration; determining a multiplexing strategy for the communication circuit based on the first value, the second value, and a third value corresponding to the silent period, and recording the data volume sent by the multiplexing strategy.

[0009] In an exemplary embodiment, when it is determined to use the first communication unit to send target data, before controlling the second communication unit to send a target frame signal to the communication area covered by the communication circuit, the above method further includes: detecting the communication status information of other communication units in the communication area; waiting for a sending duration and then sending a first radio frequency instruction to the communication circuit when the communication status information indicates that all other communication units are in a non-communication state; determining to use the second communication unit in the communication circuit to send the target frame signal when the communication status information indicates that at least one of the other communication units is in a communication state.

[0010] In an exemplary embodiment, when it is determined to use the first communication unit to send target data, before controlling the second communication unit to send a target frame signal to the communication area covered by the communication circuit, the above method further includes: evaluating the first data volume sent by the communication circuit using the historical multiplexing strategy; when the first data volume is less than the second data volume corresponding to the target data, performing segmentation processing on the target data to obtain multiple signal data packets supported by the communication circuit; when the first data volume is greater than or equal to the second data volume corresponding to the target data, not performing segmentation processing on the target data and packing the target data to generate a unique signal data packet.

[0011] In an exemplary embodiment, when the execution duration of the first radio frequency instruction is greater than the preset detection duration, before sending a second radio frequency instruction to the communication circuit, the above method further includes: determining the resource allocation parameters of the second communication unit; adjusting the parameter settings in the preset instruction template based on the resource allocation parameters to obtain the second radio frequency instruction, where the parameter settings include at least one of the following: the power level of the first antenna, the frequency band selection of the first antenna when the execution duration of the first radio frequency instruction is greater than the preset detection duration.

[0012] According to another embodiment of the embodiments of the present application, an adjustment device for antenna settings is further provided, including: a first sending module, configured to control a second communication unit to send a target frame signal to a communication area covered by a communication circuit when it is determined to use a first communication unit to send target data, where the second communication unit and the first communication unit are in the same communication circuit, and the target frame signal is used to instruct other communication units to be silent and carry a silent period; a second sending module, configured to send a first radio frequency instruction to the communication circuit when the sending duration of the target frame signal is greater than the silent duration corresponding to the silent period, where the first radio frequency instruction is used to set a first antenna corresponding to the first communication unit as a radar linear frequency modulation wave antenna, and set a second antenna corresponding to the second communication unit as a radar function antenna; a third sending module, configured to send a second radio frequency instruction to the communication circuit when the execution duration of the first radio frequency instruction is greater than a preset detection duration, where the second radio frequency instruction is used to set the first antenna as a Wi-Fi data antenna, and set the second antenna to a closed state.

[0013] According to another aspect of the embodiments of the present application, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program is configured to execute the above antenna setting adjustment method when running.

[0014] According to another aspect of the embodiments of the present application, an electronic device is further provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the above processor executes the above antenna setting adjustment method through the computer program.

[0015] According to another embodiment of the present application, a computer program product is further provided, including a computer program, and the steps in the embodiments of the above antenna setting adjustment method are implemented when the computer program is executed by a processor.

[0016] In the embodiment of the present application, when it is determined to use the first communication unit to send target data, the second communication unit is controlled to send a target frame signal to the communication area covered by the communication circuit. The second communication unit and the first communication unit are in the same communication circuit. The target frame signal is used to instruct other communication units to be silent and carry a silent period. When the transmission duration of the target frame signal is greater than the silent duration corresponding to the silent period, a first radio frequency instruction is sent to the communication circuit. The first radio frequency instruction is used to set the first antenna corresponding to the first communication unit as a radar chirp antenna and set the second antenna corresponding to the second communication unit as a radar function antenna. When the execution duration of the first radio frequency instruction is greater than a preset detection duration, a second radio frequency instruction is sent to the communication circuit. The second radio frequency instruction is used to set the first antenna as a Wi-Fi data antenna and set the second antenna to the off state. By adopting the above technical solution, the problem that Wi-Fi and chirp radars mostly achieve functions through different hardware and cannot achieve different mode switches through a single communication circuit is solved. Furthermore, by dynamically adjusting the antenna roles and sending silent frames, flexible switching between the radar mode and the Wi-Fi mode is realized, and a non-interfering and efficient switching mechanism for Wi-Fi data transmission and radar detection is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present application and used together with the specification to explain the principles of the present application.

[0018] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0019] Figure 1 is a schematic diagram of the hardware environment of an antenna setting adjustment method according to an embodiment of the present application;

[0020] Figure 2 is a flowchart of an antenna setting adjustment method according to an embodiment of the present application;

[0021] Figure 3 is a schematic diagram of the design framework of a Wi-Fi radar two-in-one according to an embodiment of the present application;

[0022] Figure 4 is a flowchart of a design method of a Wi-Fi radar two-in-one according to an embodiment of the present application;

[0023] Figure 5is a structural block diagram of an antenna setting adjustment device according to an embodiment of the present application;

[0024] Figure 6 is a block diagram of a computer system structure of an electronic device according to an embodiment of the present application;

[0025] Figure 7 An electronic device is provided for implementing an antenna setting adjustment method according to an embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] According to one aspect of an embodiment of the present application, a method for adjusting antenna settings is provided. The method for adjusting antenna settings is widely used in smart home, smart home, smart home device ecology, smart residential (Intelligence House) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned antenna setting adjustment method can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1As shown, the server 104 is connected to the terminal device 102 via a network and can be used to provide services (such as application services, etc.) for the terminal or the client installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.

[0029] The above network can include but is not limited to at least one of the following: wired network, wireless network. The above wired network can include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network. The above wireless network can include but is not limited to at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth. The terminal device 102 is not limited to a PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projection device, smart TV, smart drying rack, smart curtain, smart audio and video, smart socket, smart speaker, smart sound box, smart fresh air device, smart kitchen and bathroom equipment, smart bathroom equipment, smart floor cleaning robot, smart window cleaning robot, smart mopping robot, smart air purification device, smart steam oven, smart microwave oven, smart kitchen water heater, smart purifier, smart water dispenser, smart door lock, etc.

[0030] In this embodiment, an antenna setting adjustment method is provided, which can be applied to a computer terminal or an Internet of Things cloud. Figure 2 It is a flowchart of the antenna setting adjustment method according to the embodiment of the present application. The process includes the following steps:

[0031] Step S202, when it is determined to send target data using the first communication unit, control the second communication unit to send a target frame signal to the communication area allowed to be covered by the communication circuit, where the second communication unit and the first communication unit are in the same communication circuit, and the target frame signal is used to instruct other communication units to be silent and carry a silent period;

[0032] Optionally, both the first communication unit and the second communication unit in the above embodiment are radar circuits that can be adjusted in real time to have a linear frequency modulation wave function or a WIFI function. When it is a radar circuit supporting the linear frequency modulation wave function, its main function is to sense and detect the communication environment by transmitting and receiving frequency modulation signals; when it is a radar circuit supporting the WIFI function, its main function is to perform wireless communication, realize data exchange between the device and the wireless network, and then support Internet connection requirements by sending and receiving network signals.

[0033] Optionally, the target frame signal in the above embodiments is used to instruct other communication units to be silent and specify a silent period, which refers to the information of silencing other communication units except the first communication unit and the second communication unit and the silent period, and the silent period is greater than the data transmission duration required for the first communication unit to transmit target data.

[0034] Step S204, when the transmission duration of the target frame signal is greater than the silent duration corresponding to the silent period, send a first radio frequency instruction to the communication circuit, where the first radio frequency instruction is used to set the first antenna corresponding to the first communication unit as a radar chirp antenna, and set the second antenna corresponding to the second communication unit as a radar function antenna;

[0035] Step S206, when the execution duration of the first radio frequency instruction is greater than a preset detection duration, send a second radio frequency instruction to the communication circuit, where the second radio frequency instruction is used to set the first antenna as a Wi-Fi data antenna, and set the second antenna to an off state.

[0036] Through the above steps, when it is determined to use the first communication unit to transmit target data, control the second communication unit to send a target frame signal to the communication area covered by the communication circuit. The second communication unit and the first communication unit are in the same communication circuit. The target frame signal is used to instruct other communication units to be silent and carry a silent period; when the transmission duration of the target frame signal is greater than the silent duration corresponding to the silent period, send a first radio frequency instruction to the communication circuit, where the first radio frequency instruction is used to set the first antenna corresponding to the first communication unit as a radar chirp antenna, and set the second antenna corresponding to the second communication unit as a radar function antenna; when the execution duration of the first radio frequency instruction is greater than a preset detection duration, send a second radio frequency instruction to the communication circuit, where the second radio frequency instruction is used to set the first antenna as a Wi-Fi data antenna, and set the second antenna to an off state. By adopting the above technical solution, the problem that Wi-Fi and chirp radar mostly implement functions through different hardware and cannot achieve different mode switching through a single communication circuit is solved. Furthermore, by dynamically adjusting the antenna roles and sending silent frames, flexible switching between the radar mode and the Wi-Fi mode is realized, and a non-interfering and efficient switching mechanism for Wi-Fi data transmission and radar detection is achieved.

[0037] In an exemplary embodiment, when the transmission duration of the target frame signal is greater than the silent duration corresponding to the silent period, after sending a first radio frequency instruction to the communication circuit, the method further includes: obtaining a first execution result of the first radio frequency instruction; when the first execution result is successful, sending a generated chirp signal through a first antenna and performing coherent processing using a second antenna; when the first execution result is a failure, sending a first prompt message to a management object corresponding to the device including the communication circuit, where the first prompt message is used to indicate that there is an abnormal setting in the current communication circuit and it is impossible to enter the radar mode.

[0038] Optionally, the baseband control module sends a first radio frequency instruction to indicate that the first antenna is set as the transmitting antenna in the radar mode, and at the same time, the second antenna is set as the receiving antenna in the radar mode. When it is determined that the first radio frequency instruction is successfully executed, at this time, the device including the first communication unit and the second communication unit can send a specific chirp signal converted from the data to be transmitted through the first antenna. At the same time, it is also possible to receive the reflected signal during the transmission process using the second antenna, and perform coherent processing on the transmitted signal and the reflected signal to determine the accuracy of the transmitted data. When it is determined that the execution of the first radio frequency instruction fails, at this time, the switching of the radar mode cannot be realized. In order to enable the management object of the device to know this situation in time, a first prompt message is sent to the management object corresponding to the device including the communication circuit at this time, indicating that there may be an abnormal setting or a hardware failure in the current communication circuit in the device.

[0039] In an exemplary embodiment, when the execution duration of the first radio frequency instruction is greater than a preset detection duration, after sending a second radio frequency instruction to the communication circuit, the method further includes: obtaining a second execution result of the second radio frequency instruction; when the second execution result is successful, sending generated target Wi-Fi data through the first antenna; when the second execution result is a failure, sending a second prompt message to a management object corresponding to the device including the communication circuit, where the second prompt message is used to indicate that there is an abnormal setting in the current communication circuit and it is impossible to enter the WIFI mode.

[0040] Optionally, when a device including a first communication unit and a second communication unit needs to perform Wi-Fi data transmission, it can choose to send a second radio frequency instruction for entering the WIFI mode to the first communication unit and the second communication unit through the baseband control module, thereby switching the device including the first communication unit and the second communication unit to the WIFI mode. After entering the WIFI mode, any one of the first antenna or the second antenna can be set to send the target WIFI data converted from the data to be transmitted, and the other antennas that have not transmitted the target WIFI data are set to the off state. For example, after setting the first antenna as the Wi-Fi data transmitting antenna, the second antenna is set to the off state to ensure the overall power consumption and communication stability of the communication circuit in the WIFI mode. Further, when the execution of the second radio frequency instruction fails, it means that the current device cannot perform data transmission through the WIFI mode. At this time, a second prompt message is immediately sent to the management object corresponding to the device including the communication circuit, indicating that the current communication circuit cannot enter the WIFI mode.

[0041] In summary, through the intelligent control and feedback mechanism of the above embodiments, combined with dynamic resource management, the high availability and functional integrity of the device can be maintained in a complex environment, the data transmission efficiency and user experience of the device in different modes are optimized, and the operation and maintenance costs are reduced at the same time.

[0042] In an exemplary embodiment, when the execution duration of the first radio frequency instruction is greater than the preset detection duration, after sending the second radio frequency instruction to the communication circuit, the method further includes: obtaining a first value corresponding to the sending duration, a second value corresponding to the execution duration; determining a multiplexing strategy of the communication circuit based on the first value, the second value, and a third value corresponding to the silent period, and recording the data volume sent by the multiplexing strategy.

[0043] Optionally, when a device including the communication circuit needs to perform Wi-Fi data transmission at a certain time point, first, a first value corresponding to the sending duration (the duration value of the expected overall sending of the Wi-Fi data packet), a second value corresponding to the execution duration (the duration value of the communication circuit receiving the first radio frequency instruction to switch to the radar mode), and a third value corresponding to the silent period (the duration data corresponding to the preset silent period in the device) are obtained. After determining the first value, the second value, and the third value, the device formulates a multiplexing strategy for the communication circuit based on these parameters. For example, when the first value is less than the second value and the first value is less than or equal to the third value, it is determined that the Wi-Fi data packet is sent during the gap of the radar mode switch, which will neither affect the normal operation of the radar nor ensure the timeliness of Wi-Fi communication. At the same time, the device will record the data volume sent under this strategy to evaluate the effectiveness of the strategy and further optimize it.

[0044] Optionally, if the first value is less than the second value, but the first value is greater than the second value, it means that the overall Wi-Fi data transmission cannot be completed within the silent period. If it is necessary to maintain the data transmission in the WIFI mode, it is necessary to increase the preset silent period in the device or fragment the WIFI data and select to send the fragment data during different WIFI mode working times; to ensure the normal operation of the WIFI mode and radar mode in the device, and record the data volume of different types of data transmitted in different modes after adjustment, so as to provide data support for adjusting the time points for switching between the radar mode and WIFI mode in the device. Through the real-time monitoring of parameters and the intelligent adjustment of strategies in the above embodiments, the communication circuit resources can be effectively managed, the cooperation between the Wi-Fi mode and the radar mode can be optimized, and the functional performance of the device can be improved.

[0045] In an exemplary embodiment, before controlling the second communication unit to send a target frame signal to the outside when it is determined to use the first communication unit to send target data, the method further includes: determining a communication area allowed to be covered by the communication circuit; detecting communication status information of other communication units in the communication area; when the communication status information indicates that all other communication units are in a non-communication state, sending a first radio frequency instruction to the communication circuit after a waiting transmission duration; when the communication status information indicates that at least one of the other communication units has a communication status, determining to send a target frame signal through the second communication unit.

[0046] Optionally, first determine the communication area allowed to be covered by the communication circuit, and then detect the communication status information of other communication units (such as other Wi-Fi routers, Bluetooth devices, etc.) in this area. If it is detected that all other communication units are in a non-communication state (i.e., silent state), the communication circuit is switched to the corresponding data transmission mode according to the corresponding radio frequency instruction. The above data transmission modes at least include: radar mode, WIFI mode. If it is detected that at least one communication unit in the communication area is in a communication state, that is, it means that the first communication unit is performing data transmission with this communication unit, the baseband module in the device will not send a radio frequency instruction to the communication circuit. In this way, interference with ongoing communication activities can be avoided, ensuring the continuity of data transmission and the accuracy of radar detection.

[0047] In an exemplary embodiment, when it is determined to send target data using the first communication unit, before controlling the second communication unit to send a target frame signal to the outside, the above method further includes: evaluating the amount of the first data sent by the communication circuit using the historical multiplexing strategy; when the amount of the first data is less than the amount of the second data corresponding to the target data, determining to perform segmentation processing on the target data to obtain a plurality of signal data packets that support the sending by the communication circuit; when the amount of the first data is greater than or equal to the amount of the second data corresponding to the target data, determining not to perform segmentation processing on the target data, and packing the target data to generate a unique signal data packet.

[0048] Optionally, when evaluating the amount of the first data sent by the communication circuit using the historical multiplexing strategy, if it is evaluated that the amount of the first data (the average data amount in historical transmissions) is less than the amount of the second data corresponding to the target data (i.e., the data amount required for actual transmission), it will be determined to perform segmentation processing on the target data and divide it into a plurality of signal data packets. In this way, each data packet can be independently sent through the antenna, and even in the case of other device communications in the home network, it can ensure the smooth transmission of data and avoid communication congestion or delay caused by excessive data amounts. On the contrary, if the amount of the first data is greater than or equal to the amount of the second data, it is determined not to perform segmentation processing on the target data, but directly pack the target data to generate a unique signal data packet for transmission. This strategy can reduce the complexity of data processing, speed up the transmission speed, ensure the timeliness and integrity of data, and especially provide a smoother transmission experience when the network condition is stable. The above embodiment optimizes the data processing flow and communication efficiency through intelligent analysis and dynamic strategy adjustment, and improves the real-time performance and stability of data transmission.

[0049] In an exemplary embodiment, when the execution duration of the first radio frequency instruction is greater than the preset detection duration, before sending a second radio frequency instruction to the communication circuit, the above method further includes: determining the resource allocation parameters of the second communication unit; adjusting the parameter settings in the instruction template corresponding to the first radio frequency instruction based on the resource allocation parameters to obtain a second radio frequency instruction, where the parameter settings include at least one of the following: the power level of the first antenna, the frequency band selection of the first antenna.

[0050] Optionally, a communication circuit is configured with a first communication unit and a second communication unit, and each unit has its specific resource requirements in different operating modes. When the resource allocation parameters corresponding to different communication units in the communication circuit are determined, for example, in the radar mode, a large-scale scan is required, and the requirements for power and frequency band are relatively high. Then, the power level and frequency band selection in the instruction template are relatively large. When switching from the radar mode to the Wi-Fi mode, the required power level and frequency band decrease. At this time, adjustment can be made based on the first radio frequency instruction. For example, in the radar mode, a less interfering frequency band is usually selected and the power level is increased to meet the communication requirements of the radar mode in a high-interference environment. When switching to the Wi-Fi mode, the power level and frequency band selection are adjusted to the conventional values based on the frequency band and power level in the radar mode.

[0051] To better understand the process of the above method for adjusting the antenna settings, the implementation method flow of the above adjustment of the antenna settings will be further described below in conjunction with optional embodiments, but it is not used to limit the technical solutions of the embodiments of the present application.

[0052] In the related art, the independent operations of Wi-Fi and radar may cause mutual interference. The electromagnetic radiation of Wi-Fi will reduce the detection accuracy of the radar, and the signals of the radar may interfere with the data transmission of Wi-Fi, resulting in an increase in the error rate and a decrease in the transmission rate, thereby affecting the overall performance and user experience of the device.

[0053] To solve the above problems, an alternative embodiment of the present application proposes a design method for Wi-Fi radar integration, aiming to solve the problem that Wi-Fi and linear frequency modulation wave radar mostly implement functions through different hardware and cannot switch between different modes through a single communication circuit. Specifically, when radar data transmission is required, the first communication unit in the WIFI mode first sends an RTS / CTS frame. The silent period time T1 included in this frame ensures the silence of peripheral devices during the radar working time T2, effectively avoiding interference. Subsequently, the baseband control module sends a first radio frequency (RadioFrequency, RF for short) instruction to different RF units (equivalent to the communication unit in the above embodiment) in the communication circuit, immediately converting antenna 1 into the transmitting antenna of the radar signal, and at the same time converting antenna 2 into the receiving antenna of the radar signal. During this period, the FFT (Fast Fourier Transform) circuit multiplexing technology is used to convert the radar signal from the time domain to the frequency domain and analyze the frequency components in the signal, thereby achieving high-precision environmental perception. After the radar mode ends, the second radio frequency instruction is sent again through the baseband, quickly restoring the function of antenna 1 to Wi-Fi data transmission, and at the same time turning antenna 2 into the off state, thus entering the WIFI mode of device communication. Then, through the above switching between the radar mode and the WIFI mode, the communication timeliness and efficiency of the devices with the specific communication circuit are ensured.

[0054] Optionally, Figure 3 is a schematic diagram of the design framework for Wi-Fi radar integration according to an embodiment of the present application. The above design framework includes: a data processing module 32, a function switching control module 34, and an antenna signal transmission module 36.

[0055] Optionally, the data processing module 32 encodes the original data into a binary format. The converted binary data enters the baseband processing unit. The baseband is the core of the communication system, mainly responsible for signal modulation, encoding, amplification, and final signal encapsulation. Specifically, first, through modulation technology, digital data is converted into an analog signal suitable for wireless transmission; then, encoding technology is applied to improve the transmission efficiency and security of the data, enabling the data to maintain integrity in a complex environment; then, signal amplification ensures the balance between the transmission distance and signal strength, ensuring unobstructed communication even in long-distance or signal attenuation environments; finally, the signal encapsulation step packs the processed data to conform to a specific wireless communication protocol, preparing for the efficient transmission of data on the wireless channel and ensuring the accuracy and efficiency of data transmission.

[0056] Optionally, a function switching control module 34. Communication between the baseband and the radio frequency (RF) module is carried out through a baseband control link. This link is used to transmit instructions and data, enabling the baseband to control the operating state of the RF module. Wi-Fi + chirp radar represents the integration of the RF module and the antenna. When the system requires the radar detection function, the baseband sends a switching instruction through the control link, and the functions of antenna 1 and antenna 2 change accordingly.

[0057] Optionally, a wireless signal transmission module 36. Antenna 1 and antenna 2 are the transmitting and receiving ends of wireless signals. In the Wi-Fi data transmission mode, antenna 1 is responsible for transmitting Wi-Fi signals, and antenna 2 is used for receiving or is turned off. This module demonstrates the transmission path of wireless signals. Data signals are sent into the air through the antenna or received from the air to complete the wireless transmission of information. It further illustrates the hardware circuit multiplexing strategy. By multiplexing the hardware resources of the antenna and the RF module at different times, the low-cost and high-efficiency integration of radar and Wi-Fi functions is achieved.

[0058] Optionally, Figure 4 is a flowchart of a design method for a Wi-Fi radar two-in-one according to an embodiment of the present application, specifically including the following steps:

[0059] Step 1: Wi-Fi silent preparation before radar data transmission. When the chirp radar module needs to transmit data for environmental detection, the Wi-Fi module first sends an RTS / CTS frame. This frame signal carries a silent period time T1, which is designed to exceed the radar working duration T2 to ensure that Wi-Fi devices around the radar do not cause communication interference during radar operation.

[0060] Step 2: Completion of the Wi-Fi data transmission cycle. During the radar preparation stage, the Wi-Fi module continues to execute its data transmission cycle, which is represented by time t, until the Wi-Fi data transmission is completely finished.

[0061] Step 3: Switching the function of the baseband instruction to the RF module. After the Wi-Fi data transmission is completed, the baseband control module sends an instruction to the radio frequency (RF) module through the baseband control link. At this time, antenna 1 is designated as the transmitting antenna for the radar chirp, and antenna 2 is used for receiving signals for the radar function.

[0062] Step 4: Transmission and reception of radar detection signals. After the antenna function is successfully switched, the baseband of the RF module starts to generate chirp signals and sends them to the outside through antenna 1. Antenna 2 then performs coherent processing on the received signals. This process utilizes radar signal processing technology, and the details of the specific waveform and frequency changes are implemented by each manufacturer based on their technical standards. The baseband also multiplexes the FFT circuit to improve signal processing efficiency.

[0063] Step 5: Wi-Fi function restoration after radar detection. When the radar working time T2 arrives, that is, when a single radar detection is completed, the baseband sends a command to the RF module again, quickly switches the function of antenna 1 back to Wi-Fi data transmission, and sets antenna 2 to the off state at the same time, stopping the reception and processing of radar signals.

[0064] Step 6: Wi-Fi data transmission and radar function cycle replacement. The system now resumes the normal transmission of Wi-Fi data. Once the Wi-Fi data transmission is completed, the system will switch back to the radar detection state again. Through periodic function replacement, seamless connection between Wi-Fi communication and radar detection in the same hardware architecture is achieved. By reusing analog and digital circuits, the hardware cost is significantly reduced and the resource utilization efficiency is optimized.

[0065] It should be noted that the design and transmission of RTS / CTS frames need to ensure that the silent period time T1 of the RTS / CTS frame is greater than the radar working time T2, which is very important for avoiding interference of Wi-Fi signals during radar operation. The setting of the silent period should not only meet the needs of radar detection, but also consider the possible impact on Wi-Fi communication efficiency to find the best balance point. At the same time, the frame format design needs to ensure that peripheral devices can correctly identify and respond and enter the silent state. During radar detection, the use of FFT circuit multiplexing technology needs to consider the accuracy and speed of signal processing. The performance of the FFT algorithm directly affects the resolution and real-time performance of radar detection. Therefore, the FFT circuit design needs to be optimized to ensure efficient switching between data transmission and radar signal processing while maintaining high precision of radar signal processing. Even within the silent period, isolation between Wi-Fi signals and radar signals is necessary. The design needs to consider the frequency, power of the signals, as well as the layout and directivity of the antennas to reduce the mutual influence between the two signals and improve the overall performance of the system.

[0066] Through the above solution, by sending RTS / CTS frames, a silent environment during radar operation is created, ensuring the clarity of radar signals and the accuracy of detection; the cooperation between the baseband control module and the radio frequency unit realizes the rapid switching of antenna functions, enabling the device to efficiently switch between Wi-Fi communication and radar sensing, meeting the requirements of different scenarios; by using FFT circuit multiplexing technology, the radar signal processing process is optimized, not only improving the radar's environmental perception ability, but also reducing the hardware cost, achieving dual optimization of function integration and cost control. This design framework not only improves the function integration degree and resource utilization efficiency of the device, but also enhances the user experience, providing strong support for the technological development in the fields of Internet of Things, smart home, and intelligent security.

[0067] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions for causing a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present application.

[0068] Figure 5 is a structural block diagram of an adjustment device for antenna settings according to an embodiment of the present application; as Figure 5 shown, it includes:

[0069] A first sending module, configured to control a second communication unit to send a target frame signal to a communication area covered by a communication circuit when it is determined to use a first communication unit to send target data, where the second communication unit and the first communication unit are in the same communication circuit, and the target frame signal is used to instruct other communication units to be silent and carry a silent period;

[0070] A second sending module, configured to send a first radio frequency instruction to the communication circuit when the sending duration of the target frame signal is greater than the silent duration corresponding to the silent period, where the first radio frequency instruction is used to set a first antenna corresponding to the first communication unit as a radar linear frequency modulation wave antenna, and set a second antenna corresponding to the second communication unit as a radar function antenna;

[0071] A third sending module, configured to send a second radio frequency instruction to the communication circuit when the execution duration of the first radio frequency instruction is greater than a preset detection duration, where the second radio frequency instruction is used to set the first antenna as a Wi-Fi data antenna, and set the second antenna to a closed state.

[0072] Through the above device, when it is determined to use the first communication unit to send target data, the second communication unit is controlled to send a target frame signal to the outside, where the second communication unit and the first communication unit are on the same communication circuit, and the target frame signal is used to instruct other communication units to be silent and specify a silent period; when the transmission duration of the target frame signal is greater than the silent duration corresponding to the silent period, a first radio frequency instruction is sent to the communication circuit, where the first radio frequency instruction is used to set the first antenna corresponding to the first communication unit as a radar chirp antenna, and set the second antenna corresponding to the second communication unit as a radar function antenna; when the execution duration of the first radio frequency instruction is greater than a preset detection duration, a second radio frequency instruction is sent to the communication circuit, where the second radio frequency instruction is used to update the setting of the first antenna to a Wi-Fi data antenna, and update the second antenna to a closed state. By adopting the above technical solution, the problem that Wi-Fi and chirp radars mostly implement functions through different hardware and cannot achieve different mode switching through a single communication circuit is solved. Furthermore, by dynamically adjusting the antenna roles and sending silent frames, flexible switching between the radar mode and the Wi-Fi mode is realized, and a non-interfering and efficient switching mechanism for Wi-Fi data transmission and radar detection is achieved.

[0073] In an exemplary embodiment, the above device further includes: a first acquisition module, configured to, after sending a first radio frequency instruction to the communication circuit when the transmission duration of the target frame signal is greater than the silent duration corresponding to the silent period, acquire a first execution result of the first radio frequency instruction; when the first execution result is successful, send a generated chirp signal through the first antenna and perform coherent processing using the second antenna; when the first execution result is failed, send a first prompt message to the management object corresponding to the communication circuit, where the first prompt message is used to indicate that there is an abnormal setting in the current communication circuit and it is impossible to enter the radar mode.

[0074] In an exemplary embodiment, the above device further includes: a second acquisition module, configured to, after sending a second radio frequency instruction to the communication circuit when the execution duration of the first radio frequency instruction is greater than a preset detection duration, acquire a second execution result of the second radio frequency instruction; when the second execution result is successful, send generated target Wi-Fi data through the first antenna; when the second execution result is failed, send a second prompt message to the management object corresponding to the communication circuit, where the second prompt message is used to indicate that there is an abnormal setting in the current communication circuit and it is impossible to enter the WIFI mode.

[0075] In an exemplary embodiment, the above-mentioned device further includes: a third determination module, configured to, after the execution duration of the first radio frequency instruction is greater than a preset detection duration and after sending a second radio frequency instruction to the communication circuit, obtain a first value corresponding to the sending duration and a second value corresponding to the execution duration; determine a multiplexing strategy for the communication circuit based on the first value, the second value, and a third value corresponding to the silent period, and record the data volume sent by the multiplexing strategy.

[0076] In an exemplary embodiment, the above-mentioned device further includes: a determination module, configured to, when determining to use the first communication unit to send target data, before controlling the second communication unit to send a target frame signal to the communication area allowed to be covered by the communication circuit, detect the communication status information of other communication units in the communication area; when the communication status information indicates that all other communication units are in a non-communication state, wait for the sending duration and then send a first radio frequency instruction to the communication circuit; when the communication status information indicates that at least one of the other communication units is in a communication state, determine to use the second communication unit in the communication circuit to send the target frame signal.

[0077] In an exemplary embodiment, the above-mentioned device further includes: an evaluation module, configured to, when determining to use the first communication unit to send target data, before controlling the second communication unit to send a target frame signal to the communication area allowed to be covered by the communication circuit, evaluate the first data volume sent by the communication circuit using the historical multiplexing strategy; when the first data volume is less than the second data volume corresponding to the target data, perform segmentation processing on the target data to obtain multiple signal data packets that support the communication circuit to send; when the first data volume is greater than or equal to the second data volume corresponding to the target data, do not perform segmentation processing on the target data, and package the target data to generate a unique signal data packet.

[0078] In an exemplary embodiment, the above-mentioned device further includes: an adjustment module, configured to, before sending a second radio frequency instruction to the communication circuit when the execution duration of the first radio frequency instruction is greater than a preset detection duration, determine the resource allocation parameter of the second communication unit; adjust the parameter settings in the preset instruction template based on the resource allocation parameter to obtain a second radio frequency instruction, where the parameter settings include at least one of the following: the power level of the first antenna, the frequency band selection of the first antenna when the execution duration of the first radio frequency instruction is greater than a preset detection duration.

[0079] In the embodiments of the present application, the term "module" or "unit" refers to a computer program with a predetermined function or a part of a computer program, which works together with other related parts to achieve a predetermined goal, and can be fully or partially implemented by using software, hardware (such as a processing circuit or a memory), or a combination thereof. Similarly, one processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be a part of an overall module or unit that includes the function of the module or unit.

[0080] It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the present application.

[0081] The embodiments of the present application also provide a storage medium, which includes a stored program. When the above program runs, it executes the method of any one of the above.

[0082] Optionally, in this embodiment, the above storage medium can be set to store program code for performing the following steps:

[0083] S1, when it is determined to use the first communication unit to send target data, control the second communication unit to send a target frame signal to the communication area covered by the communication circuit. The second communication unit and the first communication unit are in the same communication circuit, and the target frame signal is used to instruct other communication units to be silent and carry a silent period;

[0084] S2, when the transmission duration of the target frame signal is greater than the silent duration corresponding to the silent period, send a first radio frequency instruction to the communication circuit. The first radio frequency instruction is used to set the first antenna corresponding to the first communication unit as a radar chirp antenna, and set the second antenna corresponding to the second communication unit as a radar function antenna;

[0085] S3, when the execution duration of the first radio frequency instruction is greater than a preset detection duration, send a second radio frequency instruction to the communication circuit. The second radio frequency instruction is used to set the first antenna as a Wi-Fi data antenna, and set the second antenna to a closed state.

[0086] An embodiment of the present application further provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0087] Optionally, the above electronic device may further include a transmission device and an input / output device. Among them, the transmission device is connected to the above processor, and the input / output device is connected to the above processor.

[0088] Optionally, in this embodiment, the above processor may be configured to execute the following steps through a computer program:

[0089] S1. When it is determined to use the first communication unit to send target data, control the second communication unit to send a target frame signal to the communication area allowed to be covered by the communication circuit. Among them, the second communication unit and the first communication unit are in the same communication circuit, and the target frame signal is used to instruct other communication units to be silent and carry a silent period;

[0090] S2. When the transmission duration of the target frame signal is greater than the silent duration corresponding to the silent period, send a first radio frequency instruction to the communication circuit. Among them, the first radio frequency instruction is used to set the first antenna corresponding to the first communication unit as a radar chirp antenna, and set the second antenna corresponding to the second communication unit as a radar function antenna;

[0091] S3. When the execution duration of the first radio frequency instruction is greater than a preset detection duration, send a second radio frequency instruction to the communication circuit. Among them, the second radio frequency instruction is used to set the first antenna as a Wi-Fi data antenna, and set the second antenna to a closed state.

[0092] Optionally, in this embodiment, the above storage medium may include but is not limited to: various media such as a USB flash drive, a read-only memory (ROM for short), a random access memory (RAM for short), a mobile hard disk, a magnetic disk, or an optical disc that can store program codes.

[0093] Figure 6 Schematically shows a block diagram of a computer system of an electronic device for implementing the embodiments of the present application. It should be noted that Figure 6 The computer system 600 of the shown electronic device is only an example, and should not bring any limitations to the functions and usage scopes of the embodiments of the present application. As Figure 6As shown, computer system 600 includes a central processing unit 601 (CPU), which can perform various appropriate actions and processes according to programs stored in a read-only memory 602 (ROM) or programs loaded from a storage section 608 into a random access memory 603 (RAM). In the random access memory 603, various programs and data required for system operation are also stored. The central processing unit 601, the read-only memory 602, and the random access memory 603 are connected to each other via a bus 604. An input / output interface 606 (Input / Output interface, i.e., I / O interface) is also connected to the bus 604.

[0094] The following components are connected to the input / output interface 606: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a local area network card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output interface 606 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed so that a computer program read from it can be installed into the storage section 608 as needed.

[0095] In particular, according to an embodiment of the present application, the processes described in each method flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program codes for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit 601, various functions defined in the system of the present application are executed.

[0096] According to another aspect of the embodiment of the present application, an electronic device for implementing the adjustment of the above antenna setting is also provided. The electronic device of this embodiment is as Figure 7 shown. The electronic device includes a memory 702 and a processor 704. A computer program is stored in the memory 702, and the processor 704 is configured to execute the steps in any of the above method embodiments through the computer program.

[0097] Optionally, in this embodiment, the above electronic device may be located in at least one of a plurality of network devices in a computer network. Those of ordinary skill in the art can understand that Figure 7 the structure shown is only schematic, and the electronic device may also be a device including the above flash memory. Figure 7 It does not limit the structure of the above electronic device. For example, the electronic device may further include more or fewer components (such as network interfaces, etc.) than those shown Figure 7 in the figure, or have a different configuration from that shown Figure 7 in the figure.

[0098] Among them, the memory 702 can be used to store software programs and modules, such as the adjustment of the antenna setting and the program instructions / modules corresponding to the device in the embodiments of the present application. The processor 704 executes various functional applications and data processing by running the software programs and modules stored in the memory 702, that is, realizes the adjustment of the above antenna setting. The memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 702 may further include a memory remotely set relative to the processor 704, and these remote memories can be connected to the terminal through a network. Examples of the above network include but are not limited to the Internet, enterprise intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 702 can specifically but not limitedly be used to contain information such as logs including modeling data. As an example, as Figure 7 shown, the above memory 702 may include but is not limited to the modules in the above antenna setting adjustment device. In addition, it may also include but is not limited to other module units in the above antenna setting adjustment device, which will not be elaborated in this example.

[0099] Optionally, the above transmission device 707 is used to receive or send data via a network. Specific examples of the above network may include wired networks and wireless networks. In one instance, the transmission device 707 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers through a network cable so as to communicate with the Internet or a local area network. In one instance, the transmission device 707 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0100] In addition, the above electronic device further includes: a display 708; and a connection bus 710 for connecting each module component in the above electronic device.

[0101] Embodiments of the present application also provide a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0102] Embodiments of the present application also provide another computer program product, including a non-volatile computer-readable storage medium. The non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0103] Embodiments of the present application also provide a computer program. The computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in any one of the above method embodiments.

[0104] Optionally, specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and will not be elaborated herein.

[0105] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented by program codes executable by the computing device, so that they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a different order from here, or they can be separately made into individual integrated circuit modules, or multiple modules or steps among them can be made into a single integrated circuit module to implement. In this way, the present application is not limited to any specific combination of hardware and software.

[0106] The above are only the preferred embodiments of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can still be made, and these improvements and refinements should also be regarded as the protection scope of the present application.

Claims

1. A method for adjusting an antenna setting, characterized in that Including: When it is determined to use the first communication unit to send target data, controlling the second communication unit to send a target frame signal to the communication area that the communication circuit allows to cover, where the second communication unit and the first communication unit are in the same communication circuit, and the target frame signal is used to instruct other communication units to be silent and carry a silent period; When the transmission duration of the target frame signal is greater than the silent duration corresponding to the silent period, sending a first radio frequency instruction to the communication circuit, where the first radio frequency instruction is used to set the first antenna corresponding to the first communication unit as a radar chirp antenna, and set the second antenna corresponding to the second communication unit as a radar function antenna; When the execution duration of the first radio frequency instruction is greater than a preset detection duration, sending a second radio frequency instruction to the communication circuit, where the second radio frequency instruction is used to set the first antenna as a Wi-Fi data antenna, and set the second antenna to a closed state.

2. The adjustment method of the antenna setting according to claim 1, characterized in that, After sending the first radio frequency instruction to the communication circuit when the transmission duration of the target frame signal is greater than the silent duration corresponding to the silent period, the method further includes: Obtaining a first execution result of the first radio frequency instruction; When the first execution result is successful, sending a generated chirp signal through the first antenna and performing coherent processing using the second antenna; When the first execution result is a failure, sending a first prompt message to the management object corresponding to the device including the communication circuit, where the first prompt message is used to indicate that there is an abnormal setting in the current communication circuit and it is impossible to enter the radar mode.

3. The adjustment method of the antenna setting according to claim 1, characterized in that, After sending the second radio frequency instruction to the communication circuit when the execution duration of the first radio frequency instruction is greater than a preset detection duration, the method further includes: Obtaining a second execution result of the second radio frequency instruction; When the second execution result is successful, sending generated target Wi-Fi data through the first antenna; When the second execution result is a failure, sending a second prompt message to the management object corresponding to the device including the communication circuit, where the second prompt message is used to indicate that there is an abnormal setting in the current communication circuit and it is impossible to enter the WIFI mode.

4. The method for adjusting the antenna arrangement according to claim 1, characterized in that After sending the second radio frequency instruction to the communication circuit when the execution duration of the first radio frequency instruction is greater than a preset detection duration, the method further includes: Obtaining a first value corresponding to the transmission duration and a second value corresponding to the execution duration; Determining a multiplexing strategy of the communication circuit based on the first value, the second value, and a third value corresponding to the silent period, and recording the data volume sent by the multiplexing strategy.

5. The method for adjusting the antenna setting according to claim 1, characterized in that, Before controlling the second communication unit to send a target frame signal to the communication area that the communication circuit allows to cover when it is determined to use the first communication unit to send target data, the method further includes: Detecting the communication status information of other communication units in the communication area; When the communication status information indicates that all other communication units are in a non - communication state, after waiting for a transmission duration, send a first radio frequency instruction to the communication circuit; When the communication status information indicates that there is at least one communication state among other communication units, determine to use a second communication unit in the communication circuit to send a target frame signal.

6. The method for adjusting the antenna arrangement according to claim 1, characterized in that, Before controlling the second communication unit to send a target frame signal to the communication area covered by the communication circuit when it is determined to use the first communication unit to send target data, the method further includes: Evaluate the first data volume sent by the communication circuit using the historical multiplexing strategy; When the first data volume is less than the second data volume corresponding to the target data, perform segmentation processing on the target data to obtain multiple signal data packets that support the communication circuit to send; When the first data volume is greater than or equal to the second data volume corresponding to the target data, do not perform segmentation processing on the target data, and pack the target data to generate a unique signal data packet.

7. The method for adjusting the antenna setting according to claim 6, characterized in that, Before sending a second radio frequency instruction to the communication circuit when the execution duration of the first radio frequency instruction is greater than a preset detection duration, the method further includes: Determine the resource allocation parameters of the first communication unit and the second communication unit in the communication circuit; Based on the resource allocation parameters, adjust the parameter settings in the preset instruction template to obtain the second radio frequency instruction, where the parameter settings include at least one of the following: the power level of the first antenna, the frequency band selection of the first antenna.

8. An adjustment device for an antenna setting, characterized in that, Includes: A first sending module, configured to, when it is determined to use the first communication unit to send target data, control the second communication unit to send a target frame signal to the communication area covered by the communication circuit, where the second communication unit and the first communication unit are in the same communication circuit, and the target frame signal is used to instruct other communication units to be silent and carry a silent period; A second sending module, configured to, when the transmission duration of the target frame signal is greater than the silent duration corresponding to the silent period, send a first radio frequency instruction to the communication circuit, where the first radio frequency instruction is used to set the first antenna corresponding to the first communication unit as a radar chirp antenna, and set the second antenna corresponding to the second communication unit as a radar function antenna; A third sending module, configured to, when the execution duration of the first radio frequency instruction is greater than a preset detection duration, send a second radio frequency instruction to the communication circuit, where the second radio frequency instruction is used to set the first antenna as a Wi - Fi data antenna, and set the second antenna to an off state.

9. A computer-readable storage medium, characterized in that, The computer - readable storage medium includes a stored program, where the program, when running, executes the method described in any one of claims 1 to 7 above.

10. An electronic device, comprising a memory and a processor, characterized in that, A computer program is stored in the memory, and the processor is configured to execute the method described in any one of claims 1 to 7 through the computer program.