Device state display method and device, storage medium and electronic device
By monitoring the battery status and managing the power status of the main controller through the auxiliary controller, the problem of high static power consumption of electronic devices when they are turned off or in standby mode is solved, and accurate detection of battery status and efficient power management are achieved, which extends battery life and improves user experience.
Patent Information
- Application Number
- CN202510866475.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-25
- Publication Date
- 2025-10-17
AI Technical Summary
In the prior art, electronic devices that rely on battery power are unable to accurately obtain the battery status and charging status in a timely manner when they are turned off or in standby mode, resulting in high static power consumption, affecting device management efficiency and battery life.
The auxiliary controller is used to monitor the battery status and send target data to the main controller. The power on and off of the main controller is managed through control signals, and the indicator light display mode is dynamically adjusted to achieve accurate detection of the battery status and power management.
It reduces the power consumption of the device when it is powered off, prolongs the battery life, improves energy efficiency, provides clear battery status feedback, and enhances the user experience.
Smart Images

Figure CN120803856A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and more specifically, to a method and apparatus for displaying device status, a storage medium, and an electronic device. Background Art
[0002] In existing technologies, battery-powered electronic devices are typically equipped with a main controller to perform core functions and manage power. However, when the device is powered off or in standby mode, the main controller is often inactive, resulting in inability to obtain timely and accurate information such as the device's battery status and charging status. This limitation directly affects device management efficiency.
[0003] For example, if the battery cannot be detected when the device is powered off, the remaining charge will be determined the next time the device is powered on, causing the device to suddenly shut down due to a dead battery, which can degrade the user experience. Furthermore, if the main controller continues to consume power when not in use, this will increase the device's static power consumption, shortening battery life and reducing charging efficiency. Therefore, the prior art suffers from the technical problem of high static power consumption during device charging, resulting in unnecessary power consumption.
[0004] To address the above-mentioned problems, no effective solutions have been proposed so far. Summary of the Invention
[0005] The embodiments of the present application provide a method and apparatus for displaying device status, a storage medium, and an electronic device to at least solve the technical problem that static power consumption during device charging is relatively high, resulting in unnecessary power consumption of the device.
[0006] According to one aspect of an embodiment of the present application, a method for displaying a device status is provided, comprising: setting a co-controller for a target device, wherein the co-controller is used to send target data to a main controller of the target device, and the target data is used to determine the operating status of the target device; when the target data indicates that the target device is turned on, controlling the co-controller to send a first signal to the main controller, and setting an indicator light display mode according to a target output level, wherein the first signal is used to control the main controller to power on, and the target output level is output by a target pin of a power management module of the target device, and the power management module is connected to the co-controller through the target pin; when the target data indicates that the target device is turned off, controlling the co-controller to send a second signal to the main controller, and setting the indicator light display mode according to the target output level, wherein the second signal is used to control the main controller to power off.
[0007] According to another aspect of the embodiments of the present application, a display device of a device state is also provided, including: a setting module configured to set a coordination controller for a target device, wherein the coordination controller is configured to acquire target data and send the target data to a main controller of the target device, and the target data is used to determine a running state of the target device; a first processing module configured to, in a case where the target data indicates that the target device needs to be charged, control the coordination controller to send a first signal to the main controller, and set a display mode of an indicator light according to a target output level, wherein the first signal is used to control the main controller to be powered on, the target output level is output by a target pin of a power management module of the target device, and the power management module is connected to the coordination controller through the target pin; and a second processing module configured to, in a case where the target data indicates that the target device does not need to be charged, control the coordination controller to send a second signal to the main controller, and set the display mode of the indicator light according to the target output level, wherein the second signal is used to control the main controller to be powered off.
[0008] As an optional embodiment, the device is further configured to: control the coordination controller to acquire the target output level; determine an in-place state of the device battery according to a value of the target output level; and set the display mode of the indicator light based on the in-place state of the device battery.
[0009] As an optional embodiment, the device is configured to set the display mode of the indicator light based on the in-place state of the device battery in at least one of the following manners: set the display mode of the indicator light as a charging display mode, wherein in the charging display mode, a charging progress identifier is displayed on a display interface of the target device; set the display mode of the indicator light as a start-up display mode, wherein in the start-up display mode, a remaining power identifier is displayed on the display interface of the target device; and set the display mode of the indicator light as a stop display mode, wherein in the stop display mode, the display interface of the target device is not displayed.
[0010] As an optional embodiment, the device is configured to determine the in-place state of the device battery according to the value of the target output level in the following manner: in a case where the target output level is in a high-low jump, determine that the device battery is not in place; and in a case where the target output level is not in the high-low jump, determine that the device battery is in place.
[0011] As an optional embodiment, the device is configured to determine that the device battery is in place in the case where the target output level is not in the high-low jump in the following manner: in a case where the target output level is a high level, determine that the power of the device battery is full; and in a case where the target output level is a low level, determine that the power of the device battery is not full.
[0012] As an optional embodiment, the apparatus is further configured to: set the indicator light display mode to the charging display mode if the cooperative controller is controlled to send the first signal to the main controller and the device battery is in place; set the indicator light display mode to the boot display mode if the cooperative controller is controlled to send the first signal to the main controller and the device battery is not in place.
[0013] As an optional embodiment, the apparatus is further configured to: set the indicator light display mode to the charging display mode if the cooperative controller is controlled to send the second signal to the main controller and the device battery is in place; set the indicator light display mode to the stop display mode and adjust the cooperative controller to a low-power consumption running state if the cooperative controller is controlled to send the second signal to the main controller and the device battery is not in place.
[0014] As an optional embodiment, the apparatus is further configured to: control the cooperative controller to acquire and send battery status data to the main controller if the cooperative controller is controlled to send the first signal to the main controller, wherein the battery status data comprises at least one of a charging progress of the device battery and an available power of the device battery.
[0015] As an optional embodiment, the apparatus is further configured to: set the cooperative controller for the target device; control the cooperative controller to send the first signal to the main controller if the target data indicates that the target device is booted; control the cooperative controller to acquire the target output level; control the cooperative controller to send the first signal to the main controller; set the indicator light display mode to the charging display mode and control the cooperative controller to acquire and send first battery status data to the main controller if the target output level is not in high-low transition, wherein a charging progress identifier is displayed on a display interface of the target device in the charging display mode, and the first battery status data comprises the charging progress of the device battery; set the indicator light display mode to the boot display mode and control the cooperative controller to acquire and send second battery status data to the main controller if the target output level is in high-low transition, wherein a remaining power identifier is displayed on the display interface of the target device in the boot display mode, and the second battery status data comprises the available power of the device battery.
[0016] As an optional embodiment, the device is further configured to: set the cooperative controller for the target device; control the cooperative controller to send the second signal to the main controller in a case that the target data indicates that the target device is powered off; control the cooperative controller to acquire the target output level; control the cooperative controller to send the second signal to the main controller; set the indicator light display mode to a charging display mode in a case that the target output level is not in a high-low jump, wherein, in the charging display mode, a charging progress identifier is displayed on a display interface of the target device; and set the indicator light display mode to a stop display mode and adjust the cooperative controller to a low-power consumption running state in a case that the target output level is in a high-low jump, wherein, in the stop display mode, the display interface of the target device is not displayed.
[0017] According to another aspect of the embodiments of the present application, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program. The computer program is configured to perform the above-mentioned device state display method when executed.
[0018] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, and the computer program product or the computer program includes computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to enable the computer device to perform the above-mentioned device state display method.
[0019] According to another aspect of the embodiments of the present application, an electronic device is provided, and the electronic device includes a memory and a processor. The memory stores a computer program, and the processor is configured to perform the above-mentioned device state display method by using the computer program.
[0020] In the embodiment of the present application, a coordination controller is set for the target device, wherein the coordination controller is used to send target data to the main controller of the target device, and the target data is used to determine the running state of the target device; in the case that the target data indicates that the target device is powered on, the coordination controller is controlled to send a first signal to the main controller, and the indicator light display mode is set according to the target output level, wherein the first signal is used to control the main controller to be powered on, the target output level is output by a target pin of a power management module of the target device, and the power management module is connected to the coordination controller through the target pin; in the case that the target data indicates that the target device is powered off, the coordination controller is controlled to send a second signal to the main controller, and the indicator light display mode is set according to the target output level, wherein the second signal is used to control the main controller to be powered off, so as to reduce the power consumption of the device in the powered-off state, thereby achieving the technical effects of prolonging the battery life and improving the energy utilization efficiency, and further solving the technical problem that the static power consumption is relatively high during the charging process of the device, which causes unnecessary power consumption of the device. BRIEF DESCRIPTION OF DRAWINGS
[0021] The accompanying drawings, which are included to provide a further understanding of the present application, constitute a part of the present application and illustrate the illustrative embodiments of the present application and its description, and do not constitute an improper limitation to the present application. In the drawings:
[0022] Figure 1 is a schematic diagram of an application environment of an optional device state display method according to an embodiment of the present application;
[0023] Figure 2 is a flowchart of an optional device state display method according to an embodiment of the present application;
[0024] Figure 3 is a schematic diagram of an optional device state display method according to an embodiment of the present application;
[0025] Figure 4 is a schematic diagram of another optional device state display method according to an embodiment of the present application;
[0026] Figure 5 is a structural schematic diagram of an optional device state display device according to an embodiment of the present application. DETAILED DESCRIPTION
[0027] In the following, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application, so that those skilled in the art can better understand the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work should belong to the scope of protection of the present application.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0029] The present application will be described below in conjunction with the embodiments:
[0030] According to an aspect of the embodiments of the present application, a device state display method is provided. Optionally, in the present embodiment, the device state display method can be applied to a hardware environment composed of a server 101 and a terminal device 103 as shown in Figure 1 . As shown in Figure 1As shown, the server 101 is connected with the terminal device 103 through a network, which can be used to provide services for the terminal device or the application 107 installed on the terminal device, and the application can be a video application, an instant messaging application, a browser application, an education application, a game application, etc. A database 105 can be set on the server or independently of the server, which is used to provide data storage services for the server 101, for example, a game data storage server. The above network can include but is not limited to a wired network and a wireless network, wherein the wired network includes a local area network, a metropolitan area network and a wide area network, and the wireless network includes Bluetooth, WIFI and other wireless communication networks. The terminal device 103 can be a terminal configured with an application, and can include but is not limited to at least one of the following: a mobile phone (such as an Android mobile phone, an iOS mobile phone, etc.), a notebook computer, a tablet computer, a palm computer, a MID (Mobile Internet Device), a PAD, a desktop computer, a smart television, a smart voice interaction device, a smart home appliance, a vehicle-mounted terminal, an aircraft, a VR (Virtual Reality) terminal, an AR (Augmented Reality) terminal, an MR (MixedReality) terminal, etc. The above server can be a single server, a server cluster composed of multiple servers, or a cloud server.
[0031] In combination Figure 1 As shown, the display method of the device state can be executed by an electronic device, which can be a terminal device or a server. The display method of the device state can be implemented by the terminal device or the server respectively, or by the terminal device and the server together.
[0032] The above is only an example, and the present embodiment is not limited specifically.
[0033] Optionally, as an optional implementation, as shown in Figure 2 The display method of the device state includes:
[0034] S202, setting a coordination controller for the target device, wherein the coordination controller is used to send target data to a main controller of the target device, and the target data is used to determine the running state of the target device;
[0035] Optionally, in the present embodiment, the coordination controller refers to a special auxiliary processing unit, including but not limited to a low-power microcontroller, which can work independently of the main controller, collect and process the running parameters of the device such as the battery state and the charging state, and convert these information into target data, for example Figure 3 The coordination controller 303 shown in the figure.
[0036] It should be noted that the running state of the target device includes, but is not limited to, a booting state, a shutdown state, a charging state, and a battery health state, etc. The technical solutions in the present application are applicable to various types of electronic devices. In actual application, the data communication mode between the cooperative controller and the main controller can be diversified, such as using I2C, SPI or other digital interfaces meeting the requirements, and the selection of the specific interface is determined according to the design requirements of the actual device, which is not limited in the present application.
[0037] Exemplarily, the user is connected to an external power supply through the USB interface of the target device, and then, taking the device boot button as an example, the user clicks the boot button, and the above target data is a booting instruction. In addition, the above target data can also be battery health information, for example, when the battery capacity is lower than a preset threshold, the target data is a low power warning.
[0038] It can be understood that the target data is collected and processed by the cooperative controller and can be sent to the main controller to update the running state of the device. Whether in response to user operation or in monitoring of device environmental changes, the cooperative controller can ensure that the main controller obtains real-time and accurate state information, thereby realizing more precise device management and power regulation.
[0039] S204, in the case that the target data indicates that the target device is booting, the cooperative controller sends a first signal to the main controller, and sets the indicator light display mode according to the target output level, wherein the first signal is used to control the main controller to power on, the target output level is output by a target pin of a power management module of the target device, and the power management module is connected to the cooperative controller through the target pin;
[0040] Optionally, in the embodiments of the present application, the above-mentioned first signal refers to a start instruction sent by the cooperative controller to the main controller, including but not limited to a specific pulse signal or a level change, which is used to wake up the main controller to recover from the low-power or shutdown mode to the normal working state.
[0041] It should be noted that the setting of the target output level can be adjusted according to the specific needs of different devices, for example, high level represents full battery, low level indicates insufficient power, or the remaining battery capacity is reflected by pulse width modulation. The present application does not make any limitation as long as the battery state information can be accurately conveyed through the level change.
[0042] At the same time, the diversified design of the above-mentioned indicator light display mode can meet the visual prompt needs in different scenes, whether through color change, flashing frequency or brightness adjustment, the running state of the target device can be intuitively reflected, which is convenient for the user to understand and operate, and the present application also does not make any specific limitation.
[0043] Exemplarily, after receiving the power-on instruction, the coordination controller checks the target pin level of the power management module to determine the battery status, and adjusts the display mode of the indicator light accordingly. Once the coordination controller determines that the battery is available and the device is ready, it sends a first signal to the main controller to trigger the power-on process of the main controller.
[0044] It should be further noted that the power management module described above can be as shown in the power management 307 in Figure 3 The power management module is used to monitor and control the distribution of power, the charging and discharging process of the battery, and related protection mechanisms, including but not limited to overcharge protection, overdischarge protection, overvoltage protection, and overtemperature protection, etc. functions; can monitor the battery status through a dedicated pin and report to the coordination controller, so that the coordination controller can make corresponding decisions based on this information, such as controlling the power-on and power-off of the main controller, adjusting the display mode of the indicator light, etc.
[0045] S206, in the case that the target data indicates that the target device is powered off, the coordination controller sends a second signal to the main controller, and sets the display mode of the indicator light according to the target output level, wherein the second signal is used to control the main controller to power off.
[0046] Optionally, in the embodiments of the present application, the second signal refers to the shutdown instruction sent by the coordination controller to the main controller, including but not limited to a specific command sequence or level signal, which is used to inform the main controller to enter a low-power mode or completely power off to save energy.
[0047] It should be noted that the detection mechanism of the target output level can rely on the different state outputs of the power management module, for example, by monitoring the SATA state pin of the charging management to indirectly obtain whether the battery is in place, when the pin is high level, it indicates that the battery is full or not in place, low level indicates that the charging is in progress, and high-low transition indicates that the battery is removed. The coordination controller can make appropriate shutdown or display instructions by interpreting these level changes, to ensure that even in the shutdown state, the user can know the in-place situation and the power status of the battery, which is not limited in the present application.
[0048] Further, after the target device is powered off, the coordination controller will continue to monitor the battery status and adjust the display mode of the indicator light accordingly, providing intuitive visual feedback, for example, if the battery is charging, the indicator light may be green flashing; if the battery is full but the device is powered off, the indicator light becomes stable green; if the battery is not in place, the indicator light may be extinguished or display red.
[0049] In an exemplary embodiment, taking the application scenario of a thermal imaging camera as an example, it is assumed that a user presses the power-on button on the device, and this action is captured by the coordination controller. The coordination controller then analyzes the target data and confirms that the target device should enter the power-on state. At this time, the coordination controller sends a first signal to the main controller, which is a power-on instruction to prompt the main controller to wake up from the sleep or low-power mode and start normal operation. At the same time, the coordination controller monitors the target pin output level of the power management module and adjusts the indicator light display mode according to the level state, such as lighting the green indicator light, indicating that the target device is powering on or the battery has sufficient power.
[0050] Alternatively, if the target data indicates that the target device is powered off, for example, when the user has not operated the device for a long time, the coordination controller will recognize this state change and then control the sending of a second signal to the main controller. The second signal is a power-off instruction, which tells the main controller to stop running and cut off the power supply, entering a deep sleep or complete shutdown state to reduce power consumption. In this process, the coordination controller remains active and continues to monitor the target pin level. Based on the current level information, for example, if the battery is charging, the indicator light may flash orange, prompting the user to check the battery charging status; if the battery is fully charged and the device is powered off, the indicator light may display a stable green color, indicating that the target device is ready for use at any time.
[0051] According to the embodiments of the present application, a coordination controller is set for a target device, wherein the coordination controller is used to send target data to the main controller of the target device, and the target data is used to determine the running state of the target device; in the case that the target data indicates that the target device is powered on, the coordination controller is controlled to send a first signal to the main controller, and the indicator light display mode is set according to the target output level, wherein the first signal is used to control the main controller to power on, and the target output level is output by a target pin of a power management module of the target device, and the power management module is connected to the coordination controller through the target pin; in the case that the target data indicates that the target device is powered off, the coordination controller is controlled to send a second signal to the main controller, and the indicator light display mode is set according to the target output level, wherein the second signal is used to control the main controller to power off, achieving the purpose of reducing the power consumption of the device in the powered-off state, thereby realizing the technical effects of prolonging the battery life and improving the energy utilization efficiency, and further solving the technical problem that the static power consumption is relatively high during the charging process of the device, resulting in unnecessary power consumption of the device.
[0052] As an optional solution, the above method further includes: controlling the coordination controller to obtain the target output level; determining the in-place state of the device battery according to the value of the target output level; and setting the indicator light display mode based on the in-place state of the device battery.
[0053] It should be noted that the value range of the target output level and the corresponding battery in-place state can be defined according to the design requirements of a specific device, for example, the high level can indicate that the battery is installed and has sufficient power, and the low level can mean that the battery is not in place or has low power, and the present application does not limit this, as long as the battery state can be accurately reflected by the level change.
[0054] Exemplarily, the control of the cooperative controller to obtain the target output level means that the cooperative controller continuously detects the level change of the target pin of the power management module when the target device is powered off or in low-power mode, so as to determine whether the battery is in place and the state of the battery. The in-place state of the device battery is determined according to the value of the target output level, that is, the cooperative controller performs logical operation based on the detected level value to conclude whether the battery is installed in the device. The display mode of the indicator light is set based on the in-place state of the device battery, that is, the color, brightness or flashing frequency of the indicator light is adjusted according to the in-place state of the battery to visually show the state information of the battery to the user.
[0055] In an exemplary embodiment, taking the charging and state management of a thermal imaging device as an example, when the cooperative controller detects that the target pin is at a high level, which indicates that the battery is installed and has sufficient power, the cooperative controller sets the indicator light to a stable green color, indicating that the device is ready, and at the same time does not send any signal to the main controller to maintain the low-power state of the device. Once the level of the target pin drops to a low level, the cooperative controller analyzes this change as a signal that the battery is charging, at which time the indicator light changes to a flashing yellow color, and the cooperative controller starts to send a first signal to the main controller for starting the main controller to perform more detailed battery state monitoring and display.
[0056] Through the embodiments of the present application, the cooperative controller independently monitors and analyzes the battery state, which realizes accurate grasp of the in-place state of the device battery even in the powered-off or low-power mode, and achieves the purpose of effectively managing the power supply of the device, optimizing energy efficiency and improving user experience.
[0057] As an optional solution, the above setting of the indicator light display mode based on the in-place state of the device battery includes at least one of the following: setting the indicator light display mode to a charging display mode, wherein in the charging display mode, a charging progress identifier is displayed on the display interface of the target device; setting the indicator light display mode to a start-up display mode, wherein in the start-up display mode, a remaining power identifier is displayed on the display interface of the target device; setting the indicator light display mode to a stop display mode, wherein in the stop display mode, the display interface of the target device is not displayed.
[0058] Optionally, in the embodiments of the present application, the target output level refers to the level signal output by a specific pin in the power management module, which reflects the charging state and in-place status of the battery, including but not limited to high-low level jump or stable high / low level output, for indicating whether the battery is properly installed and the current state of the battery.
[0059] It should be noted that the in-place status determination of the device battery can be achieved by monitoring the level change of the target pin. For example, when the target output level experiences a jump from high to low or from low to high, the cooperative controller recognizes that the battery is being removed or inserted, thereby determining that the battery is not in place or is just inserted. On the contrary, if the target output level remains unchanged, whether it is stable at a high level or a low level, it is considered that the battery is already in place, and the battery is in place at this time. The present application does not strictly limit the details and thresholds of the specific level change, as long as the function of battery in-place status detection can be achieved.
[0060] Illustratively, when the cooperative controller reads that the level on the target pin appears irregular or frequent high-low jump, it is considered as a signal that the battery is not in place. After analyzing this level jump, the cooperative controller will record and update the battery status database, marking the battery status as "not in place". On the contrary, when the target level is stable at a certain value, such as high level indicating that the battery is fully charged, and low level indicating that the battery is still in place while being charged, the cooperative controller will continue to monitor until the level is stable, then determine that the battery is in place, and make corresponding control decisions according to this state, such as controlling the indicator light to display or sending battery status information to the main controller.
[0061] In an exemplary embodiment, taking the battery management of a portable thermal imaging device as an example, when the cooperative controller monitors that the target output level is in continuous high-low jump, it indicates that the battery is being removed by the user, at which time the cooperative controller switches the device state to the battery not in place mode, and the indicator light may flash red to warn the user that the battery has been removed from the device. On the contrary, if the target level is stable, the cooperative controller confirms that the battery is in place, and the indicator light will display blue or green according to the actual level value to indicate that the device is ready or is charging, while the screen can display accurate power or charging progress information to provide real-time feedback to the user.
[0062] By the embodiments of the present application, the method of monitoring the change of the target output level to determine the in-place status of the battery is adopted, which achieves the technical effect of accurately detecting and managing the battery state of the portable device without the intervention of the main controller, and achieves the purpose of improving the running efficiency of the device, prolonging the service life of the battery and optimizing the user experience. Especially in the device shutdown or low power consumption mode, this method can ensure the continuous operation of the battery management system and avoid the lack of function caused by the main controller hibernation.
[0063] As an optional solution, the determination of the in-situ state of the device battery according to the value of the target output level includes: in the case that the target output level is in a high-low transition, determining that the device battery is not in-situ; and in the case that the target output level is not in a high-low transition, determining that the device battery is in-situ.
[0064] As an optional solution, the determination of the in-situ state of the device battery according to the value of the target output level includes: in the case that the target output level is in a high-low transition, determining that the device battery is not in-situ; and in the case that the target output level is not in a high-low transition, determining that the device battery is in-situ.
[0065] In an exemplary embodiment, taking the battery state detection of a portable thermal imaging device as an example, the co-controller first reads the target level signal output by the power management module. When the level signal frequently appears in a high-to-low or low-to-high transition, the co-controller immediately determines that the battery is currently in an unstable state and is likely to have been removed by the user, and then updates the device state to "battery not in-situ". At this time, the co-controller will not send any battery-related data to the main controller, so as to prevent the main controller from attempting to start up without battery support, causing unnecessary power loss or system abnormalities. Once the level signal tends to be stable, whether it is stable at a high level or a low level, the co-controller considers that the battery has been safely installed in-situ, and will periodically or under certain conditions send battery state information to the main controller, ensuring that the main controller can monitor the battery state in real time and optimize the energy management of the device.
[0066] In another exemplary embodiment, taking the charge and discharge management of an outdoor portable thermal imaging device as an example, the co-controller continuously monitors the target output level when the device is powered off or in low-power mode. When the target output level is high, the co-controller determines that the battery of the device has been fully charged. At this time, the co-controller immediately controls the charging circuit to stop charging to avoid overcharging and damaging the battery, and stores this information in the internal state database, while controlling the indicator light to display a stable green color, clearly indicating to the user that the battery is fully charged and the device is ready for use.
[0067] On the other hand, when the target output level is monitored as low, the cooperative controller infers that the device battery is not fully charged and is currently being charged. In this case, the cooperative controller continues to monitor the level change until the battery is fully charged, while controlling the indicator light to display a flashing orange color, indicating that the device battery is in the process of being charged. Before the battery is fully charged, the flashing frequency or color of the indicator light can be dynamically adjusted according to the remaining charging time or the current charging rate, allowing the user to intuitively understand the charging progress. In addition, the cooperative controller can also transmit real-time battery status information to the main controller through a serial interface or wirelessly, so that the main controller can immediately display the accurate battery level when the device is powered on, providing a seamless user experience.
[0068] Overall, by independently monitoring the target output level through the cooperative controller and dynamically adjusting the device status and indicator light display mode accordingly, the embodiments of the present application not only achieve efficient battery charging and discharging management without affecting the performance of the main controller, but also provide clear battery status feedback to the user during charging and standby, enhancing the practicality and user satisfaction of the product.
[0069] Through the embodiments of the present application, the strategy of level signal monitoring and analysis is adopted to accurately determine whether the battery is in place in the unpowered state, achieving the purpose of optimizing device energy efficiency, prolonging battery life, and enhancing device safety and user experience. It can effectively avoid charging abnormalities or system false positives caused by poor battery installation, ensuring the reliability and stability of the device under various conditions.
[0070] As an optional solution, the above method further includes at least one of the following: in the case that the cooperative controller is controlled to send the first signal to the main controller and the device battery is in place, setting the indicator light display mode to the charging display mode; in the case that the cooperative controller is controlled to send the first signal to the main controller and the device battery is not in place, setting the indicator light display mode to the boot display mode.
[0071] Optionally, in the embodiments of the present application, the first signal refers to a digital instruction or data packet sent by the cooperative controller to the main controller to start the main system or update its knowledge of the battery status, including but not limited to battery status change notification, charge data transmission, charging control instruction, etc., to prompt the main controller to take appropriate action according to the latest battery status.
[0072] It should be noted that the setting of the indicator light display mode not only depends on the in-situ state of the device battery, but also takes into account whether information needs to be exchanged with the main controller, the current power level of the battery, and the running mode of the device, etc. For example, even if the battery is in-situ, if the power is full, the indicator light may display a different mode, not necessarily the charging display mode. The present application does not limit this, as long as the indicator light display mode can accurately reflect the battery state and the running mode of the device.
[0073] Illustratively, when the coordination controller monitors the change of the target output level, indicating that the battery changes from the charging state to the full power state, and at the same time the coordination controller sends a first signal to the main controller, instructing the main controller to update the battery state information. If the device battery is in-situ, the coordination controller will switch the indicator light display mode to the charging display mode according to the preset logic, such as displaying a steady green color, indicating that the battery is fully charged and the charging process is complete. Conversely, if the coordination controller detects that the battery is not in-situ when sending the first signal, this may be a scenario where the user uses a new battery or the battery is removed. At this time, the indicator light display mode will be set to the boot display mode, for example, the indicator light flashes red to remind the user to check the battery state, and at the same time the main controller remains in standby state after receiving the signal, waiting for the battery to be reinserted before starting the battery management system.
[0074] In an exemplary embodiment, taking the battery state detection of a portable thermal imaging device as an example, when the coordination controller detects that the battery is in-situ and the level state is high, indicating that the battery is fully charged, it immediately sends a first signal to the main controller. In this situation, the coordination controller switches the indicator light mode to the charging display mode, which is usually represented by a steady green indicator light, and at the same time the main controller updates its stored battery state data after receiving the signal, preparing to display the full power state when the device is booted. However, if the coordination controller finds that the battery is not in-situ before sending the first signal, even if the level change is detected, the indicator light mode will be adjusted to the boot display mode, such as the indicator light presenting a fast flashing red or yellow color, warning the user to reinsert the battery to ensure that the device can be safely started and run.
[0075] Through the embodiments of the present application, the technology of using the coordination controller to intelligently monitor the battery state and automatically adjust the indicator light display mode is adopted, which realizes timely notification of the user when the battery state changes and ensures the accurate perception of the battery state by the main controller, achieving the purpose of improving the charging safety of the device, the user interaction friendliness, and the overall energy efficiency management level, and is suitable for various portable electronic devices that need to be frequently charged and have batteries replaced, such as thermal imaging cameras, mobile power management devices, etc.
[0076] As an optional solution, the above method further comprises at least one of the following: in the case that the above-mentioned cooperative controller is controlled to send the above-mentioned second signal to the above-mentioned main controller, and the above-mentioned device battery is in place, setting the above-mentioned indicator light display mode to the above-mentioned charging display mode; in the case that the above-mentioned cooperative controller is controlled to send the above-mentioned second signal to the above-mentioned main controller, and the above-mentioned device battery is not in place, setting the above-mentioned indicator light display mode to the above-mentioned stop display mode, and adjusting the above-mentioned cooperative controller to a low-power consumption running state.
[0077] Optionally, in the embodiments of the present application, the above-mentioned second signal refers to a specific state signal generated by the cooperative controller and sent to the main controller, indicating the current charging and discharging state of the battery and whether the battery is in place, including but not limited to the state that the battery is charging, the battery is fully charged, the battery is not in place, etc., to facilitate the real-time grasp and response of the main controller to the state of the device battery.
[0078] It should be noted that the association mechanism between the indicator light display mode and the state of the device battery is not a single way. In addition to directly responding to the battery level state, it can also be determined based on the communication results between the cooperative controller and the main controller, as well as the running mode of the device, the operation behavior of the user, and other factors, for example, the color, brightness or flashing frequency of the indicator light may be different in different stages of low power alarm or high power full load, to more intuitively convey more information, which is not limited by the present application, and is intended to improve user perception and experience through flexible and variable ways.
[0079] Exemplarily, when the cooperative controller detects that the battery is in place and is charging, it will send a second signal to the main controller to inform the main controller of the charging state of the battery. At this time, the cooperative controller will instruct the indicator light to switch to the charging display mode, such as displaying a stable orange color or flashing green color, to intuitively indicate that the battery is charging power. On the other hand, if the battery is suddenly not in place, i.e. removed by the user or not properly inserted, during the process of sending the second signal, the indicator light display mode will be quickly switched to the stop display mode, for example, the indicator light is extinguished or only has a very low brightness constant, while the cooperative controller itself is adjusted to a low-power consumption running state to save power and avoid potential safety risks caused by abnormal battery.
[0080] In an exemplary embodiment, taking a portable thermal imaging device used outdoors as an example, the coordination controller monitors the target output level to be a low level expected when the device battery is in place and in a charging state, indicating that the battery is being charged, and sends a second signal to the main controller to inform it of the current state of the battery. The coordination controller simultaneously controls the indicator light to enter a charging display mode, such as a steady orange light to prompt the user that the device is charging until the battery is fully charged. Assuming at some point, the coordination controller detects that the target level signal is suddenly interrupted or abnormally jumps, quickly determines that the battery may not be in place, i.e. the user attempts to remove the battery without turning off the device, the coordination controller immediately sends a second signal to the main controller and switches the indicator light mode to a stop display mode, which is represented by the indicator light being completely extinguished, and adjusts the coordination controller to a low-power running state to prevent the device from running in an abnormal state, protecting the device and user safety.
[0081] Through the embodiments of the present application, the technology of the coordination controller and the main controller working together and dynamically adjusting the display mode of the indicator light is adopted, which realizes informing the user in time and automatically adjusting the running state of the device when the battery state changes, especially when the battery is not in place, unnecessary power consumption can be stopped in time, the overall energy efficiency and safety of the device are improved, and the purposes of optimizing the user interaction experience and device energy management are achieved.
[0082] As an optional solution, the above method further includes: in the case of controlling the above coordination controller to send the above first signal to the above main controller, controlling the above coordination controller to obtain and send battery state data to the above main controller, wherein the above battery state data includes at least one of the charging progress of the above device battery and the available power of the above device battery.
[0083] Optionally, in the embodiments of the present application, the battery state data refers to a series of information sets reflecting the current health status and energy level of the battery obtained by the coordination controller through monitoring and analyzing the charging and discharging behavior of the battery, including but not limited to the charging progress, available power, temperature, voltage, current and other parameters of the battery.
[0084] It should be noted that in different application scenarios, the data interaction frequency and mode of the coordination controller and the main controller may be different, for example, in a low-power mode, data interaction can be minimized, and only when the battery state changes significantly, update information is sent; while in a high-performance demand scenario, the coordination controller can send real-time battery state data to the main controller to ensure that the main controller can quickly respond to battery state changes, resource allocation and state display, the specific frequency and mode of data interaction are not limited in the embodiments of the present application.
[0085] Exemplarily, the cooperative controller actively sends a first signal to the main controller to request the main controller to read the latest battery status data after monitoring the battery level change or receiving an external control instruction. The cooperative controller packages the collected battery status data such as the charging progress and the available power and sends the data to the main controller through a predetermined communication protocol for updating the power display information of the device interface or taking corresponding energy-saving strategies according to the battery status.
[0086] In an exemplary embodiment, taking the battery status management of the portable thermal imaging device during the charging process as an example, when the cooperative controller detects the USB charging input and the target output level is a low level, the cooperative controller determines that the battery is being charged, and then sends a first signal to the main controller to trigger the main controller to obtain the battery status data from the cooperative controller, including the current charging progress and the available power. After receiving the first signal, the cooperative controller starts the battery status data acquisition module, reads the battery status information provided by the charging management circuit such as the charging percentage and the remaining power, and converts these data into a digital format that can be parsed by the main controller and sends the data to the main controller through a communication interface such as I2C or SPI. The main controller receives and processes these data, updates the battery icon on the display screen of the device, displays the real-time charging progress and power value, ensures that the user can intuitively understand the battery status of the device during the charging process, and adjusts the device operation mode according to the battery status information to achieve the purpose of high efficiency and energy saving.
[0087] Through the embodiments of the present application, the active data interaction mechanism between the cooperative controller and the main controller is adopted to realize the instant update of the cognition of the main controller to the battery status when the battery status of the device changes, and the energy efficiency management and device control optimization accordingly, so as to achieve the purposes of improving the operation efficiency of the device, ensuring the safety of the user, and enhancing the user experience.
[0088] As an optional solution, the above method further comprises:
[0089] The above cooperative controller is arranged for the above target device;
[0090] In a case where the above target data indicates that the above target device is powered on, the above cooperative controller is controlled to send the above first signal to the above main controller;
[0091] The above cooperative controller is controlled to obtain the above target output level;
[0092] The above cooperative controller is controlled to send the above first signal to the above main controller;
[0093] In the case that the target output level does not experience high-low jump, the indicator light display mode is set to a charging display mode, and the cooperative controller is controlled to acquire and send first battery status data to the main controller, wherein in the charging display mode, a charging progress identifier is displayed on the display interface of the target device, and the first battery status data includes the charging progress of the device battery;
[0094] In the case that the target output level experiences high-low jump, the indicator light display mode is set to a boot display mode, and the cooperative controller is controlled to acquire and send second battery status data to the main controller, wherein in the boot display mode, a remaining power identifier is displayed on the display interface of the target device, and the second battery status data includes the available power of the device battery.
[0095] It should be noted that the configuration of the target device and the cooperative controller can adapt to various hardware architectures and operating system environments, including but not limited to embedded systems, mobile devices, Internet of Things (IoT) nodes, etc., and the specific type and operating system version of such devices are not limited in the present application, and a general device energy efficiency management solution is provided.
[0096] In addition, the high-low jump detection mechanism of the target output level can be realized by hardware circuit combined with software algorithm, and the specific jump threshold and detection period can be adjusted according to actual application requirements and battery characteristics to adapt to battery state monitoring and energy efficiency management in different scenarios, and the present application also does not make strict provisions for this.
[0097] Exemplarily, a cooperative controller is first configured for the target device, which has the ability to independently process battery status data, control indicator light display mode, and interact with the main controller. When the cooperative controller detects that the target data indicates that the target device is powered on, the cooperative controller immediately sends a first signal to the main controller, triggering the main controller to start running or enter the corresponding initialization process. The cooperative controller then continuously monitors the target output level, and once it is found that the target output level does not experience high-low jump, i.e., the battery is in a stable charging state, the indicator light display mode is switched to the charging display mode. At the same time, the cooperative controller collects first battery status data, including the charging progress of the battery, and sends it to the main controller to realize real-time refreshing of the charging progress identifier on the device display screen. Conversely, if the target output level experiences high-low jump, indicating that the battery is not in place or there are other abnormalities, the cooperative controller adjusts the indicator light display mode to the boot display mode, and sends second battery status data, usually including the available power information of the battery, to the main controller, so that the main controller displays the remaining power identifier on the device interface to remind the user to pay attention to the battery status.
[0098] In an example embodiment, taking the application scenario of an outdoor portable thermal imaging device as an example, the cooperative controller monitors that the target data indicates that the device is in a standby state when the device starts charging, and then sends a first signal to the main controller to prompt it to remain in a low-power mode. Next, the cooperative controller continuously reads the target output level, and when it is determined that the level does not experience a high-low jump, that is, the battery is being steadily charged, it sets the indicator light mode to a steady green flicker, representing that the device is charging, and at the same time acquires first battery status data, including the current charging progress, such as 60%. The cooperative controller then sends the charging progress data to the main controller through the I2C communication protocol, and the latter updates the charging progress identifier on the device display screen, displaying the current charging percentage, so that the user can intuitively understand the charging status. If the cooperative controller finds that the target output level experiences a high-low jump at a certain time point, which means that the battery may have been removed or the device has entered the process of shutting down and restarting, at this time the cooperative controller converts the indicator light mode to a fast flickering white light, indicating that the device is ready, and at the same time, the cooperative controller reads second battery status data, that is, the available battery capacity, such as 40% of the remaining capacity. The cooperative controller then sends this data to the main controller, so that the remaining capacity identifier on the device display screen is updated to display the exact available capacity ratio, facilitating the user to understand the current energy status and estimated use time of the device.
[0099] Through the embodiments of the present application, the target device can automatically adjust the indicator light display mode according to the battery status, and at the same time, with the assistance of the main controller, the charging progress or available capacity of the battery is displayed in real time. This mechanism not only enhances the user experience of the device, but also guarantees the robustness and energy efficiency of the battery management system under various conditions. In particular, in the shutdown or low-power state, the cooperative controller works independently, reducing the energy consumption of the main controller and improving the efficiency and accuracy of the overall charging and discharging management.
[0100] As an optional solution, the above method further comprises:
[0101] The above cooperative controller is provided for the above target device;
[0102] In the case where the above target data indicates that the above target device is shut down, the above cooperative controller is controlled to send the above second signal to the above main controller;
[0103] The above cooperative controller is controlled to acquire the above target output level;
[0104] The above cooperative controller is controlled to send the above second signal to the above main controller;
[0105] In the case where the above target output level is not in a high-low jump, the above indicator light display mode is set to a charging display mode, wherein in the charging display mode, a charging progress identifier is displayed on the display interface of the above target device.
[0106] In the case that the target output level experiences a high-low jump, the indicator light display mode is set to a stop display mode, and the coordination controller is adjusted to a low-power consumption running state, wherein in the stop display mode, the display interface of the target device is not displayed.
[0107] It should be noted that the mechanism for the target data indicating device to shut down can be diverse, including but not limited to user manual operation, automatic shutdown after the device automatically detects long-term inactivity, low-power warning shutdown, remote control instruction shutdown, etc., which is not limited in the present application, and is intended to adapt to flexible shutdown requirements in different use scenarios.
[0108] At the same time, the monitoring of the target output level and the judgment logic of the high-low jump can be adjusted and optimized according to various factors such as battery type, charger type, device environment, etc., to ensure that the in-situ and charge-discharge state of the battery can be accurately reflected under various conditions, and the present application does not set any limitation on these specific parameters.
[0109] Exemplarily, in the device shutdown state, the coordination controller continues to perform battery energy efficiency management tasks. Specifically, after the device shutdown signal is triggered, the coordination controller is controlled to send a second signal to the main controller, notifying it to enter a low-power consumption or sleep mode. The coordination controller then independently monitors the target output level. If the level does not experience a high-low jump, it is determined that the battery is in a stable charging state. At this time, the coordination controller adjusts the indicator light display mode to a charging display mode, such as a device screen presenting a charging animation or a charging progress bar, and a charging progress identifier is displayed on the device interface, such as "charging..." or a charging progress in percentage form.
[0110] Conversely, if the target output level detects a high-low jump, indicating that the battery has been removed from the device or other abnormal conditions, the coordination controller immediately enters a stop display mode, the indicator light is extinguished or flashes in a specific way to indicate an abnormal state, and the coordination controller switches to a low-power consumption running state to minimize power consumption of the device in the shutdown state.
[0111] In an exemplary embodiment, taking the shutdown charging management of a portable thermal imaging device as an example, after the user presses the shutdown key or the device detects that the power is lower than the preset threshold and automatically shuts down, the cooperative controller receives the target data, i.e., the shutdown instruction, and immediately sends a second signal to the main controller, instructing the main controller to enter deep sleep to reduce power consumption. The cooperative controller continues to run and monitor the target output level change. If the level is stable in the charging state range (for example, low level), the cooperative controller adjusts the indicator light to the charging display mode. Although the device screen is in sleep or off state, the stable green light of the external LED indicator light represents that the charging is proceeding normally, and the current charging progress is saved in the memory, so that the user can view the latest charging status when the device is started again. If the cooperative controller detects that the target output level jumps up and down (for example, from low level to high level and then back to low level) in the shutdown state, which usually means that the battery is removed or the charger state is unstable, the cooperative controller immediately switches the indicator light mode to the stop display mode, and the external LED indicator light is turned off or works in the low-power flashing mode. At the same time, the cooperative controller enters deep sleep state to minimize additional power consumption, ensuring that the device can effectively manage the battery state in the shutdown state, avoiding unnecessary energy waste, and also providing clear visual feedback to the user to indicate the current battery state and abnormal conditions.
[0112] Through the embodiments of the present application, the cooperative controller independently runs in the shutdown state, which realizes efficient and accurate monitoring and management of the battery charging and discharging process in the inactive state or without the intervention of the main controller, and achieves the safe and reliable purposes of prolonging the endurance of the device, optimizing energy efficiency management, and improving user experience.
[0113] In an exemplary embodiment, through a programmable cooperative controller, the charging and discharging management of a lithium battery can be realized, and the related information such as the acquisition of the battery capacity, the battery health status, and the current output current of the battery can be collected, and the related information is integrated and sent to the main controller in the form of a data packet. At the same time, the current corresponding logic is determined by collecting the key state and the USB insertion state, and the corresponding logic state is displayed. The acquisition state is to acquire whether the battery is in place, which facilitates accurate power calculation of the battery capacity. The cooperative controller can also serve as an external PMIC control to control the power-on and power-off logic of the main controller. Through the above processing mode, the participation of the main controller in the non-starting state is reduced, and only a low-power cooperative controller is needed to complete various customized functions.
[0114] As shown in Figure 3 , taking the battery charging and discharging management system of a target device as an example, the module design composition of the target device includes but is not limited to:
[0115] Display state module 301: for displaying system state, receiving control signals from cooperative controller, while the module can be extended on top, integrating interactive function keys between the module and the externally displayed state indicator light control.
[0116] State acquisition module 302: for acquiring whether the lithium battery of the device is in place. Since the device battery is detachable, it is impossible to determine whether the battery is in place by traditional methods such as acquiring battery voltage and current, because when the battery is not in place, the device acquisition end may also have a voltage, and this voltage is from the USB output, thereby causing misjudgment. For current, when the device is in a fully charged state, there is also no current data, so the application embodiment provides a new battery state acquisition scheme, which indirectly acquires whether the battery is in place according to the SATA state pin of the charging management, because when the pin is high, the charging is complete, when the pin is low, the charging is in progress, and when the pin is high-low transition, it is a battery out-of-place state. The cooperative controller acquires the lithium battery state by collecting the state.
[0117] Cooperative controller 303: this module is the core module, the most important function is to replace the main control in the charging process to control the entire charging and display system, reduce the participation of the main controller, so as to avoid the main control participating in the charging process, resulting in a large power consumption, thereby increasing the invalid power ratio of the system, resulting in a very low charging energy utilization rate. The cooperative controller selects a low-power single-chip microcomputer, and the power supply switch of the main system is controlled by the cooperative controller. When the device is in a state of starting without using the device, the main system can be powered off by the cooperative controller, and the system is in a low-power state. At the same time, the power management can also be configured to turn off the cooperative processing power, and further enter an ultra-low power mode. At this time, the device leakage is in the order of several uA. When the device is in a state of shutting down with an external USB power supply for charging, the cooperative controller wakes up to run, because the device does not need the main system to run, the main system power is turned off, the power loss of the main system is reduced, and the charging energy efficiency is improved. When the device is normally started, the relevant information data of the cooperative controller is transmitted to the main controller. The cooperative controller enters a low-power state, and the power consumption is negligible. The module can be externally expanded, and the module can integrate human-computer interaction indicator lights and function keys, and the key value transmission is realized by the cooperative controller to ensure the consistency of the platform compatibility. The data interaction between the cooperative controller and the main system can use common digital interfaces such as I2C or SPI.
[0118] USB module 304: for providing power for charging the device or providing power for starting the device.
[0119] Key module 305: external key, assisting the system to determine whether the current energy consumption management can be performed.
[0120] Lithium battery module 306: lithium ion battery (device battery described above), with overcharge protection, overcharge protection and overdischarge protection.
[0121] Power management module 307: for charging and discharging management of lithium battery, with common protection functions such as overcharge protection, overvoltage protection, overtemperature protection, etc., which can support fast charging.
[0122] Further, the software running flow of the target device includes but is not limited to as Figure 4 shown.
[0123] It can be understood that the embodiments of the present application can customize and expand functions, the control mode can be changed according to the type of the device, and the hardware resources and software resources of each type of portable thermal imaging device can be directly reused; the static loss is low, the device can enter an ultra-low power consumption state, the charging energy efficiency ratio is high; the detection of whether the battery is in place can be realized under the condition of switching on and off, the battery without built-in power meter can be replaced, the battery management can be reset, the accurate measurement of battery power can be realized, the energy efficiency control can be realized by using the built-in PMIC of the system, the expandability is stronger, the application is more flexible, the corresponding functions can be realized by self-programming, the compatibility of each platform is better; the energy efficiency control can be realized by the system, the power consumption of the device itself is reduced when charging in the off state, the energy efficiency ratio of charging is improved, the in-place detection of the battery without built-in power meter can be realized in the off state, and the accuracy of the power-on power is better guaranteed.
[0124] It can be understood that in the specific embodiments of the present application, user information and other related data are involved, and when the above embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of countries and regions.
[0125] It should be noted that, for the foregoing method embodiments, in order to simply describe, they are all described as a series of action combinations, but those skilled in the art should know that the present application is not limited to the order of the actions described, because according to the present application, certain steps can be performed in other order or at the same time. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0126] According to another aspect of the embodiments of the present application, a device state display device for implementing the device state display method described above is also provided. As Figure 5 shown, the device includes:
[0127] The setting module 502 is configured to set a cooperative controller for a target device, wherein the cooperative controller is configured to acquire target data and send the target data to a main controller of the target device, and the target data is used to determine a running state of the target device.
[0128] The first processing module 504 is configured to, in a case where the target data indicates that the target device needs to be charged, control the cooperative controller to send a first signal to the main controller, and set a display mode of an indicator according to a target output level, wherein the first signal is used to control the main controller to be powered on, the target output level is output by a target pin of a power management module of the target device, and the power management module is connected to the cooperative controller through the target pin.
[0129] The second processing module 506 is configured to, in a case where the target data indicates that the target device does not need to be charged, control the cooperative controller to send a second signal to the main controller, and set the display mode of the indicator according to the target output level, wherein the second signal is used to control the main controller to be powered off.
[0130] As an optional solution, the apparatus is further configured to control the cooperative controller to acquire the target output level, determine an in-place state of a device battery according to a value of the target output level, and set the display mode of the indicator based on the in-place state of the device battery.
[0131] As an optional solution, the apparatus is configured to set the display mode of the indicator based on the in-place state of the device battery in at least one of the following manners: setting the display mode of the indicator to a charging display mode, wherein in the charging display mode, a charging progress identifier is displayed on a display interface of the target device; setting the display mode of the indicator to a start-up display mode, wherein in the start-up display mode, a remaining power amount identifier is displayed on the display interface of the target device; and setting the display mode of the indicator to a stop display mode, wherein in the stop display mode, the display interface of the target device is not displayed.
[0132] As an optional solution, the apparatus is configured to determine the in-place state of the device battery according to the value of the target output level in the following manner: in a case where the target output level is in a high-low jump, determining that the device battery is not in place; and in a case where the target output level is not in the high-low jump, determining that the device battery is in place.
[0133] As an optional solution, the apparatus is configured to determine that the device battery is in place in the case where the target output level is not in the high-low jump in the following manner: in a case where the target output level is a high level, determining that a power amount of the device battery is full; and in a case where the target output level is a low level, determining that the power amount of the device battery is not full.
[0134] As an optional solution, the device is further configured to: set the indicator light display mode to the charging display mode if the control cooperation controller sends the first signal to the main controller and the device battery is in place; and set the indicator light display mode to the boot display mode if the control cooperation controller sends the first signal to the main controller and the device battery is not in place.
[0135] As an optional solution, the device is further configured to: set the indicator light display mode to the charging display mode if the control cooperation controller sends the second signal to the main controller and the device battery is in place; and set the indicator light display mode to the stop display mode and adjust the cooperation controller to a low-power running state if the control cooperation controller sends the second signal to the main controller and the device battery is not in place.
[0136] As an optional solution, the device is further configured to: acquire and send battery status data to the main controller by the control cooperation controller if the control cooperation controller sends the first signal to the main controller, wherein the battery status data comprises at least one of a charging progress of the device battery and an available power of the device battery.
[0137] As an optional solution, the device is further configured to: set the cooperation controller for a target device; send the first signal to the main controller by the control cooperation controller if the target data indicates that the target device is booted; acquire a target output level by the control cooperation controller; send the first signal to the main controller by the control cooperation controller; set the indicator light display mode to the charging display mode and acquire and send first battery status data to the main controller by the control cooperation controller if the target output level is not in a high-low jump, wherein a charging progress identifier is displayed on a display interface of the target device in the charging display mode, and the first battery status data comprises the charging progress of the device battery; and set the indicator light display mode to the boot display mode and acquire and send second battery status data to the main controller by the control cooperation controller if the target output level is in the high-low jump, wherein a remaining power identifier is displayed on the display interface of the target device in the boot display mode, and the second battery status data comprises the available power of the device battery.
[0138] As an optional solution, the device is further configured to: set a cooperative controller for the target device; control the cooperative controller to send a second signal to the main controller in a case that the target data indicates that the target device is powered off; control the cooperative controller to acquire the target output level; control the cooperative controller to send the second signal to the main controller; set the indicator light display mode to a charging display mode in a case that the target output level is not in a high-low jump, wherein in the charging display mode, a charging progress identifier is displayed on a display interface of the target device; and set the indicator light display mode to a stop display mode and adjust the cooperative controller to a low-power consumption running state in a case that the target output level is in the high-low jump, wherein in the stop display mode, the display interface of the target device is not displayed.
[0139] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined target, and can be implemented entirely or partially by using software, hardware (such as a processing circuit or a memory) or a combination thereof. Similarly, one processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be a part of an overall module or unit that includes the functions of the module or unit.
[0140] As to the device in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
[0141] According to an aspect of the present application, a computer program product is provided, which includes a computer program.
[0142] The above sequence numbers of the embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.
[0143] In particular, according to the embodiments of the present application, the processes described in each method flowchart can be implemented as a computer software program. For example, the embodiments of the present application include a computer program product including a computer program carried on a computer readable medium, which contains program code for executing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a detachable medium. When the computer program is executed by a central processing unit, various functions defined in the system of the present application are performed.
[0144] In such embodiments, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a detachable medium. When the computer program is executed by a central processing unit, various functions provided by the embodiments of the present application are performed.
[0145] In other embodiments, the terminal device or the server described above can be a node in a distributed system, where the distributed system can be a blockchain system, which can be a distributed system formed by the plurality of nodes connected through network communication. The nodes can form a peer-to-peer network, and any form of computing device, such as a server, a terminal, or an electronic device, can become a node in the blockchain system by joining the peer-to-peer network.
[0146] According to an aspect of the present disclosure, a computer readable storage medium is provided, and a processor of an electronic device reads the computer instructions from the computer readable storage medium. The processor executes the computer instructions to cause the electronic device to perform the method for displaying the device state provided in the various optional implementation manners of the device state display aspect described above.
[0147] Optionally, in the embodiment, the computer readable storage medium described above can be configured to store the program for executing the method in the embodiments of the present disclosure.
[0148] Optionally, in the embodiment, a person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-described embodiments can be completed by a program instructing the hardware related to the terminal device, and the program can be stored in a computer readable storage medium, which can include a flash disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0149] The serial numbers of the embodiments of the present disclosure described above are only for description, and do not represent the advantages or disadvantages of the embodiments.
[0150] The integrated units in the above-described embodiments, if realized in the form of software function units and sold or used as independent products, can be stored in the computer readable storage medium described above. Based on this understanding, the technical solutions of the present disclosure, essentially or the part that contributes to the prior art, or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a number of instructions for causing one or more electronic devices to perform all or part of the steps of the methods described in the embodiments of the present disclosure.
[0151] In the above-described embodiments of the present disclosure, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.
[0152] In several embodiments provided in the present application, it should be understood that the disclosed application can be implemented in other manners. Of course, the embodiments described above are merely schematic and the division of units is only a logical function division. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, access layers, or intermediate devices, and can be in electric, mechanical, or other forms.
[0153] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.
[0154] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically, or two or more units can be integrated into one unit. The integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0155] The above is only the preferred embodiment of the present application, and it should be pointed out that for ordinary skilled persons in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, and these improvements and refinements should be considered as the protection scope of the present application.
Claims
1. A method for displaying device status, characterized in that: include: Setting a co-controller for the target device, wherein the co-controller is used to send target data to the main controller of the target device, and the target data is used to determine the operating status of the target device; When the target data indicates that the target device is powered on, controlling the auxiliary controller to send a first signal to the main controller and setting an indicator light display mode according to a target output level, wherein the first signal is used to control the main controller to power on, the target output level is output by a target pin of a power management module of the target device, and the power management module is connected to the auxiliary controller through the target pin; When the target data indicates that the target device is powered off, the auxiliary controller is controlled to send a second signal to the main controller and the indicator light display mode is set according to the target output level, wherein the second signal is used to control the main controller to power off.
2. The method according to claim 1, characterized in that The method further comprises: controlling the auxiliary controller to obtain the target output level; determining the battery status of the device according to the value of the target output level; The indicator light display mode is set based on the battery status of the device.
3. The method according to claim 2, characterized in that The step of setting the indicator light display mode based on the battery status of the device includes at least one of the following: Setting the indicator light display mode to a charging display mode, wherein in the charging display mode, a charging progress indicator is displayed on the display interface of the target device; Setting the indicator light display mode to a power-on display mode, wherein in the power-on display mode, a remaining power indicator is displayed on the display interface of the target device; The indicator light display mode is set to a stop display mode, wherein in the stop display mode, the display interface of the target device is not displayed.
4. The method according to claim 2, characterized in that The determining the device battery status according to the target output level value includes: When the target output level is in a high-low transition, determining that the battery of the device is not in place; When the target output level is not in a high-low transition, it is determined that the device battery is in place.
5. The method according to claim 4, characterized in that The step of determining that the device battery is in place when the target output level is not in a high-low transition includes: When the target output level is a high level, determining that the battery of the device is fully charged; When the target output level is a low level, it is determined that the battery of the device is not fully charged.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises at least one of the following: When controlling the auxiliary controller to send the first signal to the main controller and the battery of the device is in place, setting the indicator light display mode to the charging display mode; When the auxiliary controller is controlled to send the first signal to the main controller and the battery of the device is not in place, the indicator light display mode is set to the power-on display mode.
7. The method according to any one of claims 1 to 5, characterized in that The method further comprises at least one of the following: When controlling the auxiliary controller to send the second signal to the main controller and the battery of the device is in place, setting the indicator light display mode to the charging display mode; When the auxiliary controller is controlled to send the second signal to the main controller and the battery of the device is not in place, the indicator light display mode is set to the stop display mode, and the auxiliary controller is adjusted to a low power consumption operation state.
8. The method according to claim 1, characterized in that The method further comprises: When controlling the auxiliary controller to send the first signal to the main controller, the auxiliary controller is controlled to obtain and send battery status data to the main controller, wherein the battery status data includes at least one of the charging progress of the device battery and the available power of the device battery.
9. The method according to claim 1, characterized in that The method further comprises: Setting the co-controller for the target device; When the target data indicates that the target device is powered on, controlling the auxiliary controller to send the first signal to the main controller; controlling the auxiliary controller to obtain the target output level; Controlling the auxiliary controller to send the first signal to the main controller; When the target output level is not in a high-low transition, the indicator light display mode is set to a charging display mode, and the auxiliary controller is controlled to obtain and send first battery status data to the main controller, wherein, in the charging display mode, a charging progress indicator is displayed on the display interface of the target device, and the first battery status data includes the charging progress of the device battery; When the target output level is in a high-low transition, the indicator light display mode is set to the power-on display mode, and the auxiliary controller is controlled to obtain and send the second battery status data to the main controller, wherein, in the power-on display mode, the remaining power indicator is displayed on the display interface of the target device, and the second battery status data includes the available power of the device battery.
10. The method according to claim 1, characterized in that The method further comprises: Setting the co-controller for the target device; When the target data indicates that the target device is powered off, controlling the auxiliary controller to send the second signal to the main controller; controlling the auxiliary controller to obtain the target output level; controlling the auxiliary controller to send the second signal to the main controller; When the target output level is not in a high-low transition, setting the indicator light display mode to a charging display mode, wherein in the charging display mode, a charging progress indicator is displayed on the display interface of the target device; When the target output level is in a high-low transition, the indicator light display mode is set to a stop display mode, and the auxiliary controller is adjusted to a low-power operation state, wherein in the stop display mode, the display interface of the target device is not displayed.
11. A device for displaying the status of a device, characterized in that: include: A setting module, configured to set a co-controller for a target device, wherein the co-controller is configured to obtain and send target data to a main controller of the target device, wherein the target data is used to determine an operating state of the target device; a first processing module, configured to control the co-controller to send a first signal to the main controller and set an indicator light display mode according to a target output level when the target data indicates that the target device needs to be charged, wherein the first signal is used to control power-on of the main controller, the target output level is output by a target pin of a power management module of the target device, and the power management module is connected to the co-controller via the target pin; The second processing module is used to control the auxiliary controller to send a second signal to the main controller when the target data indicates that the target device does not need to be charged, and set the indicator light display mode according to the target output level, wherein the second signal is used to control the main controller to cut off power.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein the computer program can be executed by an electronic device to perform the method according to any one of claims 1 to 10.
13. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
14. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 10 through the computer program.