Functional case identification method, functional case, and electronic device

By detecting the magnetic poles of the functional shell and using a Hall sensor to identify the type of functional shell, the problems of low identification efficiency and high power consumption in the existing technology are solved, achieving efficient and low-power functional shell identification and ensuring charging efficiency.

WO2026066253A1PCT designated stage Publication Date: 2026-04-02HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-06-11
Publication Date
2026-04-02

AI Technical Summary

Technical Problem

In the existing technology, electronic devices are inefficient and consume a lot of power when identifying the type of functional shell, especially when the battery is low, which affects the charging efficiency.

Method used

By detecting the magnetic poles of the functional shell, the type of the functional shell is identified using a Hall sensor. Combined with the preset mapping relationship between magnetic poles and types, the type of the functional shell can be directly determined without enabling the reverse charging function, thereby improving identification efficiency and reducing system power consumption.

Benefits of technology

It achieves efficient identification of functional shell types, reduces the system power consumption of electronic devices, and can still accurately identify them even when the battery is low, ensuring charging efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025100432_02042026_PF_FP_ABST
    Figure CN2025100432_02042026_PF_FP_ABST
Patent Text Reader

Abstract

A functional case identification method, a functional case, and an electronic device, relating to the technical field of terminals. The method comprises: the electronic device detects a magnetic pole of a functional case worn by the electronic device, and then determines the type of the functional case on the basis of the magnetic pole of the functional case and a mapping relationship, wherein the mapping relationship is a preset mapping relationship between the magnetic pole of the functional case and the type of the functional case. In this way, the electronic device can determine the type of the functional case by identifying the magnetic pole of the worn functional case, thereby not only identifying the type of the functional case, but also improving identification efficiency, thus reducing system power consumption of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Function shell identification method, function shell and electronic device

[0001] The present application claims priority to the Chinese patent application No. 202411360258.2, filed on September 26, 2024, and entitled "Function shell identification method, function shell and electronic device", the whole content of which is incorporated herein by reference. TECHNICAL FIELD

[0002] The present application relates to the technical field of terminal, in particular to a function shell identification method, a function shell and an electronic device. BACKGROUND

[0003] With the rapid development of the electronic device industry, in order to meet the needs of electronic devices, more and more types of function shells designed for electronic devices are emerging. Some of these function shells need to be reverse charged by the electronic device when worn on the electronic device, such as function shells used to achieve heat dissipation for electronic devices. Some function shells are used to assist electronic devices in forward charging when worn on electronic devices. Different charging parameters may need to be configured when the electronic device is forward charged and reverse charged, so in order to improve the utilization and compatibility of the function shell, it is urgent to identify different types of function shells. SUMMARY

[0004] The embodiments of the present application provide a function shell identification method, a function shell and an electronic device, which can not only identify the type of function shell, but also improve the identification efficiency and reduce the system power consumption of the electronic device.

[0005] To achieve the above-mentioned purpose, the present application adopts the following technical solutions:

[0006] In a first aspect, a function shell identification method is provided, applied to an electronic device, the method comprising: detecting a magnetic pole of a function shell worn on the electronic device; determining a type of the function shell based on the magnetic pole of the function shell and a mapping relationship, wherein the mapping relationship is a pre-set mapping relationship between the magnetic pole of the function shell and the type of the function shell.

[0007] Based on the above technical solutions, the electronic device detects the magnetic pole of the function shell, and determines the type of the function shell based on the magnetic pole of the function shell and the pre-set mapping relationship, which is the mapping relationship between the magnetic pole of the function shell and the type of the function shell. Without enabling the reverse charging function to identify the type of the function shell, the identification efficiency of the function shell type can be improved, and the system power consumption of the electronic device can be reduced.

[0008] In a possible design, the magnetic pole of the functional shell is a first magnetic pole, and the functional shell is of a type that requires the electronic device to perform reverse charging on the functional shell; or, the magnetic pole of the functional shell is a second magnetic pole, and the functional shell is of a type that assists the electronic device to perform forward charging, where the first magnetic pole is opposite to the second magnetic pole. In this way, the magnetic pole of the functional shell that requires the electronic device to perform reverse charging is opposite to the magnetic pole of the functional shell that assists the electronic device to perform forward charging, and the electronic device can directly identify the magnetic pole of the functional shell to determine whether the functional shell worn by the electronic device is the functional shell that requires reverse charging or the functional shell that assists forward charging. This can improve the identification efficiency and reduce the system power consumption of the electronic device.

[0009] In a possible design, the detecting the magnetic pole of the functional shell worn by the electronic device includes detecting the magnetic pole of the functional shell by using a Hall sensor. In this way, the electronic device can detect the magnetic pole of the functional shell by using the Hall sensor, and the Hall sensor has high sensitivity, fast response speed, strong anti-interference capability, and high reliability, so that the detection result is more accurate, the identification efficiency of the functional shell is improved, and the system power consumption of the electronic device is reduced. In addition, the Hall sensor is low in price, and the development cost can be further reduced.

[0010] In a possible design, the Hall sensor includes a first signal output pin and a second signal output pin, and the detecting the magnetic pole of the functional shell includes: determining that the magnetic pole of the functional shell is a first magnetic pole when there is signal output on the first signal output pin; and determining that the magnetic pole of the functional shell is a second magnetic pole when there is signal output on the second signal output pin, where the first magnetic pole is opposite to the second magnetic pole. In this way, the electronic device can directly determine the magnetic pole of the functional shell based on the pin on which the Hall sensor has signal output, and then determine the type of the functional shell, so that the identification efficiency of the functional shell is improved, and the system power consumption of the electronic device is reduced.

[0011] In a possible design, the first magnetic pole is an N pole, and the second magnetic pole is an S pole; or, the first magnetic pole is an S pole, and the second magnetic pole is an N pole.

[0012] In a possible design, the electronic device is in a low-battery shutdown state or in a low-battery startup state. In this way, the electronic device can still identify the type of the functional shell by identifying the magnetic pole of the functional shell when the electronic device is in the low-battery shutdown state or in the low-battery startup state. Furthermore, when the electronic device is in the low-battery shutdown state or in the low-battery startup state and wears the functional shell that assists the electronic device to perform forward charging to perform forward charging, the electronic device can identify the type of the functional shell to facilitate configuration of corresponding charging parameters, so that the charging efficiency of the electronic device is ensured.

[0013] In a possible design, after the magnetic pole of the functional shell and the mapping relationship are determined, the type of the functional shell is determined, the method further includes: when the type of the functional shell is a functional shell that requires the electronic device to perform reverse charging on the functional shell, configuring a reverse charging parameter, the reverse charging parameter being used for the electronic device to charge the functional shell; or when the type of the functional shell is a functional shell that assists the electronic device to perform forward charging, configuring a forward charging parameter, the forward charging parameter being used for the electronic device to perform forward charging. In this way, when the electronic device identifies that the functional shell is a functional shell that requires reverse charging, the electronic device performs configuration of a reverse charging parameter, and the electronic device can subsequently perform reverse charging on the functional shell based on the configured reverse charging parameter, thereby ensuring normal operation of the functional shell. When the electronic device identifies that the functional shell is a functional shell that assists forward charging, the electronic device performs configuration of a forward charging parameter, and the electronic device can subsequently perform forward charging based on the configured forward charging parameter. Since the functional shell has a certain thickness, the forward charging of the electronic device is affected. By configuring the forward charging parameter, the efficiency of forward charging of the electronic device can be ensured.

[0014] In a possible design, the magnetic pole of the functional shell is a magnetic pole of a surface of the functional shell that is close to the electronic device when the functional shell is worn on the electronic device. In this way, when the functional shell is worn on the electronic device, the electronic device can usually detect only the magnetic pole of the surface of the functional shell that is close to the electronic device, and different configurations of the magnetic pole of the surface of the functional shell that is close to the electronic device can be performed for different types of functional shells, thereby enabling the electronic device to detect the magnetic pole of the functional shell of different types.

[0015] In a second aspect, an electronic device is provided. The electronic device has the function of implementing the method in the first aspect and any of the designs thereof. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions.

[0016] In a third aspect, an electronic device is provided. The electronic device includes a processor and a memory. The memory is coupled to the processor. The memory is configured to store program code. The program code includes instructions. The processor reads the instructions from the memory, so that the electronic device performs the method in any of the aspects and any of the designs thereof.

[0017] In a possible design, the electronic device further includes a Hall sensor, configured to detect the magnetic pole of the functional shell.

[0018] In a fourth aspect, a functional shell is provided. The functional shell includes a shell body and a magnet module arranged on the shell body. The magnetic pole of the functional shell is an N pole or an S pole.

[0019] In a fifth aspect, a functional shell is provided, including a shell body, and a magnet module and a coil module arranged on the shell body, the coil module being configured to obtain electric energy provided by an electronic device to power the functional shell, and the functional shell having a magnetic pole of S or N.

[0020] In a sixth aspect, a computer readable storage medium is provided, including a computer program, when the computer program is executed on an electronic device, causing the electronic device to perform the method according to any one of the preceding aspects and any one of the corresponding designs.

[0021] In a seventh aspect, a computer program product is provided, including a computer program or instructions, when the computer program or instructions are executed on a computer, causing the computer to perform the method according to any one of the preceding aspects and any one of the corresponding designs.

[0022] In an eighth aspect, a chip system is provided, including at least one processor and at least one interface circuit, the at least one interface circuit being configured to perform a transceiving function and send instructions to the at least one processor, when the at least one processor executes the instructions, the at least one processor performs the method according to the first aspect and any one of the corresponding designs.

[0023] In a ninth aspect, a communication system is provided, including the electronic device according to the second aspect or the third aspect, and the functional shell according to the fourth aspect or the fifth aspect.

[0024] It should be noted that the technical effects brought by any one of the designs of the second aspect to the ninth aspect can refer to the technical effects brought by the corresponding designs of the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS

[0025] FIG. 1 is a flowchart of a method for identifying a type of functional shell according to an embodiment of the present application;

[0026] FIG. 2 is a schematic diagram of an architecture of a communication system according to an embodiment of the present application;

[0027] FIG. 3a is a schematic diagram of a structure of an electronic device according to an embodiment of the present application;

[0028] FIG. 3b is a schematic diagram of a software structure of an electronic device according to an embodiment of the present application;

[0029] FIG. 4 is a schematic diagram of a structure of a magnetic shell according to an embodiment of the present application;

[0030] FIG. 5 is a schematic diagram of a magnetic pole distribution of a magnetic shell according to an embodiment of the present application;

[0031] FIG. 6 is a structural schematic diagram of a heat dissipation shell according to an embodiment of the present application;

[0032] FIG. 7 is a magnetic pole distribution schematic diagram of a heat dissipation shell according to an embodiment of the present application;

[0033] FIG. 8 is a flowchart of a function shell identification method according to an embodiment of the present application;

[0034] FIG. 9 is a structural schematic diagram of another electronic device according to an embodiment of the present application;

[0035] FIG. 10 is a structural schematic diagram of a chip system according to an embodiment of the present application. DETAILED DESCRIPTION

[0036] In the description of the present application, unless otherwise specified, " / " represents that the objects before and after the " / " are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the present application is only a description of the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural.

[0037] In the description of the present application, unless otherwise specified, "multiple" means two or more than two. "At least one of the following" or the like means any combination of the items, including any combination of single item or multiple items. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, a and b and c, where a, b, and c can be single or multiple.

[0038] In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, "first", "second", and the like are used to distinguish the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that "first", "second", and the like do not limit the quantity and execution order, and "first", "second", and the like do not necessarily mean different.

[0039] Currently, there are generally two types of functional shells. One type of functional shell needs to be charged by an electronic device when the functional shell is worn (or described as configured, fitted, etc.) on the electronic device. For example, the functional shell can include a functional shell for heat dissipation of the electronic device, which can be referred to as a heat dissipation shell. Another type of functional shell can be used to assist the electronic device to be forward charged when the functional shell is worn on the electronic device. For example, the functional shell can include a functional shell for flexible matching of a magnetic support, a magnetic power bank, etc. to assist the electronic device to be wirelessly forward charged, which can be referred to as a magnetic shell. It can be understood that in the embodiments of the present application, reverse charging can refer to a power supply mode in which the electronic device provides power to other devices. Forward charging can refer to a power supply mode in which other devices provide power to the electronic device.

[0040] The two types of functional shells described above adopt opposite charging modes. In order to improve the utilization rate and compatibility of the functional shell, different charging parameters need to be configured when the electronic device wears different types of functional shells. Therefore, it is very important for the electronic device to identify the type of the functional shell and to subsequently configure the corresponding charging parameters.

[0041] In a possible solution, taking the heat dissipation shell and the magnetic shell as examples of the two types of functional shells described above, FIG. 1 shows a method flow diagram for identifying the type of the functional shell. As shown in FIG. 1, the method includes the following steps:

[0042] S101, the electronic device detects that the functional shell is worn.

[0043] In some scenarios, a Hall sensor is provided in the electronic device, and a magnetic core is provided in the functional shell. When the electronic device wears the functional shell, the magnetic flux around the Hall sensor will change due to the influence of the magnetic core. When the magnetic flux around the Hall sensor reaches a threshold value, the electronic device can detect that the functional shell is worn.

[0044] S102, the electronic device determines whether the functional shell is a heat dissipation shell.

[0045] After performing step S101, the electronic device can enable a reverse charging function to identify the heat dissipation shell through a wireless charging QI protocol. In the identification process, if it is a heat dissipation shell, the electronic device can immediately identify it, and the identification process ends. Otherwise, if the type of the functional shell is not immediately identified, the electronic device will perform step S103.

[0046] S103, the electronic device keeps the reverse charging function enabled and continues to identify whether the functional shell is a heat dissipation shell for 4 seconds.

[0047] If the electronic device successfully identifies the functional shell, it is determined to be a heat dissipation shell, and the process ends. Otherwise, if the electronic device fails to identify the functional shell, the electronic device can perform step S104.

[0048] In step S104, the electronic device determines the type of the functional shell.

[0049] In the above solution, when identifying the type of the functional shell, the electronic device gives priority to identifying the heat dissipation shell, i.e., giving priority to identifying whether the functional shell is a reverse charging functional shell. If the electronic device does not immediately identify the functional shell as a reverse charging functional shell, the reverse charging function will be kept enabled for 4 seconds to continue identifying the type of the functional shell, and the reverse charging function will be closed only after the functional shell is identified as a forward charging functional shell. In this way, when the functional shell worn by the electronic device is a forward charging functional shell, this solution not only has low identification efficiency, but also increases system power consumption.

[0050] In addition, in some scenarios, the above solution cannot identify the type of the functional shell. For example, when the electronic device is in a low power shutdown state, the electronic device cannot enable the reverse charging function, and thus cannot identify the type of the functional shell. At this time, if the electronic device is wearing a magnetic attraction shell or other functional shell for auxiliary charging, and is using a wireless charging device such as a vehicle wireless charging or a wireless charging base for forward charging, the electronic device cannot identify the type of the functional shell, and thus cannot configure the corresponding charging parameters, which affects the charging efficiency of the electronic device.

[0051] Therefore, embodiments of the present application provide a functional shell identification method, which can not only identify the type of the functional shell, but also improve the identification efficiency and reduce the system power consumption of the electronic device. Moreover, when the electronic device is in a low power shutdown state, the type of the functional shell can still be identified. The electronic device can also configure the corresponding charging parameters based on the identified type of the functional shell when it is in a low power shutdown state, thereby ensuring the charging efficiency of the electronic device.

[0052] For example, FIG. 2 shows an architecture diagram of a communication system to which a functional shell identification method provided by embodiments of the present application is applied. As shown in FIG. 2, the communication system 200 includes an electronic device 201 and a functional shell 202.

[0053] Exemplarily, the electronic device 201 can be various electronic devices capable of wearing the functional shell 202, such as a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device, and / or a smart city device, but is not limited to these. Embodiments of the present application do not specially limit the specific type of the electronic device. or other operating systems. Embodiments of the present application do not specially limit the specific type of the electronic device and the installed operating system.

[0054] The functional shell 202 can be an accessory device of the electronic device 201, and is arranged or worn (or configured) on the electronic device 201 to expand or enhance the functions of the electronic device 201, such as cooling or heating the electronic device 201, or assisting the electronic device 201 to perform forward charging, etc. In some embodiments, the functional shell 202 can be a functional shell that needs to be reverse charged by the electronic device. In other embodiments, the functional shell 202 can be a functional shell that assists the electronic device 201 to perform forward charging.

[0055] Optionally, the electronic device 201 and the functional shell 202 can be independent of each other, such as the electronic device 201 and the functional shell 202 can be detachably connected, and the functional shell 202 can be sleeved or worn on the electronic device 201. Alternatively, the functional shell 202 can also be a part of the electronic device 201, and is integrated with the electronic device 201, such as a rear cover of the electronic device 201, etc. Embodiments of the present application do not specially limit the connection mode between the electronic device 201 and the functional shell 202.

[0056] Exemplarily, FIG. 3a shows a structural schematic diagram of an electronic device 201 provided by an embodiment of the present application. As shown in FIG. 3a, the electronic device 201 can include a processor 110, a memory 120, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, a sensor module 150, etc.

[0057] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors.

[0058] The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.

[0059] The memory in the processor 110 can also be provided for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can save instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instructions or data again, it can be directly called from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thereby improving the efficiency of the system.

[0060] In some embodiments, the processor 110 can include one or more interfaces, such as a USB interface 130.

[0061] The memory 120 can be used to store computer executable program codes, which include instructions. The memory 120 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system, at least one application required by a function (such as a sound playing function, an image playing function, etc.), etc. The data storage area can store data created during the use of the electronic device 201, etc. In addition, the memory 120 can include a high-speed random access memory, and can also include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 201 by running the instructions stored in the memory 120 and / or the instructions stored in the memory provided in the processor.

[0062] In some embodiments of the present application, the memory 120 can be configured to store a mapping relationship between the function case type and the magnetic pole. Details of the mapping relationship will be described later.

[0063] The charging management module 140 is configured to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some embodiments of the wired charging, the charging management module 140 can receive the charging input of the wired charger through the USB interface 130. In some embodiments of the wireless charging, the charging management module 140 can include a wireless charging coil. The charging management module 140 can receive the wireless charging input through the wireless charging coil. Alternatively, the wireless charging coil can be independently arranged from the charging management module 140. The charging management module 140 can charge the battery 142 and supply power to the electronic device through the power management module 141. In some embodiments of the present application, the charging management module 140 can also be configured to perform reverse charging to the function case.

[0064] The power management module 141 is configured to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives the input of the battery 142 and / or the charging management module 140 to supply power to the processor 110, the memory 120, etc. The power management module 141 can also be configured to monitor the battery capacity, the battery cycle number, the battery health status (leakage, impedance), etc. In other embodiments, the power management module 141 can also be arranged in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be arranged in the same device.

[0065] The sensor module 150 can include a Hall sensor 151. In some embodiments of the present application, when the electronic device 201 is worn with the function case, the magnetic flux around the Hall sensor 151 will change due to the influence of the magnet in the function case. The Hall sensor 151 can detect the change of the magnetic flux to determine whether the electronic device is worn with the function case. In some embodiments of the present application, the Hall sensor 151 can also be configured to sense the magnetic pole of the function case to identify the type of the function case.

[0066] In some embodiments, the software system of the electronic device 201 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The software structure of the electronic device 201 is exemplarily described in the layered architecture in the embodiments of the present application.

[0067] Exemplarily, FIG. 3b shows a software structure schematic diagram of the electronic device 201 provided by the embodiments of the present application.

[0068] The layered architecture divides software into several layers, each of which has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, as shown in FIG. 3b, the electronic device 201 can include a system service layer and a kernel layer.

[0069] The system service layer can include a series of system services, such as wireless charging services, but not limited to. The wireless charging service can be used to configure appropriate charging parameters for the wireless charging coil based on the type of functional shell. Optionally, the wireless charging service can also be used to perform some other operations related to wireless charging, such as monitoring the power of the electronic device 201 when performing wireless forward charging or wireless reverse charging, etc.

[0070] The kernel layer is the layer between hardware and software, and the kernel layer can include various types of sensor drivers, such as a Hall sensor driver. The Hall sensor driver can be used to drive the Hall sensor to perform sensing operations. The Hall sensor driver can determine the type of functional shell based on the sensing data of the Hall sensor.

[0071] The following describes the workflow of the electronic device 201 for identifying the type of functional shell in combination with the architecture shown in FIGS. 3a and 3b. When the Hall sensor 151 senses that the electronic device 201 is worn with a functional shell, it outputs sensing data. In some embodiments, when the type of functional shell worn by the electronic device 201 is different, the sensing data output by the Hall sensor 151 is different. Correspondingly, the Hall sensor driver of the kernel layer can determine the type of functional shell based on the sensing data of the Hall sensor 151. Optionally, subsequently, the Hall sensor driver can report the type of functional shell to the wireless charging service of the system service layer. Then, the wireless charging service can configure appropriate wireless forward charging parameters for the wireless charging coil in the electronic device 201 based on the type of functional shell, to realize forward charging of the electronic device 201 and improve the forward charging efficiency of the electronic device 201. Or, configure appropriate wireless reverse charging parameters to realize reverse charging of the electronic device 201 and improve the reverse charging efficiency of the electronic device 201.

[0072] It can be understood that the software architecture of the electronic device 201 shown in FIG. 3b is only an example, and in actual application, it can also include more or less modules, and the hierarchy of each module can also be different. Each layer can also have other division methods, which are not limited by the present application.

[0073] It can also be understood that the structure shown in FIG. 3a and FIG. 3b does not constitute a specific limitation on the electronic device 201. In other embodiments of the present application, the electronic device 201 can include more or fewer components than shown, such as a communication module, a key, a display screen, etc., or combine some components, or split some components, or different component arrangements. The processing steps or functional characteristics of the illustrated components can be implemented in hardware, software, or a combination of software and hardware.

[0074] Exemplarily, the functional shell 202 shown in FIG. 2 is a functional shell for assisting the electronic device in forward charging, such as a magnetic shell. FIG. 4 shows a structural schematic diagram of a magnetic shell according to an embodiment of the present application. As shown in FIG. 4, the magnetic shell 400 includes a shell body 401 and a magnet 402 (which can also be described as a magnetic core, or a magnetic device, or a magnetic component, or a magnet module, etc.) arranged in the shell body 401.

[0075] The shell body 401 is provided with a cavity, which can be used to accommodate the magnet 402, so that the magnet 402 can be embedded in the shell body 401. For example, the shell body 401 can include a cover plate and a frame arranged around the edge of the cover plate, and the cover plate and the frame can form a recess, which can be used to accommodate the electronic device. The above-mentioned cavity can be arranged in the cover plate.

[0076] The magnet 402 has magnetism and can be used to attract auxiliary electronic devices such as a magnetic vehicle support, a magnetic electronic device support, a magnetic power bank, etc. for forward charging. In some embodiments, the magnet 402 can include two magnetic poles, which are N pole and S pole respectively. When the magnetic shell 400 accommodates or is worn on the electronic device, only one magnetic pole (such as N pole or S pole) of the magnet 402 is close to the electronic device, and the other magnetic pole is away from the electronic device; or described as only one magnetic pole of the magnet 402 contacts the electronic device, and the other magnetic pole does not contact the electronic device. In this way, the electronic device can detect the magnetism of the functional shell. Exemplarily, when the magnetic pole of the magnet 402 is as shown in (1) of FIG. 5, if the magnetic shell is worn on the electronic device, the N pole of the magnet 402 is the magnetic pole contacting the electronic device, and the S pole of the magnet 402 is the magnetic pole not contacting the electronic device. When the magnetic pole of the magnet 402 is as shown in (2) of FIG. 5, if the magnetic shell is worn on the electronic device, the S pole of the magnet 402 is the magnetic pole contacting the electronic device, and the N pole of the magnet 402 is the magnetic pole not contacting the electronic device.

[0077] It can be understood that, in the embodiments of the present application, when the functional shell for assisting the electronic device to charge, such as the magnetic shell, is worn on the electronic device, the wearing mode of the functional shell is fixed. That is, the surface in contact with the electronic device is fixed, but the magnetic poles of the magnets on the surface can be different. For example: in the examples shown in Fig. 5 (1) and Fig. 5 (2), the magnetic shell is respectively worn on the electronic device, and the surface in contact with the electronic device is the A surface of the magnetic shell, and the surface not in contact with the electronic device is the B surface of the magnetic shell. In the example shown in Fig. 5 (1), the magnetic pole on the A surface is N pole, and the magnetic pole on the B surface is S pole. In the example shown in Fig. 5 (2), the magnetic pole on the A surface is S pole, and the magnetic pole on the B surface is N pole.

[0078] For example, the magnet 402 can be implemented as a flat cylindrical magnet, or can also be implemented in other forms, and the embodiments of the present application do not limit the implementation form of the magnet 402.

[0079] Optionally, as shown in Fig. 4, the magnetic shell 400 can also include a support 403. The support 403 can be used to provide support, anti-falling, cushioning and shock absorption, etc., so that the electronic device wearing the magnetic shell 400 is more convenient to use.

[0080] For example, taking the functional shell as an example, which is the functional shell that needs to be reversely charged by the electronic device, such as the heat dissipation shell, Fig. 6 shows a structure schematic diagram of a heat dissipation shell provided by the embodiments of the present application. As shown in Fig. 6, the heat dissipation shell 600 includes a shell body 601, and a magnet 602 (which can also be described as a magnetic core, or a magnetic device, or a magnetic component, or a magnet module, etc.) disposed in the shell body 601, a wireless charging coil 603 (or coil module 603), etc. Optionally, it can also include a heat dissipation assembly 604.

[0081] The shell body 601 is provided with a cavity, which can be used to accommodate the magnet 602, the wireless charging coil 603, the heat dissipation assembly 604, etc., so that the magnet 602, the wireless charging coil 603, the heat dissipation assembly 604, etc. can be embedded in the shell body 601. For other introductions of the shell body 601, please refer to the corresponding introductions of the shell body 401 shown in Fig. 4.

[0082] The magnet 602 has magnetism. In some embodiments, the magnet 602 can also include two magnetic poles, namely N pole and S pole. When the heat dissipation shell 600 contains or is worn on the electronic device, the magnet 602 has only one magnetic pole (such as N pole or S pole) close to the electronic device, and the other magnetic pole is away from the electronic device; or it is described that the magnet 602 has only one magnetic pole in contact with the electronic device, and the other magnetic pole is not in contact with the electronic device. Among them, the magnetic pole of the magnet 602 close to the electronic device is opposite to the magnetic pole of the magnet 402 close to the electronic device. That is, the magnetic pole direction of the heat dissipation shell 600 is opposite to the magnetic pole direction of the magnetic suction shell 400. For example, when the magnetic pole of the magnet 402 is shown as the example in (1) of FIG. 5, the N pole of the magnet 402 is the magnetic pole in contact with the electronic device, and the magnetic pole of the magnet 602 can be shown as the example in (1) of FIG. 7, when the heat dissipation shell is worn on the electronic device, the S pole of the magnet 602 is the magnetic pole in contact with the electronic device. For another example, when the magnetic pole of the magnet 402 is shown as the example in (2) of FIG. 5, the S pole of the magnet 402 is the magnetic pole in contact with the electronic device, and the magnetic pole of the magnet 602 can be shown as the example in (2) of FIG. 7, when the heat dissipation shell is worn on the electronic device, the N pole of the magnet 602 is the magnetic pole in contact with the electronic device.

[0083] It can be understood that in the embodiments of the present application, when the heat dissipation shell and other functional shells that need to be reversely charged by the electronic device are worn on the electronic device, the wearing mode of the functional shell can also be fixed. That is, the surface in contact with the electronic device is fixed, but the magnetic pole of the magnet on the surface can have different settings. For example: the heat dissipation shells in the examples shown in (1) of FIG. 7 and (2) of FIG. 7 are respectively worn on the electronic device, and the surface in contact with the electronic device is the A surface of the heat dissipation shell, and the surface not in contact with the electronic device is the B surface of the heat dissipation shell. In the example shown in (1) of FIG. 7, the magnetic pole on the A surface is the S pole, and the magnetic pole on the B surface is the N pole. In the example shown in (2) of FIG. 7, the magnetic pole on the A surface is the N pole, and the magnetic pole on the B surface is the S pole.

[0084] For example, the magnet 602 can also be implemented as a flat cylindrical magnet, or can also be implemented in other forms. The form of the magnet 602 can be the same as or different from the form of the magnet 402, and the present application does not limit the form of the magnet 602. Optionally, the position of the magnet 402 in the shell 401 can be the same as or different from the position of the magnet 602 in the shell 601.

[0085] The wireless charging coil 603 can be used to obtain the electric energy provided by the electronic device in a wireless charging manner, and can also be used to power the heat dissipation shell 600 according to the electric energy provided by the electronic device. For example, the electronic device can be provided with a wireless charging device, which can include a wireless charging coil, a transmitter, a battery, etc., so that the electronic device can provide electric energy for the heat dissipation shell 600 in a wireless charging manner.

[0086] The heat dissipation assembly 604 can be a circuit for realizing the heat dissipation function of the electronic device. In some embodiments, when the heat dissipation shell 600 is worn on the electronic device, the heat dissipation assembly 604 can receive the electric energy provided by the wireless charging coil 603, and start to operate based on the electric energy to realize the heat dissipation of the electronic device. For example, the heat dissipation assembly 604 can include a heat dissipation layer, a liquid cooling system, a chip circuit, etc. The heat dissipation layer can be used to absorb the heat generated by the electronic device. The liquid cooling system can be composed of a phase change material and a micro pump, and can uniformly bring the heat to the back of the electronic device through the reciprocating flow of the liquid, and dissipate the heat to the air through heat exchange. The chip circuit can be used to control the operation of the liquid cooling system.

[0087] It can be understood that in the example shown in FIG. 6, the heat dissipation assembly 604 is taken as an example of the functional shell that needs to be reversely charged by the electronic device. When the functional shell that needs to be reversely charged by the electronic device is a functional shell with other functions, the heat dissipation assembly 604 can also be realized as other assemblies for realizing corresponding functions.

[0088] The technical solutions involved in the following embodiments can be realized in a device with the structure shown in FIGS. 3a to 7, and a system with the architecture shown in FIG. 2.

[0089] The embodiment of the present application provides a functional shell identification method. When the electronic device is worn with the functional shell, the electronic device can determine the type of the functional shell by sensing the magnetic pole of the functional shell. For example, the type of the functional shell can include a functional shell that needs to be reversely charged by the electronic device, and a functional shell that assists the electronic device to be forwardly charged (i.e., a functional shell that does not need to be reversely charged by the electronic device). In this way, the electronic device can directly identify the magnetic pole of the functional shell to determine the type of the functional shell, without the need to identify the type of the functional shell by enabling the reverse charging function, so that the identification efficiency can be improved and the system power consumption of the electronic device can be reduced. Moreover, when the electronic device is in a low-power shutdown state, the type of the functional shell can still be identified by sensing the magnetic pole of the functional shell.

[0090] In some embodiments, as shown in the examples of FIG. 4 and FIG. 6, the magnetic poles of the functional case requiring reverse charging by the electronic device and the functional case assisting forward charging by the auxiliary electronic device are different when the electronic device is worn by the functional case. In turn, the electronic device can determine the type of the functional case by sensing the magnetic poles of the functional case close to the electronic device. It can be understood that although different surfaces (such as surface A and surface B in the examples shown in FIG. 5 and FIG. 7) of the functional case can have different magnetic poles, only the magnetic poles on one surface can be close to the electronic device when the different functional cases are worn by the electronic device, that is, the electronic device can only sense the magnetic poles of one surface close to the electronic device. Therefore, in some embodiments, the magnetic poles of the surface close to the electronic device can also be directly described as the magnetic poles of the functional case.

[0091] For example, taking the magnetic pole distribution of the functional case assisting forward charging by the auxiliary electronic device as shown in (1) of FIG. 5 and the magnetic pole distribution of the functional case requiring reverse charging by the electronic device as shown in (1) of FIG. 7 as examples, when the electronic device senses that the magnetic poles of the functional case close to the electronic device are N poles, it can be determined that the type of the functional case is the functional case for assisting forward charging by the auxiliary electronic device. Conversely, when the electronic device senses that the magnetic poles of the functional case close to the electronic device are S poles, it can be determined that the type of the functional case is the functional case requiring reverse charging by the electronic device.

[0092] For another example, taking the magnetic pole distribution of the functional case assisting forward charging by the auxiliary electronic device as shown in (2) of FIG. 5 and the magnetic pole distribution of the functional case requiring reverse charging by the electronic device as shown in (2) of FIG. 7 as examples, when the electronic device senses that the magnetic poles of the functional case close to the electronic device are S poles, it can be determined that the type of the functional case is the functional case for assisting forward charging by the auxiliary electronic device. Conversely, when the electronic device senses that the magnetic poles of the functional case close to the electronic device are N poles, it can be determined that the type of the functional case is the functional case requiring reverse charging by the electronic device.

[0093] In some embodiments, the electronic device or the cloud server can store a mapping relationship between the types of the functional cases and the magnetic poles, which can include different types of functional cases and the magnetic poles corresponding to each type of functional case. The magnetic poles corresponding to different types of functional cases are opposite. In turn, the electronic device can obtain the mapping relationship, and determine the type of the functional case based on the mapping relationship and the identified magnetic poles of the functional case.

[0094] In some embodiments, a Hall sensor can be installed in the electronic device, and the electronic device can perceive the magnetic pole of the functional case through the Hall sensor, and then determine the type of the functional case. When the magnetic pole of the functional case is different, the sensing data of the Hall sensor is different, and then the electronic device can identify the magnetic pole of the functional case based on the sensing data of the Hall sensor. Optionally, the sensing data of the Hall sensor can be the output signal of the signal output pin of the Hall sensor.

[0095] In this embodiment, as one possible implementation, the Hall sensor can include two signal output pins, and when the magnetic pole of the functional case is different, different signal output pins of the Hall sensor can have signal output, and then the electronic device can identify the magnetic pole of the functional case based on the signal output pin of the Hall sensor that has signal output. For example, taking the Hall sensor including signal output pin A and signal output pin B as an example, when the magnetic pole of the functional case is S pole, the signal output pin A has signal output, and the signal output pin B does not have signal output, and then the electronic device can identify that the magnetic pole of the functional case is S pole. When the magnetic pole of the functional case is N pole, the signal output pin B has signal output, and the signal output pin A does not have signal output, and then the electronic device can identify that the magnetic pole of the functional case is N pole. In this way, the electronic device can identify the magnetic pole of the functional case based on the signal output pin of the Hall sensor that has signal output.

[0096] In this implementation, the electronic device or the cloud server can also store the mapping relationship between the signal output pin of the Hall sensor that has signal output and the magnetic pole of the functional case, and then the electronic device can identify the magnetic pole of the functional case based on the mapping relationship and the signal output pin of the Hall sensor that currently has signal output during the identification of the magnetic pole of the functional case.

[0097] It can be understood that in the above implementation, it is taken as an example that when the magnetic pole of the functional case is different, the signal output pin of the Hall sensor that has signal output is different. In other implementations, when the magnetic pole of the functional case is different, the two signal output pins of the Hall sensor can all have signal output, but the signal sizes of the output can be different. Then the electronic device can identify the magnetic pole of the functional case based on the difference in the signal sizes output by the different signal output pins of the Hall sensor. For example, still taking the Hall sensor including signal output pin A and signal output pin B as an example, when the magnetic pole of the functional case is S pole, the signal output pin A outputs a large signal, and the signal output pin B outputs a small signal, and then the electronic device can identify that the magnetic pole of the functional case is S pole. When the magnetic pole of the functional case is N pole, the signal output pin B outputs a large signal, and the signal output pin A outputs a small signal, and then the electronic device can identify that the magnetic pole of the functional case is N pole. In this way, the electronic device can identify the magnetic pole of the functional case based on the difference in the signals output by the signal output pins of the Hall sensor.

[0098] Similarly, in this implementation, the electronic device or the cloud server can also store the mapping relationship between the signal size output by the different signal output pins of the Hall sensor and the magnetic poles of the functional shell, and then the electronic device can identify the magnetic poles of the functional shell based on the mapping relationship and the signal size currently output by the different signal output pins of the Hall sensor during the identification of the magnetic poles of the functional shell.

[0099] It can be understood that, in the above implementation, the Hall sensor is taken as an example of including two signal output pins, and in other implementations, the Hall sensor can only include one signal output pin. In this implementation, when the magnetic poles of the functional shell are different, the signals (such as voltages or other signals) output by the signal output pins of the Hall sensor can be different, and then the electronic device can identify the magnetic poles of the functional shell based on the signals output by the signal output pins of the Hall sensor. Similarly, in this implementation, the electronic device or the cloud server can also store the mapping relationship between the signals output by the signal output pins of the Hall sensor and the magnetic poles of the functional shell, and then the electronic device can identify the magnetic poles of the functional shell based on the mapping relationship and the signals currently output by the signal output pins of the Hall sensor during the identification of the magnetic poles of the functional shell.

[0100] In this way, the magnetic poles of the functional shell are identified by the Hall sensor, and because the Hall sensor has high sensitivity, fast response speed, strong anti-interference ability, and high reliability, the identification result is more accurate, the identification efficiency is improved, and the system power consumption of the electronic device is reduced. Moreover, the Hall sensor is low in price, and the development cost can be reduced.

[0101] It can be understood that, in the embodiments of the present application, the Hall sensor is taken as an example of perceiving the magnetic poles of the functional shell, and the Hall sensor can also be implemented as other magnetic sensors having magnetic pole perception capability, and the electronic device can also identify the magnetic poles of the functional shell based on the output data of other magnetic sensors having magnetic pole perception capability, and then identify the type of the functional shell.

[0102] In some embodiments, after the electronic device identifies the type of the functional shell, the electronic device can configure the charging parameters. For example, when the electronic device identifies that the type of the functional shell is a functional shell that needs to be reversely charged by the electronic device, the electronic device can configure appropriate reverse charging parameters, so that the functional shell can be reversely charged based on the configured reverse charging parameters in the future, and the normal operation of the functional shell is ensured. When the electronic device identifies that the type of the functional shell is a functional shell that assists the electronic device to perform forward charging, the electronic device can configure appropriate forward charging parameters, so that the electronic device can perform forward charging based on the configured forward charging parameters in the future. Since the functional shell has a certain thickness, it will affect the wireless forward charging of the electronic device. By configuring the forward charging parameters, the efficiency of the forward charging of the electronic device can be ensured.

[0103] Optionally, the electronic device can perform the above-mentioned function shell type identification operation when detecting that the function shell is worn. Optionally, the electronic device can also detect whether the function shell is worn based on the Hall sensor. For example, when the Hall sensor has a sensing data output, the electronic device can determine that the function shell is worn, and vice versa, when the Hall sensor has no sensing data output, the electronic device can determine that the function shell is not worn. Alternatively, when the sensing data of the Hall sensor meets a preset condition (e.g., the magnetic flux is greater than or equal to a threshold), the electronic device can determine that the function shell is worn, and vice versa, when the sensing data of the Hall sensor does not meet the preset condition, the electronic device can determine that the function shell is not worn. Further, the electronic device can configure the corresponding charging parameters based on the type of the identified function shell. In this way, the type of the function shell is identified in advance and the corresponding charging parameters are configured, and subsequent forward charging or reverse charging does not need to identify the type of the function shell to configure the corresponding charging parameters, which can improve the efficiency of subsequent forward charging or reverse charging.

[0104] Alternatively, the electronic device can also perform the above-mentioned function shell type identification operation before forward charging or reverse charging, and the embodiments of the present application do not limit the timing of the electronic device identifying the function shell type.

[0105] Optionally, the electronic device can be in a powered-on state or a powered-off state when performing the above-mentioned function shell type identification operation. The power of the electronic device can be greater than or equal to a preset power threshold, or less than the preset power threshold. That is, the electronic device can perform the above-mentioned function shell type identification operation in a powered-on state, a powered-off state, a low power state, or a sufficient power state. In this way, the electronic device can still identify the type of the function shell by identifying the magnetic pole of the function shell when the electronic device is in a low power powered-off state or a low power powered-on state. Further, when the electronic device is in a low power powered-off state or a low power powered-on state and wears a function shell for assisting the electronic device to perform forward charging to perform forward charging, the electronic device can configure the corresponding charging parameters based on the type of the identified function shell, which can ensure the charging efficiency of the electronic device.

[0106] For example, FIG. 8 shows a flowchart of a function shell identification method according to an embodiment of the present application. As shown in FIG. 8, the method includes the following steps:

[0107] S801, the electronic device detects the magnetic pole of the function shell worn by the electronic device.

[0108] Optionally, the magnetic pole of the function shell can be the magnetic pole of the side of the function shell that is close to the electronic device when the function shell is worn on the electronic device. For example, the magnetic pole of side A in the examples shown in FIGS. 5 and 7.

[0109] In some embodiments, the electronic device can detect the magnetic pole of the functional shell through the Hall sensor. In this embodiment, as one possible implementation, the Hall sensor can include a first signal output pin and a second signal output pin. Step S801 can be specifically implemented as: determining that the magnetic pole of the functional shell is a first magnetic pole when there is a signal output at the first signal output pin. Determining that the magnetic pole of the functional shell is a second magnetic pole when there is a signal output at the second signal output pin, wherein the first magnetic pole is opposite to the second magnetic pole. For other implementations of detecting the magnetic pole of the functional shell through the Hall sensor, please refer to the implementations described above.

[0110] Optionally, the electronic device can be in a low-power shutdown state or in a low-power startup state.

[0111] S802, the electronic device determines the type of the functional shell based on the magnetic pole of the functional shell and the mapping relationship.

[0112] The mapping relationship is a mapping relationship between the magnetic pole of the functional shell and the type of the functional shell.

[0113] In some embodiments, the magnetic pole of the functional shell is a first magnetic pole, and the type of the functional shell is a functional shell that needs the electronic device to perform reverse charging for the functional shell; or, the magnetic pole of the functional shell is a second magnetic pole, and the type of the functional shell is a functional shell that assists the electronic device to perform forward charging, wherein the first magnetic pole is opposite to the second magnetic pole. For example, the first magnetic pole is N-pole, and the second magnetic pole is S-pole. Or, the first magnetic pole is S-pole, and the second magnetic pole is N-pole.

[0114] In some embodiments, after performing step S802, the electronic device can further configure a reverse charging parameter when the type of the functional shell is a functional shell that needs the electronic device to perform reverse charging for the functional shell, the reverse charging parameter being used for the electronic device to charge the functional shell. Or, configure a forward charging parameter when the type of the functional shell is a functional shell that assists the electronic device to perform forward charging, the forward charging parameter being used for the electronic device to perform forward charging.

[0115] The above mainly introduces the schemes provided by the embodiments of the present application from the method aspect. It can be understood that, in order to implement the above functions, the electronic device includes the corresponding hardware structure and / or software module for executing each function. The units and algorithm steps of the examples described in conjunction with the embodiments disclosed in the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is implemented in hardware or computer driven hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the technical solutions of the embodiments of the present application.

[0116] The embodiments of the present application can divide the functional modules of the electronic device according to the above method examples. For example, each functional module can be divided according to each function, or two or more functions can be integrated in one processing unit. The integrated unit can be in the form of hardware or software functional module. It should be noted that the division of the unit in the embodiments of the present application is illustrative, and is only a logical functional division. In actual implementation, another division method can be used.

[0117] As shown in FIG. 9, it is a structural schematic diagram of an electronic device provided by the embodiments of the present application. The electronic device 900 can be used to implement the method executed by the electronic device in the above method embodiments. For example, the electronic device 900 can specifically include a detection unit 901 and a determination unit 902.

[0118] The detection unit 901 is configured to support the electronic device 900 to execute step S801 shown in FIG. 8. The determination unit 902 is configured to support the electronic device 900 to execute step S802 shown in FIG. 8.

[0119] Optionally, the electronic device 900 shown in FIG. 9 can further include a communication unit (not shown in FIG. 9), which is configured to support the electronic device 900 to execute the steps of communication between the electronic device and other devices in the embodiments of the present application.

[0120] Optionally, the electronic device 900 shown in FIG. 9 can further include a storage unit 903, which stores programs or instructions. When the detection unit 901 executes the programs or instructions, the electronic device 900 shown in FIG. 9 can execute the method shown in the above method embodiments.

[0121] The technical effects of the electronic device 900 shown in FIG. 9 can refer to the technical effects of the method shown in the above method embodiments, which will not be repeated here. The detection unit 901 involved in the electronic device 900 shown in FIG. 9 can be realized by a sensor (such as a Hall sensor) or a sensor related circuit component. The determination unit 902 can be realized by a processor or a processor related circuit component, which can be a processor or a processing module.

[0122] The embodiments of the present application also provide a chip system, as shown in FIG. 10, which includes at least one processor 1001 and at least one interface circuit 1002. The processor 1001 and the interface circuit 1002 can be interconnected by a line. For example, the interface circuit 1002 can be used to receive signals from other devices. For another example, the interface circuit 1002 can be used to send signals to other devices (e.g., the processor 1001). Illustratively, the interface circuit 1002 can read instructions stored in a memory and send the instructions to the processor 1001. When the instructions are executed by the processor 1001, the electronic device can perform various steps performed by the electronic device in the above embodiments. Of course, the chip system can also include other discrete devices, which are not limited in the embodiments of the present application.

[0123] Optionally, the processor in the chip system can be one or more. The processor can be implemented by hardware or software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented by software, the processor can be a general-purpose processor, which is implemented by reading software codes stored in a memory.

[0124] Optionally, the memory in the chip system can also be one or more. The memory can be integrated with the processor or arranged separately from the processor, which is not limited in the embodiments of the present application. Illustratively, the memory can be a non-transient processor, for example, a read-only memory (ROM), which can be integrated on the same chip as the processor or arranged on different chips respectively, and the type of the memory and the arrangement of the memory and the processor are not limited in the embodiments of the present application.

[0125] Illustratively, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD) or other integrated chip.

[0126] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits of hardware in the processor or instructions in the form of software. The method steps disclosed in combination with the embodiments of the present application can be directly embodied as execution completed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

[0127] The embodiments of the present application also provide a computer storage medium, which stores computer instructions. When the computer instructions run on an electronic device, the electronic device executes the method described in the above method embodiments.

[0128] The embodiments of the present application provide a computer program product, which includes a computer program or instructions. When the computer program or instructions run on a computer, the computer executes the method described in the above method embodiments.

[0129] In addition, the embodiments of the present application also provide a device, which can be a chip, a component or a module. The device can include a processor and a memory connected to each other. The memory is used to store computer execution instructions. When the device runs, the processor can execute the computer execution instructions stored in the memory, so that the device executes the method in the above method embodiments.

[0130] The electronic device, the computer storage medium, the computer program product or the chip provided by the embodiments of the present application are used to execute the corresponding method provided above, so the beneficial effects that can be achieved are referred to the beneficial effects in the corresponding method provided above, which will not be described here.

[0131] Through the description of the above embodiments, those skilled in the art can understand that, for the convenience and brevity, only the division of the above functional modules is taken as an example for illustration. In actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

[0132] In the several embodiments provided by the present application, it should be understood that the disclosed device and method can be implemented by other ways. Each embodiment in the non-conflict situation can combine or refer to each other. The device embodiment described above is only schematic. For example, the division of the module or unit is only a logical function division, and the actual implementation can have another division way. For example, a plurality of units or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the shown or discussed mutually can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.

[0133] The units described as separate components may or may not be physically separate, and the components displayed as units may be a physical unit or multiple physical units, that is, may be located in one place, or also can be distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.

[0134] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present alone, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0135] If the integrated unit is realized in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical scheme of the embodiments of the present application essentially or the part that contributes to the prior art or the whole or part of the technical scheme can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions to make a device (which can be a single-chip microcomputer, a chip, etc.) or a processor execute all or part of the steps of the method of each embodiment of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various program code storage media.

[0136] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A functional shell identification method, characterized by, The method is applied to an electronic device, and the method comprises: detecting a magnetic pole of a functional shell worn by the electronic device; determining a type of the functional shell based on the magnetic pole of the functional shell and a mapping relationship, wherein the mapping relationship is a preset mapping relationship between magnetic poles of functional shells and types of the functional shells.

2. The method of claim 1, wherein, The magnetic pole of the functional shell is a first magnetic pole, and the type of the functional shell is a functional shell that requires the electronic device to perform reverse charging for the functional shell; or the magnetic pole of the functional shell is a second magnetic pole, and the type of the functional shell is a functional shell that assists the electronic device to perform forward charging, wherein the first magnetic pole is opposite to the second magnetic pole.

3. The method according to claim 1 or 2, characterized in that, The detection of the magnetic pole of the functional shell worn by the electronic device comprises: detecting the magnetic pole of the functional shell by a Hall sensor.

4. The method of claim 3, wherein, The Hall sensor comprises a first signal output pin and a second signal output pin. The detection of the magnetic pole of the functional shell by the Hall sensor comprises: when there is signal output at the first signal output pin, determining that the magnetic pole of the functional shell is a first magnetic pole; when there is signal output at the second signal output pin, determining that the magnetic pole of the functional shell is a second magnetic pole, wherein the first magnetic pole is opposite to the second magnetic pole.

5. The method according to claim 2 or 4, characterized in that, The first magnetic pole is an N pole, and the second magnetic pole is an S pole; or the first magnetic pole is an S pole, and the second magnetic pole is an N pole.

6. The method according to any one of claims 1-5, characterized in that, The electronic device is in a low-battery shutdown state or in a low-battery startup state.

7. The method according to any one of claims 2-6, characterized in that, After the determination of the type of the functional shell based on the magnetic pole of the functional shell and the mapping relationship, the method further comprises: when the type of the functional shell is a functional shell that requires the electronic device to perform reverse charging for the functional shell, configuring a reverse charging parameter, wherein the reverse charging parameter is used for the electronic device to charge the functional shell; or when the type of the functional shell is a functional shell that assists the electronic device to perform forward charging, configuring a forward charging parameter, wherein the forward charging parameter is used for the electronic device to perform forward charging.

8. The method according to any one of claims 1 to 7, characterized in that, The magnetic pole of the functional shell is a magnetic pole of a side of the functional shell that is close to the electronic device when the functional shell is worn on the electronic device.

9. An electronic device, comprising: Comprise: a processor and a memory, the memory is coupled with the processor, the memory is used to store program code, the program code comprises instructions, the processor reads the instructions from the memory, so that the electronic device executes the method as claimed in any one of claims 1-8.

10. The electronic device of claim 9, wherein, The electronic device further comprises a Hall sensor for detecting a magnetic pole of a functional shell.

11. A functional shell characterized in that, The functional shell comprises a shell body and a magnet module arranged on the shell body, and the magnetic pole of the functional shell is an N pole or an S pole.

12. A functional shell characterized in that, The functional shell comprises a shell body, a magnet module and a coil module arranged on the shell body, the coil module is used to obtain electric energy provided by an electronic device to power the functional shell, and the magnetic pole of the functional shell is an S pole or an N pole.

13. A computer-readable storage medium, characterized in that, The computer readable storage medium comprises a computer program, when the computer program runs on the electronic device, so that the electronic device executes the method as claimed in any one of claims 1-8.

14. A computer program product, characterised in that, The computer program product comprises a computer program or instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1-8.

15. A communication system, characterized by The electronic device according to claim 9, and the functional case according to claim 11 or 12.

Citation Information

Patent Citations

  • Identification method and system for active accessory of mobile terminal

    CN103812977A

  • Charging method and device

    CN114363997A

  • Protective shell, charging control method and device, terminal equipment and storage medium

    CN115693814A

  • Wireless charging system, method and functional shell

    CN115693975A

  • Method and apparatus for identification of a mobile device peripheral

    US20170141806A1