Radio frequency state control method and device and communication equipment

The RF state management module uniformly manages the RF operation requests of multi-service modules, and determines the operation of the target service module according to priority, solving the problem of RF state conflict and improving the stability and user experience of communication equipment.

CN120456330APending Publication Date: 2025-08-08FIBOCOM WIRELESS
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510622068.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-14
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

In modern mobile communication equipment, conflicts in RF state settings under concurrent multi-services lead to confusion in RF state, lack of a unified control framework and effective conflict management mechanism, affecting the stability of wireless communication.

Method used

The RF state management module is introduced, which receives RF operation requests from multiple service modules, obtains operation priority in the RF configuration file, determines the target service module, and sends the highest priority operation request to the RF execution module to avoid the execution of requests from other modules, and realizes unified management of RF state.

Benefits of technology

It solves the RF state setting conflict under concurrent multi-services, avoids RF state confusion, and improves the stability of wireless communication and user perception experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120456330A_ABST
    Figure CN120456330A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a radio frequency state control method and device and communication equipment, a radio frequency state management module receives a plurality of radio frequency operation requests from a plurality of service modules, and the radio frequency operation requests are used for requesting to turn off radio frequency or turn on radio frequency; acquiring a radio frequency configuration file, wherein the radio frequency configuration file comprises radio frequency operation priorities corresponding to the plurality of service modules respectively; determining a target service module from the plurality of service modules based on the radio frequency operation priorities corresponding to the plurality of service modules; the radio frequency operation priority corresponding to the target service module is higher than the radio frequency operation priorities corresponding to other service modules except the target service module in the plurality of service modules; and sending a radio frequency operation request from the target service module to a radio frequency execution module. By adopting the embodiment of the invention, the problem of radio frequency state setting conflicts under multi-service concurrency can be solved, and the radio frequency state setting confusion is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a radio frequency state control method, apparatus, and communication equipment. Background Art

[0002] In modern mobile communication devices, radio frequency management is crucial, decisive for device stability and user experience. For example, in personal computer communication modules, such as those based on the Mobile Broadband Interface Model (MBIM) protocol, radio frequency status configuration not only requires responding to radio frequency operation requests from different service modules, but also requires coordinating interactions between the personal computer host and the communication device. Common business scenarios corresponding to different service modules include flight mode switching, device legal authentication, device thermal management, and radio frequency recovery during service switching. Radio frequency operation requests initiated by these services during the same time period may result in conflicting radio frequency configurations, causing confusion in the radio frequency hardware status of the communication device and impacting wireless communication stability.

[0003] Current RF configuration management solutions lack a unified control framework, and multiple service modules independently set RF status, without an effective conflict management mechanism. When multiple application input sources simultaneously modify RF hardware or software status, communication equipment's RF status settings become chaotic.

[0004] Therefore, solutions to conflicts in radio frequency status settings under multiple concurrent services are still under exploration. Summary of the Invention

[0005] The embodiments of the present application provide a radio frequency state control method, apparatus, and communication device, which can solve the problem of radio frequency state setting conflicts under multi-service concurrency and avoid confusion in radio frequency state settings.

[0006] The present application is introduced below from different aspects. It should be understood that the implementation methods and beneficial effects of the following different aspects can be referenced to each other.

[0007] In a first aspect, an embodiment of the present application provides a radio frequency state control method, which can be applied to a radio frequency state management module. The method includes:

[0008] The radio frequency state management module receives multiple radio frequency operation requests from multiple business modules, where the radio frequency operation requests are used to request to shut down or turn on the radio frequency; the multiple radio frequency operation requests include at least one radio frequency operation request to shut down the radio frequency and at least one radio frequency operation request to turn on the radio frequency; the radio frequency state management module obtains a radio frequency configuration file, where the radio frequency configuration file includes radio frequency operation priorities corresponding to the multiple business modules respectively; based on the radio frequency operation priorities corresponding to the multiple business modules respectively, the radio frequency state management module determines a target business module from the multiple business modules; the radio frequency operation priority corresponding to the target business module is higher than the radio frequency operation priorities corresponding to other business modules in the multiple business modules except the target business module; and the radio frequency state management module sends the radio frequency operation request from the target business module to the radio frequency execution module.

[0009] In an embodiment of the present application, when multiple business modules send radio frequency operation requests to the radio frequency state management module at the same time, the radio frequency state management module can determine the target business module from the multiple business modules based on the radio frequency operation priorities corresponding to the multiple business modules in the radio frequency configuration file. The radio frequency operation priority of the target business module is higher than that of other business modules. Then, the radio frequency state management module sends the radio frequency operation request of the target business module to the radio frequency execution module. That is to say, the radio frequency execution module only needs to execute the radio frequency operation request of the target business module and will not receive radio frequency operation requests for executing other business modules. In this way, when multiple businesses send radio frequency operations at the same time, the radio frequency execution module only needs to execute the radio frequency operation request corresponding to the business module (i.e., the target business module) with the highest radio frequency operation priority. This can solve the problem of radio frequency state setting conflicts under the concurrency of multiple businesses and avoid confusion in radio frequency state settings.

[0010] In conjunction with the first aspect, in one feasible implementation, the radio frequency state management module receives a first query request from a radio frequency management driver, the first query request being used to query the current radio frequency state of the radio frequency execution module, the radio frequency state including whether the radio frequency state is off or on; and the radio frequency state management module returns a first response to the radio frequency management driver, the first response including the current radio frequency state of the radio frequency execution module. This can accurately reflect the actual current radio frequency state to the radio frequency management driver.

[0011] In conjunction with the first aspect, in one feasible implementation, the RF operation request of the target service module includes the input source identifier of the target service module. The RF status management module receives a second query request from the RF management driver, the second query request being used to query the input source identifier of the target service module. The input source identifier of the target service module is used to indicate whether the target service module belongs to an internal application module of the device or a user interface display module. The RF status management module returns a second response to the RF management driver, the second response including the input source identifier of the target service module. This helps the RF management driver to query whether the current target service module belongs to an internal application module of the device or a user interface display module.

[0012] In conjunction with the first aspect, in a feasible implementation, the radio state management module receives a radio configuration file update instruction, which is used to update the radio configuration file, thereby facilitating the updating of the radio configuration file at any time and achieving the purpose of dynamically arbitrating radio state priorities.

[0013] In a second aspect, an embodiment of the present application provides a radio frequency state control method, which can be applied to radio frequency management driving.

[0014] The method includes:

[0015] The RF management driver receives the current RF state of the RF execution module; sends a second query request to the RF state management module, the second query request being used to query the input source identifier of the target service module, the input source identifier of the target service module being used to indicate that the target service module belongs to an internal application module of the device or a user interface display module; and receives a second response from the RF state management module, the second response including the input source identifier of the target service module. When the input source identifier indicates that the target service module belongs to the user interface display module, the RF management driver sends the current RF state of the RF execution module to the user interface.

[0016] In an embodiment of the present application, when the RF management driver receives the current RF state of the RF execution module, it triggers it to query the RF state management module for the input source identifier of the target business module. The input source identifier of the target business module is used to indicate that the target business module belongs to the internal application module of the device or the user interface display module. If the input source identifier queried by the RF management driver indicates that the target business module belongs to the user interface display module, the RF management driver will send the current RF state of the RF execution module to the user interface. Because the RF operation request initiated by the user interface display module requires user perception, the RF management driver needs to report the RF state to the user. Therefore, the embodiment of the present application can filter the RF state that needs to be reported to the user and improve the user perception experience.

[0017] In conjunction with the second aspect, in one feasible implementation, when the input source identifier indicates that the target service module belongs to an internal device application module, the RF management driver discards the current RF status of the RF execution module. This facilitates intercepting RF status that does not need to be reported to the user interface, improving the user experience.

[0018] In a third aspect, an embodiment of the present application provides a radio frequency state control device for executing the method in the first aspect or any possible implementation of the first aspect. The radio frequency state control device includes:

[0019] a receiving module, configured to receive multiple radio frequency operation requests from multiple service modules, the radio frequency operation requests being used to request turning off or turning on a radio frequency; the multiple radio frequency operation requests including at least one radio frequency operation request requesting turning off a radio frequency and at least one radio frequency operation request requesting turning on a radio frequency;

[0020] An acquisition module, configured to acquire a radio frequency configuration file, the radio frequency configuration file including radio frequency operation priorities corresponding to the plurality of service modules;

[0021] a determination module, configured to determine a target service module from the multiple service modules based on the radio frequency operation priorities respectively corresponding to the multiple service modules; the radio frequency operation priority corresponding to the target service module is higher than the radio frequency operation priorities corresponding to other service modules in the multiple service modules except the target service module;

[0022] The sending module is used to send the radio frequency operation request from the target service module to the radio frequency execution module.

[0023] In combination with the third aspect, in a feasible implementation, the receiving module is further used to receive a first query request from the RF management driver, where the first query request is used to query the current RF status of the RF execution module, where the RF status includes whether the RF status is off or on; the receiving module is specifically used to return a first response to the RF management driver, where the first response includes the current RF status of the RF execution module.

[0024] In conjunction with the third aspect, in one feasible implementation, the RF operation request of the target service module includes an input source identifier of the target service module. The receiving module is further configured to receive a second query request sent by the RF management driver, the second query request being used to query the input source identifier of the target service module, the input source identifier of the target service module being used to indicate that the target service module belongs to an internal application module or a user interface display module of the device; the receiving module is specifically configured to return a second response to the RF management driver, the second response including the input source identifier of the target service module.

[0025] In conjunction with the third aspect, in a feasible implementation, the receiving module is further configured to receive a radio frequency configuration file update instruction, where the radio frequency configuration file update instruction is used to update the radio frequency configuration file.

[0026] In a fourth aspect, an embodiment of the present application provides a radio frequency state control device for executing the method in the second aspect or any possible implementation of the second aspect. The radio frequency state control device includes:

[0027] A receiving module, configured to receive the current radio frequency status of the radio frequency execution module;

[0028] a sending module, configured to send a second query request to the radio frequency state management module, wherein the second query request is used to query the input source identifier of the target service module, where the input source identifier of the target service module is used to indicate that the target service module belongs to an internal application module of the device or a user interface display module;

[0029] The receiving module is further configured to receive a second response returned from the radio frequency state management module, where the second response includes the input source identifier of the target service module.

[0030] The sending module is further configured to send the current radio frequency state of the radio frequency execution module to the user interface when the input source identifier indicates that the target service module belongs to the user interface display module.

[0031] In combination with the fourth aspect, in a feasible implementation, the above-mentioned radio frequency state control device also includes a discarding module, which is used to discard the current radio frequency state of the radio frequency execution module when the input source identifier indicates that the target service module belongs to an internal application module of the device.

[0032] In a fifth aspect, embodiments of the present application provide a communication device, which may include a processor, a memory, and a network interface, wherein the processor is connected to the memory and the network interface. The network interface is configured to provide data communication functionality, the memory is configured to store a computer program, and the processor is configured to invoke the computer program, so that the communication device executes the radio frequency state control method provided by the first aspect or any feasible implementation of the first aspect, thereby achieving the beneficial effects of the radio frequency state control method provided by the first aspect.

[0033] In a sixth aspect, embodiments of the present application provide a communication device, which may include a processor, a memory, and a network interface, wherein the processor is connected to the memory and the network interface. The network interface is configured to provide data communication functionality, the memory is configured to store a computer program, and the processor is configured to invoke the computer program, so that the communication device executes the radio frequency state control method provided in the second aspect or any feasible implementation of the second aspect, thereby achieving the beneficial effects of the radio frequency state control method provided in the second aspect.

[0034] In the seventh aspect, an embodiment of the present application provides a computer-readable storage medium for storing a computer program. When the computer program is run on a communication device, the communication device executes the radio frequency state control method provided by the above-mentioned first aspect, or second aspect, or any possible implementation of any aspect, and can also achieve the beneficial effects of the mirror recovery method provided by the first aspect or the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0036] Figure 1 This is a schematic diagram of a scenario architecture in which a radio frequency state control method provided in an embodiment of the present application can be applied;

[0037] Figure 2 This is a schematic diagram of a scenario architecture to which another radio frequency state control method provided in an embodiment of the present application can be applied;

[0038] Figure 3 This is a flow chart of a radio frequency state control method provided in an embodiment of the present application;

[0039] Figure 4 This is a flow chart of another radio frequency state control method provided in an embodiment of the present application;

[0040] Figure 5 This is a structural diagram of a radio frequency state control device provided in an embodiment of the present application;

[0041] Figure 6 1 is a structural diagram of another radio frequency state control device provided in an embodiment of the present application;

[0042] Figure 7 It is a structural diagram of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0044] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is merely a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" means one or more, and "plurality" means two or more. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c; a and b; a and c; b and c; or a, b, and c. Among them, a, b, and c can be single or multiple.

[0045] In this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary," "for example," or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary," "for example," or "for example" is intended to present the relevant concepts in a concrete way.

[0046] It should be understood that in this application, "when", "if" and "if" all mean that the device will perform corresponding processing under certain objective circumstances, and do not limit the time. It does not require that the device must perform a judgment action when it is implemented, nor does it mean that there are other limitations.

[0047] Elements used in the singular herein are intended to mean "one or more" rather than "one and only one" unless specifically stated otherwise.

[0048] It is understood that in each embodiment of the present application, "A corresponds to B" means that there is a corresponding relationship between A and B, and B can be determined based on A. However, it should also be understood that determining B based on A does not mean determining B based solely on A, and B can also be determined based on A and / or other information.

[0049] In order to better understand the radio frequency state control method, apparatus and communication device disclosed in the embodiments of the present application, the following first describes the scenario architecture to which the embodiments of the present application can be applied. Figure 1 , Figure 1 This is a schematic diagram of a scenario architecture in which a radio frequency state control method provided in an embodiment of the present application can be applied, such as Figure 1 As shown, the architecture may include a modem, an application processor, and a host. For example, the user clicks on the flight mode on the interface of the host side, and the user wireless wide area network (WWAN) service module on the host side generates a "turn off radio frequency" request. The application processor receives the request, and through internal priority scheduling (if there is no high-priority service conflict at present), calls the attention (AT) command processing module to send an AT command to the modem to turn off the radio frequency. The modem executes the AT command to turn off the radio frequency, turns off the radio frequency circuit, updates the hardware radio frequency tag, and feeds back the result to the application processor, which then notifies the host side to update the interface display.

[0050] Among them, the modem may include a chip platform RF management module, an RF driver and an RF antenna, etc. The chip platform RF management module may include a Mobile Broadband Interface Model (MBIM) message software RF tag and an MBIM message hardware RF tag. The MBIM message software RF tag can be used for the software RF state defined in the MBIM standard protocol, and the MBIM message hardware RF tag can be used for the hardware RF state defined in the MBIM standard protocol. The final user interface display is determined by both the software and hardware tags. The RF driver is the software (or firmware) component that controls the RF hardware module in the modem. The RF antenna is the core hardware component in the modem that implements wireless signal transmission.

[0051] The application processor may include an internal RF application module, an AT command processing module, a service switching RF recovery module, a thermal management module, an MBIM message processing module, and a high-speed Peripheral Component Interconnect Express (PCIE) driver. For example, the internal RF application module may be used to meet RF customization requirements within the communication device, such as "no network search without a card." When a specific card is not inserted in the communication device, the device's RF module will not actively perform network searches. The AT command processing module may be used to process AT commands within the communication device, such as implementing the RF-related "AT+CFUN" command. The service switching RF recovery module may be responsible for managing specific service switching and RF state adjustments. When the communication device has multiple service modes and the user sets airplane mode, the module may periodically switch to another service mode and turn on the RF to complete data services, then immediately switch back to airplane mode after the data services are completed. The thermal management module may be used to manage the internal temperature of the communication device. For example, when the temperature is too high, the module may request to shut down the RF. The MBIM message processing module may be used to process MBIM commands issued by the user or MBIM requests related to RF. The PCIE driver can be used to identify devices connected to the PCIE bus and communicate with these devices.

[0052] The host may include a device legal authentication service, a user WWAN service, an MBIM service module, a basic input / output system (BIOS) and a PCIE driver. The device legal authentication service may be used for communication device legal authentication services. For example, for illegal communication devices, a request may be made to turn off the radio frequency of the communication device. The user WWAN service may be used to manage user requests. For example, after the user clicks on the flight mode, the service will execute it. The MBIM service module may be responsible for parsing and generating messages that comply with the MBIM protocol. It may encapsulate the host's instructions into MBIM messages and send them to mobile broadband devices (such as modems). It may also parse the MBIM messages returned from the device and convert them into information that the host can understand. The BIOS may be used for users to adjust various hardware parameters and system settings of the computer through the BIOS setup interface.

[0053] See also Figure 2 , Figure 2 This is a schematic diagram of a scenario architecture to which another radio frequency state control method provided in an embodiment of the present application can be applied. Figure 1As shown, the architecture can include a personal computer and a communication device. With the support of appropriate software and system architecture, the personal computer can be used as a host computer. The personal computer can also refer to a terminal device, such as a smartphone, a device used in a vehicle system, etc. The communication device includes a communication module, which is a core component of the communication device. Its main function is to realize the communication function, be responsible for communicating with the external network, complete radio wave transmission and reception, channel noise filtering, and conversion between analog signals and digital signals. Therefore, this architecture can also be regarded as a "host computer + communication module" scenario architecture. The arrows of the interaction between the personal computer and the communication device can represent the personal computer and the communication device sending data or instructions to each other.

[0054] The personal computer side may include user mode and kernel mode. The user mode may include a user interface flight mode setting / display interface, a web browser / application, and a wireless wide area network service (Wireless Wide Area Network Service, WWANSvc). Among them, the user interface flight mode setting / display interface provides the user with an interface for intuitively operating the flight mode. The user can turn the flight mode on or off through the interface, and the interface will display the current flight mode status in real time. For example, it is presented in the quick settings bar or system settings menu of a laptop. The web browser / application is used for network-related applications that users use daily, such as browsers, office software, etc. When flight mode is turned on, the network connection of these applications will be affected. The wireless wide area network service can be responsible for managing wireless wide area network-related functions, such as connecting to the operator network. When the user operates the flight mode, it will receive instructions and cooperate with other modules to handle the opening and closing of the network connection. Kernel mode can include the Network Driver Interface Specification User-Mode I / O (NDISUIO), the Transmission Control Protocol / Internet Protocol stack, the Network Driver Interface Specification (NDIS), the User Airplane Mode Management Driver, the Network Adapter Client Extension (NetAdapterCX), the Wireless Wide Area Network Network Driver (WwanNet Driver), and the Mobile Broadband Callout Extension (MBBCX). The Network Driver Interface Specification User-Mode I / O is an interface for interacting with the network driver in user mode, allowing user-mode applications to communicate directly with network devices and can be used to transmit specific network control commands or obtain network status information. The Transmission Control Protocol (TCP) in the TCP / Internet Protocol stack is a key protocol in the protocol stack, establishing a reliable connection through a three-way handshake. The Internet Protocol (IP) provides connectionless datagram transmission services, responsible for sending data packets from the source host to the destination host, using the IP address to determine the data packet transmission path. The network driver interface specification defines the interface standard between network drivers and operating systems, enabling network drivers from different manufacturers to function properly on operating systems such as Windows. It manages the transmission and reception of network data. The user flight mode management driver can include a device active reporting message module and an upper-layer application request message module.The network adapter client extension can provide extended functions for the network adapter, assist in managing network connections, collaborate with the wireless wide area network network driver, and handle the establishment and disconnection of network connections and operations related to flight mode. The wireless wide area network network driver can be responsible for controlling wireless wide area network devices (such as 4G / 5G modems) to realize functions such as data transmission and reception, device configuration, etc. Cooperate with the network adapter client extension to adjust the device working status according to the flight mode status. The mobile broadband annotation extension can expand and manage mobile broadband related functions, and is also related to flight mode management, assisting in processing network connection related operations.

[0055] Data flow on the PC side can represent the flow of data between different modules, for example, a double arrow pointing from one module to another and labeled "Data." Control flow can represent the control over the order and flow of operations in the system. It determines when and how each operation is executed and is usually related to instructions, signals, or events. For example, a double arrow pointing from one module to another and labeled "WWAN OIDs," "OIDs," and "MBIM." WWAN OIDs can represent Wireless Wide Area Network Object Identifiers, and MBIM can represent Mobile Broadband Interface Model.

[0056] The communication device side may include an application processor (AP) and a modem (Modem) in a Linux system environment. The application processor includes an AT command processing module, an MBIM message processing module, and a service switching RF recovery module, a thermal management module, a device legitimacy authentication service module, an internal RF application module, a network selection application module, and a RF status management module in the software application unified development framework. The AT command processing module, the MBIM message processing module, and the service switching RF recovery module, the thermal management module, the device legitimacy authentication service module, and the internal RF application module in the software application unified development framework have been described above. Figure 1The corresponding text section is described and will not be repeated here. The network selection application module can be used by the user to manually issue a network switching instruction on the device, such as switching from a mobile data network to a Wi-Fi network, or switching from one Wi-Fi network to another. After receiving the instruction, the network selection application module can request to set the radio frequency status, close the currently used radio frequency connection (if any), and request to open the corresponding radio frequency to search for and connect to the target network. The radio frequency status management module may include a radio frequency request management module, a radio frequency request arbitration module, a radio frequency priority configuration file, and a radio frequency request execution module. The radio frequency request management module can manage and record radio frequency operation requests from different modules and organize the request queue. The radio frequency request arbitration module can be used to arbitrate and determine the execution order according to preset rules (such as radio frequency operation priority) when multiple radio frequency operation requests are concurrent. The radio frequency priority configuration file can be used to store radio frequency operation priority information corresponding to each service module or request, providing an arbitration basis for the arbitration module. The radio frequency request execution module can send specific radio frequency operation instructions to the modem for execution based on the arbitration results. The RF execution unit of this chip platform is the hardware unit in the modem that actually performs RF signal processing operations, including signal modulation, demodulation, amplification, filtering, etc., to achieve the conversion between RF signals and digital signals.

[0057] Embodiments of the present application Figure 2 This scenario architecture, using the user flight mode management driver as an example, can address the limitations of the communication device architecture. Even if the RF management framework of certain devices is closed or does not allow direct control, this architecture still enables centralized management of the RF status through the driver layer. This allows the host computer to dynamically control the RF status without being affected by the hardware limitations of the communication device.

[0058] The above content describes the communication scenario architecture that can be applied in the embodiments of the present application. In order to better understand the technical solutions of the embodiments of the present application, several terms or nouns related to the present application are briefly introduced below to facilitate understanding by technical personnel in this field.

[0059] 1. Radio Frequency Status Management Module

[0060] Radio Frequency Status Management Module (see Figure 2) can act as the "RF status control center" of the communication equipment, and all operation requests for the RF will be arbitrated through this module. This module can include the following core steps: (1) Adopt multi-service conflict management. Using a voting mechanism, the RF shutdown operation follows the "OR" logic, that is, if any service requests to shut down the RF, the RF will be shut down; the RF startup operation follows the "AND" logic, that is, if all services require the RF to be turned on, the RF will be turned on. (2) Provide status query. Provide an interface to the RF management driver for querying the current RF status to ensure that the device RF configuration is reasonably unified between different service requests. (3) Maintain priority configuration files. By maintaining a RF arbitration priority configuration file, manage the RF priority of the device in the current state, and support updating this file to achieve flexible configuration of the RF arbitration priority.

[0061] 2. RF Management Driver

[0062] RF management driver Figure 2 The user flight mode management driver in is described as an example. The user flight mode management driver is inserted into the host driver architecture. It is located before the device driver and the client user layer in the host of the terminal device. For example, taking the Windows host as an example, it is located between the Network Driver Interface Specification (NDIS) module and the Network Adapter Client Extension (NetAdapterCX), and acts as a filter driver to intercept and manage the radio frequency configuration. The driver includes the following core steps: (1) Intercept or filter radio frequency operation requests. When the user switches the flight mode in the user interface, or other external business modules trigger radio frequency operation requests, the driver intercepts or filters the triggered radio frequency operation requests. (2) Send query requests. The driver can interact with the radio frequency status management module on the communication device side, send query requests, and confirm the current radio frequency status. (3) Shield unnecessary status reports. It can collaborate with the radio frequency status management module on the communication device side to intercept the internal business modules of the device (such as Figure 1 and Figure 2 The RF status changes caused by the thermal management module and the service switching RF recovery module in the driver layer prevent the driver layer from actively reporting the current RF status to the upper computer, avoiding reporting RF status that does not require user perception to the user, resulting in inconsistency between the user interface and the expected RF configuration.

[0063] 3. RF Execution Module

[0064] The RF execution module can refer to Figure 2The chip platform RF execution unit or RF request execution module can directly execute the RF on or off module according to the RF operation request. Among them, the chip platform RF execution unit involves the RF function execution at the chip level, which is closely related to the underlying hardware operation and can directly control the RF-related circuits, signals, etc. to realize the RF on and off. For example, Figure 2 The RF request execution module receives and interprets RF operation requests and sends specific execution instructions to the chip platform's RF execution unit. Therefore, the chip platform's RF execution unit is the module that ultimately executes the RF on / off operation. However, if the RF request execution module includes complete control logic and hardware interfaces and can directly control the RF circuit's on / off state, then the RF request execution module can also execute the RF on / off operation.

[0065] See Figure 3 , Figure 3 This is a flow chart of a radio frequency state control method provided by an embodiment of the present application. Figure 3 As shown, the method includes but is not limited to the following steps:

[0066] Step S301: Multiple service modules send multiple radio frequency operation requests to the radio frequency state management module, where the radio frequency operation requests are used to request to turn off or turn on the radio frequency; the multiple radio frequency operation requests include at least one radio frequency operation request to turn off the radio frequency and at least one radio frequency operation request to turn on the radio frequency.

[0067] In one possible implementation, the radio frequency status management module receives multiple radio frequency operation requests from multiple business modules. The business module may include a user interface display module and / or a device internal application module. Exemplarily, the core of the user interface display module is the interactive entrance for direct user operation, and radio frequency operations are triggered through interface elements (buttons, switches, notifications, etc.). For example, the user's flight mode setting / display module requests to set the radio frequency status operation. If it is a laptop, it can be triggered by pressing the "Fn+F2" key combination. For example, the "Wi-Fi switch", "Bluetooth switch" and "Mobile data switch" in the drop-down menu of the mobile phone directly trigger the radio frequency on / off request when the user clicks.

[0068] The internal application module of the device can be a background automation or system-level functional module, which actively sends radio frequency operation requests based on policy, status or task requirements. The internal application module of the device can be called an internal radio frequency application module. For example, when the device detects that a subscriber identity module (SIM) card is not inserted, it will enter the no-card, no-network search mode by default. The internal radio frequency application module of the communication device can request the radio frequency status module to adjust the current radio frequency working status according to the system settings. In this mode, mobile devices such as mobile phones can stop searching for mobile network frequency bands and turn off related radio frequency circuits to save power. For example, when a communication device needs to obtain location information (such as Beidou positioning), the internal positioning service module can request to turn on the positioning radio frequency, and request to turn it off after the positioning is completed to save power consumption.

[0069] In one possible implementation, each service module corresponds to one RF operation request, which can be used to request turning the RF off or on. For example, each service module, based on its own functional requirements, sends a corresponding operation request to the RF status management module to control the RF status. For example, when the user turns on RF mode, the flight mode setting / display interface in the user interface display module sends a RF operation request to turn the RF off; and when the user turns off RF mode, it sends a RF operation request to turn the RF on. Therefore, among the multiple RF operation requests, there is at least one RF operation request to turn the RF off and at least one RF operation request to turn the RF on. In other words, among all the RF operation requests sent by multiple service modules, there are both requests to turn the RF off and requests to turn the RF on. For example, the device legitimacy authentication service may require the RF to be turned on for network verification in certain circumstances, while the thermal management module may request to turn the RF off to reduce power consumption due to reasons such as device overheating.

[0070] Step S302: The radio frequency state management module obtains a radio frequency configuration file, where the radio frequency configuration file includes radio frequency operation priorities corresponding to a plurality of service modules.

[0071] In one possible implementation, the RF configuration file includes RF operation priorities corresponding to multiple business modules. The setting of RF operation priority can be set according to the importance of the business module, user needs or system stability. For example, modules related to core business usually have a higher priority. For mobile phones, the call function is the core business, so the RF operation priority of the call-related business module (such as the voice call control module) will be relatively high. For another example, the priority of the business module that the user frequently uses or sets may be higher. If the user frequently uses wireless fidelity Wi-Fi to surf the Internet, the RF operation priority involved in Wi-Fi surfing the Internet may be set higher. In order to ensure the stable operation of the system, some business modules used for system monitoring and maintenance will have a higher priority. For example, the thermal management module of the communication equipment needs to adjust the RF status in time when the communication equipment is overheated, and its priority may be higher.

[0072] For example, Table 1 shows the radio frequency operation priorities corresponding to each service module in the radio frequency configuration file. It should be noted that the service modules in the table are only exemplary enumerations. The specific priority settings of radio frequency operations will be adjusted according to factors such as the type of device, application scenario, and user needs, and are not limited here.

[0073] Table 1

[0074]

[0075]

[0076] In one possible implementation, the RF configuration file can be read directly from local storage. For example, the RF configuration file is stored in the local storage of a communication device, such as the flash memory of an embedded device or the hard drive of a computer. For a mobile phone, it can be stored in a specific directory on the system partition. Upon startup, the RF status management module can access the storage device using a preset file path and use the corresponding file read function to retrieve the contents of the configuration file. For example, in Linux, the RF status management module can use system calls such as open() and read() to read files.

[0077] In one possible implementation, the RF configuration file can be loaded during system initialization. For example, the RF configuration file can be embedded in the communication device's firmware during production. During the communication device startup process, the RF status management module loads the RF configuration file from the firmware during the system initialization phase. For example, a computer comes with a default RF configuration file installed at the factory.

[0078] In one possible implementation, the RF configuration file can be downloaded from a server. For example, when the communication device supports network connectivity, the RF status management module can download the RF configuration file from the server via a network protocol. The RF status management module can first establish a connection with the server and send a download request. Upon receiving the request, the server sends the RF configuration file to the communication device, which then receives and stores the file. For example, in an IoT device, the communication device can periodically request the latest configuration file from the server.

[0079] In one possible implementation, the radio state management module receives a radio configuration file update instruction, which is used to update the radio configuration file. Exemplarily, the radio state management module may receive the radio configuration file update instruction via a system interface. The radio state management module parses the parameters in the instruction to determine the content of the configuration file to be updated. For example, the module may parse the radio configuration file update instruction to determine whether it modifies the priority of a service module or adds or deletes the configuration of a service module. If the radio configuration file update instruction requires replacing the entire configuration file, the radio state management module may delete the old file and load the new file (e.g., by obtaining a new radio configuration file via the network). If the radio configuration file update instruction requires partial modification of the radio configuration file, the radio state management module may directly modify the corresponding field in the radio configuration file, such as adjusting the priority of the Wi-Fi module from "medium" to "high." This embodiment of the present application allows a communication device to dynamically update the radio configuration file via software instructions to adjust the radio policy, without requiring hardware modifications, thus adapting to diverse scenarios. Furthermore, it can support real-time or on-demand updates to ensure that radio resources are always allocated according to the latest rules using the new radio configuration file.

[0080] In one possible implementation, the RF configuration file includes RF conflict rules followed by multiple business modules. A system typically contains multiple business modules, and different business modules may have different requirements for RF status, which can easily lead to conflicts. For example, a business module may need to turn off the RF to save power, while another business module may need to turn on the RF for data transmission. At this point, a set of rules is needed to coordinate these different requirements, ensure the rational use of RF resources, and avoid system confusion or performance degradation due to conflicts. For example, through a designed voting mechanism, each business module's request for RF operation is regarded as a "vote." By counting and analyzing these "votes," the final RF status is determined according to preset logical rules.

[0081] For example, the "OR" logic is used for the radio frequency shutdown operation. When any service requests to shut down the radio frequency, the radio frequency will be shut down. Suppose there are three service modules A, B, and C in the system. Service module A requests to shut down the radio frequency because the device battery is low; service modules B and C need to transmit data at this time and request to turn on the radio frequency. According to the "OR" logic, since service module A requests to shut down the radio frequency, the radio frequency will eventually be shut down. For the radio frequency startup operation, the "AND" logic is used. The radio frequency will only be turned on when all services require it to be turned on. Suppose there are still the three service modules A, B, and C mentioned above. Service module A requests to turn on the radio frequency because it needs to receive important network notifications; service module B needs to download files and requests to turn on the radio frequency; but service module C is in standby mode and does not need to turn on the radio frequency. According to the "AND" logic, since service module C does not require to turn on the radio frequency, the radio frequency will eventually not be turned on.

[0082] In one possible implementation, if the radio configuration file includes both radio operation priorities corresponding to multiple service modules and radio conflict rules followed by the multiple service modules, illustratively, under this arbitration rule, upon receiving a request, the radio state management module may classify the request into two categories: on / off. Within each category, the radio operation requests from each service module are sorted according to their corresponding radio operation priorities, and the highest priority radio operation request within each category is determined. If the radio conflict rule followed by multiple service modules is "OR logic for radio off operations: if any service requests to turn off the radio, the radio is turned off; and AND logic for radio on operations: if all services request to turn on the radio, the radio is turned on," then when processing a radio off request, the radio state management module should decide to turn off the radio if any service module requests to turn off the radio, regardless of its priority. For radio on requests, the central module will only decide to turn on the radio if all service modules request to turn on the radio. If any service module does not request to turn on the radio, the AND logic is not satisfied, and the radio will not be turned on. It should be noted that as service requirements change, the arbitration rules and service module priorities in the radio configuration file can be adjusted according to user requirements, and the above examples do not limit this solution.

[0083] Step S303: Based on the radio frequency operation priorities corresponding to the multiple service modules, a target service module is determined from the multiple service modules; the radio frequency operation priority corresponding to the target service module is higher than the radio frequency operation priorities corresponding to other service modules in the multiple service modules except the target service module.

[0084] In one possible implementation, the radio state management module may collect information about all service modules that initiate radio operation requests in the same time period, record the identifier of each service module and its corresponding radio operation request, and then determine a target service module from multiple service modules based on the radio operation priority in the radio configuration file. The radio operation priority corresponding to the target service module is higher than the radio operation priorities corresponding to the other service modules in the multiple service modules except the target service module. That is, among all service modules that initiate radio operation requests at the same time, the service module identified as the target service module has a higher radio operation priority than any other service module. For example, assume there are service modules A, B, C, and D, each with a different radio operation priority. After the radio state management module determines based on established rules (such as the radio operation priorities corresponding to the multiple service modules mentioned above, or the radio conflict rules followed by the multiple service modules), it determines service module B as the target service module. At this point, the radio operation priority of service module B is higher than the radio operation priorities of modules A, C, and D. Therefore, when making radio operation decisions, the radio operation requirements of service module B are prioritized and met. If service module B requests to shut down the radio, even if other service modules request different radio operations (such as turning the radio on), service module B's request will be executed because it has the highest priority. This helps when multiple service modules have different radio operation requirements simultaneously. This helps coordinate and allocate resources based on the priorities in the radio configuration file, ensuring that the system operates according to established rules and service importance, and avoiding conflicts and confusion in radio status settings.

[0085] Step S304: the radio frequency state management module sends the radio frequency operation request from the target service module to the radio frequency execution module.

[0086] In one possible implementation, the RF state management module and the RF execution module can be connected through a specific hardware bus. After determining the RF operation request of the target business module, the RF state management module can encode the RF operation request of the target business module (such as a request to turn on or off the RF) into a data format suitable for bus transmission. In some cases, the RF state management module can send simple control signals to the RF execution module through a dedicated signal pin. In addition, developers can define a dedicated communication protocol to standardize the communication between the RF state management module and the RF execution module.

[0087] In an embodiment of the present application, when multiple business modules simultaneously send radio frequency operation requests to the radio frequency state management module, the radio frequency state management module can determine the target business module from the multiple business modules based on the radio frequency operation priorities corresponding to the multiple business modules in the radio frequency configuration file. The radio frequency operation priority of the target business module is higher than that of other business modules. Then, the radio frequency state management module sends the radio frequency operation request of the target business module to the radio frequency execution module. That is to say, the radio frequency execution module only needs to execute the radio frequency operation request of the target business module and will not receive radio frequency operation requests for executing other business modules. In this way, when multiple businesses send radio frequency operations concurrently, the radio frequency execution module will only execute the radio frequency operation request corresponding to the business module with the highest radio frequency operation priority. This can solve the problem of radio frequency state setting conflicts under multiple concurrent businesses and avoid confusion in radio frequency state settings.

[0088] See Figure 4 , Figure 4 FIG. 1 is a flow chart of another radio frequency state control method provided in an embodiment of the present application. Figure 4 As shown, the method includes but is not limited to the following steps:

[0089] The following steps S401-S404 are for configuring radio frequency with multiple input sources, which can be understood as how the device sets the current radio frequency state when multiple service modules send radio frequency operation requests at the same time.

[0090] Step S401: Multiple first business modules (referring to Figure 4 Multiple business modules in the sending of multiple first radio frequency operation requests, where the first radio frequency operation requests are used to request to turn off the radio frequency or turn on the radio frequency; among the multiple first radio frequency operation requests, there is at least one first radio frequency operation request requesting to turn off the radio frequency and at least one first radio frequency operation request requesting to turn on the radio frequency.

[0091] Step S402: The radio frequency state management module obtains a radio frequency configuration file, where the radio frequency configuration file includes radio frequency operation priorities corresponding to a plurality of first service modules.

[0092] Step S403: Based on the radio frequency operation priorities corresponding to the multiple first business modules, the radio frequency status management module determines a first target business module from the multiple first business modules; the radio frequency operation priority corresponding to the first target business module is higher than the radio frequency operation priorities corresponding to other business modules in the multiple first business modules except the first target business module.

[0093] Step S404: The radio frequency state management module sends a first radio frequency operation request from the first target service module.

[0094] In one possible implementation, the implementation of steps S401 to S404 in the embodiment of the present application can refer to the implementation of steps S301 to S304 in the aforementioned embodiment, and will not be repeated here.

[0095] In one possible implementation, after step S404, the user interface can query the RF status of the current device. Exemplarily, the user interface sends a query request to the RF management driver, and the RF management driver receives the query request from the user interface. The query request is used to query the current RF status of the RF execution module. Then, the RF management driver sends a first query request to the RF status management module. The first query request is used to query the current RF status of the RF execution module. The RF status includes whether the RF status is off or on. Accordingly, the RF status management module receives the first query request from the RF management driver, and the RF status management module returns a first response to the RF management driver. The first response includes the current RF status of the RF execution module. The RF management driver receives the first response returned from the RF status management module. The RF management driver sends a first message to the user interface. The first message includes the current RF status of the RF execution module.

[0096] Exemplarily, the user interface generates a query request with the content "Is the current radio frequency turned on?" and sends it to the radio frequency management driver. After receiving the query request, the radio frequency management driver encapsulates it into a first query request and sends it to the radio frequency status management module. It should be noted that the driver layer can shield the underlying hardware details so that the user interface does not need to care about the specific implementation of the radio frequency execution module (such as chip differences between different manufacturers). After receiving the first query request, the radio frequency status management module obtains the real-time status of the radio frequency from the radio frequency execution module (which can be read through hardware registers or called through the driver interface). The radio frequency execution module returns the current radio frequency status to the radio frequency status management module. The status management module encapsulates the current radio frequency status of the radio frequency execution module as a first response and returns it to the radio frequency management driver. After receiving the first response, the radio frequency management driver extracts key information (such as "on" or "off"), generates a first message, and sends it to the user interface. After parsing the message, the user interface updates the display (such as a highlighted signal icon indicates on, and a gray signal indicates off). The embodiment of the present application allows the user interface to accurately reflect the actual status of the current radio frequency hardware in real time.

[0097] The following steps are the process where, after executing steps S401-S404, the input source modifies the radio frequency status and the radio frequency execution module actively reports the radio frequency status.

[0098] Step S405: One or more second business modules (referring to Figure 4One or more service modules in the radio frequency state management module) sends one or more second radio frequency operation requests to the radio frequency state management module, where the second radio frequency operation request is used to request to turn off the radio frequency or turn on the radio frequency.

[0099] In one possible implementation, the second service module is different from the first service module, that is, the second RF operation request sent by the second service module is also different from the first RF operation request. If multiple second service modules send multiple second RF operation requests to the RF state management module, the multiple second RF operation requests include at least one RF operation request requesting to turn off the RF and / or at least one RF operation request requesting to turn on the RF. It is understandable that because it is a newly sent second RF operation request, the second RF operation request does not necessarily require a RF operation request conflict. The multiple second RF operation requests may only include at least one RF operation request requesting to turn off the RF or at least one RF operation request requesting to turn on the RF. The second RF operation request needs to be compared with the first RF operation request for RF operation priority.

[0100] Step S406: The radio frequency state management module obtains a radio frequency configuration file, where the radio frequency configuration file includes radio frequency operation priorities corresponding to multiple first service modules and one or more second service modules.

[0101] In a possible implementation, the radio frequency configuration file includes not only radio frequency operation priorities corresponding to multiple first service modules, but also radio frequency operation priorities corresponding to one or more second service modules.

[0102] Step S407: Based on the radio frequency operation priorities respectively corresponding to the multiple first service modules and the one or more second service modules, the radio frequency state management module determines a second target service module from the multiple first service modules and the one or more second service modules.

[0103] In one possible implementation, if a second service module sends a second radio frequency operation request to the radio frequency state management module, and the second radio frequency operation request includes a radio frequency operation request requesting to shut down the radio frequency or a radio frequency operation request requesting to turn on the radio frequency, the radio frequency state management module determines a second target service module from the first service modules and the second service module based on the radio frequency operation priorities corresponding to the first service modules and the second service module, respectively. The radio frequency operation priority corresponding to the second target service module is higher than the radio frequency operation priority corresponding to the first target service module.

[0104] In one possible implementation, if multiple second service modules send multiple second RF operation requests to the RF state management module, the second RF operation requests are used to request to turn off or turn on the RF. Among the multiple second RF operation requests, there is at least one RF operation request requesting to turn off the RF and at least one RF operation request requesting to turn on the RF. Based on the RF operation priorities corresponding to the multiple first service modules and the multiple second service modules, the RF state management module determines a second target service module from the multiple first service modules and the multiple second service modules. The RF operation priority corresponding to the second target service module is higher than the RF operation priority corresponding to the first target service module, as well as the RF operation priorities corresponding to the other second service modules in the multiple second service modules except the second target service module.

[0105] Step S408: The radio frequency state management module sends a second radio frequency operation request from the second target service module to the radio frequency execution module.

[0106] In one possible implementation, the multiple second service modules in steps S405-S408 may refer to user interface display modules and / or device internal application modules, and one second service module may refer to one user interface display module or one device internal application module. When the RF operation priority corresponding to the second target service module is higher than the RF operation priority corresponding to the first target service module, and the RF operation priority corresponding to the second target service module is higher than the RF operation priority corresponding to the first target service module and the RF operation priority corresponding to other second service modules except the second target service module in the multiple second service modules, the RF state management module sends a second RF operation request from the second target service module to the RF execution module. In other words, the RF execution module needs to modify the current RF state to the RF state corresponding to the second RF operation request of the second target service module.

[0107] In one possible implementation, when the RF operation priority corresponding to the second target service module is lower than the RF operation priority corresponding to the first target service module, the RF state management module does not send the second RF operation request to the RF execution module. In other words, the RF execution module maintains the current RF state unchanged.

[0108] Exemplarily, after one or more second service modules successfully initiate the operation of modifying the radio frequency state, it means that other second service modules have changed the state of the current radio frequency, such as from the on state to the off state, or from the off state to the on state.

[0109] Step S409: The radio frequency execution module sends the current radio frequency status of the radio frequency execution module to the radio frequency management driver.

[0110] In one possible implementation, if the second business module changes the current radio frequency state, the radio frequency execution module can send the current radio frequency state of the radio frequency execution module to the radio frequency management driver, and accordingly, the radio frequency management driver receives the current radio frequency state of the radio frequency execution module. In other words, if another second business module modifies the current radio frequency state and the modification is successful, the radio frequency execution module can actively notify the radio frequency management driver of the radio frequency state of the current radio frequency execution module. It can be understood that the radio frequency execution module can actively send its own current radio frequency state to the radio frequency management driver, and this active notification mechanism can enable the radio frequency management driver to obtain the latest radio frequency state of the radio frequency execution module in a timely and accurate manner. As a bridge connecting the radio frequency execution module and other upper-level modules (such as the user interface, etc.), the radio frequency management driver can obtain the radio frequency state information of the radio frequency execution module in a timely manner, and then further pass the information to other related modules, so that the entire system can synchronize the modified radio frequency state in a timely manner.

[0111] Step S410: The radio frequency management driver sends a second query request to the radio frequency status management module.

[0112] In one possible implementation, the RF operation request of the second target service module includes an input source identifier of the second target service module. After receiving the current RF status of the RF execution module, the RF management driver may send a second query request to the RF status management module. The RF status management module receives the second query request from the RF management driver. The second query request is used to query the input source identifier of the second target service module. The input source identifier of the second target service module is used to indicate that the second target service module belongs to an internal application module or a user interface display module of the device.

[0113] For example, when a second target service module (such as an internal application module or a user interface display module) sends a second RF operation request to the RF state management module, the second RF operation request includes an input source identifier (e.g., a tag field with a value of 0x01 for an internal application module and 0x02 for a user interface display module). After processing the received second RF operation request and determining the second target service module, the RF state management module can associate the input source identifier of the second RF operation request with the current second RF operation request (e.g., the "on" or "off" RF state) and store the information in an internal state management table or cache. After the RF execution module completes the RF state change (e.g., from "off" to "on"), it can proactively report the current RF state to the RF management driver. If the RF management driver needs to further determine the type of the second target service module corresponding to the current RF state (i.e., whether the input source is an internal application or a user interface), it can send a second query request to the RF state management module. The core purpose of this second query request is to reversely query the input source identifier of the second target service module that triggered the current RF state based on the current RF state. The second query request needs to include key information that can uniquely identify the current radio frequency state, so that the radio frequency state management module can locate the input source identifier of the corresponding second target service module.

[0114] Step S411: the radio frequency state management module returns a second response to the radio frequency management driver. Accordingly, the radio frequency management driver receives the second response returned from the radio frequency state management module, where the second response includes the input source identifier of the second target service module.

[0115] In one possible implementation, the "second response" is the RF state management module's reply to the RF management driver's "second query request." Its core function is to feed back the input source identifier of the second target service module to the driver layer (e.g., the RF management driver), enabling the driver layer to know the input source corresponding to the current RF state (i.e., the input source represents the device's internal application module or user interface display module). The second response may include at least the following information: the input source identifier of the second target service module (e.g., 0x01 or 0x02), used to clarify whether the second RF operation request issued above comes from the device's internal application module or the user interface display module; the name of the second target service module, the operation timestamp (which can be used for traceability and verification), etc.

[0116] Step S412: When the input source identifier indicates that the second target service module belongs to the user interface display module, the radio frequency management driver sends the current radio frequency state of the radio frequency execution module to the user interface.

[0117] For example, when the input source of the target service module is identified as "user interface display module," this means that the radio frequency operation request (such as turning the radio frequency on or off) directly comes from a user interaction (for example, the user manually clicks the "Wi-Fi switch" on the screen). In this case, the display state of the user interface must be strictly synchronized with the radio frequency state of the radio frequency execution module to ensure that the user can perceive the control of the device.

[0118] As can be understood, the RF management driver, acting as an intermediate layer connecting the communication device and the upper-layer interface (user interface), can query the RF status module for the input source identifier of the second target service module after receiving a RF status change notification from the RF execution module in the communication device. The RF management driver then determines whether to report the current RF status to the user interface based on the input source identifier of the second target service module. If the input source identifier of the second target service module indicates the user interface display module, the RF management driver can proactively send the current RF status to the user interface, ensuring that the results of user operations are displayed in real time.

[0119] Step S413: When the input source identifier indicates that the second target service module belongs to an internal application module of the device, the radio frequency management driver discards the current radio frequency state of the radio frequency execution module.

[0120] Exemplarily, "discarding" does not mean physical deletion, but rather refers to the system ignoring, intercepting, or not processing the RF status reported by the RF execution module. Specifically, after receiving a second RF operation request from an internal application module, the RF management driver will not report the current RF status to the user interface, even though the RF execution module's current RF status has changed. This is because operations on the user interface display module are generally considered "direct user intervention" and require real-time state synchronization (for example, after a user clicks "Turn Wi-Fi Off," the interface must immediately display "Off"). Operations on internal device application modules (such as background automatic calibration of RF signals) are considered "system-internal scheduling," and their state changes do not require user awareness or must avoid interfering with user interface consistency. For example, an internal device application may temporarily enable the RF to send data and automatically disable it upon completion. However, the RF switch status in the user interface should retain the result of the user's last operation (e.g., "On" or "Off"), rather than changing frequently with temporary internal device operations. It should be understood that internal device applications may frequently change the RF state due to periodic tasks (such as timed signal scanning). If the system-recorded state is updated for each change, the user interface display may flicker or become cluttered. Discarding the status feedback of internal applications ensures that the state of the user interface is determined only by user operations, improving the user experience.

[0121] In one possible implementation, assume that the input source identifier 0x01 represents the internal application module, and 0x02 represents the user interface display module. When the internal application module (with input source identifier 0x01) sends a radio operation modification request (e.g., "radio on") to the radio state management module, the radio state management module determines to modify the current radio state based on the arbitration rules contained in the configuration file. Specifically, the radio state management module sends a second radio operation request for a second target service to the radio execution module. After receiving the second radio operation request from the radio state management module, the radio execution module turns on the radio and can proactively report the modified radio state (e.g., "radio on") to the radio management driver. The radio state before the modification is assumed to be "off." If the radio management driver obtains the input source identifier 0x01 from the internal application module through a second query request, it triggers the "discard" logic, meaning that no radio state update message is sent to the user interface. The user interface continues to display the previous state (e.g., "radio off"). In this case, if the user interface queries the current radio status, what is returned is the radio status resulting from the user's last operation (e.g., radio status is "off"), rather than the actual radio status modified by the internal application module (e.g., radio status is "on").

[0122] For example, a user clicks the "Wi-Fi" switch on the terminal device's settings interface, triggering the user interface display module to send a radio frequency operation request (to turn off Wi-Fi). The request carries an input source identifier (e.g., 0x02 representing the user interface). Based on the arbitration rules contained in the configuration file, the state management module determines that the second service module is the second target service module and sends a "turn off radio frequency" instruction to the radio frequency execution module. The radio frequency execution module executes the radio frequency shutdown operation and can report to the radio frequency management driver that the current radio frequency status is "off." After receiving the current radio frequency status, the radio frequency management driver can query the radio frequency state management module for the input source identifier of the second target service module. When the radio frequency management driver obtains the input source identifier of the second target service module, and the input source identifier is 0x02, indicating the user interface display module, it can trigger the radio frequency management driver to send a message to the user interface indicating that the current radio frequency status is "off." After receiving the message, the user interface immediately updates the display (e.g., the Wi-Fi icon turns gray and the switch button displays "off").

[0123] The arbitration notification reporting mechanism in the above-mentioned radio frequency management driver can be configured according to user needs. The embodiment of the present application is only an example and does not constitute a limitation here.

[0124] In an embodiment of the present application, when the RF management driver receives the current RF state of the RF execution module, it triggers it to query the RF state management module for the input source identifier of the second target business module. The input source identifier of the second target business module is used to indicate that the second target business module belongs to the internal application module of the device or the user interface display module. If the input source identifier queried by the RF management driver indicates that the second target business module belongs to the user interface display module, the RF management driver will send the current RF state of the RF execution module to the user interface. Because the RF operation request initiated by the user interface display module requires user perception, the RF management driver needs to report the current RF state to the user. Therefore, the embodiment of the present application can filter the RF state that needs to be reported to the user and improve the user perception experience.

[0125] The above describes in detail the method of the embodiment of the present application, and the following provides an apparatus of the embodiment of the present application.

[0126] See Figure 5 , Figure 5 : is a structural diagram of a radio frequency state control device provided in an embodiment of the present application, and the radio frequency state control device may include:

[0127] A receiving module 501 is configured to receive multiple radio frequency operation requests from multiple service modules, where the radio frequency operation requests are used to request to turn off or turn on a radio frequency; the multiple radio frequency operation requests include at least one radio frequency operation request to turn off a radio frequency and at least one radio frequency operation request to turn on a radio frequency;

[0128] An acquisition module 502 is configured to acquire a radio frequency configuration file, where the radio frequency configuration file includes radio frequency operation priorities corresponding to the multiple service modules.

[0129] a determination module 503 configured to determine a target service module from the multiple service modules based on the radio frequency operation priorities respectively corresponding to the multiple service modules; the radio frequency operation priority corresponding to the target service module being higher than the radio frequency operation priorities corresponding to other service modules in the multiple service modules except the target service module;

[0130] The sending module 504 is configured to send the radio frequency operation request from the target service module to the radio frequency execution module.

[0131] In a feasible implementation, the receiving module 501 is also used to receive a first query request from the RF management driver, where the first query request is used to query the current RF status of the RF execution module, where the RF status includes whether the RF status is off or on; the receiving module 501 is specifically used to return a first response to the RF management driver, where the first response includes the current RF status of the RF execution module.

[0132] In a feasible implementation, the receiving module 501 is further used to receive a second query request sent from the RF management driver, where the second query request is used to query the input source identifier of the target business module, and the input source identifier of the target business module is used to indicate that the target business module belongs to an internal application module or a user interface display module of the device; the receiving module 501 is specifically used to return a second response to the RF management driver, where the second response includes the input source identifier of the target business module.

[0133] In a feasible implementation, the receiving module 501 is further configured to receive a radio frequency configuration file update instruction, where the radio frequency configuration file update instruction is used to update the radio frequency configuration file.

[0134] In an embodiment of the present application, a receiving module 501 receives multiple RF operation requests from multiple service modules, and an acquiring module 502 acquires a RF configuration file, which includes the RF operation priorities corresponding to the multiple service modules. A determining module 503 determines a target service module from the multiple service modules based on the RF operation priorities corresponding to the multiple service modules. The RF operation priority corresponding to the target service module is higher than the RF operation priorities corresponding to other service modules in the multiple service modules except the target service module. A sending module 504 sends the RF operation request from the target service module to the RF execution module. This resolves the issue of conflicting RF status settings under concurrent multi-service scenarios and avoids confusion in RF status settings.

[0135] See Figure 6 , Figure 6 : is a structural diagram of another radio frequency state control device provided in an embodiment of the present application, and the radio frequency state control device may include:

[0136] The receiving module 601 is configured to receive the current radio frequency status of the radio frequency execution module;

[0137] A sending module 602 is configured to send a second query request to the radio frequency state management module, where the second query request is used to query the input source identifier of the target service module, where the input source identifier of the target service module is used to indicate that the target service module belongs to an internal application module of the device or a user interface display module;

[0138] The receiving module 601 is further configured to receive a second response returned from the radio frequency state management module, where the second response includes the input source identifier of the target service module.

[0139] The sending module 602 is further configured to send the current radio frequency state of the radio frequency execution module to the user interface when the input source identifier indicates that the target service module belongs to the user interface display module.

[0140] In a feasible implementation, the radio frequency state control device further includes a discarding module 603, configured to discard the current radio frequency state of the radio frequency execution module when the input source identifier indicates that the target service module belongs to an internal application module of the device.

[0141] In an embodiment of the present application, the receiving module 601 receives the current RF state of the RF execution module, and the sending module 602 sends a second query request to the RF state management module. The second query request is used to query the input source identifier of the target business module. The input source identifier of the target business module is used to indicate that the target business module belongs to the device's internal application module or the user interface display module. The receiving module 601 receives a second response returned from the RF state management module, and the second response includes the input source identifier of the target business module. When the input source identifier indicates that the target business module belongs to the user interface display module, the sending module 602 sends the current RF state of the RF execution module to the user interface. This can filter the RF state that needs to be reported to the user, thereby improving the user's perceived experience.

[0142] See Figure 7 , Figure 7 7 is a schematic diagram of the structure of a communication device provided in an embodiment of the present application. It can be used to implement the steps of the radio frequency state control method described in any of the above embodiments. The communication device may include: a processor 701, a memory 702, a network interface 703, and a bus system 704.

[0143] The memory 702 includes, but is not limited to, RAM, ROM, EPROM, or CD-ROM, and is used to store relevant instructions and data. The memory 702 stores the following elements, executable modules, or data structures, or a subset thereof, or an extended set thereof:

[0144] Operation instructions: include various operation instructions, used to implement various operations.

[0145] Operating system: includes various system programs used to implement various basic services and process hardware-based tasks.

[0146] The memory 702 also includes a network communication module, a user interface module, a device control application program, and the like.

[0147] Figure 7 Only one memory is shown in the figure. Of course, the memory can also be set to multiple as needed.

[0148] Processor 701 can be a controller, CPU, general-purpose processor, DSP, ASIC, FPGA, or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the embodiments of this application, such as determining a target service module from multiple service modules as described in Example 1. Processor 701 can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on.

[0149] The network interface 703 can provide network communication functions, and can optionally include a standard wired interface or a wireless interface (such as a WI-FI interface), such as the router used in the embodiment of the present application.

[0150] In a specific application, the various components of the communication device are coupled together via a bus system 704, wherein the bus system 704 may include a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity, Figure 7 In FIG. 7 , various buses are labeled as bus system 704. For ease of representation, Figure 7 The drawing is only schematic.

[0151] It should be noted that in practical applications, the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of the hardware in the processor or an instruction in the form of software. The above-mentioned processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The disclosed methods, steps and logic block diagrams in the embodiment of the present application can be implemented or executed.

[0152] It is understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). It should be noted that the memory described in the embodiments of the present application is intended to include, but is not limited to, these and any other suitable types of memory.

[0153] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0154] In short, the above description is only a preferred embodiment of the technical solution of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included in the scope of protection of this application.

Claims

1. A radio frequency state control method, characterized in that: Applied to the radio frequency status management module, the method includes: receiving a plurality of radio frequency operation requests from a plurality of service modules, the radio frequency operation requests being used to request turning off a radio frequency or turning on a radio frequency; wherein the plurality of radio frequency operation requests include at least one radio frequency operation request requesting turning off a radio frequency and at least one radio frequency operation request requesting turning on a radio frequency; Obtain a radio frequency configuration file, where the radio frequency configuration file includes radio frequency operation priorities corresponding to the multiple service modules respectively; Determining a target service module from the multiple service modules based on the radio frequency operation priorities respectively corresponding to the multiple service modules; the radio frequency operation priority corresponding to the target service module is higher than the radio frequency operation priorities corresponding to other service modules in the multiple service modules except the target service module; Sending a radio frequency operation request from the target service module to a radio frequency execution module.

2. The method according to claim 1, wherein After sending the radio frequency operation request from the target service module to the radio frequency execution module, the method further includes: Receive a first query request from a radio frequency management driver, where the first query request is used to query a current radio frequency state of the radio frequency execution module, where the radio frequency state includes whether the radio frequency state is off or on; Return a first response to the radio frequency management driver, where the first response includes the current radio frequency state of the radio frequency execution module.

3. The method according to claim 1, wherein The radio frequency operation request of the target service module includes an input source identifier of the target service module, and the method further includes: receiving a second query request sent by the radio frequency management driver, where the second query request is used to query the input source identifier of the target service module, where the input source identifier of the target service module is used to indicate that the target service module belongs to an internal application module of the device or a user interface display module; A second response is returned to the radio frequency management driver, where the second response includes the input source identifier of the target service module.

4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: A radio frequency configuration file update instruction is received, where the radio frequency configuration file update instruction is used to update the radio frequency configuration file.

5. A radio frequency state control method, characterized in that: Applied to radio frequency management driver, the method includes: Receive the current radio frequency status of the radio frequency execution module; Sending a second query request to the radio frequency state management module, where the second query request is used to query the input source identifier of the target service module, where the input source identifier of the target service module is used to indicate that the target service module belongs to an internal application module of the device or a user interface display module; receiving a second response returned from the radio frequency state management module, where the second response includes an input source identifier of the target service module; When the input source identifier indicates that the target service module belongs to a user interface display module, the current radio frequency state of the radio frequency execution module is sent to the user interface.

6. The method according to claim 5, wherein The method further comprises: When the input source identifier indicates that the target service module belongs to an internal application module of the device, the current radio frequency state of the radio frequency execution module is discarded.

7. A radio frequency state control device, characterized in that: include: A receiving module, configured to receive multiple radio frequency operation requests from multiple service modules, wherein the radio frequency operation requests are used to request to turn off or turn on the radio frequency; Among the multiple radio frequency operation requests, there is at least one radio frequency operation request requesting to turn off the radio frequency and at least one radio frequency operation request requesting to turn on the radio frequency; An acquisition module, configured to acquire a radio frequency configuration file, wherein the radio frequency configuration file includes radio frequency operation priorities corresponding to the plurality of service modules respectively; a determination module, configured to determine a target service module from the multiple service modules based on the radio frequency operation priorities respectively corresponding to the multiple service modules; the radio frequency operation priority corresponding to the target service module is higher than the radio frequency operation priorities corresponding to other service modules in the multiple service modules except the target service module; The sending module is configured to send the radio frequency operation request from the target service module to the radio frequency execution module.

8. A radio frequency state control device, characterized in that: include: A receiving module is used to receive the current radio frequency status of the radio frequency execution module; a sending module, configured to send a second query request to the radio frequency state management module, where the second query request is used to query an input source identifier of a target service module, where the input source identifier of the target service module is used to indicate that the target service module belongs to an internal application module of the device or a user interface display module; The receiving module is further configured to receive a second response returned from the radio frequency state management module, where the second response includes an input source identifier of the target service module; The sending module is further configured to send the current radio frequency state of the radio frequency execution module to the user interface when the input source identifier indicates that the target service module belongs to the user interface display module.

9. A communication device, characterized in that: include: processor, memory, and network interface; The processor is connected to the memory and the network interface, wherein the network interface is used to provide a data communication function, the memory is used to store a computer program, and the processor is used to call the computer program so that the communication device executes the method according to any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which is loaded and executed by a processor, so that a communication device having the processor executes the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Wi-Fi and Bluetooth coexisting radio frequency scheduling method and device

    CN113727316A

  • Communication and positioning method, communication module, equipment and storage medium

    CN116437485A

  • Radio frequency resource control method and device, and computer readable storage medium

    CN117750515A

  • Method and apparatus for arbitration in a wireless device

    US20090063740A1

  • Management method and apparatus for supporting multiple SIM cards to share RF processor

    US20180152937A1