Electronic equipment, control method and storage medium
By monitoring the data of the inertial sensor in electronic devices and adjusting the switching frequency of the charging chip, the problem of abnormal measurement data of the inertial sensor under charging state is solved, and a more stable shooting and gaming experience is achieved.
Patent Information
- Application Number
- CN202311323324.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-12
- Publication Date
- 2025-04-22
AI Technical Summary
In the state of charging of electronic devices, the measurement data of the inertial sensor may be disturbed by other modules, causing shooting or game screen to jitter.
By monitoring the measured data of the inertial sensor in the system chip, when the data is abnormal, the charging chip is instructed to adjust the switching frequency to avoid resonance with the natural frequency of the inertial sensor.
It effectively reduces the jitter phenomenon of shooting or game screens and improves the accuracy of measurement data of the inertial sensor.
Smart Images

Figure CN119865551A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to an electronic device, a control method and a storage medium. Background Art
[0002] Common electronic devices (such as smartphones, tablets, etc.) are usually equipped with inertial sensors (such as accelerometers, gyroscopes, etc.) to detect the motion state of the electronic device. When users use electronic devices to take pictures or play aiming and shooting games, the electronic devices can control the movement of the camera to perform optical compensation based on the measurement data of the inertial sensors to achieve optical image stabilization.
[0003] However, when the electronic device is in a charging state, if the user uses the electronic device to take pictures, or operates games such as aiming and shooting, the inertial sensor may be interfered with by other modules in the electronic device (such as a charging-related capacitor module), resulting in inaccurate measurement data of the inertial sensor, and further causing the shooting screen or game screen to shake. Summary of the invention
[0004] The embodiments of the present application provide an electronic device, a control method, and a storage medium, which make the measurement data of the inertial sensor more accurate and can reduce the jitter phenomenon of the shooting picture or the game picture.
[0005] In a first aspect, an embodiment of the present application provides an electronic device, comprising: a system chip, an inertial sensor, a charging chip and a battery module, the system chip being connected to the inertial sensor and the charging chip respectively, and the charging chip being connected to the battery module; the inertial sensor being configured to measure data related to a motion state of the electronic device; the system chip being configured to obtain measurement data of the inertial sensor when the inertial sensor is in a working state and the electronic device is in a charging state, and when the measurement data of the inertial sensor is abnormal, instructing the charging chip to adjust a switching frequency; the charging chip being configured to control charging of the battery module.
[0006] When the electronic device is in a charging state, the charging chip operates at a certain switching frequency, and the charging causes the circuit board to vibrate. When the vibration frequency of the circuit board is consistent with the natural frequency of the inertial sensor (the frequency in the free state), resonance occurs, which will cause the measurement data of the inertial sensor to be abnormal. In the above embodiment, if the system chip detects that the measurement data of the inertial sensor is abnormal, the switching frequency of the charging chip can be adjusted so that the vibration frequency of the circuit board caused by charging is inconsistent with the natural frequency of the inertial sensor, so that resonance does not occur, making the measurement of the inertial sensor more accurate.
[0007] In an optional embodiment of the first aspect, the electronic device further includes a capacitor module, and the capacitor module is connected to the charging chip.
[0008] Optionally, the capacitor module includes one or more capacitors (such as a flying capacitor CFLY).
[0009] In an optional embodiment of the first aspect, the inertial sensor includes an acceleration sensor and a gyroscope sensor, the acceleration sensor and the gyroscope sensor are arranged on an integrated chip, and both the acceleration sensor and the gyroscope sensor adopt a micro-electromechanical system structure. The acceleration sensor is configured to measure the acceleration of the electronic device in three axes; the gyroscope sensor is configured to measure the angular velocity of the electronic device rotating around the three axes.
[0010] In an optional embodiment of the first aspect, a dedicated integrated circuit and a first analog-to-digital converter are also provided on the integrated chip, the dedicated integrated circuit is connected to the first analog-to-digital converter, the dedicated integrated circuit is also connected to the system chip, and the first analog-to-digital converter is also connected to the inertial sensor; the first analog-to-digital converter is configured to receive measurement data from the inertial sensor, convert the measurement data of the inertial sensor into a digital signal, and transmit the digital signal to the dedicated integrated circuit; the dedicated integrated circuit is configured to transmit the digital signal to the system chip.
[0011] In the above embodiment, the measurement data of the inertial sensor is transmitted to the system chip via the first analog-to-digital converter and the ASIC in sequence, so that the system chip determines whether the measurement data of the inertial sensor is normal.
[0012] In an optional embodiment of the first aspect, the electronic device also includes a second analog-to-digital converter, and the charging chip is connected to the second analog-to-digital converter; the second analog-to-digital converter is configured to monitor the switching frequency of the charging chip and report the switching frequency of the charging chip to the system chip.
[0013] In the above embodiment, the system chip obtains the switching frequency of the charging chip from the second analog-to-digital converter.
[0014] In an optional embodiment of the first aspect, the charging chip includes a first charging chip, a second charging chip and a third charging chip, and the first charging chip and the second charging chip are connected; the system chip is configured to: in a first charging mode, control the first charging chip and / or the second charging chip to work; or, in a second charging mode, control the third charging chip to work.
[0015] The first charging mode may also be described as a fast charging mode, and the second charging mode may also be described as a normal charging mode or a slow charging mode.
[0016] In the above embodiment, the electronic device includes three charging chips, and the device supports fast charging or normal charging mode.
[0017] In an optional embodiment of the first aspect, the capacitor module of the electronic device includes a first capacitor module, a second capacitor module and a third capacitor module, the first capacitor module is connected to the first charging chip, the second capacitor module is connected to the second charging chip, and the third capacitor module is connected to the third charging chip.
[0018] In the above embodiments, each charging chip in the electronic device is externally connected to a capacitor module so that the charging chip can charge the battery module.
[0019] In an optional embodiment of the first aspect, the second analog-to-digital converter of the electronic device includes a third analog-to-digital converter, a fourth analog-to-digital converter and a fifth analog-to-digital converter; the third analog-to-digital converter is connected to the first charging chip, the fourth analog-to-digital converter is connected to the second charging chip, and the fifth analog-to-digital converter is connected to the third charging chip; the third analog-to-digital converter is configured to monitor the switching frequency of the first charging chip, and report the switching frequency of the first charging chip to the system chip; the fourth analog-to-digital converter is configured to monitor the switching frequency of the second charging chip, and report the switching frequency of the second charging chip to the system chip; the fifth analog-to-digital converter is configured to monitor the switching frequency of the third charging chip, and report the switching frequency of the third charging chip to the system chip.
[0020] In the above embodiment, each charging chip in the electronic device is externally connected to an analog-to-digital converter, and the system chip obtains the switching frequency of each charging chip from the analog-to-digital converter corresponding to each charging chip.
[0021] In a second aspect, an embodiment of the present application provides a control method, which is applied to an electronic device as in any one of the first aspect, the method comprising: at a first moment, the inertial sensor of the electronic device is in a working state, and the electronic device is in a charging state, the system chip of the electronic device obtains measurement data of the inertial sensor, and when the measurement data of the inertial sensor is abnormal, the system chip instructs the charging chip of the electronic device to adjust the switching frequency; at a second moment, the inertial sensor is not in a working state, and the electronic device is in a charging state, and the system chip controls the charging chip to operate at a preset switching frequency.
[0022] In the above embodiment, the system chip monitors the measurement data of the inertial sensor during charging. If the measurement data is abnormal, the system chip can adjust the switching frequency of the charging chip to prevent the inertial sensor from being disturbed by charging and causing inaccurate measurement data, thereby affecting related functions of the electronic device that relies on the inertial sensor measurement data, such as the device's shooting anti-shake function.
[0023] In an optional embodiment of the second aspect, when the measurement data of the inertial sensor is abnormal, the system chip instructs the charging chip of the electronic device to adjust the switching frequency, including: when the measurement data of the inertial sensor is abnormal, the system chip selects a second switching frequency based on a lookup table; the lookup table includes an unavailable switching frequency of the charging chip and at least one of the available switching frequencies, the second switching frequency is different from the first switching frequency of the charging chip at the first moment, and the second switching frequency is an available switching frequency; the system chip instructs the charging chip to adjust the switching frequency to the second switching frequency.
[0024] In the above embodiment, the lookup table is preconfigured, and the system chip can select a suitable switching frequency of the charging chip based on the available and / or unavailable switching frequencies in the lookup table to avoid the problem of inaccurate measurement data of the inertial sensor due to charging interference.
[0025] In an optional embodiment of the second aspect, the charging chip has multiple switching frequencies, and the system chip selects the second switching frequency based on a lookup table, including: the system chip eliminates the first switching frequency and the unavailable switching frequencies in the lookup table from the switching frequencies of the multiple charging chips, and selects the switching frequency that makes the charging chip have the highest charging efficiency as the second switching frequency.
[0026] In an optional embodiment of the second aspect, the method further includes: after the system chip instructs the charging chip to adjust the switching frequency to the second switching frequency, the system chip obtains measurement data of the inertial sensor; when the measurement data of the inertial sensor is still abnormal, the system chip re-instructs the charging chip to adjust the switching frequency based on the lookup table until the measurement data of the inertial sensor is normal.
[0027] In combination with the above two embodiments, if the lookup table includes available switching frequencies, and the switching frequencies are recorded from high to low according to charging efficiency, the system chip can start traversing from the available switching frequencies with higher charging efficiency to select a suitable switching frequency of the charging chip.
[0028] In an optional embodiment of the second aspect, the charging chip includes a first charging chip, a second charging chip and a third charging chip, and the lookup table includes at least one of the following items: when the first charging chip charges a battery module of the electronic device, an unavailable switching frequency of the first charging chip and at least one of the available switching frequencies; or, when the second charging chip charges the battery module, an unavailable switching frequency of the second charging chip and at least one of the available switching frequencies; or, when the third charging chip charges the battery module, an unavailable switching frequency of the third charging chip and at least one of the available switching frequencies; or, when the first charging chip and the second charging chip charge the battery module at the same time, an available switching frequency combination and / or an unavailable switching frequency combination, the available switching frequency combination including an available switching frequency combination of the first charging chip and the second charging chip, and the unavailable switching frequency combination including an unavailable switching frequency combination of the first charging chip and the second charging chip.
[0029] In an optional embodiment of the second aspect, when the measurement data of the inertial sensor is abnormal, the system chip instructs the charging chip of the electronic device to adjust the switching frequency, including: when the first charging chip and the second charging chip charge the battery module at the same time, the measurement data of the inertial sensor is abnormal, and when the switching frequency of the first charging chip remains unchanged, the system chip selects a third switching frequency for the second charging chip based on the available switching frequency combinations and / or unavailable switching frequency combinations in the lookup table; the system chip instructs the second charging chip to adjust the switching frequency to the third switching frequency.
[0030] In an optional embodiment of the second aspect, the method also includes: after the system chip instructs the second charging chip to adjust the switching frequency, the system chip obtains measurement data of the inertial sensor; when the measurement data of the inertial sensor is still abnormal, while the switching frequency of the first charging chip remains unchanged, the system chip re-instructs the second charging chip to adjust the switching frequency based on the available switching frequency combinations and / or unavailable switching frequency combinations in the lookup table until the measurement data of the inertial sensor is normal.
[0031] In an optional embodiment of the second aspect, the method also includes: if the switching frequency of the first charging chip remains unchanged, after traversing the switching frequencies of all available second charging chips, the measurement data of the inertial sensor is still abnormal, the system chip instructs the first charging chip to adjust the switching frequency; when the switching frequency of the adjusted first charging chip remains unchanged, the system chip re-instructs the second charging chip to adjust the switching frequency based on the available switching frequency combinations and / or unavailable switching frequency combinations in the lookup table until the measurement data of the inertial sensor is normal.
[0032] In combination with the above embodiments, when two charging chips are charging the battery module of the electronic device at the same time, if the measurement data of the inertial sensor is detected to be abnormal, the system chip can keep the switching frequency of one of the charging chips unchanged, and adjust the switching frequency of the other charging chip based on the available and / or switching frequency combinations in the lookup table until the measurement data of the inertial sensor is normal.
[0033] In an optional embodiment of the second aspect, the method further includes: adding the switching frequency of the charging chip when the measurement data of the inertial sensor is abnormal, or the switching frequency combination of the charging chip, to the lookup table to update the lookup table.
[0034] In an optional embodiment of the second aspect, the abnormal measurement data of the inertial sensor includes any of the following: the measurement data of the acceleration sensor of the electronic device remains unchanged, and the measurement data of the gyroscope sensor of the electronic device changes; or, both the measurement data of the acceleration sensor and the measurement data of the gyroscope sensor change.
[0035] In an optional embodiment of the second aspect, the method further includes: at a first moment, the inertial sensor transmits measurement data of the inertial sensor to a first analog-to-digital converter; the first analog-to-digital converter converts the measurement data of the inertial sensor into a digital signal, and transmits the digital signal to a dedicated integrated circuit, wherein the digital signal is used to indicate the measurement data of the inertial sensor; and the system chip of the electronic device obtains the measurement data of the inertial sensor, including: the system chip obtains the digital signal from the dedicated integrated circuit.
[0036] In a third aspect, an embodiment of the present application provides a control method, which is applied to an electronic device such as any one of the first aspect, the method comprising: when the electronic device is in a charging state, in response to a user's operation of starting a target application, the electronic device detects measurement data of an inertial sensor, and when the measurement data of the inertial sensor is abnormal, adjusts the switching frequency of a charging chip of the electronic device to make the measurement data of the inertial sensor normal; after adjusting the switching frequency of the charging chip, the electronic device controls the movement of a camera module of the electronic device to perform optical compensation based on the measurement data of the inertial sensor, obtains and displays a picture of the target application, and the jitter value of the picture is less than a preset threshold.
[0037] In an optional embodiment of the third aspect, the target application is a camera application, and the screen of the target application is a camera shooting screen; or, the target application is a game application, and the screen of the target application is a game screen.
[0038] When the user opens the target application in the charging scenario, if the inertial sensor is disturbed by charging, its measurement data will be abnormal, which may cause the target application screen to shake, affecting the user's experience. In the above embodiment, the electronic device can reduce the screen jitter of the target application by adjusting the switching frequency of the charging chip, and the user will not feel the screen jitter when charging.
[0039] In a fourth aspect, an embodiment of the present application provides an electronic device comprising: a processor and a memory; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, so that the electronic device executes a method as described in any one of the second aspect, or a method as described in any one of the third aspect.
[0040] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the method described in any one of the second aspect or the method described in any one of the third aspect is implemented.
[0041] In a sixth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the method as described in any one of the second aspect or the method as described in any one of the third aspect.
[0042] In a seventh aspect, an embodiment of the present application provides a chip, the chip comprising a processor, the processor being used to call a computer program in a memory to execute a method as described in any one of the second aspect or a method as described in any one of the third aspect.
[0043] It should be understood that the fourth to seventh aspects of the present application correspond to the technical solutions of the second or third aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding optional embodiments are similar and will not be repeated herein. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 Schematic diagram of an electronic device provided in an embodiment of the present application Figure 1 ;
[0045] Figure 2 A schematic diagram of a scenario provided for an embodiment of the present application;
[0046] Figure 3 Another scenario schematic diagram provided for an embodiment of the present application;
[0047] Figure 4 Schematic diagram of an electronic device provided in an embodiment of the present application Figure 2 ;
[0048] Figure 5 A schematic diagram of the structure of an integrated chip provided in an embodiment of the present application;
[0049] Figure 6 Schematic diagram of an electronic device provided in an embodiment of the present application Figure 3 ;
[0050] Figure 7 The process of the control method provided in the embodiment of the present application Figure 1 ;
[0051] Figure 8 The process of the control method provided in the embodiment of the present application Figure 2 ;
[0052] Fig. 9 The process of the control method provided in the embodiment of the present application Figure 3 . DETAILED DESCRIPTION
[0053] In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
[0054] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0055] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0056] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, storage, and display, such as images or video data taken by users) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0057] The following first introduces some professional terms involved in the embodiments of the present application.
[0058] First, Micro-Electro-Mechanical System (MEMS) is a micro device or system that integrates micro sensors, micro actuators, micro mechanical structures, micro power sources, micro energy, signal processing and control circuits, high-performance electronic integrated devices, interfaces, and communications.
[0059] Second, the external capacitor (CFLY), also known as the flying capacitor, is a capacitor used in multi-level inverters. Its main function is to store and transfer energy between different levels of the inverter, and to provide the required voltage through the series or parallel connection of multiple capacitors. Different types of charging chips usually have different requirements for the parameters of the CFLY capacitor, such as the withstand voltage, temperature coefficient, equivalent series resistance (ESR), etc., and the appropriate capacitor model needs to be selected according to the actual application.
[0060] Third, the BUCK circuit, also known as the step-down circuit, is a DC-DC conversion circuit whose basic feature is that the output voltage is lower than the input voltage.
[0061] Fourth, optical image stabilization (OIS) is a physical anti-shake technology that uses the special motor structure of the camera lens. The gyroscope calculates the shaking of the phone during shooting, controls the movement of the lens for optical compensation, and achieves anti-shake.
[0062] Figure 1 A schematic diagram of an electronic device provided in an embodiment of the present application. Figure 1As shown, the electronic device 100 includes an A+G sensor 101, three capacitor modules, three charging chips and a battery module 102. The A+G sensor 101 refers to an accelerometer (which can be represented by the letter A) and a gyroscope (which can be represented by the letter G). The three capacitor modules include a capacitor module 103, a capacitor module 104 and a capacitor module 105, and the three charging chips include a charging chip 106, a charging chip 107 and a charging chip 108, wherein the capacitor module 103 is connected to the charging chip 106, the capacitor module 104 is connected to the charging chip 107, and the capacitor module 105 is connected to the charging chip 108. The capacitor module 103 is an external capacitor module of the charging chip 106. The capacitor module 104 is an external capacitor module of the charging chip 107. The capacitor module 105 is an external capacitor module of the charging chip 108. The A+G sensor can be integrated into one chip, and the chip, three capacitor modules and three charging chips can be arranged on the same circuit board of the electronic device (such as Figure 1 On the circuit board 109).
[0063] Figure 1 In the embodiment, the charging chip 106 and the charging chip 107 are fast charging chips and can be the same type of charging chips. The charging chip 106 and the charging chip 107 can charge the battery module of the electronic device at the same time, or each can charge the battery module separately. The charging chip 108 is a common charging chip, which has a lower charging efficiency than the fast charging chip and can also be called a slow charging chip. The charging chip 108 can charge the battery module separately.
[0064] In the embodiment of the present application, the charging mode of the electronic device includes a first charging mode and a second charging mode. In the first charging mode, the electronic device can control the charging chip 106 and / or the charging chip 107 to charge the battery module, and the first charging mode can also be called a fast charging mode. In the second charging mode, the electronic device can control the charging chip 108 to charge the battery module, and the second charging mode can also be called a normal charging mode or a fast charging mode.
[0065] The charging chip mentioned above may also be referred to as a charging management module, which is used to receive charging input from a charger.
[0066] The electronic device involved in the embodiments of the present application may be a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a smart screen, an artificial intelligence (AI) speaker, a headset, a terminal in industrial control, a terminal in self driving, a terminal in remote medical surgery, a terminal in a smart grid, a terminal in transportation safety, a terminal in a smart city, a terminal in a smart home, a personal digital assistant (PDA), etc., and the embodiments of the present application do not impose any limitation on this.
[0067] based on Figure 1 In the electronic device shown, when the electronic device is charged wired or wirelessly, the A+G sensor may be interfered by the capacitor module on the same circuit board.
[0068] In the first charging mode, the charging chip 106 and / or the charging chip 107 charges the battery module, and the charging chip 106 and / or the charging chip 107 will work at a certain switching frequency to control the charging of the battery module. During the charging process, the capacitor module 103 and / or the capacitor module 104 will vibrate, and their vibration will drive the vibration of the circuit board, and then transmit the above vibration to the A+G sensor through the circuit board.
[0069] In the second charging mode, the charging chip 108 charges the battery module, and the charging chip 108 works at a certain switching frequency to control the charging of the battery module. During the charging process, the capacitor module 105 vibrates, and this vibration drives the vibration of the circuit board, and then transmits the above vibration to the A+G sensor through the circuit board.
[0070] Therefore, no matter which of the above charging modes is used, once the vibration frequency of the circuit board is close to the natural frequency of the A+G sensor in a free state, the circuit board will resonate with the A+G sensor, which will cause the amplitude of the data detected by the A+G sensor to increase, affecting the accuracy of data detection, and thus making it impossible to perform accurate optical compensation.
[0071] The A+G sensor will cause inaccurate measurement data under the interference of the above vibrations, which will affect the related functions that rely on these measurement data. For example, when a user takes a photo while the electronic device is charging, if there is the above interference, the photo will show obvious jitter, such as Figure 2 For another example, when a user plays a shooting game while the electronic device is charging, if there is the above interference, the camera in the game screen will drift, such as Figure 3 As shown, it affects the user's aiming operation.
[0072] In this regard, an embodiment of the present application proposes an electronic device, which includes a system chip, an inertial sensor, a charging chip and a battery module. The system chip is configured to detect measurement data of the inertial sensor when the inertial sensor is in a working state and the electronic device is in a charging state. If the measurement data of the inertial sensor is abnormal, the charging chip is instructed to adjust the switching frequency to prevent the inertial sensor from being disturbed by charging and affecting the device functions that rely on these measurement data.
[0073] It should be noted that the electronic device being in a charging state includes the electronic device being in a wired charging state or a wireless charging state, which is not limited in the embodiments of the present application.
[0074] The structure of the electronic device according to the embodiment of the present application is described in detail below with reference to the accompanying drawings.
[0075] Figure 4 Schematic diagram of an electronic device provided in an embodiment of the present application Figure 2 .like Figure 4 As shown, the electronic device 400 includes: a system chip 401 , an inertial sensor 402 , a charging chip 403 and a battery module 404 . The system chip 401 is connected to the inertial sensor 402 and the charging chip 403 , respectively, and the charging chip 403 is connected to the battery module 404 .
[0076] Among them, the system chip can also be called SOC ADSP. SOC is the abbreviation of System on Chip, which is a system-level chip. ADSP is the abbreviation of advanced digital signal processor, which is an advanced digital signal processor.
[0077] The inertial sensor 402 is configured to measure data related to the motion state of the electronic device 400 .
[0078] The system chip 401 is configured to obtain measurement data of the inertial sensor 402 when the inertial sensor 402 is in working state and the electronic device 400 is in charging state, and to instruct the charging chip 403 to adjust the switching frequency when the measurement data of the inertial sensor 402 is abnormal.
[0079] The charging chip 403 is configured to control the charging of the battery module 404. The charging chip 403 can control the charging parameters of the battery module 404, and the charging parameters include charging current and charging voltage.
[0080] In this embodiment, by monitoring the measurement data of the inertial sensor by the system chip and controlling the switching frequency of the charging chip, it is possible to avoid resonance between the inertial sensor and the circuit board of the electronic device when charging, thereby preventing related functions of the electronic device that rely on the measurement data of the inertial sensor.
[0081] In some embodiments, Figure 4 As shown, the inertial sensor 402 includes an acceleration sensor 4021 and a gyro sensor 4022. The acceleration sensor 4021 is configured to measure the acceleration of the electronic device 400 in three axes. The gyro sensor 4022 is configured to measure the angular velocity of the electronic device 400 rotating around the three axes.
[0082] In some embodiments, the acceleration sensor 4021 and the gyroscope sensor 4022 may be disposed on the integrated chip 405, and both the acceleration sensor 4021 and the gyroscope sensor 4022 adopt a micro-electromechanical system structure. The micro-electromechanical system structure is an existing structure, and this embodiment will not describe it in detail.
[0083] For example, Figure 5 This is a schematic diagram of the structure of an integrated chip provided in an embodiment of the present application. Figure 5 As shown, the integrated chip 405 includes an application specific integrated circuit (ASIC) 4051, a first analog-to-digital converter 4052, and a micro-electromechanical system domain (MEMSDomain) 4053. The application specific integrated circuit 4051 is connected to the first analog-to-digital converter 4052, and the first analog-to-digital converter 4052 is connected to the micro-electromechanical system domain 4053. The micro-electromechanical system domain 4053 (which may correspond to Figure 4 The inertial sensor 402 in the embodiment includes a MEMS acceleration sensor 4054 (corresponding to Figure 4 The acceleration sensor 4021) and the MEMS gyro sensor 4055 (corresponding to Figure 4 The first analog-to-digital converter 4052 is connected to the MEMS acceleration sensor 4054 and the MEMS gyroscope sensor 4055 respectively. Figure 4 , the dedicated integrated circuit 4051 is also connected to the system chip 401.
[0084] The first analog-to-digital converter 4052 is configured to receive measurement data from an inertial sensor, such as measurement data from a MEMS acceleration sensor 4054 and measurement data from a MEMS gyroscope sensor 4055, convert the measurement data from the inertial sensor into a digital signal, and transmit the digital signal to the ASIC 4051. The ASIC 4051 is configured to transmit a digital signal to the system chip 401, and the digital signal is used to indicate the measurement data of the inertial sensor. The system chip 401 is configured to execute the control method provided in the embodiment of the present application after receiving the digital signal, and the detailed scheme is shown in the following embodiment.
[0085] In some embodiments, Figure 4 As shown, the electronic device 400 also includes a capacitor module 406, which is connected to the charging chip 403. The system chip 401 can be used to control the charging chip 403 to operate at a certain switching frequency. When the charging chip 403 operates at a certain switching frequency, the capacitor module 406 vibrates at a certain frequency. The vibration frequency of the capacitor module 406 is related to the switching frequency of the charging chip 403. Generally, the greater the switching frequency of the charging chip 403, the greater the vibration frequency of the capacitor module 406; the smaller the switching frequency of the charging chip 403, the smaller the vibration frequency of the capacitor module 406.
[0086] In some embodiments, the capacitor module 406 includes one or more capacitors, such as a CFLY capacitor.
[0087] In some embodiments, Figure 4 As shown, the electronic device 400 further includes a second analog-to-digital converter 407, and the charging chip 403 is connected to the second analog-to-digital converter 407. The second analog-to-digital converter 407 is configured to monitor the switching frequency of the charging chip 403 and report the switching frequency of the charging chip 403 to the system chip 401.
[0088] The electronic device shown in the above embodiment includes only one charging chip, through which the battery module of the electronic device is charged. During the charging process, the system chip monitors the measurement data of the inertial sensor. If the measurement data of the inertial sensor is abnormal, the switching frequency of the charging chip is adjusted to avoid the inertial sensor being disturbed by the vibration of the capacitor module outside the charging chip, so that its measurement data is more accurate.
[0089] Figure 6 Schematic diagram of an electronic device provided in an embodiment of the present application Figure 3 .like Figure 6As shown, the electronic device 600 includes: a system chip 601, an integrated chip 602, a first charging chip 603, a second charging chip 604, a third charging chip 605 and a battery module 612. The system chip 601 is respectively connected to the integrated chip 602, the first charging chip 603, the second charging chip 604 and the third charging chip 605, the first charging chip 603 is connected to the second charging chip 604, and the first charging chip 603, the second charging chip 604 and the third charging chip 605 are respectively connected to the battery module 612.
[0090] In some embodiments, Figure 6 As shown, the capacitor module of the electronic device includes a first capacitor module 606, a second capacitor module 607 and a third capacitor module 608, the first capacitor module 606 is connected to the first charging chip 603, the second capacitor module 607 is connected to the second charging chip 604, and the third capacitor module 608 is connected to the third charging chip 605.
[0091] In some embodiments, Figure 6 As shown, the second analog-to-digital converter of the electronic device includes a third analog-to-digital converter 609, a fourth analog-to-digital converter 610, and a fifth analog-to-digital converter 611. The third analog-to-digital converter 609 is connected to the first charging chip 603, the fourth analog-to-digital converter 610 is connected to the second charging chip 604, and the fifth analog-to-digital converter 611 is connected to the third charging chip 605.
[0092] The third analog-to-digital converter 609 is configured to monitor the switching frequency of the first charging chip 603, and report the switching frequency of the first charging chip 603 to the system chip. The fourth analog-to-digital converter 610 is configured to monitor the switching frequency of the second charging chip 604, and report the switching frequency of the second charging chip 604 to the system chip. The fifth analog-to-digital converter 611 is configured to monitor the switching frequency of the third charging chip 605, and report the switching frequency of the third charging chip 605 to the system chip.
[0093] The first charging chip 603 and the second charging chip 604 are fast charging chips, and the first charging chip 603 and the second charging chip 604 can be fast charging chips of the same model. The third charging chip 605 is a common charging chip. For example, Figure 6 In the embodiment, the first charging chip 603 is the main charging chip in the first charging mode, and the second charging chip 604 is the auxiliary charging chip in the first charging mode. The third charging chip 605 includes a BUCK circuit and a power management unit (Power Management Unit, PMU).
[0094] In some embodiments, the system chip is configured to control the first charging chip 603 to work in the first charging mode. The first charging chip 603 charges the battery module. In some embodiments, the system chip is configured to control the second charging chip 604 to work in the first charging mode. The second charging chip 604 charges the battery module. In some embodiments, the system chip is configured to control the first charging chip 603 and the second charging chip 604 to work in the first charging mode. The first charging chip 603 and the second charging chip 604 charge the battery module at the same time. The first charging mode is a fast charging mode.
[0095] In some embodiments, the system chip is configured to control the third charging chip 605 to work in the second charging mode. The third charging chip 605 supplies power to the battery module. The second charging mode is a normal charging mode.
[0096] In some embodiments, the integrated chip 602 may include a dedicated integrated circuit 6021, a first analog-to-digital converter 6022, and a micro-electromechanical system domain 6023. Figure 5 The embodiments are not described in detail here.
[0097] Combination Figure 6 In actual applications, when the first charging chip charges the battery module, the A+G sensor on the integrated chip may be disturbed by the vibration of the first capacitor module, resulting in abnormal measurement data of the A+G sensor. When the second charging chip charges the battery module, the A+G sensor on the integrated chip may be disturbed by the vibration of the second capacitor module, resulting in abnormal measurement data of the A+G sensor. When the third charging chip charges the battery module, the A+G sensor on the integrated chip may be disturbed by the vibration of the third capacitor module, resulting in abnormal measurement data of the A+G sensor. When the first charging chip and the second charging chip charge the battery module at the same time, the A+G sensor on the integrated chip may be disturbed by the vibration of the first capacitor module and the second capacitor module, resulting in abnormal measurement data of the A+G sensor.
[0098] No matter which of the above situations occurs, the system chip can execute the control method provided in the embodiment of the present application. By instructing the first charging chip and / or the second charging chip to adjust the switching frequency, or instructing the third charging chip to adjust the switching frequency, the A+G sensor can be prevented from being disturbed by vibration, making its measurement data more accurate.
[0099] Based on the electronic device shown in the aforementioned embodiment, the system chip can monitor the measurement data of the inertial sensor in a charging scenario (wired charging or wireless charging). When the measurement data of the inertial sensor is abnormal, the system chip instructs the charging chip of the electronic device to adjust the switching frequency, thereby avoiding inaccurate measurement data caused by charging interference on the inertial sensor.
[0100] The control method of the electronic device is described in detail below with reference to the accompanying drawings.
[0101] Figure 7 The process of the control method provided in the embodiment of the present application Figure 1 .
[0102] like Figure 7 As shown, the control method includes:
[0103] S701: At a first moment, an inertial sensor of an electronic device is in a working state and the electronic device is in a charging state, and a system chip of the electronic device obtains measurement data of the inertial sensor.
[0104] In some embodiments, the inertial sensor of the electronic device includes an acceleration sensor and a gyroscope sensor. The inertial sensor of the electronic device being in a working state can also be described as the electronic device enabling the inertial sensor. When the inertial sensor is in a working state, its measurement data can be transmitted to the system chip so that the system chip can monitor whether the measurement data is abnormal.
[0105] In some embodiments, the inertial sensor of the electronic device is in a working state, and the electronic device is in a fast charging state, that is, in a first charging mode, and the system chip of the electronic device obtains measurement data of the inertial sensor.
[0106] In some embodiments, the inertial sensor of the electronic device is in a working state, and the electronic device is in a normal charging state, that is, in a second charging mode, and the system chip of the electronic device obtains measurement data of the inertial sensor.
[0107] In some embodiments, the system chip of the electronic device can obtain the measurement data of the inertial sensor in the following manner:
[0108] S7011 . At a first moment, the inertial sensor transmits measurement data of the inertial sensor to a first analog-to-digital converter.
[0109] S7012: The first analog-to-digital converter converts the measurement data of the inertial sensor into a digital signal.
[0110] S7013. The first analog-to-digital converter transmits a digital signal to the application-specific integrated circuit, where the digital signal is used to indicate measurement data of the inertial sensor.
[0111] S7014, the system chip obtains digital signals from the dedicated integrated circuit.
[0112] In this embodiment, the inertial sensor, the first analog-to-digital converter and the dedicated integrated circuit can be integrated on the same chip, such as Figure 5It is understood that the measurement data of the inertial sensor is an analog signal, which can be processed by the first analog-to-digital converter to obtain a digital signal so that the system chip can perform subsequent data processing and analysis.
[0113] When the electronic device is in the charging state, the charging chip works at a certain switching frequency, and the capacitor module connected to the charging chip will vibrate at a certain frequency. This vibration will cause the circuit board to vibrate, and then transmit the vibration to the inertial sensor located on the same circuit board through the circuit board. When the vibration frequency of the circuit board is consistent with the frequency of the inertial sensor in the free state, resonance will occur, which will cause the amplitude of the data detected by the inertial sensor to increase (the measurement data of the inertial sensor is abnormal), affecting the accuracy of data detection. Among them, the inertial sensor in the free state reciprocates along each axis at a fixed frequency. If the user uses the electronic device to take pictures or play games, the frequency of each axis of the inertial sensor will change.
[0114] S702: When the measurement data of the inertial sensor is abnormal, the system chip instructs the charging chip of the electronic device to adjust the switching frequency.
[0115] In some embodiments, the system chip instructs the charging chip to adjust the switching frequency, including: the system chip sends a control instruction to the charging chip. In one example, the control instruction may indicate the switching frequency, and the charging chip adjusts the switching frequency of the charging chip based on the switching frequency indicated in the control instruction. In another example, the control instruction only indicates that the charging chip needs to adjust the switching frequency, and the charging chip can adjust the switching frequency of the charging chip based on the control instruction and a predefined adjustment rule (such as a rule of traversing the adjustment from large to small, or from small to large, etc.).
[0116] In some embodiments, if the measurement data of the acceleration sensor is monitored to be unchanged and the measurement data of the gyroscope sensor is changed, the system chip can determine that the measurement data of the inertial sensor is abnormal, and instruct the charging chip of the electronic device to adjust the switching frequency to make the measurement data of the inertial sensor normal.
[0117] In some embodiments, if the measurement data of the acceleration sensor and the measurement data of the gyroscope sensor are monitored to change, the system chip can determine that the measurement data of the inertial sensor is abnormal, and instruct the charging chip of the electronic device to adjust the switching frequency to make the measurement data of the inertial sensor normal.
[0118] Based on the above two embodiments, the abnormal measurement data of the inertial sensor mainly refers to the abnormal measurement data of the gyroscope sensor. The normal measurement data of the inertial sensor mainly refers to the normal measurement data of the gyroscope sensor. When the electronic device is in a charging state, if the vibration of the capacitor module outside the charging chip causes the gyroscope sensor to resonate, it will cause a large change in the measurement data of the gyroscope sensor, indicating that the gyroscope sensor is disturbed by charging, the measurement data of the gyroscope sensor is abnormal, and the measurement data of the gyroscope is inaccurate. By adjusting the switching frequency of the charging chip of the electronic device, the above resonance can be avoided, so that the measurement data of the gyroscope sensor returns to normal.
[0119] It should be noted that the change of the measurement data of the acceleration sensor is mainly related to the motion state of the electronic device and is usually not affected by charging.
[0120] In this embodiment, the charging chip may be a fast charging chip or a common charging chip.
[0121] In some embodiments, when the measurement data of the inertial sensor is abnormal, the system chip selects a second switching frequency based on the lookup table and instructs the charging chip to adjust the switching frequency to the second switching frequency, wherein the second switching frequency is different from the first switching frequency of the charging chip at the first moment, and the second switching frequency is an available switching frequency.
[0122] In some embodiments, the lookup table includes unavailable switching frequencies for the charging chip.
[0123] In some embodiments, the lookup table includes available switching frequencies for the charging chip.
[0124] In some embodiments, the lookup table includes unavailable switching frequencies and available switching frequencies of the charging chip.
[0125] It should be noted that the available switching frequency refers to the switching frequency of the charging chip that does not cause abnormal measurement data of the inertial sensor when the electronic device is charging. The unavailable switching frequency refers to the switching frequency of the charging chip that causes abnormal measurement data of the inertial sensor when the electronic device is charging. The available switching frequency and the unavailable switching frequency can be determined by testing before the device leaves the factory, and the available switching frequency and / or the unavailable switching frequency can be stored in the device to guide the device to adjust the switching frequency of the system chip when the inertial sensor measurement data is abnormal.
[0126] In some embodiments, the lookup table is stored in a local storage space of the system chip.
[0127] In some embodiments, the lookup table is stored in a memory, which is a memory independent of the system chip.
[0128] The above-mentioned lookup table is preconfigured. Before the electronic device leaves the factory, the tester tests whether the measurement data of the inertial sensor is abnormal at different switching frequencies of the charging chip by traversing the switching frequencies of the charging chip when the electronic device is charged. If the measurement data of the inertial sensor is abnormal at the switching frequency of a certain charging chip, the switching frequency of the charging chip is marked as an unavailable switching frequency. If the measurement data of the inertial sensor is normal at the switching frequency of a certain charging chip, the switching frequency of the charging chip is marked as an available switching frequency. At the same time, the charging efficiency at the switching frequency of the charging chip can be obtained. After the above test, the unavailable switching frequency and / or the available switching frequency of the charging chip can be stored in the lookup table. The available switching frequencies of the charging chip in the lookup table can be stored in order of charging efficiency from high to low. The lookup table is used to guide the system chip to regulate the switching frequency of the charging chip.
[0129] The above-mentioned test process can be executed by the system chip, that is, the system chip executes a preset program code, traverses multiple switching frequencies of the charging chip, monitors whether the measurement data of the inertial sensor is abnormal, and stores the unavailable switching frequency and / or available switching frequency of the charging chip in a lookup table, so as to guide the system chip to control the switching frequency of the charging chip in actual applications.
[0130] It should be noted that in the above embodiment, the switching frequency of the charging chip at the first moment is the first switching frequency, which is the available switching frequency of the charging chip verified by the above test process, and the first switching frequency is usually the switching frequency of the available switching frequencies of the charging chip, which makes the charging efficiency of the charging chip the highest. However, in actual applications, due to the difference between the test environment and the environment actually used by the user, such as in an extremely cold or magnetic field changing environment, the charging chip works at a verified switching frequency, and the system chip may also detect abnormal measurement data of the inertial sensor. At this time, the system chip needs to re-instruct the charging chip to adjust the switching frequency based on the lookup table to avoid charging interference causing inaccurate measurement data of the inertial sensor.
[0131] In some embodiments, the charging chip has multiple switching frequencies, and the system chip selects a second switching frequency based on a lookup table, including: the system chip eliminates the first switching frequency and the unusable switching frequencies of the charging chip in the lookup table from the switching frequencies of the multiple charging chips, and selects the switching frequency that makes the charging chip have the highest charging efficiency as the second switching frequency.
[0132] In some embodiments, after the system chip instructs the charging chip to adjust the switching frequency to the second switching frequency, the system chip obtains the measurement data of the inertial sensor. When the measurement data of the inertial sensor is still abnormal, the system chip re-instructs the charging chip to adjust the switching frequency based on the lookup table until the measurement data of the inertial sensor is normal.
[0133] In one example, the lookup table includes available switching frequencies of the charging chip, and the system chip selects an available switching frequency other than the first switching frequency and the second switching frequency from the available switching frequencies of the charging chip in the lookup table. Specifically, a new available switching frequency can be selected by traversing the available switching frequencies.
[0134] In one example, the lookup table includes unusable switching frequencies of the charging chip, and the system chip should avoid the unusable switching frequencies of the charging chip, the first switching frequency, and the second switching frequency.
[0135] The following is a specific example to illustrate how the system chip re-instructs the switching frequency of the charging chip.
[0136] Exemplarily, the charging chip of the electronic device is a common charging chip, and the lookup table shown in Table 1 includes available switching frequencies and unavailable switching frequencies of the common charging chip, wherein the available switching frequencies are listed in descending order of the charging efficiency of the charging chip. The switching frequencies in Table 1 are only examples.
[0137] Table 1
[0138] Available switching frequencies {800kHz,685kHz,600kHz,532kHz,480kHz,342kHz} Unusable switching frequency {400kHz, 436kHz}
[0139] Based on the above Table 1, if the system chip controls the charging chip to operate at 800kHz at the first moment, if the system chip detects that the measurement data of the inertial sensor is abnormal, based on Table 1, the charging chip is controlled to operate at 685kHz (the second highest switching frequency for charging efficiency), and the measurement data of the inertial sensor continues to be monitored. If the measurement data of the inertial sensor is still abnormal, the charging chip is controlled to operate at 600kHz based on Table 1 until the measurement data of the inertial sensor is normal.
[0140] In some embodiments, the lookup table may include only the available switching frequencies shown in Table 1.
[0141] In some embodiments, the lookup table may only include the unavailable switching frequencies shown in Table 1. When the system chip reselects the switching frequency of the charging chip, it needs to avoid the unavailable switching frequencies of the charging chip in the lookup table.
[0142] In some embodiments, the charging chip of the electronic device is a fast charging chip, and the lookup table includes available switching frequencies and / or unavailable switching frequencies of the fast charging chip, similar to Table 1.
[0143] S703: At the second moment, the inertial sensor is not in a working state, and the electronic device is in a charging state, and the system chip controls the charging chip to operate at a preset switching frequency.
[0144] The inertial sensor not being in a working state may also be described as the electronic device not enabling the inertial sensor. For example, when the electronic device is in a low power mode, the electronic device does not enable the inertial sensor to save power consumption of the device.
[0145] It is understandable that the inertial sensor is not in working state, the inertial sensor does not produce measurement data, the system chip does not receive the measurement data of the inertial sensor, and the functions related to the measurement data are not turned on. At this time, the electronic device is in charging state, and the system chip controls the charging chip to work at a preset switching frequency. Usually, the charging chip works at a preset switching frequency, and its charging efficiency is the highest.
[0146] The first moment and the second moment mentioned above are different moments, and the timing relationship between S701 and S703 is not limited.
[0147] In some embodiments, the control method further includes: adding the switching frequency of the charging chip when the measurement data of the inertial sensor is abnormal to the lookup table to update the unavailable switching frequency in the lookup table.
[0148] Exemplarily, referring to Table 1, assuming that the switching frequency of the charging chip at the first moment is 600kHz, and the measurement data of the inertial sensor at 600kHz is abnormal, the system chip can traverse the available switching frequencies in Table 1 in the following order: 685kHz→800kHz→342kHz→480kHz→532kHz. If the measurement data of the inertial sensor at 685kHz is still abnormal, 685kHz can be added or migrated to the unavailable switching frequency in the lookup table (or, 685kHz can be marked as an unavailable switching frequency). According to the traversal order of the above switching frequencies, when the measurement data of the inertial sensor at a certain switching frequency is not abnormal, the traversal is stopped and the charging chip operates at this switching frequency.
[0149] It should be pointed out that the above switching frequency traversal process is usually completed instantaneously, and users usually do not perceive changes in the device due to inertial sensor abnormalities, such as jitter in the device's shooting screen or game screen.
[0150] An embodiment of the present application shows a control method, in which the system chip monitors the measurement data of the inertial sensor during charging. If the measurement data is abnormal, the system chip can adjust the switching frequency of the charging chip to prevent the inertial sensor from being disturbed by charging and causing inaccurate measurement data, thereby affecting related functions of electronic devices that rely on the inertial sensor measurement data, such as the device's shooting anti-shake function.
[0151] In some embodiments, the charging chip includes a first charging chip, a second charging chip and a third charging chip, and the lookup table includes at least one of the following: when the first charging chip charges a battery module of an electronic device, an unavailable switching frequency of the first charging chip and at least one of the available switching frequencies; or, when the second charging chip charges the battery module, an unavailable switching frequency of the second charging chip and at least one of the available switching frequencies; or, when the third charging chip charges the battery module, an unavailable switching frequency of the third charging chip and at least one of the available switching frequencies; or, when the first charging chip and the second charging chip charge the battery module at the same time, an available switching frequency combination and / or an unavailable switching frequency combination, the available switching frequency combination including an available switching frequency combination of the first charging chip and the second charging chip, and the unavailable switching frequency combination including an unavailable switching frequency combination of the first charging chip and the second charging chip.
[0152] When the first charging chip alone charges the battery module of the electronic device, if the measurement data of the inertial sensor is abnormal, the system chip can adjust the switching frequency of the first charging chip by executing the control method of the aforementioned embodiment. When the second charging chip alone charges the battery module of the electronic device, if the measurement data of the inertial sensor is abnormal, the system chip can adjust the switching frequency of the second charging chip by executing the control method of the aforementioned embodiment. When the third charging chip alone charges the battery module of the electronic device, if the measurement data of the inertial sensor is abnormal, the system chip can adjust the switching frequency of the third charging chip by executing the control method of the aforementioned embodiment.
[0153] The following describes how the system chip executes the control method when the first charging chip and the second charging chip simultaneously charge the charging module of the electronic device if the measurement data of the inertial sensor is abnormal, in conjunction with the accompanying drawings.
[0154] Figure 8 The process of the control method provided in the embodiment of the present application Figure 2 .like Figure 8 As shown, the control method includes:
[0155] S801: At a first moment, an inertial sensor of an electronic device is in a working state, and a first charging chip and a second charging chip of the electronic device are charging a battery module at the same time, and a system chip of the electronic device obtains measurement data of the inertial sensor.
[0156] In this embodiment, the first charging chip and the second charging chip of the electronic device charge the battery module at the same time, which is a charging state of the first charging mode. The first charging chip is connected to the first capacitor module, and the second charging chip is connected to the second capacitor module. When the electronic device is in a charging state, the first charging chip and the second charging chip operate at a certain switching frequency, and the corresponding first capacitor module and the second capacitor module will vibrate at a certain frequency, which will cause the vibration of the circuit board, and then transmit the vibration to the inertial sensor located on the same circuit board through the circuit board. When the vibration frequency of the circuit board is consistent with the frequency of the inertial sensor in a free state, resonance occurs, which will cause the amplitude of the data detected by the inertial sensor to increase, affecting the accuracy of data detection.
[0157] S802: When the measurement data of the inertial sensor is abnormal, the system chip selects a third switching frequency for the second charging chip based on available switching frequency combinations and / or unavailable switching frequency combinations in the lookup table while the switching frequency of the first charging chip remains unchanged.
[0158] In some embodiments, the lookup table includes available switching frequency combinations for the charging chip.
[0159] In some embodiments, the lookup table includes unavailable switching frequency combinations for the charging chip.
[0160] In some embodiments, the lookup table includes available switching frequency combinations and unavailable switching frequency combinations of the charging chip.
[0161] The available switching frequency combination includes an available switching frequency combination of the first charging chip and the switching frequency combination of the second charging chip. The unavailable switching frequency combination includes an unavailable switching frequency combination of the first charging chip and the switching frequency combination of the second charging chip.
[0162] The above lookup table is pre-configured.
[0163] Exemplarily, the first charging chip and the second charging chip can be charging chips of the same model, and the first charging chip and the second charging chip can use the same or different switching frequencies. For example, the switching frequency of the first charging chip or the second charging chip can be any one of the array A {300kHz, 350kHz, 400kHz, 450kHz, 500kHz, 550kHz, 600kHz, 750kHz}. Based on the array A, there are multiple combinations of the switching frequencies of the first charging chip and the second charging chip. It can be understood that different combinations of the switching frequencies of the first charging chip and the second charging chip have different corresponding charging efficiencies.
[0164] Before the electronic equipment leaves the factory, the tester can test whether the measurement data of the inertial sensor is abnormal in different combinations by traversing various combinations. If the measurement data of the inertial sensor is abnormal in a certain combination, the combination is marked as an unusable switching frequency combination of the charging chip. If the measurement data of the inertial sensor is normal in a certain combination, the combination is marked as an available switching frequency combination of the charging chip, and at the same time, the charging efficiency in the combination can be obtained. The available switching frequency combinations of the charging chip in the lookup table can be stored in order from high to low charging efficiency. The lookup table is used to guide the system chip to regulate the first charging chip or the second charging chip.
[0165] The above-mentioned test process can be executed by the system chip, that is, the system chip executes a preset program code, traverses various combinations of the switching frequencies of the first charging chip and the second charging chip, monitors whether the measurement data of the inertial sensor is abnormal, and stores the unusable switching frequency combinations and / or available switching frequency combinations of the charging chip in a lookup table, so as to guide the system chip to regulate the switching frequency of the first charging chip and / or the second charging chip in actual applications.
[0166] Exemplarily, the lookup table shown in Table 2 includes unavailable switching frequency combinations of charging chips. For example, [500kHz, 500kHz] in Table 2 indicates that when the switching frequencies of the first charging chip and the second charging chip are both 500kHz, the measurement data of the inertial sensor is abnormal, and this combination is unavailable. The explanations of other arrays are similar and are all unavailable.
[0167] Table 2
[0168]
[0169] In some embodiments, the lookup table is stored in a local storage space of the system chip.
[0170] In some embodiments, the lookup table is stored in a memory, which is a memory independent of the system chip.
[0171] In some embodiments, the system chip adds the switching frequency combination of the charging chip when the measurement data of the inertial sensor is abnormal to the lookup table to update the lookup table.
[0172] S803: The system chip instructs the second charging chip to adjust the switching frequency to a third switching frequency.
[0173] S804: The system chip obtains measurement data of the inertial sensor.
[0174] S805. When the measurement data of the inertial sensor is still abnormal, while the switching frequency of the first charging chip remains unchanged, the system chip re-instructs the second charging chip to adjust the switching frequency based on the available switching frequency combinations and / or unavailable switching frequency combinations in the lookup table until the measurement data of the inertial sensor is normal.
[0175] For example, assuming that the switching frequency combination of the first charging chip and the second charging chip at the first moment is [500kHz, 500kHz], and the measurement data of the inertial sensor under this switching frequency combination is abnormal, the switching frequency combination can be added to Table 2 to update the unavailable switching frequency combination in the lookup table. At the same time, based on the above array A and Table 2, when the switching frequency of the first charging chip is fixed at 500kHz, avoid the unavailable switching frequency combination in Table 2 and select [500kHz, 750kHz]. If the measurement data of the inertial sensor under the switching frequency combination [500kHz, 750kHz] is still abnormal, the system chip can traverse the switching frequency combination in the following order:
[0176] [500kHz, 300kHz]→[500kHz, 350kHz]→[500kHz, 400kHz]→[500kHz, 450kHz]. If during the traversal process, the measurement data of the inertial sensor under a certain switching frequency combination is not abnormal, the traversal is stopped, so that the first charging chip and the second charging chip work at the switching frequency combination corresponding to the traversal when the traversal is stopped.
[0177] In the above embodiment, under the condition that the switching frequency of the first charging chip is fixed, the switching frequency of the available second charging chips is traversed based on the lookup table to adjust the switching frequency of the second charging chip.
[0178] In some embodiments, the first charging chip is a main charging chip in a first charging mode (fast charging mode), and the second charging chip is an auxiliary charging chip in the first charging mode.
[0179] In some embodiments, when the measurement data of the inertial sensor is abnormal, while the switching frequency of the second charging chip remains unchanged, the system chip selects a fourth switching frequency (not shown) for the first charging chip based on the available switching frequency combinations and / or unavailable switching frequency combinations in the lookup table.
[0180] In the above embodiment, under the condition that the switching frequency of the second charging chip is fixed, the switching frequency of the first charging chip is traversed based on the lookup table to adjust the switching frequency of the first charging chip.
[0181] Based on the aforementioned embodiments, by fixing the switching frequency of one of the two charging chips and traversing the switching frequency of the other charging chip to obtain a suitable switching frequency combination, the measurement data of the inertial sensor is not affected by the vibration of the capacitor module, thereby improving the stability of the device when charging.
[0182] In some embodiments, the control method further comprises:
[0183] S806: If the switching frequency of the first charging chip remains unchanged, after traversing the switching frequencies of all available second charging chips, the measurement data of the inertial sensor is still abnormal, the system chip instructs the first charging chip to adjust the switching frequency.
[0184] S807: When the switching frequency of the first charging chip remains unchanged after adjustment, the system chip re-instructs the second charging chip to adjust the switching frequency based on the available switching frequency combinations and / or unavailable switching frequency combinations in the lookup table until the measurement data of the inertial sensor is normal.
[0185] Exemplarily, referring to the example of S805, if the switching frequency of the first charging chip is fixed (500kHz), and the measurement data of the inertial sensor is still abnormal after traversing to the last switching frequency combination [500kHz, 450kHz], the switching frequency of the first charging chip in the switching frequency combination is adjusted, such as adjusting 500kHz to 550kHz, and obtaining a switching frequency combination of [550kHz, 500kHz]. If the measurement data of the inertial sensor under the switching frequency combination [550kHz, 500kHz] is still abnormal, the system chip keeps the switching frequency of the first charging chip fixed at 550kHz, and based on array A and Table 2, avoids the unavailable switching frequency combination in Table 2, adjusts the switching frequency of the second charging chip, and traverses the switching frequency combination in the following order:
[0186] [550kHz, 600kHz] → [550kHz, 750kHz] → [550kHz, 300kHz] → [550kHz, 350kHz] → [550kHz, 400kHz]. If during the traversal process, the measurement data of the inertial sensor under a certain switching frequency combination is not abnormal, the traversal is stopped, so that the first charging chip and the second charging chip work with the switching frequency combination corresponding to when the traversal is stopped. If the above traversal is completed and the measurement data of the inertial sensor is still abnormal, the switching frequency of the first charging chip can be adjusted again (such as adjusting 550kHz to 600kHz) and fixed, and the switching frequency of the second charging chip can be traversed again until the measurement data of the inertial sensor is normal.
[0187] In some embodiments, the control method further comprises:
[0188] S808. After the system chip instructs the first charging chip or the second charging chip to adjust the switching frequency, the switching frequency combination of the charging chip when the measurement data of the inertial sensor is still abnormal is added to the lookup table to update the lookup table.
[0189] Exemplarily, referring to the example of S805 , the switching frequency combination [500 kHz, 750 kHz] in the traversal process is added to Table 2 to update the lookup table.
[0190] The embodiment of the present application shows a control method, in which the system chip monitors the measurement data of the inertial sensor during charging. If the measurement data is abnormal, the system chip can adjust the switching frequency of at least one of the two charging chips in the device. Specifically, the switching frequency of one of the charging chips can be adjusted while keeping the switching frequency of the other charging chip unchanged until the measurement data of the inertial sensor is normal. The above method avoids the inertial sensor being disturbed by charging and causing inaccurate measurement data, which in turn affects the relevant functions of the electronic device that relies on the measurement data of the inertial sensor, such as the device's anti-shake function for shooting.
[0191] The control methods shown in the above embodiments can be applied to multiple specific scenarios, such as a scenario where a user uses a device to take a photo while charging, or a scenario where a user uses a device to play a game while charging, etc., to ensure the stability of device-related functions. The control methods in specific scenarios are described below with reference to the accompanying drawings.
[0192] Fig. 9 The process of the control method provided in the embodiment of the present application Figure 3 .like Fig. 9 As shown, the control method includes:
[0193] S901: When the electronic device is in a charging state, in response to a user's operation of starting a target application, the electronic device detects measurement data of an inertial sensor.
[0194] In some embodiments, the target application includes but is not limited to a camera application and a game application.
[0195] S902: When the measurement data of the inertial sensor is abnormal, adjust the switching frequency of the charging chip of the electronic device to make the measurement data of the inertial sensor normal.
[0196] In some embodiments, a first charging chip of an electronic device charges a battery module of the electronic device alone. In response to a user's operation of starting a target application, the electronic device detects measurement data of an inertial sensor. When the measurement data of the inertial sensor is abnormal, the switching frequency of the first charging chip is adjusted to make the measurement data of the inertial sensor normal.
[0197] In some embodiments, a second charging chip of the electronic device charges the battery module of the electronic device separately. In response to the user's operation of starting a target application, the electronic device detects the measurement data of the inertial sensor. When the measurement data of the inertial sensor is abnormal, the switching frequency of the second charging chip is adjusted to make the measurement data of the inertial sensor normal.
[0198] In some embodiments, the third charging chip of the electronic device charges the battery module of the electronic device separately. In response to the user's operation of starting the target application, the electronic device detects the measurement data of the inertial sensor. When the measurement data of the inertial sensor is abnormal, the switching frequency of the third charging chip is adjusted to make the measurement data of the inertial sensor normal.
[0199] In some embodiments, a first charging chip and a second charging chip of an electronic device simultaneously charge a battery module of the electronic device. In response to a user's operation of starting a target application, the electronic device detects measurement data of an inertial sensor. When the measurement data of the inertial sensor is abnormal, the switching frequency of the first charging chip and / or the switching frequency of the second charging chip are adjusted to make the measurement data of the inertial sensor normal.
[0200] The adjustment of the switching frequency of the charging chip in the above-mentioned embodiments is similar to that in the above-mentioned related embodiments. For details, please refer to the above-mentioned related embodiments, which will not be expanded in this embodiment.
[0201] S903: After adjusting the switching frequency of the charging chip, the electronic device controls the movement of the camera module of the electronic device to perform optical compensation based on the measurement data of the inertial sensor.
[0202] In this embodiment, the electronic device controls the movement of the camera module of the electronic device to perform optical compensation based on the measurement data of the gyroscope sensor. For details, please refer to the existing solutions and will not be expanded here.
[0203] S904: Acquire and display the screen of the target application.
[0204] In some embodiments, the target application is a camera application, and the screen of the target application is a camera shooting screen.
[0205] In some embodiments, the target application is a game application, and the screen of the target application is a game screen.
[0206] By executing the above method steps, charging is prevented from interfering with the measurement of the inertial sensor, so that the jitter value of the target application image displayed on the electronic device display is less than a preset threshold, and the user will not perceive the jitter of the image when using the device to take pictures or play games while charging.
[0207] Based on the above method embodiments, in some embodiments, the electronic device can share the contents of the updated lookup table to the cloud server so that other electronic devices can obtain the updated lookup table, thereby instructing the system chip of each electronic device to adjust the switching frequency of the charging chip. The present application embodiment also provides an electronic device, which includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the technical solution in the above method embodiments, and its implementation principle and technical effect are similar to those in the above method embodiments, which will not be repeated here.
[0208] The present application also provides a chip, which includes a processor, which is used to call a computer program in a memory to execute the technical solution in the above embodiment, and its implementation principle and technical effect are similar to those in the above method embodiment, which will not be described in detail here.
[0209] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the technical solution in the above method embodiment is implemented. Its implementation principle and technical effect are similar to those in the above method embodiment, and will not be repeated here.
[0210] The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the functions may be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media may include computer storage media and communication media, and may also include any medium that can transfer a computer program from one place to another. The storage medium may be any target medium that can be accessed by a computer.
[0211] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that is intended to carry or store the required program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to transmit software from a website, server or other remote source, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disks and optical disks as used herein include optical disks, laser disks, optical disks, digital versatile disks (DVD), floppy disks and Blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included in the scope of computer-readable media.
[0212] An embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the above method.
[0213] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0214] The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of protection of the present invention.
Claims
1. An electronic device, characterized in that: include: A system chip, an inertial sensor, a charging chip and a battery module, wherein the system chip is connected to the inertial sensor and the charging chip respectively, and the charging chip is connected to the battery module; The inertial sensor is configured to measure data related to the motion state of the electronic device; The system chip is configured to obtain measurement data of the inertial sensor when the inertial sensor is in a working state and the electronic device is in a charging state, and to instruct the charging chip to adjust the switching frequency when the measurement data of the inertial sensor is abnormal; The charging chip is configured to control the charging of the battery module.
2. The electronic device according to claim 1, characterized in that: The inertial sensor comprises an acceleration sensor and a gyroscope sensor. The acceleration sensor and the gyroscope sensor are arranged on an integrated chip. Both the acceleration sensor and the gyroscope sensor adopt a micro-electromechanical system structure.
3. The electronic device according to claim 2, characterized in that: The integrated chip is also provided with a dedicated integrated circuit and a first analog-to-digital converter, the dedicated integrated circuit is connected to the first analog-to-digital converter, the dedicated integrated circuit is also connected to the system chip, and the first analog-to-digital converter is also connected to the inertial sensor; The first analog-to-digital converter is configured to receive measurement data from the inertial sensor, convert the measurement data of the inertial sensor into a digital signal, and transmit the digital signal to the ASIC; The ASIC is configured to transmit the digital signal to the SoC.
4. The electronic device according to any one of claims 1 to 3, characterized in that: The electronic device further comprises a second analog-to-digital converter, and the charging chip is connected to the second analog-to-digital converter; The second analog-to-digital converter is configured to monitor the switching frequency of the charging chip and report the switching frequency of the charging chip to the system chip.
5. The electronic device according to any one of claims 1 to 4, characterized in that: The charging chip comprises a first charging chip, a second charging chip and a third charging chip, and the first charging chip is connected to the second charging chip; The system chip is configured as follows: In a first charging mode, controlling the first charging chip and / or the second charging chip to operate; or In the second charging mode, the third charging chip is controlled to operate.
6. The electronic device according to claim 5, characterized in that: The second analog-to-digital converter of the electronic device includes a third analog-to-digital converter, a fourth analog-to-digital converter and a fifth analog-to-digital converter; the third analog-to-digital converter is connected to the first charging chip, the fourth analog-to-digital converter is connected to the second charging chip, and the fifth analog-to-digital converter is connected to the third charging chip; The third analog-to-digital converter is configured to monitor the switching frequency of the first charging chip and report the switching frequency of the first charging chip to the system chip; The fourth analog-to-digital converter is configured to monitor the switching frequency of the second charging chip and report the switching frequency of the second charging chip to the system chip; The fifth analog-to-digital converter is configured to monitor a switching frequency of the third charging chip and report the switching frequency of the third charging chip to the system chip.
7. A control method, characterized in that: Applied to the electronic device according to any one of claims 1 to 6, the method comprising: At a first moment, an inertial sensor of an electronic device is in a working state, and the electronic device is in a charging state, a system chip of the electronic device acquires measurement data of the inertial sensor, and when the measurement data of the inertial sensor is abnormal, the system chip instructs a charging chip of the electronic device to adjust a switching frequency; At the second moment, the inertial sensor is not in a working state, and the electronic device is in a charging state, and the system chip controls the charging chip to work at a preset switching frequency.
8. The method according to claim 7, characterized in that When the measurement data of the inertial sensor is abnormal, the system chip instructs the charging chip of the electronic device to adjust the switching frequency, including: When the measurement data of the inertial sensor is abnormal, the system chip selects a second switching frequency based on a lookup table; the lookup table includes at least one of an unavailable switching frequency and an available switching frequency of the charging chip, the second switching frequency is different from the first switching frequency of the charging chip at the first moment, and the second switching frequency is the available switching frequency; The system chip instructs the charging chip to adjust the switching frequency to the second switching frequency.
9. The method according to claim 8, characterized in that The charging chip has multiple switching frequencies, and the system chip selects a second switching frequency based on the lookup table, including: The system chip selects the switching frequency that makes the charging efficiency of the charging chip the highest as the second switching frequency after eliminating the first switching frequency and the unavailable switching frequency in the lookup table from the switching frequencies of the plurality of charging chips.
10. The method according to claim 8 or 9, characterized in that: The method further comprises: After the system chip instructs the charging chip to adjust the switching frequency to the second switching frequency, the system chip acquires measurement data of the inertial sensor; When the measurement data of the inertial sensor is still abnormal, the system chip re-instructs the charging chip to adjust the switching frequency based on the lookup table until the measurement data of the inertial sensor is normal.
11. The method according to claim 7, characterized in that The charging chip includes a first charging chip, a second charging chip and a third charging chip, and the lookup table includes at least one of the following: When the first charging chip charges the battery module of the electronic device, at least one of an unavailable switching frequency and an available switching frequency of the first charging chip; or When the second charging chip charges the battery module, at least one of an unavailable switching frequency and an available switching frequency of the second charging chip; or When the third charging chip charges the battery module, at least one of an unavailable switching frequency and an available switching frequency of the third charging chip; or When the first charging chip and the second charging chip charge the battery module at the same time, available switching frequency combinations and / or unavailable switching frequency combinations, the available switching frequency combinations include available switching frequency combinations of the first charging chip and the second charging chip, and the unavailable switching frequency combinations include unavailable switching frequency combinations of the first charging chip and the second charging chip.
12. The method according to claim 11, characterized in that When the measurement data of the inertial sensor is abnormal, the system chip instructs the charging chip of the electronic device to adjust the switching frequency, including: When the first charging chip and the second charging chip charge the battery module at the same time, the measurement data of the inertial sensor is abnormal, and when the switching frequency of the first charging chip remains unchanged, the system chip selects a third switching frequency for the second charging chip based on the available switching frequency combination and / or the unavailable switching frequency combination in the lookup table; The system chip instructs the second charging chip to adjust the switching frequency to the third switching frequency.
13. The method according to claim 12, characterized in that The method further comprises: After the system chip instructs the second charging chip to adjust the switching frequency, the system chip acquires measurement data of the inertial sensor; When the measurement data of the inertial sensor is still abnormal, while the switching frequency of the first charging chip remains unchanged, the system chip re-instructs the second charging chip to adjust the switching frequency based on the available switching frequency combination and / or the unavailable switching frequency combination in the lookup table until the measurement data of the inertial sensor is normal.
14. The method according to claim 13, characterized in that The method further comprises: If the switching frequency of the first charging chip remains unchanged, after traversing all available switching frequencies of the second charging chip, the measurement data of the inertial sensor is still abnormal, the system chip instructs the first charging chip to adjust the switching frequency; When the adjusted switching frequency of the first charging chip remains unchanged, the system chip re-instructs the second charging chip to adjust the switching frequency based on the available switching frequency combination and / or the unavailable switching frequency combination in the lookup table until the measurement data of the inertial sensor is normal.
15. The method according to any one of claims 7 to 14, characterized in that The method further comprises: The switching frequency of the charging chip or the switching frequency combination of the charging chip when the measurement data of the inertial sensor is abnormal is added to the lookup table to update the lookup table.
16. The method according to any one of claims 7 to 15, characterized in that The measurement data abnormality of the inertial sensor includes any of the following: The measurement data of the acceleration sensor of the electronic device remains unchanged, and the measurement data of the gyroscope sensor of the electronic device changes; or The measurement data of the acceleration sensor and the measurement data of the gyro sensor both change.
17. The method according to any one of claims 7 to 16, characterized in that The method further comprises: At the first moment, the inertial sensor transmits measurement data of the inertial sensor to a first analog-to-digital converter; The first analog-to-digital converter converts the measurement data of the inertial sensor into a digital signal and transmits the digital signal to the application-specific integrated circuit, wherein the digital signal is used to indicate the measurement data of the inertial sensor; The system chip of the electronic device obtains the measurement data of the inertial sensor, including: The system chip obtains the digital signal from the ASIC.
18. A control method, characterized in that: Applied to the electronic device according to any one of claims 1 to 6, the method comprising: When the electronic device is in a charging state, in response to a user's operation of starting a target application, the electronic device detects measurement data of an inertial sensor, and when the measurement data of the inertial sensor is abnormal, adjusts a switching frequency of a charging chip of the electronic device to make the measurement data of the inertial sensor normal; After adjusting the switching frequency of the charging chip, the electronic device controls the movement of the camera module of the electronic device to perform optical compensation based on the measurement data of the inertial sensor, acquires and displays the picture of the target application, and the jitter value of the picture is less than a preset threshold.
19. The method according to claim 18, characterized in that The target application is a camera application, and the screen of the target application is a camera shooting screen; or The target application is a game application, and the screen of the target application is a game screen.
20. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the electronic device performs the method according to any one of claims 7 to 17, or the method according to claim 18 or 19.
21. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 7 to 17 or the method according to claim 18 or 19 is implemented.
Citation Information
Cited By
Method and electronic device for charging battery
EP4583357A4