CN114487644A - Charge state detection method, device, electronic device and storage medium - Google Patents
Charge state detection method, device, electronic device and storage medium Download PDFInfo
- Publication number
- CN114487644A CN114487644A CN202111551535.4A CN202111551535A CN114487644A CN 114487644 A CN114487644 A CN 114487644A CN 202111551535 A CN202111551535 A CN 202111551535A CN 114487644 A CN114487644 A CN 114487644A
- Authority
- CN
- China
- Prior art keywords
- electronic device
- charging
- pulses
- state
- preset threshold
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 50
- 238000000034 method Methods 0.000 claims abstract description 87
- 238000004590 computer program Methods 0.000 claims description 20
- 230000004044 response Effects 0.000 claims description 4
- 230000008569 process Effects 0.000 description 19
- 230000006870 function Effects 0.000 description 12
- 238000004891 communication Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 238000005070 sampling Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 238000012790 confirmation Methods 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 239000003990 capacitor Substances 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 240000007594 Oryza sativa Species 0.000 description 1
- 235000007164 Oryza sativa Nutrition 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 238000012550 audit Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 238000012905 input function Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 235000009566 rice Nutrition 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/36—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/00032—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
- H02J7/00036—Charger exchanging data with battery
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0029—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
- H02J7/0036—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using connection detecting circuits
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
本申请公开了一种充电状态检测方法、装置、电子设备及存储介质,属于电路控制技术领域。应用于电子设备,该方法包括:电子设备通过中断方式采集充电集成电路输出的脉冲次数;在预设采集时长之后,获取预设采集时长内各个连续周期采集到的脉冲次数;根据各个连续周期采集到的脉冲次数以及第一预设阈值,确定电子设备的充电状态。通过中断方式采集充电IC输出的脉冲次数,并且基于不同连续周期内脉冲次数以及第一预设阈值确定充电状态,可以根据实际中断方式采集到充电IC输出的脉冲次数确定充电状态,不需要设定固定的采集周期进行采集,提高了对电子设备充电过程中充电状态检测的准确性。
The present application discloses a charging state detection method, device, electronic device and storage medium, which belong to the technical field of circuit control. Applied to an electronic device, the method includes: the electronic device collects the number of pulses output by a charging integrated circuit in an interrupt mode; after a preset collection period, acquiring the number of pulses collected in each continuous period within the preset collection period; The number of received pulses and the first preset threshold are used to determine the charging state of the electronic device. The number of pulses output by the charging IC is collected by the interrupt method, and the charging state is determined based on the number of pulses in different consecutive cycles and the first preset threshold. The collection is carried out at a fixed collection period, which improves the accuracy of the detection of the charging state during the charging of the electronic device.
Description
技术领域technical field
本申请实施例涉及电路控制技术领域,特别涉及一种充电状态检测方法、装置、电子设备及存储介质。The embodiments of the present application relate to the technical field of circuit control, and in particular, to a charging state detection method, device, electronic device, and storage medium.
背景技术Background technique
随着科学技术的进步,人们在日常生活中使用的电子设备的种类越来越多,大多数电子设备都会有充电的需求,在不同的电子设备中采用的充电方案往往也会不同。With the advancement of science and technology, people use more and more types of electronic devices in daily life. Most electronic devices have charging requirements, and the charging solutions used in different electronic devices are often different.
目前,大多数电子设备中,通常采用英集芯的网络协议(Internet Protocol,IP)系列的充电集成电路(Integrated Circuit,IC)。其中,在不同的充电模式下,充电IC的检测口输出的脉冲群也不同。比如,在不充电时,充电IC的检测口通常输出低电平信号,在充电过程中,充电IC的检测口通常输出的是1.5Hz的间隔脉冲群,在充满电时,充电IC的检测口通常输出的是连续脉冲群。在实际使用中,由于电子设备中微控制单元(Microcontroller Unit,MCU)设置的对充电IC的检测口进行采样的采样周期是固定的,由于不同充电IC的差异,在充电过程中,充电IC的检测口理论上输出的是1.5Hz的间隔脉冲群,但是实际输出的间隔脉冲群的频率有波动(比如是0.5Hz或者2Hz等),此时会出现采样周期与实际输出的间隔脉冲群相互不符合,容易出现误判的现象,降低了对电子设备充电过程中充电状态检测的准确性。At present, in most electronic devices, a charging integrated circuit (Integrated Circuit, IC) of the Internet Protocol (Internet Protocol, IP) series of Yingjixin is usually used. Among them, in different charging modes, the pulse groups output by the detection port of the charging IC are also different. For example, when not charging, the detection port of the charging IC usually outputs a low-level signal. During the charging process, the detection port of the charging IC usually outputs a 1.5Hz interval pulse group. When fully charged, the detection port of the charging IC Usually the output is a continuous burst of pulses. In actual use, since the sampling period for sampling the detection port of the charging IC set by the Microcontroller Unit (MCU) in the electronic device is fixed, due to the differences between different charging ICs, during the charging process, the The detection port theoretically outputs a 1.5Hz interval pulse group, but the frequency of the actual output interval pulse group fluctuates (for example, 0.5Hz or 2Hz, etc.), at this time, the sampling period and the actual output interval pulse group will be different from each other. In accordance with the above, misjudgment is prone to occur, which reduces the accuracy of the charging state detection during the charging process of the electronic device.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种充电状态检测方法、装置、电子设备及存储介质,可以提高按摩设备进行按摩的灵活性。Embodiments of the present application provide a charging state detection method, device, electronic device, and storage medium, which can improve the flexibility of massage by a massage device.
一方面,本申请实施例提供了一种充电状态检测方法,所述方法应用于电子设备,所述方法包括:On the one hand, an embodiment of the present application provides a method for detecting a state of charge, the method is applied to an electronic device, and the method includes:
所述电子设备通过中断方式采集充电集成电路输出的脉冲次数;The electronic device collects the number of pulses output by the charging integrated circuit in an interrupt mode;
在预设采集时长之后,获取所述预设采集时长内各个连续周期采集到的脉冲次数;After the preset collection duration, acquire the number of pulses collected in each continuous cycle within the preset collection duration;
根据所述各个连续周期采集到的脉冲次数以及第一预设阈值,确定所述电子设备的充电状态。The charging state of the electronic device is determined according to the number of pulses collected in each continuous period and the first preset threshold.
可选的,所述根据所述各个连续周期内采集到的脉冲次数以及第一预设阈值,确定所述电子设备的充电状态,包括:Optionally, determining the charging state of the electronic device according to the number of pulses collected in each continuous cycle and a first preset threshold includes:
当每一周期内采集到的脉冲次数均大于所述第一预设阈值,确定所述电子设备的充电状态是充满状态;When the number of pulses collected in each cycle is greater than the first preset threshold, it is determined that the charging state of the electronic device is a fully charged state;
当每一周期内采集到的脉冲次数均不大于所述第一预设阈值,确定所述电子设备的充电状态是未充电状态;When the number of pulses collected in each cycle is not greater than the first preset threshold, it is determined that the charging state of the electronic device is an uncharged state;
当所述各个连续周期内采集到的脉冲次数包含大于所述第一预设阈值的脉冲次数,还包含不大于所述第一预设阈值的脉冲次数,确定所述电子设备的充电状态是正在充电状态。When the number of pulses collected in each continuous cycle includes the number of pulses greater than the first preset threshold, and also includes the number of pulses not greater than the first preset threshold, it is determined that the charging state of the electronic device is charging.
可选的,所述通过中断方式采集充电集成电路输出的脉冲次数,包括:Optionally, the collection of the number of pulses output by the charging integrated circuit in an interrupt mode includes:
初始化输入输出接口为中断输入接口,所述输入输出接口用于接收所述充电集成电路输出的脉冲;The initialization input and output interface is an interrupt input interface, and the input and output interface is used for receiving the pulse output by the charging integrated circuit;
通过所述中断输入接口采集充电集成电路输出的脉冲次数。The number of pulses output by the charging integrated circuit is collected through the interrupt input interface.
可选的,在所述初始化输入输出接口为中断输入接口之前,还包括:Optionally, before the initialization input/output interface is an interrupt input interface, the method further includes:
在所述电子设备的显示屏中展示第一设置界面,所述第一设置界面中包含类型选择控件;displaying a first setting interface on the display screen of the electronic device, and the first setting interface includes a type selection control;
响应于对所述类型选择控件的触控操作,将选择的中断输入接口设置为所述输入输出接口的接口类型。In response to a touch operation on the type selection control, the selected interrupt input interface is set as the interface type of the input and output interface.
可选的,在所述根据所述各个连续周期内采集到的脉冲次数以及第一预设阈值,确定所述电子设备的充电状态之前,还包括:Optionally, before determining the charging state of the electronic device according to the number of pulses collected in each continuous period and the first preset threshold, the method further includes:
获取所述各个连续周期的周期数量;obtaining the number of cycles of each successive cycle;
当所述周期数量大于第二预设阈值时,执行所述根据所述各个连续周期内采集到的脉冲次数以及第一预设阈值,确定所述电子设备的充电状态的步骤;When the number of cycles is greater than the second preset threshold, performing the step of determining the state of charge of the electronic device according to the number of pulses collected in each continuous cycle and the first preset threshold;
当所述周期数量不大于所述第二预设阈值时,重新执行所述通过中断方式采集充电集成电路输出的脉冲次数的步骤。When the number of cycles is not greater than the second preset threshold, the step of collecting the number of pulses output by the charging integrated circuit by interrupting is performed again.
可选的,在所述在预设采集时长之后,获取所述预设采集时长内各个连续周期采集到的脉冲次数之前,还包括:Optionally, after the preset collection duration, before acquiring the number of pulses collected in each continuous cycle within the preset collection duration, the method further includes:
获取所述充电集成电路输出脉冲的输出频率;obtaining the output frequency of the output pulse of the charging integrated circuit;
根据所述输出频率,确定所述各个连续周期的周期时长以及所述预设采集时长。According to the output frequency, the cycle duration of each continuous cycle and the preset collection duration are determined.
可选的,在根据所述各个连续周期采集到的脉冲次数以及第一预设阈值,确定所述电子设备的充电状态之后,还包括;Optionally, after determining the charging state of the electronic device according to the number of pulses collected in each continuous cycle and the first preset threshold, the method further includes;
根据所述充电状态,确定状态展示参数,所述状态展示参数包括充电展示装置的展示方式以及展示内容;According to the charging state, determine a state display parameter, where the state display parameter includes a display method and display content of the charging display device;
控制所述充电展示装置按照所述状态展示参数进行展示。The charging display device is controlled to display according to the state display parameters.
一方面,本申请实施例提供了一种充电状态检测装置,所述装置应用于电子设备,所述装置包括:On the one hand, an embodiment of the present application provides an apparatus for detecting a state of charge, the apparatus is applied to an electronic device, and the apparatus includes:
脉冲采集模块,用于所述电子设备通过中断方式采集充电集成电路输出的脉冲次数;a pulse collection module, used for the electronic device to collect the number of pulses output by the charging integrated circuit by interrupting;
次数获取模块,用于在预设采集时长之后,获取所述预设采集时长内各个连续周期采集到的脉冲次数;a number acquisition module, configured to acquire, after a preset acquisition duration, the number of pulses acquired in each continuous cycle within the preset acquisition duration;
状态确定模块,用于根据所述各个连续周期采集到的脉冲次数以及第一预设阈值,确定所述电子设备的充电状态。A state determination module, configured to determine the charging state of the electronic device according to the number of pulses collected in each continuous cycle and a first preset threshold.
另一方面,本申请实施例提供了一种电子设备,包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器实现如上述一个方面所述的充电状态检测方法。On the other hand, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the above-mentioned The method for detecting a state of charge according to one aspect.
另一方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述一个方面所述的充电状态检测方法。On the other hand, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the method for detecting a state of charge according to the foregoing aspect.
另一方面,本申请实施例提供了一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如上述一个方面所述的充电状态检测方法。On the other hand, an embodiment of the present application provides a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the method for detecting a state of charge according to the above aspect.
另一方面,本申请实施例提供了一种应用发布平台,所述应用发布平台用于发布计算机程序产品,其中,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如上述一个方面所述的充电状态检测方法。On the other hand, an embodiment of the present application provides an application publishing platform, the application publishing platform is used for publishing a computer program product, wherein, when the computer program product runs on a computer, the computer is made to execute the above one The charging state detection method described in the aspect.
本申请实施例提供的技术方案可以至少包含如下有益效果:The technical solutions provided by the embodiments of the present application may at least include the following beneficial effects:
本申请提供的电子设备通过中断方式采集充电集成电路输出的脉冲次数;在预设采集时长之后,获取预设采集时长内各个连续周期采集到的脉冲次数;根据各个连续周期采集到的脉冲次数以及第一预设阈值,确定电子设备的充电状态。通过中断方式采集充电IC输出的脉冲次数,并且基于不同连续周期内脉冲次数以及第一预设阈值确定充电状态,可以根据实际中断方式采集到充电IC输出的脉冲次数确定充电状态,不需要设定固定的采集周期进行采集,提高了对电子设备充电过程中充电状态检测的准确性。The electronic device provided by the present application collects the number of pulses output by the charging integrated circuit in an interrupted manner; after the preset collection period, obtains the number of pulses collected in each continuous period within the preset collection period; according to the number of pulses collected in each continuous period and The first preset threshold determines the charging state of the electronic device. The number of pulses output by the charging IC is collected by the interrupt method, and the charging state is determined based on the number of pulses in different consecutive cycles and the first preset threshold. The charging state can be determined according to the number of pulses output by the charging IC collected by the actual interrupt method. The collection is carried out at a fixed collection period, which improves the accuracy of the detection of the charging state during the charging process of the electronic device.
附图说明Description of drawings
图1是本申请一示例性实施例提供的一种充电IC的检测口输出的脉冲群的脉冲波形示意图;1 is a schematic diagram of a pulse waveform of a pulse group output by a detection port of a charging IC according to an exemplary embodiment of the present application;
图2是本申请一示例性实施例提供的一种充电状态检测方法的方法流程图;FIG. 2 is a method flowchart of a method for detecting a state of charge provided by an exemplary embodiment of the present application;
图3是本申请一示例性实施例提供的一种充电状态检测方法的方法流程图;FIG. 3 is a method flowchart of a method for detecting a state of charge provided by an exemplary embodiment of the present application;
图4是本申请一示例性实施例涉及的一种电子设备的充电电路示意图;FIG. 4 is a schematic diagram of a charging circuit of an electronic device involved in an exemplary embodiment of the present application;
图5是本申请一示例性实施例涉及的一种设置界面的界面示意图;5 is a schematic interface diagram of a setting interface involved in an exemplary embodiment of the present application;
图6是本申请一示例性实施例提供的充电状态检测装置的结构框图;FIG. 6 is a structural block diagram of a charging state detection device provided by an exemplary embodiment of the present application;
图7是本申请一示例性实施例公开的一种电子设备的结构示意图。FIG. 7 is a schematic structural diagram of an electronic device disclosed in an exemplary embodiment of the present application.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as recited in the appended claims.
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。As used herein, "plurality" refers to two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship.
本申请提供的方案,可以用于人们在日常生活中使用按摩设备时,通过电子设备或者终端与按摩设备建立短距离无线通信连接,并控制按摩设备进行按摩,或者用户也可以直接控制按摩设备进行按摩的现实场景中,为了便于理解,下面首先对本申请实施例涉及的一些名词和应用场景进行简单介绍。The solution provided by this application can be used to establish a short-distance wireless communication connection with the massage device through an electronic device or a terminal when people use the massage device in daily life, and control the massage device to perform massage, or the user can directly control the massage device to perform a massage. In the actual scene of massage, for ease of understanding, some terms and application scenarios involved in the embodiments of the present application are briefly introduced below.
随着科学技术的发展,各种各样的电子设备已经出现在人们的日常生活中,人们可以通过终端进行工作、娱乐、学习等,当人们身体比较疲惫时,通常可以通过保健类设备对身体进行放松。比如,具有按摩功能的按摩设备作为保健类设备,在舒缓压力和缓解疲劳等方面具有显著效果,深受消费者欢迎,人们在日常生活中越来越多地使用按摩设备进行按摩、放松等。再比如,具有视频聊天功能的手机作为通信类设备,人们也可以通过手机相互聊天,通过视频沟通生活日常等。With the development of science and technology, all kinds of electronic devices have appeared in people's daily life. People can work, play, study, etc. through the terminal. to relax. For example, massage equipment with massage function, as a health care equipment, has significant effects in relieving stress and fatigue, and is very popular among consumers. People increasingly use massage equipment for massage and relaxation in their daily life. For another example, a mobile phone with a video chat function is used as a communication device, and people can also chat with each other through the mobile phone, and communicate daily life through video.
其中,各种各样的电子设备都通过电池进行供电,当电池电量不足时,往往需要用户进行充电。目前,各种电子设备中也采用MCU以及充电IC进行充电控制,两者之间相互搭配,从而在不同充电状态下切换。比如,目前电子设备中常用的充电IC是基于英集芯的IP系列,在不同的充电模式下,充电IC的检测口输出的脉冲群也不同。比如,在不充电时,充电IC的检测口通常输出低电平信号,在充电过程中,充电IC的检测口通常输出的是1.5Hz的间隔脉冲群,在充满电时,充电IC的检测口通常输出的是连续脉冲群。Among them, various electronic devices are powered by batteries, and when the battery power is insufficient, users often need to charge. At present, MCU and charging IC are also used for charging control in various electronic devices, and the two are matched with each other to switch between different charging states. For example, the charging ICs commonly used in electronic equipment are based on the IP series of Yingjixin. Under different charging modes, the pulse groups output by the detection ports of the charging ICs are also different. For example, when not charging, the detection port of the charging IC usually outputs a low-level signal. During the charging process, the detection port of the charging IC usually outputs a 1.5Hz interval pulse group. When fully charged, the detection port of the charging IC Usually the output is a continuous burst of pulses.
可选的,本申请涉及的电子设备可以是手机、平板电脑、电子书阅读器、智能眼镜、智能手表、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑、膝上型便携计算机和台式计算机等等。或者,终端也可以是智能家居设备,其中,智能家居设备可以包括但不限于智能电视、智能机器人、智能音箱、智能蓝牙耳机、按摩设备、智能冰箱、智能空调、智能电饭煲、智能传感器(比如红外传感器、光线传感器、震动传感器以及声音传感器等)、智能净水器等固定安装或者小范围移动的设备。Optionally, the electronic device involved in the present application may be a mobile phone, a tablet computer, an e-book reader, smart glasses, a smart watch, an MP3 player (Moving Picture Experts Group Audio Layer III, moving picture expert compression standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV) Players, Notebooks, Laptops and Desktops, etc. Alternatively, the terminal may also be a smart home device, where the smart home device may include, but is not limited to, smart TVs, smart robots, smart speakers, smart Bluetooth headsets, massage devices, smart refrigerators, smart air conditioners, smart rice cookers, smart sensors (such as infrared Sensors, light sensors, vibration sensors and sound sensors, etc.), smart water purifiers and other fixed installation or small-scale mobile devices.
可选的,上述电子设备还可以与其他设备之间建立通信连接,该通信连接是有线网络或无线网络。Optionally, the above electronic device may also establish a communication connection with other devices, where the communication connection is a wired network or a wireless network.
可选的,上述的无线网络或有线网络使用标准通信技术和/或协议。网络通常为因特网、但也可以是任何网络,包括但不限于局域网(Local Area Network,LAN)、城域网(Metropolitan Area Network,MAN)、广域网(Wide Area Network,WAN)、移动、有线或者无线网络、专用网络或者虚拟专用网络的任何组合。在一些实施例中,使用包括超文本标记语言(Hyper Text Mark-up Language,HTML)、可扩展标记语言(Extensible MarkupLanguage,XML)等的技术和/或格式来代表通过网络交换的数据。此外还可以使用诸如安全套接字层(Secure Socket Layer,SSL)、传输层安全(Transport Layer Security,TLS)、虚拟专用网络(Virtual Private Network,VPN)、网际协议安全(Internet ProtocolSecurity,IPsec)等常规加密技术来加密所有或者一些链路。在另一些实施例中,还可以使用定制和/或专用数据通信技术取代或者补充上述数据通信技术。Optionally, the above-mentioned wireless network or wired network uses standard communication technologies and/or protocols. The network is usually the Internet, but can be any network, including but not limited to Local Area Network (LAN), Metropolitan Area Network (MAN), Wide Area Network (WAN), mobile, wired or wireless Any combination of network, private network, or virtual private network. In some embodiments, data exchanged over a network is represented using technologies and/or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), and the like. In addition, you can also use methods such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec), etc. Conventional encryption techniques to encrypt all or some of the links. In other embodiments, custom and/or dedicated data communication techniques may also be used in place of or in addition to the data communication techniques described above.
请参考图1,其示出了本申请一示例性实施例提供的一种充电IC的检测口输出的脉冲群的脉冲波形示意图。如图1所示,其中包含了各个脉冲101,采样示例周期102。Please refer to FIG. 1 , which shows a schematic diagram of a pulse waveform of a pulse group output by a detection port of a charging IC provided by an exemplary embodiment of the present application. As shown in FIG. 1, each
如上述图1所示,在实际使用中,由于电子设备中MCU设置的对充电IC的检测口进行采样的采样周期是固定的(采样示例周期102),该采样周期是对应理论上充电IC的检测口输出的是1.5Hz的间隔脉冲群采样的,但是由于不同充电IC的差异,在充电过程中,上述图1中各个脉冲101之间的频率也可能是3.0Hz,即,充电IC的检测口输出的是3.0Hz的间隔脉冲群,此时会出现采样周期与实际输出的间隔脉冲群相互不符合,容易出现误判的现象。As shown in Figure 1 above, in actual use, since the sampling period for sampling the detection port of the charging IC set by the MCU in the electronic device is fixed (sample sampling period 102), the sampling period corresponds to the theoretical charging IC The output of the detection port is sampled by 1.5Hz interval pulse group, but due to the difference of different charging ICs, during the charging process, the frequency between each
虽然目前在充电IC中可以通过增加滤波电容和电平转换电路的方式,对充电IC检测口输出的脉冲进行过滤,在采集过程中,不需要采集周期小于设置的固定周期的小脉冲群,从而提高准确性,但是该方案也增加了硬件成本,增加了电路设计的复杂程度,并且应用的充电场景不够灵活,对应获取到的充电状态也不够准确,不能从本质上解决问题。Although at present in the charging IC, the pulse output from the charging IC detection port can be filtered by adding a filter capacitor and a level conversion circuit. Improve the accuracy, but this solution also increases the hardware cost, increases the complexity of the circuit design, and the charging scenario of the application is not flexible enough, and the corresponding obtained charging state is not accurate enough, so it cannot fundamentally solve the problem.
为了避免上述技术方案中存在的问题,提高对电子设备充电过程中充电状态检测的准确性。本申请提供了一种充电状态检测方法,可以通过中断的方式进行检测,并结合不同连续周期内采集到的脉冲次数确定充电状态,避免了设置固定周期进行采集,实现对任意中充电场景下及时获取充电状态的效果,扩展了应用场景,提高了充电状态检测的准确性。In order to avoid the problems existing in the above technical solutions, the accuracy of the state of charge detection during the charging process of the electronic device is improved. The present application provides a charging state detection method, which can be detected by means of interruption, and combined with the number of pulses collected in different continuous cycles to determine the charging state, which avoids setting a fixed period for collection, and realizes timely detection of any medium charging scene. The effect of obtaining the state of charge expands the application scenarios and improves the accuracy of state-of-charge detection.
请参考图2,其示出了本申请一示例性实施例提供的一种充电状态检测方法的方法流程图。该方法可以用于上述的场景架构中,由该场景中的电子设备执行,如图2所示,该充电状态检测方法可以包括如下几个步骤。Please refer to FIG. 2 , which shows a method flowchart of a charging state detection method provided by an exemplary embodiment of the present application. The method can be used in the above-mentioned scenario architecture and executed by the electronic device in the scenario. As shown in FIG. 2 , the charging state detection method can include the following steps.
步骤201,电子设备通过中断方式采集充电集成电路输出的脉冲次数。In
其中,电子设备中包含MCU以及充电IC,MCU与充电IC电性连接,在充电IC对电池进行充电时,MCU通过终端的方式采集充电IC的检测口输出的脉冲信号,获取充电IC的脉冲次数。需要说明的是,本申请除了中断方式之外,也可以采用间隔轮巡的方式采集,其后续步骤与中断方式类似,此处不再赘述。Among them, the electronic equipment includes MCU and charging IC. The MCU is electrically connected to the charging IC. When the charging IC charges the battery, the MCU collects the pulse signal output by the detection port of the charging IC through the terminal, and obtains the number of pulses of the charging IC. . It should be noted that, in addition to the interrupt mode, the present application may also adopt the interval polling mode for collection, and the subsequent steps are similar to the interrupt mode, which will not be repeated here.
步骤202在预设采集时长之后,获取预设采集时长内各个连续周期采集到的脉冲次数。Step 202 acquires the number of pulses collected in each continuous period within the preset collection time period after the preset collection time period.
可选的,电子设备在采集脉冲次数的过程中,在预设采集时长之后,获取预设采集时长内各个连续周期采集到的脉冲次数。其中,预设采集时长可以由开发人员预先在电子设备中设定。比如,预设采集时长可以是200毫秒,在200毫秒内包含有20个周期,电子设备获取各个连续周期内采集到的脉冲次数,即,电子设备会获取到20个周期对应的20个脉冲次数。Optionally, in the process of collecting the number of pulses, the electronic device acquires the number of pulses collected in each continuous period within the preset collection time after the preset collection time. The preset collection duration may be pre-set by the developer in the electronic device. For example, the preset collection duration can be 200 milliseconds, and 20 cycles are included in 200 milliseconds. The electronic device obtains the number of pulses collected in each continuous cycle, that is, the electronic device obtains 20 pulses corresponding to 20 cycles. .
步骤203,根据各个连续周期采集到的脉冲次数以及第一预设阈值,确定电子设备的充电状态。Step 203: Determine the charging state of the electronic device according to the number of pulses collected in each continuous cycle and the first preset threshold.
可选的,电子设备根据上述采集到的脉冲次数以及第一预设阈值,确定电子设备的充电状态。其中,第一预设阈值也可以由开发人员预先在电子设备中设定。在本申请中,电子设通过获取每个周期内的脉冲次数,并且对每个周期内的脉冲次数进行检测,当某个周期的脉冲次数不大于第一预设阈值时,将该周期看做是无效周期,当某个周期的脉冲次数大于第一预设阈值时,将该周期看做是有效周期,并结合有效周期的数量,确定电子设备的充电状态。Optionally, the electronic device determines the charging state of the electronic device according to the collected pulse times and the first preset threshold. Wherein, the first preset threshold may also be preset in the electronic device by the developer. In this application, the electronic device obtains the number of pulses in each cycle and detects the number of pulses in each cycle. When the number of pulses in a certain cycle is not greater than the first preset threshold, the cycle is regarded as is an invalid period. When the number of pulses in a certain period is greater than the first preset threshold, the period is regarded as an effective period, and the charging state of the electronic device is determined in combination with the number of effective periods.
综上所述,本申请提供的电子设备通过中断方式采集充电集成电路输出的脉冲次数;在预设采集时长之后,获取预设采集时长内各个连续周期采集到的脉冲次数;根据各个连续周期采集到的脉冲次数以及第一预设阈值,确定电子设备的充电状态。通过中断方式采集充电IC输出的脉冲次数,并且基于不同连续周期内脉冲次数以及第一预设阈值确定充电状态,可以根据实际中断方式采集到充电IC输出的脉冲次数确定充电状态,不需要设定固定的采集周期进行采集,提高了对电子设备充电过程中充电状态检测的准确性。To sum up, the electronic device provided by the present application collects the number of pulses output by the charging integrated circuit by means of interruption; after the preset collection period, obtains the number of pulses collected in each continuous period within the preset collection period; The number of received pulses and the first preset threshold are used to determine the charging state of the electronic device. The number of pulses output by the charging IC is collected by the interrupt method, and the charging state is determined based on the number of pulses in different consecutive cycles and the first preset threshold. The charging state can be determined according to the number of pulses output by the charging IC collected by the actual interrupt method. The collection is carried out at a fixed collection period, which improves the accuracy of the detection of the charging state during the charging process of the electronic device.
在一种可能实现的方式中,电子设备需要将MCU的输入输出端口初始化,将输入输出接口初始化为中断输入接口,通过中断方式对充电IC的检测口进行采集,从而实现对任意中充电场景下及时获取充电状态的效果,扩展应用场景,提高了充电状态检测的准确性。In a possible implementation method, the electronic device needs to initialize the input and output ports of the MCU, initialize the input and output ports as interrupt input ports, and collect the detection ports of the charging IC through the interrupt method, so as to realize the charging in any medium charging scenario. The effect of the charging state is obtained in time, the application scenarios are expanded, and the accuracy of the charging state detection is improved.
请参考图3,其示出了本申请一示例性实施例提供的一种充电状态检测方法的方法流程图。该方法可以用于上述的场景架构中,由该场景中的电子设备执行,如图3所示,该充电状态检测方法可以包括如下几个步骤。Please refer to FIG. 3 , which shows a method flowchart of a charging state detection method provided by an exemplary embodiment of the present application. The method can be used in the above-mentioned scenario architecture and executed by the electronic device in the scenario. As shown in FIG. 3 , the charging state detection method can include the following steps.
步骤301,初始化输入输出接口为中断输入接口,输入输出接口用于接收充电集成电路输出的脉冲。
请参考图4,其示出了本申请一示例性实施例涉及的一种电子设备的充电电路示意图。如图4所示,其中包含了MCU 401,充电IC 402,输入输出(Input/Output,I/O)接口403。比如,电子设备在充电器连接后,可以初始化MCU 401上的I/O接口403,通过I/O接口403检测充电IC 402输出的脉冲。或者,电子设备也可以在关机重启的过程中,将MCU 401上的I/O接口403初始化为中断输入接口,通过I/O接口403检测充电IC 402输出的脉冲。Please refer to FIG. 4 , which shows a schematic diagram of a charging circuit of an electronic device according to an exemplary embodiment of the present application. As shown in FIG. 4 , an
在一种可能实现的方式中,在电子设备的显示屏中展示第一设置界面,第一设置界面中包含类型选择控件;响应于对类型选择控件的触控操作,将选择的中断输入接口设置为输入输出接口的接口类型。请参考图5,其示出了本申请一示例性实施例涉及的一种设置界面的界面示意图。如图5所示,在设置界面500中包含了各种接口类型501,类型选择控件502,确认控件503以及取消控件504。用户可以通过点击设置界面500中某个接口类型对应的类型选择控件502,并触发确认控件503,从而使得电子设备选中该接口类型,并将I/O接口在上述初始化过程中设置为选中的接口类型。比如,上述选中的接口类型是终端输入接口,那么,在设置界面触发确认控件后,或者,在充电器连接后,或者,电子设备重启后,可以初始化该接口为中断输入接口,从而接收充电IC输出的脉冲。In a possible implementation manner, a first setting interface is displayed on the display screen of the electronic device, and the first setting interface includes a type selection control; in response to a touch operation on the type selection control, the selected interrupt input interface is set It is the interface type of the input and output interface. Please refer to FIG. 5 , which shows a schematic interface diagram of a setting interface involved in an exemplary embodiment of the present application. As shown in FIG. 5 , the setting
步骤302,通过中断输入接口采集充电集成电路输出的脉冲次数。Step 302: Collect the number of pulses output by the charging integrated circuit through the interrupt input interface.
即,电子设备在充电过程中,充电IC向检测口输出脉冲,电子设备通过上述MCU的中断输入接口按照中断方式采集充电IC输出的脉冲次数。That is, during the charging process of the electronic device, the charging IC outputs pulses to the detection port, and the electronic device collects the number of pulses output by the charging IC in an interrupted manner through the interrupt input interface of the MCU.
步骤303,在预设采集时长之后,获取预设采集时长内各个连续周期采集到的脉冲次数。Step 303: After the preset collection duration, acquire the number of pulses collected in each continuous cycle within the preset collection duration.
可选的,电子设备在上述初始化MCU的I/O接口之后,按照每个周期对充电IC的检测口输出的脉冲进行采集,获取每个周期内采集到的脉冲次数,在本步骤中,在预设采集时长之后,获取该采集时长内各个连续周期的脉冲次数。即,预设采集周期可以看做一个大周期,在该大周期内包含多个小周期,电子设备的MCU可以记录每个小周期内采集到的脉冲次数,在大周期时间达到时,电子设备获取每个小周期内记录的脉冲次数。Optionally, after initializing the I/O interface of the MCU, the electronic device collects the pulses output by the detection port of the charging IC according to each cycle, and obtains the number of pulses collected in each cycle. After the preset collection duration, the number of pulses in each continuous period within the collection duration is acquired. That is, the preset acquisition cycle can be regarded as a large cycle, and the large cycle includes multiple small cycles. The MCU of the electronic device can record the number of pulses collected in each small cycle. When the large cycle time is reached, the electronic device Get the number of pulses recorded in each small period.
在一种可能实现的方式中,在本步骤之前,电子设备还可以获取充电集成电路输出脉冲的输出频率;并根据输出频率,确定各个连续周期的周期时长以及预设采集时长。即,电子设备在通过中断方式采集脉冲次数之前,通过其他端口获取充电IC输出脉冲的输出频率,基于该输出频率,计算各个连续周期的周期时长以及预设采集时长。比如,电子设备根据输出频率(f),获取输出周期(t=1/f),并根据(N*t)获取周期时长,N为正整数,预设采集时长可以是(M*t),M是N的整倍数。以f=2.0Hz,N=1,M=10举例,电子设备获取到充电IC输出脉冲的输出频率后,可获取到输出周期是0.5秒,那么,各个连续周期的周期时长也是0.5秒,预设采集时长是5秒。In a possible implementation manner, before this step, the electronic device may also obtain the output frequency of the output pulse of the charging integrated circuit; and determine the period duration of each continuous cycle and the preset collection duration according to the output frequency. That is, the electronic device obtains the output frequency of the output pulse of the charging IC through other ports before collecting the number of pulses through the interrupt method, and calculates the cycle duration of each continuous cycle and the preset collection duration based on the output frequency. For example, the electronic device obtains the output cycle (t=1/f) according to the output frequency (f), and obtains the cycle duration according to (N*t), where N is a positive integer, and the preset collection duration can be (M*t), M is an integer multiple of N. Taking f=2.0Hz, N=1, M=10 as an example, after the electronic device obtains the output frequency of the output pulse of the charging IC, the output cycle can be obtained to be 0.5 seconds, then the cycle duration of each continuous cycle is also 0.5 seconds. Set the acquisition time to 5 seconds.
步骤304,根据各个连续周期采集到的脉冲次数以及第一预设阈值,确定电子设备的充电状态。Step 304: Determine the charging state of the electronic device according to the number of pulses collected in each continuous cycle and the first preset threshold.
可选的,本申请中的电子设备通过对每个连续周期内各自的脉冲次数进行检测,根据每个周期内各自的脉冲次数与第一预设阈值的大小关系,确定电子设备的充电状态。当每一周期内采集到的脉冲次数均大于第一预设阈值,确定电子设备的充电状态是充满状态;当每一周期内采集到的脉冲次数均不大于第一预设阈值,确定电子设备的充电状态是未充电状态;当各个连续周期内采集到的脉冲次数包含大于第一预设阈值的脉冲次数,还包含不大于第一预设阈值的脉冲次数,确定电子设备的充电状态是正在充电状态。Optionally, the electronic device in the present application determines the state of charge of the electronic device by detecting the number of pulses in each continuous cycle, and according to the relationship between the number of pulses in each cycle and the first preset threshold. When the number of pulses collected in each cycle is greater than the first preset threshold, it is determined that the charging state of the electronic device is a fully charged state; when the number of pulses collected in each cycle is not greater than the first preset threshold, it is determined that the electronic device is in a fully charged state. When the number of pulses collected in each continuous cycle includes the number of pulses greater than the first preset threshold, and also includes the number of pulses not greater than the first preset threshold, it is determined that the charging state of the electronic device is charging.
其中,第一预设阈值可以由开发人员或者运维人员预先设置在电子设备中。比如,第一预设阈值是10个脉冲,如果每一周期内采集到的脉冲次数均大于10个脉冲,确定电子设备的充电状态是充满状态;当每一周期内采集到的脉冲次数均不大于10个脉冲,确定电子设备的充电状态是未充电状态;当各个连续周期内采集到的脉冲次数包含大于10个脉冲的脉冲次数,还包含不大于10个脉冲的脉冲次数,确定电子设备的充电状态是正在充电状态。The first preset threshold may be preset in the electronic device by developers or operation and maintenance personnel. For example, the first preset threshold is 10 pulses, if the number of pulses collected in each cycle is greater than 10 pulses, it is determined that the charging state of the electronic device is a full state; when the number of pulses collected in each cycle is not More than 10 pulses, it is determined that the charging state of the electronic device is the uncharged state; when the number of pulses collected in each continuous cycle includes the number of pulses greater than 10 pulses, and the number of pulses not greater than 10 pulses, determine the number of pulses of the electronic device. The charging state is a charging state.
即,电子设备可以通过对每个连续周期内各自的脉冲次数进行检测,根据每个周期内各自的脉冲次数与第一预设阈值的大小关系,获取各个周期对应的脉冲次数大于第一预设阈值的各个周期的周期数量,并根据周期数量,确定电子设备的充电状态。或者,电子设备也可以通过对每个连续周期内各自的脉冲次数进行检测,根据每个周期内各自的脉冲次数与第一预设阈值的大小关系,获取各个周期对应的脉冲次数大于第一预设阈值的各个周期的周期数量所占各个周期总数量的比值,并根据该比值,确定电子设备的充电状态。That is, the electronic device can detect the respective number of pulses in each continuous cycle, and according to the magnitude relationship between the respective number of pulses in each cycle and the first preset threshold, obtain that the number of pulses corresponding to each cycle is greater than the first preset threshold. The number of cycles of each cycle of the threshold value, and according to the number of cycles, the state of charge of the electronic device is determined. Alternatively, the electronic device can also detect the number of pulses in each continuous cycle, and obtain the number of pulses corresponding to each cycle greater than the first preset threshold according to the relationship between the number of pulses in each cycle and the first preset threshold. The ratio of the number of cycles in each cycle of the threshold to the total number of cycles is set, and the state of charge of the electronic device is determined according to the ratio.
可选的,上述周期数量与电子设备的充电状态可以存在对应关系表。比如,请参考表1,其示出了本申请一示例性实施例涉及的一种周期数量与电子设备的充电状态对应关系表。Optionally, a correspondence table may exist between the number of cycles and the charging state of the electronic device. For example, please refer to Table 1, which shows a table of correspondence between the number of cycles and the state of charge of the electronic device involved in an exemplary embodiment of the present application.
表1Table 1
如上述表1所示,电子审根据每个周期内各自的脉冲次数与第一预设阈值的大小关系,获取各个周期对应的脉冲次数大于第一预设阈值的各个周期的周期数量,并根据周期数量确定数量范围,从而查询表1获取对应的充电状态。比如,第一预设阈值是10次,上述预设采集时长内包含有10个连续周期,电子设备采集到的10个连续周期内各自的脉冲次数是[11,9,15,12,8,13,17,18,15,12],电子设备对每个周期对应的脉冲次数进行判断,确定各个周期对应的脉冲次数大于第一预设阈值的各个周期的周期数量是8个,如果8处于第一数量范围内,电子设备可以基于该周期数量获取到电子设备的充电状态是充电状态一。As shown in Table 1 above, according to the relationship between the number of pulses in each cycle and the first preset threshold, the electronic audit obtains the number of cycles in each cycle in which the number of pulses corresponding to each cycle is greater than the first preset threshold, and according to The number of cycles determines the number range, so that the corresponding charging state can be obtained by querying Table 1. For example, the first preset threshold is 10 times, the above preset collection duration includes 10 consecutive cycles, and the number of pulses in the 10 consecutive cycles collected by the electronic device is [11, 9, 15, 12, 8, 13, 17, 18, 15, 12], the electronic device judges the number of pulses corresponding to each cycle, and determines that the number of cycles corresponding to each cycle is greater than the first preset threshold. The number of cycles is 8, if 8 is in Within the first number range, the electronic device may acquire, based on the number of cycles, that the charging state of the electronic device is the charging state one.
需要说明的是,上述根据每个周期内各自的脉冲次数与第一预设阈值的大小关系,获取各个周期对应的脉冲次数大于第一预设阈值的各个周期的周期数量所占各个周期总数量的比值,并根据该比值,确定电子设备的充电状态的方式可以类似于上述数量范围的方式,此处不再赘述。It should be noted that, according to the relationship between the number of pulses in each cycle and the first preset threshold, the number of cycles in which the number of pulses corresponding to each cycle is greater than the first preset threshold accounts for the total number of cycles in each cycle. The ratio of , and according to the ratio, the method of determining the state of charge of the electronic device may be similar to the above-mentioned quantity range, which will not be repeated here.
在一种可能实现的方式中,在上述步骤304之前,电子设备还可以获取各个连续周期的周期数量;当周期数量大于第二预设阈值时,执行根据各个连续周期内采集到的脉冲次数以及第一预设阈值,确定电子设备的充电状态的步骤;当周期数量不大于第二预设阈值时,重新执行通过中断方式采集充电集成电路输出的脉冲次数的步骤。其中,第二预设阈值也可以由开发人员或者运维人员预先设置在电子设备中。In a possible implementation manner, before the
即,电子设备可以对预设采集时长内的各个周期数量进行检测,如果发现在该预设采集时长内周期数量大于第二预设阈值时,执行步骤304,否则说明预设采集时长内采集到的各个周期数量不足,说明电子设备的充电过程中硬件或者软件出现问题,导致在预设采集时长内采集到的周期数量不足,电子设备可以继续通过中断方式采集充电集成电路输出的脉冲次数,并在下一次预设采集时长之后,获取各个周期的脉冲次数。That is, the electronic device can detect the number of cycles within the preset collection duration, and if it is found that the number of cycles within the preset collection duration is greater than the second preset threshold,
在一种可能实现的方式中,当周期数量不大于第二预设阈值时,电子设备在重新执行通过中断方式采集充电集成电路输出的脉冲次数的步骤的过程中,电子设备也可以将这两次的预设采集时长合并,将电子设备记录到的各个周期的脉冲次数都作为此次确定电子设备的充电状态的参数。比如,第二预设阈值是15次,在第一预设采集时长内,电子设备获取到的周期数量是10,电子设备在重新执行通过中断方式采集充电集成电路输出的脉冲次数,并且在第二次预设采集时长内获取到的周期数量是15次,那么,此次可以将这两次的预设采集时长合并,将电子设备记录到的各个周期的脉冲次数(25次)都作为此次确定电子设备的充电状态的参数,执行上述确定充电状态的步骤。In a possible implementation manner, when the number of cycles is not greater than the second preset threshold, in the process of the electronic device re-executing the step of collecting the number of pulses output by the charging integrated circuit by interrupting, the electronic device can also The preset acquisition durations of the second time are combined, and the number of pulses in each cycle recorded by the electronic device is used as the parameter for determining the charging state of the electronic device this time. For example, the second preset threshold is 15 times, and the number of cycles acquired by the electronic device is 10 within the first preset collection duration. The number of cycles acquired in the second preset acquisition duration is 15 times, then, this time, the two preset acquisition durations can be combined, and the number of pulses (25 times) in each cycle recorded by the electronic device is used as this. Next, determine the parameters of the state of charge of the electronic device, and perform the above steps of determining the state of charge.
步骤305,根据充电状态,确定状态展示参数,状态展示参数包括充电展示装置的展示方式以及展示内容。
可选的,电子设备根据确定出的充电状态,确定状态展示参数,状态展示参数包括充电展示装置的展示方式以及展示内容。其中,展示方式可以是通过灯光展示,通过语音播放或者通过图标展示等。展示内容可以是电池正在充电图标,也可以是正在充电的文字内容等。比如,电子设备可以是具有显示屏的按摩仪,充电展示装置是显示屏,当电子设备的充电状态是正在充电状态时,显示屏可以展示动画效果,并提示正在充电的文字内容,当电子设备的充电状态是充满状态时,显示屏可以展示充满状态对应的图标,并提示已充满的文字内容,当电子设备的充电状态是未充电状态时,显示屏可以展示未充电状态对应的图标,并提示未充电状态的文字内容,本申请对具体展示的形式并不加以限定。Optionally, the electronic device determines a state display parameter according to the determined charging state, and the state display parameter includes a display method and display content of the charging display device. Among them, the display method may be display by light, playback by voice, or display by icon, etc. The displayed content can be an icon of the battery being charged, or text content that is being charged. For example, the electronic device can be a massager with a display screen, and the charging display device is a display screen. When the charging state of the electronic device is in the charging state, the display screen can display animation effects and prompt the text content that is being charged. When the charging status of the electronic device is full, the display screen can display the icon corresponding to the full status and prompt the full text content. When the charging status of the electronic device is uncharged, the display screen can display the icon corresponding to the uncharged status, and The present application does not limit the specific display form of the text content indicating the uncharged state.
步骤306,控制充电展示装置按照状态展示参数进行展示。
即,电子设备可以控制对应的充电展示装置将上述状态展示参数进行展示,从而让用户得知当前电子设备是否在充电,及时了解电子设备的充电状态。That is, the electronic device can control the corresponding charging display device to display the above state display parameters, so as to let the user know whether the current electronic device is being charged, and to know the charging state of the electronic device in time.
综上所述,本申请提供的电子设备通过中断方式采集充电集成电路输出的脉冲次数;在预设采集时长之后,获取预设采集时长内各个连续周期采集到的脉冲次数;根据各个连续周期采集到的脉冲次数以及第一预设阈值,确定电子设备的充电状态。通过中断方式采集充电IC输出的脉冲次数,并且基于不同连续周期内脉冲次数以及第一预设阈值确定充电状态,可以根据实际中断方式采集到充电IC输出的脉冲次数确定充电状态,不需要设定固定的采集周期进行采集,提高了对电子设备充电过程中充电状态检测的准确性。To sum up, the electronic device provided by the present application collects the number of pulses output by the charging integrated circuit by means of interruption; after the preset collection period, the number of pulses collected in each continuous period within the preset collection period is acquired; The number of received pulses and the first preset threshold are used to determine the charging state of the electronic device. The number of pulses output by the charging IC is collected by the interrupt method, and the charging state is determined based on the number of pulses in different consecutive cycles and the first preset threshold. The collection is carried out at a fixed collection period, which improves the accuracy of the detection of the charging state during the charging of the electronic device.
另外,本申请不需要采用滤波电容和电平转换电路,降低了成本,通过频率获取对应的预设采集时长以及采集周期,对不同批次芯片的差异做了预留,可以适配和容忍不同芯片的输出差异,检测更加准确和灵活。In addition, this application does not need to use filter capacitors and level conversion circuits, which reduces the cost. The corresponding preset acquisition duration and acquisition cycle are obtained through the frequency, and the differences between different batches of chips are reserved, which can be adapted and tolerated. The output difference of the chip is more accurate and flexible in detection.
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。The following are apparatus embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
请参考图6,其示出了本申请一示例性实施例提供的充电状态检测装置的结构框图。该充电状态检测装置可以用于电子设备中,以执行图2或者图3所示实施例提供的方法中由电子设备执行的全部或者部分步骤。该充电状态检测装置600可以包括如下几个模块:Please refer to FIG. 6 , which shows a structural block diagram of a charging state detection apparatus provided by an exemplary embodiment of the present application. The charging state detection apparatus can be used in an electronic device to perform all or part of the steps performed by the electronic device in the method provided in the embodiment shown in FIG. 2 or FIG. 3 . The charging state detection device 600 may include the following modules:
脉冲采集模块601,用于所述电子设备通过中断方式采集充电集成电路输出的脉冲次数;The
次数获取模块602,用于在预设采集时长之后,获取所述预设采集时长内各个连续周期采集到的脉冲次数;A
状态确定模块603,用于根据所述各个连续周期采集到的脉冲次数以及第一预设阈值,确定所述电子设备的充电状态。The
综上所述,本申请提供的电子设备通过中断方式采集充电集成电路输出的脉冲次数;在预设采集时长之后,获取预设采集时长内各个连续周期采集到的脉冲次数;根据各个连续周期采集到的脉冲次数以及第一预设阈值,确定电子设备的充电状态。通过中断方式采集充电IC输出的脉冲次数,并且基于不同连续周期内脉冲次数以及第一预设阈值确定充电状态,可以根据实际中断方式采集到充电IC输出的脉冲次数确定充电状态,不需要设定固定的采集周期进行采集,提高了对电子设备充电过程中充电状态检测的准确性。To sum up, the electronic device provided by the present application collects the number of pulses output by the charging integrated circuit by means of interruption; after the preset collection period, the number of pulses collected in each continuous period within the preset collection period is acquired; The number of received pulses and the first preset threshold are used to determine the charging state of the electronic device. The number of pulses output by the charging IC is collected by the interrupt method, and the charging state is determined based on the number of pulses in different consecutive cycles and the first preset threshold. The collection is carried out at a fixed collection period, which improves the accuracy of the detection of the charging state during the charging of the electronic device.
可选的,所述状态确定模块603,包括:第一确定单元,第二确定单元和第三确定单元;Optionally, the
所述第一确定单元,用于当每一周期内采集到的脉冲次数均大于所述第一预设阈值,确定所述电子设备的充电状态是充满状态;The first determining unit is configured to determine that the charging state of the electronic device is a fully charged state when the number of pulses collected in each cycle is greater than the first preset threshold;
所述第二确定单元,用于当每一周期内采集到的脉冲次数均不大于所述第一预设阈值,确定所述电子设备的充电状态是未充电状态;the second determination unit, configured to determine that the charging state of the electronic device is an uncharged state when the number of pulses collected in each cycle is not greater than the first preset threshold;
所述第三确定单元,用于当所述各个连续周期内采集到的脉冲次数包含大于所述第一预设阈值的脉冲次数,还包含不大于所述第一预设阈值的脉冲次数,确定所述电子设备的充电状态是正在充电状态。The third determining unit is configured to determine when the number of pulses collected in each continuous cycle includes the number of pulses greater than the first preset threshold, and also includes the number of pulses not greater than the first preset threshold The charging state of the electronic device is a charging state.
可选的,所述脉冲采集模块601,包括:初始化单元和采集单元;Optionally, the
所述初始化单元,用于初始化输入输出接口为中断输入接口,所述输入输出接口用于接收所述充电集成电路输出的脉冲;The initialization unit is used to initialize the input and output interface as an interrupt input interface, and the input and output interface is used for receiving the pulse output by the charging integrated circuit;
所述采集单元,用于通过所述中断输入接口采集充电集成电路输出的脉冲次数。The collection unit is configured to collect the number of pulses output by the charging integrated circuit through the interrupt input interface.
可选的,所述装置还包括:Optionally, the device further includes:
界面展示模块,用于在所述初始化输入输出接口为中断输入接口之前,在所述电子设备的显示屏中展示第一设置界面,所述第一设置界面中包含类型选择控件;an interface display module, configured to display a first setting interface on the display screen of the electronic device before the initialization input/output interface is an interrupt input interface, and the first setting interface includes a type selection control;
接口设置模块,用于响应于对所述类型选择控件的触控操作,将选择的中断输入接口设置为所述输入输出接口的接口类型。The interface setting module is configured to set the selected interrupt input interface as the interface type of the input and output interface in response to the touch operation on the type selection control.
可选的,所述装置还包括:Optionally, the device further includes:
数量获取模块,用于在所述根据所述各个连续周期内采集到的脉冲次数以及第一预设阈值,确定所述电子设备的充电状态之前,获取所述各个连续周期的周期数量;a quantity acquisition module, configured to acquire the number of cycles of each continuous cycle before determining the state of charge of the electronic device according to the number of pulses collected in each continuous cycle and the first preset threshold;
第一执行模块,用于当所述周期数量大于第二预设阈值时,执行所述根据所述各个连续周期内采集到的脉冲次数以及第一预设阈值,确定所述电子设备的充电状态的步骤;a first execution module, configured to execute the determining of the charging state of the electronic device according to the number of pulses collected in each continuous cycle and the first preset threshold when the number of cycles is greater than a second preset threshold A step of;
第二执行模块,用于当所述周期数量不大于所述第二预设阈值时,重新执行所述通过中断方式采集充电集成电路输出的脉冲次数的步骤。The second execution module is configured to re-execute the step of collecting the number of pulses output by the charging integrated circuit by interrupting when the number of cycles is not greater than the second preset threshold.
可选的,所述装置还包括:Optionally, the device further includes:
频率获取模块,用于在所述在预设采集时长之后,获取所述预设采集时长内各个连续周期采集到的脉冲次数之前,获取所述充电集成电路输出脉冲的输出频率;a frequency acquisition module, configured to acquire the output frequency of the output pulse of the charging integrated circuit before acquiring the number of pulses collected in each continuous cycle within the preset acquisition period after the preset acquisition period;
时长获取模块,用于根据所述输出频率,确定所述各个连续周期的周期时长以及所述预设采集时长。A duration acquisition module, configured to determine the cycle duration of each continuous cycle and the preset collection duration according to the output frequency.
可选的,所述装置还包括;Optionally, the device further includes;
参数确定模块,用于在根据所述各个连续周期采集到的脉冲次数以及第一预设阈值,确定所述电子设备的充电状态之后,根据所述充电状态,确定状态展示参数,所述状态展示参数包括充电展示装置的展示方式以及展示内容;A parameter determination module, configured to determine the state of charge of the electronic device according to the number of pulses collected in each continuous cycle and the first preset threshold, and then determine a state display parameter according to the state of charge, and the state display The parameters include the display method and display content of the charging display device;
参数展示模块,用于控制所述充电展示装置按照所述状态展示参数进行展示。A parameter display module, configured to control the charging display device to display according to the state display parameters.
请参考图7,其示出了本申请一示例性实施例公开的一种电子设备的结构示意图。如图7所示,可以包括:射频(Radio Frequency,RF)电路710、存储器720、输入单元730、显示单元740、传感器750、音频电路760、WiFi模块710、处理器780、以及电源790等部件。在上述实施例中,该电子设备是可以作为按摩设备,也可以作为电子设备。本领域技术人员可以理解,图7中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Please refer to FIG. 7 , which shows a schematic structural diagram of an electronic device disclosed in an exemplary embodiment of the present application. As shown in FIG. 7 , it may include: a radio frequency (RF)
下面结合图7对电子设备的各个构成部件进行介绍:The following describes the various components of the electronic device in conjunction with FIG. 7 :
RF电路710可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器780处理;另外,将设计上行的数据发送给基站。通常,RF电路710包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low NoiseAmplifier,LNA)、双工器等。此外,RF电路710还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GlobalSystem of Mobile communication,GSM)、通用分组无线服务(General Packet RadioService,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The
存储器720可用于存储软件程序以及模块,处理器780通过运行存储在存储器720的软件程序以及模块,从而执行电子设备的各种功能应用以及数据处理。存储器720可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器720可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
输入单元730可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,输入单元730可包括触控面板731以及其他输入设备732。触控面板731,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板731上或在触控面板731附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板731可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器780,并能接收处理器780发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板731。除了触控面板731,输入单元730还可以包括其他输入设备732。具体地,其他输入设备732可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The
显示单元740可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种菜单。显示单元740可包括显示面板741,可选的,可以采用液晶显示器(LiquidCrystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板741。进一步的,触控面板731可覆盖显示面板741,当触控面板731检测到在其上或附近的触摸操作后,传送给处理器780以确定触摸事件的类型,随后处理器780根据触摸事件的类型在显示面板741上提供相应的视觉输出。虽然在图7中,触控面板731与显示面板741是作为两个独立的部件来实现电子设备的输入和输入功能,但是在某些实施例中,可以将触控面板731与显示面板741集成而实现电子设备的输入和输出功能。The
电子设备还可包括至少一种传感器750,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板741的亮度,接近传感器可在电子设备移动到耳边时,关闭显示面板741和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于电子设备还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The electronic device may also include at least one
音频电路760、扬声器761,传声器762可提供用户与电子设备之间的音频接口。音频电路750可将接收到的音频数据转换后的电信号,传输到扬声器761,由扬声器761转换为声音信号输出;另一方面,传声器762将收集的声音信号转换为电信号,由音频电路760接收后转换为音频数据,再将音频数据输出处理器780处理后,经RF电路710以发送给比如另一电子设备,或者将音频数据输出至存储器720以便进一步处理。
WiFi属于短距离无线传输技术,电子设备通过WiFi模块710可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图7示出了WiFi模块710,但是可以理解的是,其并不属于电子设备的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology, and the electronic device can help users to send and receive emails, browse web pages, and access streaming media through the
处理器780是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器720内的软件程序和/或模块,以及调用存储在存储器720内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。可选的,处理器780可包括一个或多个处理单元;优选的,处理器780可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器780中。The
电子设备还包括给各个部件供电的电源790(比如电池),优选的,电源可以通过电源管理系统与处理器780逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device also includes a power supply 790 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the
尽管未示出,电子设备还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the electronic device may further include a camera, a Bluetooth module, and the like, which will not be repeated here.
本申请实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序被处理器执行时实现上述方法实施例中的方法。The embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, wherein, when the computer program is executed by a processor, the method in the foregoing method embodiment is implemented.
本申请实施例公开一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可操作来使计算机执行上述方法实施例中的方法。The embodiment of the present application discloses a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the method in the above method embodiments.
本申请实施例公开一种应用发布平台,其中,应用发布平台用于发布计算机程序产品,其中,当计算机程序产品在计算机上运行时,使得计算机执行上述方法实施例中的方法。The embodiment of the present application discloses an application publishing platform, wherein the application publishing platform is used for publishing a computer program product, wherein when the computer program product runs on a computer, the computer is made to execute the method in the above method embodiments.
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定特征、结构或特性可以以任意适合的方式结合在一个或多个实施例中。本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作和模块并不一定是本申请所必须的。It is to be understood that reference throughout the specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic associated with the embodiment is included in at least one embodiment of the present application. Thus, appearances of "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily necessarily referring to the same embodiment. Furthermore, the specific features, structures or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
在本申请的各种实施例中,应理解,上述各过程的序号的大小并不意味着执行顺序的必然先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。In the various embodiments of the present application, it should be understood that the size of the sequence numbers of the above-mentioned processes does not imply an inevitable sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not be implemented in the present application. The implementation of the examples constitutes no limitation.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物单元,即可位于一个地方,或者也可以分布到多个网络单元上。可根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and components displayed as units may or may not be object units, and may be located in one place or distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
上述集成的单元若以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可获取的存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或者部分,可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干请求用以使得一台计算机设备(可以为个人计算机、服务器或者网络设备等,具体可以是计算机设备中的处理器)执行本申请的各个实施例上述方法的部分或全部步骤。The above-mentioned integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the whole or part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a memory , including several requests to cause a computer device (which may be a personal computer, a server, or a network device, etc., specifically a processor in the computer device) to execute some or all of the steps of the above methods in the various embodiments of the present application.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(CompactDisc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only storage medium. Memory (Read-Only Memory, ROM), Random Access Memory (Random Access Memory, RAM), Programmable Read-only Memory (PROM), Erasable Programmable Read Only Memory (Erasable Programmable Read Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM), CompactDisc Read -Only Memory, CD-ROM) or other optical disk storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
以上对本申请实施例公开的一种充电状态检测方法、装置、按摩设备以及存储介质进行了举例介绍,本文中应用了个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The method, device, massage device, and storage medium for detecting a state of charge disclosed in the embodiments of the present application have been described above with examples. The principles and implementations of the present application are described with an example. The descriptions of the above embodiments are only used for In order to help understand the method and the core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the embodiment and application scope. In summary, the content of this specification It should not be construed as a limitation of this application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111551535.4A CN114487644B (en) | 2021-12-17 | 2021-12-17 | Charging state detection method, device, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111551535.4A CN114487644B (en) | 2021-12-17 | 2021-12-17 | Charging state detection method, device, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114487644A true CN114487644A (en) | 2022-05-13 |
CN114487644B CN114487644B (en) | 2024-11-26 |
Family
ID=81493291
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111551535.4A Active CN114487644B (en) | 2021-12-17 | 2021-12-17 | Charging state detection method, device, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114487644B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024087698A1 (en) * | 2022-10-26 | 2024-05-02 | 深圳市倍思科技有限公司 | Control method and apparatus for intelligent power-off data line, and device, medium and product |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB1537500A (en) * | 1975-01-03 | 1978-12-29 | Curtis Instr | Method and apparatus for measuring the state of charge of a battery |
US4560937A (en) * | 1981-11-16 | 1985-12-24 | Curtis Instruments, Inc. | Battery state of charge metering method and apparatus |
EP0703462A1 (en) * | 1994-09-21 | 1996-03-27 | Société Anonyme dite: REGIE NATIONALE DES USINES RENAULT | Charge estimation process for an energy generating element, using distance control |
CN106406488A (en) * | 2015-03-03 | 2017-02-15 | 桑迪士克科技有限责任公司 | System and method for dynamic monitoring of controller current consumption |
CN108336795A (en) * | 2018-03-27 | 2018-07-27 | 深圳市爱克斯达电子有限公司 | A kind of method for charging batteries, battery charger and charger |
CN210634476U (en) * | 2019-07-31 | 2020-05-29 | 青岛鲁渝能源科技有限公司 | Wireless charging support for mobile phone |
CN111262288A (en) * | 2018-12-03 | 2020-06-09 | 法雷奥日本株式会社 | Charging device |
CN112448449A (en) * | 2020-11-16 | 2021-03-05 | Oppo广东移动通信有限公司 | Charging control method and device, electronic equipment and storage medium |
-
2021
- 2021-12-17 CN CN202111551535.4A patent/CN114487644B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB1537500A (en) * | 1975-01-03 | 1978-12-29 | Curtis Instr | Method and apparatus for measuring the state of charge of a battery |
US4560937A (en) * | 1981-11-16 | 1985-12-24 | Curtis Instruments, Inc. | Battery state of charge metering method and apparatus |
EP0703462A1 (en) * | 1994-09-21 | 1996-03-27 | Société Anonyme dite: REGIE NATIONALE DES USINES RENAULT | Charge estimation process for an energy generating element, using distance control |
CN106406488A (en) * | 2015-03-03 | 2017-02-15 | 桑迪士克科技有限责任公司 | System and method for dynamic monitoring of controller current consumption |
CN108336795A (en) * | 2018-03-27 | 2018-07-27 | 深圳市爱克斯达电子有限公司 | A kind of method for charging batteries, battery charger and charger |
CN111262288A (en) * | 2018-12-03 | 2020-06-09 | 法雷奥日本株式会社 | Charging device |
CN210634476U (en) * | 2019-07-31 | 2020-05-29 | 青岛鲁渝能源科技有限公司 | Wireless charging support for mobile phone |
CN112448449A (en) * | 2020-11-16 | 2021-03-05 | Oppo广东移动通信有限公司 | Charging control method and device, electronic equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
T.S. CHO: "Measurement of wall voltage in reset discharge of AC plasma display", IEEE CONFERENCE RECORD - ABSTRACTS. 2002 IEEE INTERNATIONAL CONFERENCE ON PLASMA SCIENCE, 7 November 2002 (2002-11-07), pages 270 * |
江晓林: "小型风力发电系统及其控制技术的研究", 中国优秀硕士学位论文全文数据库工程科技Ⅱ辑, 15 November 2009 (2009-11-15), pages 042 - 182 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024087698A1 (en) * | 2022-10-26 | 2024-05-02 | 深圳市倍思科技有限公司 | Control method and apparatus for intelligent power-off data line, and device, medium and product |
Also Published As
Publication number | Publication date |
---|---|
CN114487644B (en) | 2024-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107767839B (en) | Brightness adjustment method and related products | |
CN104383681B (en) | Method for controlling game program, device and mobile terminal | |
US9329661B2 (en) | Information processing method and electronic device | |
CN107562539B (en) | Application processing method and apparatus, computer equipment, storage medium | |
CN104967896A (en) | Method for displaying bulletscreen comment information, and apparatus thereof | |
CN106951850B (en) | A kind of method and mobile terminal controlling fingerprint recognition mould group | |
CN106878390B (en) | Electronic pet interactive control method, device and wearable device | |
CN109388220A (en) | A kind of method for managing power supply and mobile terminal | |
CN108681498A (en) | Method, device and mobile terminal for monitoring CPU usage | |
WO2019095155A1 (en) | Fatigue notification method and terminal | |
CN108762472A (en) | Wearable device control method, wearable device and computer readable storage medium | |
CN109565171A (en) | Charging protection method, terminal and charger | |
CN107066090B (en) | Method for controlling fingerprint identification module and mobile terminal | |
CN108810226A (en) | A kind of electricity method for early warning and mobile terminal | |
CN108810284B (en) | Mode switching method of camera and electronic equipment | |
CN111431250B (en) | Power display method, device and electronic device | |
CN111651030B (en) | Sensor detection method and device, storage medium and mobile terminal | |
WO2017049552A1 (en) | Terminal device and charging control method | |
CN108388400A (en) | A kind of operation processing method and mobile terminal | |
CN111327744A (en) | A function control component and electronic equipment | |
CN109388326A (en) | A kind of electronic equipment, the control method and device of dual-screen electronic device | |
CN114487644B (en) | Charging state detection method, device, electronic device and storage medium | |
CN108874111B (en) | Battery over-discharge protection control method and mobile terminal | |
CN210894629U (en) | A fuel gauge assembly and electronic device | |
CN113893123A (en) | Massage data processing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |