CN118889628A - Charging method, circuit and electronic device for avoiding abnormal display - Google Patents
Charging method, circuit and electronic device for avoiding abnormal display Download PDFInfo
- Publication number
- CN118889628A CN118889628A CN202411259256.4A CN202411259256A CN118889628A CN 118889628 A CN118889628 A CN 118889628A CN 202411259256 A CN202411259256 A CN 202411259256A CN 118889628 A CN118889628 A CN 118889628A
- Authority
- CN
- China
- Prior art keywords
- charging
- electronic device
- port
- charging device
- display abnormality
- 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
Classifications
-
- 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/00034—Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02H—EMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
- H02H9/00—Emergency protective circuit arrangements for limiting excess current or voltage without disconnection
- H02H9/04—Emergency protective circuit arrangements for limiting excess current or voltage without disconnection responsive to excess voltage
- H02H9/045—Emergency protective circuit arrangements for limiting excess current or voltage without disconnection responsive to excess voltage adapted to a particular application and not provided for elsewhere
- H02H9/046—Emergency protective circuit arrangements for limiting excess current or voltage without disconnection responsive to excess voltage adapted to a particular application and not provided for elsewhere responsive to excess voltage appearing at terminals of integrated circuits
-
- 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/007—Regulation of charging or discharging current or voltage
-
- 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
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
本申请公开了一种避免显示异常的充电方法、电路及电子设备,涉及充电技术领域,该避免显示异常的充电方法包括:在电子设备与充电器件连接之后,首先对充电器件进行残压泄放,然后检测充电器件的端口类型,并根据充电器件的端口类型对电子设备进行充电。基于本申请的方案,在电子设备与充电器件连接之后,可以先对充电器件内部的残压进行泄放,然后再根据充电器件的端口类型对应的充电流程对电子设备进行充电,从而可以有效避免电子设备在插排断电后连接充电器件显示异常的问题,不会给用户造成充电误解,用户体验度较高。
The present application discloses a charging method, circuit and electronic device for avoiding display abnormality, and relates to the field of charging technology. The charging method for avoiding display abnormality includes: after the electronic device is connected to the charging device, the residual pressure of the charging device is first discharged, and then the port type of the charging device is detected, and the electronic device is charged according to the port type of the charging device. Based on the scheme of the present application, after the electronic device is connected to the charging device, the residual pressure inside the charging device can be discharged first, and then the electronic device can be charged according to the charging process corresponding to the port type of the charging device, thereby effectively avoiding the problem of abnormal display of the electronic device when the charging device is connected after the power strip is turned off, and will not cause charging misunderstandings to users, and the user experience is high.
Description
技术领域Technical Field
本申请涉及充电技术领域,具体地,涉及一种避免显示异常的充电方法、电路及电子设备。The present application relates to the field of charging technology, and in particular, to a charging method, circuit and electronic device for avoiding display abnormality.
背景技术Background Art
随着科技地不断进步,多种可移动的电子设备已经广泛地应用于人类的日常生活中。例如,手机、平板电脑或者笔记本电脑等。可移动的电子设备为了方便外出携带,一般都设有电池,所以就需要通过充电器对电子设备进行间歇性充电。With the continuous advancement of science and technology, a variety of portable electronic devices have been widely used in people's daily lives. For example, mobile phones, tablet computers or laptops, etc. Portable electronic devices are generally equipped with batteries for easy carrying, so they need to be intermittently charged by chargers.
在现实生活中,为了充电方便,用户经常将充电器一直插在插排上。当插排突然断电之后,再将插在插排上的充电器接入电子设备时,虽然插排已经无法通过充电器向电子设备充电,但是由于充电器内部的电容存在残压,从而导致电子设备仍然能够短暂检测到电压并启动充电流程,进而使电子设备的充电图标显示正在充电中,给用户造成了充电误解,用户体验度较低。In real life, for the convenience of charging, users often keep the charger plugged into the power strip. When the power strip suddenly loses power, when the charger is connected to the electronic device, although the power strip can no longer charge the electronic device through the charger, the residual voltage in the capacitor inside the charger causes the electronic device to still detect the voltage briefly and start the charging process, which causes the charging icon of the electronic device to show that it is charging, causing users to misunderstand the charging and poor user experience.
因此,亟待一种新的解决方案,以解决上述问题。Therefore, a new solution is urgently needed to solve the above problems.
发明内容Summary of the invention
本申请提供了一种避免显示异常的充电方法、电路及电子设备,在电子设备与充电器件连接之后,可以先对充电器件内部的残压进行泄放,然后再根据充电器件的端口类型对应的充电流程对电子设备进行充电,从而可以有效避免电子设备在插排断电后连接充电器件显示异常的问题,不会给用户造成充电误解,用户体验度较高。The present application provides a charging method, circuit and electronic device for avoiding display abnormality. After the electronic device is connected to the charging device, the residual pressure inside the charging device can be discharged first, and then the electronic device can be charged according to the charging process corresponding to the port type of the charging device. This can effectively avoid the problem of abnormal display of the electronic device when the charging device is connected after the power strip is turned off, will not cause charging misunderstandings to users, and the user experience is high.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above objectives, this application adopts the following technical solutions:
第一方面,提供了一种避免显示异常的充电方法,在电子设备与充电器件连接之后,避免显示异常的充电方法包括:首先对充电器件进行残压泄放。然后检测充电器件的端口类型,最后根据充电器件的端口类型对应的充电流程对电子设备进行充电。In a first aspect, a charging method for avoiding display abnormality is provided. After an electronic device is connected to a charging device, the charging method for avoiding display abnormality includes: firstly, releasing residual pressure of the charging device. Then, detecting the port type of the charging device, and finally charging the electronic device according to the charging process corresponding to the port type of the charging device.
在本申请实施例中,充电器件保持插入插排的状态,在电子设备与充电器件连接之后,首先对充电器件进行残压泄放,从而可以避免充电器件的残压对电子设备的充电过程造成影响。然后再检测充电器件的端口类型,并根据充电器件的端口类型对应的充电流程对电子设备进行充电。In the embodiment of the present application, the charging device remains inserted into the socket, and after the electronic device is connected to the charging device, the residual pressure of the charging device is first discharged, so as to avoid the residual pressure of the charging device affecting the charging process of the electronic device. Then, the port type of the charging device is detected, and the electronic device is charged according to the charging process corresponding to the port type of the charging device.
可选地,充电器件的端口类型包括标准下行端口、专用充电端口、非标准充电端口和充电下行端口。当充电器件的端口类型为标准下行端口时,则根据标准下行端口对应的充电流程对电子设备进行充电。当充电器件的端口类型为专用充电端口时,则根据专用充电端口对应的充电流程对电子设备进行充电。当充电器件的端口类型为非标准充电端口时,则根据非标准充电端口对应的充电流程对电子设备进行充电。当充电器件的端口类型为充电下行端口时,则根据充电下行端口对应的充电流程对电子设备进行充电。Optionally, the port type of the charging device includes a standard downstream port, a dedicated charging port, a non-standard charging port and a charging downstream port. When the port type of the charging device is a standard downstream port, the electronic device is charged according to the charging process corresponding to the standard downstream port. When the port type of the charging device is a dedicated charging port, the electronic device is charged according to the charging process corresponding to the dedicated charging port. When the port type of the charging device is a non-standard charging port, the electronic device is charged according to the charging process corresponding to the non-standard charging port. When the port type of the charging device is a charging downstream port, the electronic device is charged according to the charging process corresponding to the charging downstream port.
结合第一方面,在第一方面的某些实现方式中,对充电器件进行残压泄放包括:控制流经充电器件的泄放电流小于充电器件的额定电流。根据泄放电流对充电器件进行残压泄放。In combination with the first aspect, in some implementations of the first aspect, discharging residual pressure on the charging device includes: controlling a discharge current flowing through the charging device to be less than a rated current of the charging device. Discharging residual pressure on the charging device according to the discharge current.
在该实现方式中,为了防止泄放电流对充电器件造成影响,例如烧坏或者损伤充电器件等,所以控制流经充电器件的泄放电流小于充电器件的额定电流,从而起到保护充电器件的作用。然后,再通过泄放电流对充电器件内部的残压进行泄放,防止充电器件内部的残压影响电子设备的充电显示。In this implementation, in order to prevent the discharge current from affecting the charging device, such as burning or damaging the charging device, the discharge current flowing through the charging device is controlled to be less than the rated current of the charging device, thereby protecting the charging device. Then, the residual pressure inside the charging device is discharged through the discharge current to prevent the residual pressure inside the charging device from affecting the charging display of the electronic device.
结合第一方面,在第一方面的某些实现方式中,对充电器件进行残压泄放还包括:当充电器件的端口类型为标准下行端口时,根据标准下行端口对应的充电流程对电子设备进行充电。当充电器件的端口类型为非标准下行端口时,对充电器件进行残压泄放。In combination with the first aspect, in some implementations of the first aspect, discharging residual pressure on the charging device further includes: when the port type of the charging device is a standard downstream port, charging the electronic device according to a charging process corresponding to the standard downstream port. When the port type of the charging device is a non-standard downstream port, discharging residual pressure on the charging device.
在该实现方式中,当充电器件的端口类型为标准下行端口时,则表示充电器件为电脑或者其他电子设备的USB端口,若直接对充电器件进行泄放,则可能会使USB端口产生过大的浪涌问题,导致USB端口不可用。因此当充电器件的端口类型为标准下行端口时直接根据标准下行端口对应的充电流程对电子设备进行充电。当充电器件的端口类型为非标准下行端口时,则无需担心浪涌问题对电脑或者其他电子设备的影响,可以直接对充电器件进行残压泄放。In this implementation, when the port type of the charging device is a standard downstream port, it means that the charging device is a USB port of a computer or other electronic device. If the charging device is discharged directly, it may cause excessive surge problems in the USB port, causing the USB port to be unusable. Therefore, when the port type of the charging device is a standard downstream port, the electronic device is charged directly according to the charging process corresponding to the standard downstream port. When the port type of the charging device is a non-standard downstream port, there is no need to worry about the impact of surge problems on computers or other electronic devices, and the residual pressure of the charging device can be discharged directly.
结合第一方面,在第一方面的某些实现方式中,具有非标准下行端口的充电器件内设有过流保护电路。In combination with the first aspect, in certain implementations of the first aspect, an overcurrent protection circuit is provided in the charging device having the non-standard downstream port.
在该实现方式中,当充电器件的端口类型为非标准下行端口时,则表示充电器一般为专用的电源适配器,电源适配器一般都设有保护机制,例如过流保护电路。因此,当充电器件的端口类型为非标准下行端口时,即使泄放电流过大,也不会对充电器件产生影响。In this implementation, when the port type of the charging device is a non-standard downstream port, it means that the charger is generally a dedicated power adapter, and the power adapter is generally equipped with a protection mechanism, such as an overcurrent protection circuit. Therefore, when the port type of the charging device is a non-standard downstream port, even if the discharge current is too large, it will not affect the charging device.
结合第一方面,在第一方面的某些实现方式中,对充电器件进行残压泄放之前,还包括:将电子设备的泄放通路导通。In combination with the first aspect, in some implementations of the first aspect, before discharging the residual pressure of the charging device, the method further includes: connecting a discharge path of the electronic device.
在该实现方式中,充电器件具有泄放通路,在电子设备与充电器件连接之后,首先将电子设备的泄放通路导通。In this implementation, the charging device has a discharge path, and after the electronic device is connected to the charging device, the discharge path of the electronic device is firstly turned on.
可选地,将电子设备的泄放通路导通,可以包括:将电子设备的泄放通路接地,从而将充电器件内的残压接地泄放。Optionally, opening the discharge path of the electronic device may include: grounding the discharge path of the electronic device, thereby discharging the residual pressure in the charging device to the ground.
结合第一方面,在第一方面的某些实现方式中,检测充电器件的端口类型之前,还包括:将电子设备的泄放通路断开。In combination with the first aspect, in some implementations of the first aspect, before detecting the port type of the charging device, the method further includes: disconnecting a discharge path of the electronic device.
在该实现方式中,电子设备的泄放通路是为了泄放充电器件内的残压,当充电器件内的残压泄放完成,开始进行电子设备的充电流程之前,应将电子设备的泄放通路断开,从而避免电子设备的泄放通路对电子设备的充电流程造成影响。In this implementation, the discharge path of the electronic device is to discharge the residual pressure in the charging device. When the residual pressure in the charging device is discharged, before the charging process of the electronic device begins, the discharge path of the electronic device should be disconnected to avoid the discharge path of the electronic device affecting the charging process of the electronic device.
第二方面,提供了一种避免显示异常的充电电路,基于避免显示异常的充电方法,避免显示异常的充电电路包括开关器件,开关器件的第一端与充电器件连接,开关器件的第二端接地。当开关器件的控制端接收到导通信号时,开关器件的第一端和开关器件的第二端之间导通,以对充电器件进行残压泄放。当开关器件的控制端接收到断开信号时,开关器件的第一端和开关器件的第二端之间断开,以使充电器件对电子设备进行充电。In a second aspect, a charging circuit for avoiding display abnormality is provided. Based on the charging method for avoiding display abnormality, the charging circuit for avoiding display abnormality includes a switch device, a first end of the switch device is connected to the charging device, and a second end of the switch device is grounded. When the control end of the switch device receives a conduction signal, the first end of the switch device and the second end of the switch device are connected to discharge the residual pressure of the charging device. When the control end of the switch device receives a disconnection signal, the first end of the switch device and the second end of the switch device are disconnected, so that the charging device charges the electronic device.
在本申请实施例中,通过开关器件来实现避免显示异常的充电电路。在电子设备与充电器件连接之后,首先将开关器件的第一端和第二端之间导通,从而可以对充电器件内部的电容残压进行泄放。然后,将开关器件的第一端和第二端之间断开,从而使泄放电路(即避免显示异常的充电电路)不会到电子设备的充电过程造成影响,充电器件可以正常对电子设备进行充电。In the embodiment of the present application, a charging circuit for avoiding display abnormality is implemented by a switching device. After the electronic device is connected to the charging device, the first end and the second end of the switching device are first connected, so that the residual voltage of the capacitor inside the charging device can be discharged. Then, the first end and the second end of the switching device are disconnected, so that the discharge circuit (i.e., the charging circuit for avoiding display abnormality) will not affect the charging process of the electronic device, and the charging device can charge the electronic device normally.
结合第二方面,在第二方面的某些实现方式中,避免显示异常的充电电路还包括第一电阻。第一电阻的第一端与开关器件的控制端连接,第一电阻的第二端接地。In conjunction with the second aspect, in some implementations of the second aspect, the charging circuit for avoiding display abnormality further includes a first resistor. A first end of the first resistor is connected to the control end of the switch device, and a second end of the first resistor is grounded.
在本申请实施例中,第一电阻起到稳定作用,防止开关器件的控制端的电流过大对开关器件产生损坏,同时还可以起到调节开关器件的控制端电压的作用。In the embodiment of the present application, the first resistor plays a stabilizing role to prevent excessive current at the control end of the switching device from damaging the switching device, and can also play a role in regulating the voltage at the control end of the switching device.
结合第二方面,在第二方面的某些实现方式中,开关器件包括MOSFET。In combination with the second aspect, in some implementations of the second aspect, the switching device includes a MOSFET.
在本申请实施例中,MOSFET作为一种开关器件,可以根据接收到的控制信号导通或者断开,从而对充电器件内的电容残压进行泄放。In the embodiment of the present application, MOSFET is a switching device that can be turned on or off according to a received control signal, thereby discharging the residual voltage of the capacitor in the charging device.
第三方面,提供了一种电子设备,包括避免显示异常的充电电路和控制模块;控制模块与避免显示异常的充电电路连接,以控制避免显示异常的充电电路导通或者断开。According to a third aspect, an electronic device is provided, comprising a charging circuit for avoiding display abnormalities and a control module; the control module is connected to the charging circuit for avoiding display abnormalities to control the charging circuit for avoiding display abnormalities to be turned on or off.
在本申请实施例中,通过控制模块来控制避免显示异常的充电电路的导通和断开,从而在电子设备与充电器件连接之后,对充电器件进行残压泄放,避免充电器件的残压对电子设备的充电过程造成影响。In an embodiment of the present application, a control module is used to control the on and off of the charging circuit to avoid display abnormalities, so that after the electronic device is connected to the charging device, the residual pressure of the charging device is discharged to avoid the residual pressure of the charging device affecting the charging process of the electronic device.
第四方面,提供了一种电子设备,所述电子设备包括:一个或多个处理器,以及存储器。所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行所述的方法。In a fourth aspect, an electronic device is provided, the electronic device comprising: one or more processors, and a memory. The memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code comprises computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method.
第五方面,提供了一种芯片系统,所述芯片系统应用于电子设备,所述芯片系统包括一个或多个处理器,所述一个或多个处理器用于调用计算机指令以使得所述电子设备执行所述的方法。In a fifth aspect, a chip system is provided. The chip system is applied to an electronic device, and the chip system includes one or more processors. The one or more processors are used to call computer instructions so that the electronic device executes the described method.
第六方面,提供了一种计算机可读存储介质,所述计算机可读存储介质包括指令,当所述指令在电子设备上运行时,使得所述电子设备执行所述的方法。In a sixth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes instructions, and when the instructions are executed on an electronic device, the electronic device executes the described method.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为一种本申请实施例适用的电子设备进行充电的场景示意图;FIG1 is a schematic diagram of a charging scenario of an electronic device applicable to an embodiment of the present application;
图2为又一种本申请实施例适用的电子设备进行充电的场景示意图;FIG2 is a schematic diagram of another charging scenario of an electronic device applicable to an embodiment of the present application;
图3为一种本申请实施例提供的电子设备的结构示意图;FIG3 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
图4为一种本申请实施例提供的避免显示异常的充电电路的流程图;FIG4 is a flow chart of a charging circuit for avoiding display abnormality provided by an embodiment of the present application;
图5为又一种本申请实施例提供的避免显示异常的充电电路的流程图;FIG5 is a flow chart of a charging circuit for avoiding display abnormality provided by another embodiment of the present application;
图6为又一种本申请实施例提供的避免显示异常的充电方法的流程图;FIG6 is a flow chart of a charging method for avoiding display abnormality provided by another embodiment of the present application;
图7为又一种本申请实施例提供的避免显示异常的充电方法的流程图;FIG7 is a flowchart of a charging method for avoiding display abnormality provided by another embodiment of the present application;
图8为一种本申请实施例提供的充电器件端口类型检测波形图;FIG8 is a waveform diagram of a charging device port type detection provided by an embodiment of the present application;
图9为一种本申请实施例提供的避免显示异常的充电方法的电路图;FIG9 is a circuit diagram of a charging method for avoiding display abnormality provided in an embodiment of the present application;
图10为又一种本申请实施例提供的避免显示异常的充电方法的电路图;FIG10 is a circuit diagram of another charging method for avoiding display abnormality provided in an embodiment of the present application;
图11为又一种本申请实施例提供的避免显示异常的充电方法的电路图;FIG11 is a circuit diagram of another charging method for avoiding display abnormality provided in an embodiment of the present application;
图12为又一种本申请实施例提供的电子设备的结构示意图。FIG. 12 is a schematic diagram of the structure of another electronic device provided in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
下面将结合附图对本申请实施例中的技术方案进行清楚、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, "/" means or, for example, A/B can mean A or B; "and/or" in the text is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
术语“第一”、“第二”等仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。The terms "first", "second", etc. are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of technical features indicated. Thus, features defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
为了便于对本申请实施例的理解,首先对本申请实施例中涉及的相关概念进行简要说明。In order to facilitate the understanding of the embodiments of the present application, the relevant concepts involved in the embodiments of the present application are first briefly described.
1、金属-氧化物-半导体场效应晶体管(metal oxide semiconductor fieldeffect transistor,MOSFET),下面简称为“MOS管。1. Metal oxide semiconductor field effect transistor (MOSFET), hereinafter referred to as "MOS tube".
在通信领域,MOS管是指一种电压驱动型的半导体器件,MOS管一般具有三个电极,分别为:栅极G、源极S和漏极D。MOS管根据其半导体结构可以分为PMOS管和NMOS管。在一般电子电路中,MOS管通常被用于放大电路或开关电路。MOS管作为一种压控元件,当加载到MOS管的栅极的电压超过预设值时,MOS管的源极和漏极可以导通流经电流。例如,当NMOS管的栅极接收到的电压大于预设值时,NMOS管的源极和漏极之间导通;当NMOS管的栅极接收到的电压不大于预设值时,NMOS管的源极和漏极之间截止。当PMOS管的栅极接收到的电压小于预设值时,PMOS管的源极和漏极导通;当PMOS管的栅极接收到的电压不小于预设值时,PMOS管的源极和漏极截止。In the field of communications, MOS tube refers to a voltage-driven semiconductor device. MOS tubes generally have three electrodes, namely: gate G, source S and drain D. MOS tubes can be divided into PMOS tubes and NMOS tubes according to their semiconductor structure. In general electronic circuits, MOS tubes are usually used in amplifier circuits or switching circuits. As a voltage-controlled element, when the voltage loaded on the gate of the MOS tube exceeds the preset value, the source and drain of the MOS tube can conduct current. For example, when the voltage received by the gate of the NMOS tube is greater than the preset value, the source and drain of the NMOS tube are conducted; when the voltage received by the gate of the NMOS tube is not greater than the preset value, the source and drain of the NMOS tube are cut off. When the voltage received by the gate of the PMOS tube is less than the preset value, the source and drain of the PMOS tube are conducted; when the voltage received by the gate of the PMOS tube is not less than the preset value, the source and drain of the PMOS tube are cut off.
2、MOS管的多种工作状态。2. Various working states of MOS tubes.
在通信领域,以NMOS管为例,根据MOS管的栅源极电压VGS与阈值电压VGS(TH)的大小,以及MOS管的漏源极电压VDS与,栅源极电压VGS与阈值电压VGS(TH)的差值的大小,可以将MOS管分为以下工作状态:In the field of communications, taking NMOS tubes as an example, according to the size of the gate-source voltage VGS and the threshold voltage VGS (TH) of the MOS tube, and the size of the difference between the drain-source voltage VDS and the gate-source voltage VGS and the threshold voltage VGS (TH), the MOS tube can be divided into the following working states:
第一种工作状态:当VGS<VGS(TH)时,MOS管处于截止状态。此时,MOS管不会导电,漏极电流(ID)非常小,可以视为不导通。MOS管等效为一个开路电路。The first working state: When VGS < VGS (TH), the MOS tube is in the cut-off state. At this time, the MOS tube will not conduct electricity, and the drain current (ID) is very small, which can be regarded as non-conducting. The MOS tube is equivalent to an open circuit.
第二种工作状态:当VGS>VGS(TH)、VDS<VGS-VGS(TH)时,MOS管导通且处在线性区。在此区域内,MOS管可以等效为一个线性电阻,其中漏极电流ID随着VDS的增加而线性增加。需要注意的是,这里的线性区并不意味着MOS管工作在放大状态,而是描述了其在特定电压条件下的导电特性。The second working state: When VGS>VGS (TH), VDS<VGS-VGS (TH), the MOS tube is turned on and is in the linear region. In this region, the MOS tube can be equivalent to a linear resistor, in which the drain current ID increases linearly with the increase of VDS. It should be noted that the linear region here does not mean that the MOS tube works in an amplified state, but describes its conductive characteristics under specific voltage conditions.
第三种工作状态:当VGS>VGS(TH)、VDS>VGS-VGS(TH)时,MOS管导通且处在饱和区。此时,MOS管仍然导通,但是漏极电流ID几乎不再随VDS的变化而变化,达到一个最大值。此时MOS管可以等效为电压控制的电流源。另外,只要MOS管导通,且VGS>VDS,则MOS管一定处于饱和区。The third working state: When VGS>VGS (TH), VDS>VGS-VGS (TH), the MOS tube is turned on and is in the saturation region. At this time, the MOS tube is still turned on, but the drain current ID almost no longer changes with the change of VDS and reaches a maximum value. At this time, the MOS tube can be equivalent to a voltage-controlled current source. In addition, as long as the MOS tube is turned on and VGS>VDS, the MOS tube must be in the saturation region.
以上是对本申请实施例所涉及名词的简单介绍,以下不再赘述。The above is a brief introduction to the nouns involved in the embodiments of the present application, which will not be repeated below.
下面结合图1至图3,先对本申请实施例的应用场景以及应用的电子设备的结构进行介绍。1 to 3 , the application scenarios of the embodiments of the present application and the structure of the electronic device to which they are applied are first introduced.
图1为一种本申请实施例适用的电子设备进行充电的场景示意图。FIG. 1 is a schematic diagram of a charging scenario of an electronic device to which an embodiment of the present application is applicable.
示例性地,如图1所示,当电子设备10的电量较少需要充电时,用户可以通过插排30和充电器件20向电子设备10进行充电。具体地,插排30可以与电源连接。例如,插排30的插头可以插入墙壁的插座中,以获取插座中的电源电能。充电器件20的插头插入插排30的插座中,以获取插排30中的电能。当电子设备10需要充电时,将充电器件20的电源输出端与电子设备10的电源输入端连接,从而可以通过充电器件20向电子设备10进行充电。当电子设备10不需要充电时,将充电器件20的电源输出端与电子设备10的电源输入端断开,从而使充电器件20停止向电子设备10充电。Exemplarily, as shown in FIG1 , when the electronic device 10 has less power and needs to be charged, the user can charge the electronic device 10 through the socket strip 30 and the charging device 20. Specifically, the socket strip 30 can be connected to a power source. For example, the plug of the socket strip 30 can be inserted into a wall socket to obtain the power supply power in the socket. The plug of the charging device 20 is inserted into the socket of the socket strip 30 to obtain the power in the socket strip 30. When the electronic device 10 needs to be charged, the power output end of the charging device 20 is connected to the power input end of the electronic device 10, so that the electronic device 10 can be charged by the charging device 20. When the electronic device 10 does not need to be charged, the power output end of the charging device 20 is disconnected from the power input end of the electronic device 10, so that the charging device 20 stops charging the electronic device 10.
另外,需要说明的是,在现实生活中,用户为了使用方便,经常将充电器件20一直插在插排30上,当需要向电子设备10充电时,将电子设备10与充电器件20连接。当不需要向电子设备10充电时,将电子设备10与充电器件20断开。In addition, it should be noted that in real life, for convenience, users often keep the charging device 20 plugged into the socket 30, and connect the electronic device 10 to the charging device 20 when the electronic device 10 needs to be charged. When the electronic device 10 does not need to be charged, the electronic device 10 is disconnected from the charging device 20.
应理解,用户也可以直接将充电器件20接入电源。例如,将充电器件20的插头直接插入墙壁的插座中,从而将插座中的电源电能直接通过充电器件20向电子设备10充电。本申请实施例对电子设备10的类型不做具体限定。在一些实施例中,电子设备10可以是手机、可穿戴设备(例如智能手环、智能手表、耳机等)、平板电脑、膝上型计算机(laptop)、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(Augmented reality,AR)\虚拟现实(virtual reality,VR)设备等IOT(internet of things,物联网)设备,还可以是电视、大屏、打印机、投影仪等设备。为方便理解,下面各实施例以电子设备10为平板电脑为例进行示例性说明。It should be understood that the user can also directly connect the charging device 20 to the power supply. For example, the plug of the charging device 20 is directly inserted into the wall socket, so that the power supply energy in the socket is directly charged to the electronic device 10 through the charging device 20. The embodiment of the present application does not specifically limit the type of the electronic device 10. In some embodiments, the electronic device 10 can be a mobile phone, a wearable device (such as a smart bracelet, a smart watch, a headset, etc.), a tablet computer, a laptop computer (laptop), a handheld computer, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (Augmented reality, AR)\virtual reality (virtual reality, VR) device and other IOT (internet of things, Internet of Things) devices, and can also be a television, a large screen, a printer, a projector and other devices. For ease of understanding, the following embodiments are exemplified by taking the electronic device 10 as a tablet computer as an example.
图2为又一种本申请实施例适用的电子设备充电的场景示意图。FIG. 2 is a schematic diagram of another scenario of charging an electronic device applicable to an embodiment of the present application.
示例性地,如图2所示,充电器件20插设于插排30,将电子设备10与充电器件20连接,从而通过充电器件20将插排30的电能向电子设备10充电。但是,如果在插排30断电之后,再将电子设备10与充电器件20连接,由于充电器件20内的电容残压,会使电子设备10检测到电压,进而启动充电流程显示充电图标,造成电子设备10显示异常,从而给用户造成困扰或者误解,不确定电子设备10是否正常处于充电状态,影响用户体验感。For example, as shown in FIG2 , the charging device 20 is plugged into the socket 30, and the electronic device 10 is connected to the charging device 20, so that the power of the socket 30 is used to charge the electronic device 10 through the charging device 20. However, if the electronic device 10 is connected to the charging device 20 after the socket 30 is powered off, the residual voltage of the capacitor in the charging device 20 will cause the electronic device 10 to detect the voltage, and then start the charging process to display the charging icon, causing the electronic device 10 to display abnormally, thereby causing confusion or misunderstanding to the user, who is uncertain whether the electronic device 10 is normally in the charging state, affecting the user experience.
图3为一种本申请实施例提供的电子设备的结构示意图。FIG3 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
示例性地,如图3所示,电子设备10可以包括中央处理模块101(centralprocessing unit,CPU)、充电模块102以及电池103等,充电器件20包括电源变换模块201,这些器件之间可以通过各种互联总线或其他电连接方式耦合。示例性地,充电模块102分别与中央处理模块101、电池103电连接,电源变换模块201分别与充电模块102和插排30连接。应理解,插排30还与交流电源连接。Exemplarily, as shown in FIG3 , the electronic device 10 may include a central processing unit 101 (CPU), a charging module 102, and a battery 103, etc. The charging device 20 includes a power conversion module 201, and these devices may be coupled through various interconnection buses or other electrical connection methods. Exemplarily, the charging module 102 is electrically connected to the central processing module 101 and the battery 103, respectively, and the power conversion module 201 is connected to the charging module 102 and the socket 30, respectively. It should be understood that the socket 30 is also connected to an AC power source.
中央处理模块101是个人计算机的主要设备之一,是个人计算机中的核心配件。其功能主要是解释计算机指令以及处理计算机软件中的数据。个人计算机中所有操作都由CPU负责读取指令,是对指令译码并执行指令的核心部件。程序是由指令构成的序列,执行程序就是按指令序列逐条执行指令。一旦把程序装入主存储器中,就可以由CPU自动地完成从主存储器读取指令和执行指令的任务。同时,一条指令的功能往往是由个人计算机中的部件执行一系列的操作来实现的。CPU要根据指令的功能,产生相应的操作控制信号,发给相应的部件,从而控制这些部件按指令的要求进行动作。The central processing module 101 is one of the main devices of a personal computer and is a core component in a personal computer. Its main function is to interpret computer instructions and process data in computer software. The CPU is responsible for reading instructions for all operations in a personal computer and is the core component that decodes and executes instructions. A program is a sequence of instructions, and executing a program is to execute instructions one by one according to the instruction sequence. Once the program is loaded into the main memory, the CPU can automatically complete the task of reading instructions from the main memory and executing instructions. At the same time, the function of an instruction is often realized by a series of operations performed by components in a personal computer. The CPU will generate corresponding operation control signals according to the function of the instruction and send them to the corresponding components, thereby controlling these components to act according to the requirements of the instruction.
示例性地,中央处理模块101可以包括运算逻辑部件、寄存器部件、运算器和控制部件等。运算逻辑部件,可以执行定点或浮点算术运算操作、移位操作以及逻辑操作,也可执行地址运算和转换。寄存器部件,包括通用寄存器、专用寄存器和控制寄存器。控制部件,主要负责对指令译码,并且发出为完成每条指令所要执行的各个操作的控制信号。Exemplarily, the central processing module 101 may include an arithmetic logic unit, a register unit, an operator, and a control unit. The arithmetic logic unit may perform fixed-point or floating-point arithmetic operations, shift operations, and logic operations, and may also perform address operations and conversions. The register unit includes a general register, a special register, and a control register. The control unit is mainly responsible for decoding instructions and issuing control signals for each operation to be performed to complete each instruction.
充电模块102是电子设备10内部设置的充电模块,充电模块102用于将电源变换模块201的电能发送至电池103。电池103可以存储获得的电能,以供电子设备10的其他电子器件使用。示例性地,当需要向电子设备10充电时,中央处理模块101控制充电模块102与电源变换模块201之间建立连接,电源变换模块201与插排30之间建立连接。电源变换模块201将插排30提供的电源电压转换为电子设备10所需要的额定电压,并发送至充电模块102。充电模块102将获得的电能发送至电池103进行存储。The charging module 102 is a charging module provided inside the electronic device 10, and the charging module 102 is used to send the electric energy of the power conversion module 201 to the battery 103. The battery 103 can store the obtained electric energy for use by other electronic devices of the electronic device 10. Exemplarily, when it is necessary to charge the electronic device 10, the central processing module 101 controls the charging module 102 to establish a connection with the power conversion module 201, and the power conversion module 201 to establish a connection with the socket 30. The power conversion module 201 converts the power voltage provided by the socket 30 into the rated voltage required by the electronic device 10, and sends it to the charging module 102. The charging module 102 sends the obtained electric energy to the battery 103 for storage.
应理解,充电器件20也叫电源适配器(Power adapter),又叫外置电源,是小型便携式电子设备及电子电器的供电电源变换设备。电源适配器一般由外壳、变压器、电感、电容、控制IC、PCB板等元器件组成。电源适配器的工作原理是将交流输入转换为直流输出。电源适配器是将来自电源插座或其他电源的交流电转换为电子设备10所需的直流电,从而为电子设备10提供电源,而不一定是为电子设备10充电,它的输出电压通常是电子设备10所需的直流电。从外观上,电源适配器比较小巧、轻便,有时会有可拆卸的插头,方便携带和替换,适用于各种电子设备10,例如配套于安防摄像头、机顶盒、路由器、灯条、按摩仪等电子设备10,也常见于手机、液晶显示器和笔记本电脑等小型电子设备10。It should be understood that the charging device 20 is also called a power adapter, also called an external power supply, and is a power supply conversion device for small portable electronic devices and electronic appliances. The power adapter is generally composed of components such as a housing, a transformer, an inductor, a capacitor, a control IC, and a PCB board. The working principle of the power adapter is to convert AC input into DC output. The power adapter converts the AC power from the power socket or other power source into the DC power required by the electronic device 10, thereby providing power for the electronic device 10, but not necessarily charging the electronic device 10. Its output voltage is usually the DC power required by the electronic device 10. From the appearance, the power adapter is relatively small and light, and sometimes has a detachable plug, which is convenient to carry and replace. It is suitable for various electronic devices 10, such as security cameras, set-top boxes, routers, light bars, massagers and other electronic devices 10, and is also commonly used in small electronic devices 10 such as mobile phones, LCD monitors and laptops.
应理解,上述仅为针对电子设备10的结构的一种示例,电子设备10也可以包括其他子系统或器件,具体可以根据需要进行设置和修改,本申请实施例对此不进行任何限制。It should be understood that the above is only an example of the structure of the electronic device 10, and the electronic device 10 may also include other subsystems or devices, which can be configured and modified as needed, and the embodiments of the present application do not impose any limitations on this.
下面再对相关技术中存在的技术问题行详细介绍。The technical problems existing in the relevant technologies are introduced in detail below.
示例性地,在现实生活中,为了充电方便,用户经常将充电器件20一直插在插排30上。当插排30突然断电之后,再将插在插排上的充电器件20接入电子设备10时,插排30虽然已经无法通过充电器件20向电子设备10充电。但是由于充电器件20内部的电容存在残压,从而导致电子设备10仍然能够短暂检测到电压并进行充电流程,进而使电子设备10的充电图标显示正在充电中,给用户造成了充电误解,用户体验度较低。For example, in real life, for the convenience of charging, users often keep the charging device 20 plugged into the socket strip 30. When the socket strip 30 is suddenly powered off, when the charging device 20 plugged into the socket strip is connected to the electronic device 10, the socket strip 30 can no longer charge the electronic device 10 through the charging device 20. However, due to the residual voltage in the capacitor inside the charging device 20, the electronic device 10 can still detect the voltage briefly and perform the charging process, so that the charging icon of the electronic device 10 shows that it is charging, which causes misunderstanding of charging to the user and a low user experience.
有鉴于此,本申请实施例提供了一种避免显示异常的充电方法,充电器件保持插入插排的状态,在电子设备与充电器件连接之后,首先对充电器件进行残压泄放,从而可以避免充电器件的残压对电子设备的充电过程造成影响。然后再检测充电器件的端口类型,并根据充电器件的端口类型对应的充电流程对电子设备进行充电。In view of this, the embodiment of the present application provides a charging method to avoid display abnormality, where the charging device remains plugged into the socket, and after the electronic device is connected to the charging device, the residual pressure of the charging device is first discharged, thereby preventing the residual pressure of the charging device from affecting the charging process of the electronic device. Then, the port type of the charging device is detected, and the electronic device is charged according to the charging process corresponding to the port type of the charging device.
下面结合图4至图8,再针对本申请实施例提供的避免显示异常的充电方法方案进行详细介绍。The following is a detailed description of the charging method for avoiding display abnormality provided in the embodiment of the present application in conjunction with Figures 4 to 8.
图4为一种本申请实施例提供的避免显示异常的充电方法的流程图。FIG. 4 is a flow chart of a charging method for avoiding display abnormality provided in an embodiment of the present application.
如图4所示,在本申请提供的一种实施例中,在电子设备与充电器件连接之后,避免显示异常的充电方法,包括如下步骤:As shown in FIG. 4 , in an embodiment provided in the present application, after the electronic device is connected to the charging device, a charging method for avoiding display abnormality includes the following steps:
S401、电子设备对充电器件进行残压泄放。S401. The electronic device discharges the residual pressure of the charging device.
为了防止充电器件内部电容的残压对电子设备的充电流程造成影响,可以在电子设备与充电器件连接之后,先对充电器件内部的电容残压进行泄放。In order to prevent the residual voltage of the capacitor inside the charging device from affecting the charging process of the electronic device, the residual voltage of the capacitor inside the charging device may be discharged first after the electronic device is connected to the charging device.
示例性地,用户为了使用方便,将充电器件一直插设于插排上且未与电子设备连接。当插排断电之后,充电器件内的电容由于没有泄放途径,从而导致充电器件内一直存在电容残压。此时,若直接将电子设备与充电器件连接,将会导致电子设备内的电子器件检测到充电器件的残压,从而启动充电流程,在电子设备的显示屏上显示电子设备处于充电状态的图标,但是由于插排并未接电,导致该充电图标又很快消失,从而给用户造成困扰,不确定插排是否有电,还是电子设备有什么问题。因此,在本申请实施例中,在电子设备与充电器件连接之后,直接先对充电器件进行残压泄放,从而有效避免了电子设备在插排断电后连接充电器件显示异常的问题,不会给用户造成充电误解,用户体验度较高。For example, for ease of use, the user keeps the charging device plugged into the socket and not connected to the electronic device. When the socket is powered off, the capacitor in the charging device has no way to discharge, resulting in residual capacitor pressure in the charging device. At this time, if the electronic device is directly connected to the charging device, the electronic device in the electronic device will detect the residual pressure of the charging device, thereby starting the charging process and displaying an icon indicating that the electronic device is in a charging state on the display screen of the electronic device. However, since the socket is not powered, the charging icon disappears quickly, causing confusion to the user, who is not sure whether the socket has power or if there is a problem with the electronic device. Therefore, in an embodiment of the present application, after the electronic device is connected to the charging device, the residual pressure of the charging device is directly discharged first, thereby effectively avoiding the problem of abnormal display of the electronic device when the charging device is connected after the socket is powered off, and will not cause charging misunderstandings to the user, and the user experience is high.
需要说明的是,电子设备对充电器件进行残压泄放的过程可以包括三种状态:It should be noted that the process of the electronic device discharging the residual pressure of the charging device may include three states:
第一种状态:电子设备的泄放通路导通,且流经充电器件的泄放电流大于充电器件的额定电流,该种状态可以适用于具有过流保护电路的充电器件。例如,专用充电端口DCP、非标准充电端口和充电下行端口CDP等。The first state: the discharge path of the electronic device is turned on, and the discharge current flowing through the charging device is greater than the rated current of the charging device. This state can be applied to charging devices with overcurrent protection circuits, such as dedicated charging ports DCP, non-standard charging ports, and charging downstream ports CDP.
第二种状态:电子设备的泄放通路导通,且流经充电器件的泄放电流小于充电器件的额定电流,该种状态可以适用于不具有过流保护电路的充电器件。例如,标准下行端口SDP。The second state: the discharge path of the electronic device is turned on, and the discharge current flowing through the charging device is less than the rated current of the charging device. This state can be applied to charging devices without overcurrent protection circuits, such as standard downstream ports SDP.
第三种状态:电子设备的泄放通路断开,该种状态为电子设备完成残压泄放时的状态。泄放通路断开,以便于充电器件可以正常向电子设备进行充电流程。The third state: the discharge path of the electronic device is disconnected, which is the state when the electronic device completes the residual pressure discharge. The discharge path is disconnected so that the charging device can normally charge the electronic device.
应理解,当充电器件直接插入插座,且插座突然断电导致充电器件内的电容存在残压时,为了避免充电器件接入电子设备时导致电子设备的充电图标出现显示异常的问题,也可以采用本申请实施例提供的方案。It should be understood that when a charging device is directly plugged into a socket and the socket suddenly loses power, resulting in residual pressure in the capacitor of the charging device, in order to avoid the problem of abnormal display of the charging icon of the electronic device when the charging device is connected to the electronic device, the solution provided in the embodiment of the present application can also be adopted.
S402、电子设备检测充电器件的端口类型。S402: The electronic device detects the port type of the charging device.
在对充电器件进行残压泄放之后,电子设备即可进行正常的充电流程,即首先检测充电器件的端口类型。After the residual pressure of the charging device is released, the electronic device can proceed with the normal charging process, that is, firstly detecting the port type of the charging device.
示例性地,在本申请实施例中,充电器件的端口类型可以包括标准下行端口(standard downstream port,SDP)、专用充电端口(dedicated charging port,DCP)、非标准充电端口和充电下行端口(charging downstream port,CDP)。其中,标准下行端口的D+线和D-线为差分数据线,D+线和D-线上具有15kΩ下拉电阻。标准下行端口的限流值在挂起时为2.5mA,连接时为100mA,连接并配置为较高功率时为500mA。专用充电端口不支持任何数据传输,但能够提供1.5A以上的电流。端口的D+线和D-线之间短路。这种类型的端口支持较高充电能力的墙上充电器和车载充电器。例如,专用充电端口可以为电子设备在生产时配备的电源适配器。非标准充电端口为没有D+线和D-数据线的充电器。例如,杂牌厂家生产的电源适配器。充电下行端口既支持大电流充电,也支持完全兼容USB2.0的数据传输。端口具有D+线和D-线通信所必需的15kΩ下拉电阻,也具有充电器检测阶段切换的内部电路。内部电路允许便携设备将充电下行端口与其它类型端口区分开来。Exemplarily, in an embodiment of the present application, the port types of the charging device may include a standard downstream port (SDP), a dedicated charging port (DCP), a non-standard charging port, and a charging downstream port (CDP). Among them, the D+ line and D- line of the standard downstream port are differential data lines, and the D+ line and the D- line have a 15kΩ pull-down resistor. The current limit value of the standard downstream port is 2.5mA when suspended, 100mA when connected, and 500mA when connected and configured for higher power. The dedicated charging port does not support any data transmission, but can provide a current of more than 1.5A. The D+ line and D- line of the port are short-circuited. This type of port supports wall chargers and car chargers with higher charging capabilities. For example, the dedicated charging port can be a power adapter equipped with the electronic device during production. The non-standard charging port is a charger without a D+ line and a D- data line. For example, a power adapter produced by a non-brand manufacturer. The charging downstream port supports both high-current charging and data transmission that is fully compatible with USB2.0. The port has the necessary 15kΩ pull-down resistors for D+ and D- line communication, and also has internal circuitry to switch during the charger detection phase. The internal circuitry allows the portable device to distinguish a charging downstream port from other types of ports.
S403、电子设备根据充电器件的端口类型对应的充电流程对电子设备进行充电。S403: The electronic device charges the electronic device according to the charging process corresponding to the port type of the charging device.
当电子设备检测到充电器件的端口类型之后,从而可以根据充电器件的端口类型对应的充电流程对电子设备进行充电。After the electronic device detects the port type of the charging device, the electronic device can be charged according to the charging process corresponding to the port type of the charging device.
示例性地,在本申请实施例中,当充电器件的端口类型为标准下行端口时,则根据标准下行端口对应的充电流程对电子设备进行充电。或者,当充电器件的端口类型为专用充电端口时,则根据专用充电端口对应的充电流程对电子设备进行充电。或者,当充电器件的端口类型为非标准充电端口时,则根据非标准充电端口对应的充电流程对电子设备进行充电。或者,当充电器件的端口类型为充电下行端口时,则根据充电下行端口对应的充电流程对电子设备进行充电。Exemplarily, in an embodiment of the present application, when the port type of the charging device is a standard downstream port, the electronic device is charged according to the charging process corresponding to the standard downstream port. Alternatively, when the port type of the charging device is a dedicated charging port, the electronic device is charged according to the charging process corresponding to the dedicated charging port. Alternatively, when the port type of the charging device is a non-standard charging port, the electronic device is charged according to the charging process corresponding to the non-standard charging port. Alternatively, when the port type of the charging device is a charging downstream port, the electronic device is charged according to the charging process corresponding to the charging downstream port.
图5为又一种本申请实施例提供的避免显示异常的充电方法的流程图。FIG. 5 is a flow chart of a charging method for avoiding display abnormality provided in yet another embodiment of the present application.
如图5所示,在本申请提供的一种实施例中,在电子设备与充电器件连接之后,避免显示异常的充电方法,包括如下步骤:As shown in FIG5 , in an embodiment provided in the present application, after the electronic device is connected to the charging device, a charging method for avoiding display abnormality includes the following steps:
S5011、电子设备控制流经充电器件的泄放电流小于充电器件的额定电流。S5011. The electronic device controls the discharge current flowing through the charging device to be smaller than the rated current of the charging device.
示例性地,当对充电器件的残压进行泄放时,流经充电器件的泄放电流可能会大于、小于或者等于充电器件的额定电流。当流经充电器件的泄放电流大于充电器件的额定电流时,可能会对充电器件造成影响,例如损坏或者烧毁充电器件等。因此,可以控制流经充电器件的泄放电流不大于充电器件的额定电流,从而起到保护充电器件和电子设备的作用。For example, when the residual pressure of the charging device is discharged, the discharge current flowing through the charging device may be greater than, less than, or equal to the rated current of the charging device. When the discharge current flowing through the charging device is greater than the rated current of the charging device, it may affect the charging device, such as damaging or burning the charging device. Therefore, the discharge current flowing through the charging device can be controlled not to be greater than the rated current of the charging device, thereby protecting the charging device and the electronic device.
S5012、电子设备根据泄放电流对充电器件进行残压泄放。S5012. The electronic device discharges the residual pressure of the charging device according to the discharge current.
为了防止充电器件内部的电容残压对电子设备的充电流程造成影响,可以在电子设备与充电器件连接之后,根据泄放电流先对充电器件内部的电容残压进行泄放。In order to prevent the residual voltage of the capacitor inside the charging device from affecting the charging process of the electronic device, the residual voltage of the capacitor inside the charging device can be discharged according to the discharge current after the electronic device is connected to the charging device.
示例性地,用户为了使用方便,将充电器件一直插设于插排上且未与电子设备连接。当插排断电之后,充电器件内的电容由于没有泄放途径,从而导致充电器件内一直存在电容残压。此时,若直接将电子设备与充电器件连接,将会导致电子设备内的电子器件检测到充电器件的残压,从而启动充电流程,在电子设备的显示屏上显示电子设备处于充电状态的图标,但是由于插排并未接电,导致该充电图标又很快消失,从而给用户造成困扰,不确定插排是否有电,还是电子设备有什么问题。因此,在本申请实施例中,直接根据泄放电流对充电器件的电容进行残压泄放,从而有效避免了电子设备在插排断电后连接充电器件显示异常的问题,不会给用户造成充电误解,用户体验度较高。For example, for ease of use, the user keeps the charging device plugged into the power strip and does not connect it to the electronic device. When the power strip is powered off, the capacitor in the charging device has no way to discharge, resulting in residual capacitor pressure in the charging device. At this time, if the electronic device is directly connected to the charging device, the electronic device in the electronic device will detect the residual pressure of the charging device, thereby starting the charging process and displaying an icon indicating that the electronic device is in a charging state on the display screen of the electronic device. However, since the power strip is not connected to electricity, the charging icon disappears quickly, causing confusion to the user, who is not sure whether the power strip has electricity or if there is something wrong with the electronic device. Therefore, in an embodiment of the present application, the residual pressure of the capacitor of the charging device is discharged directly according to the discharge current, thereby effectively avoiding the problem of abnormal display of the electronic device when the charging device is connected after the power strip is powered off, and will not cause charging misunderstandings to the user, and the user experience is high.
应理解,当充电器件直接插入插座,且插座突然断电导致充电器件内的电容存在残压时,为了避免充电器件接入电子设备时导致电子设备的充电图标出现显示异常的问题,也可以采用本申请实施例提供的方案。It should be understood that when a charging device is directly plugged into a socket and the socket suddenly loses power, resulting in residual pressure in the capacitor of the charging device, in order to avoid the problem of abnormal display of the charging icon of the electronic device when the charging device is connected to the electronic device, the solution provided in the embodiment of the present application can also be adopted.
S402、电子设备检测充电器件的端口类型。S402: The electronic device detects the port type of the charging device.
在对充电器件进行残压泄放之后,电子设备即可进行正常的充电流程,即首先检测充电器件的端口类型。After the residual pressure of the charging device is released, the electronic device can proceed with the normal charging process, that is, firstly detecting the port type of the charging device.
示例性地,在本申请实施例中,充电器件的端口类型可以包括标准下行端口(standard downstream port,SDP)、专用充电端口(dedicated charging port,DCP)、非标准充电端口和充电下行端口(charging downstream port,CDP)。其中,标准下行端口的D+线和D-线为差分数据线,D+线和D-线上具有15kΩ下拉电阻。标准下行端口的限流值在挂起时为2.5mA,连接时为100mA,连接并配置为较高功率时为500mA。专用充电端口不支持任何数据传输,但能够提供1.5A以上的电流。端口的D+线和D-线之间短路。这种类型的端口支持较高充电能力的墙上充电器和车载充电器。例如,专用充电端口可以为电子设备在生产时配备的电源适配器。非标准充电端口为没有D+线和D-数据线的充电器。例如,杂牌厂家生产的电源适配器。充电下行端口既支持大电流充电,也支持完全兼容USB2.0的数据传输。端口具有D+线和D-线通信所必需的15kΩ下拉电阻,也具有充电器检测阶段切换的内部电路。内部电路允许便携设备将充电下行端口与其它类型端口区分开来。Exemplarily, in an embodiment of the present application, the port types of the charging device may include a standard downstream port (SDP), a dedicated charging port (DCP), a non-standard charging port, and a charging downstream port (CDP). Among them, the D+ line and D- line of the standard downstream port are differential data lines, and the D+ line and the D- line have a 15kΩ pull-down resistor. The current limit value of the standard downstream port is 2.5mA when suspended, 100mA when connected, and 500mA when connected and configured for higher power. The dedicated charging port does not support any data transmission, but can provide a current of more than 1.5A. The D+ line and D- line of the port are short-circuited. This type of port supports wall chargers and car chargers with higher charging capabilities. For example, the dedicated charging port can be a power adapter equipped with the electronic device during production. The non-standard charging port is a charger without a D+ line and a D- data line. For example, a power adapter produced by a non-brand manufacturer. The charging downstream port supports both high-current charging and data transmission that is fully compatible with USB2.0. The port has the necessary 15kΩ pull-down resistors for D+ and D- line communication, and also has internal circuitry to switch during the charger detection phase. The internal circuitry allows the portable device to distinguish a charging downstream port from other types of ports.
S403、电子设备根据充电器件的端口类型对应的充电流程对电子设备进行充电。S403: The electronic device charges the electronic device according to the charging process corresponding to the port type of the charging device.
当电子设备检测到充电器件的端口类型之后,从而可以根据充电器件的端口类型对应的充电流程对电子设备进行充电。After the electronic device detects the port type of the charging device, the electronic device can be charged according to the charging process corresponding to the port type of the charging device.
示例性地,在本申请实施例中,当充电器件的端口类型为标准下行端口时,则根据标准下行端口对应的充电流程对电子设备进行充电。或者,当充电器件的端口类型为专用充电端口时,则根据专用充电端口对应的充电流程对电子设备进行充电。或者,当充电器件的端口类型为非标准充电端口时,则根据非标准充电端口对应的充电流程对电子设备进行充电。或者,当充电器件的端口类型为充电下行端口时,则根据充电下行端口对应的充电流程对电子设备进行充电。Exemplarily, in an embodiment of the present application, when the port type of the charging device is a standard downstream port, the electronic device is charged according to the charging process corresponding to the standard downstream port. Alternatively, when the port type of the charging device is a dedicated charging port, the electronic device is charged according to the charging process corresponding to the dedicated charging port. Alternatively, when the port type of the charging device is a non-standard charging port, the electronic device is charged according to the charging process corresponding to the non-standard charging port. Alternatively, when the port type of the charging device is a charging downstream port, the electronic device is charged according to the charging process corresponding to the charging downstream port.
图6为又一种本申请实施例提供的避免显示异常的充电方法的流程图。FIG. 6 is a flow chart of a charging method for avoiding display abnormality provided in yet another embodiment of the present application.
如图6所示,在本申请提供的一种实施例中,在电子设备与充电器件连接之后,避免显示异常的充电方法,包括如下步骤:As shown in FIG6 , in an embodiment provided in the present application, after the electronic device is connected to the charging device, a charging method for avoiding display abnormality includes the following steps:
S6011、电子设备判断充电器件的端口类型是否为标准下行端口。S6011. The electronic device determines whether the port type of the charging device is a standard downstream port.
由于充电器件的端口类型不同,对应的额定电流也可能不同。标准下行端口为一种特殊的充电器件端口,即电子设备的USB端口。也就是说,标准下行端口一般为电子设备提供的可以用于充电或者进行数据传输的端口。例如,个人计算机或者笔记本电脑等电子设备的USB端口。Due to the different types of charging device ports, the corresponding rated currents may also be different. A standard downstream port is a special charging device port, namely, a USB port of an electronic device. In other words, a standard downstream port is generally a port provided by an electronic device that can be used for charging or data transmission. For example, a USB port of an electronic device such as a personal computer or a laptop.
应理解,标准下行端口的额定电流一般小于其他充电器件端口的额定电流。同时,标准下行端口一般未设电源适配器。例如,标准下行端口的额定电流在较低功率时的额定电流一般为100mA。标准下行端口的额定电流在较高功率时的额定电流一般为500mA。然而,其他非标准下行端口对应的充电器件由于具有电源适配器,从而使非标准下行端口的额定电流较高。例如,专用充电端口和充电下行端口的额定电流均可以达到1.5A。同时充电器件的电源适配器中一般均设有保护电路,即使泄放电流较大,甚至超过额定电流,也不会烧毁充电器件或者电子设备。因此,在本申请实施例中,首先需要判断充电器件的端口类型是否为标准下行端口,然后再根据充电器件的端口类型进行相应处理。同时,标准下行端口的判断时间一般较短,不足500ms,对用户的正常充电检测流程不会产生太大影响。It should be understood that the rated current of the standard downstream port is generally less than the rated current of other charging device ports. At the same time, the standard downstream port is generally not provided with a power adapter. For example, the rated current of the standard downstream port is generally 100mA at lower power. The rated current of the standard downstream port is generally 500mA at higher power. However, the charging devices corresponding to other non-standard downstream ports have power adapters, so that the rated current of the non-standard downstream ports is higher. For example, the rated current of the dedicated charging port and the charging downstream port can reach 1.5A. At the same time, the power adapter of the charging device is generally provided with a protection circuit, even if the discharge current is large, even exceeding the rated current, it will not burn the charging device or electronic equipment. Therefore, in the embodiment of the present application, it is first necessary to determine whether the port type of the charging device is a standard downstream port, and then perform corresponding processing according to the port type of the charging device. At the same time, the judgment time of the standard downstream port is generally short, less than 500ms, which will not have much impact on the user's normal charging detection process.
S6012、当充电器件的端口类型为标准下行端口时,电子设备根据标准下行端口对应的充电流程对电子设备进行充电。S6012: When the port type of the charging device is a standard downstream port, the electronic device is charged according to a charging process corresponding to the standard downstream port.
当充电器件的端口类型为标准下行端口时,表示该充电器件的端口类型为USB端口。也就是说,该充电器件为个人计算机、平板电脑等具有USB端口的电子设备。这些电子设备并不具有向外充电的电源适配器或者过流保护电路。因此,为了保护电子设备,当充电器件的端口类型为标准下行端口时,直接根据标准下行端口对应的充电流程对电子设备进行充电,并不对电子设备进行泄放,以防损坏电子设备。When the port type of the charging device is a standard downstream port, it means that the port type of the charging device is a USB port. In other words, the charging device is an electronic device with a USB port, such as a personal computer or a tablet computer. These electronic devices do not have a power adapter or an overcurrent protection circuit for external charging. Therefore, in order to protect the electronic device, when the port type of the charging device is a standard downstream port, the electronic device is directly charged according to the charging process corresponding to the standard downstream port, and the electronic device is not discharged to prevent damage to the electronic device.
S6013、当充电器件的端口类型为非标准下行端口时,电子设备对充电器件进行残压泄放。S6013: When the port type of the charging device is a non-standard downstream port, the electronic device discharges the residual pressure of the charging device.
当充电器件的端口类型为非标准下行端口时,表示该充电器件的端口类型不是USB端口,而是具有过流保护电路的充电器。例如,普通电源适配器、快充电源适配器或者没有D+线和D-线的电源适配器等。因此,当充电器件的端口类型为非标准下行端口时,可以直接对充电器件内部的电容进行残压泄放,从而有效避免了电子设备在插排断电后连接充电器件显示异常的问题,不会给用户造成充电误解,用户体验度较高。When the port type of the charging device is a non-standard downstream port, it means that the port type of the charging device is not a USB port, but a charger with an overcurrent protection circuit. For example, an ordinary power adapter, a fast charging power adapter, or a power adapter without D+ and D- lines. Therefore, when the port type of the charging device is a non-standard downstream port, the residual pressure of the capacitor inside the charging device can be directly discharged, thereby effectively avoiding the problem of abnormal display of the electronic device when the charging device is connected after the power strip is turned off, and will not cause charging misunderstandings to users, and the user experience is high.
应理解,当充电器件直接插入插座,且插座突然断电导致充电器件内的电容存在残压时,为了避免充电器件接入电子设备时导致电子设备的充电图标出现显示异常的问题,也可以采用本申请实施例提供的方案。It should be understood that when a charging device is directly plugged into a socket and the socket suddenly loses power, resulting in residual pressure in the capacitor of the charging device, in order to avoid the problem of abnormal display of the charging icon of the electronic device when the charging device is connected to the electronic device, the solution provided in the embodiment of the present application can also be adopted.
S402、电子设备检测充电器件的端口类型。S402: The electronic device detects the port type of the charging device.
在对充电器件进行残压泄放之后,电子设备即可进行正常的充电流程,再次检测充电器件的端口类型。After the residual pressure of the charging device is released, the electronic device can carry out the normal charging process and detect the port type of the charging device again.
示例性地,在本申请实施例中,充电器件的端口类型可以包括专用充电端口(dedicated charging port,DCP)、非标准充电端口和充电下行端口(chargingdownstream port,CDP)。其中,专用充电端口不支持任何数据传输,但能够提供1.5A以上的电流。端口的D+线和D-线之间短路。这种类型的端口支持较高充电能力的墙上充电器和车载充电器。例如,专用充电端口可以为电子设备在生产时配备的电源适配器。非标准充电端口为没有D+线和D-数据线的充电器。例如,杂牌厂家生产的电源适配器。充电下行端口既支持大电流充电,也支持完全兼容USB2.0的数据传输。端口具有D+线和D-线通信所必需的15kΩ下拉电阻,也具有充电器检测阶段切换的内部电路。内部电路允许便携设备将充电下行端口与其它类型端口区分开来。Exemplarily, in an embodiment of the present application, the port types of the charging device may include a dedicated charging port (DCP), a non-standard charging port, and a charging downstream port (CDP). Among them, the dedicated charging port does not support any data transmission, but can provide a current of more than 1.5A. The D+ line and the D- line of the port are short-circuited. This type of port supports wall chargers and car chargers with higher charging capabilities. For example, the dedicated charging port can be a power adapter equipped with the electronic device during production. The non-standard charging port is a charger without D+ line and D- data line. For example, a power adapter produced by a non-brand manufacturer. The charging downstream port supports both high-current charging and data transmission that is fully compatible with USB2.0. The port has a 15kΩ pull-down resistor required for communication between the D+ line and the D- line, and also has an internal circuit for switching during the charger detection phase. The internal circuit allows the portable device to distinguish the charging downstream port from other types of ports.
S403、电子设备根据充电器件的端口类型对应的充电流程对电子设备进行充电。S403: The electronic device charges the electronic device according to the charging process corresponding to the port type of the charging device.
当电子设备检测到充电器件的端口类型之后,从而可以根据充电器件的端口类型对应的充电流程对电子设备进行充电。After the electronic device detects the port type of the charging device, the electronic device can be charged according to the charging process corresponding to the port type of the charging device.
示例性地,在本申请实施例中,当充电器件的端口类型为专用充电端口时,则根据专用充电端口对应的充电流程对电子设备进行充电。或者,当充电器件的端口类型为非标准充电端口时,则根据非标准充电端口对应的充电流程对电子设备进行充电。或者,当充电器件的端口类型为充电下行端口时,则根据充电下行端口对应的充电流程对电子设备进行充电。For example, in the embodiment of the present application, when the port type of the charging device is a dedicated charging port, the electronic device is charged according to the charging process corresponding to the dedicated charging port. Alternatively, when the port type of the charging device is a non-standard charging port, the electronic device is charged according to the charging process corresponding to the non-standard charging port. Alternatively, when the port type of the charging device is a charging downstream port, the electronic device is charged according to the charging process corresponding to the charging downstream port.
图7为又一种本申请实施例提供的避免显示异常的充电方法的流程图。FIG. 7 is a flowchart of a charging method for avoiding display abnormality provided in yet another embodiment of the present application.
如图7所示,在本申请提供的一种实施例中,在电子设备与充电器件连接之后,避免显示异常的充电方法,包括如下步骤:As shown in FIG. 7 , in an embodiment provided in the present application, after the electronic device is connected to the charging device, a charging method for avoiding display abnormality includes the following steps:
S7011、电子设备将电子设备的泄放通路导通。S7011. The electronic device turns on the discharge path of the electronic device.
示例性地,在本申请实施例中,电子设备内部可以设置泄放通路,从而通过控制泄放通路的导通和关断来控制充电器件的电容残压泄放过程。例如,在需要对充电器件进行残压泄放之前,先将泄放通路导通。For example, in the embodiment of the present application, a discharge path may be provided inside the electronic device, so as to control the capacitor residual pressure discharge process of the charging device by controlling the conduction and disconnection of the discharge path. For example, before the residual pressure of the charging device needs to be discharged, the discharge path is first turned on.
需要说明的是,在本申请的另一种实施例中,电子设备将泄放通路导通具体可以为电子设备将泄放通路接地,从而起到对充电器件电容残压进行泄放的作用。It should be noted that, in another embodiment of the present application, the electronic device turning on the discharge path may specifically be that the electronic device grounds the discharge path, thereby discharging the residual voltage of the capacitor of the charging device.
S401、电子设备对充电器件进行残压泄放。S401. The electronic device discharges the residual pressure of the charging device.
为了防止充电器件内部电容的残压对电子设备的充电流程造成影响,可以在电子设备与充电器件连接之后,先对充电器件内部的电容残压进行泄放。In order to prevent the residual voltage of the capacitor inside the charging device from affecting the charging process of the electronic device, the residual voltage of the capacitor inside the charging device may be discharged first after the electronic device is connected to the charging device.
示例性地,用户为了使用方便,将充电器件一直插设于插排上且未与电子设备连接。当插排断电之后,充电器件内的电容由于没有泄放途径,从而导致充电器件内一直存在电容残压。此时,若直接将电子设备与充电器件连接,将会导致电子设备内的电子器件检测到充电器件的残压,从而启动充电流程,在电子设备的显示屏上显示电子设备处于充电状态的图标,但是由于插排并未接电,导致该充电图标又很快消失,从而给用户造成困扰,不确定插排是否有电,还是电子设备有什么问题。因此,在本申请实施例中,在电子设备与充电器件连接之后,直接先对充电器件进行残压泄放,从而有效避免了电子设备在插排断电后连接充电器件显示异常的问题,不会给用户造成充电误解,用户体验度较高。For example, for ease of use, the user keeps the charging device plugged into the socket and not connected to the electronic device. When the socket is powered off, the capacitor in the charging device has no way to discharge, resulting in residual capacitor pressure in the charging device. At this time, if the electronic device is directly connected to the charging device, the electronic device in the electronic device will detect the residual pressure of the charging device, thereby starting the charging process and displaying an icon indicating that the electronic device is in a charging state on the display screen of the electronic device. However, since the socket is not powered, the charging icon disappears quickly, causing confusion to the user, who is not sure whether the socket has power or if there is a problem with the electronic device. Therefore, in an embodiment of the present application, after the electronic device is connected to the charging device, the residual pressure of the charging device is directly discharged first, thereby effectively avoiding the problem of abnormal display of the electronic device when the charging device is connected after the socket is powered off, and will not cause charging misunderstandings to the user, and the user experience is high.
需要说明的是,电子设备对充电器件进行残压泄放的过程可以包括三种状态:It should be noted that the process of the electronic device discharging the residual pressure of the charging device may include three states:
第一种状态:电子设备的泄放通路导通,且流经充电器件的泄放电流大于充电器件的额定电流,该种状态可以适用于具有过流保护电路的充电器件。例如,专用充电端口DCP、非标准充电端口和充电下行端口CDP等。The first state: the discharge path of the electronic device is turned on, and the discharge current flowing through the charging device is greater than the rated current of the charging device. This state can be applied to charging devices with overcurrent protection circuits, such as dedicated charging ports DCP, non-standard charging ports, and charging downstream ports CDP.
第二种状态:电子设备的泄放通路导通,且流经充电器件的泄放电流小于充电器件的额定电流,该种状态可以适用于不具有过流保护电路的充电器件。例如,标准下行端口SDP。The second state: the discharge path of the electronic device is turned on, and the discharge current flowing through the charging device is less than the rated current of the charging device. This state can be applied to charging devices without overcurrent protection circuits, such as standard downstream ports SDP.
第三种状态:电子设备的泄放通路断开,该种状态为电子设备完成残压泄放时的状态。泄放通路断开,以便于充电器件可以正常向电子设备进行充电流程。The third state: the discharge path of the electronic device is disconnected, which is the state when the electronic device completes the residual pressure discharge. The discharge path is disconnected so that the charging device can normally charge the electronic device.
应理解,当充电器件直接插入插座,且插座突然断电导致充电器件内的电容存在残压时,为了避免充电器件接入电子设备时导致电子设备的充电图标出现显示异常的问题,也可以采用本申请实施例提供的方案。It should be understood that when a charging device is directly plugged into a socket and the socket suddenly loses power, resulting in residual pressure in the capacitor of the charging device, in order to avoid the problem of abnormal display of the charging icon of the electronic device when the charging device is connected to the electronic device, the solution provided in the embodiment of the present application can also be adopted.
S7012、电子设备将电子设备的泄放通路断开。S7012, the electronic device disconnects the discharge path of the electronic device.
在电子设备完成对充电器件的残压泄放过程之后,可以将电子设备的泄放通路断开,从而避免电子设备的泄放通路一直处于导通状态,影响电子设备与充电器件的正常充电过程。After the electronic device completes the residual pressure discharge process for the charging device, the discharge path of the electronic device can be disconnected, thereby preventing the discharge path of the electronic device from being in a conducting state all the time, thereby affecting the normal charging process of the electronic device and the charging device.
S402、电子设备检测充电器件的端口类型。S402: The electronic device detects the port type of the charging device.
在对充电器件进行残压泄放之后,电子设备即可进行正常的充电流程,即首先检测充电器件的端口类型。After the residual pressure of the charging device is released, the electronic device can proceed with the normal charging process, that is, firstly detecting the port type of the charging device.
示例性地,在本申请实施例中,充电器件的端口类型可以包括标准下行端口(standard downstream port,SDP)、专用充电端口(dedicated charging port,DCP)、非标准充电端口和充电下行端口(charging downstream port,CDP)。其中,标准下行端口的D+线和D-线为差分数据线,D+线和D-线上具有15kΩ下拉电阻。标准下行端口的限流值在挂起时为2.5mA,连接时为100mA,连接并配置为较高功率时为500mA。专用充电端口不支持任何数据传输,但能够提供1.5A以上的电流。端口的D+线和D-线之间短路。这种类型的端口支持较高充电能力的墙上充电器和车载充电器。例如,专用充电端口可以为电子设备在生产时配备的电源适配器。非标准充电端口为没有D+线和D-数据线的充电器。例如,杂牌厂家生产的电源适配器。充电下行端口既支持大电流充电,也支持完全兼容USB2.0的数据传输。端口具有D+线和D-线通信所必需的15kΩ下拉电阻,也具有充电器检测阶段切换的内部电路。内部电路允许便携设备将充电下行端口与其它类型端口区分开来。Exemplarily, in an embodiment of the present application, the port types of the charging device may include a standard downstream port (SDP), a dedicated charging port (DCP), a non-standard charging port, and a charging downstream port (CDP). Among them, the D+ line and D- line of the standard downstream port are differential data lines, and the D+ line and the D- line have a 15kΩ pull-down resistor. The current limit value of the standard downstream port is 2.5mA when suspended, 100mA when connected, and 500mA when connected and configured for higher power. The dedicated charging port does not support any data transmission, but can provide a current of more than 1.5A. The D+ line and D- line of the port are short-circuited. This type of port supports wall chargers and car chargers with higher charging capabilities. For example, the dedicated charging port can be a power adapter equipped with the electronic device during production. The non-standard charging port is a charger without a D+ line and a D- data line. For example, a power adapter produced by a non-brand manufacturer. The charging downstream port supports both high-current charging and data transmission that is fully compatible with USB2.0. The port has the necessary 15kΩ pull-down resistors for D+ and D- line communication, and also has internal circuitry to switch during the charger detection phase. The internal circuitry allows the portable device to distinguish a charging downstream port from other types of ports.
S403、电子设备根据充电器件的端口类型对应的充电流程对电子设备进行充电。S403: The electronic device charges the electronic device according to the charging process corresponding to the port type of the charging device.
当电子设备检测到充电器件的端口类型之后,从而可以根据充电器件的端口类型对应的充电流程对电子设备进行充电。After the electronic device detects the port type of the charging device, the electronic device can be charged according to the charging process corresponding to the port type of the charging device.
示例性地,在本申请实施例中,当充电器件的端口类型为标准下行端口时,则根据标准下行端口对应的充电流程对电子设备进行充电。或者,当充电器件的端口类型为专用充电端口时,则根据专用充电端口对应的充电流程对电子设备进行充电。或者,当充电器件的端口类型为非标准充电端口时,则根据非标准充电端口对应的充电流程对电子设备进行充电。或者,当充电器件的端口类型为充电下行端口时,则根据充电下行端口对应的充电流程对电子设备进行充电。Exemplarily, in an embodiment of the present application, when the port type of the charging device is a standard downstream port, the electronic device is charged according to the charging process corresponding to the standard downstream port. Alternatively, when the port type of the charging device is a dedicated charging port, the electronic device is charged according to the charging process corresponding to the dedicated charging port. Alternatively, when the port type of the charging device is a non-standard charging port, the electronic device is charged according to the charging process corresponding to the non-standard charging port. Alternatively, when the port type of the charging device is a charging downstream port, the electronic device is charged according to the charging process corresponding to the charging downstream port.
图8为一种本申请实施例提供的充电器件端口类型检测波形图。FIG. 8 is a waveform diagram of a charging device port type detection provided in an embodiment of the present application.
如图8所示,示例性地,充电器件的端口类型可以通过D+信号波形、D-信号波形以及VBUS电压信号波形来进行检测。例如,当D+信号首先呈现第一高电位波形时,表示存在VBUS电压。然后,当D+信号呈现第二高电位波形,D-信号呈现低电位波形时,表示该充电器件的端口类型为标准下行端口SDP,从而可以通过该波形图判断电子设备连接的充电器件是否为标准下行端口。As shown in FIG8 , illustratively, the port type of the charging device can be detected by the D+ signal waveform, the D- signal waveform, and the VBUS voltage signal waveform. For example, when the D+ signal first presents a first high potential waveform, it indicates that the VBUS voltage exists. Then, when the D+ signal presents a second high potential waveform and the D- signal presents a low potential waveform, it indicates that the port type of the charging device is a standard downstream port SDP, so that the waveform diagram can be used to determine whether the charging device connected to the electronic device is a standard downstream port.
应理解,不同的充电器件端口可以对应不同的波形图,从而通过其他充电器件端口对应的波形图也可以判断其他的充电器件端口,例如,充电下行端口DCP。充电下行端口DCP的判断波形长于标准下行端口SDP的判断波形,从而使充电下行端口DCP的判断时间长于标准下行端口SDP的判断时间。It should be understood that different charging device ports may correspond to different waveform diagrams, so that other charging device ports, such as the charging downstream port DCP, may also be judged by the waveform diagrams corresponding to other charging device ports. The judgment waveform of the charging downstream port DCP is longer than the judgment waveform of the standard downstream port SDP, so that the judgment time of the charging downstream port DCP is longer than the judgment time of the standard downstream port SDP.
下面结合图9至图11,再针对本申请实施例提供的避免显示异常的充电电路方案进行详细介绍。9 to 11 , a charging circuit solution for avoiding display abnormality provided in an embodiment of the present application will be described in detail.
图9为一种本申请实施例提供的避免显示异常的充电电路的电路图。FIG. 9 is a circuit diagram of a charging circuit for avoiding display abnormality provided in an embodiment of the present application.
如图9所示,在本申请提供的一种实施例中,避免显示异常的充电电路包括开关器件901,开关器件901包括三个端。开关器件901的第一端a与充电器件20连接,开关器件901的第二端b接地。当开关器件901的控制端c接收到导通信号时,开关器件901的第一端a和开关器件901的第二端b之间导通,以对充电器件20进行残压泄放。当开关器件901的控制端c接收到断开信号时,开关器件901的第一端a和开关器件901的第二端b之间断开,以使充电器件20可以对电子设备10进行充电。As shown in FIG9 , in one embodiment provided in the present application, a charging circuit for avoiding display abnormality includes a switch device 901, and the switch device 901 includes three terminals. The first terminal a of the switch device 901 is connected to the charging device 20, and the second terminal b of the switch device 901 is grounded. When the control terminal c of the switch device 901 receives a conduction signal, the first terminal a of the switch device 901 and the second terminal b of the switch device 901 are connected to discharge the residual pressure of the charging device 20. When the control terminal c of the switch device 901 receives a disconnection signal, the first terminal a of the switch device 901 and the second terminal b of the switch device 901 are disconnected, so that the charging device 20 can charge the electronic device 10.
当需要通过开关器件901对充电器件20内的电容进行残压泄放时,将电子设备10的泄放通路(即开关器件901)导通。从而可以通过开关器件901实现充电器件20内部电容的残压泄放,使电子设备10可以正常显示充电状态和未充电状态。有效避免了电子设备10在插排30断电后连接充电器件20显示异常的问题,不会给用户造成充电误解,用户体验度较高。When the residual pressure of the capacitor in the charging device 20 needs to be discharged through the switch device 901, the discharge path (i.e., the switch device 901) of the electronic device 10 is turned on. Thus, the residual pressure of the capacitor inside the charging device 20 can be discharged through the switch device 901, so that the electronic device 10 can normally display the charging state and the uncharged state. The problem of abnormal display of the electronic device 10 when the charging device 20 is connected after the power strip 30 is powered off is effectively avoided, and the charging misunderstanding will not be caused to the user, and the user experience is high.
当开关器件901完成对充电器件20内部电容残压的泄放过程之后,可以将电子设备10的泄放通路(即开关器件901)断开。此时,若充电器件20未提供电能,则使电子设备10无法获得电能,进而无法启动充电流程,不会短暂出现充电显示状态,不会给用户造成充电误解。若充电器件20提供电能,则可以通过充电器件20向电子设备10正常供电,电子设备正常出现充电显示状态。After the switch device 901 completes the process of discharging the residual voltage of the capacitor inside the charging device 20, the discharge path (i.e., the switch device 901) of the electronic device 10 can be disconnected. At this time, if the charging device 20 does not provide power, the electronic device 10 cannot obtain power, and thus cannot start the charging process, and the charging display state will not appear briefly, which will not cause charging misunderstandings to the user. If the charging device 20 provides power, the electronic device 10 can be powered normally through the charging device 20, and the electronic device will normally display the charging display state.
需要说明的是,开关器件901对充电器件进行残压泄放的过程可以包括三种状态:It should be noted that the process of the switch device 901 discharging the residual pressure of the charging device may include three states:
第一种状态:开关器件901导通,且流经充电器件20的泄放电流大于充电器件20的额定电流,该种状态可以适用于具有过流保护电路的充电器件20。例如,专用充电端口DCP、非标准充电端口和充电下行端口CDP等。The first state: the switch device 901 is turned on, and the discharge current flowing through the charging device 20 is greater than the rated current of the charging device 20. This state can be applied to the charging device 20 with an overcurrent protection circuit, such as a dedicated charging port DCP, a non-standard charging port, and a charging downstream port CDP.
第二种状态:开关器件901导通,且流经充电器件20的泄放电流小于充电器件20的额定电流,该种状态可以适用于不具有过流保护电路的充电器件20。例如,标准下行端口SDP。The second state: the switch device 901 is turned on, and the discharge current flowing through the charging device 20 is less than the rated current of the charging device 20. This state may be applicable to the charging device 20 without an overcurrent protection circuit, for example, a standard downstream port SDP.
第三种状态:开关器件901断开,该种状态为电子设备10完成残压泄放时的状态。开关器件901断开,以便于充电器件20可以正常向电子设备10进行充电流程。The third state: the switch device 901 is disconnected, which is the state when the electronic device 10 has completed the residual pressure discharge. The switch device 901 is disconnected so that the charging device 20 can normally perform the charging process for the electronic device 10.
示例性地,开关器件901可以是MOS管、晶闸管、三极管、绝缘栅双极型晶体管(insulated gate bipolar transistor,IGBT)等电子器件。Exemplarily, the switch device 901 may be an electronic device such as a MOS tube, a thyristor, a triode, or an insulated gate bipolar transistor (IGBT).
当开关器件901为NMOS管时,NMOS管可以具有三种状态:When the switch device 901 is an NMOS transistor, the NMOS transistor can have three states:
第一种状态:当NMOS管接收到高电平信号(即VGS>VGS(TH)、VDS>VGS-VGS(TH))时,NMOS管处于导通状态,且导通电压较高,泄放电流较大。例如,1.8V左右的导通电压。此时,若将NMOS管作为开关器件901,用于对充电器件20进行残压泄流,由于泄放电流较大,为了避免对充电器件20造成过流损坏,则可以适用于专用充电端口DCP、非标准充电端口和充电下行端口CDP等具有过流保护电路的充电器件20。The first state: When the NMOS tube receives a high-level signal (i.e., VGS>VGS(TH), VDS>VGS-VGS(TH)), the NMOS tube is in the on state, and the on-voltage is high, and the discharge current is large. For example, the on-voltage is about 1.8V. At this time, if the NMOS tube is used as a switch device 901 to discharge the residual pressure of the charging device 20, since the discharge current is large, in order to avoid overcurrent damage to the charging device 20, it can be applied to the charging device 20 with an overcurrent protection circuit such as a dedicated charging port DCP, a non-standard charging port, and a charging downstream port CDP.
第二种状态:当NMOS管接收到中电平信号(即VGS>VGS(TH)、VDS<VGS-VGS(TH))时,NMOS管处于高阻状态,且导通电压较低,泄放电流较小。例如,1.1V左右的导通电压。此时,若将NMOS管作为开关器件901,用于对充电器件20进行残压泄流,由于泄放电流较小,不会对充电器件20造成过流损坏,则可以适用于标准下行端口SDP、专用充电端口DCP、非标准充电端口和充电下行端口CDP等多种充电器件20。The second state: When the NMOS tube receives a medium-level signal (i.e., VGS>VGS(TH), VDS<VGS-VGS(TH)), the NMOS tube is in a high-resistance state, and the on-voltage is low, and the discharge current is small. For example, the on-voltage is about 1.1V. At this time, if the NMOS tube is used as a switch device 901 to discharge the residual pressure of the charging device 20, since the discharge current is small, it will not cause overcurrent damage to the charging device 20, and it can be applied to a variety of charging devices 20 such as the standard downstream port SDP, the dedicated charging port DCP, the non-standard charging port and the charging downstream port CDP.
第三种状态:当NMOS管接收到低电平信号(即VGS<VGS(TH))时,NMOS管处于截止状态,从而使充电器件20可以正常向电子设备10进行充电流程。例如,NMOS管完成残压泄放动作时。同时,NMOS管导通和截止的时间较短,不足500ms,对用户的正常充电检测流程不会产生太大影响。The third state: when the NMOS tube receives a low-level signal (ie, VGS < VGS (TH)), the NMOS tube is in the cut-off state, so that the charging device 20 can normally charge the electronic device 10. For example, when the NMOS tube completes the residual pressure discharge action. At the same time, the NMOS tube is turned on and off for a short time, less than 500ms, which will not have much impact on the user's normal charging detection process.
图10为又一种本申请实施例提供的避免显示异常的充电方法的电路图。FIG. 10 is a circuit diagram of another charging method for avoiding display abnormality provided in an embodiment of the present application.
如图10所示,在本申请提供的一种实施例中,避免显示异常的充电电路包括开关器件901和第一电阻R1,开关器件901包括三个端,第一电阻R1包括两个端。开关器件901的第一端a与充电器件20连接,开关器件901的第二端b接地,开关器件901的控制端c与第一电阻R1的第一端连接,第一电阻R1的第二端接地。当开关器件901的控制端c接收到导通信号时,开关器件901的第一端a和开关器件901的第二端b之间导通,以对充电器件20进行残压泄放。当开关器件901的控制端c接收到断开信号时,开关器件901的第一端a和开关器件901的第二端b之间断开,以使充电器件20可以对电子设备10进行充电。第一电阻R1用于起到稳定作用,防止开关器件901的控制端电流过大对开关器件901产生损坏,同时还可以起到调节开关器件901的控制端c处电压的作用。As shown in FIG. 10 , in an embodiment provided by the present application, a charging circuit for avoiding display abnormality includes a switch device 901 and a first resistor R1, wherein the switch device 901 includes three terminals and the first resistor R1 includes two terminals. The first terminal a of the switch device 901 is connected to the charging device 20, the second terminal b of the switch device 901 is grounded, the control terminal c of the switch device 901 is connected to the first terminal of the first resistor R1, and the second terminal of the first resistor R1 is grounded. When the control terminal c of the switch device 901 receives a conduction signal, the first terminal a of the switch device 901 and the second terminal b of the switch device 901 are connected to discharge the residual pressure of the charging device 20. When the control terminal c of the switch device 901 receives a disconnection signal, the first terminal a of the switch device 901 and the second terminal b of the switch device 901 are disconnected so that the charging device 20 can charge the electronic device 10. The first resistor R1 is used to play a stabilizing role, preventing the control terminal current of the switch device 901 from being too large to damage the switch device 901, and can also play a role in regulating the voltage at the control terminal c of the switch device 901.
当需要通过开关器件901对充电器件20内的电容进行残压泄放时,将电子设备10的泄放通路(即开关器件901)导通。从而可以通过开关器件901实现充电器件20内部电容的残压泄放,通过第一电阻R1实现稳压作用,使电子设备10可以正常显示充电状态和未充电状态。有效避免了电子设备10在插排30断电后连接充电器件20显示异常的问题,不会给用户造成充电误解,用户体验度较高。When the residual pressure of the capacitor in the charging device 20 needs to be discharged through the switch device 901, the discharge path (i.e., the switch device 901) of the electronic device 10 is turned on. Thus, the residual pressure of the capacitor inside the charging device 20 can be discharged through the switch device 901, and the voltage stabilization effect is achieved through the first resistor R1, so that the electronic device 10 can normally display the charging state and the uncharging state. The problem of abnormal display of the electronic device 10 when the charging device 20 is connected after the power strip 30 is turned off is effectively avoided, and the charging misunderstanding will not be caused to the user, and the user experience is high.
当开关器件901完成对充电器件20内部电容残压的泄放过程之后,可以将电子设备10的泄放通路(即开关器件901)断开。此时,若充电器件20未提供电能,则使电子设备10无法获得电能,进而无法启动充电流程,不会短暂出现充电显示状态,不会给用户造成充电误解。若充电器件20提供电能,则可以通过充电器件20向电子设备10正常供电,电子设备正常出现充电显示状态。After the switch device 901 completes the process of discharging the residual voltage of the capacitor inside the charging device 20, the discharge path (i.e., the switch device 901) of the electronic device 10 can be disconnected. At this time, if the charging device 20 does not provide power, the electronic device 10 cannot obtain power, and thus cannot start the charging process, and the charging display state will not appear briefly, which will not cause charging misunderstandings to the user. If the charging device 20 provides power, the electronic device 10 can be powered normally through the charging device 20, and the electronic device will normally display the charging display state.
示例性地,开关器件901可以是MOSFET、晶闸管、三极管、绝缘栅双极型晶体管(insulated gate bipolar transistor,IGBT)等电子器件。Exemplarily, the switch device 901 may be an electronic device such as a MOSFET, a thyristor, a triode, or an insulated gate bipolar transistor (IGBT).
当开关器件901为NMOS管时,NMOS管可以具有三种状态:When the switch device 901 is an NMOS transistor, the NMOS transistor can have three states:
第一种状态:当NMOS管接收到高电平信号(即VGS>VGS(TH)、VDS>VGS-VGS(TH))时,NMOS管处于导通状态,且导通电压较高,泄放电流较大。例如,1.8V左右的导通电压。此时,若将NMOS管作为开关器件901,用于对充电器件20进行残压泄流,由于泄放电流较大,为了避免对充电器件20造成过流损坏,则可以适用于专用充电端口DCP、非标准充电端口和充电下行端口CDP等具有过流保护电路的充电器件20。The first state: When the NMOS tube receives a high-level signal (i.e., VGS>VGS(TH), VDS>VGS-VGS(TH)), the NMOS tube is in the on state, and the on-voltage is high, and the discharge current is large. For example, the on-voltage is about 1.8V. At this time, if the NMOS tube is used as a switch device 901 to discharge the residual pressure of the charging device 20, since the discharge current is large, in order to avoid overcurrent damage to the charging device 20, it can be applied to the charging device 20 with an overcurrent protection circuit such as a dedicated charging port DCP, a non-standard charging port, and a charging downstream port CDP.
第二种状态:当NMOS管接收到中电平信号(即VGS>VGS(TH)、VDS<VGS-VGS(TH))时,NMOS管处于高阻状态,且导通电压较低,泄放电流较小。例如,1.1V左右的导通电压。此时,若将NMOS管作为开关器件901,用于对充电器件20进行残压泄流,由于泄放电流较小,不会对充电器件20造成过流损坏,则可以适用于标准下行端口SDP、专用充电端口DCP、非标准充电端口和充电下行端口CDP等多种充电器件20。The second state: When the NMOS tube receives a medium-level signal (i.e., VGS>VGS(TH), VDS<VGS-VGS(TH)), the NMOS tube is in a high-resistance state, and the on-voltage is low, and the discharge current is small. For example, the on-voltage is about 1.1V. At this time, if the NMOS tube is used as a switch device 901 to discharge the residual pressure of the charging device 20, since the discharge current is small, it will not cause overcurrent damage to the charging device 20, and it can be applied to a variety of charging devices 20 such as the standard downstream port SDP, the dedicated charging port DCP, the non-standard charging port and the charging downstream port CDP.
第三种状态:当NMOS管接收到低电平信号(即VGS<VGS(TH))时,NMOS管处于截止状态,从而使充电器件20可以正常向电子设备10进行充电流程。例如,NMOS管完成残压泄放动作时。The third state: when the NMOS tube receives a low level signal (ie, VGS<VGS(TH)), the NMOS tube is in a cut-off state, so that the charging device 20 can normally charge the electronic device 10. For example, when the NMOS tube completes the residual pressure discharge action.
图11为又一种本申请实施例提供的避免显示异常的充电方法的电路图。FIG. 11 is a circuit diagram of another charging method for avoiding display abnormality provided in an embodiment of the present application.
如图11所示,在本申请提供的一种实施例中,避免显示异常的充电电路包括第一MOS管Q1和第一电阻R1,第一MOS管Q1包括三个端,第一电阻R1包括两个端。第一MOS管Q1的第一端a与充电器件20连接,第一MOS管Q1的第二端b接地,第一MOS管Q1的控制端c与第一电阻R1的第一端连接,第一电阻R1的第二端接地。当第一MOS管Q1的控制端c接收到导通信号时,第一MOS管Q1的第一端a和第一MOS管Q1的第二端b之间导通,以对充电器件20进行残压泄放。当第一MOS管Q1的控制端c接收到断开信号时,第一MOS管Q1的第一端a和第一MOS管Q1的第二端b之间断开,以使充电器件20可以对电子设备10进行充电。第一电阻R1用于起到稳定作用,防止第一MOS管Q1的控制端电流过大对第一MOS管Q1产生损坏,同时还可以起到调节第一MOS管Q1的控制端c处电压的作用。As shown in FIG. 11 , in an embodiment provided by the present application, a charging circuit for avoiding display abnormality includes a first MOS tube Q1 and a first resistor R1, wherein the first MOS tube Q1 includes three terminals and the first resistor R1 includes two terminals. The first terminal a of the first MOS tube Q1 is connected to the charging device 20, the second terminal b of the first MOS tube Q1 is grounded, the control terminal c of the first MOS tube Q1 is connected to the first terminal of the first resistor R1, and the second terminal of the first resistor R1 is grounded. When the control terminal c of the first MOS tube Q1 receives a conduction signal, the first terminal a of the first MOS tube Q1 and the second terminal b of the first MOS tube Q1 are connected to discharge the residual pressure of the charging device 20. When the control terminal c of the first MOS tube Q1 receives a disconnection signal, the first terminal a of the first MOS tube Q1 and the second terminal b of the first MOS tube Q1 are disconnected, so that the charging device 20 can charge the electronic device 10. The first resistor R1 is used to play a stabilizing role, preventing the control terminal current of the first MOS tube Q1 from being too large to damage the first MOS tube Q1, and can also play a role in regulating the voltage at the control terminal c of the first MOS tube Q1.
示例性地,第一MOS管Q1可以具有三种状态:Exemplarily, the first MOS transistor Q1 can have three states:
第一种状态:当第一MOS管Q1接收到高电平信号(即VGS>VGS(TH)、VDS>VGS-VGS(TH))时,第一MOS管Q1处于导通状态,且导通电压较高,泄放电流较大。例如,1.8V左右的导通电压。此时,第一MOS管Q1用于对充电器件20进行残压泄流,由于泄放电流较大,为了避免对充电器件20造成过流损坏,则可以适用于专用充电端口DCP、非标准充电端口和充电下行端口CDP等具有过流保护电路的充电器件20。The first state: when the first MOS tube Q1 receives a high-level signal (i.e., VGS>VGS(TH), VDS>VGS-VGS(TH)), the first MOS tube Q1 is in the on state, and the on voltage is relatively high, and the discharge current is relatively large. For example, the on voltage is about 1.8V. At this time, the first MOS tube Q1 is used to discharge the residual pressure of the charging device 20. Since the discharge current is relatively large, in order to avoid overcurrent damage to the charging device 20, it can be applied to the charging device 20 with an overcurrent protection circuit such as a dedicated charging port DCP, a non-standard charging port, and a charging downstream port CDP.
第二种状态:当第一MOS管Q1接收到中电平信号(即VGS>VGS(TH)、VDS<VGS-VGS(TH))时,第一MOS管Q1处于高阻状态,且导通电压较低,泄放电流较小。例如,1.1V左右的导通电压。此时,第一MOS管Q1用于对充电器件20进行残压泄流,由于泄放电流较小,不会对充电器件20造成过流损坏,则可以适用于标准下行端口SDP、专用充电端口DCP、非标准充电端口和充电下行端口CDP等多种充电器件20。The second state: when the first MOS tube Q1 receives a medium-level signal (i.e., VGS>VGS(TH), VDS<VGS-VGS(TH)), the first MOS tube Q1 is in a high-resistance state, and the on-voltage is low, and the discharge current is small. For example, the on-voltage is about 1.1V. At this time, the first MOS tube Q1 is used to discharge the residual pressure of the charging device 20. Since the discharge current is small, it will not cause overcurrent damage to the charging device 20, and it can be applied to a variety of charging devices 20 such as the standard downstream port SDP, the dedicated charging port DCP, the non-standard charging port and the charging downstream port CDP.
第三种状态:当第一MOS管Q1接收到低电平信号(即VGS<VGS(TH))时,第一MOS管Q1处于截止状态,从而使充电器件20可以正常向电子设备10进行充电流程。例如,第一MOS管Q1完成残压泄放动作时。The third state: when the first MOS tube Q1 receives a low level signal (ie, VGS<VGS(TH)), the first MOS tube Q1 is in a cut-off state, so that the charging device 20 can normally charge the electronic device 10. For example, when the first MOS tube Q1 completes the residual pressure discharge action.
示例性地,避免显示异常的充电电路可以通过电子设备10内部的通用输入/输出(general-purpose input/output,GPIO)接口来实现泄放通路的导通和断开。例如,电子设备10可以通过GPIO接口来提供第一MOS管Q1的控制信号,即高电平信号、中电平信号以及低电平信号。Exemplarily, the charging circuit for avoiding display abnormality can realize the conduction and disconnection of the discharge path through a general-purpose input/output (GPIO) interface inside the electronic device 10. For example, the electronic device 10 can provide a control signal of the first MOS tube Q1, that is, a high level signal, a medium level signal, and a low level signal, through the GPIO interface.
GPIO接口包括输入驱动器、输出驱动器、第一二极管D1和第二二极管D2。第一二极管D1的正极和第二二极管D2的正极均通过I/O引脚与第一MOS管Q1的控制端连接。第一二极管D1负极接入电源电压VDD,第二二极管D2的负极接地VSS。第一二极管D1和第二二极管D2用于防止I/O引脚外部过高、过低的电压输入。例如,当I/O引脚电压高于VDD时,第一二极管D1导通;当I/O引脚电压低于VSS时,第二二极管D2导通,防止不正常电压引入导致芯片烧毁。The GPIO interface includes an input driver, an output driver, a first diode D1 and a second diode D2. The anode of the first diode D1 and the anode of the second diode D2 are both connected to the control end of the first MOS tube Q1 through the I/O pin. The cathode of the first diode D1 is connected to the power supply voltage VDD, and the cathode of the second diode D2 is grounded to VSS. The first diode D1 and the second diode D2 are used to prevent the external voltage of the I/O pin from being too high or too low. For example, when the voltage of the I/O pin is higher than VDD, the first diode D1 is turned on; when the voltage of the I/O pin is lower than VSS, the second diode D2 is turned on to prevent the abnormal voltage from being introduced and causing the chip to burn.
输入驱动器包括第一开关S1、第二开关S2、第二电阻R2、第三电阻R3和晶体管-晶体管逻辑(transistor transistor logic,TTL)肖基特触发器。第一开关S1的第一端接入电源电压VDD,第一开关S1的第二端与第二电阻R2的第一端连接。第二电阻R2的第二端分别与第一二极管D1和第二二极管D2的公共端、第三电阻R3的第一端以及TTL肖基特触发器的第一端连接,第三电阻R3的第二端与第二开关S2的第一端连接。第二开关S2的第二端接地VSS。TTL肖基特触发器的第二端与输入数据寄存器连接。The input driver includes a first switch S1, a second switch S2, a second resistor R2, a third resistor R3 and a transistor-transistor logic (TTL) Schottky trigger. The first end of the first switch S1 is connected to the power supply voltage VDD, and the second end of the first switch S1 is connected to the first end of the second resistor R2. The second end of the second resistor R2 is respectively connected to the common end of the first diode D1 and the second diode D2, the first end of the third resistor R3 and the first end of the TTL Schottky trigger, and the second end of the third resistor R3 is connected to the first end of the second switch S2. The second end of the second switch S2 is grounded to VSS. The second end of the TTL Schottky trigger is connected to the input data register.
需要说明的是,信号经过TTL肖基特触发器后,将模拟信号转化为0和1的数字信号。但是,当GPIO接口作为ADC采集电压的输入通道时,即使用其“模拟输入”功能时,此时信号不再经过TTL肖基特触发器进行TTL电平转换。因为ADC外设要采集的是原始的模拟信号。It should be noted that after the signal passes through the TTL Schottky trigger, the analog signal is converted into a digital signal of 0 and 1. However, when the GPIO interface is used as the input channel for the ADC to collect voltage, that is, when its "analog input" function is used, the signal no longer passes through the TTL Schottky trigger for TTL level conversion. This is because the ADC peripheral collects the original analog signal.
输出驱动器包括第二MOS管Q2、第三MOS管Q3和输出控制器。第二MOS管Q2的第一端接入电源电压VDD,第二MOS管Q2的第二端与第三MOS管的第一端连接,第三MOS管的第二端接地VSS。第二MOS管Q2的控制端和第三MOS管Q3的控制端均与输出控制器的第一端连接。输出控制器的第二端依次与输出数据寄存器和位设置/清除寄存器连接。The output driver includes a second MOS transistor Q2, a third MOS transistor Q3 and an output controller. The first end of the second MOS transistor Q2 is connected to the power supply voltage VDD, the second end of the second MOS transistor Q2 is connected to the first end of the third MOS transistor, and the second end of the third MOS transistor is grounded VSS. The control end of the second MOS transistor Q2 and the control end of the third MOS transistor Q3 are both connected to the first end of the output controller. The second end of the output controller is connected to the output data register and the bit setting/clearing register in sequence.
示例性地,在本申请实施例中,GPIO可以支持4种输入模式(浮空输入、上拉输入、下拉输入、模拟输入)和4种输出模式(开漏输出、开漏复用输出、推挽输出、推挽复用输出)。同时,GPIO还支持三种最大翻转速度(2MHz、10MHz、50MHz)。For example, in the embodiment of the present application, GPIO can support 4 input modes (floating input, pull-up input, pull-down input, analog input) and 4 output modes (open drain output, open drain multiplexed output, push-pull output, push-pull multiplexed output). At the same time, GPIO also supports three maximum flip speeds (2MHz, 10MHz, 50MHz).
在浮空输入模式下,I/O引脚的电平信号直接进入输入数据寄存器。也就是说,I/O引脚的电平状态是不确定的,完全由外部输入决定;如果在该I/O引脚悬空(在无信号输入)的情况下,读取该端口的电平是不确定的。In floating input mode, the level signal of the I/O pin directly enters the input data register. In other words, the level state of the I/O pin is uncertain and is completely determined by the external input; if the I/O pin is floating (with no signal input), the level of the port is uncertain.
在上拉输入模式下,I/O引脚的电平信号直接进入输入数据寄存器。但是在I/O引脚悬空(在无信号输入)的情况下,输入端的电平可以保持在高电平;并且在I/O引脚输入为低电平的时候,输入端的电平也还是低电平。In the pull-up input mode, the level signal of the I/O pin directly enters the input data register. However, when the I/O pin is suspended (no signal input), the level of the input end can be maintained at a high level; and when the I/O pin input is a low level, the level of the input end is still a low level.
在下拉输入模式下,I/O引脚的电平信号直接进入输入数据寄存器。但是在I/O引脚悬空(在无信号输入)的情况下,输入端的电平可以保持在低电平;并且在I/O引脚输入为高电平的时候,输入端的电平也还是高电平。In the pull-down input mode, the level signal of the I/O pin directly enters the input data register. However, when the I/O pin is suspended (no signal input), the level of the input end can be kept at a low level; and when the I/O pin input is a high level, the level of the input end is still a high level.
在模拟输入模式下,I/O引脚的模拟信号(电压信号,而非电平信号)直接模拟输入到片上外设模块,比如ADC模块等等。In analog input mode, the analog signal (voltage signal, not level signal) of the I/O pin is directly analog input to the on-chip peripheral module, such as the ADC module, etc.
在开漏输出模式下,通过设置位设置/清除寄存器或者输出数据寄存器的值,途经N-MOS管,最终输出到I/O引脚。当设置输出的值为高电平的时候,N-MOS管处于关闭状态,此时I/O引脚的电平就不会由输出的高低电平决定,而是由I/O引脚外部的上拉或者下拉决定;当设置输出的值为低电平的时候,N-MOS管处于开启状态,此时I/O引脚的电平就是低电平。同时,I/O引脚的电平也可以通过输入电路进行读取;I/O引脚的电平不一定是输出的电平。In open-drain output mode, the value of the register or output data register is set/cleared by setting the bit, and finally output to the I/O pin through the N-MOS tube. When the output value is set to a high level, the N-MOS tube is in a closed state. At this time, the level of the I/O pin is not determined by the high or low level of the output, but by the pull-up or pull-down outside the I/O pin; when the output value is set to a low level, the N-MOS tube is in an open state, and the level of the I/O pin is a low level. At the same time, the level of the I/O pin can also be read through the input circuit; the level of the I/O pin is not necessarily the output level.
开漏复用输出模式与开漏输出模式很是类似。在开漏复用输出模式下,只是输出的高低电平的来源,不是让CPU直接写输出数据寄存器,取而代之利用片上外设模块的复用功能输出来决定的。The open-drain multiplexed output mode is very similar to the open-drain output mode. In the open-drain multiplexed output mode, the source of the high and low levels of the output is not determined by the CPU directly writing the output data register, but instead by the multiplexing function output of the on-chip peripheral module.
在本申请提供的一种实施例中,提供了一种电子设备10,包括上述的避免显示异常的充电电路和控制模块。控制模块与避免显示异常的充电电路连接,以控制避免显示异常的充电电路导通或者断开。在电子设备10与充电器件20连接之后,可以先对充电器件20内部的残压进行泄放,然后再根据充电器件20的端口类型对应的充电流程对电子设备10进行充电,从而可以有效避免电子设备10在插排30断电后连接充电器件20显示异常的问题,不会给用户造成充电误解,用户体验度较高。In one embodiment provided in the present application, an electronic device 10 is provided, comprising the above-mentioned charging circuit for avoiding display abnormalities and a control module. The control module is connected to the charging circuit for avoiding display abnormalities to control the charging circuit for avoiding display abnormalities to be turned on or off. After the electronic device 10 is connected to the charging device 20, the residual pressure inside the charging device 20 can be discharged first, and then the electronic device 10 can be charged according to the charging process corresponding to the port type of the charging device 20, thereby effectively avoiding the problem of abnormal display of the electronic device 10 when the charging device 20 is connected after the power strip 30 is powered off, and will not cause charging misunderstandings to users, and the user experience is high.
应理解,上述仅为针对电子设备10的结构的一种示例,电子设备10也可以包括其他子系统或器件,具体可以根据需要进行设置和修改,本申请实施例对此不进行任何限制。It should be understood that the above is only an example of the structure of the electronic device 10, and the electronic device 10 may also include other subsystems or devices, which can be configured and modified as needed, and the embodiments of the present application do not impose any limitations on this.
图12为一种本申请实施例提供的电子设备的结构示意图。图12中的虚线表示该单元或该模块为可选的;电子设备10可以用于实现上述方法实施例中描述的防闪烁传感器的功能测试方法。示例性地,电子设备10可以为集成有防闪烁传感器的具有拍照录像功能的电子设备。例如,智能手机、智能平板、智能电脑、智能安防设备等。FIG12 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The dotted line in FIG12 indicates that the unit or the module is optional; the electronic device 10 can be used to implement the functional test method of the anti-flicker sensor described in the above method embodiment. Exemplarily, the electronic device 10 can be an electronic device with a camera and video recording function integrated with an anti-flicker sensor. For example, a smart phone, a smart tablet, a smart computer, a smart security device, etc.
电子设备10包括一个或多个处理器110,该一个或多个处理器110可支持电子设备10实现方法实施例中的控制方法。处理器110可以是通用处理器或者专用处理器。例如,处理器110可以是中央处理器(central processing unit,CPU)、数字信号处理器(digitalsignal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其它可编程逻辑器件,如分立门、晶体管逻辑器件或分立硬件组件。The electronic device 10 includes one or more processors 110, which can support the electronic device 10 to implement the control method in the method embodiment. The processor 110 can be a general-purpose processor or a special-purpose processor. For example, the processor 110 can be a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, such as discrete gates, transistor logic devices, or discrete hardware components.
可选地,处理器110可以用于对电子设备10进行控制,执行软件程序,处理软件程序的数据。电子设备10还可以包括通信单元905,用以实现信号的输入(接收)和输出(发送)。Optionally, the processor 110 may be used to control the electronic device 10, execute software programs, and process data of the software programs. The electronic device 10 may also include a communication unit 905 to implement input (reception) and output (transmission) of signals.
例如,电子设备10可以是芯片,通信单元905可以是该芯片的输入和/或输出电路,或者,通信单元905可以是该芯片的通信接口,该芯片可以作为电子设备或其它电子设备的组成部分。For example, the electronic device 10 may be a chip, the communication unit 905 may be an input and/or output circuit of the chip, or the communication unit 905 may be a communication interface of the chip, and the chip may be a component of the electronic device or other electronic devices.
又例如,电子设备10可以是电子设备,通信单元905可以是该电子设备10的收发器,或者,通信单元905可以包括一个或多个存储器902,其上存有程序904,程序904可被处理器110运行,生成指令903,使得处理器110根据指令903执行上述方法实施例中描述的防闪烁传感器的功能测试方法。For another example, the electronic device 10 may be an electronic device, and the communication unit 905 may be a transceiver of the electronic device 10, or the communication unit 905 may include one or more memories 902 on which a program 904 is stored, and the program 904 may be executed by the processor 110 to generate instructions 903, so that the processor 110 executes the functional testing method of the anti-flicker sensor described in the above method embodiment according to the instructions 903.
可选地,存储器902中还可以存储有数据。Optionally, data may also be stored in the memory 902 .
可选地,处理器110还可以读取存储器902中存储的数据,该数据可以与程序904存储在相同的存储地址,该数据也可以与程序904存储在不同的存储地址。Optionally, the processor 110 may also read data stored in the memory 902 . The data may be stored at the same storage address as the program 904 , or may be stored at a different storage address from the program 904 .
可选地,处理器110和存储器902可以单独设置,也可以集成在一起,例如,集成在电子设备的系统级芯片(system on chip,SOC)上。Optionally, the processor 110 and the memory 902 may be provided separately or integrated together, for example, integrated on a system on chip (SOC) of the electronic device.
示例性地,存储器902可以用于存储本申请实施例中提供的防闪烁传感器的功能测试方法的相关程序904,处理器110可以用于在执行防闪烁传感器的功能测试方法时调用存储器902中存储的防闪烁传感器的功能测试方法的相关程序904,执行本申请实施例的防闪烁传感器的功能测试方法。Exemplarily, the memory 902 can be used to store the related program 904 of the functional testing method of the anti-flicker sensor provided in the embodiment of the present application, and the processor 110 can be used to call the related program 904 of the functional testing method of the anti-flicker sensor stored in the memory 902 when executing the functional testing method of the anti-flicker sensor, so as to execute the functional testing method of the anti-flicker sensor in the embodiment of the present application.
可选地,本申请还提供了一种计算机程序产品,该计算机程序产品被处理器110执行时实现本申请中任一方法实施例中的防闪烁传感器的功能测试方法。Optionally, the present application further provides a computer program product, which, when executed by the processor 110, implements the functional testing method of the anti-flicker sensor in any method embodiment of the present application.
例如,该计算机程序产品可以存储在存储器902中,例如是程序904,程序904经过预处理、编译、汇编和链接等处理过程最终被转换为能够被处理器110执行的可执行目标文件。For example, the computer program product may be stored in the memory 902 , such as a program 904 , which is converted into an executable target file that can be executed by the processor 110 after preprocessing, compiling, assembling, and linking.
可选地,本申请还提供了一种芯片系统,芯片系统应用于电子设备10,芯片系统包括一个或多个处理器,一个或多个处理器用于调用计算机指令以使得电子设备10执行防闪烁传感器的功能测试方法。Optionally, the present application also provides a chip system, which is applied to the electronic device 10, and the chip system includes one or more processors, and the one or more processors are used to call computer instructions to enable the electronic device 10 to execute the functional testing method of the anti-flicker sensor.
可选地,本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被计算机执行时实现本申请中任一方法实施例所述的防闪烁传感器的功能测试方法。该计算机程序可以是高级语言程序,也可以是可执行目标程序。Optionally, the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a computer, the function test method of the anti-flicker sensor described in any method embodiment of the present application is implemented. The computer program can be a high-level language program or an executable target program.
例如,该计算机可读存储介质例如是存储器902。存储器902可以是易失性存储器或非易失性存储器,或者,存储器902可以同时包括易失性存储器和非易失性存储器。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlinkDRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。For example, the computer-readable storage medium is, for example, a memory 902. The memory 902 may be a volatile memory or a non-volatile memory, or the memory 902 may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
上述本申请实施例提供的电子设备所能达到的有益效果可参考上文所提供的模块对应的有益效果,在此不再赘述。The beneficial effects that can be achieved by the electronic device provided in the above-mentioned embodiment of the present application can refer to the beneficial effects corresponding to the modules provided above, which will not be repeated here.
应理解,上述只是为了帮助本领域技术人员更好地理解本申请实施例,而非要限制本申请实施例的范围。本领域技术人员根据所给出的上述示例,显然可以进行各种等价的修改或变化,例如,上述检测方法的各个实施例中某些步骤可以是不必须的,或者可以新加入某些步骤等。或者上述任意两种或者任意多种实施例的组合。这样的修改、变化或者组合后的方案也落入本申请实施例的范围内。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。It should be understood that the above is only to help those skilled in the art to better understand the embodiments of the present application, rather than to limit the scope of the embodiments of the present application. According to the above examples given, those skilled in the art can obviously make various equivalent modifications or changes. For example, some steps in each embodiment of the above detection method may be unnecessary, or some steps may be newly added. Or a combination of any two or any multiple embodiments of the above. Such modifications, changes or combined solutions also fall within the scope of the embodiments of the present application. In addition, the coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of 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 separately, or two or more units may be integrated into one unit.
还应理解,上文对本申请实施例的描述着重于强调各个实施例之间的不同之处,未提到的相同或相似之处可以互相参考,为了简洁,这里不再赘述。It should also be understood that the above description of the embodiments of the present application focuses on emphasizing the differences between the various embodiments. The same or similar points that are not mentioned can be referenced to each other. For the sake of brevity, they will not be repeated here.
还应理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should also be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
还应理解,本申请实施例中,“预先设定”、“预先定义”可以通过在设备(例如,包括电子设备)中预先保存相应的代码、表格或其他可用于指示相关信息的方式来实现,本申请对于其具体的实现方式不做限定。It should also be understood that in the embodiments of the present application, "pre-setting" and "pre-definition" can be achieved by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in a device (for example, including an electronic device), and the present application does not limit its specific implementation method.
还应理解,本申请实施例中的方式、情况、类别以及实施例的划分仅是为了描述的方便,不应构成特别的限定,各种方式、类别、情况以及实施例中的特征在不矛盾的情况下可以相结合。It should also be understood that the division of the methods, situations, categories and embodiments in the embodiments of the present application is only for the convenience of description and should not constitute a special limitation. The features of various methods, categories, situations and embodiments can be combined without contradiction.
还应理解,在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。It should also be understood that in the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and/or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.
最后应说明的是:以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准总之,以上所述仅为本申请技术方案的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。Finally, it should be noted that the above is only a specific implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims. In short, the above is only a preferred embodiment of the technical solution of the present application, and is not used to limit the protection scope of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411259256.4A CN118889628B (en) | 2024-09-10 | 2024-09-10 | Charging method, circuit and electronic equipment for avoiding abnormal display |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411259256.4A CN118889628B (en) | 2024-09-10 | 2024-09-10 | Charging method, circuit and electronic equipment for avoiding abnormal display |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118889628A true CN118889628A (en) | 2024-11-01 |
CN118889628B CN118889628B (en) | 2025-03-11 |
Family
ID=93227690
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202411259256.4A Active CN118889628B (en) | 2024-09-10 | 2024-09-10 | Charging method, circuit and electronic equipment for avoiding abnormal display |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118889628B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002323547A (en) * | 2001-04-25 | 2002-11-08 | Denso Corp | Battery remaining amount display device |
CN112448448A (en) * | 2020-11-13 | 2021-03-05 | Oppo广东移动通信有限公司 | Charging control method and device, earphone, electronic equipment and readable storage medium |
CN213754022U (en) * | 2020-10-14 | 2021-07-20 | 北京猎户星空科技有限公司 | Element charge discharge circuit, charging equipment and robot system |
CN114594453A (en) * | 2020-12-04 | 2022-06-07 | 上海禾赛科技有限公司 | Laser emission circuit, laser emission control method and laser radar |
CN115549232A (en) * | 2022-04-21 | 2022-12-30 | 荣耀终端有限公司 | Charging method and device of electronic equipment, electronic equipment and keyboard |
CN118169486A (en) * | 2024-01-31 | 2024-06-11 | 国网宁夏电力有限公司营销服务中心(国网宁夏电力有限公司计量中心) | Remote monitoring method for metering of direct-current charging pile |
-
2024
- 2024-09-10 CN CN202411259256.4A patent/CN118889628B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002323547A (en) * | 2001-04-25 | 2002-11-08 | Denso Corp | Battery remaining amount display device |
CN213754022U (en) * | 2020-10-14 | 2021-07-20 | 北京猎户星空科技有限公司 | Element charge discharge circuit, charging equipment and robot system |
CN112448448A (en) * | 2020-11-13 | 2021-03-05 | Oppo广东移动通信有限公司 | Charging control method and device, earphone, electronic equipment and readable storage medium |
CN114594453A (en) * | 2020-12-04 | 2022-06-07 | 上海禾赛科技有限公司 | Laser emission circuit, laser emission control method and laser radar |
CN115549232A (en) * | 2022-04-21 | 2022-12-30 | 荣耀终端有限公司 | Charging method and device of electronic equipment, electronic equipment and keyboard |
CN118169486A (en) * | 2024-01-31 | 2024-06-11 | 国网宁夏电力有限公司营销服务中心(国网宁夏电力有限公司计量中心) | Remote monitoring method for metering of direct-current charging pile |
Non-Patent Citations (1)
Title |
---|
温怀疆: "电动自行车用36V恒流充电器", 《电子制作》, no. 7, 31 December 2002 (2002-12-31), pages 13 * |
Also Published As
Publication number | Publication date |
---|---|
CN118889628B (en) | 2025-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10181742B2 (en) | Electronic device, charger within the electronic device, and detecting method for detecting abnormal status of connector of electronic device | |
KR101902951B1 (en) | Charging circuit and terminal | |
US10658860B2 (en) | Electronic device, charger within the electronic device, and detecting method for detecting abnormal status of connector of electronic device | |
TWI494863B (en) | Dual-interface card reader module | |
US10333261B2 (en) | USB signal switching circuit, USB data line, USB signal switching method and storage medium | |
US11128154B2 (en) | Charging method and related device | |
TW201447594A (en) | Electronic device with integrated USB port | |
CN107643998B (en) | System for realizing OTG and charging dual functions based on intelligent module | |
CN106027012B (en) | Pull-down resistor switch circuit | |
US7654861B2 (en) | Connector and method thereof | |
CN106526403A (en) | Terminal leak current detection circuit, terminal and terminal leak current detection system | |
CN214375036U (en) | Mobile device test system | |
CN118889628A (en) | Charging method, circuit and electronic device for avoiding abnormal display | |
CN106877283A (en) | An electronic device and its power supply protection circuit | |
CN112701750A (en) | Connector, electronic equipment and control method and device of electronic equipment | |
CN118054655A (en) | Power supply circuit, control method thereof and electronic equipment | |
CN114336531B (en) | Leakage protection circuits and electronic equipment | |
CN214674403U (en) | Charging and discharging circuit and electronic equipment | |
US20220109318A1 (en) | Charging circuit, charging chip, mobile terminal, and charging system | |
CN105119118B (en) | A kind of USB charging wires | |
CN114243870A (en) | Over-discharge protection circuit, battery protection board and electronic equipment | |
CN109842180B (en) | Micro projector and charging and discharging control method thereof | |
CN220107627U (en) | Charging protection circuit, charging circuit and electronic equipment | |
CN221960540U (en) | USB switch module and USB equipment | |
CN109975649B (en) | Detection circuitry and power adapter of USBType-C equipment Type |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Country or region after: China Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Applicant after: Honor Terminal Co.,Ltd. Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Applicant before: Honor Device Co.,Ltd. Country or region before: China |
|
GR01 | Patent grant | ||
GR01 | Patent grant |