Electronic device and processing method

The electronic device detects and notifies users about the condition of a newly replaced battery before the operating system boots up, addressing the lack of information and potential safety hazards in battery replacements.

WO2026157964A1PCT designated stage Publication Date: 2026-07-30LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
LENOVO (BEIJING) LTD
Filing Date
2026-01-06
Publication Date
2026-07-30

AI Technical Summary

Technical Problem

Electronic devices do not provide users with information about the condition of a newly replaced battery, and in some cases, users may not even be aware when a battery replacement occurs, potentially leading to safety hazards or device malfunction.

Method used

An electronic device with a housing, cover plate, power management integrated circuit, processor, and output device that detects the attributes of a newly replaced battery and generates a prompt message indicating its status, ensuring notification before the operating system boots up.

Benefits of technology

Ensures users are informed about the status of a newly replaced battery during the power-on process, preventing potential safety hazards and device failures by detecting and notifying before the operating system starts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2026070756_30072026_PF_FP_ABST
    Figure CN2026070756_30072026_PF_FP_ABST
Patent Text Reader

Abstract

An electronic device includes: a housing, configured to provide a target space for housing a battery; a cover plate, configured to at least cover the target space, where when the cover plate is separated from the housing, the battery housed in the target space becomes accessible for a replacement; a power management integrated circuit, configured to supply power to electronic components of the electronic device via a target battery based on a power-on signal, the target battery being the battery housed in the target space; a processor, configured to obtain a target attribute of the target battery in response to the power-on signal, and when the target attribute does not meet a target condition, generate a prompt message, the prompt message at least indicating that the target battery is a newly replaced battery; and an output device, configured to output the prompt message.
Need to check novelty before this filing date? Find Prior Art

Description

ELECTRONIC DEVICE AND PROCESSING METHODCROSS-REFERENCE TO RELATED APPLICATION (S)

[0001] This application claims priority to Chinese Patent Application No. 202510125507.8 filed on January 26, 2025, which is incorporated herein by reference in its entirety. FIELD OF THE TECHNOLOGY

[0002] The present disclosure relates to a field of battery testing technology, and more particularly to an electronic device and a processing method.BACKGROUND

[0003] For electronic devices such as mobile phones, tablets, or laptops, when the battery is replaceable, the device directly uses the newly replaced battery after the replacement is complete. For example, the new battery powers the electronic device, allowing the device's operating system and applications based on that operating system to run. Electronic devices, even with the newly replaced battery, may only provide information about the battery's current charge level, just like with the old battery. Users may not receiving information about the condition of the newly replaced battery, and in some instances where batteries are replaced at repair centers, users may not even know when the replacement is actually performed.SUMMARY

[0004] The summary provides an overview of the technical solution of certain embodiment of the present disclosure. To make objectives, features, and advantages of the present disclosure more apparent and understandable, description of certain embodiments of the present disclosure is provided below.

[0005] In one aspect, the present disclosure provides an electronic device. The electronic device includes: a housing, configured to provide a target space for housing a battery; a cover plate, configured to at least cover the target space, where when the cover plate is separated from the housing, the battery housed in the target space becomes accessible for a replacement; a power management integrated circuit, configured to supply power to electronic components of the electronic device via a target battery based on a power-on signal, the target battery being the battery housed in the target space; a processor, configured to obtain a target attribute of the target battery in response to the power-on signal, and when the target attribute does not meet a target condition, generate a prompt message, the prompt message at least indicating that the target battery is a newly replaced battery; and an output device, configured to output the prompt message.

[0006] In another aspect, the present disclosure provides a processing method. The processing method includes: in response to a power-on signal, obtaining a target attribute of a target battery, where the target battery is a battery currently housed in a target space provided by an electronic device; when the target attribute does not meet a target condition, generating a prompt message, the prompt message at least indicating that the target battery is a newly replaced battery; and outputting the prompt message.

[0007] In yet another aspect, the present disclosure provides an electronic device. The electronic device includes: a memory storing computer program instructions; and a processor coupled to the memory and configured to execute the computer program instructions and perform: obtaining a target attribute of a target battery in response to a power-on signal; and when the target attribute does not meet a target condition, generating a prompt message, the prompt message indicating that the target battery is a newly replaced battery.BRIEF DESCRIPTION OF THE DRAWINGS

[0008] FIG. 1 is a schematic diagram of a structure of an electronic device in certain embodiments of the present disclosure;

[0009] FIG. 2 is a schematic diagram of a structure of electronic components of the electronic device in certain embodiments of the present disclosure;

[0010] FIG. 3 is a flowchart of a processing method in certain embodiments of the present disclosure;

[0011] FIG. 4 is a flowchart of another processing method in certain embodiments of the present disclosure; and

[0012] FIG. 5 is a flowchart of a processing method in certain embodiments of the present disclosure.DETAILED DESCRIPTION

[0013] To make the objectives, technical solutions, and advantages of certain embodiments of the present disclosure clearer, the technical solutions in certain embodiments of the present disclosure are described below in conjunction with the accompanying drawings. The embodiments described reflect certain embodiments of the present disclosure, not all of them. Other embodiments obtained by those skilled in the technical field based on certain embodiments of the present disclosure without making inventive contributions shall fall within the scope of protection of the present disclosure.

[0014] The present disclosure in certain embodiments provides an electronic device, as shown in FIG. 1, which includes:

[0015] a housing 11, configured to provide a target space for housing a battery;

[0016] a cover plate 12, configured to at least cover the target space, where when the cover plate 12 is separated from the housing 11, the user may replace the battery housed in the target space;

[0017] power management integrated circuit 13, configured to supply power to electronic components of the electronic device via target battery 14 based on a power-on signal, where the target battery 14 is a battery housing in the target space;

[0018] processor 15, configured to obtain target attribute of target battery 14 in response to the power-on signal, and when the target attribute does not meet the target condition, generate a prompt message, at least indicating that target battery 14 is a newly replaced battery; and

[0019] an output component 16, configured to output prompt message.

[0020] In certain embodiments, the target space may be the space formed by the layout of electronic components within the electronic device other than the battery, or it may be a space particularly designed for housing the battery.

[0021] In certain embodiments, the cover plate 12 and the housing 11 may be connected by sliding, a buckle, or other methods. When the user wants to replace the battery housing in the target space, the cover plate 12 may be separated from the housing 11, and then the target battery may be housed into the target space.

[0022] In certain embodiments, the power management integrated circuit 13 may be a power supply unit (PSU) . The power management integrated circuit 13 is connected to the target battery 14. When the user presses the power button of the electronic device, a start signal, or power-on signal, of the power management integrated circuit 13 may be triggered. When the power management integrated circuit 13 receives a power-on signal, it uses the target battery 14 as the power source to supply power to the various electronic components of the electronic device. These electronic components may include: the motherboard, processor, graphics card, video card, memory, hard disk drive, or the like.

[0023] In certain embodiments, processor 15 may be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of 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 that run machine learning model algorithms, a digital signal processor (DSP) , and any suitable controller, microcontroller, or the like.

[0024] In certain embodiments of the present disclosure, the power-on execution process indicated by the power-on signal includes the following stages: The first stage involves the power supply unit (PSU) responding to the power-on signal and providing power to the motherboard and other components of the electronic device; the second stage involves the Basic Input / Output System (BIOS) or Unified Extensible Firmware Interface (UEFI) or embedded system (Bootloader) on the motherboard beginning to execute the power-on self-test (POST) process. During this process, the BIOS, UEFI, or BootLoader initializes various hardware components. BIOS and UEFI are programs embedded in ROM chips on the motherboard. Motherboard firmware (BIOS and UEFI) is software embedded in a specific chip and represents the lowest level of software for the hardware device. When the computer is powered on, the CPU reads the BIOS, UEFI, or BootLoader stored in the ROM chip on the motherboard. Under the control of the BIOS, UEFI, or BootLoader, various hardware components are initialized. At the third stage, after the BIOS, UEFI, or BootLoader completes its self-test, the CPU loads the operating system bootloader, such as Windows' Boot Manager or Linux's GRUB. Among these, the Boot Manager or GRUB is a program responsible for loading the operating system kernel into memory and starting the operating system; at the fourth stage, the operating system (such as Windows, Android, or HarmonyOS, but not limited to these) is loaded, and the CPU begins executing the operating system's instructions. In certain embodiments of the present disclosure, the process of detecting the newly replaced battery and outputting a prompt message is executed synchronously with the power-on execution process indicated by the power-on signal. Furthermore, 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 certain embodiments of the present disclosure, the process of detecting the newly replaced battery and outputting a prompt message is an extension of the second stage, in particular, an extension of the initialization program that performs the function of detecting the newly replaced battery and outputting a prompt message, thereby helping ensure that the check and prompt are completed before the fourth stage. In certain embodiments of the present disclosure, the process of detecting the newly replaced battery and outputting a prompt message is an extension of the third stage, in particular, an extension of the operating system boot program that performs the function of detecting the newly replaced battery and outputting a prompt message, thereby helping ensure that the check and prompt are completed before the fourth stage.

[0025] In certain embodiments, the target attribute of the target battery 14 may include at least one of the following: the target battery's target identifier, a target key obtained through encryption, and parameter of target indicator. The target indicator may be battery performance (at least one of lifespan, maximum capacity, and battery cycle count) . The target condition may include at least one of the following: the target identifier aligns with the past identifier, the target key aligns with the verification condition, or the parameter of the target indicator meets the threshold condition. After the power management integrated circuit 13 supplies power to the processor 15, the processor 15 may obtain the target attribute of the target battery; then, the target attribute is evaluated based on the target condition. When the target attribute does not meet the target condition, a prompt message is generated, indicating at least that the target battery is a newly replaced battery; when the target attribute meets the target condition, the normal power-on execution process may proceed.

[0026] In certain embodiments, the prompt message generated by processor 15 may be sent to output component 16, which then outputs the prompt message. Output component 16 may be a display, a speaker, or the like.

[0027] In certain embodiments, 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. Electronic devices may also refer to various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components, their connections and relationships, and their functions shown in the present disclosure are merely examples and are not intended to limit the implementations of the present disclosure described and / or claimed herein.

[0028] In certain embodiments, a schematic block diagram of the electronic device is shown in FIG. 2. The electronic device includes a processor 15, which may perform various appropriate actions and processes according to a computer program stored in read-only memory (ROM) 17 or a computer program loaded from a storage unit 18 into random-access memory (RAM) 19. In RAM 19, various programs and data required for the operation of the electronic device may also be stored. The processor 15, ROM 17, and RAM 19 are interconnected via bus 20.The input / output (I / O) interface 21 is also connected to bus 20.

[0029] Multiple electronic components in the electronic device are connected to the I / O interface 21, including: input unit 22, such as keyboard and mouse; output component 16, such as various types of displays and speakers; and storage unit 18, such as hard drives and optical drives, and a communication unit 23, such as a network card, modem, or wireless transceiver. The communication unit 23 allows the electronic device to exchange information / data with other devices via computer networks such as the Internet and / or various telecommunication networks.

[0030] Processor 15 executes various methods and processes, for example, in response to a power-on signal, processor 15 obtains the target attribute of the target battery, and when the target attribute does not meet the target condition, it generates a prompt message, indicating at least that the target battery is a newly replaced battery. In certain embodiments, in response to a power-on signal, the target attribute of the target battery is obtained, and when the target attribute does not meet the target condition, a prompt message is generated. This prompt message, which at least indicates that the target battery is a newly replaced battery, may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 18. In certain embodiments, part or all of the computer program may be loaded and / or installed onto the electronic device via ROM 17 and / or communication unit 23. When the computer program is loaded into RAM 19 and executed by the processor 15, it may perform the following steps in response to a power-on signal: obtain the target attribute of the target battery; when the target attribute does not meet the target condition, generate a prompt message. This prompt message is used at least to indicate that the target battery is one of the newly replaced batteries. Alternatively, in other embodiments, the processor 15 may be configured in any other suitable manner (for example, by way of firmware) to, in response to a power-on signal, obtain the target attribute of the target battery, and when the target attribute does not meet the target condition, generate a prompt message, which at least indicates that the target battery is a newly replaced battery.

[0031] The electronic device provided in certain embodiments of the present disclosure includes: a power management integrated circuit, configured to supply power to the electronic components of the electronic device via a target battery based on a power-on signal, where the target battery is housed in a target space; and a processor, configured to obtain target attribute of the target battery in response to the power-on signal. When the target attribute does not meet the target condition, a prompt message is generated. This message is at least to indicate that the target battery is a newly replaced battery; an output device is configured to display the prompt message. Therefore, when an electronic device is powered on after replacing the battery, the processor may detect whether the target battery is a newly replaced battery, whether it is a non-original manufacturer’s battery, and / or whether the battery performance supports the power-on process, and promptly display a prompt message. This allows users to be informed during the device's power-on process as to whether the battery has been replaced and whether the new battery is causing the device to fail to power on, thus improving the user experience.

[0032] In certain embodiments, the output component 16 outputs prompt message, including:

[0033] The output component 16 outputs prompt message before the processor 15 executes the operating system's bootloader.

[0034] In certain embodiments, when the power management integrated circuit 13 receives a power-on signal, it uses the target battery 14 as the power source to supply power to the various electronic components 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 begins the Power-On Self-Test (POST) process, checking when the electronic hardware is functioning correctly. During this process, the BIOS or UEFI initializes various hardware components, including the processor. Only after the BIOS or UEFI completes the self-test and confirms that the hardware is functioning properly will the processor load the operating system's bootloader. The operating system's bootloader is a program responsible for loading the operating system kernel into memory and starting the operating system. That is, before the processor executes the operating system's bootloader, the operating system has not yet started and is in the BIOS or UEFI self-test phase.

[0035] In certain embodiments, by setting the time point for the output device to display the prompt message before the processor executes the operating system's bootloader, it is possible to complete the detection of the target battery during the BIOS or UEFI self-test phase. This also prevents situations where the user is not promptly notified when the target battery is a non-original manufacture's battery or poses a safety hazard, and the operating system is still started, potentially causing damage to the operating system.

[0036] In certain embodiments, the output component 16 outputs prompt message, including:

[0037] The output component 16 outputs prompt message before the processor 15 starts the operating system.

[0038] In certain embodiments, by setting the time point for the output device to display the prompt message before the processor starts the operating system, the target battery may be detected during the BIOS or UEFI self-test phase or during the operating system bootloader loading phase. This prevents the operating system from starting and potentially being damaged when the target battery is a non-original manufacturer's battery or poses safety hazards, and helps ensure that the user is promptly notified.

[0039] In certain embodiments, the output component 16 outputs prompt message, including:

[0040] The output component 16 outputs the prompt message after the processor 15 starts the operating system.

[0041] In certain embodiments, when the target battery is a newly replaced battery and is an original manufacturer's battery, and the target battery's performance is sufficient to support system startup, the processor, after generating a prompt message, may execute the operating system's bootloader. The bootloader then loads the operating system kernel into memory and starts the operating system, completing the startup process indicated by the power-on signal. The prompt message is then output through output component 16. Therefore, the output component 16 outputs the prompt message after the processor 15 starts the operating system.

[0042] In certain embodiments, when the target battery is a newly replaced battery and is an original equipment manufacturer (OEM) battery, and the target battery's performance is sufficient to support system startup, the output component 16 outputs a prompt message only after the processor 15 starts the operating system. Therefore, no prompt message will be displayed during the startup process, which improves the user experience.

[0043] In certain embodiments, obtaining the target attribute of the target battery includes:

[0044] obtaining the target identifier.

[0045] When the target attribute does not meet the target conditions, generating a prompt message includes:

[0046] When the target identifier does not align with the past identifier, a first prompt message is generated. This first prompt message indicates that the target battery is a newly replaced battery; the past identifier represents the identifier of the battery that previously meets the verification condition on the electronic device.

[0047] In certain embodiments, the target identifier may represent the serial number, unique identification code, or the like., of the target battery.

[0048] In certain embodiments, the battery that previously meets the verification condition on the electronic device may be the original battery that is installed when the electronic device is last powered on. Each time the electronic device is powered on, when the battery meets the verification condition during the battery check, the battery's identifier may be recorded.

[0049] In certain embodiments, when the processor obtains the target identifier of the target battery, it may send a request to the target battery to query the target identifier. Then, it receives the target identifier returned by the target battery based on the target identifier query request.

[0050] In certain embodiments, after obtaining the target identifier, the processor may compare the target identifier with the recorded past identifier. When they are the same, it indicates that the battery has not been recently replaced. When they are different, it indicates that the battery has been recently replaced, and a first prompt message may be generated to indicate that the target battery is a newly replaced battery.

[0051] In certain embodiments, by obtaining the target identifier of the target battery, when the target identifier does not align with the past identifier, a first prompt message is generated. This allows detecting whether the target battery is a newly replaced battery each time the electronic device is powered on, and promptly notifying the user when a newly replaced battery is detected.

[0052] In certain embodiments, obtaining the target attributes of the target battery includes:

[0053] obtaining the target identifier and obtaining the target key through encryption.

[0054] When the target attribute does not meet the target condition, generating the prompt message includes:

[0055] When the target identifier does not align with the past identifier and the target key does not align with the verification condition, generating a second prompt message, the second prompt message indicating that the newly replaced battery poses a risk.

[0056] In certain embodiments, the target identifier may represent the serial number or unique identification code of the target battery. The target key may represent the battery manufacturer information.

[0057] In certain embodiments, the past identifier represents the identifier of the battery that previously meets the verification condition on the electronic device. The battery that previously meets the verification condition on the electronic device may be the original battery that is present when the electronic device is last powered on. Each time the electronic device is powered on and the battery is checked, when the verification condition is met, the battery's identifier may be recorded.

[0058] In certain embodiments, the processor, when obtaining the target battery's target identifier, may send a request to the target battery to query its target identifier. Then, it receives the target battery's target identifier returned in response to the target identifier query request.

[0059] In certain embodiments, when the processor obtains the target key through encryption, it may generate a random number and send it to the target battery. The target battery then encrypts the manufacturer-prestored private key in the target battery using this random number to obtain the target key, and then sends the target key to the processor. In this way, the processor obtains the target key through encryption.

[0060] In certain embodiments, after the processor obtains the target identifier and the target key through encryption, it may compare the target identifier with the recorded past identifier. When they are the same, the target identifier aligns with the past identifier, indicating that the battery has not been recently replaced. When they are different, the target identifier does not align with the past identifier, indicating that the battery has been recently replaced. Furthermore, the verification key corresponding to the verification condition may be obtained using the same encryption method. For example, the private key prestored by the manufacturer in the electronic device is encrypted using the same random number to obtain the verification key. Then, the target key is compared with the verification key. When they are the same, it indicates that the target key aligns with the verification condition, and the target battery is an original manufacturer's ; when they are different, it indicates that the target key does not align with the verification condition, and the target battery is not an original manufacturer battery. When the target identifier does not align with the past identifier and the target key does not align with the verification conditions, a second prompt message is generated, indicating that the newly replaced battery poses a risk. When the target identifier does not align with the past identifier but the target key aligns with the verification condition, a first prompt message is generated, indicating that the target battery is a newly replaced battery.

[0061] In certain embodiments, the logical sequence for obtaining the target identifier and the target key through encryption, as well as aligning the target identifier with the past identifier and aligning the target key with the verification condition, may be adjusted in the present disclosure. For example, the processor may first obtain the target identifier, then align the target identifier with the past identifier, when the target identifier does not align with the past identifier, the target key may be obtained through encryption, and then the target key may be aligned with the verification conditions, when the target key does not align with the verification condition, a second prompt message is generated.

[0062] In certain embodiments, by obtaining the target identifier and the target key through encryption, when the target identifier does not align with the past identifier and the target key does not align with the verification condition, a second prompt message is generated. This allows detecting whether the target battery is a newly replaced battery and whether it is an original manufacturer's each time the electronic device is powered on, and promptly alerting the user when the newly replaced battery is not an original manufacturer's .

[0063] In certain embodiments, obtaining the target attribute of the target battery includes:

[0064] obtaining the target key through encryption;

[0065] When the target attribute does not meet the target conditions, generating a prompt message includes:

[0066] When the target key does not align with the verification condition, generating a second prompt message, the second prompt message indicating that the newly replaced battery poses a risk.

[0067] In certain embodiments, when the processor obtains the target key through encryption, it generates a random number and sends it to the target battery. The target battery encrypts the manufacturer-prestored private key using this random number to obtain the target key, and then sends the target key to the processor. The processor then obtains the target key through this encryption process.

[0068] In certain embodiments, after the processor obtains the target key through encryption, it may obtain the verification key corresponding to the verification condition using the same encryption method. For example, it may encrypt the private key prestored by the manufacturer in the electronic device using the same random number to obtain the verification key. Then, the target key is compared with the verification key. When they are not the same, it indicates that the target key does not align with the verification condition, indicating the target battery is not an original manufacturer's battery and is a newly replaced battery. When the target key does not align with the verification condition, a second prompt message is generated, indicating that the newly replaced battery poses a risk.

[0069] When the target key aligns with the verification key, it indicates that the target key aligns with the verification condition, and the target battery is an original manufacturer's battery. The target identifier may then be obtained and compared with the past identifier, when the target identifier does not align with the past identifier, a first prompt message is generated, indicating that the target battery is a newly replaced battery; the past identifier represents the identifier of the battery that previously meets the verification condition on the electronic device.

[0070] In certain embodiments, the target key is obtained through encryption. When the target key does not align with the verification condition, a second prompt message is generated. This allows for the detection of whether the target battery is an original manufacturer's battery every time the electronic device is powered on, and when a non-original manufacture's battery is detected, the user is promptly notified that the newly replaced battery poses a risk.

[0071] In certain embodiments, obtaining the target attribute of the target battery includes:

[0072] obtaining the target identifier, obtaining the target key through encryption, and obtaining the parameter of the target indicator.

[0073] When the target attribute does not meet the target condition, generating the prompt message includes:

[0074] When the target identifier does not align with the past identifier, the target key aligns with the verification conditions, and the parameter of the target indicator does not meet the threshold condition, a third prompt message is generated. This third prompt message is to indicate that the newly replaced battery has low performance and that the battery should be replaced again.

[0075] In certain embodiments, the target identifier may represent the serial number or unique identification code of the target battery. The target key may represent information about the battery manufacturer. The target indicator may be battery performance indicator. The parameter of the target indicator may include battery lifespan information, battery aging information, and battery health status information.

[0076] In certain embodiments, the past identifier represents the identifier of the battery that previously meets the verification condition on the electronic device. The battery that previously meets the verification condition on the electronic device may be the original manufacturer's battery that is present when the electronic device is last powered on. Each time the electronic device is powered on and the battery is checked, when the verification condition is met, the battery's identifier may be recorded.

[0077] In certain embodiments, the processor, when obtaining the target battery's identifier, may send a request to the target battery to query its key identifier. Then, it receives the target battery's key identifier returned in response to the key identifier query request.

[0078] In certain embodiments, when the processor obtains the target key through encryption, it may generate a random number and send it to the target battery. The target battery then encrypts the manufacturer-prestored private key in the target battery using this random number to obtain the target key, and then sends the target key to the processor. In this way, the processor obtains the target key through encryption.

[0079] In certain embodiments, the processor, when obtaining the parameter of the target indicator, may send a battery performance query request to the target battery. It then receives battery lifespan information, battery aging information, and battery health status information returned by the target battery based on the battery performance query request, thereby obtaining the parameter of the target indicator.

[0080] In certain embodiments, after obtaining the target identifier, the target key through encryption, and the parameter of the target indicator, the processor may compare the target identifier with the recorded past identifier. When they are the same, the target identifier aligns with the past identifier, indicating that the battery has not been recently replaced. When they are different, the target identifier does not align with the past identifier, indicating that the battery has been recently replaced. Furthermore, the verification key corresponding to the verification condition may be obtained using the same encryption method. For example, the private key prestored by the manufacturer in the electronic device is encrypted using the same random number to obtain the verification key. Then, the target key is compared with the verification key. When they are the same, it indicates that the target key aligns with the verification condition, and the target battery is an original manufacturer's battery; when they are different, it indicates that the target key does not align with the verification condition, and the target battery is not an original manufacturer's battery. Additionally, it may be confirmed whether the parameter of the target indicator meets the threshold condition, when the parameter does not meet the threshold condition, it indicates that the target battery has poor performance; when the parameter meets the threshold condition, it indicates that the target battery has good performance.

[0081] In certain embodiments, when the target identifier does not align with the past identifier and the target key does not align with the verification condition, a second prompt message is generated, indicating that the newly replaced battery poses a risk. When the target identifier does not align with the past identifier, the target key aligns with the verification condition, and the parameter of the target indicator does not meet the threshold condition, a third prompt message is generated. This third prompt message indicates that the performance of the newly replaced battery is low and that the battery should be replaced again.

[0082] In certain embodiments, the logical order for obtaining the target identifier, obtaining the target key through encryption, and obtaining the parameter of the target indicator, as well as aligning the target identifier with past identifier, aligning the target key with verification conditions and aligning the parameter of the target indicator with threshold condition, may also be adjusted in the present disclosure. For example, the processor may first obtain the target identifier and the target key through encryption, then align the target identifier with past identifier and the target key with verification condition. When the target identifier does not align with the past identifier but the target key aligns with the verification condition, then the parameter of the target indicator is obtained, and when the parameter of the target indicator does not meet the threshold condition, a third prompt message is generated.

[0083] In certain embodiments, the target identifier is obtained, the target key is obtained through encryption, and the parameter of the target indicator is obtained; when the target identifier does not align with the past identifier, the target key aligns with the verification condition, and the parameter of the target indicator does not meet the threshold condition, a third prompt message is generated. This allows for detection of whether the target battery is a newly replaced battery, whether the target battery is an original manufacturer's battery, and whether the target battery's performance supports startup, each time the electronic device is powered on.When a newly replaced battery is detected as an original manufacturer's battery, but its performance does not support startup, the user is promptly prompted to replace the battery again.

[0084] In certain embodiments, the processor 15 is also configured to terminate the startup execution process indicated by the startup signal.

[0085] In certain embodiments, when the processor generates a second or third prompt message indicating that the newly replaced battery poses a risk or has low performance, the processor may terminate the power-on execution process indicated by the power-on signal, preventing further execution of the power-on process and helping ensure the safety of the electronic device. When the process of detecting the newly replaced battery and outputting the prompt message is executed synchronously with the power-on execution process indicated by the power-on signal, the termination instruction generated in certain embodiments is used to control the termination of the power-on execution process, resulting in automatic shutdown. When the process of detecting the newly replaced battery and outputting the prompt message is an extension of the initialization program or operating system boot program, the initialization program or operating system boot program in certain embodiments generates a termination instruction (or shutdown instruction) to prevent the subsequent processes of the power-on execution process from being executed.

[0086] The present disclosure in certain embodiments also provides a processing method, as shown in FIG. 3, which includes:

[0087] S301, in response to a power-on signal, obtaining the target attribute of the target battery, where the target battery is the battery currently housed in the target space provided by the electronic device.

[0088] In certain embodiments, the electronic device may include a housing that provides a target space for housing a battery; a cover plate, at least for covering the target space, where when the cover plate is separated from the housing, the user may replace the battery housed in the target space; a power management integrated circuit, configured to supply power to the electronic components of the electronic device via the target battery based on a power-on signal, where the target battery is the battery housed in the target space; and a processor, configured to perform the processing method of certain embodiments.

[0089] In certain embodiments, the target space may be a space formed from the layout of electronic components in the electronic device other than the battery, or it may be a space particularly designed for housing the battery.

[0090] In certain embodiments, the target attribute of the target battery may include the target identifier, a target key obtained through encryption, and parameter of the target indicator. The target indicator may be battery performance. The target condition may include: the target identifier aligning with the past identifier, the target key aligning with the verification condition, and the parameter of the target indicator meeting the threshold condition, or the like.

[0091] In certain embodiments, when the user presses the power button of the electronic device, triggering the start signal of the power management integrated circuit, for example, the power-on signal, the power management integrated circuit may use the target battery as the power source to supply power to the processor. After the processor is powered on, it may obtain the target attribute of the target battery.

[0092] S302, when the target attribute does not meet the target condition, generating a prompt message, the prompt message at least indicating that the target battery is a newly replaced battery.

[0093] In certain embodiments, when the target identifier in the target attribute does not align with the past identifier, the target attribute does not meet the target condition, and a first prompt message is generated. This first prompt message is to indicate that the target battery is a newly replaced battery. The past identifier represents the identifier of the battery that previously meets the verification condition on the electronic device.

[0094] In certain embodiments, when the target identifier in the target attribute does not align with the past identifier, and the target key in the target attribute does not align with the verification condition, then the target attribute does not meet the target condition, and a second prompt message is generated; the second prompt message is to indicate that the newly replaced battery poses a risk.

[0095] In certain embodiments, when the target key in the target attribute does not align with the verification condition, then the target attribute does not meet the target condition, and a second prompt message is generated; the second prompt message is to indicate that the newly replaced battery poses a risk.

[0096] In certain embodiments, when the target identifier in the target attribute does not align with the past identifier, the target key in the target attribute aligns with the verification condition, and the parameter of the target indicator 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. This third prompt message indicates that the newly replaced battery has low performance and that the battery should be replaced again.

[0097] S303, outputting the prompt message.

[0098] In certain embodiments, the electronic device may also include an output device. The processor may output prompt message through the output device.

[0099] The processing method provided in certain embodiments of the present disclosure, in response to a power-on signal, obtains the target attribute of the target battery, where the target battery is the battery currently housed in the target space provided by the electronic device; when the target attribute does not meet the target condition, a prompt message is generated, which at least serves to indicate that the target battery is a newly replaced battery; and the prompt message is output. Therefore, when an electronic device is powered on after replacing the battery, the processor may detect whether the target battery is a newly replaced battery, whether it is a non-original manufacture's battery, and / or whether the battery performance supports the power-on process, and promptly displays a prompt message. This allows users to be informed during the device's power-on process whether the battery has been replaced and whether the new battery is causing the device to fail to power on, thus improving the user experience.

[0100] In certain embodiments, outputting prompt message includes the following:

[0101] The output prompt message is displayed before the operating system's bootloader is executed in the boot process indicated by the power-on signal.

[0102] In certain embodiments, the operating system's bootloader is the program responsible for loading the operating system kernel into memory and starting the operating system. That is, before the processor executes the operating system's bootloader, the operating system has not yet started and is in the BIOS or UEFI self-test phase.

[0103] In certain embodiments, by setting the time point for the output device to display the prompt message before the processor executes the operating system's bootloader, it is possible to complete the detection of the target battery during the BIOS or UEFI self-test phase. This also prevents situations where the user is not promptly notified when the target battery is a non-original manufacturer's battery or poses a safety hazard, and the operating system is still started, potentially causing damage to the operating system.

[0104] In certain embodiments, the output prompt message includes the following:

[0105] The output prompt message is displayed before the operating system is started in the power-on execution process indicated by the power-on signal.

[0106] In certain embodiments, setting the time point for the output device to display the prompt message before the processor starts the operating system allows for the detection of the target battery during the BIOS or UEFI self-test phase or during the operating system bootloader loading phase. This prevents the operating system from starting when the target battery is a non-original manufacturer's battery or poses safety hazards, thus preventing potential damage to the operating system.

[0107] In certain embodiments, as shown in FIG. 4, the processing method further includes:

[0108] S304, when the target key included in the target attribute does not meet the verification condition, terminating the power-on execution process indicated by the power-on signal.

[0109] In certain embodiments, when the target key included in the target attribute does not meet the verification condition, it indicates that the target key does not align with the verification condition, and the target battery is a non-original manufacturer's battery. Therefore, the power-on execution process indicated by the power-on signal may be terminated to prevent the operating system from starting and potentially being damaged.

[0110] In certain embodiments, as shown in FIG. 5, the processing method further includes:

[0111] S305, when the parameter of the target indicator included in the target attribute does not meet the threshold condition, terminating the power-on execution process indicated by the power-on signal.

[0112] In certain embodiments, when the parameter of the target indicator included in the target attribute does not meet the threshold condition, it indicates that the target battery performance is poor, and the power-on execution process indicated by the power-on signal may be terminated to avoid starting the operating system and causing damage to the operating system.

[0113] The various embodiments of the systems and techniques described herein may be implemented in digital electronic circuit systems, 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 may include implementation 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 dedicated or general-purpose programmable processor, and which 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.

[0114] The program code used to implement the methods of the present disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus, such that when the program code is executed by the processor or controller, the functions / operations specified in the flowchart and / or block diagram are implemented. The program code may be executed entirely on a machine, partially on a machine, partially on a machine as part of a standalone software package and partially on a remote machine, or entirely on a remote machine or server.

[0115] To provide interaction with the user, the systems and techniques described herein may be implemented on a computer having: a display device for displaying information to the user (for example, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) ; and a keyboard and a pointing device (for example, a mouse or trackball) through which the user may provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, feedback provided to the user may be any form of sensory feedback (for example, visual feedback, auditory feedback, or haptic feedback) ; and input from the user may be received in any form (including audio input, voice input, or haptic input) .

[0116] The systems and techniques described herein may be implemented in computing systems including back-end components (for example, as data servers) , or computing systems including middleware components (for example, application servers) , or computing systems including front-end components (for example, user computers with a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein) , or any combination of such back-end, middleware, or front-end components. The components of the system may be interconnected by digital data communication of any form or medium (for example, a communication network) . Examples of communication networks include: local area networks (LANs) , wide area networks (WANs) , and the Internet.

[0117] A computer system may include clients and servers. Clients and servers are generally geographically separated and typically interact through a communication network. The client-server relationship is established by computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, a server in a distributed system, or a server integrated with blockchain technology.

[0118] Various forms of processes shown above may be reordered, added to, or have steps removed. For example, the steps described in the present disclosure may be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution disclosed in the present disclosure are achieved. The present disclosure does not impart any particular restrictions.

[0119] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly specifying the number of the indicated technical features. Therefore, features qualified with "first" and "second" may explicitly or implicitly include at least one of those features. In the present disclosure, the term "multiple" means two or more, unless otherwise explicitly specified.

[0120] The above description only illustrates certain embodiments of the present disclosure, but the scope of protection of the present disclosure is not limited thereto. Any variations or substitutions that may be easily conceived by those skilled in the technical field within the technical scope disclosed in the present disclosure should be covered within the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure should be determined by the scope of the claims.

Claims

1.An electronic device, comprising:a housing, configured to provide a target space for housing a battery;a cover plate, configured to at least cover the target space, wherein when the cover plate is separated from the housing, the battery housed in the target space becomes accessible for a replacement;a power management integrated circuit, configured to supply power to electronic components of the electronic device via a target battery based on a power-on signal, the target battery being the battery housed in the target space;a processor, configured to obtain a target attribute of the target battery in response to the power-on signal, and when the target attribute does not meet a target condition, generate a prompt message, the prompt message at least indicating that the target battery is a newly replaced battery; andan output device, configured to output the prompt message.2.The electronic device of claim 1, wherein the output device outputs the prompt message by one or both of:outputting the prompt message before the processor executes an operating system bootloader; andoutputting the prompt message before the processor starts the operating system.3.The electronic device of claim 2, wherein the processor's obtaining the target attribute of the target battery includes:obtaining a target identifier, andwherein when the target attribute does not meet the target condition, generating the prompt message includes:when the target identifier does not align with a past identifier, generating a first prompt message, the first prompt message indicating that the target battery is a newly replaced battery, and the past identifier representing an identifier of the battery that previously meets the verification condition on the electronic device.4.The electronic device of claim 2, wherein the processor's obtaining the target attribute of the target battery includes:obtaining a target identifier and obtaining a target key through encryption, andwherein when the target attribute does not meet the target condition, generating the prompt message includes:when the target identifier does not align with a past identifier and the target key does not align with a verification condition, generating a second prompt message, the second prompt message indicating that the newly replaced battery poses a risk.5.The electronic device of claim 2, wherein the processor's obtaining the target attribute of the target battery includes:obtaining a target key through encryption, andwherein when the target attribute does not meet the target condition, generating the prompt message includes:when the target key does not align with a verification condition, generating a second prompt message, the second prompt message indicating that the newly replaced battery poses a risk.6.The electronic device of claim 2, wherein the processor's obtaining the target attribute of the target battery includes:obtaining a target identifier, obtaining a target key through encryption, and obtaining a parameter of a target indicator, andwherein when the target attribute does not meet the target condition, generating the prompt message includes:when the target identifier does not align with a past identifier, the target key aligns with a verification condition, and the parameter of the target indicator does not meet a threshold condition, generating a third prompt message, the third prompt message indicating that the newly replaced battery has low performance and that the battery should be replaced again.7.The electronic device claim 4, wherein the processor is further configured to terminate 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 attribute of a target battery, wherein the target battery is a battery currently housed in a target space provided by an electronic device;when the target attribute does not meet a target condition, generating a prompt message, the prompt message at least indicating that the target battery is a newly replaced battery; andoutputting the prompt message.9.[Rectified under Rule 91, 03.02.2026]The processing method of claim 8, wherein outputting the prompt message includes one or both of:outputting the prompt message before an operating system bootloader is executed in a boot process indicated by the power-on signal; andoutputting the prompt message before the operating system is started in the boot process indicated by the power-on signal.10.The processing method of claim 9, further comprising one or both of:when a target key included in the target attribute does not meet a verification condition, terminating a power-on execution process indicated by the power-on signal; andwhen a parameter of a target indicator included in the target attribute does not meet a threshold condition, terminating the power-on execution process indicated by the power-on signal.11.An electronic device, comprising: a memory storing computer program instructions; and a processor coupled to the memory and configured to execute the computer program instructions and perform:obtaining a target attribute of a target battery in response to a power-on signal; andwhen the target attribute does not meet a target condition, generating a prompt message, the prompt message indicating that the target battery is a newly replaced battery.12.The electronic device of claim 11, wherein the processor is further configured to perform:drawing power from the target battery; andobtaining the target attribute of the target battery from the power from the target battery.13.The electronic device of claim 11, wherein the processor is further configured to perform:outputting the prompt message.14.The electronic device of claim 13, wherein outputting the prompt message occurs before an operating system bootloader is executed in the electronic device.15.The electronic device of claim 13, wherein outputting the prompt message occurs before an operating system of the electronic device is started.16.The electronic device of claim 11, wherein obtaining the target attribute includes:obtaining a target identifier, andwherein when the target attribute does not meet the target condition, generating the prompt message includes:when the target identifier does not align with a past identifier, generating a first prompt message, the first prompt message indicating that the target battery is a newly replaced battery, and the past identifier representing an identifier of the battery that previously meets the verification condition on the electronic device.17.The electronic device of claim 11, wherein obtaining the target attribute includes:obtaining a target identifier and obtaining a target key through encryption, andwherein when the target attribute does not meet the target condition, generating the prompt message includes:when the target identifier does not align with a past identifier and the target key does not align with a verification condition, generating a second prompt message, the second prompt message indicating that the newly replaced battery poses a risk.18.The electronic device of claim 11, wherein obtaining the target attribute includes:obtaining a target key through encryption, andwherein when the target attribute does not meet the target condition, generating the prompt message includes:when the target key does not align with a verification condition, generating a second prompt message, the second prompt message indicating that the newly replaced battery poses a risk.19.The electronic device of claim 11, wherein obtaining the target attribute includes:obtaining a target identifier, obtaining a target key through encryption, and obtaining a parameter of a target indicator, andwherein when the target attribute does not meet the target condition, generating the prompt message includes:when the target identifier does not align with a past identifier, the target key aligns with a verification condition, and the parameter of the target indicator does not meet a threshold condition, generating a third prompt message, the third prompt message indicating that the newly replaced battery has low performance and that the battery should be replaced again.20.The electronic device of claim 16, wherein the processor is further configured to perform:terminating power-on execution process indicated by the power-on signal.