Equipment control method and device, storage medium and electronic device
By sending a probe signal in the radio frequency device and comparing the response data, the matching device scenario is determined, which solves the problem that the device parameters cannot be adaptively switched in the prior art, and improves the device performance and the accuracy of scenario recognition.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-03-25
- Publication Date
- 2026-05-12
AI Technical Summary
Existing radio frequency equipment lacks a scene judgment mechanism and cannot identify the actual environment it is in, resulting in the inability of the equipment parameters to switch adaptively, which affects performance.
By controlling radio frequency equipment to send detection signals, receiving response data from the target object, and comparing the response data with the set spatial scene conditions, the matching equipment scene is determined, and then the equipment parameters are adjusted to adapt to different environments.
It enables adaptive output of radio frequency devices in different environments, improves device performance and scene recognition accuracy, and reduces the risk of misjudgment and interference.
Smart Images

Figure CN122028159A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of radio frequency communication equipment technology, and more specifically, to a device control method, apparatus, storage medium, and electronic device. Background Technology
[0002] In the actual use of various radio frequency (RF) transmitting devices (such as IoT terminals, short-range wireless communication devices, and civilian wireless devices), it is necessary to follow the device parameter (such as RF power) standards for different scenarios. For example, for indoor scenarios, due to their enclosed spaces, dense populations, and susceptibility to signal reflection and interference, a lower RF power limit is required; while for outdoor scenarios, due to their greater propagation distance requirements and weaker interference environment, a relatively higher power limit is usually adopted.
[0003] However, current radio frequency (RF) devices typically use factory-fixed device parameters (such as fixed RF power), which lack a scenario judgment mechanism and cannot identify the actual environment in which the RF device is currently located. Consequently, they cannot achieve adaptive switching of device parameters, which seriously affects the performance of RF devices.
[0004] Therefore, there is an urgent need for a device control method to overcome the shortcomings of conventional technologies in order to improve the performance of radio frequency devices. Summary of the Invention
[0005] This application provides a device control method and apparatus, storage medium, and electronic device to at least solve the problem in related technologies where the actual environment in which the radio frequency device is currently located cannot be identified, which seriously affects the performance of the radio frequency device.
[0006] According to one aspect of the embodiments of this application, a device control method is provided, comprising: controlling a radio frequency (RF) device to send a detection signal and receiving response data from a target object to the detection signal sent by the RF device; comparing the response data with the set first spatial scene conditions to obtain a first comparison result, and comparing the response data with the set second spatial scene conditions to obtain a second comparison result; determining a matching device scene for the RF device based on the first comparison result and the second comparison result; determining target device parameters corresponding to the matching device scene, and controlling the RF device to output according to the target device parameters. Adjusting device performance parameters.
[0007] According to another aspect of the embodiments of this application, a device control apparatus is also provided, comprising: an acquisition module, configured to control a radio frequency device to send a detection signal and receive response data of a target object to the detection signal sent by the radio frequency device; a comparison module, configured to compare the response data with a set first spatial scene condition to obtain a first comparison result, and to compare the response data with a set second spatial scene condition to obtain a second comparison result; a determination module, configured to determine a matching device scene of the radio frequency device based on the first comparison result and the second comparison result; and a control module, configured to determine target device parameters corresponding to the matching device scene and control the radio frequency device to output according to the target device parameters.
[0008] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, and the computer program is configured to execute the above-described device control method when running.
[0009] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the device control method through the computer program.
[0010] According to another aspect of the embodiments of this application, a computer program product is also provided, including a computer program, which, when executed by a processor, describes the device control method.
[0011] This application utilizes a radio frequency (RF) device to transmit a detection signal and receive response data from a target object in response to the RF device's detection signal. The response data is then compared under predefined first and second spatial scene conditions to obtain a first comparison result and a second comparison result. Based on these results, the matching device scene in which the RF device operates can be determined. Furthermore, according to the target device parameters corresponding to the matching device scene, the RF device can be controlled to output according to the target device parameters. Therefore, by controlling the RF device's output in a timely manner based on its matching device scene, the performance of the RF device can be effectively improved. Attached Figure Description
[0012] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0013] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 This is a schematic diagram of the hardware environment of a device control method according to an embodiment of this application;
[0015] Figure 2 This is one of the flowcharts of a device control method according to an embodiment of this application;
[0016] Figure 3 This is a second flowchart of a device control method according to an embodiment of this application;
[0017] Figure 4 This is a third flowchart of a device control method according to an embodiment of this application;
[0018] Figure 5 This is a structural block diagram of a device control apparatus according to an embodiment of this application. Detailed Implementation
[0019] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0020] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0021] The device control method embodiments provided in this application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1This is a hardware structure block diagram of a server device for a device control method according to an embodiment of this application. For example... Figure 1 As shown, the radio frequency device 102 can send a detection signal through the ultrasonic module and receive the response data of the target object 104 to the detection signal sent by the ultrasonic module of the radio frequency device. The response data is compared with the set first spatial scene conditions to obtain a first comparison result, and the response data is compared with the set second spatial scene conditions to obtain a second comparison result. Based on the first comparison result and the second comparison result, the matching device scene of the radio frequency device 102 is determined. The target device parameters corresponding to the matching device scene are determined, and the radio frequency power control module of the radio frequency device 102 is controlled to output according to the target device parameters.
[0022] In some embodiments, the main control unit (such as an MCU or SoC (System on a Chip)) inside the RF device 102 (not shown in the figure) can trigger the ultrasonic module to send a detection signal and schedule the RF power control module to perform specific actions through software programs or hardware logic. This control behavior can be an instruction execution initiated autonomously by the RF device with a clear timing and parameter configuration. For example, the main control unit outputs an enable signal, modulation waveform command, and transmission power parameters to the RF transmitting circuit according to a preset scene determination period (such as once every 2 seconds) or external events (such as device movement or user wake-up), thereby driving the antenna to radiate a radio electromagnetic wave signal with a specific frequency, bandwidth, and encoding format directionally or omnidirectionally into the surrounding space. This signal is the detection signal, and its purpose is to actively detect reflective or reactive targets in the environment.
[0023] Optionally, the radio frequency device may include, but is not limited to: Internet of Things (IoT) terminals (such as smart sensors, wearable devices), short-range wireless communication devices (such as Bluetooth beacons, Zigbee modules), handheld radios, or smart terminals equipped with the Wi-Fi 6CD / 6XD standard.
[0024] This application provides a device control method applied to the aforementioned radio frequency device. The device control method is described in detail below, along with its execution flow. Figure 2 As shown, the method includes the following steps S202-S208:
[0025] Step S202: Control the radio frequency device to send a probe signal and receive the response data of the target object to the probe signal sent by the radio frequency device.
[0026] Radio frequency (RF) equipment refers to terminal equipment with wireless radio frequency transmission and reception capabilities. RF equipment can act as an active detection source, emitting detection signals for environmental sensing; RF equipment can also act as a signal receiver, receiving reflected or response signals from the environment. Target objects refer to any physical entity capable of reflecting, scattering, or re-radiating detection signals, including but not limited to walls, floors, furniture, human bodies, doors and windows, and metal structures.
[0027] Response data refers to the physical information carried by the echo signal reflected back to the antenna of the radio frequency device by the target object, including but not limited to: the arrival time of the signal (used to calculate the distance), the signal strength (reflecting the material of the reflector and the distance), the number of multipath components (reflecting the complexity of the environment), and the phase change (which can be used for more refined environmental modeling).
[0028] Specifically, radio frequency (RF) devices can transmit a probe signal with specific time and frequency domain characteristics into the surrounding space to detect reflectors or responders in the physical environment in which the RF device is located. The probe signal can be a short pulse, low duty cycle, low energy non-communication waveform, and its frequency, power, duration, and modulation method are specially designed to minimize interference with other wireless systems while maximizing the distinguishability of environmental features.
[0029] Step S204: Compare the response data with the set first spatial scene conditions to obtain a first comparison result, and compare the response data with the set second spatial scene conditions to obtain a second comparison result.
[0030] The first spatial scene condition refers to a predefined set of quantitative criteria for identifying a specific spatial environment. It is used to determine whether the radio frequency device is in an outdoor environment. The first spatial scene condition is a logical constraint composed of multiple measurable and calculable physical thresholds. For example, the first spatial scene condition may include, but is not limited to, specific numerical rules such as: "average effective ranging not less than 15 meters," "number of reflected waves not exceeding 1," and "continuous sampling deviation not greater than 15%." These rules can be derived statistically from real-world environmental test data.
[0031] It is understandable that, in the process of comparing the response data with the first spatial scenario conditions, each feature value in the response data can be compared item by item to see if it meets the numerical range, temporal continuity or logical combination relationship in the first spatial scenario conditions, thereby obtaining the first comparison result.
[0032] The second spatial scene conditions refer to another set of quantitative criteria independent of the first spatial scene conditions, used to identify another typical spatial environment. In other words, the second spatial scene conditions are used to determine whether the radio frequency device is in an indoor environment. This set of conditions contrasts with the first condition in terms of physical characteristics. For example, the second spatial scene conditions may include: "mean effective ranging not exceeding 5 meters," "number of reflected peaks not less than 3," and "sampling data deviation not exceeding 10%." The second spatial scene conditions are robust criteria derived through statistical analysis and boundary calibration after collecting multiple sets of samples in typical indoor environments such as homes, offices, and shopping malls. In comparing the response data with the second spatial scene conditions, each characteristic in the response data, such as distance, number of peaks, and stability, can be compared to see if it falls within the range set by the second spatial scene conditions. Furthermore, a time continuity check (e.g., both consecutive samples meet the requirements) can be combined to eliminate transient interference, ultimately obtaining the second comparison result.
[0033] Step S206: Determine the matching device scenario of the radio frequency device based on the first comparison result and the second comparison result.
[0034] It should be noted that the first and second comparison results can each represent a high-confidence matching probability of a spatial scene. For example, if the first comparison result is satisfied, it means that the current environment conforms to the characteristics of an open and unobstructed outdoor environment; if the second comparison result is satisfied, it means that the environment conforms to the characteristics of a closed and multi-obstacle indoor environment. When determining the matching device scene, the decision is not based on only one result, but on both results participating in the logical operation simultaneously, in order to avoid misjudgments caused by transient interference, single sensor errors, or edge environments (such as windowsills or balconies).
[0035] Optionally, if the first comparison result is satisfied and the second comparison result is not satisfied, the matching device scenario is determined to be a clearly defined outdoor scenario; if the second comparison result is satisfied and the first comparison result is not satisfied, the matching device scenario is determined to be a clearly defined indoor scenario; if neither is satisfied, or both are satisfied, the matching device scenario is determined to be an uncertain scenario. This decision-making mechanism adopts a conservative strategy of enabling when the scenario is clear and providing a fallback when the scenario is ambiguous, fundamentally eliminating the risk of exceeding the RF power limit due to misjudgment.
[0036] Optionally, after obtaining the first and second comparison results, a weighted fusion mechanism can be used. The first and second comparison results are used as input variables, and a continuous scene confidence score is calculated through weighted summation, thereby more precisely determining the final matching device scene. Specifically, the first comparison result (corresponding to outdoor probability) can be mapped to a value between 0 and 1, reflecting the degree to which the current response data matches the outdoor scene: the closer to 1, the more it matches outdoor characteristics. Similarly, the second comparison result (corresponding to indoor probability) is mapped to a value reflecting the degree to which the current response data matches the indoor scene. Based on this, scene weight coefficients are introduced, representing the relative importance of outdoor and indoor probabilities in the final determination. The scene weight coefficients can be dynamically adjusted according to device type, deployment environment, or user settings. For example, in devices such as smart door locks or security cameras deployed at the boundary between indoor and outdoor environments, the weight corresponding to the second comparison result can be slightly increased to enhance the conservative bias towards indoor scenes and further reduce the risk of accidentally opening high-power devices. Finally, the scene confidence score is calculated, and a dynamic threshold interval is further defined. The scene confidence score is compared with the dynamic threshold interval, and the matching device scene is determined based on the comparison result.
[0037] Step S208: Determine the target device parameters corresponding to the matching device scenario, and control the radio frequency device to output according to the target device parameters.
[0038] The matched device scenario refers to the final determined environmental state of the device, categorized into three types: clearly indoor, clearly outdoor, or scenario uncertain. The target device parameters are a set of RF operating parameters selected from a pre-defined parameter library based on the matching result. These parameters strictly correspond to the current scenario and meet the device's performance requirements. Target device parameters may include: RF transmit power value, channel occupancy strategy, modulation method, transmission repetition interval, automatic frequency coordination enabled status, and adjacent channel interference suppression parameters. For example, when the matched device scenario is clearly outdoor, the outdoor operating mode configuration table is invoked, setting the target device parameters to the maximum allowed compliant power and allowing a wider channel bandwidth. When the matching is clearly indoor or the scenario is uncertain, the indoor low-power mode configuration table is invoked, limiting the transmit power within a safe threshold and using narrowband, low duty cycle transmission to reduce interference to adjacent devices.
[0039] Specifically, in the process of controlling the RF device to output according to the target device parameters, precise instructions can be sent to the RF transceiver chip through hardware register writing, driver calls, or the RF front-end control interface to achieve dynamic reconfiguration of the RF transmission module.
[0040] For example, firstly, a gain control signal can be sent to the power amplifier of the RF device to smoothly adjust the output power from the current value to the target value, avoiding spectrum regeneration or adjacent channel interference caused by power surges; secondly, the bandpass characteristics of the RF front-end filter are adjusted to match the target frequency band and channel width; thirdly, the baseband modulation parameters (such as spreading factor, modulation order, and frame structure) are modified to make them compatible with the communication protocol under the selected power level; finally, the timer and retransmission mechanism are updated synchronously to ensure link stability under the new parameters. The entire control process follows the principle of gradual adjustment and synchronous effect. For example, the power adjustment adopts a five-step step change within 100ms, rather than instantaneous switching, to prevent instantaneous electromagnetic interference to other devices and protect the RF module of the RF device from high current surges.
[0041] Steps S202-S208 described above involve controlling the radio frequency (RF) device to send a detection signal and receiving response data from the target object in response to the RF device's detection signal. The response data is then compared under predefined first and second spatial scene conditions to obtain a first comparison result and a second comparison result. Based on these results, the matching device scene in which the RF device is located can be determined. Furthermore, according to the target device parameters corresponding to the matching device scene, the RF device can be controlled to output according to the target device parameters. Therefore, by controlling the RF device's output in a timely manner based on its matching device scene, the performance of the RF device can be effectively improved.
[0042] In one exemplary embodiment, reference Figure 3 As shown, the response data is compared with the set first spatial scene conditions to obtain the first comparison result, which can be achieved through the following steps S302-S306:
[0043] S302, if the response data includes the ranging value and the number of reflected waves within a preset time period, the ranging value within the preset time period is processed to obtain the first ranging value; the ranging value is the distance between the detected radio frequency device and the target object; the number of reflected waves is the number of reflected waves formed after the detection signal reaches the target object;
[0044] S304, compare the first ranging value with the set first ranging threshold to obtain the first ranging comparison result, and compare the number of reflected waves with the set first number threshold to obtain the first number comparison result;
[0045] S306, determine the first comparison result based on the first ranging comparison result and the first quantity comparison result; the first spatial scene conditions include: the first ranging threshold and the first quantity threshold.
[0046] The preset time period is the set sampling window. When setting the preset time period, it can be based on the dynamic characteristics of the environment. If the time is too short (e.g., 1 second), it is easily affected by instantaneous interference (e.g., a person walking by, a door opening or closing), leading to misjudgment; if the time is too long (e.g., 10 seconds), the response will be slow and unable to adapt to moving scenarios. Therefore, the preset time period can be set at around 4-8 seconds, which can filter out random noise and respond to real environmental changes in a timely manner.
[0047] The ranging value collected within a preset time period represents the distance between the radio frequency device and the target object; the number of reflected waves refers to the number of independently distinguishable reflection peaks identified through time-domain or frequency-domain analysis in the echo signal of a single detection pulse, reflecting the structural complexity of the environment. For example, in outdoor environments, reflections are usually less, while in indoor environments, due to reflections from walls, furniture, doors, windows, and other surfaces, multiple or more significant reflection peaks often appear.
[0048] Specifically, when processing the ranging values within a preset time period, a comprehensive operation involving mean calculation, variance calculation, or multi-layered data cleansing and engineering enhancement can be employed. For the comprehensive operation, all invalid data points can be removed first, such as outliers with ranging values less than 0.1 meters (blind zone), to avoid data distortion caused by near-range false reflections or far-range interference. Secondly, a moving average filter is applied to the valid ranging values to smooth out short-term fluctuations caused by human movement, airflow disturbances, or electromagnetic noise. Furthermore, dynamic compensation is applied to the ranging values using ambient temperature sensor data to improve ranging accuracy. The final output first ranging value is a highly reliable representative set of values after denoising, compensation, and weighted averaging, representing the stable state of environmental distance characteristics within that time period.
[0049] Furthermore, the first ranging value is compared with a set first ranging threshold to obtain a first ranging comparison result. The first ranging threshold is a threshold set based on accuracy requirements, actual scenarios, etc., such as 15 meters, 10 meters, etc. The number of reflected waves is compared with a set first quantity threshold to obtain a first quantity comparison result. The first quantity threshold is an upper limit set for the number of reflected waves, such as 1, 3, etc. The first quantity threshold is adaptively set based on accuracy requirements, characteristics of indoor and outdoor scenarios, etc.
[0050] Finally, the first comparison result is determined based on the first ranging comparison result and the first quantity comparison result. The first comparison result is the final output for determining whether it is an outdoor scene. It is composed of the two comparison results and form a logical AND relationship: the first comparison result determines that it is an outdoor scene only if both the first ranging comparison result and the first quantity comparison result are satisfied; otherwise, it is determined that it is not satisfied.
[0051] In the above embodiments, by determining the first ranging value and the number of reflected waves, and then making a judgment on the first comparison result based on the dual threshold comparison, a low-power and highly reliable outdoor scene recognition mechanism is constructed, laying the foundation for subsequent precise control of the output of radio frequency equipment.
[0052] In an exemplary embodiment, determining the first comparison result based on the first ranging comparison result and the first quantity comparison result includes: extracting ranging values at N time points from the ranging values within a preset time period; N is an integer greater than 1; determining the first ranging deviation between each pair of time points based on the ranging values of each pair of time points among the N time points, and comparing the first ranging deviation with a set ranging deviation threshold to obtain a deviation comparison result; and determining the first comparison result based on the deviation comparison result, the first ranging comparison result, and the first quantity comparison result.
[0053] Understandably, based on the first distance comparison result and the first quantity comparison result, a data stability analysis in the time dimension is further introduced to eliminate misjudgments caused by instantaneous disturbances, accidental interference, or local occlusion.
[0054] Specifically, N=5 time points can be evenly selected within a preset time period, and the corresponding distance measurement values can be obtained for each point. The first distance measurement deviation between any two extracted time points is then determined. For example, if the distance measurement value is 16.2 meters in the first second and 15.9 meters in the second second, the first distance measurement deviation is 0.3 meters. By performing pairwise calculations for all N points, multiple first distance measurement deviations can be obtained. Subsequently, the first distance measurement deviations can be processed by averaging or maximizing to obtain the target distance measurement deviation. This target distance measurement deviation is then compared with a preset distance measurement deviation threshold to obtain a deviation comparison result. Finally, the first comparison result is determined based on the deviation comparison result, the first distance measurement comparison result, and the first quantity comparison result.
[0055] For example, the first comparison result is a logical judgment result that combines three dimensions. For example, the first distance comparison result: whether it meets the long distance requirement (e.g., ≥15 meters); the first quantity comparison result: whether it meets the low reflection requirement (e.g., ≤1 reflection peak); and the deviation comparison result: whether it meets the low fluctuation requirement (e.g., maximum deviation ≤1.5 meters). If all three conditions are met, the first comparison result is output as satisfied, that is, it is determined to be an outdoor scene; if any condition is not met, it is determined to be unsatisfactory.
[0056] In the above embodiments, a triple verification system is constructed, which can identify a truly stable and continuous outdoor environment, rather than a short-term and occasional pseudo-outdoor state. This greatly improves the anti-interference ability and judgment reliability of radio frequency equipment in dynamic and complex environments, significantly improves the accuracy and robustness of scene recognition, and fundamentally solves the core pain points of scene ambiguity and frequent misjudgments in the existing technology.
[0057] In an exemplary embodiment, comparing the response data with a set second spatial scene condition to obtain a second comparison result includes: when the response data includes a ranging value and a number of reflected waves within a preset time period, processing the ranging value within the preset time period to obtain a second ranging value; the ranging value is the distance between the detected radio frequency device and the target object; the number of reflected waves is the number of reflected waves formed after the detection signal reaches the target object; comparing the second ranging value with a set second ranging threshold to obtain a second ranging comparison result, and comparing the number of reflected waves within the preset time period with a set second quantity threshold to obtain a second quantity comparison result; determining the second comparison result based on the second ranging comparison result and the second quantity comparison result; wherein, the second spatial scene condition includes: a second ranging threshold and a second quantity threshold; the second ranging threshold is less than a first ranging threshold; the second quantity threshold is less than a first quantity threshold.
[0058] Understandably, comparing the response data with the set second spatial scenario conditions aims to determine whether the current environment meets the characteristics of the specific indoor spatial scenario, forming a complementary and symmetrical dual verification system with the aforementioned first comparison result determining the outdoor environment. The second comparison result is a binary judgment signal output after independently and rigorously judging the response data based on a set of threshold conditions optimized specifically for the indoor environment, indicating whether the conditions are met or not.
[0059] Specifically, the second distance measurement value is compared with a set second distance measurement threshold to obtain a second distance comparison result. The second distance measurement threshold is an upper limit value specifically set for indoor environments, such as 5 meters, and its value is set based on the distance distribution statistics of a large number of real indoor scenes. When the second distance measurement value is ≤ 5 meters, the second distance comparison result is satisfied; otherwise, it is not satisfied. This threshold is less than the first distance measurement threshold, forming a clear boundary to ensure that the semi-open space at a medium distance can be clearly distinguished from the real indoor environment. The number of reflected waves within a preset time period is compared with a set second quantity threshold to obtain a second quantity comparison result. The second quantity threshold is a lower limit setting value for the reflection characteristics of the indoor environment, such as 3, 4, etc., which can be set according to the characteristics of the indoor environment. When the second distance comparison result is satisfied (e.g., distance ≤ 5 meters) and the second quantity comparison result is also satisfied (e.g., reflected waves ≥ 3), the conditions for the second spatial scene are determined to be satisfied.
[0060] In the above embodiments, by comparing the second ranging value and the number of reflected waves with the corresponding second ranging threshold and second quantity threshold, respectively, a truly stable and continuous outdoor environment can be identified, rather than a brief and occasional pseudo-outdoor state. This greatly improves the anti-interference capability and judgment reliability of the radio frequency equipment in dynamic and complex environments. Furthermore, because the second ranging threshold is set to be lower than the first ranging threshold and the second quantity threshold is set to be lower than the first quantity threshold, a clear and unambiguous scene division boundary is constructed, achieving that outdoor and indoor judgments do not interfere with each other and complement each other.
[0061] In an exemplary embodiment, determining the second comparison result based on the second ranging comparison result and the second quantity comparison result includes: obtaining a predicted device scenario determined based on the scenario probability of different device scenarios; wherein the scenario probability is used to indicate the probability of the radio frequency device under different device scenarios; determining an intermediate comparison result based on the second ranging comparison result and the second quantity comparison result, comparing the device scenario indicated by the intermediate comparison result with the predicted device scenario, and determining a first scenario weight of the device scenario indicated by the intermediate comparison result and a second scenario weight of the predicted device scenario when the device scenario indicated by the intermediate comparison result is inconsistent with the predicted device scenario; and determining the second comparison result based on the first scenario weight and the second scenario weight.
[0062] It should be noted that, based on the obtained second ranging comparison results and second quantity comparison results, external prediction information is further introduced, namely, the predicted device scenario determined based on the scenario probability of different device scenarios. The scenario probability is the output value of a statistical model built based on historical data recorded by the RF device in past operating cycles. This model can self-learn by accumulating environmental characteristics (such as time, temperature, previous ranging values, reflection characteristics, user operation behavior, etc.) during each power switch and construct a Bayesian probability distribution.
[0063] For example, if an RF device is in a living room environment every day from 18:00 to 22:00 for the past week, and its power is stably operating in indoor mode, then an indoor scenario will be assigned a high probability during that time period (e.g., P(indoor) = 0.92). If the device is frequently taken to the balcony at 9:00 AM on weekend mornings, and the ranging value during this time is consistently between 10 and 14 meters with a reflectivity of 2, then a semi-open or transitional scenario will be assigned a moderate probability (e.g., P(transitional) = 0.45), while the probability of an outdoor scenario will be reduced. Predicting the device scenario refers to determining the scenario probability corresponding to the possible scenario categories output by the probability model, such as based on the scenario probability corresponding to an indoor scenario, the scenario probability corresponding to an outdoor scenario, or the scenario probability corresponding to an uncertain scenario.
[0064] When the device scenario indicated by the intermediate comparison result is inconsistent with the predicted device scenario, it means that there is a conflict between local perception and historical experience. For example, the intermediate result determines the scenario as outdoor, but the predicted scenario is still indoor. In this case, a dynamic weighting mechanism is introduced to weigh the differences. The first scenario weight is a confidence coefficient assigned to the intermediate comparison result, and its value is dynamically calculated based on the stability, validity, and confidence level of the current sensor data. The second scenario weight is a confidence coefficient assigned to the predicted device scenario (historical experience), and its value is determined based on the timeliness, consistency, and update frequency of the historical data. The calculation of the weights does not rely on manual settings but is automatically adjusted based on the built-in confidence assessment model.
[0065] After obtaining the weights of the first and second scenarios, a weighted majority voting mechanism is adopted: if the weight of the first scenario is greater than the weight of the second scenario, and the intermediate result is indoor, then the second comparison result is indoor; if the weight of the second scenario is greater than the weight of the first scenario, and the predicted device scenario is indoor, then the second comparison result is indoor; if the weights of the two are close (e.g., the difference is <0.1), then the second comparison result is scenario uncertain.
[0066] In the above embodiments, the intermediate comparison result determined by the second ranging comparison result and the second quantity comparison result is compared with the predicted device scene. This avoids both experience-based misguidance and perceptual misjudgment (such as the false reduction of reflected waves due to strong wind interference). It deeply integrates the device's perception capability with its long-term behavioral learning capability, effectively improving the accuracy of scene recognition.
[0067] In an exemplary embodiment, determining the matching device scenario of the radio frequency (RF) device based on a first comparison result and a second comparison result includes: determining the matching device scenario of the RF device to be an outdoor scenario when the response data represented by the first comparison result meets the first spatial scenario conditions and the response data represented by the second comparison result does not meet the second spatial scenario conditions; determining the matching device scenario of the RF device to be an uncertain scenario when the response data represented by the first comparison result does not meet the first spatial scenario conditions and the response data represented by the second comparison result does not meet the second spatial scenario conditions, or when the response data represented by the first comparison result meets the first spatial scenario conditions and the response data represented by the second comparison result meets the second spatial scenario conditions; and determining the matching device scenario of the RF device to be an indoor scenario when the response data represented by the first comparison result does not meet the first spatial scenario conditions and the response data represented by the second comparison result meets the second spatial scenario conditions.
[0068] It should be noted that if the response data of the first comparison result meets the first spatial scenario conditions, but the response data of the second comparison result does not meet the second spatial scenario conditions, the matching device scenario for the RF device is determined to be an outdoor scenario. If the response data of the first comparison result does not meet the first spatial scenario conditions, and the response data of the second comparison result does not meet the second spatial scenario conditions, or if the response data of the first comparison result meets the first spatial scenario conditions and the response data of the second comparison result meets the second spatial scenario conditions, the matching device scenario for the RF device is determined to be an uncertain scenario. For uncertain scenarios, the first case is: neither outdoor nor indoor conditions are met. In this case, it is impossible to make a clear classification based on any set of hard thresholds, so it is classified as uncertain. The second case is: both outdoor and indoor conditions are met simultaneously, i.e., they are contradictory. In a real environment, this may be due to sensor errors, sudden environmental changes, or data anomalies caused by extreme structures. This is also classified as an uncertain scenario. If the response data of the first comparison result does not meet the first spatial scenario conditions, but the response data of the second comparison result meets the second spatial scenario conditions, the matching device scenario for the RF device is determined to be an indoor scenario.
[0069] In the above embodiments, by constructing three types of logically rigorous scenario determination rules, high-precision and high-security identification of the operating environment of radio frequency equipment is achieved.
[0070] In an exemplary embodiment, determining target device parameters adapted to a matching device scenario and controlling the radio frequency device to output according to the target device parameters includes: when the matching device scenario is an outdoor scenario, determining at least one first power value adapted to the radio frequency device based on a first power standard, and controlling the target device to output according to at least one first power value; the target device parameters include: at least one first power value; when the matching device scenario is an indoor scenario or an uncertain scenario, determining at least one second power value adapted to the radio frequency device based on a second power standard, and controlling the target device to output according to at least one second power value; wherein, the first power value is greater than the second power value; the target device parameters include: at least one second power value.
[0071] In the case of an outdoor scenario where the matching equipment is used, the first power standard refers to the highest compliant transmit power level allowed in an open outdoor environment. This standard is not a fixed value, but rather a dynamically calculated set of the maximum legally usable power based on factors such as the equipment's operating frequency band, antenna gain, and modulation method; that is, at least one first power value. The first power value can be a single value or a set of selectable values, and the optimal value can be adaptively selected based on the current channel occupancy, adjacent channel interference levels, and link budget.
[0072] When the matched device is used in an indoor or uncertain scenario, a conservative strategy is adopted, using a second power standard for power configuration. The second power standard is a set low power upper limit. The second power value can also be one or a set of conservative values, and the effective value can be selected based on the current channel status, prioritizing low interference and low power consumption.
[0073] In the above embodiments, by constructing a dual-standard power output mechanism, a qualitative leap has been achieved in radio frequency (RF) devices, moving from passively following fixed parameters to actively sensing the environment and responding intelligently. This establishes a complete execution chain for matching scenarios, determining power values, and controlling devices, solving the long-standing dilemma of power selection in the industry and effectively improving the performance of RF devices.
[0074] Obviously, the embodiments described above are only some embodiments of this application, and not all embodiments. To better understand the above method, the following description, in conjunction with embodiments, illustrates the process, but is not intended to limit the technical solutions of the embodiments of this application:
[0075] Currently, handheld terminals lack effective means to autonomously determine indoor / outdoor usage scenarios, and there is no fallback control logic for special situations such as ambiguous scenarios and abnormal data. This makes it impossible to solve the problem of power compliance and performance balance for cross-scenario use of radio frequency (RF) devices, resulting in existing RF devices failing to simultaneously meet the dual requirements of compliance and practicality (such as the 6CD and 6XD standards for Wi-Fi). Specifically, Wi-Fi 6CD refers to the general-purpose RF specification under the Wi-Fi 6 (802.11ax) standard, supporting dual power modes (standard power / low power) and adapting to multiple indoor and outdoor application scenarios. Wi-Fi 6XD refers to the dedicated indoor low-power RF specification under the Wi-Fi 6 standard, supporting only low-power mode and focusing on indoor short-range, low-interference scenarios. It only requires interoperability certification for indoor low-power access points (APs) and adapts to low-power deployment modes without AFC, primarily used in smart home sensors, low-power IoT devices, and other devices with low power consumption and mobility requirements.
[0076] To address the core gap in existing radio frequency equipment regarding the lack of reliable automatic determination of indoor and outdoor scenarios, this application proposes an equipment control method, referencing... Figure 4 The diagram shown is a flowchart of the device control method provided in this application, including steps S401-S405:
[0077] S401 After the radio frequency device is powered on, the radio frequency module is started and the indoor radio frequency power limit standard parameter is loaded by default. That is, the control device outputs according to the second power value to avoid the risk of exceeding the power limit from the start-up stage.
[0078] S402, enable ultrasonic ranging function. The ultrasonic module is configured to a fixed sampling frequency (e.g., 10Hz), and the data preprocessing function is enabled simultaneously, including moving average filtering and temperature compensation, to eliminate the interference of environmental noise and temperature changes on ranging accuracy, and to remove invalid data in the blind zone (<0.1m).
[0079] S403 acquires response data and analyzes the device scenario, i.e., predicts the matching device scenario for the RF device. Based on the response data, three core environmental parameters are determined: ranging distance parameters; reflected wave characteristic parameters (number of reflected waves, signal strength); and data stability parameters (deviation value). Moving average filtering is applied to the core environmental parameters, and the ultrasonic propagation speed is corrected based on ambient temperature to improve data reliability. Furthermore, two scenario judgment thresholds are preset, and an anti-shake verification mechanism is set to avoid misjudgment due to single data fluctuations: Outdoor scenario judgment conditions: effective average ranging within 5 consecutive seconds ≥ 15m, number of reflected waves ≤ 1 (no multiple reflections in open environments), deviation of 5 consecutive sampling data ≤ 15%, and consistent verification results for 3 consecutive times; meeting all conditions determines a clear outdoor scenario. Indoor scenario judgment conditions: effective average ranging within 2 consecutive seconds ≤ 5m, number of reflected waves ≥ 3 (multiple reflections in enclosed environments), deviation of 3 consecutive sampling data ≤ 10%, and consistent verification results for 2 consecutive times; meeting all conditions determines a clear indoor scenario. Uncertain Scenarios Determination: Scenarios that do not meet the above two categories of clear scenario conditions are uniformly determined as uncertain scenarios and included in the scope of indoor scenario management.
[0080] S404, determine whether it is clearly an outdoor scenario. When it is determined to be a clearly outdoor scenario, smoothly switch to the outdoor power standard.
[0081] S405, determine whether it is a specific indoor scenario. For both indoor and uncertain scenarios, maintain the indoor power standard; if the ultrasonic module malfunctions, data times out, or there is no valid data, immediately lock the indoor power standard and simultaneously trigger a fault warning; power switching uses a stepped, gradual adjustment to avoid instantaneous power surges that could damage the module or cause interference.
[0082] In addition, during the operation of the radio frequency equipment, data acquisition and scene determination are repeated every 2 seconds to keep up with scene changes in real time (such as moving the equipment from indoors to outdoors), dynamically adapt to power standards, and achieve full-cycle adaptive control.
[0083] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.
[0084] This embodiment also provides a device control apparatus for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0085] Figure 5 This is a structural block diagram of a device control apparatus according to an embodiment of this application. The apparatus includes:
[0086] The acquisition module 52 is used to control the radio frequency device to send a detection signal and to receive the response data of the target object to the detection signal sent by the radio frequency device;
[0087] The comparison module 54 is used to compare the response data with the set first spatial scene conditions to obtain a first comparison result, and to compare the response data with the set second spatial scene conditions to obtain a second comparison result;
[0088] Determining module 56 is used to determine the matching device scenario of the radio frequency device based on the first comparison result and the second comparison result;
[0089] The control module 58 is used to determine the target device parameters corresponding to the matching device scenario and control the radio frequency device to output according to the target device parameters.
[0090] The aforementioned device controls a radio frequency (RF) device to send a detection signal and receives response data from a target object to the RF device's detection signal. It then compares the response data with predefined first and second spatial scene conditions to obtain a first comparison result and a second comparison result. Based on these results, the matching device scene in which the RF device is located can be determined. Furthermore, according to the target device parameters corresponding to the matching device scene, the RF device can be controlled to output according to the target device parameters. Therefore, by controlling the RF device's output in a timely manner based on the matching device scene, the performance of the RF device can be effectively improved.
[0091] In an exemplary embodiment, the comparison module 54 is further configured to, when the response data includes ranging values and the number of reflected waves within a preset time period, process the ranging values within the preset time period to obtain a first ranging value; the ranging value is the distance between the detected radio frequency device and the target object; the number of reflected waves is the number of reflected waves formed after the detection signal reaches the target object; compare the first ranging value with a set first ranging threshold to obtain a first ranging comparison result, and compare the number of reflected waves with a set first quantity threshold to obtain a first quantity comparison result; determine the first comparison result based on the first ranging comparison result and the first quantity comparison result; the first spatial scene condition includes: the first ranging threshold and the first quantity threshold.
[0092] In an exemplary embodiment, the comparison module 54 is further configured to extract the distance measurement values of N time points from the distance measurement values within the preset time period; where N is an integer greater than 1; determine the first distance measurement deviation between the pairs of time points based on the distance measurement values of each pair of time points among the N time points, and compare the first distance measurement deviation with a set distance measurement deviation threshold to obtain a deviation comparison result; and determine the first comparison result based on the deviation comparison result, the first distance measurement comparison result, and the first quantity comparison result.
[0093] In an exemplary embodiment, the comparison module 54 is further configured to, when the response data includes ranging values and the number of reflected waves within a preset time period, process the ranging values within the preset time period to obtain a second ranging value; the ranging value is the distance between the detected radio frequency device and the target object; the number of reflected waves is the number of reflected waves formed after the detection signal reaches the target object; compare the second ranging value with a set second ranging threshold to obtain a second ranging comparison result, and compare the number of reflected waves within the preset time period with a set second quantity threshold to obtain a second quantity comparison result; determine the second comparison result based on the second ranging comparison result and the second quantity comparison result; wherein, the second spatial scene conditions include: the second ranging threshold and the second quantity threshold; the second ranging threshold is less than the first ranging threshold; the second quantity threshold is less than the first quantity threshold.
[0094] In an exemplary embodiment, the comparison module 54 is further configured to obtain a predicted device scenario determined based on the scenario probability of different device scenarios; wherein the scenario probability is used to indicate the probability of the radio frequency device under the different device scenarios; determine an intermediate comparison result based on the second ranging comparison result and the second quantity comparison result, compare the device scenario indicated by the intermediate comparison result with the predicted device scenario, and if the device scenario indicated by the intermediate comparison result is inconsistent with the predicted device scenario, determine a first scenario weight of the device scenario indicated by the intermediate comparison result, and determine a second scenario weight of the predicted device scenario; and determine a second comparison result based on the first scenario weight and the second scenario weight.
[0095] In an exemplary embodiment, the determining module 56 is further configured to determine the matching device scenario of the radio frequency device based on the first comparison result and the second comparison result, including: determining the matching device scenario of the radio frequency device to be an outdoor scenario when the first comparison result indicates that the response data meets the first spatial scenario conditions and the second comparison result indicates that the response data does not meet the second spatial scenario conditions; determining the matching device scenario of the radio frequency device to be an uncertain scenario when the first comparison result indicates that the response data does not meet the first spatial scenario conditions and the second comparison result indicates that the response data does not meet the second spatial scenario conditions, or when the first comparison result indicates that the response data meets the first spatial scenario conditions and the second comparison result indicates that the response data meets the second spatial scenario conditions; and determining the matching device scenario of the radio frequency device to be an indoor scenario when the first comparison result indicates that the response data does not meet the first spatial scenario conditions and the second comparison result indicates that the response data meets the second spatial scenario conditions.
[0096] In an exemplary embodiment, the control module 58 is further configured to, when the matching device scenario is an outdoor scenario, determine at least one first power value adapted to the radio frequency device based on a first power standard, and control the target device to output according to the at least one first power value; the target device parameters include: the at least one first power value; when the matching device scenario is an indoor scenario or an uncertain scenario, determine at least one second power value adapted to the radio frequency device based on a second power standard, and control the target device to output according to the at least one second power value; wherein, the first power value is greater than the second power value; the target device parameters include: the at least one second power value.
[0097] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.
[0098] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:
[0099] S1, control the radio frequency device to send a detection signal, and receive the response data of the target object to the detection signal sent by the radio frequency device;
[0100] S2, compare the response data with the set first spatial scene conditions to obtain a first comparison result, and compare the response data with the set second spatial scene conditions to obtain a second comparison result;
[0101] S3, determine the matching device scenario of the radio frequency device based on the first comparison result and the second comparison result;
[0102] S4, determine the target device parameters corresponding to the matching device scenario, and control the radio frequency device to output according to the target device parameters.
[0103] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0104] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0105] Embodiments of this application also provide an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to perform the steps of any of the above method embodiments via the computer program.
[0106] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0107] S1, control the radio frequency device to send a detection signal, and receive the response data of the target object to the detection signal sent by the radio frequency device;
[0108] S2, compare the response data with the set first spatial scene conditions to obtain a first comparison result, and compare the response data with the set second spatial scene conditions to obtain a second comparison result;
[0109] S3, determine the matching device scenario of the radio frequency device based on the first comparison result and the second comparison result;
[0110] S4, determine the target device parameters corresponding to the matching device scenario, and control the radio frequency device to output according to the target device parameters.
[0111] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0112] Optionally, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the device control method and apparatus in the embodiments of this application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 402, thereby realizing the above-mentioned device control method. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory may be used, but is not limited to, storing information such as system configuration files. As an example, the above-mentioned memory may include, but is not limited to, the acquisition module 62, the first determination module 64, the second determination module 66, and the third determination module 68 in the above-mentioned device control apparatus. In addition, it may include, but is not limited to, other module units in the above-mentioned device control apparatus (such as the first determination module and the second determination module), which will not be described in detail in this example.
[0113] Optionally, the aforementioned transmission device is used to receive or send data via a network. Specific examples of the network may include wired and wireless networks. In one example, the transmission device includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device is a Radio Frequency (RF) module used for wireless communication with the Internet.
[0114] In addition, the aforementioned electronic device also includes a display and a connection bus for connecting the various module components in the aforementioned electronic device.
[0115] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.
[0116] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.
[0117] The embodiments described herein also provide a computer program that includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps in any of the above method embodiments.
[0118] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0119] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0120] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A device control method, characterized in that, include: Control the radio frequency device to send a detection signal, and receive the response data of the target object to the detection signal sent by the radio frequency device; The response data is compared with the set first spatial scene conditions to obtain a first comparison result, and the response data is compared with the set second spatial scene conditions to obtain a second comparison result; The matching device scenario of the radio frequency device is determined based on the first comparison result and the second comparison result; Determine the target device parameters corresponding to the matching device scenario, and control the radio frequency device to output according to the target device parameters.
2. The method according to claim 1, characterized in that, The response data is compared with the set first spatial scene conditions to obtain a first comparison result, including: When the response data includes the ranging value and the number of reflected waves within a preset time period, the ranging value within the preset time period is processed to obtain a first ranging value; the ranging value is the distance between the detected radio frequency device and the target object; the number of reflected waves is the number of reflected waves formed after the detection signal reaches the target object. The first ranging value is compared with a set first ranging threshold to obtain a first ranging comparison result, and the number of reflected waves is compared with a set first number threshold to obtain a first number comparison result. The first comparison result is determined based on the first ranging comparison result and the first quantity comparison result; the first spatial scene conditions include: the first ranging threshold and the first quantity threshold.
3. The method according to claim 2, characterized in that, Determining the first comparison result based on the first ranging comparison result and the first quantity comparison result includes: Extract the distance measurement values at N time points from the distance measurement values within the preset time period; where N is an integer greater than 1. The first ranging deviation between the pairs of time points is determined based on the ranging values of each pair of time points among the N time points, and the first ranging deviation is compared with the set ranging deviation threshold to obtain the deviation comparison result; The first comparison result is determined based on the deviation comparison result, the first distance comparison result, and the first quantity comparison result.
4. The method according to claim 1, characterized in that, The response data is compared with the set second spatial scene conditions to obtain a second comparison result, including: When the response data includes the ranging value and the number of reflected waves within a preset time period, the ranging value within the preset time period is processed to obtain a second ranging value; the ranging value is the distance between the detected radio frequency device and the target object; the number of reflected waves is the number of reflected waves formed after the detection signal reaches the target object. The second ranging value is compared with the set second ranging threshold to obtain the second ranging comparison result, and the number of reflected waves within the preset time period is compared with the set second number threshold to obtain the second number comparison result. The second comparison result is determined based on the second ranging comparison result and the second quantity comparison result; wherein, the second spatial scene conditions include: the second ranging threshold and the second quantity threshold; the second ranging threshold is less than the first ranging threshold; the second quantity threshold is less than the first quantity threshold.
5. The method according to claim 4, characterized in that, The second comparison result is determined based on the second ranging comparison result and the second quantity comparison result, including: Obtain predicted device scenarios based on scenario probabilities determined by different device scenarios; wherein, the scenario probabilities are used to indicate the probability of the radio frequency device under the different device scenarios; An intermediate comparison result is determined based on the second ranging comparison result and the second quantity comparison result. The device scenario indicated by the intermediate comparison result is compared with the predicted device scenario. If the device scenario indicated by the intermediate comparison result is inconsistent with the predicted device scenario, a first scenario weight of the device scenario indicated by the intermediate comparison result and a second scenario weight of the predicted device scenario are determined. The second comparison result is determined based on the first scenario weight and the second scenario weight.
6. The method according to claim 1, characterized in that, Determining the matching device scenario for the radio frequency device based on the first comparison result and the second comparison result includes: If the first comparison result indicates that the response data meets the first spatial scenario condition, and the second comparison result indicates that the response data does not meet the second spatial scenario condition, the matching device scenario of the radio frequency device is determined to be an outdoor scenario. If the first comparison result indicates that the response data does not meet the first spatial scenario conditions and the second comparison result indicates that the response data does not meet the second spatial scenario conditions, or if the first comparison result indicates that the response data meets the first spatial scenario conditions and the second comparison result indicates that the response data meets the second spatial scenario conditions, the matching device scenario of the radio frequency device is determined to be an uncertain scenario. If the first comparison result indicates that the response data does not meet the first spatial scene conditions, and the second comparison result indicates that the response data meets the second spatial scene conditions, then the matching device scene of the radio frequency device is determined to be an indoor scene.
7. The method according to claim 1, characterized in that, Determining the target device parameters that are compatible with the matching device scenario, and controlling the radio frequency device to output according to the target device parameters, includes: When the matching device scenario is an outdoor scenario, at least one first power value adapted to the radio frequency device is determined based on a first power standard, and the target device is controlled to output according to the at least one first power value; the target device parameters include: the at least one first power value; In the case of an indoor scenario or an uncertain scenario, the matching device determines at least one second power value that is compatible with the radio frequency device based on a second power standard, and controls the target device to output according to the at least one second power value; wherein, the first power value is greater than the second power value; the target device parameters include: the at least one second power value.
8. A device control apparatus, characterized in that, include: The acquisition module is used to control the radio frequency device to send a detection signal and to receive the response data of the target object to the detection signal sent by the radio frequency device; The comparison module is used to compare the response data with the set first spatial scene conditions to obtain a first comparison result, and to compare the response data with the set second spatial scene conditions to obtain a second comparison result; The determination module is used to determine the matching device scenario of the radio frequency device based on the first comparison result and the second comparison result; The control module is used to determine the target device parameters corresponding to the matching device scenario and control the radio frequency device to output according to the target device parameters.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method of any one of claims 1 to 7 through the computer program.