WO2022068708A1 - Charging method and apparatus - Google Patents

Charging method and apparatus Download PDF

Info

Publication number
WO2022068708A1
WO2022068708A1 PCT/CN2021/120557 CN2021120557W WO2022068708A1 WO 2022068708 A1 WO2022068708 A1 WO 2022068708A1 CN 2021120557 W CN2021120557 W CN 2021120557W WO 2022068708 A1 WO2022068708 A1 WO 2022068708A1
Authority
WO
WIPO (PCT)
Prior art keywords
housing device
electronic device
type identifier
application program
housing
Prior art date
Application number
PCT/CN2021/120557
Other languages
French (fr)
Chinese (zh)
Inventor
戴璇
娄鋆
郑志勇
支渠成
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022068708A1 publication Critical patent/WO2022068708A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • H04M1/73Battery saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the technical field of terminal equipment, and in particular, to a charging method and device.
  • the mobile phone protective case has shown a diversified development. Compared with the protective case with only protection and decoration, the functional case has more functions, such as a supplementary light function.
  • the function shell may include a fill light function shell, a game function shell, and the like. For example, when using a mobile phone to take pictures or shoot videos, the fill light function shell installed on the mobile phone can provide light by consuming the power of the shell itself.
  • the mobile phone can charge the functional shell installed on the mobile phone through the wireless reverse charging technology, that is, the mobile phone acts as a Tx (transmitting) device, the functional shell acts as an Rx (receiving) device, and the mobile phone is a functional shell Reverse power supply.
  • One of the reverse power supply methods is: after the mobile phone detects the functional shell, keep the wireless reverse charging function on the mobile phone always on, but this method has the problem that the wireless reverse charging of the mobile phone is turned on for a long time and consumes a lot of power; the other The reverse power supply method is: the user manually turns on the wireless reverse charging function on the mobile phone, but in this method, the user needs to operate manually, and the experience is poor.
  • the present application provides a charging method and device for improving user experience and minimizing power consumption.
  • the present application provides a charging method, which can be performed by an electronic device (such as a terminal device), or implemented by components of the electronic device, such as processing devices, circuits, chips, and other components in the electronic device.
  • the method includes: when the electronic device detects a housing device, determining at least one application program associated with the housing device; the housing device is configured to provide an auxiliary function for a user based on electrical energy; when the electronic device detects a first When an application program is opened, the housing device is charged, and the first application program is any one of the at least one application program.
  • the electronic device charges the housing device when detecting that the first application program is opened.
  • the electronic device can use the wireless reverse charging technology to charge the housing device, it can detect that the device is wearing When the upper casing device is installed, and the first application program associated with the casing device is opened, the wireless reverse charging function is turned on, and the electronic device does not need to have the wireless charging function turned on all the time, so as to avoid power consumption, and the casing device can be charged in time. .
  • determining at least one application program associated with the housing device includes: acquiring, by the electronic device, a type identifier of the housing device; the electronic device querying a preset according to the type identifier The corresponding relationship information between the type identifier and the application program is obtained, and at least one application program corresponding to the type identifier is obtained, wherein the correspondence relationship information between the type identifier and the application program is at least used to indicate the type identifier of the housing device. corresponding at least one application.
  • the function shells are distinguished by different type identifiers, and are bound to the application program with the type identifier, so that the application program corresponding to the function shell is determined by the type identifier of the function shell, and the type identifier here can represent the same type of function shell.
  • the first preset correspondence that the electronic device needs to maintain is relatively simple.
  • the type identifiers of the functional shells are the same, and can be written in batches.
  • the type identification here can also be replaced by the identification of the functional shell, and the identification of the functional shell may be unique, that is, the identification of each functional shell may be different, which is not also limited in the embodiments of the present application.
  • the correspondence information at least indicates at least one application program corresponding to the type identifier of the housing device, including: the correspondence information includes at least the type identifier of the housing device and The name of at least one application program corresponding to the type identifier; or, the correspondence information includes at least the type identifier of the housing device and the application program type information corresponding to the type identifier.
  • the obtaining, by the electronic device, the type identifier of the housing device includes: the electronic device sending a first message to the housing device, and receiving a carrying message from the housing device the second message with the type identifier of the housing device, and obtain the type identifier of the housing device carried in the second message; or the electronic device sends the first message to the housing device, Receive the second message from the housing device, and query the preset resource and housing device type correspondence information according to the resource used by the second message, and obtain the resource used by the second message.
  • the corresponding type identifier of the housing device, wherein the correspondence information between the resource and the housing device type includes at least resource indication information used by the second message and the type identifier of the corresponding housing device.
  • the method further includes: after the electronic device detects that the charging stop condition is satisfied, stop charging the housing device; wherein the charging stop condition includes any one of the following Type: the first application is closed; the power of the electronic device is lower than the first set value; the power of the housing device is not lower than the second set value; the electronic device detects that the shell The body device is detached from the electronic device.
  • the electronic device enables the wireless reverse charging function to charge the casing device.
  • the electronic device is an electronic device, and the housing device is a detachable functional shell; the electronic device detects the housing device, including: the electronic device detects that the housing device is worn on the electronic device.
  • embodiments of the present application provide an electronic device, including a processor and a memory, wherein the memory is used to store one or more computer programs; when the one or more computer programs stored in the memory are executed by the processor, the The terminal device can implement any one of the possible design methods in any of the above aspects.
  • an electronic device including: modules/units for executing the above-mentioned first aspect or any possible design method of the first aspect; these modules/units may be implemented by hardware, or by The hardware executes the corresponding software implementation.
  • a chip is also provided, which is coupled to the memory in the electronic device described in the first aspect, so that the chip calls program instructions stored in the memory when running, so as to achieve the above-mentioned first methods provided.
  • a computer-readable storage medium comprising a computer program, when the computer program is run on an electronic device, the electronic device causes the electronic device to perform the method provided in the above-mentioned first aspect.
  • a computer program product comprising instructions, which when executed on a computer, cause the computer to perform the method provided in the above-mentioned first aspect.
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of a mobile terminal device according to an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a functional shell provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of another functional shell provided by an embodiment of the present application.
  • FIG. 5a is a schematic flowchart corresponding to a charging method provided by an embodiment of the present application.
  • FIG. 5b is a schematic diagram of a wireless reverse charging interface provided by an embodiment of the application.
  • FIG. 5c is a schematic flowchart of charging a functional case according to an embodiment of the present application.
  • FIG. 6 is a schematic flowchart corresponding to the complete charging method provided by the embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
  • an embodiment of the present application provides a charging method.
  • an electronic device detects a casing device, it obtains a type identifier of the casing device, and determines at least one corresponding to the casing device according to a preset correspondence relationship.
  • Application program when it is detected that the target application program is opened, the case device is charged, wherein the target application program is at least one application program corresponding to the type identifier of the case device in the preset correspondence relationship. any application.
  • the electronic device uses the wireless reverse charging technology to charge the housing device, the electronic device does not need to turn on the wireless charging function all the time to avoid power consumption, and can charge the housing device in time.
  • the present application is a timely and energy-saving method. charging method.
  • FIG. 1 it is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • the application scenario shows an electronic device 100 and a housing device 101 .
  • an electronic device is a device that provides voice and/or data connectivity to a user, for example, a portable device with a wireless connection function, such as a mobile phone, a tablet computer, a wearable device with a wireless communication function, and the like.
  • the housing device supports communication and can be used with electronic equipment.
  • the housing device is a detachable protective case that matches the model of the electronic device.
  • the housing device also has one or more auxiliary functions.
  • the housing device will cause power consumption when providing auxiliary functions.
  • the housing device may be divided into different types according to different auxiliary functions provided by the housing device or different combinations of multiple auxiliary functions provided.
  • some examples of casing devices are: a fill light function casing and a game function casing.
  • a fill light function casing and a game function casing.
  • FIG. 1 shows an example in which the electronic device is a mobile phone and the casing device is a protective case of the mobile phone, but the electronic device and the casing device in the embodiments of the present application are not limited to this.
  • the application (application, app for short) involved in the embodiments of the present application is a computer program capable of realizing one or more specific functions.
  • multiple applications may be installed in an electronic device.
  • the application mentioned below may be an application that comes with the electronic device when it leaves the factory, or it may be an application downloaded from the network side by the user in the process of using the electronic device.
  • FIG. 2 shows a schematic structural diagram of the mobile phone 100 .
  • the mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, Mobile communication module 151, wireless communication module 152, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and user Type identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM subscriber identification module
  • the sensor module 180 may include a gyroscope sensor 180A, an acceleration sensor 180B, a fingerprint sensor 180H, a temperature sensor 180J, and a touch sensor 180K (of course, the mobile phone 100 may also include other sensors, such as a Hall magnetic sensor, an ambient light sensor, a pressure sensor, acceleration sensor, gyroscope sensor, etc., not shown in the figure).
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the mobile phone 100 .
  • the mobile phone 100 may include more or less components than shown, or some components may be combined, or some components may be separated, or different component arrangements.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • the controller may be the nerve center and command center of the mobile phone 100 . The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the handset 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • Camera 193 (front camera or rear camera, or one camera can be both front camera and rear camera) is used to capture still images or video.
  • the camera 193 may include a photosensitive element such as a lens group and an image sensor, wherein the lens group includes a plurality of lenses (convex or concave) for collecting light signals reflected by the object to be photographed, and transmitting the collected light signals to the image sensor .
  • the image sensor generates an original image of the object to be photographed according to the light signal.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the mobile phone 100 by executing the instructions stored in the internal memory 121 .
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area may store operating system, code of application programs (such as camera application, WeChat application, etc.), and the like.
  • the storage data area can store data created during the use of the mobile phone 100 (such as images, videos, etc. collected by the camera application) and the like.
  • the internal memory 121 may also store the codes of the image capturing algorithms provided by the embodiments of the present application.
  • the code of the image capturing algorithm stored in the internal memory 121 is executed by the processor 110, the image capturing function is realized, and an image with better image quality is captured.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • non-volatile memory such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the code of the image capturing algorithm provided by the embodiment of the present application may also be stored in an external memory.
  • the processor 110 can run the code of the image capturing algorithm stored in the external memory through the external memory interface 120 to realize the image capturing function, and capture an image with better image quality.
  • the function of the sensor module 180 is described below.
  • the gyro sensor 180A can be used to determine the movement posture of the mobile phone 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180A can be used to detect the current motion state of the mobile phone 100, such as shaking or stillness.
  • the acceleration sensor 180B can detect the magnitude of the acceleration of the mobile phone 100 in various directions (generally three axes). That is, the gyro sensor 180A can be used to detect the current motion state of the mobile phone 100, such as shaking or stillness.
  • the gyro sensor 180A (or the acceleration sensor 180B) may send the detected motion state information (such as angular velocity) to the processor 110 .
  • the processor 110 determines, based on the motion state information, whether the current state is the hand-held state or the tripod state (for example, when the angular velocity is not 0, it means that the mobile phone 100 is in the hand-held state).
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the mobile phone 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering incoming calls with fingerprints, and the like.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the mobile phone 100 , which is different from the position where the display screen 194 is located.
  • Hall magnetic sensor 180J a sensor used to detect the magnetic field and its changes, is usually also indirectly used for the position detection of ferromagnetic substances.
  • the magnetic substance is in close contact with the mobile phone, which can change the magnetic field at the position of the Hall sensor, thereby being detected.
  • the Hall sensor detects and outputs an electrical signal value.
  • the mobile phone can issue a lock screen sleep instruction.
  • traditional flip-top cases have built-in magnetics in the flip. When the flip cover is fitted with the mobile phone, the magnetic element is close to the Hall sensor, the Hall sensor senses the signal, and the screen display is turned off; otherwise, the screen display is turned on.
  • the wireless communication function of the mobile phone 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 151, the wireless communication module 152, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 151 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the electronic device 100 .
  • the mobile communication module 151 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 151 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 151 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 151 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 152 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 152 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 152 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 152 can also receive the signal to be sent from the processor 110 , perform frequency modulation on the signal, amplify the signal, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the mobile phone 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. Such as music playback, recording, etc.
  • the mobile phone 100 can receive the key 190 input and generate the key signal input related to the user setting and function control of the mobile phone 100 .
  • the mobile phone 100 can use the motor 191 to generate vibration alerts (eg, vibration alerts for incoming calls).
  • the indicator 192 in the mobile phone 100 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 in the mobile phone 100 is used to connect the SIM card.
  • the SIM card can be contacted and separated from the mobile phone 100 by being inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 .
  • the mobile phone 100 may include more or less components than those shown in FIG. 2 , which are not limited in the embodiments of the present application.
  • FIG. 3 it is a schematic diagram of a fill light function shell.
  • the rotating shaft 31 and the fill light 33 can be One-piece molding, LED32 lights can be evenly distributed on the fill light 33, and a switch 34 is provided outside the protective shell.
  • the switch 34 can control the rotating shaft 31 to bounce up and turn on the fill light 33, see FIG.
  • the fill light function shell can provide fill light services.
  • the electronic device is a mobile phone, and the mobile phone is equipped with a fill light function shell. When the surrounding environment of the user is dim, the switch of the fill light function shell can be turned on to fill in light and enhance brightness.
  • FIG. 4 it is a schematic diagram of a game function shell.
  • the game function shell has operation buttons, for example, including button 1 and button 2.
  • buttons for example, including button 1 and button 2.
  • a short-distance connection can be established with the game function shell, such as Bluetooth connection, Wi-Fi connection, etc.
  • the mobile phone runs game applications, the user can control the game through the operation buttons of the game function shell.
  • the structure of the functional shell shown in FIG. 3 and FIG. 4 in the present application is only an example, and the embodiment of the present application does not limit the structure of the functional shell that realizes the same function, for example, a fill light
  • the structure of the functional shell also includes: a case around the shell is provided with a fill light.
  • the embodiments of the present application do not limit the structure of the functional shell capable of realizing the same function.
  • the names of the above functional shells are only examples for convenience of description. In different scenarios, the names of these functional shells may remain unchanged, or may be replaced by other names, which are not limited in this application.
  • the types of the above functional classes are only examples, and the embodiments of the present application do not limit the types of functional shells.
  • it may also include other functional shells, such as a protective shell with functions such as monitoring heart rate or sleep state in the future.
  • a protective shell with functions such as monitoring heart rate or sleep state in the future.
  • the example does not limit this.
  • the same function shell can deploy one or more functions under the condition that there is no conflict.
  • one function is deployed in one function shell as an example for description.
  • the functional shell can consume power to provide services for users, and the charging technology for the functional shell plays a key role in ensuring the normal operation of the functional shell.
  • the mobile phone can charge the functional shell through the wireless reverse charging technology, that is, the mobile phone acts as a Tx (transmitting) device, the functional shell acts as an Rx (receiving) device, and the mobile phone provides reverse power for the functional shell.
  • FIG. 5a a schematic flowchart corresponding to a charging method provided by an embodiment of the present application is shown. As shown in Figure 5a, the process includes:
  • Step 501 When the electronic device detects the housing device, determine at least one application program associated with the electronic device.
  • the type identifier of the functional shell is 02.
  • a type identifier corresponding to its type is preset in the function shell.
  • the type identification will be written into the RX IC (chip) of the functional shell, and the subsequent RX IC can send the type identification to the mobile phone.
  • the corresponding relationship between the type identifier of the functional shell and the application program can be preset (referred to as the first preset corresponding relationship).
  • the mobile phone when it detects the functional shell, it can obtain the type of the functional shell.
  • identification at least one application program associated with the function shell is determined according to the first preset corresponding relationship and the acquired type identification of the function shell.
  • the mobile phone when the mobile phone detects the functional shell, it can also be understood that when the mobile phone wears the functional shell, the mobile phone obtains the type identification of the functional shell once.
  • the mobile phone can detect the wearing of the functional shell through contact sensors or Hall magnetic sensors.
  • wireless reverse charging is turned on, and the type identification of the functional shell is obtained through the wireless reverse charging technology; the functional shell is obtained. After the type is identified, turn off wireless reverse charging.
  • the functional shell can send the type identifier of the functional shell itself to the mobile phone during the handshake process.
  • the handshake process includes: the mobile phone sends a first message, the first message is used to request the type identification of the functional shell, after the functional shell receives the first message, it sends a second message to the mobile phone, the second message is The message contains the type identifier of the function shell itself.
  • an electronic device such as a cell phone
  • the terminal device can determine the type identifier of the function shell that sends the second message according to the second preset corresponding relationship and the resource carrying the second message.
  • identification, or the type identification of the functional shell may also be determined by detecting different positions where the sensors of the functional shell are located, which is not limited in this embodiment of the present application.
  • the mobile phone can obtain the type identification of the functional shell once when it detects that the functional shell is not worn until it detects that the functional shell is worn.
  • the changed signal is to trigger the acquisition of the type identification of the functional shell after the detection of the functional shell. If the mobile phone keeps wearing the functional shell subsequently, there is no need to repeatedly acquire the type identification of the functional shell. For example, when the contact sensor detects whether or not the functional shell is worn, when it is detected that the functional shell is worn, the type identification of the functional shell is obtained once, and the type identification of the functional shell does not need to be obtained again in the process of continuously wearing the functional shell.
  • the senor After the sensor detects that it is detached from the functional shell, if the functional shell is detected again, it will trigger the acquisition of the type identification of the functional shell again.
  • the functional shells detected twice can be the same functional shell or different functional shells. This embodiment of the present application does not limit this.
  • the electronic device may determine at least one application associated with the housing device according to the first preset correspondence and the type identifier of the housing device.
  • a first preset correspondence is stored in the mobile phone, and the first preset correspondence defines at least one application program corresponding to at least one type identifier and each type identifier of the at least one type identifier.
  • the first preset corresponding relationship may include the name of the application or the type of the application. As shown in Table 1 below, the first preset corresponding relationship provided by the embodiment of the present application signal.
  • the application program shown in Table 1 may include an installed application program and/or an uninstalled application program on the electronic device, which is not limited in this embodiment of the present application.
  • the category to which the application belongs will be recorded in the application, for example, the Honor of Kings, Peace Elite, etc. belong to the game category, and beauty cameras, cameras, etc. belong to the camera category. That is to say, in the embodiment of the present application, there may be one or more application programs corresponding to the same type identifier in the first preset correspondence relationship, which is not limited in the embodiment of the present application.
  • type identification of the functional shell is only an example, and the embodiment of the present application does not limit the expression form of the type identification of the functional shell, for example, it may include but not be limited to one or more of the following: numbers, letters or symbol.
  • number of bits of the type identifier of the functional shell is also not limited.
  • the mobile phone After acquiring the type identifier of the functional shell in step 501, the mobile phone determines at least one application program corresponding to the functional shell according to the preset corresponding relationship and the acquired type identification, that is, the type identifier of the functional shell in the first preset corresponding relationship. corresponding at least one application.
  • Step 502 The electronic device charges the casing device when detecting that the target application program is opened.
  • the mobile phone charges the functional case.
  • the target application program is any one of the at least one application program corresponding to the functional shell determined in step 501 . It should be understood that, when opening the target application, the user can manually turn on the function switch of the function shell, or it can be automatically turned on. For example, when the target application is opened by default, the function switch of the function shell is turned on. Not limited.
  • the electronic device when the electronic device charges the housing device, it can charge the housing device through wireless reverse charging.
  • the electronic device detects that the target application is opened the switch of the wireless reverse charging function is turned on. , charges the housing device through wireless reverse charging.
  • the terminal device can automatically turn on the wireless reverse charging switch, as shown in Figure 5b, for wireless reverse charging
  • Figure 5b for wireless reverse charging
  • FIG. 5 b is only for illustration, and in practice, an actual product may display more or less content than the interface shown in FIG. 5 b , which is not limited in this embodiment of the present application.
  • the terminal device when it is detected that the target application program is opened, can display a pop-up window to notify the user that the functional shell can be charged. If the user selects the OK button, the wireless reverse charging switch is turned on. The user selects the cancel button to keep the wireless reverse charging switch off.
  • the fill light function case as an example, as shown in Figure 5c, it is detected that the user has turned on the camera (refer to interface 100), the camera application is started (refer to interface 101), and a pop-up window is displayed, asking the user whether to charge the function case (refer to interface 102).
  • the pop-up window can also display other information, for example, the duration of charging the functional shell, which refers to the duration of continuously charging the functional shell after the wireless reverse charging switch is turned on, and the terminal device is turned off when the duration is reached. Wireless reverse charging switch.
  • the running state of the first target application may also include a state of running in the background.
  • the first target application is cleared in the background, the first target application is closed. If the first target application program is closed at the front end or the background of the mobile phone, it is detected again that the second target application program is opened, and the function case is not currently charged, the function case can be charged again.
  • the above method of charging the functional case is only an example, for example, the case device may also be charged in a wired manner, and the embodiment of the present application does not limit the manner in which the electronic device charges the case device.
  • the electronic device stops charging the housing device; exemplarily, the charging stop condition includes but is not limited to any one of the following: the target application is closed; the electronic device The power of the housing device is lower than the first set value; the power of the housing device is not lower than the second set value; it is detected that the housing device is separated from the electronic device.
  • the charging stop condition is that the target application is closed, then when the mobile phone detects that the target application is closed, the mobile phone turns off the wireless reverse charging switch and stops charging the functional case.
  • the condition for stopping charging is that the power of the electronic device itself is lower than the first set value, for example, the first set value is 20% of the total battery power.
  • the charging stop condition is that the power of the functional shell is not lower than the second set value, and when the mobile phone detects that the power of the functional shell is not lower than the second set value, for example, the second set value is the total power of the functional shell.
  • the phone turns off the wireless reverse charging switch and stops charging the functional case.
  • the mobile phone detects that the target application is opened or closed, if the total power of the functional shell is lower than 90%, it can continue to charge the function, and stop charging the functional shell until the power of the functional shell is not lower than 90%. Charge.
  • the condition for stopping the charging is to detect that the casing device is detached from the electronic device, and when the mobile phone detects that the functional casing is detached, the wireless reverse charging switch is turned off to stop charging the functional casing.
  • the above charging stop condition may be one or more of the above, which is not limited in the embodiments of the present application.
  • the charging stop condition may also be that the power of the electronic device is lower than the first set value, or/and the power of the housing device is not lower than the second set value.
  • the charging stop condition includes that the target application program is closed, or/and the power of the housing device is not lower than the second set value.
  • the charging stop condition includes that the target application program is closed, and the power of the housing device is not lower than the second set value, assuming that the second set value is 80%.
  • the functional shell can continue to be charged; for another example, when it is detected that the target application is closed and the power of the functional shell is lower than 80%, the functional shell can also be charged. Continue to charge the functional shell; when it is detected that the target application is closed and the power of the functional shell is not lower than 80%, turn off the wireless reverse charging switch and stop charging the functional shell.
  • Embodiment 1 is a mobile phone
  • the casing device is a fill light function casing matched with the mobile phone model as an example for description.
  • the process includes the following steps:
  • Step 601 The mobile phone detects that the functional case is worn.
  • Step 602 The mobile phone turns on the wireless direction charging switch, and obtains the type identifier of the functional shell.
  • Step 603 The mobile phone turns off the wireless reverse charging switch.
  • the mobile phone turns off the wireless reverse charging switch after determining to acquire the type identification of the functional case.
  • the mobile phone turns on the wireless reverse charging switch, and turns off the wireless reverse charging switch after a preset time.
  • the mobile phone turns on the wireless reverse charging switch, and turns off the wireless reverse charging switch after 10ms, that is, the turning off of the wireless reverse charging switch does not depend on whether the mobile phone obtains the type identification of the functional shell.
  • the preset time should be at least the shortest time required for the mobile phone to obtain the type identification of the functional case.
  • the type identifier of the function shell is 01, and it can be determined that the function shell is a fill light function shell, and it is determined according to Table 1 that at least one application program corresponding to the fill light function shell includes cameras, Beauty Camera and other applications.
  • Step 605a When the mobile phone detects that the target application program is opened, it charges the function case of the fill light.
  • the user turns on the camera in the mobile phone, and at the same time turns on the function switch of the fill light function shell to fill light for the user.
  • the lamp function shell is charged.
  • the above-mentioned function switch for the user to turn on the fill light function shell can also be realized by the mobile phone controlling the function shell.
  • the mobile phone sends instruction information to the function shell, instructing the function shell to turn on the fill light light. This embodiment of the present application does not limit this.
  • the mobile phone can also charge the functional shell, or the mobile phone can detect an application in the target application, such as the camera After being turned on, it can be detected by the light sensor transmitter whether the fill light is turned on in the function shell. If the fill light is turned on in the function shell, the function shell is charged. If the fill light in the function shell is not turned on, the function shell is not charged.
  • Step 606a After the mobile phone determines that the target application is closed, it stops charging the function case.
  • step 606a is shown as an example where the charging stop condition is that the target application is closed, but the embodiment of the present application does not limit the charging stop condition.
  • the type of the functional shell is identified as 02, and it can be determined that the functional shell is a game functional shell. According to Table 1, it is determined that at least one application program corresponding to the fill light functional shell includes applications such as King of Glory and other applications. .
  • Step 605b When the mobile phone detects that the target application program is opened, it charges the function case of the fill light.
  • the wireless direction charging switch is turned on to charge the game functional shell.
  • Step 606a After the mobile phone determines that the target application is closed, it stops charging the function case.
  • the methods provided by the embodiments of the present application are introduced from the perspective of an electronic device as an execution subject.
  • the electronic device may include a hardware structure and/or software modules, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is performed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
  • FIG. 7 is a schematic diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device 700 may be a chip or a circuit, such as a chip or circuit that can be provided in an electronic device.
  • the electronic device 700 may include a detection unit 701 , a communication unit 702 , a processing unit 703 and a charging unit 704 .
  • the communication unit 702 may further include a sending unit and a receiving unit.
  • the processing unit 703 is configured to, when the detection unit 701 detects that the housing device is worn, determine at least one application program associated with the housing device; the housing device is configured to provide the user based on electrical energy auxiliary function;
  • the charging unit 704 is configured to charge the housing device when it is detected that a first application program is started, where the first application program is any one of the at least one application program.
  • the processing unit 703 when determining at least one application program associated with the housing device, is specifically configured to acquire the type identifier of the housing device; query presets according to the type identifier The corresponding relationship information between the type identifier and the application program is obtained, and at least one application program corresponding to the type identifier is obtained, wherein the correspondence relationship information between the type identifier and the application program is at least used to indicate the type identifier of the housing device. corresponding at least one application.
  • the correspondence information at least indicates at least one application program corresponding to the type identifier of the housing device, including: the correspondence information includes at least the type identifier of the housing device and The name of at least one application program corresponding to the type identifier; or, the correspondence information includes at least the type identifier of the housing device and the application program type information corresponding to the type identifier.
  • the sending unit is configured to send the first message to the housing device;
  • the receiving unit is configured to receive the first message from the housing device that carries the type identifier of the housing device two packets;
  • a processing unit 703, configured to acquire the type identifier of the housing device carried by the second packet;
  • a sending unit is used to send a first message to the housing device; a receiving unit is used to receive a second message from the housing device; a processing unit 703 is used to use a message according to the second message Resource query preset correspondence information between resources and housing device types, and obtain a type identifier of the housing device corresponding to the resource used by the second message, wherein the corresponding relationship information between the resource and the housing device type At least the resource indication information used by the second message and the type identifier of the corresponding housing device are included.
  • the charging unit 704 is further configured to: stop charging the housing device after detecting that the charging stop condition is satisfied; wherein the charging stop condition includes any one of the following Type: the first application is closed; the power of the electronic device is lower than the first set value; the power of the housing device is not lower than the second set value; the electronic device detects that the shell The body device is detached from the electronic device.
  • the charging unit 704 when charging the housing device, is specifically configured to: enable the wireless reverse charging function to charge the housing device.
  • the present application provides an electronic device 800 , and the electronic device 800 may include a processor 801 and a memory 802 . Further, the apparatus may further include a communication interface 804, which may be a transceiver, or the communication interface may be a network card. Further, the device 800 may further include a bus system 803 .
  • the processor 801, the memory 802 and the communication interface 804 can be connected through the bus system 803, the memory 802 can be used to store instructions, and the processor 801 can be used to execute the instructions stored in the memory 802 to control the communication interface 804 to receive or send signals, Complete the steps of executing the main body in the method shown in FIG. 2 above.
  • the memory 802 may be integrated in the processor 801 , or may be a physical entity different from the processor 801 .
  • the function of the communication interface 804 can be considered to be implemented by a transceiver circuit or a dedicated chip for transceiver.
  • the processor 801 can be considered to be implemented by a dedicated processing chip, a processing circuit, a processor or a general-purpose chip.
  • a computer manner may be considered to implement the first computing node or the function of the first computing node provided by the embodiments of the present application.
  • the program codes that will implement the functions of the processor 801 and the communication interface 804 are stored in the memory 802, and a general-purpose processor can implement the functions of the processor 801 and the communication interface 804 by executing the codes in the memory.
  • the device 800 can be used to execute the steps of the main body in the process shown in FIG. 5a or FIG. 6 .
  • the device 800 can be used to execute the steps of the main body in the process shown in FIG. 5a or FIG. 6 .
  • Embodiments of the present application further provide a computer storage medium, where computer instructions are stored in the computer storage medium, and when the computer instructions are executed on a terminal device, the terminal device executes the above-mentioned relevant method steps to implement the methods in the above-mentioned embodiments.
  • Embodiments of the present application further provide a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the above-mentioned relevant steps, so as to implement the methods in the above-mentioned embodiments.
  • the embodiments of the present application also provide an apparatus, which may specifically be a chip, a component or a module, and the apparatus may include a connected processor and a memory; wherein, the memory is used for storing computer execution instructions, and when the apparatus is running, The processor can execute the computer-executed instructions stored in the memory, so that the chip executes the methods in the foregoing method embodiments.
  • the terminal equipment, computer storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, for the beneficial effects that can be achieved, reference may be made to the corresponding methods provided above. The beneficial effects of the method are not repeated here.
  • the disclosed apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or It may be integrated into another device, or some features may be discarded, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • Units described as separate components may or may not be physically separated, and components shown as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium.
  • a readable storage medium including several instructions to make a device (which may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Engineering (AREA)
  • Telephone Function (AREA)

Abstract

The present application provides a charging method and apparatus, applied to the technical field of terminal devices. The method comprises: when a housing apparatus is detected, an electronic device determines at least one application associated with the housing apparatus, the housing apparatus being used for providing an auxiliary function for a user on the basis of electric energy; and when detecting that a first application is started, the electronic device charges the housing apparatus, the first application being any one application among the at least one application corresponding to the housing apparatus. For example, when the electronic device can charge the housing apparatus by using a wireless reverse charging technology, the electronic device can enable a wireless reverse charging function when detecting that the housing apparatus is wore and the first application associated with the housing apparatus is started, and the electronic device does not need to enable a wireless charging function all the time, such that consumption of electric energy is avoided, the housing apparatus can be charged in time, and user experience is improved.

Description

一种充电方法及装置A charging method and device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求在2020年09月29日提交中国专利局、申请号为202011050083.7、申请名称为“一种充电方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011050083.7 and the application title "A charging method and device" filed with the China Patent Office on September 29, 2020, the entire contents of which are incorporated into this application by reference.
技术领域technical field
本申请涉及终端设备技术领域,尤其涉及一种充电方法及装置。The present application relates to the technical field of terminal equipment, and in particular, to a charging method and device.
背景技术Background technique
手机保护壳呈现多元化发展,与仅具有保护和装饰的保护壳相比,功能壳具有更多的功能,比如可具有补光功能等。根据功能的不同,功能壳可包括补光灯功能壳、游戏功能壳等。例如,在使用手机照相或拍摄视频时,手机上安装的补光灯功能壳可以通过消耗壳体自身的电量来提供光照。The mobile phone protective case has shown a diversified development. Compared with the protective case with only protection and decoration, the functional case has more functions, such as a supplementary light function. According to different functions, the function shell may include a fill light function shell, a game function shell, and the like. For example, when using a mobile phone to take pictures or shoot videos, the fill light function shell installed on the mobile phone can provide light by consuming the power of the shell itself.
随着手机无线反向充电技术的发展,手机可通过无线反向充电技术为手机上安装的功能壳充电,即手机作为Tx(发送)设备,功能壳作为Rx(接收)设备,手机为功能壳反向供电。其中一种反向供电方式为:手机检测到功能壳后,保持手机端无线反向充电功能常开,但这种方式存在手机无线反向充电开启时间长,耗电大的问题;另一种反向供电方式为:用户手动开启手机端的无线反向充电功能,但这种方式,用户需要手动操作,体验感差。With the development of wireless reverse charging technology for mobile phones, the mobile phone can charge the functional shell installed on the mobile phone through the wireless reverse charging technology, that is, the mobile phone acts as a Tx (transmitting) device, the functional shell acts as an Rx (receiving) device, and the mobile phone is a functional shell Reverse power supply. One of the reverse power supply methods is: after the mobile phone detects the functional shell, keep the wireless reverse charging function on the mobile phone always on, but this method has the problem that the wireless reverse charging of the mobile phone is turned on for a long time and consumes a lot of power; the other The reverse power supply method is: the user manually turns on the wireless reverse charging function on the mobile phone, but in this method, the user needs to operate manually, and the experience is poor.
因此,需要提供一种新型的充电方式,以达到节能和提高用户体验的目的。Therefore, it is necessary to provide a new charging method to achieve the purpose of saving energy and improving user experience.
发明内容SUMMARY OF THE INVENTION
本申请提供一种充电方法及装置,用于提高用户体验,并尽量减少电能消耗。The present application provides a charging method and device for improving user experience and minimizing power consumption.
第一方面,本申请提供一种充电方法,该方法可以由电子设备(例如终端设备)执行,也可以由电子设备的部件实现,如由电子设备中的处理装置、电路、芯片等部件实现。该方法包括:电子设备检测到壳体装置时,确定所述壳体装置关联的至少一个应用程序;所述壳体装置用于基于电能为用户提供辅助功能;所述电子设备在检测到第一应用程序被开启时,对所述壳体装置进行充电,所述第一应用程序为所述至少一个应用程序中的任意一个应用程序。In a first aspect, the present application provides a charging method, which can be performed by an electronic device (such as a terminal device), or implemented by components of the electronic device, such as processing devices, circuits, chips, and other components in the electronic device. The method includes: when the electronic device detects a housing device, determining at least one application program associated with the housing device; the housing device is configured to provide an auxiliary function for a user based on electrical energy; when the electronic device detects a first When an application program is opened, the housing device is charged, and the first application program is any one of the at least one application program.
通过上述方法,电子设备在检测到第一应用程序被开启时,向壳体装置进行充电,示例性地,电子设备可以使用无线反向充电技术为壳体装置进行充电时,可以在检测到佩戴上壳体装置,且与壳体装置关联的第一应用程序被开启时,开启无线反向充电功能,不需要电子设备一直开启无线充电功能,避免电能消耗,并且可以及时为壳体装置进行充电。Through the above method, the electronic device charges the housing device when detecting that the first application program is opened. Exemplarily, when the electronic device can use the wireless reverse charging technology to charge the housing device, it can detect that the device is wearing When the upper casing device is installed, and the first application program associated with the casing device is opened, the wireless reverse charging function is turned on, and the electronic device does not need to have the wireless charging function turned on all the time, so as to avoid power consumption, and the casing device can be charged in time. .
在一种可能的实现方法中,确定所述壳体装置关联的至少一个应用程序,包括:所述电子设备获取所述壳体装置的类型标识;所述电子设备根据所述类型标识查询预设的类型标识与应用程序的对应关系信息,得到与所述类型标识对应的至少一个应用程序,其中, 所述类型标识与应用程序的对应关系信息至少用于指示所述壳体装置的类型标识所对应的至少一个应用程序。In a possible implementation method, determining at least one application program associated with the housing device includes: acquiring, by the electronic device, a type identifier of the housing device; the electronic device querying a preset according to the type identifier The corresponding relationship information between the type identifier and the application program is obtained, and at least one application program corresponding to the type identifier is obtained, wherein the correspondence relationship information between the type identifier and the application program is at least used to indicate the type identifier of the housing device. corresponding at least one application.
通过上述方法,以不同的类型标识来区别功能壳,并以类型标识与应用程序进行绑定,从而通过功能壳的类型标识确定功能壳对应的应用程序,这里的类型标识可以表示同一类功能壳,也即电子设备需要维护的第一预设对应关系比较简洁,在写入功能壳的类型标识时,同一类型的功能壳的类型标识是相同的,可以批量写入。可替代地,这里的类型标识也可以被功能壳的标识替代,功能壳的标识可以是唯一的,即每个功能壳的标识可以是不同的,本申请实施例对此不也做限定。Through the above method, the function shells are distinguished by different type identifiers, and are bound to the application program with the type identifier, so that the application program corresponding to the function shell is determined by the type identifier of the function shell, and the type identifier here can represent the same type of function shell. , that is, the first preset correspondence that the electronic device needs to maintain is relatively simple. When writing the type identifiers of the functional shells, the type identifiers of the same type of functional shells are the same, and can be written in batches. Alternatively, the type identification here can also be replaced by the identification of the functional shell, and the identification of the functional shell may be unique, that is, the identification of each functional shell may be different, which is not also limited in the embodiments of the present application.
在一种可能的实现方法中,所述对应关系信息至少指示所述壳体装置的类型标识所对应的至少一个应用程序,包括:所述对应关系信息至少包括所述壳体装置的类型标识和所述类型标识对应的至少一个应用程序的名称;或者,所述对应关系信息至少包括所述壳体装置的类型标识和所述类型标识对应的应用程序类型信息。In a possible implementation method, the correspondence information at least indicates at least one application program corresponding to the type identifier of the housing device, including: the correspondence information includes at least the type identifier of the housing device and The name of at least one application program corresponding to the type identifier; or, the correspondence information includes at least the type identifier of the housing device and the application program type information corresponding to the type identifier.
在一种可能的实现方法中,所述电子设备获取所述壳体装置的类型标识,包括:所述电子设备向所述壳体装置发送第一报文,接收来自所述壳体装置的携带所述壳体装置的类型标识的第二报文,并获取所述第二报文携带的所述壳体装置的类型标识;或者所述电子设备向所述壳体装置发送第一报文,接收来自所述壳体装置的第二报文,并根据所述第二报文使用的资源查询预设的资源与壳体装置类型的对应关系信息,得到与所述第二报文使用的资源对应的壳体装置的类型标识,其中,所述资源与壳体装置类型的对应关系信息至少包括所述第二报文使用的资源指示信息以及对应的壳体装置的类型标识。In a possible implementation method, the obtaining, by the electronic device, the type identifier of the housing device includes: the electronic device sending a first message to the housing device, and receiving a carrying message from the housing device the second message with the type identifier of the housing device, and obtain the type identifier of the housing device carried in the second message; or the electronic device sends the first message to the housing device, Receive the second message from the housing device, and query the preset resource and housing device type correspondence information according to the resource used by the second message, and obtain the resource used by the second message The corresponding type identifier of the housing device, wherein the correspondence information between the resource and the housing device type includes at least resource indication information used by the second message and the type identifier of the corresponding housing device.
通过上述方法,获取功能壳的类型标识的方法有多种,获取方式更加灵活。Through the above method, there are various methods for obtaining the type identifier of the function shell, and the obtaining method is more flexible.
在一种可能的实现方法中,该方法还包括:所述电子设备在检测到满足停止充电条件后,停止对所述壳体装置进行充电;其中,所述停止充电条件包括下列中的任意一种:所述第一应用程序被关闭;所述电子设备的电量低于第一设定值;所述壳体装置的电量不低于第二设定值;所述电子设备检测到所述壳体装置脱离所述电子设备。In a possible implementation method, the method further includes: after the electronic device detects that the charging stop condition is satisfied, stop charging the housing device; wherein the charging stop condition includes any one of the following Type: the first application is closed; the power of the electronic device is lower than the first set value; the power of the housing device is not lower than the second set value; the electronic device detects that the shell The body device is detached from the electronic device.
在一种可能的实现方法中,电子设备开启无线反向充电功能,对壳体装置进行充电。In a possible implementation method, the electronic device enables the wireless reverse charging function to charge the casing device.
在一种可能的实现方法中,电子设备为电子设备,壳体装置为可拆卸功能壳;电子设备检测到壳体装置,包括:电子设备检测到壳体装置佩戴在所述电子设备上。In a possible implementation method, the electronic device is an electronic device, and the housing device is a detachable functional shell; the electronic device detects the housing device, including: the electronic device detects that the housing device is worn on the electronic device.
第二方面,本申请实施例提供一种电子设备,包括处理器和存储器,其中,存储器用于存储一个或多个计算机程序;当存储器存储的一个或多个计算机程序被处理器执行时,使得该终端设备能够实现上述任一方面的任意一种可能的设计的方法。In a second aspect, embodiments of the present application provide an electronic device, including a processor and a memory, wherein the memory is used to store one or more computer programs; when the one or more computer programs stored in the memory are executed by the processor, the The terminal device can implement any one of the possible design methods in any of the above aspects.
第三方面,还提供一种电子设备,包括:用于执行上述第一方面或第一方面的任意一种可能的设计的方法的模块/单元;这些模块/单元可以通过硬件实现,也可以通过硬件执行相应的软件实现。In a third aspect, an electronic device is also provided, including: modules/units for executing the above-mentioned first aspect or any possible design method of the first aspect; these modules/units may be implemented by hardware, or by The hardware executes the corresponding software implementation.
第四方面,还提供一种芯片,所述芯片与上述第一方面所述的电子设备中的存储器耦合,使得所述芯片在运行时调用所述存储器中存储的程序指令,实现如上述第一方面提供的方法。In a fourth aspect, a chip is also provided, which is coupled to the memory in the electronic device described in the first aspect, so that the chip calls program instructions stored in the memory when running, so as to achieve the above-mentioned first methods provided.
第五方面,还提供一种计算机可读存储介质,所述计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得所述电子设备执行如上述第一方面提供的方法。In a fifth aspect, a computer-readable storage medium is also provided, the computer-readable storage medium comprising a computer program, when the computer program is run on an electronic device, the electronic device causes the electronic device to perform the method provided in the above-mentioned first aspect.
第六方面,还提供一种计算机程序产品,包括指令,当所述指令在计算机上运行时, 使得所述计算机执行如上述第一方面提供的方法。In a sixth aspect, a computer program product is also provided, comprising instructions, which when executed on a computer, cause the computer to perform the method provided in the above-mentioned first aspect.
以上第二方面到第六方面的有益效果,请参考第一方面提出各个技术方案的有益效果,这里不再重复赘述。For the beneficial effects of the second aspect to the sixth aspect, please refer to the beneficial effects of the technical solutions proposed in the first aspect, which will not be repeated here.
附图说明Description of drawings
图1为本申请实施例提供的一种应用场景示意图;1 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图2为本申请实施例提供的一种移动终端设备的结构示意图;FIG. 2 is a schematic structural diagram of a mobile terminal device according to an embodiment of the present application;
图3为本申请实施例提供的一种功能壳的结构示意图;3 is a schematic structural diagram of a functional shell provided by an embodiment of the present application;
图4为本申请实施例提供的另一种功能壳的结构示意图;4 is a schematic structural diagram of another functional shell provided by an embodiment of the present application;
图5a为本申请实施例提供的一种充电方法所对应的流程示意图;FIG. 5a is a schematic flowchart corresponding to a charging method provided by an embodiment of the present application;
图5b为本申请实施例提供的一种无线反向充电界面示意图;FIG. 5b is a schematic diagram of a wireless reverse charging interface provided by an embodiment of the application;
图5c为本申请实施例提供的一种为功能壳充电的流程示意图;FIG. 5c is a schematic flowchart of charging a functional case according to an embodiment of the present application;
图6为本申请实施例提供的完整充电方法所对应的流程示意图;FIG. 6 is a schematic flowchart corresponding to the complete charging method provided by the embodiment of the present application;
图7为本申请实施例提供的一种电子设备的结构示意图;FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
图8为本申请实施例提供的另一种电子设备的结构示意图。FIG. 8 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
为解决背景技术中提到的问题,本申请实施例提供一种充电方法,电子设备检测到壳体装置时,获取壳体装置的类型标识,根据预设对应关系确定壳体装置对应的至少一个应用程序;当检测到目标应用程序被开启时,对壳体装置进行充电,其中,该目标应用程序为所述预设对应关系中所述壳体装置的类型标识对应的至少一个应用程序中的任意一个应用程序。当电子设备使用无线反向充电技术为壳体装置进行充电时,电子设备不需要一直开启无线充电功能,避免电能消耗,并且可以及时为壳体装置进行充电,本申请是一种及时、节能的充电方式。In order to solve the problem mentioned in the background art, an embodiment of the present application provides a charging method. When an electronic device detects a casing device, it obtains a type identifier of the casing device, and determines at least one corresponding to the casing device according to a preset correspondence relationship. Application program; when it is detected that the target application program is opened, the case device is charged, wherein the target application program is at least one application program corresponding to the type identifier of the case device in the preset correspondence relationship. any application. When the electronic device uses the wireless reverse charging technology to charge the housing device, the electronic device does not need to turn on the wireless charging function all the time to avoid power consumption, and can charge the housing device in time. The present application is a timely and energy-saving method. charging method.
参见图1,为本申请实施例提供的一种应用场景示意图。如图1所示,该应用场景展示了电子装置100和壳体装置101。Referring to FIG. 1 , it is a schematic diagram of an application scenario provided by an embodiment of the present application. As shown in FIG. 1 , the application scenario shows an electronic device 100 and a housing device 101 .
其中,电子设备,是一种向用户提供语音和/或数据连通性的设备,例如,具有无线连接功能的便携式设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴设备等。Among them, an electronic device is a device that provides voice and/or data connectivity to a user, for example, a portable device with a wireless connection function, such as a mobile phone, a tablet computer, a wearable device with a wireless communication function, and the like.
壳体装置为支持通信,可以配合电子设备进行使用,例如,壳体装置为与电子设备的型号相匹配的可拆卸保护壳,该壳体装置除具有为电子设备提供保护和装饰的功能之外,还具有一个或多个辅助功能。当然,该壳体装置在提供辅助功能时会造成电能消耗。The housing device supports communication and can be used with electronic equipment. For example, the housing device is a detachable protective case that matches the model of the electronic device. In addition to the function of providing protection and decoration for the electronic device, the housing device , also has one or more auxiliary functions. Of course, the housing device will cause power consumption when providing auxiliary functions.
可选地,根据壳体装置提供的辅助功能的不同或者提供的多个辅助功能组合不同,壳体装置可被划分为不同的类型。目前,一些壳体装置的举例为:补光灯功能壳和游戏功能壳。当然,上述仅为举例并不构成本申请应用范围的限定,任何现有的功能壳,以及未来可能会出现的功能壳,例如心率保护壳等都适用于本申请实施例。Optionally, the housing device may be divided into different types according to different auxiliary functions provided by the housing device or different combinations of multiple auxiliary functions provided. At present, some examples of casing devices are: a fill light function casing and a game function casing. Of course, the above is only an example and does not constitute a limitation of the application scope of the present application. Any existing functional shells and functional shells that may appear in the future, such as heart rate protection shells, are applicable to the embodiments of the present application.
应理解,图1是以电子设备为手机,壳体装置为手机的保护壳为例示出的,但本申请实施例中的电子设备和壳体装置不限于此。It should be understood that FIG. 1 shows an example in which the electronic device is a mobile phone and the casing device is a protective case of the mobile phone, but the electronic device and the casing device in the embodiments of the present application are not limited to this.
以下,对本申请实施例中的部分用语进行解释说明,以便于本领域技术人员理解。Hereinafter, some terms in the embodiments of the present application will be explained, so as to facilitate the understanding of those skilled in the art.
本申请实施例涉及的应用(application,简称app),为能够实现某项或多项特定功能 的计算机程序。通常,电子设备中可以安装多个应用。比如,相机应用、游戏应用、办公应用等。下文中提到的应用,可以是电子设备出厂时自带的应用,也可以是用户在使用电子设备的过程中从网络侧下载的应用。The application (application, app for short) involved in the embodiments of the present application is a computer program capable of realizing one or more specific functions. Generally, multiple applications may be installed in an electronic device. For example, camera applications, game applications, office applications, etc. The application mentioned below may be an application that comes with the electronic device when it leaves the factory, or it may be an application downloaded from the network side by the user in the process of using the electronic device.
如下,以手机为例,对电子设备的内部结构进行介绍,请参见图2,图2示出了手机100的结构示意图。As follows, taking a mobile phone as an example, the internal structure of the electronic device will be introduced. Please refer to FIG. 2 , which shows a schematic structural diagram of the mobile phone 100 .
手机100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块151,无线通信模块152,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户类型标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括陀螺仪传感器180A,加速度传感器180B,指纹传感器180H,温度传感器180J,触摸传感器180K(当然,手机100还可以包括其它传感器,比如霍尔磁传感器、环境光传感器、压力传感器、加速度传感器、陀螺仪传感器等,图中未示出)。The mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, Mobile communication module 151, wireless communication module 152, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and user Type identification module (subscriber identification module, SIM) card interface 195 and so on. The sensor module 180 may include a gyroscope sensor 180A, an acceleration sensor 180B, a fingerprint sensor 180H, a temperature sensor 180J, and a touch sensor 180K (of course, the mobile phone 100 may also include other sensors, such as a Hall magnetic sensor, an ambient light sensor, a pressure sensor, acceleration sensor, gyroscope sensor, etc., not shown in the figure).
可以理解的是,本申请实施例示意的结构并不构成对手机100的具体限定。在本申请另一些实施例中,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the mobile phone 100 . In other embodiments of the present application, the mobile phone 100 may include more or less components than shown, or some components may be combined, or some components may be separated, or different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
其中,处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是手机100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. The controller may be the nerve center and command center of the mobile phone 100 . The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,手机100可以包括1个或N个显示屏194,N为大于1的正整数。 Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light). emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on. In some embodiments, the handset 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
摄像头193(前置摄像头或者后置摄像头,或者一个摄像头既可作为前置摄像头,也可作为后置摄像头)用于捕获静态图像或视频。通常,摄像头193可以包括感光元件比如镜头组和图像传感器,其中,镜头组包括多个透镜(凸透镜或凹透镜),用于采集待拍摄物体反射的光信号,并将采集的光信号传递给图像传感器。图像传感器根据所述光信号生成待拍摄物体的原始图像。Camera 193 (front camera or rear camera, or one camera can be both front camera and rear camera) is used to capture still images or video. Generally, the camera 193 may include a photosensitive element such as a lens group and an image sensor, wherein the lens group includes a plurality of lenses (convex or concave) for collecting light signals reflected by the object to be photographed, and transmitting the collected light signals to the image sensor . The image sensor generates an original image of the object to be photographed according to the light signal.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行手机100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,应用程序(比如相机应用,微信应用等)的代码等。存储数据区可存储手机100使用过程中所创建的数据(比如相机应用采集的图像、视频等)等。 Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the mobile phone 100 by executing the instructions stored in the internal memory 121 . The internal memory 121 may include a storage program area and a storage data area. The storage program area may store operating system, code of application programs (such as camera application, WeChat application, etc.), and the like. The storage data area can store data created during the use of the mobile phone 100 (such as images, videos, etc. collected by the camera application) and the like.
内部存储器121还可以存储本申请实施例提供的图像拍摄算法的代码。当内部存储器121中存储的图像拍摄算法的代码被处理器110运行时,实现图像拍摄功能,拍摄得到图像质量较好的图像。The internal memory 121 may also store the codes of the image capturing algorithms provided by the embodiments of the present application. When the code of the image capturing algorithm stored in the internal memory 121 is executed by the processor 110, the image capturing function is realized, and an image with better image quality is captured.
此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
当然,本申请实施例提供的图像拍摄算法的代码还可以存储在外部存储器中。这种情况下,处理器110可以通过外部存储器接口120运行存储在外部存储器中的图像拍摄算法的代码,实现图像拍摄功能,拍摄得到图像质量较好的图像。Certainly, the code of the image capturing algorithm provided by the embodiment of the present application may also be stored in an external memory. In this case, the processor 110 can run the code of the image capturing algorithm stored in the external memory through the external memory interface 120 to realize the image capturing function, and capture an image with better image quality.
下面介绍传感器模块180的功能。The function of the sensor module 180 is described below.
陀螺仪传感器180A,可以用于确定手机100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180A确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。即陀螺仪传感器180A可以用于检测手机100当前的运动状态,比如抖动还是静止。The gyro sensor 180A can be used to determine the movement posture of the mobile phone 100 . In some embodiments, the angular velocity of electronic device 100 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 180A. That is, the gyro sensor 180A can be used to detect the current motion state of the mobile phone 100, such as shaking or stillness.
加速度传感器180B可检测手机100在各个方向上(一般为三轴)加速度的大小。即陀螺仪传感器180A可以用于检测手机100当前的运动状态,比如抖动还是静止。The acceleration sensor 180B can detect the magnitude of the acceleration of the mobile phone 100 in various directions (generally three axes). That is, the gyro sensor 180A can be used to detect the current motion state of the mobile phone 100, such as shaking or stillness.
陀螺仪传感器180A(或加速度传感器180B)可以将检测到的运动状态信息(比如角速度)发送给处理器110。处理器110基于运动状态信息确定当前是手持状态还是脚架状态(比如,角速度不为0时,说明手机100处于手持状态)。The gyro sensor 180A (or the acceleration sensor 180B) may send the detected motion state information (such as angular velocity) to the processor 110 . The processor 110 determines, based on the motion state information, whether the current state is the hand-held state or the tripod state (for example, when the angular velocity is not 0, it means that the mobile phone 100 is in the hand-held state).
指纹传感器180H用于采集指纹。手机100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The mobile phone 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering incoming calls with fingerprints, and the like.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于手机100的表面,与显示屏194所处的位置不同。 Touch sensor 180K, also called "touch panel". The touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to touch operations may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the mobile phone 100 , which is different from the position where the display screen 194 is located.
霍尔磁传感器180J,用于对磁场及其变化进行检测的传感器,通常也间接用于铁磁物质位置检测,磁性物质与手机近距离接触,可以改变霍尔传感器位置处的磁场大小,从而被霍尔传感器检测到并输出电信号值,示例性地,手机接收到该电信号后可以发出锁屏休眠指令。例如,传统的翻盖保护壳,其翻盖上内置磁性元件。当翻盖盖上与手机套合时,磁性元件靠近霍尔传感器,霍尔传感器感应到该信号,关闭屏幕显示,反之,开启屏幕显示。Hall magnetic sensor 180J, a sensor used to detect the magnetic field and its changes, is usually also indirectly used for the position detection of ferromagnetic substances. The magnetic substance is in close contact with the mobile phone, which can change the magnetic field at the position of the Hall sensor, thereby being detected. The Hall sensor detects and outputs an electrical signal value. Exemplarily, after receiving the electrical signal, the mobile phone can issue a lock screen sleep instruction. For example, traditional flip-top cases have built-in magnetics in the flip. When the flip cover is fitted with the mobile phone, the magnetic element is close to the Hall sensor, the Hall sensor senses the signal, and the screen display is turned off; otherwise, the screen display is turned on.
手机100的无线通信功能可以通过天线1,天线2,移动通信模块151,无线通信模块152,调制解调处理器以及基带处理器等实现。The wireless communication function of the mobile phone 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 151, the wireless communication module 152, the modulation and demodulation processor, the baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块151可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块151可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块151可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块151的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块151的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 151 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the electronic device 100 . The mobile communication module 151 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like. The mobile communication module 151 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 151 may be provided in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 151 may be provided in the same device as at least part of the modules of the processor 110 .
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Wherein, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and passed to the application processor. The application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块152可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块152可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块152经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块152还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 152 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR). The wireless communication module 152 may be one or more devices integrating at least one communication processing module. The wireless communication module 152 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 152 can also receive the signal to be sent from the processor 110 , perform frequency modulation on the signal, amplify the signal, and convert it into electromagnetic waves for radiation through the antenna 2 .
另外,手机100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。手机100可以接收按键190输入,产生与手机100的用户设置以及功能控制有关的键信号输入。手机100可以利用马达191产生振动提示(比如来电振动提示)。手机100中的指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。手机100中的SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和手机100的接触和分离。In addition, the mobile phone 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. Such as music playback, recording, etc. The mobile phone 100 can receive the key 190 input and generate the key signal input related to the user setting and function control of the mobile phone 100 . The mobile phone 100 can use the motor 191 to generate vibration alerts (eg, vibration alerts for incoming calls). The indicator 192 in the mobile phone 100 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like. The SIM card interface 195 in the mobile phone 100 is used to connect the SIM card. The SIM card can be contacted and separated from the mobile phone 100 by being inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 .
应理解,在实际应用中,手机100可以包括比图2所示的更多或更少的部件,本申请实施例不作限定。It should be understood that, in practical applications, the mobile phone 100 may include more or less components than those shown in FIG. 2 , which are not limited in the embodiments of the present application.
参见图3,为一种补光灯功能壳的示意图,如图3的(a)所示,该补光灯功能壳的保护壳壳体外有一活动转轴31,转轴31与补光灯33可以是一体成型,补光灯33上可以均匀分布有LED32灯,保护壳壳体外设置有开关34,该开关34可以控制转轴31弹起,以及开启补光灯33,参见图3的(b)。补光灯功能壳可以提供补光服务,例如,电子设备为手机,该手机佩戴有补光灯功能壳,当用户周围环境昏暗,可以打开补光灯功能壳的开关,以进行补光,增强亮度。Referring to FIG. 3, it is a schematic diagram of a fill light function shell. As shown in (a) of FIG. 3, there is a movable rotating shaft 31 outside the protective shell of the fill light function shell. The rotating shaft 31 and the fill light 33 can be One-piece molding, LED32 lights can be evenly distributed on the fill light 33, and a switch 34 is provided outside the protective shell. The switch 34 can control the rotating shaft 31 to bounce up and turn on the fill light 33, see FIG. The fill light function shell can provide fill light services. For example, the electronic device is a mobile phone, and the mobile phone is equipped with a fill light function shell. When the surrounding environment of the user is dim, the switch of the fill light function shell can be turned on to fill in light and enhance brightness.
参见图4,为一种游戏功能壳的示意图,如图4所示,该游戏功能壳具有操作按键,例如,包含按键1和按键2,当电子设备为手机时,手机戴上游戏功能壳后,可以与该游 戏功能壳建立短距连接,例如蓝牙连接、Wi-Fi连接等,用户在该手机运行游戏类应用时,可以通过该游戏功能壳的操作按键进行游戏控制。Referring to FIG. 4, it is a schematic diagram of a game function shell. As shown in FIG. 4, the game function shell has operation buttons, for example, including button 1 and button 2. When the electronic device is a mobile phone, after the mobile phone wears the game function shell , a short-distance connection can be established with the game function shell, such as Bluetooth connection, Wi-Fi connection, etc. When the mobile phone runs game applications, the user can control the game through the operation buttons of the game function shell.
需要说明的是,(1)本申请中图3和图4所示出的功能壳的结构仅为举例,本申请实施例对实现同一功能的功能壳的结构不做限定,例如,补光灯功能壳的结构还包括:壳体四周案装有补光灯。本申请实施例对能实现同一功能的功能壳的结构不做限定。(2)上述功能壳的名称仅为便于描述所举的例子,在不同的场景中,这些功能壳的名称可以不变,或者也可以用其他名称代替,本申请对此不限定。(3)上述功能类的类型仅为举例,本申请实施例对功能壳的类型不作限定,例如还可以包含具有其他功能壳,如未来的监听心率或者睡眠状态等功能的保护壳,本申请实施例对此也不作限定。并且同一功能壳在不冲突的情况下,可以部署一个或多个功能,下文为便于描述,将以一个功能部署于一个功能壳为例进行说明。It should be noted that (1) the structure of the functional shell shown in FIG. 3 and FIG. 4 in the present application is only an example, and the embodiment of the present application does not limit the structure of the functional shell that realizes the same function, for example, a fill light The structure of the functional shell also includes: a case around the shell is provided with a fill light. The embodiments of the present application do not limit the structure of the functional shell capable of realizing the same function. (2) The names of the above functional shells are only examples for convenience of description. In different scenarios, the names of these functional shells may remain unchanged, or may be replaced by other names, which are not limited in this application. (3) The types of the above functional classes are only examples, and the embodiments of the present application do not limit the types of functional shells. For example, it may also include other functional shells, such as a protective shell with functions such as monitoring heart rate or sleep state in the future. The example does not limit this. In addition, the same function shell can deploy one or more functions under the condition that there is no conflict. For the convenience of description below, one function is deployed in one function shell as an example for description.
目前,功能壳可以消耗电量为用户提供服务,为功能壳充电技术为保障功能壳功能的正常运行起到关键作用。随着手机无线反向充电技术的发展,手机可以通过无线反向充电技术为功能壳充电,即手机作为Tx(发送)设备,功能壳作为Rx(接收)设备,手机为功能壳反向供电。At present, the functional shell can consume power to provide services for users, and the charging technology for the functional shell plays a key role in ensuring the normal operation of the functional shell. With the development of wireless reverse charging technology for mobile phones, the mobile phone can charge the functional shell through the wireless reverse charging technology, that is, the mobile phone acts as a Tx (transmitting) device, the functional shell acts as an Rx (receiving) device, and the mobile phone provides reverse power for the functional shell.
下面结合具体的附图对本申请实施例提供的充电方法进行详细介绍。The charging method provided by the embodiments of the present application will be described in detail below with reference to the specific drawings.
参见图5a,为本申请实施例提供的一种充电方法所对应的流程示意图。如图5a所示,该流程包括:Referring to FIG. 5a , a schematic flowchart corresponding to a charging method provided by an embodiment of the present application is shown. As shown in Figure 5a, the process includes:
步骤501:电子设备检测到壳体装置时,确定电子设备所关联的至少一个应用程序。Step 501: When the electronic device detects the housing device, determine at least one application program associated with the electronic device.
以电子设备为手机,壳体装置为功能壳为例进行说明。Take the electronic device as a mobile phone and the case device as a functional case as an example for description.
由于功能壳的类型有多种,在本申请实施例通过类型标识来区分不同类型的功能壳,不同类型的功能壳具有不同的类型标识,例如,补光灯功能壳的类型标识为01,游戏功能壳的类型标识为02。功能壳内预设有其类型对应的类型标识。在一个示例中,该类型标识会被写入到功能壳的RX IC(芯片)内部,后续RX IC可以将该类型标识发送给手机。Since there are many types of functional shells, in this embodiment of the present application, different types of functional shells are distinguished by type identification, and different types of functional shells have different type identifications. The type identifier of the functional shell is 02. A type identifier corresponding to its type is preset in the function shell. In one example, the type identification will be written into the RX IC (chip) of the functional shell, and the subsequent RX IC can send the type identification to the mobile phone.
在本申请中,可以预设功能壳的类型标识和应用程序的对应关系(记为第一预设对应关系),在一个示例中,手机在检测到功能壳时,可以获取该功能壳的类型标识,根据该第一预设对应关系和获取到的功能壳的类型标识确定该功能壳所关联的至少一个应用程序。In this application, the corresponding relationship between the type identifier of the functional shell and the application program can be preset (referred to as the first preset corresponding relationship). In an example, when the mobile phone detects the functional shell, it can obtain the type of the functional shell. identification, at least one application program associated with the function shell is determined according to the first preset corresponding relationship and the acquired type identification of the function shell.
示例性地,当手机检测到功能壳,也可以理解为当手机戴上功能壳时,手机获取一次功能壳的类型标识。例如,手机可以通过接触传感器或霍尔磁传感器等方式检测佩戴上功能壳,当检测到功能壳后,开启无线反向充电,通过无线反向充电技术获取功能壳的类型标识;获取到功能壳的类型标识后,关闭无线反向充电。Exemplarily, when the mobile phone detects the functional shell, it can also be understood that when the mobile phone wears the functional shell, the mobile phone obtains the type identification of the functional shell once. For example, the mobile phone can detect the wearing of the functional shell through contact sensors or Hall magnetic sensors. When the functional shell is detected, wireless reverse charging is turned on, and the type identification of the functional shell is obtained through the wireless reverse charging technology; the functional shell is obtained. After the type is identified, turn off wireless reverse charging.
在一种可实施方式中,手机开启无线反向充电后,会尝试与周围支持无线充电的装置进行握手,功能壳可以在握手过程中将功能壳自身的类型标识发送给手机。示例性地,握手过程包括:手机发送第一报文,该第一报文用于请求功能壳的类型标识,功能壳接收到第一报文后,向手机发送第二报文,该第二报文包含功能壳自身的类型标识。In an embodiment, after the mobile phone turns on wireless reverse charging, it will try to shake hands with surrounding devices that support wireless charging, and the functional shell can send the type identifier of the functional shell itself to the mobile phone during the handshake process. Exemplarily, the handshake process includes: the mobile phone sends a first message, the first message is used to request the type identification of the functional shell, after the functional shell receives the first message, it sends a second message to the mobile phone, the second message is The message contains the type identifier of the function shell itself.
在另一种可实施的方式中,可预先定义不同类型的壳体装置发送的报文使用不同的资源,比如不同的频域资源或不同的信道,通过壳体装置发送的报文所使用的资源,电子设备(如手机)可确定出该壳体装置的类型。具体地,预设不同功能壳的类型标识与该功能壳发送第二报文的资源的对应关系(记为第二预设对应关系),即不同类型的功能壳使用 不同的资源发送第二报文,如此终端设备便可以根据该第二预设对应关系和承载第二报文的资源,确定发送该第二报文的功能壳的类型标识。In another implementable manner, it may be pre-defined that messages sent by different types of housing devices use different resources, such as different frequency domain resources or different channels, and the messages sent by the housing devices use different resources. resource, an electronic device (such as a cell phone) can determine the type of the housing device. Specifically, preset the correspondence between the type identifiers of different functional shells and the resources used by the functional shell to send the second message (referred to as the second preset correspondence), that is, different types of functional shells use different resources to send the second message. In this way, the terminal device can determine the type identifier of the function shell that sends the second message according to the second preset corresponding relationship and the resource carrying the second message.
应理解,上述确定功能壳的类型标识的方式仅为举例,本申请实施例对确定功能壳的类型标识的方式不作限定,例如,还可以通过蓝牙、Wi-Fi等通信方式交互功能壳的类型标识,或者还可以通过检测到功能壳的传感器所在的不同的位置来确定功能壳的类型标识,本申请实施例对此不作限定。It should be understood that the above method of determining the type identification of the functional shell is only an example, and the embodiment of the present application does not limit the method of determining the type identification of the functional shell. identification, or the type identification of the functional shell may also be determined by detecting different positions where the sensors of the functional shell are located, which is not limited in this embodiment of the present application.
需要说明的是,手机可以是在检测到从未佩戴功能壳到检测到佩戴上功能壳时,获取一次功能壳的类型标识,例如,若是传感器检测,则手机是在该传感器产生信号变化,且变化后的信号为检测到功能壳后触发获取功能壳的类型标识,若后续该手机保持佩戴该功能壳,则不需要重复获取该功能壳的类型标识。例如,通过接触传感器检测是否佩戴功能壳时,在检测到佩戴上功能壳时,获取一次功能壳的类型标识,在持续佩戴功能壳的过程中不需要再次获取功能壳的类型标识,后续,当该传感器检测到脱离功能壳后,若再次检测到功能壳后,才触发再次获取功能壳的类型标识,应理解,两次检测到的功能壳可以是同一功能壳也可以是不同的功能壳,本申请实施例对此不作限定。It should be noted that the mobile phone can obtain the type identification of the functional shell once when it detects that the functional shell is not worn until it detects that the functional shell is worn. The changed signal is to trigger the acquisition of the type identification of the functional shell after the detection of the functional shell. If the mobile phone keeps wearing the functional shell subsequently, there is no need to repeatedly acquire the type identification of the functional shell. For example, when the contact sensor detects whether or not the functional shell is worn, when it is detected that the functional shell is worn, the type identification of the functional shell is obtained once, and the type identification of the functional shell does not need to be obtained again in the process of continuously wearing the functional shell. After the sensor detects that it is detached from the functional shell, if the functional shell is detected again, it will trigger the acquisition of the type identification of the functional shell again. It should be understood that the functional shells detected twice can be the same functional shell or different functional shells. This embodiment of the present application does not limit this.
如上介绍了确定功能壳的类型标识的过程,后续,电子设备可以根据第一预设对应关系和壳体装置的类型标识,确定壳体装置关联的至少一个应用。The process of determining the type identifier of the functional housing is described above. Subsequently, the electronic device may determine at least one application associated with the housing device according to the first preset correspondence and the type identifier of the housing device.
仍以手机和功能壳为例,手机内保存有第一预设对应关系,该第一预设对应关系定义了至少一个类型标识与至少一个类型标识中的每一个类型标识对应的至少一个应用程序的对应关系,示例性地,该第一预设对应关系中可以包含应用程序的名称或应用程序的类型,如下表1所示,为本申请实施例提供的一种第一预设对应关系的示意。Still taking a mobile phone and a functional case as an example, a first preset correspondence is stored in the mobile phone, and the first preset correspondence defines at least one application program corresponding to at least one type identifier and each type identifier of the at least one type identifier. For example, the first preset corresponding relationship may include the name of the application or the type of the application. As shown in Table 1 below, the first preset corresponding relationship provided by the embodiment of the present application signal.
表1Table 1
类型标识Type ID 应用程序application
0101 相机、美颜相机camera, beauty camera
0202 王者荣耀、和平精英King of Glory, Peace Elite
……... ……...
其中,表1所示的应用程序可以包括电子设备上已安装的应用程序和/或未安装的应用程序,本申请实施例对此不作限定。The application program shown in Table 1 may include an installed application program and/or an uninstalled application program on the electronic device, which is not limited in this embodiment of the present application.
如下表2所示,为本申请实施例提供的另一种第一预设对应关系的示意。As shown in Table 2 below, another schematic diagram of the first preset correspondence provided by the embodiment of the present application.
表2Table 2
类型标识Type ID 应用程序application
0101 相机类camera class
0202 游戏类games
……... ……...
应理解,应用程序内会记录该应用程序所属的类别,例如王者荣耀、和平精英等属于游戏类,美颜相机、相机等属于相机类。也就是说,本申请实施例中第一预设对应关系中同一类型标识所对应的应用程序可以是一个或多个,本申请实施例对此不作限定。It should be understood that the category to which the application belongs will be recorded in the application, for example, the Honor of Kings, Peace Elite, etc. belong to the game category, and beauty cameras, cameras, etc. belong to the camera category. That is to say, in the embodiment of the present application, there may be one or more application programs corresponding to the same type identifier in the first preset correspondence relationship, which is not limited in the embodiment of the present application.
需要说明的是,上述功能壳的类型标识仅为举例,本申请实施例对功能壳的类型标识的表现形式不作限定,例如可以包含但不限于下列中的一项或多项:数字、字母或符号。另外,功能壳的类型标识的比特位数也不做限定。It should be noted that the above-mentioned type identification of the functional shell is only an example, and the embodiment of the present application does not limit the expression form of the type identification of the functional shell, for example, it may include but not be limited to one or more of the following: numbers, letters or symbol. In addition, the number of bits of the type identifier of the functional shell is also not limited.
手机在步骤501获取到功能壳的类型标识后,根据预设对应关系和获取的该类型标识, 确定该功能壳对应的至少一个应用程序,即第一预设对应关系中功能壳的类型标识所对应的至少一个应用程序。After acquiring the type identifier of the functional shell in step 501, the mobile phone determines at least one application program corresponding to the functional shell according to the preset corresponding relationship and the acquired type identification, that is, the type identifier of the functional shell in the first preset corresponding relationship. corresponding at least one application.
步骤502:电子设备在检测到目标应用程序被开启时,对壳体装置进行充电。Step 502: The electronic device charges the casing device when detecting that the target application program is opened.
继续以手机和功能壳为例,手机检测到所佩戴的功能壳对应的一个或多个应用程序中的一个应用程序被开启时,对功能壳进行充电。该目标应用程序即为步骤501中确定的功能壳对应的至少一个应用程序中的任意一个应用程序。应理解的是,在开启目标应用程序时,可以由用户手动开启功能壳的功能开关,也可以自动开启,例如,默认开启目标应用程序时,开启功能壳的功能开关,本申请实施例对此不作限定。Continuing to take the mobile phone and the functional case as an example, when the mobile phone detects that one of the one or more application programs corresponding to the functional case being worn is opened, the mobile phone charges the functional case. The target application program is any one of the at least one application program corresponding to the functional shell determined in step 501 . It should be understood that, when opening the target application, the user can manually turn on the function switch of the function shell, or it can be automatically turned on. For example, when the target application is opened by default, the function switch of the function shell is turned on. Not limited.
具体的,电子设备对壳体装置进行充电时,可以通过无线反向充电为壳体装置进行充电,示例性地,当电子设备检测到目标应用程序被开启时,打开无线反向充电功能的开关,通过无线反向充电为壳体装置进行充电。Specifically, when the electronic device charges the housing device, it can charge the housing device through wireless reverse charging. Exemplarily, when the electronic device detects that the target application is opened, the switch of the wireless reverse charging function is turned on. , charges the housing device through wireless reverse charging.
对于为功能壳进行充电的过程,在一种可实施的方式中,在检测到目标应用程序被开启时,终端设备可以自动开启无线反向充电开关,参见图5b所示,为无线反向充电开关被开启的界面示意图,在该界面中还可以显示终端设备的名称、终端设备通过无线反向充电协议扫描到的设备、配对(充电)过的设备。需要说明的是,图5b仅为示意,实际产品实践上,可以显示比图5b所示的界面更多或更少的内容,本申请实施例对此不做限定。For the process of charging the functional shell, in an implementable manner, when it is detected that the target application is opened, the terminal device can automatically turn on the wireless reverse charging switch, as shown in Figure 5b, for wireless reverse charging A schematic diagram of the interface when the switch is turned on, in which the name of the terminal device, the device scanned by the terminal device through the wireless reverse charging protocol, and the paired (charged) device can also be displayed. It should be noted that FIG. 5 b is only for illustration, and in practice, an actual product may display more or less content than the interface shown in FIG. 5 b , which is not limited in this embodiment of the present application.
在另一种可实施的方式中,在检测到目标应用程序被开启时,终端设备可以显示弹窗,通知用户可以为功能壳充电,若用户选中确定按键,则打开无线反向充电开关,若用户选中取消按键,则保持无线反向充电开关关闭。以补光灯功能壳为例,参见图5c所示,检测到用户开启相机(参见界面100),启动相机应用(参见界面101),显示弹窗,询问用户是否为功能壳充电(参见界面102),若用户选中确定按键,则打开无线反向充电开关(开启无线反向充电开关的界面可参加图5b),若用户选中取消按键,则保持无线反向充电开关关闭,不对功能壳进行充电。可选的,该弹窗还可以显示其他信息,例如,为功能壳充电的时长,该时长是指在开启无线反向充电开关后,持续为功能壳充电的时长,达到该时长则终端设备关闭无线反向充电开关。In another implementation manner, when it is detected that the target application program is opened, the terminal device can display a pop-up window to notify the user that the functional shell can be charged. If the user selects the OK button, the wireless reverse charging switch is turned on. The user selects the cancel button to keep the wireless reverse charging switch off. Taking the fill light function case as an example, as shown in Figure 5c, it is detected that the user has turned on the camera (refer to interface 100), the camera application is started (refer to interface 101), and a pop-up window is displayed, asking the user whether to charge the function case (refer to interface 102). ), if the user selects the OK button, the wireless reverse charging switch is turned on (see Figure 5b for the interface of turning on the wireless reverse charging switch), if the user selects the cancel button, the wireless reverse charging switch is kept off, and the functional shell is not charged . Optionally, the pop-up window can also display other information, for example, the duration of charging the functional shell, which refers to the duration of continuously charging the functional shell after the wireless reverse charging switch is turned on, and the terminal device is turned off when the duration is reached. Wireless reverse charging switch.
在一种可能的示例中,若第一目标应用程序在运行状态时,若第二目标应用程序被开启,由于无线反向充电功能开关为开启状态,则无须重复开启该无线反向充电功能开关,其中,第一目标应用程序为该功能壳对应的至少一个应用程序中的一个应用程序,第二目标应用程序为除该功能壳对应的至少一个应用程序中,除第一目标应用程序之外的其余任意一个应用程序。其中,第一目标应用程序处于运行状态也可以包括在后台运行的状态,当在后台清除第一目标应用程序时,该第一目标应用程序被关闭。若第一目标应用程序在手机前端或后台被关闭时,再次检测到第二目标应用程序被开启,且当前未向功能壳充电时,则可以再次对功能壳进行充电。In a possible example, if the first target application is running, if the second target application is turned on, since the wireless reverse charging function switch is turned on, it is not necessary to repeatedly turn on the wireless reverse charging function switch , where the first target application is one of at least one application corresponding to the function shell, and the second target application is at least one application other than the first target application in the at least one application corresponding to the function shell any of the remaining applications. Wherein, the running state of the first target application may also include a state of running in the background. When the first target application is cleared in the background, the first target application is closed. If the first target application program is closed at the front end or the background of the mobile phone, it is detected again that the second target application program is opened, and the function case is not currently charged, the function case can be charged again.
需要说明的是,上述对功能壳进行充电的方式仅为举例,例如还可以通过有线方式对壳体装置进行充电,本申请实施例对电子设备对壳体装置进行充电的方式不做限定。It should be noted that the above method of charging the functional case is only an example, for example, the case device may also be charged in a wired manner, and the embodiment of the present application does not limit the manner in which the electronic device charges the case device.
可选地,当电子设备在检测到满足停止充电条件后,停止对壳体装置进行充电;示例性地,停止充电条件包括但不限于下列中的任意一种:目标应用程序被关闭;电子设备的电量低于第一设定值;壳体装置的电量不低于第二设定值;检测到壳体装置脱离电子设备。Optionally, after detecting that the charging stop condition is satisfied, the electronic device stops charging the housing device; exemplarily, the charging stop condition includes but is not limited to any one of the following: the target application is closed; the electronic device The power of the housing device is lower than the first set value; the power of the housing device is not lower than the second set value; it is detected that the housing device is separated from the electronic device.
示例性地,停止充电条件为目标应用程序被关闭,则当手机检测到目标应用程序被关闭,手机关闭无线反向充电开关,停止为功能壳充电。再示例性地,停止充电条件为电子 设备自身的电量低于第一设定值,例如第一设定值为电池总电量的20%,当手机检测到自身剩余电池电量低于总电量的20%,关闭无线反向充电开关,停止为功能壳充电。又示例性地,停止充电条件为功能壳的电量不低于第二设定值,当手机监测到功能壳的电量不低于第二设定值,例如,第二设定值为功能壳总电量的90%,手机关闭无线反向充电开关,停止为功能壳充电。在一个示例中,手机检测到目标应用程序被开闭时,若功能壳的总电量低于90%,则可以继续为功能充电,直到功能壳的电量不低于90%便可停止为功能壳充电。再示例性地,停止充电条件为检测到壳体装置脱离电子设备,当手机检测到功能壳脱离时,关闭无线反向充电开关,停止为功能壳充电。Exemplarily, the charging stop condition is that the target application is closed, then when the mobile phone detects that the target application is closed, the mobile phone turns off the wireless reverse charging switch and stops charging the functional case. For another example, the condition for stopping charging is that the power of the electronic device itself is lower than the first set value, for example, the first set value is 20% of the total battery power. When the mobile phone detects that its remaining battery power is lower than 20% of the total power %, turn off the wireless reverse charging switch to stop charging the functional case. Also exemplarily, the charging stop condition is that the power of the functional shell is not lower than the second set value, and when the mobile phone detects that the power of the functional shell is not lower than the second set value, for example, the second set value is the total power of the functional shell. At 90% of the power, the phone turns off the wireless reverse charging switch and stops charging the functional case. In one example, when the mobile phone detects that the target application is opened or closed, if the total power of the functional shell is lower than 90%, it can continue to charge the function, and stop charging the functional shell until the power of the functional shell is not lower than 90%. Charge. For another example, the condition for stopping the charging is to detect that the casing device is detached from the electronic device, and when the mobile phone detects that the functional casing is detached, the wireless reverse charging switch is turned off to stop charging the functional casing.
需要说明的是,上述仅为举例,上述停止充电条件可以是上述中的一项或多项,本申请实施例对此不作限定。例如,停止充电条件还可以是电子设备的电量低于第一设定值,或/且壳体装置的电量不低于第二设定值。又例如,停止充电条件包括目标应用程序被关闭,或/且壳体装置的电量不低于第二设定值。在一个示例中,停止充电条件包括目标应用程序被关闭,且壳体装置的电量不低于第二设定值,假设第二设定值为80%,示例性地,手机检测到功能壳的电量不低于80%,且目标应用程序未被关闭时,可以继续为功能壳进行充电;再示例性地,当检测到目标应用程序被关闭,且功能壳的电量低于80%,也可以继续为功能壳进行充电;当监测到目标应用程序被关闭,且功能壳的电量不低于80%时,关闭无线反向充电开关,停止为功能壳充电。下面结合具体的实施例对本申请技术方案进行详细说明。It should be noted that the above is only an example, and the above charging stop condition may be one or more of the above, which is not limited in the embodiments of the present application. For example, the charging stop condition may also be that the power of the electronic device is lower than the first set value, or/and the power of the housing device is not lower than the second set value. For another example, the charging stop condition includes that the target application program is closed, or/and the power of the housing device is not lower than the second set value. In one example, the charging stop condition includes that the target application program is closed, and the power of the housing device is not lower than the second set value, assuming that the second set value is 80%. When the power is not lower than 80% and the target application is not closed, the functional shell can continue to be charged; for another example, when it is detected that the target application is closed and the power of the functional shell is lower than 80%, the functional shell can also be charged. Continue to charge the functional shell; when it is detected that the target application is closed and the power of the functional shell is not lower than 80%, turn off the wireless reverse charging switch and stop charging the functional shell. The technical solutions of the present application will be described in detail below with reference to specific embodiments.
参见图6,为本申请实施例一的流程示意图,在实施例一种,将以电子设备为手机,壳体装置为与手机型号配套的补光灯功能壳为例进行说明。如图6所示,该流程包括如下步骤:Referring to FIG. 6 , which is a schematic flowchart of Embodiment 1 of the present application, in Embodiment 1, the electronic device is a mobile phone, and the casing device is a fill light function casing matched with the mobile phone model as an example for description. As shown in Figure 6, the process includes the following steps:
步骤601:手机检测到戴上功能壳。Step 601: The mobile phone detects that the functional case is worn.
步骤602:手机开启无线方向充电开关,获取功能壳的类型标识。Step 602: The mobile phone turns on the wireless direction charging switch, and obtains the type identifier of the functional shell.
步骤603:手机关闭无线反向充电开关。Step 603: The mobile phone turns off the wireless reverse charging switch.
在一种可实施的方式中,手机确定获取到功能壳的类型标识后,关闭无线反向充电开关。在另一种可实施的方式中,手机开启无线反向充电开关,持续预设时间后关闭无线反向充电开关。例如,手机开启无线反向充电开关,在10ms后关闭无线反向充电开关,即无线反向充电开关的关闭不依据手机是否获取到功能壳的类型标识。应理解的是,该预设时间应至少为手机获取功能壳类型标识所需的最短时间。In an implementable manner, the mobile phone turns off the wireless reverse charging switch after determining to acquire the type identification of the functional case. In another implementation manner, the mobile phone turns on the wireless reverse charging switch, and turns off the wireless reverse charging switch after a preset time. For example, the mobile phone turns on the wireless reverse charging switch, and turns off the wireless reverse charging switch after 10ms, that is, the turning off of the wireless reverse charging switch does not depend on whether the mobile phone obtains the type identification of the functional shell. It should be understood that the preset time should be at least the shortest time required for the mobile phone to obtain the type identification of the functional case.
步骤604a:若功能壳的类型标识为1,则根据第一预设对应关系确定该功能壳的类型标识(ID=1)对应的至少一个应用程序。 Step 604a: If the type identifier of the function shell is 1, determine at least one application program corresponding to the type identifier (ID=1) of the function shell according to the first preset corresponding relationship.
假设第一预设对应关系为表1,功能壳的类型标识为01,并可以确定该功能壳为补光灯功能壳,根据表1确定补光灯功能壳对应的至少一个应用程序包括相机、美颜相机等应用。Assuming that the first preset corresponding relationship is Table 1, the type identifier of the function shell is 01, and it can be determined that the function shell is a fill light function shell, and it is determined according to Table 1 that at least one application program corresponding to the fill light function shell includes cameras, Beauty Camera and other applications.
步骤605a:手机检测到目标应用程序被开启时,对补光灯功能壳进行充电。 Step 605a: When the mobile phone detects that the target application program is opened, it charges the function case of the fill light.
在一种可实现的场景中,用户开启手机中的相机,同时开启补光灯功能壳的功能开关,为用户补光,当手机检测到相机被启动时,打开无线方向充电开关,对补光灯功能壳进行充电。In an achievable scenario, the user turns on the camera in the mobile phone, and at the same time turns on the function switch of the fill light function shell to fill light for the user. The lamp function shell is charged.
需要说明的是,上述用户开启补光灯功能壳的功能开关还可以由手机控制功能壳来实现,例如,手机向功能壳发送指示信息,指示功能壳打开补光灯。本申请实施例对此不作 限定。It should be noted that the above-mentioned function switch for the user to turn on the fill light function shell can also be realized by the mobile phone controlling the function shell. For example, the mobile phone sends instruction information to the function shell, instructing the function shell to turn on the fill light light. This embodiment of the present application does not limit this.
在另一种可实现的场景中,若用户开启相机后,未开启功能壳的补光灯,则手机也可以为功能壳进行充电,或者手机在检测目标应用程序中的一个应用程序,例如相机被开启后,可以通过光感传输器检测功能壳是否打开补光灯,若功能壳开启补光灯,则对功能壳进行充电,若功能壳未开启补光灯,则不对功能壳进行充电。In another achievable scenario, if the user turns on the camera but does not turn on the fill light of the functional shell, the mobile phone can also charge the functional shell, or the mobile phone can detect an application in the target application, such as the camera After being turned on, it can be detected by the light sensor transmitter whether the fill light is turned on in the function shell. If the fill light is turned on in the function shell, the function shell is charged. If the fill light in the function shell is not turned on, the function shell is not charged.
步骤606a:手机确定目标应用程序被关闭后,停止对功能壳充电。 Step 606a: After the mobile phone determines that the target application is closed, it stops charging the function case.
停止充电条件可以参见上文所述,此处不再赘述。若手机通过无线反向充电为功能壳进行充电的,则在确定满足停止充电条件后,关闭无线反向充电开关,停止对功能壳进行充电。应理解,步骤606a是停止充电条件为目标应用程序被关闭为例示出的,但本申请实施例对停止充电条件并不限定。The conditions for stopping charging can be referred to the above, and will not be repeated here. If the mobile phone charges the functional case through wireless reverse charging, after it is determined that the conditions for stopping charging are met, the wireless reverse charging switch is turned off to stop charging the functional case. It should be understood that step 606a is shown as an example where the charging stop condition is that the target application is closed, but the embodiment of the present application does not limit the charging stop condition.
步骤604b:若功能壳的类型标识为2,则根据第一预设对应关系确定该功能壳的类型标识(ID=1)对应的至少一个应用程序。 Step 604b: If the type identifier of the function shell is 2, determine at least one application program corresponding to the type identifier (ID=1) of the function shell according to the first preset correspondence.
假设第一预设对应关系为表1,功能壳的类型标识为02,并可以确定该功能壳为游戏功能壳,根据表1确定补光灯功能壳对应的至少一个应用程序包括王者荣耀等应用。Assuming that the first preset corresponding relationship is Table 1, the type of the functional shell is identified as 02, and it can be determined that the functional shell is a game functional shell. According to Table 1, it is determined that at least one application program corresponding to the fill light functional shell includes applications such as King of Glory and other applications. .
步骤605b:手机检测到目标应用程序被开启时,对补光灯功能壳进行充电。 Step 605b: When the mobile phone detects that the target application program is opened, it charges the function case of the fill light.
示例性地,当手机检测到王者荣耀被启动时,打开无线方向充电开关,对游戏功能壳进行充电。Exemplarily, when the mobile phone detects that the Honor of Kings is activated, the wireless direction charging switch is turned on to charge the game functional shell.
步骤606a:手机确定目标应用程序被关闭后,停止对功能壳充电。 Step 606a: After the mobile phone determines that the target application is closed, it stops charging the function case.
上述本申请提供的实施例中,从电子设备作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,电子设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。In the above-mentioned embodiments of the present application, the methods provided by the embodiments of the present application are introduced from the perspective of an electronic device as an execution subject. In order to implement the functions in the methods provided by the above embodiments of the present application, the electronic device may include a hardware structure and/or software modules, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is performed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
基于以上实施例以及相同构思,图7为本申请实施例提供的电子设备的示意图,如图7所示,该电子设备700可以为芯片或电路,比如可设置于电子设备的芯片或电路。Based on the above embodiments and the same concept, FIG. 7 is a schematic diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 7 , the electronic device 700 may be a chip or a circuit, such as a chip or circuit that can be provided in an electronic device.
如图7所示,该电子设备700可以包括检测单元701、通信单元702、处理单元703和充电单元704。其中,通信单元702还可以包括发送单元和接收单元。As shown in FIG. 7 , the electronic device 700 may include a detection unit 701 , a communication unit 702 , a processing unit 703 and a charging unit 704 . Wherein, the communication unit 702 may further include a sending unit and a receiving unit.
在一个实施例中,处理单元703,用于在检测单元701检测到佩戴上壳体装置时,确定所述壳体装置关联的至少一个应用程序;所述壳体装置用于基于电能为用户提供辅助功能;In one embodiment, the processing unit 703 is configured to, when the detection unit 701 detects that the housing device is worn, determine at least one application program associated with the housing device; the housing device is configured to provide the user based on electrical energy auxiliary function;
充电单元704,用于在检测到第一应用程序被开启时,对所述壳体装置进行充电,所述第一应用程序为所述至少一个应用程序中的任意一个应用程序。The charging unit 704 is configured to charge the housing device when it is detected that a first application program is started, where the first application program is any one of the at least one application program.
在一种可选的设计中,所述处理单元703在确定所述壳体装置关联的至少一个应用程序时,具体用于获取所述壳体装置的类型标识;根据所述类型标识查询预设的类型标识与应用程序的对应关系信息,得到与所述类型标识对应的至少一个应用程序,其中,所述类型标识与应用程序的对应关系信息至少用于指示所述壳体装置的类型标识所对应的至少一个应用程序。In an optional design, when determining at least one application program associated with the housing device, the processing unit 703 is specifically configured to acquire the type identifier of the housing device; query presets according to the type identifier The corresponding relationship information between the type identifier and the application program is obtained, and at least one application program corresponding to the type identifier is obtained, wherein the correspondence relationship information between the type identifier and the application program is at least used to indicate the type identifier of the housing device. corresponding at least one application.
在一种可选的设计中,所述对应关系信息至少指示所述壳体装置的类型标识所对应的至少一个应用程序,包括:所述对应关系信息至少包括所述壳体装置的类型标识和所述类型标识对应的至少一个应用程序的名称;或者,所述对应关系信息至少包括所述壳体装置 的类型标识和所述类型标识对应的应用程序类型信息。In an optional design, the correspondence information at least indicates at least one application program corresponding to the type identifier of the housing device, including: the correspondence information includes at least the type identifier of the housing device and The name of at least one application program corresponding to the type identifier; or, the correspondence information includes at least the type identifier of the housing device and the application program type information corresponding to the type identifier.
在一种可选的设计中,发送单元,用于向所述壳体装置发送第一报文;接收单元,用于接收来自所述壳体装置的携带所述壳体装置的类型标识的第二报文;处理单元703,用于获取所述第二报文携带的所述壳体装置的类型标识;或者,In an optional design, the sending unit is configured to send the first message to the housing device; the receiving unit is configured to receive the first message from the housing device that carries the type identifier of the housing device two packets; a processing unit 703, configured to acquire the type identifier of the housing device carried by the second packet; or,
发送单元,用于向所述壳体装置发送第一报文;接收单元,用于接收来自所述壳体装置的第二报文;处理单元703,用于根据所述第二报文使用的资源查询预设的资源与壳体装置类型的对应关系信息,得到与所述第二报文使用的资源对应的壳体装置的类型标识,其中,所述资源与壳体装置类型的对应关系信息至少包括所述第二报文使用的资源指示信息以及对应的壳体装置的类型标识。A sending unit is used to send a first message to the housing device; a receiving unit is used to receive a second message from the housing device; a processing unit 703 is used to use a message according to the second message Resource query preset correspondence information between resources and housing device types, and obtain a type identifier of the housing device corresponding to the resource used by the second message, wherein the corresponding relationship information between the resource and the housing device type At least the resource indication information used by the second message and the type identifier of the corresponding housing device are included.
在一种可选的设计中,所述充电单元704还用于:在检测到满足停止充电条件后,停止对所述壳体装置进行充电;其中,所述停止充电条件包括下列中的任意一种:所述第一应用程序被关闭;所述电子设备的电量低于第一设定值;所述壳体装置的电量不低于第二设定值;所述电子设备检测到所述壳体装置脱离所述电子设备。In an optional design, the charging unit 704 is further configured to: stop charging the housing device after detecting that the charging stop condition is satisfied; wherein the charging stop condition includes any one of the following Type: the first application is closed; the power of the electronic device is lower than the first set value; the power of the housing device is not lower than the second set value; the electronic device detects that the shell The body device is detached from the electronic device.
在一种可选的设计中,所述充电单元704在对所述壳体装置进行充电时具体用于:开启无线反向充电功能,对所述壳体装置进行充电。In an optional design, when charging the housing device, the charging unit 704 is specifically configured to: enable the wireless reverse charging function to charge the housing device.
与上述构思相同,如图8所示,本申请提供一种电子设备800,该电子设备800可包括处理器801和存储器802。进一步的,该装置还可包括通信接口804,该通信接口可为收发器,或者该通信接口可为网卡。进一步的,该设备800还可包括总线系统803。Similar to the above concept, as shown in FIG. 8 , the present application provides an electronic device 800 , and the electronic device 800 may include a processor 801 and a memory 802 . Further, the apparatus may further include a communication interface 804, which may be a transceiver, or the communication interface may be a network card. Further, the device 800 may further include a bus system 803 .
其中,处理器801、存储器802和通信接口804可通过总线系统803相连,该存储器802可用存储指令,该处理器801可用于执行该存储器802存储的指令,以控制通信接口804接收或发送信号,完成上述图2所示方法中执行主体的步骤。Wherein, the processor 801, the memory 802 and the communication interface 804 can be connected through the bus system 803, the memory 802 can be used to store instructions, and the processor 801 can be used to execute the instructions stored in the memory 802 to control the communication interface 804 to receive or send signals, Complete the steps of executing the main body in the method shown in FIG. 2 above.
其中,存储器802可以集成在处理器801中,也可以是与处理器801不同的物理实体。The memory 802 may be integrated in the processor 801 , or may be a physical entity different from the processor 801 .
作为一种实现方式,通信接口804的功能可以考虑通过收发电路或收发的专用芯片实现。处理器801可以考虑通过专用处理芯片、处理电路、处理器或通用芯片实现。As an implementation manner, the function of the communication interface 804 can be considered to be implemented by a transceiver circuit or a dedicated chip for transceiver. The processor 801 can be considered to be implemented by a dedicated processing chip, a processing circuit, a processor or a general-purpose chip.
作为另一种实现方式,可以考虑使用计算机的方式,来实现本申请实施例提供的第一计算节点或第一计算节点的功能。即将实现处理器801和通信接口804功能的程序代码存储在存储器802中,通用处理器可通过执行存储器中的代码来实现处理器801和通信接口804的功能。As another implementation manner, a computer manner may be considered to implement the first computing node or the function of the first computing node provided by the embodiments of the present application. The program codes that will implement the functions of the processor 801 and the communication interface 804 are stored in the memory 802, and a general-purpose processor can implement the functions of the processor 801 and the communication interface 804 by executing the codes in the memory.
该设备800所涉及的与本申请提供的技术方案相关的概念、解释和详细说明以及其他步骤,可参见前述方法或其它实施例中关于这些内容的描述,此处不作赘述。Concepts, explanations, detailed descriptions and other steps involved in the device 800 related to the technical solutions provided in the present application can be referred to the descriptions of these contents in the foregoing methods or other embodiments, which will not be repeated here.
在本申请的一示例中,所述设备800可用于执行上述图5a或图6所示流程中,执行主体的步骤,具体请参见上述图5a或图6所示流程的介绍,在此不再赘述。In an example of the present application, the device 800 can be used to execute the steps of the main body in the process shown in FIG. 5a or FIG. 6 . For details, please refer to the introduction of the process shown in FIG. 5a or FIG. 6 , which is not repeated here. Repeat.
本申请实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在终端设备上运行时,使得终端设备执行上述相关方法步骤实现上述实施例中的方法。Embodiments of the present application further provide a computer storage medium, where computer instructions are stored in the computer storage medium, and when the computer instructions are executed on a terminal device, the terminal device executes the above-mentioned relevant method steps to implement the methods in the above-mentioned embodiments.
本申请实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的方法。Embodiments of the present application further provide a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the above-mentioned relevant steps, so as to implement the methods in the above-mentioned embodiments.
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的方 法。In addition, the embodiments of the present application also provide an apparatus, which may specifically be a chip, a component or a module, and the apparatus may include a connected processor and a memory; wherein, the memory is used for storing computer execution instructions, and when the apparatus is running, The processor can execute the computer-executed instructions stored in the memory, so that the chip executes the methods in the foregoing method embodiments.
其中,本申请实施例提供的终端设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。The terminal equipment, computer storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, for the beneficial effects that can be achieved, reference may be made to the corresponding methods provided above. The beneficial effects of the method are not repeated here.
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。From the description of the above embodiments, those skilled in the art can understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated by different The function module is completed, that is, the internal structure of the device is divided into different function modules, so as to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其他的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以丢弃,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其他的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or It may be integrated into another device, or some features may be discarded, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。Units described as separate components may or may not be physically separated, and components shown as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, which are stored in a storage medium , including several instructions to make a device (which may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above content is only a specific embodiment of the present application, but the protection scope of the present application is not limited to this. Covered within the scope of protection of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (14)

  1. 一种充电方法,其特征在于,包括:A charging method, comprising:
    电子设备检测到佩戴上壳体装置时,确定所述壳体装置关联的至少一个应用程序;所述壳体装置用于基于电能为用户提供辅助功能;When the electronic device detects that the housing device is worn, at least one application program associated with the housing device is determined; the housing device is used to provide an auxiliary function for the user based on electric energy;
    所述电子设备在检测到第一应用程序被开启时,对所述壳体装置进行充电,所述第一应用程序为所述至少一个应用程序中的任意一个应用程序。The electronic device charges the housing device when detecting that a first application program is opened, and the first application program is any one of the at least one application program.
  2. 如权利要求1所述的方法,其特征在于,确定所述壳体装置关联的至少一个应用程序,包括:The method of claim 1, wherein determining at least one application program associated with the housing device comprises:
    所述电子设备获取所述壳体装置的类型标识;The electronic device obtains the type identifier of the housing device;
    所述电子设备根据所述类型标识查询预设的类型标识与应用程序的对应关系信息,得到与所述类型标识对应的至少一个应用程序,其中,所述类型标识与应用程序的对应关系信息至少用于指示所述壳体装置的类型标识所对应的至少一个应用程序。The electronic device queries the preset correspondence information between the type identifier and the application program according to the type identifier, and obtains at least one application program corresponding to the type identifier, wherein the correspondence relationship information between the type identifier and the application program is at least It is used to indicate at least one application program corresponding to the type identifier of the housing device.
  3. 如权利要求2所述的方法,其特征在于,所述对应关系信息至少指示所述壳体装置的类型标识所对应的至少一个应用程序,包括:The method of claim 2, wherein the correspondence information at least indicates at least one application program corresponding to the type identifier of the housing device, comprising:
    所述对应关系信息至少包括所述壳体装置的类型标识和所述类型标识对应的至少一个应用程序的名称;或者,The correspondence information includes at least the type identifier of the housing device and the name of at least one application program corresponding to the type identifier; or,
    所述对应关系信息至少包括所述壳体装置的类型标识和所述类型标识对应的应用程序类型信息。The correspondence information includes at least a type identifier of the housing device and application type information corresponding to the type identifier.
  4. 如权利要求2或3所述的方法,其特征在于,所述电子设备获取所述壳体装置的类型标识,包括:The method according to claim 2 or 3, wherein the electronic device obtains the type identifier of the housing device, comprising:
    所述电子设备向所述壳体装置发送第一报文,接收来自所述壳体装置的携带所述壳体装置的类型标识的第二报文,并获取所述第二报文携带的所述壳体装置的类型标识;或者The electronic device sends a first message to the housing device, receives a second message from the housing device that carries the type identifier of the housing device, and obtains all the information carried by the second message. Type identification of the housing device; or
    所述电子设备向所述壳体装置发送第一报文,接收来自所述壳体装置的第二报文,并根据所述第二报文使用的资源查询预设的资源与壳体装置类型的对应关系信息,得到与所述第二报文使用的资源对应的壳体装置的类型标识,其中,所述资源与壳体装置类型的对应关系信息至少包括所述第二报文使用的资源指示信息以及对应的壳体装置的类型标识。The electronic device sends a first message to the housing device, receives a second message from the housing device, and queries the preset resource and housing device type according to the resource used by the second message to obtain the type identifier of the housing device corresponding to the resource used by the second message, wherein the correspondence relationship information between the resource and the housing device type includes at least the resource used by the second message. Indicative information and the type identification of the corresponding housing device.
  5. 如权利要求1-3任一项所述的方法,其特征在于,该方法还包括:The method according to any one of claims 1-3, wherein the method further comprises:
    所述电子设备在检测到满足停止充电条件后,停止对所述壳体装置进行充电;其中,所述停止充电条件包括下列中的任意一种:After detecting that the charging stop condition is satisfied, the electronic device stops charging the housing device; wherein the charging stop condition includes any one of the following:
    所述第一应用程序被关闭;the first application is closed;
    所述电子设备的电量低于第一设定值;The power of the electronic device is lower than the first set value;
    所述壳体装置的电量不低于第二设定值;The power of the housing device is not lower than the second set value;
    所述电子设备检测到所述壳体装置脱离所述电子设备。The electronic device detects that the housing means is detached from the electronic device.
  6. 如权利要求1-3任一项所述的方法,其特征在于,所述电子设备对所述壳体装置进行充电,包括:The method according to any one of claims 1-3, wherein charging the housing device by the electronic device comprises:
    所述电子设备开启无线反向充电功能,对所述壳体装置进行充电。The electronic device enables the wireless reverse charging function to charge the housing device.
  7. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    处理单元,用于在检测单元检测到佩戴上壳体装置时,确定所述壳体装置关联的至少一个应用程序;所述壳体装置用于基于电能为用户提供辅助功能;a processing unit, configured to determine at least one application program associated with the housing device when the detection unit detects that the housing device is worn; the housing device is configured to provide an auxiliary function for the user based on electrical energy;
    充电单元,用于在检测到第一应用程序被开启时,对所述壳体装置进行充电,所述第一应用程序为所述至少一个应用程序中的任意一个应用程序。A charging unit, configured to charge the housing device when it is detected that a first application program is started, where the first application program is any one of the at least one application program.
  8. 如权利要求7所述的电子设备,其特征在于,所述处理单元在确定所述壳体装置关联的至少一个应用程序,具体用于获取所述壳体装置的类型标识;根据所述类型标识查询预设的类型标识与应用程序的对应关系信息,得到与所述类型标识对应的至少一个应用程序,其中,所述类型标识与应用程序的对应关系信息至少用于指示所述壳体装置的类型标识所对应的至少一个应用程序。The electronic device according to claim 7, wherein the processing unit is determining at least one application program associated with the housing device, and is specifically configured to acquire a type identifier of the housing device; according to the type identifier Query the preset correspondence information between the type identifier and the application program, and obtain at least one application program corresponding to the type identifier, wherein the correspondence relationship information between the type identifier and the application program is at least used to indicate the housing device. At least one application corresponding to the type identifier.
  9. 如权利要求8所述的电子设备,其特征在于,所述对应关系信息至少指示所述壳体装置的类型标识所对应的至少一个应用程序,包括:The electronic device according to claim 8, wherein the correspondence information at least indicates at least one application program corresponding to the type identifier of the housing device, comprising:
    所述对应关系信息至少包括所述壳体装置的类型标识和所述类型标识对应的至少一个应用程序的名称;或者,The correspondence information includes at least the type identifier of the housing device and the name of at least one application program corresponding to the type identifier; or,
    所述对应关系信息至少包括所述壳体装置的类型标识和所述类型标识对应的应用程序类型信息。The correspondence information includes at least a type identifier of the housing device and application type information corresponding to the type identifier.
  10. 如权利要求8或9所述的电子设备,其特征在于,所述电子设备还包括通信单元;The electronic device according to claim 8 or 9, characterized in that, the electronic device further comprises a communication unit;
    所述处理单元在获取所述壳体装置的类型标识,具体用于:The processing unit is acquiring the type identifier of the housing device, and is specifically used for:
    控制通信单元向所述壳体装置发送第一报文,并接收来自所述壳体装置的携带所述壳体装置的类型标识的第二报文;获取所述第二报文携带的所述壳体装置的类型标识;或者Controlling the communication unit to send a first message to the housing device, and receiving a second message from the housing device that carries the type identifier of the housing device; acquiring the second message carried by the second message Type identification of the housing device; or
    控制通信单元向所述壳体装置发送第一报文,并接收来自所述壳体装置的第二报文;根据所述第二报文使用的资源查询预设的资源与壳体装置类型的对应关系信息,得到与所述第二报文使用的资源对应的壳体装置的类型标识,其中,所述资源与壳体装置类型的对应关系信息至少包括所述第二报文使用的资源指示信息以及对应的壳体装置的类型标识。Control the communication unit to send the first message to the housing device, and receive the second message from the housing device; query the preset resource and the housing device type according to the resource used by the second message Correspondence information to obtain the type identifier of the housing device corresponding to the resource used by the second message, wherein the correspondence relationship information between the resource and the housing device type includes at least the resource indication used by the second message. information and the type identification of the corresponding housing device.
  11. 如权利要求7-9任一项所述的电子设备,其特征在于,所述充电单元还用于:The electronic device according to any one of claims 7-9, wherein the charging unit is further used for:
    在检测到满足停止充电条件后,停止对所述壳体装置进行充电;其中,所述停止充电条件包括下列中的任意一种:所述第一应用程序被关闭;所述电子设备的电量低于第一设定值;所述壳体装置的电量不低于第二设定值;所述电子设备检测到所述壳体装置脱离所述电子设备。After detecting that the charging stop condition is satisfied, stop charging the housing device; wherein the charging stop condition includes any one of the following: the first application is closed; the power of the electronic device is low at the first set value; the power of the casing device is not lower than the second set value; the electronic device detects that the casing device is separated from the electronic device.
  12. 如权利要求7-9任一项所述的电子设备,其特征在于,所述充电单元在对所述壳体装置进行充电时具体用于:开启无线反向充电功能,对所述壳体装置进行充电。The electronic device according to any one of claims 7-9, wherein when charging the housing device, the charging unit is specifically used for: enabling a wireless reverse charging function, and charging the housing device to charge.
  13. 一种电子设备,其特征在于,所述装置包括处理器、存储器和通信接口;An electronic device, characterized in that the device comprises a processor, a memory and a communication interface;
    所述存储器,用于存储计算机程序或指令;the memory for storing computer programs or instructions;
    所述处理器,用于执行存储器中的计算机程序或指令,通过通信接口执行如权利要求1-6任一项所述的方法。The processor, for executing the computer program or instructions in the memory, executes the method according to any one of claims 1-6 through a communication interface.
  14. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1-6任一所述的方法。A computer-readable storage medium, characterized in that, the computer-readable storage medium comprises a computer program, when the computer program is run on an electronic device, the electronic device is made to perform any one of claims 1-6. method described.
PCT/CN2021/120557 2020-09-29 2021-09-26 Charging method and apparatus WO2022068708A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011050083.7A CN114363997A (en) 2020-09-29 2020-09-29 Charging method and device
CN202011050083.7 2020-09-29

Publications (1)

Publication Number Publication Date
WO2022068708A1 true WO2022068708A1 (en) 2022-04-07

Family

ID=80951179

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/120557 WO2022068708A1 (en) 2020-09-29 2021-09-26 Charging method and apparatus

Country Status (2)

Country Link
CN (1) CN114363997A (en)
WO (1) WO2022068708A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005236933A (en) * 2004-02-17 2005-09-02 Masatoshi Sugai Portable telephone set and electric torch for portable telephone set
CN204105138U (en) * 2014-03-17 2015-01-21 青岛华世基电子有限公司 A kind of cell-phone cover with luminous charge function
CN204442477U (en) * 2014-12-23 2015-07-01 许志胜 A kind of light filling cell-phone cover
CN206100145U (en) * 2016-09-30 2017-04-12 深圳欧尔佳科技有限公司 Mobile phone cover
CN206596031U (en) * 2016-12-08 2017-10-27 聂海辉 Mobile phone shell and the mobile phone including the mobile phone shell
DE202017005673U1 (en) * 2017-10-30 2017-11-17 Alessandro Piras Mobile Phone Case
CA2933572A1 (en) * 2016-06-20 2017-12-20 Zhu Xuan Dong Intelligent phone case that changes color using a mobile application and features custom led notification service
CN110535995A (en) * 2019-09-27 2019-12-03 深圳市皓阳电子有限公司 A kind of wireless reverse charging mobile phone shell

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116668855A (en) * 2019-05-30 2023-08-29 华为技术有限公司 Light supplementing control method, light supplementing lamp fitting and electronic equipment
CN111313500B (en) * 2020-03-16 2022-06-14 Oppo广东移动通信有限公司 Charging management method and device, electronic equipment and computer readable storage medium
CN111525645A (en) * 2020-04-30 2020-08-11 歌尔科技有限公司 Intelligent charging method, system and related equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005236933A (en) * 2004-02-17 2005-09-02 Masatoshi Sugai Portable telephone set and electric torch for portable telephone set
CN204105138U (en) * 2014-03-17 2015-01-21 青岛华世基电子有限公司 A kind of cell-phone cover with luminous charge function
CN204442477U (en) * 2014-12-23 2015-07-01 许志胜 A kind of light filling cell-phone cover
CA2933572A1 (en) * 2016-06-20 2017-12-20 Zhu Xuan Dong Intelligent phone case that changes color using a mobile application and features custom led notification service
CN206100145U (en) * 2016-09-30 2017-04-12 深圳欧尔佳科技有限公司 Mobile phone cover
CN206596031U (en) * 2016-12-08 2017-10-27 聂海辉 Mobile phone shell and the mobile phone including the mobile phone shell
DE202017005673U1 (en) * 2017-10-30 2017-11-17 Alessandro Piras Mobile Phone Case
CN110535995A (en) * 2019-09-27 2019-12-03 深圳市皓阳电子有限公司 A kind of wireless reverse charging mobile phone shell

Also Published As

Publication number Publication date
CN114363997A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
CN112351322B (en) Terminal device, method and system for realizing touch screen projection through remote controller
WO2020168965A1 (en) Method for controlling electronic device having folding screen, and electronic device
WO2020244623A1 (en) Air-mouse mode implementation method and related device
WO2020224449A1 (en) Split-screen display operation method and electronic device
WO2021063311A1 (en) Display control method for electronic device having foldable screen, and electronic device
WO2020168968A1 (en) Control method for electronic device having foldable screen, and electronic device
WO2021023046A1 (en) Electronic device control method and electronic device
WO2021043219A1 (en) Bluetooth reconnection method and related apparatus
WO2021043198A1 (en) Bluetooth pairing method, and related device
WO2020019355A1 (en) Touch control method for wearable device, and wearable device and system
WO2020062344A1 (en) Data transmission method and electronic device
WO2021208723A1 (en) Full-screen display method and apparatus, and electronic device
WO2022089000A1 (en) File system check method, electronic device, and computer readable storage medium
WO2022068539A1 (en) Communicational connection establishment method and system, electronic device, and storage medium
CN113676339B (en) Multicast method, device, terminal equipment and computer readable storage medium
WO2022037725A1 (en) System service recovery method and apparatus, and electronic device
WO2022100219A1 (en) Data transfer method and related device
WO2020078297A1 (en) Method for processing frozen screen, and terminal
WO2022048453A1 (en) Unlocking method and electronic device
CN112738794B (en) Network residing method, chip, mobile terminal and storage medium
WO2021043250A1 (en) Bluetooth communication method, and related device
CN114554012A (en) Incoming call answering method, electronic equipment and storage medium
CN115119336B (en) Earphone connection system, earphone connection method, earphone, electronic device and readable storage medium
WO2022068708A1 (en) Charging method and apparatus
CN115525366A (en) Screen projection method and related device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21874368

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21874368

Country of ref document: EP

Kind code of ref document: A1