Electronic equipment and processing method
By designing a processor in an electronic device to detect the target attributes of the battery and generate prompt information, the problem of the inability to effectively detect new and replaced batteries in the prior art is solved, and the battery status of users is prompted in a timely manner during the boot process, improving the reliability and user experience of the equipment.
Patent Information
- Application Number
- CN202510125507.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-26
- Publication Date
- 2025-06-20
AI Technical Summary
After the existing electronic devices are replaced, they cannot effectively detect and prompt the user whether the battery is a newly replaced battery, which causes the user to be unable to understand the battery status, and the device may not start normally because the newly replaced battery cannot support power-on.
Design an electronic device that includes a housing, a cover, a power management unit, a processor and an output device. The processor responds to the power-on signal and obtains the target attributes of the target battery, such as the identification and key, and compares them with the history. If the match does not match or the key does not meet the verification conditions, a prompt message will be generated, prompting that the newly replaced battery may be at risk.
It realizes that during the electronic device boot, timely detects and prompts the user whether the battery is a newly replaced battery, avoiding the device being unable to start normally due to the newly replaced battery being unable to support the power boot, which improves the user experience.
Smart Images

Figure CN120179025A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of battery detection, and particularly to an electronic device and a processing method. Background Art
[0002] For electronic devices such as mobile phones, tablet computers, or laptop computers, if the battery can be replaced, after the replacement, the newly replaced battery can be directly used. For example, the newly replaced battery is used to supply power to the electronic device so that the operating system of the electronic device and the application programs based on the operating system can run. The electronic device can only provide information about the current battery level for the newly replaced battery just like the replaced battery. Electronic users cannot know the situation of the newly replaced battery. In some cases where the battery is replaced at a repair site, users don't even know whether the replacement operation has actually been performed. Summary of the Invention
[0003] In view of this, embodiments of this application provide an electronic device and a processing method.
[0004] According to the first aspect of this application, embodiments of this application provide an electronic device, including:
[0005] A housing that provides a target space for assembling a battery;
[0006] A cover plate that at least covers the target space, wherein if the cover plate is separated from the housing, the user can replace the battery assembled in the target space;
[0007] A power management unit for powering the electronic components of the electronic device with a target battery based on a power-on signal, where the target battery is the battery located in the target space;
[0008] A processor for obtaining the target attributes of the target battery in response to a power-on signal; if the target attributes do not meet the target conditions, generating a prompt message, where the prompt message is at least used to prompt that the target battery is a newly replaced battery;
[0009] An output device for outputting the prompt message.
[0010] Optionally, the output device outputting the prompt message includes at least one of the following:
[0011] The output device outputs the prompt message before the processor executes the boot loader of the operating system;
[0012] The output device outputs the prompt message before the processor starts the operating system.
[0013] Optionally, obtaining the target attributes of the target battery includes:
[0014] Obtaining a target identifier;
[0015] If the target attribute does not meet the target condition, the prompt information generated includes:
[0016] If the target identifier does not match the historical identifier, a first prompt information is generated, and the first prompt information is used to prompt that the target battery is a newly replaced battery; the historical identifier represents the identifier of the battery that could meet the verification condition on the electronic device last time.
[0017] Optionally, obtaining the target attribute of the target battery includes:
[0018] Obtaining the target identifier and obtaining the target key through an encryption method;
[0019] If the target attribute does not meet the target condition, the prompt information generated includes:
[0020] If the target identifier does not match the historical identifier and the target key does not match the verification condition, a second prompt information is generated; the second prompt information is used to prompt that there is a risk with the newly replaced battery.
[0021] Optionally, obtaining the target attribute of the target battery includes:
[0022] Obtaining the target key through an encryption method;
[0023] If the target attribute does not meet the target condition, the prompt information generated includes:
[0024] If the target key does not match the verification condition, a second prompt information is generated; the second prompt information is used to prompt that there is a risk with the newly replaced battery.
[0025] Optionally, obtaining the target attribute of the target battery includes:
[0026] Obtaining the target identifier, obtaining the target key through an encryption method, and obtaining the parameter of the target index;
[0027] If the target attribute does not meet the target condition, the prompt information generated includes:
[0028] If the target identifier does not match the historical identifier, the target key matches the verification condition, and the parameter of the target index does not meet the threshold condition, a third prompt information is generated, and the third prompt information is used to prompt that the performance of the newly replaced battery is low and please replace the battery again.
[0029] Optionally, the processor is further configured to terminate the boot execution process indicated by the boot signal.
[0030] According to the second aspect of the present application, an embodiment of the present application provides a processing method, including:
[0031] In response to a boot signal, obtaining the target attribute of a target battery, where the target battery is the battery currently located in the target space provided by the electronic device;
[0032] If the target attribute does not meet the target condition, a prompt message is generated, and the prompt message is at least used to indicate that the target battery is a newly replaced battery;
[0033] Output the prompt message.
[0034] Optionally, the output prompt message includes at least one of the following situations:
[0035] The output prompt message is before the execution of the operating system's bootloader in the boot execution process indicated by the power-on signal;
[0036] The output prompt message is before the start of the operating system in the boot execution process indicated by the power-on signal;
[0037] Optionally, the method further includes at least one of the following:
[0038] If the target key included in the target attribute does not meet the verification condition, terminate the boot execution process indicated by the power-on signal;
[0039] If the parameter of the target index included in the target attribute does not meet the threshold condition, terminate the boot execution process indicated by the power-on signal.
[0040] The above description is only an overview of the technical solution of this application. In order to be able to understand the technical means of this application more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features and advantages of this application more obvious and understandable, the specific embodiments of this application are specifically given below. Brief Description of the Drawings
[0041] Figure 1 It is a schematic structural diagram of an electronic device in an embodiment of this application;
[0042] Figure 2 It is a schematic structural diagram of the electronic components of the electronic device in an embodiment of this application;
[0043] Figure 3 It is a schematic flowchart of a processing method in an embodiment of this application;
[0044] Figure 4 It is a schematic flowchart of another processing method in an embodiment of this application;
[0045] Figure 5 It is a schematic flowchart of another processing method in an embodiment of this application. Detailed Description of the Embodiments
[0046] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the following will clearly and completely describe the technical solutions in the embodiments of this application with reference to the accompanying drawings in the embodiments of this application. Apparently, the described embodiments are some, but not all, of the embodiments of this application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in this application without creative efforts shall fall within the scope of protection of this application.
[0047] An embodiment of this application provides an electronic device, as Figure 1 shown, including:
[0048] A housing 11, which provides a target space for assembling a battery.
[0049] A cover plate 12, which is at least used to cover the target space. Among them, if the cover plate 12 is separated from the housing 11, the user can replace the battery assembled in the target space.
[0050] A power management unit 13, which is used to supply power to the electronic components of the electronic device with the target battery 14 based on a power-on signal, and the target battery 14 is the battery located in the target space.
[0051] A processor 15, which is used to obtain the target attribute of the target battery 14 in response to a power-on signal; if the target attribute does not meet the target condition, a prompt message is generated, and the prompt message is at least used to prompt that the target battery 14 is a newly replaced battery.
[0052] An output device 16, which is used to output the prompt message.
[0053] In this embodiment, the target space can be the space formed after the layout of other electronic components in the electronic device except the battery, or a space specifically set for assembling the battery.
[0054] In this embodiment, the cover plate 12 and the housing 11 can be connected by a sliding method, a snap connection method, or other methods. If, when the user wants to replace the battery assembled in the target space, the cover plate 12 can be separated from the housing 11, and then the target battery can be assembled into the target space.
[0055] In this embodiment, the power management unit 13 can be a Power Supply Unit (PSU). The power management unit 13 is connected to the target battery 14. When the user presses the power-on button of the electronic device, the start signal of the power management unit 13, that is, the power-on signal, can be triggered. When the power management unit 13 receives the power-on signal, it uses the target battery 14 as the power source to supply power to each electronic component of the electronic device. The electronic components of the electronic device can include: main board, processor, graphics card, video card, memory, hard disk drive, etc.
[0056] In this embodiment, the processor 15 may be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 15 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable controller, microcontroller, etc.
[0057] In an embodiment of the present application, the startup execution process indicated by the startup signal includes the following stages: In the first stage, the power supply unit (PSU) responds to the startup signal and provides power to the motherboard and other components of the electronic device; In the second stage, the basic input / output system (BIOS) or unified extensible firmware interface (UEFI) or embedded system (Boot loader) on the motherboard starts to execute the power-on self-test (POST) process. During this process, the BIOS or UEFI or BootLoader initializes various hardware components. BIOS and UEFI are programs that are solidified in the ROM chip on the motherboard. The motherboard firmware (BIOS and UEFI) is a software program solidified in a specific chip and is the lowest-level software of the hardware device; When the computer is powered on, the CPU reads the BIOS or UEFI or BootLoader stored in the ROM chip on the motherboard and initializes various hardware components under the control of the BIOS or UEFI or BootLoader; In the third stage, when the BIOS or UEFI or BootLoader completes the self-test, the CPU will load the operating system boot program. For example, the Boot Manager of Windows or GRUB of Linux. Among them, Boot Manager or GRUB is a key program responsible for loading the operating system kernel into memory and used to start the operating system; In the fourth stage, the operating system is loaded (for example, operating systems such as Windows, Android, or HarmonyOS, but there is no specific limitation). At this time, the CPU starts to execute the instructions of the operating system. In the embodiment of the present application, the process of detecting the newly replaced battery and outputting a prompt message is executed synchronously with the startup execution process indicated by the startup signal. And the output of the prompt message is completed before the end of the second stage, or, the output of the prompt message is completed before the end of the third stage. In another embodiment of the present application, the process of detecting the newly replaced battery and outputting a prompt message is an extension of the second stage, that is, an initialization program that extends the function of detecting the newly replaced battery and outputting a prompt message is executed to ensure that the check and prompt are completed before the fourth stage. In another embodiment of the present application, the process of detecting the newly replaced battery and outputting a prompt message is an extension of the third stage, that is, an operating system boot program that extends the function of detecting the newly replaced battery and outputting a prompt message is executed to ensure that the check and prompt are completed before the fourth stage.
[0058] In this embodiment, the target attributes of the target battery 14 may include at least one of the target identifier of the target battery, the target key obtained by encryption, the parameters of the target metrics, etc. The target metrics may be at least one of battery performance (life, maximum capacity, number of battery cycles, etc.). The target conditions may include at least one of: the target identifier matches the historical identifier, the target key matches the verification condition, the parameters of the target metrics meet the threshold condition, etc. After the power management unit 13 powers the processor 15, the processor 15 can obtain the target attributes of the target battery; then judge the target attributes based on the target conditions; if the target attributes do not meet the target conditions, a prompt message is generated, and the prompt message is at least used to prompt that the target battery is a newly replaced battery; if the target attributes meet the target conditions, the normal startup execution process can be entered.
[0059] In this embodiment, the prompt message generated by the processor 15 can be sent to the output device 16, and then the output device 16 outputs the prompt message. The output device 16 can be a display, a speaker, etc.
[0060] In this embodiment, the electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described herein and / or required.
[0061] In some embodiments, a schematic block diagram of the electronic device is as Figure 2 shown. The electronic device includes a processor 15, which can execute various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 17 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 19. In the RAM 19, various programs and data required for the operation of the electronic device can also be stored. The processor 15, ROM 17, and RAM 19 are connected to each other through a bus 20. The input / output (I / O) interface 21 is also connected to the bus 20.
[0062] Multiple electronic devices in the electronic device are connected to the I / O interface 21, including: an input unit 22, such as a keyboard, a mouse, etc.; an output device 16, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disc, etc.; and a communication unit 23, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 23 allows the electronic device to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0063] The processor 15 executes various methods and processes. For example, the processor 15 executes to obtain the target attributes of the target battery in response to a power-on signal. If the target attributes do not meet the target conditions, a prompt message is generated, and the prompt message is at least used to indicate that the target battery is a newly replaced battery. In some embodiments, obtaining the target attributes of the target battery in response to a power-on signal and generating a prompt message if the target attributes do not meet the target conditions, where the prompt message is at least used to indicate that the target battery is a newly replaced battery, can be implemented as a computer software program that is tangibly included in a machine-readable medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device via the ROM 17 and / or the communication unit 23. When the computer program is loaded into the RAM 19 and executed by the processor 15, one or more steps of obtaining the target attributes of the target battery in response to a power-on signal, generating a prompt message if the target attributes do not meet the target conditions, and the prompt message being at least used to indicate that the target battery is a newly replaced battery can be executed. Alternatively, in other embodiments, the processor 15 can be configured to execute obtaining the target attributes of the target battery in response to a power-on signal, generating a prompt message if the target attributes do not meet the target conditions, and the prompt message being at least used to indicate that the target battery is a newly replaced battery by any other suitable means (e.g., by means of firmware).
[0064] The electronic device provided by the embodiments of the present application is provided with a power management unit for powering the electronic components of the electronic device with the target battery based on a power-on signal, where the target battery is a battery located in the target space; a processor for obtaining the target attributes of the target battery in response to the power-on signal; generating a prompt message if the target attributes do not meet the target conditions, and the prompt message is at least used to indicate that the target battery is a newly replaced battery; and an output device for outputting the prompt message. In this way, during the process of powering on the electronic device after replacing the battery, the processor can detect whether the target battery is a newly replaced battery, whether it is a non-original factory battery, and / or whether the battery performance supports power-on, and promptly send out a prompt message, enabling the user to timely know whether the battery of the electronic device has been replaced during the power-on process of the electronic device and whether the inability to complete the power-on is caused by the newly replaced battery, thereby improving the user experience.
[0065] In an alternative embodiment, the output device 16 outputting the prompt message includes:
[0066] The output device 16 outputs the prompt message before the processor 15 executes the boot loader of the operating system.
[0067] In this embodiment, when the power management unit 13 receives a power-on signal, it uses the target battery 14 as the power source to supply power to each electronic component of the electronic device. After the electronic device is powered on, the processor reads the basic input / output system (BIOS) or Unified Extensible Firmware Interface (UEFI) stored in the ROM on the motherboard, and then executes the BIOS or UEFI. The BIOS or UEFI starts the power-on self-test (POST) process to check whether the hardware of the electronic device is operating normally. During this process, the BIOS or UEFI initializes various hardware components, including the processor. Only when the BIOS or UEFI completes the self-test and confirms that the hardware is error-free, will the processor load the boot loader of the operating system. The boot loader of the operating system is a key program responsible for loading the operating system kernel into memory and starting the operating system. That is, before the processor 15 executes the boot loader of the operating system, the operating system has not been started and is in the self-test stage of the BIOS or UEFI.
[0068] In this embodiment, if the time point when the output device outputs the prompt message is set before the processor executes the boot loader of the operating system, then the detection of the target battery can be completed during the self-test stage of the BIOS or UEFI; and it can prevent the situation where when the target battery is not an original factory battery or has potential safety hazards, the user cannot be prompted in time and the operating system is still started, causing damage to the operating system.
[0069] In an alternative embodiment, the output device 16 outputs the prompt message including:
[0070] The output device 16 outputs the prompt message before the processor 15 starts the operating system.
[0071] In this embodiment, if the time point when the output device outputs the prompt message is set before the processor starts the operating system, then the detection of the target battery can be completed during the self-test stage of the BIOS or UEFI or during the stage of loading the boot loader of the operating system; and it can prevent the situation where when the target battery is not an original factory battery or has potential safety hazards, the user cannot be prompted in time and the operating system is still started, causing damage to the operating system.
[0072] In an alternative embodiment, the output device 16 outputs the prompt message including:
[0073] The output device 16 outputs the prompt message after the processor 15 starts the operating system.
[0074] In this embodiment, if the target battery is a newly replaced battery and is an original factory battery, and the performance of the target battery can support booting, after the processor generates a prompt message, it can execute the bootloader of the operating system, so that the bootloader loads the operating system kernel into the memory and starts the operating system, completing the boot execution process indicated by the boot signal. Then, the prompt message is output through the output device 16. The output device 16 outputs the prompt message after the processor 15 starts the operating system.
[0075] In this embodiment, if the target battery is a newly replaced battery and is an original factory battery, and the performance of the target battery can support booting, and the output device 16 outputs the prompt message after the processor 15 starts the operating system, then no prompt message will be issued during the booting process, which can improve the user experience.
[0076] In an alternative embodiment, obtaining the target attribute of the target battery includes:
[0077] Obtaining a target identifier.
[0078] If the target attribute does not meet the target condition, generating a prompt message includes:
[0079] If the target identifier does not match the historical identifier, a first prompt message is generated, and the first prompt message is used to prompt that the target battery is a newly replaced battery; the historical identifier represents the identifier of the battery on the electronic device that was able to meet the verification conditions last time.
[0080] In this embodiment, the target identifier can represent the number, unique identification code, etc. of the target battery.
[0081] In this embodiment, the battery on the electronic device that was able to meet the verification conditions last time can be the battery that was an original factory battery when the electronic device was powered on last time. Each time the electronic device detects the battery during booting, if the verification conditions are met, the identifier of the battery can be recorded.
[0082] In some embodiments, when the processor obtains the target identifier of the target battery, it can send a query target identifier request to the target battery. Then, it receives the target identifier returned by the target battery based on the target identifier query request.
[0083] In this embodiment, after the processor obtains the target identifier, it can compare the target identifier with the recorded historical identifier. If they are the same, it means that the battery is not a newly replaced battery. If they are different, it means that the battery is a newly replaced battery, and a first prompt message can be generated to prompt that the target battery is a newly replaced battery.
[0084] In this embodiment, by obtaining the target identifier of the target battery, if the target identifier does not match the historical identifier, a first prompt message is generated. Then, during each startup process of the electronic device, it can be detected whether the target battery is a newly replaced battery, and when a newly replaced battery is detected, the user can be prompted in a timely manner.
[0085] In an alternative embodiment, obtaining the target attributes of the target battery includes:
[0086] Obtaining the target identifier and obtaining the target key through an encryption method.
[0087] If the target attributes do not meet the target conditions, the generated prompt message includes:
[0088] If the target identifier does not match the historical identifier and the target key does not match the verification conditions, a second prompt message is generated; the second prompt message is used to prompt that there is a risk with the newly replaced battery.
[0089] In this embodiment, the target identifier can represent the number, unique identification code, etc. of the target battery. The target key can represent the battery manufacturer information.
[0090] In this embodiment, the historical identifier represents the identifier of the battery on the electronic device that was able to meet the verification conditions last time. The battery on the electronic device that was able to meet the verification conditions last time can be the original factory battery when the electronic device was powered on last time. Each time the electronic device powers on and detects the battery, if the verification conditions are met, the identifier of the battery can be recorded.
[0091] In some embodiments, when the processor obtains the target identifier of the target battery, it can send a query target identifier request to the target battery. Then, it receives the target identifier returned by the target battery based on the target identifier query request.
[0092] In some embodiments, when the processor obtains the target key through an encryption method, it can generate a random number, and then send the random number to the target battery. The target battery encrypts the private key pre-stored by the manufacturer in the target battery with the random number to obtain the target key, and then sends the target key to the processor, so that the processor obtains the target key through an encryption method.
[0093] In this embodiment, after the processor obtains the target identifier and obtains the target key through encryption, it can compare the target identifier with the recorded historical identifiers. If they are the same, the target identifier matches the historical identifier, indicating that the battery is not newly replaced. If they are different, the target identifier does not match the historical identifier, indicating that the battery is newly replaced. And the verification key corresponding to the verification condition can be obtained in the same encryption manner. For example, the private key pre-stored by the manufacturer in the electronic device is encrypted with the same random number to obtain the verification key. Then the target key is compared with the verification key. If they are the same, it indicates that the target key matches the verification condition and the target battery is an original factory battery; if they are different, it indicates that the target key does not match the verification condition and the target battery is not an original factory battery. If the target identifier does not match the historical identifier and the target key does not match the verification condition, a second prompt message is generated to prompt that there is a risk with the newly replaced battery. If the target identifier does not match the historical identifier and the target key matches the verification condition, a first prompt message is generated, and the first prompt message is used to prompt that the target battery is a newly replaced battery.
[0094] It should be noted that in the embodiments of the present application, the logical order for obtaining the target identifier, obtaining the target key through encryption, matching the target identifier with the historical identifier, and matching the target key with the verification condition can also be adjusted. For example, the processor can first obtain the target identifier, then match the target identifier with the historical identifier. If the target identifier does not match the historical identifier, the target key can be obtained through encryption, and then the target key is matched with the verification condition. If the target key does not match the verification condition, a second prompt message is generated.
[0095] In this embodiment, by obtaining the target identifier and obtaining the target key through encryption, if the target identifier does not match the historical identifier and the target key does not match the verification condition, and a second prompt message is generated, then during each startup process of the electronic device, it can be detected whether the target battery is a newly replaced battery and whether the target battery is an original factory battery, and when it is detected that the newly replaced battery is not an original factory battery, the user is prompted in a timely manner.
[0096] In an optional embodiment, obtaining the target attributes of the target battery includes:
[0097] Obtaining the target key through encryption;
[0098] If the target attribute does not meet the target condition, the generated prompt message includes:
[0099] If the target key does not match the verification condition, a second prompt message is generated; the second prompt message is used to prompt that there is a risk with the newly replaced battery.
[0100] In this embodiment, when the processor obtains the target key through encryption, it can generate a random number and then send the random number to the target battery. The target battery encrypts the private key pre-stored by the manufacturer in the target battery with the random number to obtain the target key, and then sends the target key to the processor, so that the processor obtains the target key through encryption.
[0101] In this embodiment, after the processor obtains the target key through encryption, it can obtain the verification key corresponding to the verification condition in the same encryption manner. For example, it encrypts the private key pre-stored by the manufacturer in the electronic device with the same random number to obtain the verification key. Then, the target key is compared with the verification key. If they are different, it means that the target key does not match the verification condition, the target battery is not an original factory battery, and the target battery is a newly replaced battery. If the target key does not match the verification condition, a second prompt message is generated to prompt that there is a risk with the newly replaced battery.
[0102] If the target key is the same as the verification key, it means that the target key matches the verification condition and the target battery is an original factory battery. Then, the target identifier can be obtained and the target identifier is matched with the historical identifier. If the target identifier does not match the historical identifier, a first prompt message is generated. The first prompt message is used to prompt that the target battery is a newly replaced battery; the historical identifier represents the identifier of the battery that could meet the verification condition on the electronic device last time.
[0103] In this embodiment, when the target key is obtained through encryption and a second prompt message is generated if the target key does not match the verification condition, then during each startup process of the electronic device, it can be detected whether the target battery is an original factory battery, and when it is detected that the battery is not an original factory battery, the user is promptly prompted that there is a risk with the newly replaced battery.
[0104] In an alternative embodiment, obtaining the target attributes of the target battery includes:
[0105] Obtaining the target identifier, obtaining the target key through encryption, and obtaining the parameter of the target index.
[0106] If the target attributes do not meet the target conditions, the prompt messages generated include:
[0107] If the target identifier does not match the historical identifier, the target key matches the verification condition, and the parameter of the target index does not meet the threshold condition, a third prompt message is generated. The third prompt message is used to prompt that the performance of the newly replaced battery is low and the battery needs to be replaced again.
[0108] In this embodiment, the target identifier may represent the number, unique identification code, etc. of the target battery. The target key may represent battery manufacturer information. The target indicator may be a battery performance indicator. The parameters of the target indicator may include battery life information, battery aging information, and battery health status information.
[0109] In this embodiment, the historical identifier represents the identifier of the battery on the electronic device that was able to meet the verification conditions last time. The battery on the electronic device that was able to meet the verification conditions last time may be the original factory battery when the electronic device was powered on last time. Each time the electronic device powers on and detects the battery, if the verification conditions are met, the identifier of the battery may be recorded.
[0110] In some embodiments, when the processor obtains the target identifier of the target battery, it may send a query target identifier request to the target battery. Then it receives the target identifier returned by the target battery based on the target identifier query request.
[0111] In some embodiments, when the processor obtains the target key through an encryption method, it may generate a random number and then send the random number to the target battery. The target battery encrypts the private key pre-stored by the manufacturer in the target battery with the random number to obtain the target key, and then sends the target key to the processor, so that the processor obtains the target key through the encryption method.
[0112] In some embodiments, when the processor obtains the parameters of the target indicator, it may send a query battery performance request to the target battery. Then it receives the battery life information, battery aging information, and battery health status information returned by the target battery based on the battery performance query request to obtain the parameters of the target indicator.
[0113] In this embodiment, after the processor obtains the target identifier, obtains the target key through an encryption method, and obtains the parameters of the target indicator, it can compare the target identifier with the recorded historical identifier. If they are the same, the target identifier matches the historical identifier, indicating that the battery is not newly replaced. If they are different, the target identifier does not match the historical identifier, indicating that the battery is newly replaced. And the verification key corresponding to the verification conditions can be obtained in the same encryption method. For example, the private key pre-stored by the manufacturer in the electronic device is encrypted with the same random number to obtain the verification key. Then the target key is compared with the verification key. If they are the same, it indicates that the target key matches the verification conditions and the target battery is an original factory battery; if they are different, it indicates that the target key does not match the verification conditions and the target battery is not an original factory battery. And it can be confirmed whether the parameters of the target indicator meet the threshold conditions. If the threshold conditions are not met, it indicates that the performance of the target battery is poor. If the threshold conditions are met, it indicates that the performance of the target battery is good.
[0114] In this embodiment, if the target identifier does not match the historical identifier and the target key does not match the verification condition, a second prompt message is generated to prompt that there is a risk with the newly replaced battery. If the target identifier does not match the historical identifier, the target key matches the verification condition, and the parameter of the target indicator does not meet the threshold condition, a third prompt message is generated, and the third prompt message is used to prompt that the performance of the newly replaced battery is low and the battery needs to be replaced again.
[0115] It should be noted that in the embodiments of the present application, the logical order for obtaining the target identifier, obtaining the target key through encryption, obtaining the parameter of the target indicator, and matching the target identifier with the historical identifier, matching the target key with the verification condition, and matching the parameter of the target indicator with the threshold condition can also be adjusted. For example, the processor can first obtain the target identifier and obtain the target key through encryption, then match the target identifier with the historical identifier and match the target key with the verification condition. If the target identifier does not match the historical identifier and the target key matches the verification condition, then obtain the parameter of the target indicator. If the parameter of the target indicator does not meet the threshold condition, a third prompt message is generated.
[0116] In this embodiment, by obtaining the target identifier, obtaining the target key through encryption, and obtaining the parameter of the target indicator; if the target identifier does not match the historical identifier, the target key matches the verification condition, and the parameter of the target indicator does not meet the threshold condition, and a third prompt message is generated, then during each startup process of the electronic device, it is possible to detect whether the target battery is a newly replaced battery, detect whether the target battery is an original factory battery, and detect whether the performance of the target battery supports startup. And when it is detected that the newly replaced battery is an original factory battery but its performance does not support startup, the user can be prompted in a timely manner to replace the battery again.
[0117] In an optional embodiment, the processor 15 is further configured to terminate the startup execution process indicated by the startup signal.
[0118] In this embodiment, if the processor generates a second prompt message or a third prompt message, indicating that there is a risk with the newly replaced battery or the performance of the newly replaced battery is low, the processor can terminate the startup execution process indicated by the startup signal, avoid continuing to execute the startup execution process, and ensure the safety of the electronic device. If the process of detecting the newly replaced battery and outputting the prompt message is executed synchronously with the startup execution process indicated by the startup signal, the generated termination instruction in this embodiment is used to control the termination of the startup execution process so that it shuts down automatically. If the process of detecting the newly replaced battery and outputting the prompt message is an initialization program or an extension of the operating system boot program, the initialization program or the operating system boot program in this embodiment generates a termination instruction (or a shutdown instruction) and does not execute the subsequent process of the startup execution process.
[0119] The embodiment of the present application further provides a processing method, as Figure 3 shown, including:
[0120] S301, in response to a power-on signal, obtain the target attributes of the target battery, where the target battery is the battery currently located in the target space provided by the electronic device.
[0121] In this embodiment, the electronic device may include a housing that provides a target space for assembling the battery; a cover plate that at least covers the target space, where if the cover plate is separated from the housing, the user can replace the battery assembled in the target space; a power management unit that supplies power to the electronic components of the electronic device based on the power-on signal using the target battery, and the target battery is the battery located in the target space; and a processor that executes the processing method of this embodiment.
[0122] In this embodiment, the target space may be the space formed after the layout of other electronic components in the electronic device except for the battery, or a space specifically set for assembling the battery.
[0123] In this embodiment, the target attributes of the target battery may include the target identifier of the target battery, the target key obtained through encryption, the parameters of the target index, etc. The target index may be the battery performance. The target conditions may include: the target identifier matches the historical identifier, the target key matches the verification conditions, the parameters of the target index meet the threshold conditions, etc.
[0124] In this embodiment, when the user presses the power-on key of the electronic device to trigger the start signal of the power management unit, that is, the power-on signal, the power management unit can supply power to the processor using the target battery. After the processor is powered on, it can obtain the target attributes of the target battery.
[0125] S302, if the target attributes do not meet the target conditions, generate a prompt message, and the prompt message is at least used to prompt that the target battery is a newly replaced battery.
[0126] In some embodiments, if the target identifier in the target attributes does not match the historical identifier, then the target attributes do not meet the target conditions, and a first prompt message is generated. The first prompt message is used to prompt that the target battery is a newly replaced battery. The historical identifier represents the identifier of the battery that could meet the verification conditions on the electronic device last time.
[0127] In some embodiments, if the target identifier in the target attributes does not match the historical identifier and the target key in the target attributes does not match the verification conditions, then the target attributes do not meet the target conditions, and a second prompt message is generated; the second prompt message is used to prompt that there is a risk with the newly replaced battery.
[0128] In some embodiments, if the target key in the target attribute does not match the verification condition, the target attribute does not meet the target condition, and a second prompt message is generated; the second prompt message is used to prompt that there is a risk with the newly replaced battery.
[0129] In some embodiments, if the target identifier in the target attribute does not match the historical identifier, the target key in the target attribute matches the verification condition, and the parameter of the target metric in the target attribute does not meet the threshold condition, then the target attribute does not meet the target condition, and a third prompt message is generated. The third prompt message is used to prompt that the performance of the newly replaced battery is low and the battery needs to be replaced again.
[0130] S303, output a prompt message.
[0131] In this embodiment, the electronic device may further include an output device. The processor may output a prompt message through the output device.
[0132] The processing method provided by the embodiments of the present application obtains the target attribute of the target battery in response to a power-on signal, where the target battery is the battery currently located in the target space provided by the electronic device; if the target attribute does not meet the target condition, a prompt message is generated, and the prompt message is at least used to prompt that the target battery is a newly replaced battery; the prompt message is output; thus, when the electronic device is powered on after replacing the battery, the processor can detect whether the target battery is a newly replaced battery, whether it is a non-original factory battery, and / or whether the battery performance supports power-on, and promptly send a prompt message, enabling the user to timely understand whether the electronic device has replaced the battery and whether the inability to complete power-on is caused by the newly replaced battery during the power-on process of the electronic device, thereby improving the user experience.
[0133] In an alternative embodiment, outputting the prompt message includes the following:
[0134] The prompt message is output before the bootloader of the operating system in the boot execution process indicated by the power-on signal.
[0135] In this embodiment, the bootloader of the operating system is a key program responsible for loading the operating system kernel into memory and starting the operating system. That is, before the processor executes the bootloader of the operating system, the operating system has not been started and is in the self-check stage of BIOS or UEFI.
[0136] In this embodiment, setting the time point for the output device to output the prompt message before the processor executes the bootloader of the operating system can achieve the detection of the target battery during the self-check stage of BIOS or UEFI; and it can prevent the situation where when the target battery is not an original factory battery or has a safety hazard, the user cannot be prompted in time and the operating system is still started, causing damage to the operating system.
[0137] In an alternative embodiment, the output prompt information includes the following:
[0138] The output prompt information is before starting the operating system in the boot execution process indicated by the power-on signal.
[0139] In this embodiment, by setting the time point for the output device to output the prompt information before the processor starts the operating system, it is possible to complete the detection of the target battery in the self-check stage of BIOS or UEFI or in the stage of loading the boot loader of the operating system; and it can prevent the situation where when the target battery is not an original factory battery or has potential safety hazards, the user cannot be prompted in time and the operating system is still started, causing damage to the operating system.
[0140] In an alternative embodiment, as Figure 4 shown, the processing method further includes the following:
[0141] S304, if the target key included in the target attribute does not meet the verification condition, terminate the boot execution process indicated by the power-on signal.
[0142] In this embodiment, if the target key included in the target attribute does not meet the verification condition, it means that the target key does not match the verification condition and the target battery is not an original factory battery, then the boot execution process indicated by the power-on signal can be terminated to avoid starting the operating system and causing damage to the operating system.
[0143] In an alternative embodiment, as Figure 5 shown, the processing method further includes the following:
[0144] S305, if the parameter of the target index included in the target attribute does not meet the threshold condition, terminate the boot execution process indicated by the power-on signal.
[0145] In this embodiment, if the parameter of the target index included in the target attribute does not meet the threshold condition, it means that the performance of the target battery is poor, then the boot execution process indicated by the power-on signal can be terminated to avoid starting the operating system and causing damage to the operating system.
[0146] The various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which may be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.
[0147] The program code for implementing the methods of this application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing device, such that the program codes, when executed by the processor or controller, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The program code can execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
[0148] In order to provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).
[0149] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), and the Internet.
[0150] A computer system can include a client and a server. The client and the server are generally far from each other and typically interact through a communication network. The client-server relationship is created by computer programs running on respective computers and having a client-server relationship with each other. The server can be a cloud server, can also be a server of a distributed system, or a server incorporating blockchain.
[0151] It should be understood that various forms of the processes shown above can be used, steps can be reordered, added, or deleted. For example, the steps recited in this application can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this application can be achieved, and no limitation is made herein.
[0152] In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" can explicitly or implicitly include at least one such feature. In the description of this application, "a plurality" means two or more, unless otherwise specifically defined.
[0153] As described above, the above is only the specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art within the technical scope disclosed in this application can easily think of changes or substitutions, which should all be covered within the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
Claims
1. An electronic device, comprising: A housing providing a target space for assembling a battery; a cover plate, at least for covering the target space, wherein if the cover plate is separated from the housing, a user can replace a battery mounted in the target space; a power management unit, configured to power electronic devices of the electronic device with a target battery based on a power-on signal, wherein the target battery is a battery located in the target space; A processor, configured to obtain a target attribute of the target battery in response to the power-on signal; if the target attribute does not meet the target condition, generate a prompt message, wherein the prompt message is at least used to prompt that the target battery is a newly replaced battery; The output device is used to output the prompt information.
2. The electronic device according to claim 1, wherein the output device outputs the prompt information including at least one of the following: The output device outputs the prompt information before the processor executes the boot loader of the operating system; The output device outputs the prompt information before the processor starts the operating system.
3. The electronic device according to claim 2, wherein obtaining the target attribute of the target battery comprises: Get the target ID; If the target attribute does not meet the target conditions, the prompt information generated includes: If the target identifier does not match the historical identifier, a first prompt message is generated, wherein the first prompt message is used to prompt that the target battery is a newly replaced battery; The historical identifier represents the identifier of the battery of the electronic device that was able to meet the verification condition last time.
4. The electronic device according to claim 2, wherein obtaining the target attribute of the target battery comprises: Obtaining a target identifier and obtaining a target key by encryption; If the target attribute does not meet the target conditions, the prompt information generated includes: If the target identifier does not match the historical identifier and the target key does not match the verification condition, generating a second prompt message; The second prompt information is used to prompt that the newly replaced battery has risks.
5. The electronic device according to claim 2, wherein obtaining the target attribute of the target battery comprises: Obtaining the target key by encryption; If the target attribute does not meet the target conditions, the prompt information generated includes: If the target key does not match the verification condition, a second prompt message is generated; The second prompt information is used to prompt that the newly replaced battery has risks.
6. The electronic device according to claim 2, wherein obtaining the target attribute of the target battery comprises: Obtaining a target identifier, obtaining a target key by encryption, and obtaining parameters of a target indicator; If the target attribute does not meet the target conditions, the prompt information generated includes: If the target identifier does not match the historical identifier, the target key matches the verification condition and the parameter of the target indicator does not meet the threshold condition, a third prompt message is generated, and the third prompt message is used to prompt that the performance of the newly replaced battery is low and please replace the battery again.
7. The electronic device according to any one of claims 4 to 6, wherein the processor is further configured to terminate a power-on execution process indicated by the power-on signal.
8. A processing method comprising: In response to a power-on signal, obtaining a target property of a target battery, wherein the target battery is a battery currently located in a target space provided by the electronic device; If the target attribute does not meet the target condition, a prompt message is generated, wherein the prompt message is at least used to prompt that the target battery is a newly replaced battery; The prompt information is output.
9. According to the processing method of claim 8, outputting the prompt information includes at least one of the following situations: Outputting the prompt information before executing the boot loader of the operating system in the boot execution process indicated by the boot signal; The prompt information is output before starting the operating system in the boot execution process indicated by the boot signal.
10. The processing method according to claim 9, further comprising at least one of the following: If the target key included in the target attribute does not satisfy the verification condition, terminating the power-on execution process indicated by the power-on signal; If the parameter of the target indicator included in the target attribute does not meet the threshold condition, the startup execution process indicated by the startup signal is terminated.
Citation Information
Cited By
Electronic device and processing method
WO2026157964A1