Chip control method, electronic equipment and storage medium
By using a coordinated control strategy to wake up the communication unit to handle broadband and narrowband services when the chip is in sleep mode, and adjusting the sleep state according to the task, the power consumption problem in the prior art is solved, and the chip's battery life and data transmission reliability are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING SMARTCHIP MICROELECTRONICS TECHNOLOGY CO LTD
- Filing Date
- 2025-12-25
- Publication Date
- 2026-05-05
AI Technical Summary
In existing technologies, chips that process narrowband services cannot handle high-bandwidth data, while chips that process broadband services generate unnecessary power consumption when processing low-frequency narrowband services, failing to meet the requirements for long battery life.
By waking up the first and/or second communication units based on a collaborative control strategy when the chip is in sleep mode, respectively handling broadband and narrowband communication services, and entering different depths of sleep mode when the task is completed or there is no task, the power supply can be controlled to turn on and off, avoiding unnecessary power consumption.
It reduces unnecessary power consumption when handling broadband and narrowband communication services, improves the chip's battery life, adapts to complex mixed service scenarios, and ensures the reliability of data transmission.
Smart Images

Figure CN121985398A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of chip control technology, and in particular relates to a chip control method, electronic device and storage medium. Background Technology
[0002] To enable data transmission between various sensor nodes in a power grid, chips are typically deployed at each sensor node, such as chips for broadband services and chips for narrowband services.
[0003] However, chips that process narrowband services cannot handle high-bandwidth data, while chips that process broadband services generate unnecessary power consumption during standby and idle periods when processing low-frequency narrowband services, thus failing to meet the requirements for long battery life. Summary of the Invention
[0004] This application aims to address at least one of the technical problems existing in the prior art. To this end, this application proposes a chip control method, electronic device, and storage medium to reduce unnecessary power consumption when the same chip can compatiblely handle both narrowband and broadband services.
[0005] In a first aspect, this application provides a chip control method applied to a target chip, the target chip including a main control unit, a power management unit, a first communication unit, and a second communication unit; the method includes: When the target chip is in sleep mode and the target wake-up conditions are met, the main control unit sends a target wake-up command to the power management unit to control the power management unit to wake up the first communication unit and / or the second communication unit; the first communication unit is used to process broadband communication services, and the second communication unit is used to process narrowband communication services. Based on a collaborative control strategy, the first communication unit and / or the second communication unit are controlled to operate collaboratively.
[0006] According to the chip control method of this application, when the target chip is in a sleep state and the target wake-up conditions are met, the main control unit sends a target wake-up command to the power management unit; the power management unit wakes up the first communication unit and / or the second communication unit based on the target wake-up command; the first communication unit is used to process broadband communication services, and the second communication unit is used to process narrowband communication services; based on a cooperative control strategy, the first communication unit and / or the second communication unit are controlled to operate in coordination, so that the target chip can process broadband communication services and narrowband communication services in coordination through the first communication unit and the second communication unit, avoiding unnecessary power consumption generated by relying on the first communication unit, which has the capability to process broadband communication services, to process narrowband communication services.
[0007] According to one embodiment of this application, the sleep state includes a first sleep state; after controlling the first communication unit and / or the second communication unit to operate collaboratively based on a collaborative control strategy, the method further includes: If the first communication unit completes the processing of the broadband communication task and no broadband or narrowband communication task is received within a first preset time, the main control unit sends a first sleep command to the power management unit. The power management unit shuts down the power supply of the first communication unit based on the first sleep instruction, thereby controlling the target chip to enter the first sleep state.
[0008] According to one embodiment of this application, the sleep state includes a second sleep state; the first sleep instruction includes a second preset time, the second preset time being the duration for which the target chip maintains the first sleep state; after the power management unit shuts down the power supply of the first communication unit based on the first sleep instruction to control the target chip to enter the first sleep state, the method further includes: When the target chip is in the first sleep state and no broadband communication task or narrowband communication task is received within the second preset time, the main control unit sends a second sleep command to the power management unit. The power management unit controls the target chip to enter a second sleep state based on the second sleep instruction.
[0009] According to one embodiment of this application, the second sleep instruction includes a third preset time and a fourth preset time; after the power management unit controls the target chip to enter the second sleep state based on the second sleep instruction, the method includes: When the target chip is in the second sleep state and the timing value for the first communication unit is greater than or equal to the third preset time, the power management unit turns on the power of the first communication unit. and / or When the target chip is in the second sleep state and the timing value for the second communication unit is greater than or equal to the fourth preset time, the power management unit turns on the power of the second communication unit.
[0010] According to one embodiment of this application, when the target chip is in a sleep state and the target wake-up conditions are met, the main control unit sends a target wake-up command to the power management unit to control the power management unit to wake up the first communication unit and / or the second communication unit, including: When the target chip is in sleep mode and receives a broadband communication task, the main control unit sends a first wake-up command to the power management unit so that the power management unit turns on the power of the first communication unit. and / or When the target chip is in sleep mode and receives a narrowband communication task, the main control unit sends a second wake-up command to the power management unit so that the power management unit can turn on the power of the second communication unit.
[0011] According to one embodiment of this application, based on a cooperative control strategy, controlling the first communication unit and / or the second communication unit to operate cooperatively includes: When the first communication unit is processing a broadband communication task and receives a narrowband communication task, the main control unit determines the priority of the broadband communication task and the narrowband communication task. When the priority of a broadband communication task is lower than that of a narrowband communication task, the main control unit sends a first mode switching instruction to the power management unit. The first mode switching instruction is used to instruct the first communication unit to suspend the processing of the broadband communication task and the second communication unit to start the processing of the narrowband communication task. Based on the first mode switching instruction, the power management unit shuts down the power supply of the first communication unit and turns on the power supply of the second communication unit.
[0012] According to one embodiment of this application, based on a cooperative control strategy, controlling the first communication unit and / or the second communication unit to operate cooperatively includes: When the second communication unit is processing a narrowband communication task and receives a broadband communication task, the main control unit determines the priority of the broadband communication task and the narrowband communication task. When the priority of a narrowband communication task is lower than that of a broadband communication task, the main control unit sends a second mode switching command to the power management unit. The second mode switching command is used to instruct the second communication unit to suspend the processing of the narrowband communication task and the first communication unit to start the processing of the broadband communication task. Based on the second mode switching command, the power management unit shuts down the power supply of the second communication unit and turns on the power supply of the first communication unit.
[0013] Secondly, this application provides a target chip for implementing the steps of the chip control method described in the first aspect.
[0014] Thirdly, this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the chip control method described in the first aspect.
[0015] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the chip control method described in the first aspect.
[0016] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the chip control method described in the first aspect.
[0017] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0018] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which: Figure 1 This is one of the flowcharts illustrating the chip control method provided in the embodiments of this application; Figure 2 This is a second schematic flowchart of the chip control method provided in the embodiments of this application; Figure 3 This is the third flowchart illustrating the chip control method provided in the embodiments of this application; Figure 4 This is a schematic diagram of the structure of the target chip provided in the embodiments of this application; Figure 5 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0019] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0020] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0021] The chip control method, electronic device, and readable storage medium provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.
[0022] The chip control method can be applied to the target chip, which can be deployed on the terminal. The chip control method can be executed by the hardware or software in the terminal.
[0023] The terminal includes, but is not limited to, portable communication devices such as mobile phones or tablets with touch-sensitive surfaces (e.g., touchscreen displays and / or touchpads). It should also be understood that, in some embodiments, the terminal may not be a portable communication device, but rather a desktop computer with touch-sensitive surfaces (e.g., touchscreen displays and / or touchpads).
[0024] The following embodiments describe a terminal including a display and a touch-sensitive surface. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and joystick.
[0025] The chip control method provided in this application embodiment can be executed by an electronic device or a functional module or entity in an electronic device that can implement the chip control method. The electronic devices mentioned in this application embodiment include, but are not limited to, mobile phones, tablets, computers, cameras, and wearable devices. The chip control method provided in this application embodiment will be described below using an electronic device as the execution subject.
[0026] like Figure 1 As shown, the chip control method is applied to a target chip, which includes a main control unit, a power management unit, a first communication unit, and a second communication unit; the chip control method includes steps 110 and 120.
[0027] Step 110: When the target chip is in sleep mode and the target wake-up conditions are met, the main control unit sends a target wake-up command to the power management unit to control the power management unit to wake up the first communication unit and / or the second communication unit; the first communication unit is used to process broadband communication services, and the second communication unit is used to process narrowband communication services.
[0028] In actual implementation, the target chip can be a chip in the power grid field, deployed on any network node for data transmission, or a chip in any field. This application does not impose any specific restrictions on this.
[0029] In actual execution, the target wake-up condition can be the prerequisite for activating the first communication unit and / or the second communication unit, so that the first communication unit and / or the second communication unit are in a listening state.
[0030] In actual implementation, the power management unit is the core of power control in the target chip and is never powered off. It can include a power management unit (PMU), a low-power real-time clock (RTC), and key logic for power and clock control.
[0031] In actual execution, the main control unit includes the main processor (such as a RISC-V MCU), shared memory, and system peripherals, and its power state is dynamically adjusted according to the overall task requirements of the target chip.
[0032] In actual implementation, the first communication unit can be used to handle broadband communication services with high-speed, high-data-volume communication protocols, such as WiFi communication services. The second communication unit is used to handle narrowband communication services, such as BLE communication services.
[0033] In actual implementation, the first communication unit may include a first processor, MAC layer logic, and a high-speed PHY interface. The power supply of the first communication unit can be independently controlled by the power management unit.
[0034] In actual implementation, the second communication unit may include a second processor, MAC layer logic, and a high-speed PHY interface. The power supply of the second communication unit can be independently controlled by the power management unit to avoid unnecessary power consumption.
[0035] In some embodiments, the power management unit wakes up the first communication unit upon receiving a broadband communication task or upon reaching a wake-up time for the first communication unit.
[0036] In some embodiments, the power management unit wakes up the second communication unit upon receiving a narrowband communication task or upon reaching a wake-up time for the second communication unit.
[0037] Step 120: Based on the collaborative control strategy, control the first communication unit and / or the second communication unit to operate collaboratively.
[0038] In actual implementation, the main control unit and the power management unit can precisely control the power supply of the first communication unit and the second communication unit based on a cooperative control strategy, so as to control the first communication unit and the second communication unit to operate in coordination.
[0039] In some embodiments, the main control unit and the power management unit may, based on a cooperative control strategy, turn off the power supply to the second communication unit and supply power only to the first communication unit, so that the first communication unit can listen to or process broadband communication tasks; or the main control unit and the power management unit may, based on a cooperative control strategy, turn off the power supply to the first communication unit and supply power only to the second communication unit, so that the second communication unit can listen to or process narrowband communication tasks.
[0040] In some embodiments, the main control unit can control the target chip to enter a sleep state if no broadband communication task or narrowband communication task is received within a predetermined time period.
[0041] According to the chip control method of this application embodiment, when the target chip is in a sleep state and the target wake-up conditions are met, the main control unit sends a target wake-up command to the power management unit; the power management unit wakes up the first communication unit and / or the second communication unit based on the target wake-up command; the first communication unit is used to process broadband communication services, and the second communication unit is used to process narrowband communication services; based on a cooperative control strategy, the first communication unit and / or the second communication unit are controlled to operate in coordination, so that the target chip can process broadband communication services and narrowband communication services in coordination through the first communication unit and the second communication unit, avoiding unnecessary power consumption generated by relying on the first communication unit, which has the capability to process broadband communication services, to process narrowband communication services.
[0042] In some embodiments, the sleep state includes a first sleep state; after controlling the first communication unit and / or the second communication unit to operate collaboratively based on a collaborative control strategy, if the first communication unit completes the processing of a broadband communication task and no broadband or narrowband communication task is received within a first preset time, the main control unit sends a first sleep instruction to the power management unit; the power management unit shuts down the power supply of the first communication unit based on the first sleep instruction, so as to control the target chip to enter the first sleep state.
[0043] In actual execution, the first sleep state means that the target chip is in a shallow sleep state that keeps the power on. The target chip's central processing unit is suspended, but the power supply to the central processing unit and memory (SRAM) is maintained to achieve fast wake-up and no data loss.
[0044] In actual execution, the first preset time can be a pre-set time length. For example, the first preset time can be a time length set based on actual experiments, with the goal of minimizing the power consumption of the target chip.
[0045] In some embodiments, the main control unit may acquire a first preset time.
[0046] In some embodiments, after the first communication unit completes the processing of the broadband communication task, the main control unit detects whether there are any broadband communication tasks and narrowband communication tasks waiting to be processed. If there are no broadband communication tasks and narrowband communication tasks waiting to be processed, and no broadband communication task or narrowband communication task is received within a first preset time, the main control unit generates a first sleep instruction and sends the first sleep instruction to the power management unit.
[0047] In some embodiments, after receiving a first sleep command, the power management unit stops supplying power to the first communication unit, and if no broadband or narrowband communication task is received within a first preset time, controls the target chip to enter a first sleep state. For example, if no broadband or narrowband communication task is received within 10 minutes, the power management unit controls the target chip to enter a first sleep state.
[0048] According to the chip control method of this application embodiment, when the target chip is in a sleep state and the target wake-up condition is met, the main control unit sends a target wake-up command to the power management unit; the power management unit wakes up the first communication unit and / or the second communication unit based on the target wake-up command; the first communication unit is used to process broadband communication services, and the second communication unit is used to process narrowband communication services; based on a cooperative control strategy, the first communication unit and / or the second communication unit are controlled to operate cooperatively; when the first communication unit completes the processing of the broadband communication task and no broadband communication task or narrowband communication task is received within a first preset time, the main control unit sends a first sleep command to the power management unit; the power management unit turns off the power of the first communication unit based on the first sleep command, so as to control the target chip to enter the first sleep state, so that the target chip enters the first sleep state when there is no communication task processing, thereby reducing unnecessary power consumption.
[0049] In some embodiments, the sleep state includes a second sleep state; the first sleep instruction includes a second preset time, which is the duration for which the target chip remains in the first sleep state; after the power management unit shuts down the power of the first communication unit based on the first sleep instruction to control the target chip to enter the first sleep state, and the target chip is in the first sleep state and no broadband communication task or narrowband communication task is received within the second preset time, the main control unit sends a second sleep instruction to the power management unit; the power management unit controls the target chip to enter the second sleep state based on the second sleep instruction.
[0050] In actual execution, the second sleep state means that the power supply to both the first and second communication units of the target chip is turned off, and the power management unit only maintains the real-time clock and AON logic function.
[0051] In actual execution, the second preset time can be a pre-set time length. For example, the second preset time can be a time length set based on actual experiments, with the goal of minimizing the power consumption of the target chip.
[0052] In some embodiments, after the target chip enters a first sleep state, if no broadband communication task or narrowband communication task is received within a second preset time, the main control unit generates a second sleep instruction and sends the second sleep instruction to the power management unit.
[0053] In some embodiments, after the target chip enters a first sleep state, if no broadband communication task or narrowband communication task is received within a second preset time, the main control unit may calculate the time when the first communication unit is in a closed state and the time when the second communication unit is in a closed state, and generate a second sleep instruction based on the time when the first communication unit is in a closed state and the time when the second communication unit is in a closed state.
[0054] In some embodiments, after receiving the second sleep command, the power management unit shuts down the power supply of the main control unit, the first communication unit, and the second communication unit based on the second sleep command, so as to control the target chip to enter the second sleep state.
[0055] In some embodiments, when the second communication unit completes the processing of the narrowband communication task and no broadband or narrowband communication task is currently received, the power supply of the first communication unit has been turned off, and the main control unit sends a third sleep instruction to the power management unit; based on the third sleep instruction, the power management unit turns off the power supply of the second communication unit to control the target chip to enter the second sleep state.
[0056] According to the chip control method of this application embodiment, when the target chip is in a sleep state and the target wake-up condition is met, the main control unit sends a target wake-up command to the power management unit; the power management unit wakes up the first communication unit and / or the second communication unit based on the target wake-up command; the first communication unit is used to process broadband communication services, and the second communication unit is used to process narrowband communication services; based on a cooperative control strategy, the first communication unit and / or the second communication unit are controlled to operate cooperatively. When the target chip is in a first sleep state and no broadband communication task or narrowband communication task is received within a second preset time, the main control unit sends a second sleep command to the power management unit; the power management unit controls the target chip to enter the second sleep state based on the second sleep command, so that the target chip enters a deep sleep state when there is no communication task processing, thereby reducing unnecessary power consumption.
[0057] In some embodiments, the second sleep instruction includes a third preset time and a fourth preset time; after the power management unit controls the target chip to enter the second sleep state based on the second sleep instruction, when the target chip is in the second sleep state and the timing value for the first communication unit is greater than or equal to the third preset time, the power management unit turns on the power of the first communication unit; and / or, when the target chip is in the second sleep state and the timing value for the second communication unit is greater than or equal to the fourth preset time, the power management unit turns on the power of the second communication unit.
[0058] In actual execution, the third preset time is the length of time the target chip periodically wakes up the first communication unit from the second sleep state. The fourth preset time is the length of time the target chip periodically wakes up the second communication unit from the second sleep state.
[0059] In some embodiments, the main control unit can obtain a third preset time and a fourth preset time based on historical communication duration and a preset communication period. For example, the main control unit can obtain the third preset time based on a first historical synchronization time point of the target chip and a preset communication period, where the first historical synchronization time point is the historical synchronization time point of broadband communication between the first communication unit in the target chip and the network. For example, the main control unit can obtain the fourth preset time based on a second historical synchronization time point of the target chip and a preset communication period, where the second historical synchronization time point is the historical synchronization time point of narrowband communication between the second communication unit in the target chip and the network.
[0060] In some embodiments, after the target chip enters a second sleep state, the power management unit can time the sleep state of the first communication unit based on a real-time clock. If the time value for the first communication unit is greater than or equal to a third preset time, the power management unit turns on the power to the first communication unit.
[0061] In some embodiments, after the target chip enters a second sleep state, the power management unit can time the sleep state of the second communication unit based on a real-time clock. If the time value for the second communication unit is greater than or equal to a fourth preset time, the power management unit turns on the power to the second communication unit.
[0062] According to the chip control method of this application embodiment, when the target chip is in a sleep state and the target wake-up conditions are met, the main control unit sends a target wake-up command to the power management unit; the power management unit wakes up the first communication unit and / or the second communication unit based on the target wake-up command; the first communication unit is used to process broadband communication services, and the second communication unit is used to process narrowband communication services; based on a cooperative control strategy, the first communication unit and / or the second communication unit are controlled to operate in coordination, so that the target chip can process broadband communication services and narrowband communication services in coordination through the first communication unit and the second communication unit, avoiding unnecessary power consumption generated by relying on the first communication unit, which has the capability to process broadband communication services, to process narrowband communication services.
[0063] In some embodiments, when the target chip is in a sleep state and receives a broadband communication task, the main control unit sends a first wake-up command to the power management unit to enable the power management unit to power on the first communication unit; and / or when the target chip is in a sleep state and receives a narrowband communication task, the main control unit sends a second wake-up command to the power management unit to enable the power management unit to power on the second communication unit.
[0064] In actual execution, the target wake-up instruction may include a first wake-up instruction and a second wake-up instruction.
[0065] In some embodiments, when the target chip is in a first sleep state or a second sleep state and receives a broadband communication task, the main control unit generates a first wake-up command for waking up the first communication unit and sends the first wake-up command to the power management unit. After receiving the first wake-up command, the power management unit turns on the power of the first communication unit based on the first wake-up command, so that the first communication unit listens for and processes the broadband communication task.
[0066] In some embodiments, when the target chip is in a first sleep state or a second sleep state and receives a narrowband communication task, the main control unit generates a second wake-up command for waking up the second communication unit and sends the second wake-up command to the power management unit. After receiving the second wake-up command, the power management unit turns on the power of the second communication unit based on the second wake-up command, so that the second communication unit listens for and processes the narrowband communication task.
[0067] According to the chip control method of this application embodiment, when the target chip is in a sleep state and the target wake-up conditions are met, the main control unit sends a target wake-up command to the power management unit; the power management unit wakes up the first communication unit and / or the second communication unit based on the target wake-up command; the first communication unit is used to process broadband communication services, and the second communication unit is used to process narrowband communication services; based on a cooperative control strategy, the first communication unit and / or the second communication unit are controlled to operate in coordination, so that the target chip can process broadband communication services and narrowband communication services in coordination through the first communication unit and the second communication unit, avoiding unnecessary power consumption generated by relying on the first communication unit, which has the capability to process broadband communication services, to process narrowband communication services.
[0068] In some embodiments, when the first communication unit is processing a broadband communication task and receives a narrowband communication task, the main control unit determines the priorities of the broadband communication task and the narrowband communication task; when the priority of the broadband communication task is lower than the priority of the narrowband communication task, the main control unit sends a first mode switching instruction to the power management unit; the first mode switching instruction is used to instruct the first communication unit to suspend the processing of the broadband communication task and the second communication unit to start the processing of the narrowband communication task; based on the first mode switching instruction, the power management unit turns off the power of the first communication unit and turns on the power of the second communication unit.
[0069] In some embodiments, when the priority of the broadband communication task is lower than that of the narrowband communication task, the main control unit generates a first mode switching instruction and sends it to the power management unit. Based on the first mode switching instruction, the power management unit shuts down the power of the first communication unit to suspend the processing of the broadband communication task and turns on the power of the second communication unit to start the processing of the narrowband communication task. After the second communication unit completes the processing of the narrowband communication task, the power management unit shuts down the power of the second communication unit and turns on the power of the first communication unit to continue the processing of the broadband communication task.
[0070] In some embodiments, when the first communication unit is processing a broadband communication task and receives a narrowband communication task, the main control unit determines the priorities of the broadband communication task and the narrowband communication task. If the priority of the broadband communication task is higher than that of the narrowband communication task, the main control unit sends a third mode switching instruction to the power management unit. Based on the third mode switching instruction, the power management unit instructs the first communication unit to continue processing the broadband communication task. After the first communication unit completes processing the broadband communication task, the power supply of the first communication unit is turned off, and the power supply of the second communication unit is turned on to start processing the narrowband communication task.
[0071] In some embodiments, when the first communication unit is processing a broadband communication task and receives another broadband communication task, after the first communication unit finishes processing the current broadband communication task, it continues to process the next broadband communication task until no broadband communication task is detected.
[0072] According to the chip control method of this application embodiment, when the target chip is in a sleep state and the target wake-up conditions are met, the power management unit wakes up the first communication unit and / or the second communication unit. The first communication unit is used to process broadband communication services, and the second communication unit is used to process narrowband communication services. When the first communication unit is processing a broadband communication task and receives a narrowband communication task, after the first communication unit completes processing the broadband communication task, the first communication unit is turned off, and the second communication unit is scheduled to process the narrowband communication task. This allows the target chip to collaboratively process broadband and narrowband communication services through the first and second communication units, avoiding unnecessary power consumption caused by relying on the first communication unit, which has the capability to process broadband communication services, to process narrowband communication services. Furthermore, the time-slot-based collaborative management method can flexibly cope with complex mixed service scenarios in power sensor networks, avoid communication conflicts, and ensure the reliability of data transmission.
[0073] In some embodiments, when the second communication unit is processing a narrowband communication task and receives a broadband communication task, the main control unit determines the priority of the broadband communication task and the narrowband communication task; when the priority of the narrowband communication task is lower than the priority of the broadband communication task, the main control unit sends a second mode switching instruction to the power management unit; the second mode switching instruction is used to instruct the second communication unit to suspend the processing of the narrowband communication task and the first communication unit to start the processing of the broadband communication task; based on the second mode switching instruction, the power management unit turns off the power of the second communication unit and turns on the power of the first communication unit.
[0074] In some embodiments, when the priority of the broadband communication task is higher than that of the narrowband communication task, the main control unit generates a second mode switching instruction and sends it to the power management unit. Based on the second mode switching instruction, the power management unit shuts down the power of the second communication unit to suspend the processing of the narrowband communication task and turns on the power of the first communication unit to start the processing of the broadband communication task. After the first communication unit completes the processing of the broadband communication task, the power management unit shuts down the power of the first communication unit and turns on the power of the second communication unit to continue the processing of the narrowband communication task.
[0075] In some embodiments, when the second communication unit is processing a narrowband communication task and receives a broadband communication task, the main control unit determines the priority of the broadband communication task and the narrowband communication task. If the priority of the narrowband communication task is higher than that of the broadband communication task, the main control unit sends a fourth mode switching instruction to the power management unit. Based on the fourth mode switching instruction, the power management unit instructs the second communication unit to continue processing the narrowband communication task. After the second communication unit completes processing the narrowband communication task, the power supply of the second communication unit is turned off, and the power supply of the first communication unit is turned on to start processing the broadband communication task.
[0076] In some embodiments, when the second communication unit is processing a narrowband communication task and receives another narrowband communication task, after the second communication unit finishes processing the current narrowband communication task, it continues to process the next narrowband communication task until no narrowband communication task is detected.
[0077] According to the chip control method of this application embodiment, when the target chip is in a sleep state and the target wake-up conditions are met, the power management unit wakes up the first communication unit and / or the second communication unit. The first communication unit is used to process broadband communication services, and the second communication unit is used to process narrowband communication services. When the second communication unit is processing a narrowband communication task and receives a broadband communication task, after the second communication unit completes the processing of the narrowband communication task, the second communication unit is turned off, and the first communication unit is scheduled to process the broadband communication task. This allows the target chip to collaboratively process broadband and narrowband communication services through the first and second communication units, avoiding unnecessary power consumption caused by relying on the first communication unit, which has the capability to process broadband communication services, to process narrowband communication services. Furthermore, the time-slot-based collaborative management method can flexibly cope with complex mixed service scenarios in power sensor networks, avoid communication conflicts, and ensure the reliability of data transmission.
[0078] To better understand the chip control method provided in the embodiments of this application, further explanation is provided below. It should be understood that the following discussion is merely exemplary.
[0079] This application provides a chip control method, the specific steps of which are as follows: Figure 2 As shown: Step 210: When the target chip is in sleep mode and receives a broadband communication task, the main control unit sends a first wake-up command to the power management unit; the power management unit, based on the first wake-up command, enables the power management unit to turn on the power of the first communication unit; and / or when the target chip is in sleep mode and receives a narrowband communication task, the main control unit sends a second wake-up command to the power management unit to enable the power management unit to turn on the power of the second communication unit.
[0080] In actual implementation, the target chip can be a chip in the power grid field, deployed on any network node for data transmission, or a chip in any field. This application does not impose any specific restrictions on this.
[0081] In actual execution, the target wake-up condition can be the prerequisite for activating the first communication unit and / or the second communication unit, so that the first communication unit and / or the second communication unit are in a listening state.
[0082] In actual implementation, the first communication unit can be used to handle broadband communication services with high-speed, high-data-volume communication protocols, such as WiFi communication services. The second communication unit is used to handle narrowband communication services, such as BLE communication services.
[0083] In actual implementation, the power management unit is the core of power control in the target chip and is never powered off. It can include a power management unit (PMU), a low-power real-time clock (RTC), and key logic for power and clock control.
[0084] In actual implementation, the first communication unit may include a first processor, MAC layer logic, and a high-speed PHY interface. The power supply of the first communication unit can be independently controlled by the power management unit.
[0085] In actual implementation, the second communication unit may include a second processor, MAC layer logic, and a high-speed PHY interface. The power supply of the second communication unit can be independently controlled by the power management unit to avoid unnecessary power consumption.
[0086] In some embodiments, when the target chip is in a first sleep state or a second sleep state and receives a broadband communication task, the main control unit generates a first wake-up command for waking up the first communication unit and sends the first wake-up command to the power management unit. After receiving the first wake-up command, the power management unit turns on the power of the first communication unit based on the first wake-up command, so that the first communication unit listens for and processes the broadband communication task.
[0087] In some embodiments, when the target chip is in a first sleep state or a second sleep state and receives a narrowband communication task, the main control unit generates a second wake-up command for waking up the second communication unit and sends the second wake-up command to the power management unit. After receiving the second wake-up command, the power management unit turns on the power of the second communication unit based on the second wake-up command, so that the second communication unit listens for and processes the narrowband communication task.
[0088] Step 220: When the first communication unit is processing a broadband communication task and receives a narrowband communication task, the main control unit determines the priority of the broadband communication task and the narrowband communication task. When the priority of the broadband communication task is lower than that of the narrowband communication task, the main control unit sends a first mode switching instruction to the power management unit. The first mode switching instruction is used to instruct the first communication unit to suspend the processing of the broadband communication task and the second communication unit to start the processing of the narrowband communication task. Based on the first mode switching instruction, the power management unit turns off the power of the first communication unit and turns on the power of the second communication unit.
[0089] In some embodiments, when the priority of a broadband communication task is lower than that of a narrowband communication task, the main control unit generates a first mode switching instruction and sends the first mode switching instruction to the power management unit. For example... Figure 3 As shown, based on the first mode switching instruction, the power management unit shuts down the power of the first communication unit to suspend the processing of the broadband communication task, and turns on the power of the second communication unit to start the processing of the narrowband communication task. After the second communication unit completes the processing of the narrowband communication task, the power management unit shuts down the power of the second communication unit and turns on the power of the first communication unit to continue the processing of the broadband communication task.
[0090] In some embodiments, when the first communication unit is processing a broadband communication task and receives a narrowband communication task, the main control unit determines the priorities of the broadband communication task and the narrowband communication task. If the priority of the broadband communication task is higher than that of the narrowband communication task, the main control unit sends a third mode switching instruction to the power management unit. Based on the third mode switching instruction, the power management unit instructs the first communication unit to continue processing the broadband communication task. After the first communication unit completes processing the broadband communication task, the power supply of the first communication unit is turned off, and the power supply of the second communication unit is turned on to start processing the narrowband communication task.
[0091] In some embodiments, when the first communication unit is processing a broadband communication task and receives another broadband communication task, after the first communication unit finishes processing the current broadband communication task, it continues to process the next broadband communication task until no broadband communication task is detected.
[0092] In some embodiments, when the second communication unit completes the processing of the narrowband communication task and no broadband or narrowband communication task is currently received, the power supply of the first communication unit has been turned off, and the main control unit sends a third sleep instruction to the power management unit; based on the third sleep instruction, the power management unit turns off the power supply of the second communication unit to control the target chip to enter the second sleep state.
[0093] Step 230: When the second communication unit is processing a narrowband communication task and receives a broadband communication task, the main control unit determines the priority of the broadband communication task and the narrowband communication task. If the priority of the narrowband communication task is lower than that of the broadband communication task, the main control unit sends a second mode switching instruction to the power management unit. The second mode switching instruction is used to instruct the second communication unit to suspend the processing of the narrowband communication task and the first communication unit to start the processing of the broadband communication task. Based on the second mode switching instruction, the power management unit turns off the power of the second communication unit and turns on the power of the first communication unit.
[0094] In some embodiments, when the priority of the broadband communication task is higher than that of the narrowband communication task, the main control unit generates a second mode switching instruction and sends it to the power management unit. Based on the second mode switching instruction, the power management unit shuts down the power of the second communication unit to suspend the processing of the narrowband communication task and turns on the power of the first communication unit to start the processing of the broadband communication task. After the first communication unit completes the processing of the broadband communication task, the power management unit shuts down the power of the first communication unit and turns on the power of the second communication unit to continue the processing of the narrowband communication task.
[0095] In some embodiments, when the second communication unit is processing a narrowband communication task and receives a broadband communication task, the main control unit determines the priority of the broadband communication task and the narrowband communication task. If the priority of the narrowband communication task is higher than that of the broadband communication task, the main control unit sends a fourth mode switching instruction to the power management unit. Based on the fourth mode switching instruction, the power management unit instructs the second communication unit to continue processing the narrowband communication task. After the second communication unit completes processing the narrowband communication task, the power supply of the second communication unit is turned off, and the power supply of the first communication unit is turned on to start processing the broadband communication task.
[0096] In some embodiments, when the second communication unit is processing a narrowband communication task and receives another narrowband communication task, after the second communication unit finishes processing the current narrowband communication task, it continues to process the next narrowband communication task until no narrowband communication task is detected.
[0097] Step 240: If the first communication unit completes the processing of the broadband communication task and no broadband or narrowband communication task is received within a first preset time, the main control unit sends a first sleep command to the power management unit; based on the first sleep command, the power management unit turns off the power of the first communication unit to control the target chip to enter the first sleep state.
[0098] In actual execution, the first sleep state means that the target chip is in a shallow sleep state that keeps the power on. The target chip's central processing unit is suspended, but the power supply to the central processing unit and memory (SRAM) is maintained to achieve fast wake-up and no data loss.
[0099] In actual execution, the first preset time can be a pre-set time length. For example, the first preset time can be a time length set based on actual experiments, with the goal of minimizing the power consumption of the target chip.
[0100] In some embodiments, the main control unit may acquire a first preset time.
[0101] In some embodiments, after the first communication unit completes the processing of the broadband communication task, the main control unit detects whether there are any broadband communication tasks and narrowband communication tasks waiting to be processed. If there are no broadband communication tasks and narrowband communication tasks waiting to be processed, and no broadband communication task or narrowband communication task is received within a first preset time, the main control unit generates a first sleep instruction and sends the first sleep instruction to the power management unit.
[0102] In some embodiments, after receiving a first sleep command, the power management unit stops supplying power to the first communication unit, and if no broadband or narrowband communication task is received within a first preset time, controls the target chip to enter a first sleep state. For example, if no broadband or narrowband communication task is received within 10 minutes, the power management unit controls the target chip to enter a first sleep state.
[0103] Step 250: When the target chip is in the first sleep state and no broadband communication task or narrowband communication task is received within the second preset time, the main control unit sends a second sleep command to the power management unit; the power management unit controls the target chip to enter the second sleep state based on the second sleep command.
[0104] In actual execution, the second sleep state means that the power supply to both the first and second communication units of the target chip is turned off, and the power management unit only maintains the real-time clock and AON logic function.
[0105] In actual execution, the second preset time can be a pre-set time length. For example, the second preset time can be a time length set based on actual experiments, with the goal of minimizing the power consumption of the target chip.
[0106] In some embodiments, after the target chip enters a first sleep state, if no broadband communication task or narrowband communication task is received within a second preset time, the main control unit generates a second sleep instruction and sends the second sleep instruction to the power management unit.
[0107] In some embodiments, after the target chip enters a first sleep state, if no broadband communication task or narrowband communication task is received within a second preset time, the main control unit may calculate the time when the first communication unit is in a closed state and the time when the second communication unit is in a closed state, and generate a second sleep instruction based on the time when the first communication unit is in a closed state and the time when the second communication unit is in a closed state.
[0108] In some embodiments, after receiving the second sleep command, the power management unit shuts down the power supply of the main control unit, the first communication unit, and the second communication unit based on the second sleep command, so as to control the target chip to enter the second sleep state.
[0109] Step 260: When the target chip is in a second sleep state and the timing value for the first communication unit is greater than or equal to a third preset time, the power management unit turns on the power of the first communication unit; and / or, when the target chip is in a second sleep state and the timing value for the second communication unit is greater than or equal to a fourth preset time, the power management unit turns on the power of the second communication unit.
[0110] In some embodiments, the main control unit can obtain a third preset time and a fourth preset time based on historical communication duration and a preset communication period. For example, the main control unit can obtain the third preset time based on a first historical synchronization time point of the target chip and a preset communication period, where the first historical synchronization time point is the historical synchronization time point of broadband communication between the first communication unit in the target chip and the network. For example, the main control unit can obtain the fourth preset time based on a second historical synchronization time point of the target chip and a preset communication period, where the second historical synchronization time point is the historical synchronization time point of narrowband communication between the second communication unit in the target chip and the network.
[0111] In some embodiments, after the target chip enters a second sleep state, the power management unit can time the sleep state of the first communication unit based on a real-time clock. If the time value for the first communication unit is greater than or equal to a third preset time, the power management unit turns on the power to the first communication unit.
[0112] In some embodiments, after the target chip enters a second sleep state, the power management unit can time the sleep state of the second communication unit based on a real-time clock. If the time value for the second communication unit is greater than or equal to a fourth preset time, the power management unit turns on the power to the second communication unit.
[0113] The chip control method in this application embodiment can be executed by an electronic device or by a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, edge computing gateway (ECG), network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope of the electronic device.
[0114] The main control unit in this embodiment can be a device with an operating system. This operating system can be a Microsoft (Windows) operating system, a Linux operating system, an Android operating system, an iOS operating system, or other possible operating systems; this embodiment does not specifically limit the specific operating system.
[0115] In some embodiments, this application also provides a target chip, which is used to implement the various processes of the above-described chip control method embodiments.
[0116] In some embodiments, such as Figure 4 As shown, the target chip 400 includes a power management unit 410, a first communication unit 420, a second communication unit 430, a main control unit 440, and an RF transceiver 450.
[0117] In actual implementation, the power management unit is the core of power control in the target chip and is never powered off. It can include a power management unit (PMU), a low-power real-time clock (RTC), and key logic for power and clock control.
[0118] In actual implementation, the first communication unit may include a first processor, MAC layer logic, and a high-speed PHY interface. The power supply of the first communication unit can be independently controlled by the power management unit.
[0119] In actual implementation, the second communication unit may include a second processor, MAC layer logic, and a high-speed PHY interface. The power supply of the second communication unit can be independently controlled by the power management unit to avoid unnecessary power consumption.
[0120] In actual execution, the main control unit includes the main processor (such as a RISC-V MCU), shared memory, and system peripherals, and its power state is dynamically adjusted according to the overall task requirements of the target chip.
[0121] In actual implementation, the Unified RF Transceiver can be connected to the digital interfaces of the first and second communication units respectively. The power management unit can coordinate the control of the RF transceiver, using its broadband RF link when the first communication unit is handling broadband tasks, and using its narrowband RF link when the second communication unit is handling narrowband tasks.
[0122] In some embodiments, such as Figure 5 As shown, this application embodiment also provides an electronic device 500, including a processor 501, a memory 502, and a computer program stored in the memory 502 and executable on the processor 501. When the program is executed by the processor 501, it implements the various processes of the chip control method embodiment described above and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0123] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0124] This application also provides a non-transitory computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the above-described chip control method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0125] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0126] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described chip control method.
[0127] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0128] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described chip control method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0129] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0130] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0131] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0132] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
[0133] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0134] Although embodiments of this application have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of this application, the scope of which is defined by the claims and their equivalents.
Claims
1. A chip control method, characterized in that, Applied to a target chip, the target chip including a main control unit, a power management unit, a first communication unit, and a second communication unit; the method includes: When the target chip is in a sleep state and the target wake-up conditions are met, the main control unit sends a target wake-up command to the power management unit to control the power management unit to wake up the first communication unit and / or the second communication unit; the first communication unit is used to process broadband communication services, and the second communication unit is used to process narrowband communication services. Based on a collaborative control strategy, the first communication unit and / or the second communication unit are controlled to operate collaboratively.
2. The chip control method according to claim 1, characterized in that, The sleep state includes a first sleep state; after controlling the first communication unit and / or the second communication unit to operate collaboratively based on the collaborative control strategy, the method further includes: If the first communication unit completes the processing of the broadband communication task and does not receive the broadband communication task or narrowband communication task within a first preset time, the main control unit sends a first sleep command to the power management unit. The power management unit shuts down the power supply of the first communication unit based on the first sleep command, thereby controlling the target chip to enter the first sleep state.
3. The chip control method according to claim 2, characterized in that, The sleep state includes a second sleep state; the first sleep command includes a second preset time, which is the duration for which the target chip maintains the first sleep state; After the power management unit shuts down the power of the first communication unit based on the first sleep command to control the target chip into a first sleep state, the method further includes: When the target chip is in the first sleep state and has not received the broadband communication task or the narrowband communication task within a second preset time, the main control unit sends a second sleep command to the power management unit. The power management unit controls the target chip to enter a second sleep state based on the second sleep command.
4. The chip control method according to any one of claims 1-3, characterized in that, The second sleep command includes a third preset time and a fourth preset time; After the power management unit controls the target chip to enter a second sleep state based on the second sleep instruction, the method includes: When the target chip is in a second sleep state and the timing value for the first communication unit is greater than or equal to a third preset time, the power management unit turns on the power of the first communication unit. and / or When the target chip is in a second sleep state and the timing value for the second communication unit is greater than or equal to a fourth preset time, the power management unit turns on the power supply of the second communication unit.
5. The chip control method according to claim 1, characterized in that, When the target chip is in a sleep state and the target wake-up conditions are met, the main control unit sends a target wake-up command to the power management unit to control the power management unit to wake up the first communication unit and / or the second communication unit, including: When the target chip is in sleep mode and receives a broadband communication task, the main control unit sends a first wake-up command to the power management unit so that the power management unit turns on the power of the first communication unit. or When the target chip is in sleep mode and receives a narrowband communication task, the main control unit sends a second wake-up command to the power management unit so that the power management unit turns on the power of the second communication unit.
6. The chip control method according to claim 1, characterized in that, The method of controlling the first communication unit and / or the second communication unit to operate collaboratively based on a collaborative control strategy includes: When the first communication unit is processing a broadband communication task and receives a narrowband communication task, the main control unit determines the priority of the broadband communication task and the narrowband communication task. When the priority of the broadband communication task is lower than that of the narrowband communication task, the main control unit sends a first mode switching instruction to the power management unit; the first mode switching instruction is used to instruct the first communication unit to suspend the processing of the broadband communication task, and the second communication unit to start the processing of the narrowband communication task. Based on the first mode switching command, the power management unit shuts down the power supply of the first communication unit and turns on the power supply of the second communication unit.
7. The chip control method according to claim 1, characterized in that, The method of controlling the first communication unit and / or the second communication unit to operate collaboratively based on a collaborative control strategy includes: When the second communication unit is processing a narrowband communication task and receives a broadband communication task, the main control unit determines the priority of the broadband communication task and the narrowband communication task. When the priority of the narrowband communication task is lower than that of the broadband communication task, the main control unit sends a second mode switching instruction to the power management unit; the second mode switching instruction is used to instruct the second communication unit to suspend the processing of the narrowband communication task, and the first communication unit to start the processing of the broadband communication task. Based on the second mode switching command, the power management unit shuts down the power supply of the second communication unit and turns on the power supply of the first communication unit.
8. A target chip, characterized in that, The target chip is used to perform the steps of implementing the chip control method according to any one of claims 1-7.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the chip control method according to any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the steps of the chip control method according to any one of claims 1-7.
11. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the steps of the chip control method according to any one of claims 1-7.