[go: up one dir, main page]

CN111026684A - Interface control method, interface control device and storage medium - Google Patents

Interface control method, interface control device and storage medium Download PDF

Info

Publication number
CN111026684A
CN111026684A CN201911237259.7A CN201911237259A CN111026684A CN 111026684 A CN111026684 A CN 111026684A CN 201911237259 A CN201911237259 A CN 201911237259A CN 111026684 A CN111026684 A CN 111026684A
Authority
CN
China
Prior art keywords
interface
interface chip
interrupt signal
interface control
power supply
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
Application number
CN201911237259.7A
Other languages
Chinese (zh)
Other versions
CN111026684B (en
Inventor
陈建立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201911237259.7A priority Critical patent/CN111026684B/en
Publication of CN111026684A publication Critical patent/CN111026684A/en
Application granted granted Critical
Publication of CN111026684B publication Critical patent/CN111026684B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/28Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Power Sources (AREA)

Abstract

本公开是关于一种接口控制方法、接口控制装置及存储介质。接口控制方法包括:监测应用处理器接收到的中断信号,中断信号由接口芯片响应于配置通道引脚的双角色端口切换沿超过协议阈值时发送;获取中断信号的接收次数;当接收次数达到设置阈值时,停止为接口芯片供电。通过本公开实施例,可降低由通用串行总线C型接口进液引起的终端功耗,防止接口腐蚀,确保用户的使用安全。

Figure 201911237259

The present disclosure relates to an interface control method, an interface control device and a storage medium. The interface control method includes: monitoring the interrupt signal received by the application processor, and the interrupt signal is sent by the interface chip in response to the dual-role port switching edge of the configuration channel pin exceeding the protocol threshold; obtaining the reception times of the interrupt signal; When the threshold is reached, power supply to the interface chip is stopped. Through the embodiments of the present disclosure, the power consumption of the terminal caused by the liquid inflow of the universal serial bus C-type interface can be reduced, the interface corrosion can be prevented, and the user's use safety can be ensured.

Figure 201911237259

Description

Interface control method, interface control device and storage medium
Technical Field
The present disclosure relates to the field of Universal Serial Bus (USB) interface technologies, and in particular, to an interface control method, an interface control apparatus, and a storage medium.
Background
With the development of the technology, Universal Serial Bus Type-C (USB Type-C) interfaces are widely applied to electronic devices such as smart phones and tablet computers. The electronic equipment can be connected with external Type-C equipment through a Type-C interface, and interaction between the equipment is realized.
In order to facilitate the use of a user, the Type-C interface of the electronic device is usually exposed, so that the Type-C interface is easily contacted with conductive liquid such as sweat, oil stain and the like. The configuration channel pin of the Type-C interface is continuously electrified, and when conductive liquid exists, a loop of electrochemical reaction is easily formed in the interface. Increase electronic equipment's consumption, the corruption of Type-C interface with higher speed, influence life to potential safety hazards such as conflagration easily produce.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an interface control method, an interface control apparatus, and a storage medium.
According to an aspect of the embodiments of the present disclosure, there is provided an interface control method including: monitoring an interrupt signal received by an application processor, wherein the interrupt signal is sent by an interface chip when the switching edge of a double-role port responding to a configuration channel pin exceeds a protocol threshold; acquiring the receiving times of the interrupt signal; and when the receiving times reach a set threshold value, stopping supplying power to the interface chip.
In one embodiment, stopping power to the interface chip includes: and setting the power supply voltage of the interface chip as a set value.
In an embodiment, when the terminal is monitored to be in a standby screen-off state, the step of monitoring the interrupt signal received by the application processor is executed.
In one embodiment, the interrupt signal received by the application processor is monitored to wake up the terminal application processor.
In one embodiment, acquiring the number of times of receiving the interrupt signal includes: and acquiring the accumulated receiving times of the interrupt signal within a set time.
In an embodiment, the interface control method further includes: after the power supply voltage of the interface chip is set to a set value, the interface chip is prompted to reduce or stop supplying power to the interface chip.
In an embodiment, the interface control method further includes: the power supply of the interface chip is restored in response to an operation of restoring the power supply of the interface chip.
In one embodiment, restoring power to the interface chip in response to an operation of restoring power to the interface chip includes: and when detecting that the interface is reconnected, or receiving the operation of pressing a power key of the terminal, or receiving the operation of determining to recover the power supply of the interface chip, which is input through a prompt window of the terminal, recovering the power supply of the interface chip.
In an embodiment, the interface control method further includes: and after the power supply of the interface chip is recovered, executing the step of monitoring the interrupt signal received by the application processor.
According to still another aspect of the embodiments of the present disclosure, there is provided an interface control apparatus including: the monitoring module is used for monitoring an interrupt signal received by the application processor, and the interrupt signal is sent by the interface chip when the switching edge of the double-role port responding to the configuration channel pin exceeds a protocol threshold value; the acquisition module is used for acquiring the receiving times of the interrupt signals; and the setting module is used for stopping supplying power to the interface chip when the receiving times reach the set threshold value.
In one embodiment, the setting module stops supplying power to the interface chip as follows: and setting the power supply voltage of the interface chip as a set value.
In an embodiment, the monitoring module is further configured to monitor that the terminal is in a standby screen-off state, and execute a step of monitoring an interrupt signal received by the application processor.
In an embodiment, the monitoring module is further configured to monitor an interrupt signal received by the application processor, and wake up the terminal application processor.
In an embodiment, the obtaining module obtains the number of times of receiving the interrupt signal by: and acquiring the accumulated receiving times of the interrupt signal within a set time.
In one embodiment, the interface control apparatus further includes: and the prompting module is used for prompting to reduce or stop supplying power to the interface chip when the power supply voltage of the interface chip is set to be a set value.
In one embodiment, the interface control apparatus further includes: and the restoring module is used for responding to the operation of restoring the power supply of the interface chip and restoring the power supply of the interface chip.
In one embodiment, the recovery module recovers power to the interface chip in response to an operation to recover power to the interface chip as follows: and when detecting that the interface is reconnected, or receiving the operation of pressing a power key of the terminal, or receiving the operation of determining to recover the power supply of the interface chip, which is input through a prompt window of the terminal, recovering the power supply of the interface chip.
In an embodiment, the monitoring module is further configured to perform the step of monitoring the interrupt signal received by the application processor after the power supply of the interface chip is restored.
According to still another aspect of the embodiments of the present disclosure, there is provided an interface control apparatus including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: executing the interface control method of any one of the preceding claims.
According to yet another aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having instructions stored thereon, which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform any one of the interface control methods described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: by monitoring the interrupt signal received by the application processor, the interrupt signal is sent by the interface chip when the switching edge of the dual-role port responding to the configuration channel pin exceeds the protocol threshold, the receiving times of the interrupt signal are obtained, and when the receiving times reach the set threshold, the power supply to the interface chip is stopped, so that the terminal power consumption caused by the liquid inlet of the universal serial bus C-type interface can be reduced, and the use safety of a user is ensured.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating an interface control method according to an exemplary embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating an interface control method according to another exemplary embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating an interface control method according to still another exemplary embodiment of the present disclosure.
Fig. 4 is a flowchart illustrating an interface control method according to still another exemplary embodiment of the present disclosure.
Fig. 5 is a flowchart illustrating an interface control apparatus according to an exemplary embodiment of the present disclosure.
Fig. 6 is a block diagram illustrating an interface control apparatus according to still another exemplary embodiment of the present disclosure.
Fig. 7 is a block diagram illustrating an interface control apparatus according to still another exemplary embodiment of the present disclosure.
FIG. 8 is a block diagram illustrating an interface control apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The USB Type-C interface has two opposing pin faces, each having 12 pins, as specified by the USB association standard specification. The Type-C interface includes Configuration Channel (CCl) pins and CC2 pins on opposite pin faces. The CCl pin and the CC2 pin are used to detect positive and negative insertion, detect how much Voltage and current can be provided by USB connection identification, establish and manage connection between USB devices and a power Bus (VBUS), and the like. The voltage on the CCl pin and the CC2 pin is periodically pulled high and low.
The Dual Role Port (DRP) can be used as a downlink Port (DFP), an uplink Port (UFP), or a dynamic switch between the DFP and the UFP.
Pulse electric signals are arranged on the CCl pin and the CC2 pin, the high-level voltage value of the pulse electric signals is 1.7V-5.5V, the duty ratio is 30% -70%, and therefore the CCl pin and the CC2 pin are electrified for a long time even in a standby state. Under the condition of liquid inlet of the USBType-C interface, micro short circuit and contact impedance between pins are abnormal, so that the functional abnormality of the mobile phone interface is caused, and even a terminal short circuit and a fire disaster are caused.
Fig. 1 is a flowchart illustrating an interface control method according to an exemplary embodiment of the present disclosure, where the interface control method is used in a terminal, as shown in fig. 1. The terminal can be an electronic device such as a smart phone, a tablet computer, a wearable device or a PC machine, which is provided with a USB Type-C interface. The embodiment of the present disclosure does not limit the types of devices controlled by the application interface. Referring to fig. 1, the interface control method includes the following steps.
In step S101, an interrupt signal received by the application processor is monitored.
The interrupt signal is sent by the USB Type C interface chip in response to the dual role port switching edge of the configuration channel pin exceeding the protocol threshold.
An Application Processor (AP), an operating system, a user interface, and an Application program of the terminal are all executed on the AP. When the terminal is in a power-on running program or a standby state, the USB Type C interface chip is in a DRP mode, and pulse waveforms of a CC1 pin and a CC2 pin are square waves. The protocols of rising edge time and falling edge time of the square wave of the pin CC1 and the pin CC2 need to be in accordance with the specification.
USB Power Delivery (USB PD) corresponds to a TCPC protocol, and specifies that the rising edge time and the falling edge time of the switching square wave of the pin CC1 and the pin CC2 of the USB Type C interface chip cannot exceed a time threshold.
The specific value of the time threshold may be configured by a register, for example, the time threshold is configured to 500 microseconds.
When the rising edge time and the falling edge time of the pin CC1 and the pin CC2 exceed the time thresholds specified by the protocol specification, the USB Type C interface chip sends an interrupt to the AP.
When the terminal is in a high-temperature and high-humidity environment or the USB Type C interface is filled with liquid, for example, conductive liquid such as sweat, rain water or grease, a micro short circuit usually occurs between the CC1 pin or the CC2 pin and the adjacent VBUS pin.
When the pin CC1 or the pin CC2 is in micro short circuit with the adjacent pin VBUS, because the pin VBUS has million-level capacitance, the delay time of the rising edge and the falling delay of the falling edge of the switching square wave of the pin CC become slow and exceed the value specified by the protocol.
The USB Type C interface chip reports interruption to the AP, and the AP can be continuously awakened when the standby screen is turned off, so that large power consumption is caused.
In step S102, the number of times of reception of the interrupt signal is acquired.
The number of times the application processor AP receives the interrupt signal is obtained.
In step S103, when the number of times of reception reaches the set threshold, power supply to the interface chip is stopped.
According to the actual use requirement, a receiving frequency threshold value is set, when the receiving frequency of the AP receiving the interrupt signal reaches the set threshold value, in order to avoid that the USB Type C interface chip continuously reports the interrupt to the AP to cause the power consumption of the terminal to increase, the power supply to the USB Type C interface chip is stopped.
According to the embodiment of the disclosure, by monitoring the interrupt signal received by the application processor, the interrupt signal is sent by the interface chip when the switching edge of the dual-role port responding to the configuration channel pin exceeds the protocol threshold, the receiving times of the interrupt signal is obtained, and when the receiving times reaches the set threshold, the power supply to the USB Type C interface chip is stopped.
When the pin CC1 or the pin CC2 is in micro short circuit with the adjacent pin VBUS, because the pin VBUS has million-level capacitance, the delay time of the rising edge and the falling delay of the falling edge of the switching square wave of the pin CC become slow and exceed the value specified by the protocol.
The USB Type C interface chip reports interruption to the AP, and the AP can be continuously awakened when the standby screen is turned off, so that large power consumption is caused.
The Type C interface chip has a function of detecting a battery voltage threshold (dead battery), and a system cannot be started when the battery voltage threshold is lower than the dead battery voltage threshold. When the terminal battery is over-discharged, the battery voltage may become 0 v due to the battery protection board being turned off. At this time, in order to charge the terminal, a special circuit needs to be provided to allow the terminal to detect that Rd is pulled down, so that the terminal is identified as the upstream port UFP, and the terminal is charged by using the charger.
In addition, when sweat or other electrically conductive liquid exist at the USB Type C interface, the return circuit of electrochemical reaction is formed inside the interface easily, and then can cause the interface to corrode.
This openly acquires interrupt signal's receiving number of times, when receiving number of times reaches and sets up the threshold value, when the standby screen that goes out detects the USB Type C interface feed liquor promptly, stops to the power supply of USB Type C interface chip, and Type C interface chip can not send interrupt information to AP, does not awaken up AP promptly to can realize not influencing under the condition of charging, reduce the consumption, prevent simultaneously corroding, avoid the terminal to take place the short circuit, ensure user's safe in utilization.
In one embodiment of the present disclosure, the accumulated number of times of receiving the interrupt signal is obtained within a predetermined time.
USB Type C interface chip that takes place in the time of predetermineeing sends interrupt signal to AP, and the accumulative reception number of times that obtains interrupt signal reaches and predetermines the threshold value, can regard as the terminal to have the feed liquor phenomenon at USB Type C kneck. The USBType C interface chip stops supplying power, can reduce the terminal consumption that arouses by the USBType C interface feed liquor, avoids the terminal to take place the short circuit, prevents that the interface from corroding, ensures user's safe in utilization.
In one embodiment, stopping power to the interface chip includes setting a power supply voltage of the interface chip to a set value.
And setting the power supply voltage of the interface chip to a set value, and stopping or reducing power supply to the interface chip. For example, the set value may be 0 volts, i.e., power to the interface chip is stopped. Or the setting value can be 1 volt, 2 volts or a smaller voltage value less than 1 volt, so that the power supply voltage cannot maintain the normal operation of the interface chip.
Fig. 2 is a flowchart illustrating an interface control method according to another exemplary embodiment of the present disclosure. As shown in fig. 2, the interface control method further includes:
in step S201, the step of monitoring the terminal in the standby screen-off state and executing the step of monitoring the interrupt signal received by the application processor.
In step S202, the interrupt signal received by the application processor is monitored.
The interrupt signal is sent by the USB Type C interface chip in response to the dual role port switching edge of the configuration channel pin exceeding the protocol threshold.
In step S203, the number of times of reception of the interrupt signal is acquired.
In step S204, when the number of times of reception reaches the set threshold, power supply to the interface chip is stopped.
In an embodiment, when the terminal is monitored to be in a standby screen-off state, the step of monitoring the interrupt signal received by the application processor is executed.
When the pin CC1 or the pin CC2 is in micro short circuit with the adjacent pin VBUS, because the pin VBUS has million-level capacitance, the delay time of the rising edge and the falling delay of the falling edge of the switching square wave of the pin CC become slow and exceed the value specified by the protocol.
And the USB Type C interface chip reports the interruption to the AP.
In one embodiment, the interrupt signal received by the application processor is monitored to wake up the terminal application processor.
The USB Type C interface chip reports interruption to the AP, and the AP can be continuously awakened when the standby screen is turned off, so that large power consumption is caused.
In one embodiment, the cumulative number of times of reception of the interrupt signal is acquired within a set time.
The setting time can be a preset short time, the cumulative receiving times of the interrupt signals within the setting time reach a setting threshold value, and the situation that the USBType C interface chip continuously reports the interrupt to the AP, namely, the AP is continuously wakened up, large power consumption is caused, and power supply for the interface chip is stopped is achieved.
On the contrary, when the USB Type C interface chip is interrupted, the interrupt is sent to the AP, and waking up the AP does not continuously cause the power consumption problem of the terminal.
Fig. 3 is a flowchart illustrating an interface control method according to another exemplary embodiment of the present disclosure. As shown in fig. 3, the interface control method further includes:
in step S301, an interrupt signal received by the application processor is monitored.
The interrupt signal is sent by the USB Type C interface chip in response to the dual role port switching edge of the configuration channel pin exceeding the protocol threshold.
In step S302, the number of times of reception of the interrupt signal is acquired.
In step S303, when the number of times of reception reaches the set threshold, power supply to the interface chip is stopped.
In step S304, after the power supply voltage of the interface chip is set to the set value, it is prompted to decrease or stop supplying power to the interface chip.
When AP received interrupt signal's the number of times of receipt reached and set up the threshold value, in order to avoid USBType C interface chip to last to report to the AP that the interrupt caused the consumption increase of terminal, set up USBType C interface chip's mains voltage to 0 volt, stopped promptly to supply power to USBType C interface chip.
At this time, The terminal may be charged through The USB Type C interface, but cannot recognize and connect an OTG (On-The-Go) device. The OTG device can realize data transmission between different devices and mobile devices under the condition of no Host.
In order to avoid influencing the use of the user, the terminal can prompt the user that liquid inlet possibly exists at the USB Type C interface, and the USB Type C interface does not recognize the OTG equipment at the moment.
The terminal may prompt the user in a voice prompt mode, a pop-up window mode or the like.
For example, a sound such as a warning sound or an alarm sound is emitted to prompt the user. For another example, a voice prompt is issued. For another example, a popup window is popped up on the terminal application interface or text prompt information is popped up in the prompt area to prompt the user. The condition of USB Type C interface feed liquor is handled for the user to influence user normal use.
When the terminal is in high temperature, high humid environment or USB Type C interface feed liquor, unable discernment and connection OTG equipment. After the suggestion that user's receiving terminal probably has the condition of feed liquor to the USB Type C interface, can inspect the USB Type C interface, there is the condition of feed liquor when the reality, in time handles.
After the liquid inlet condition of the USB Type C interface is processed by the user, the USB Type C interface can be normally connected with OTG equipment
The liquid inlet condition is processed by the user, and when the USB Type C interface is required to be connected with the OTG peripheral, the operation of recovering the power supply of the interface chip can be determined.
For example, the power supply of the USB Type C interface chip can be restored by operating a power button of the terminal, a menu set by the terminal, or setting in a terminal application interface window, so that the USB Type C interface can be correctly identified and normally connected to the OTG device, thereby facilitating the use of the user.
Fig. 4 is a flowchart illustrating an interface control method according to another exemplary embodiment of the present disclosure. As shown in fig. 4, the interface control method further includes:
in step S401, the interrupt signal received by the application processor is monitored.
The interrupt signal is sent by the USB Type C interface chip in response to the dual role port switching edge of the configuration channel pin exceeding the protocol threshold.
In step S402, the number of times of reception of the interrupt signal is acquired.
In step S403, when the number of receptions reaches the set threshold, power supply to the interface chip is stopped.
In step S404, after the power supply voltage of the interface chip is set to the set value, the reduction or stop of the power supply to the interface chip is prompted
In step S405, the power supply of the interface chip is restored in response to the operation of restoring the power supply of the interface chip.
After the suggestion that USB Type C interface probably has the condition of feed liquor when user's receiving terminal, can check USB Type C interface, even handle when the condition that really has the feed liquor.
The liquid inlet condition is processed by the user, and when the USB Type C interface is required to be connected with the OTG peripheral, the operation of recovering the power supply of the interface chip can be determined.
For example, the power supply of the USB Type C interface chip can be restored by operating a power button of the terminal, a menu set by the terminal, or setting in a terminal application interface window, so that the USB Type C interface can be correctly identified and normally connected to the OTG device, thereby facilitating the use of the user.
In one embodiment, the step of monitoring the interrupt signal received by the application processor is performed after the power supply of the interface chip is restored.
After the power supply of the interface chip is recovered, the interrupt signal received by the application processor is monitored, if the USBType C interface is detected to still have liquid or the liquid inlet condition is not successfully processed, when the frequency of receiving the interrupt signal reaches a set threshold value, the power supply for the interface chip is stopped, and the use safety of the terminal is ensured.
Fig. 5 is a block diagram illustrating an interface control apparatus according to an exemplary embodiment of the present disclosure. As shown in fig. 5, the interface control device 200 includes: a monitoring module 210, an acquisition module 220, and a setup module 230.
And the monitoring module 210 is configured to monitor an interrupt signal received by the application processor, where the interrupt signal is sent by the interface chip in response to a switching edge of the dual role port of the configuration channel pin exceeding a protocol threshold.
The obtaining module 220 is configured to obtain the number of times of receiving the interrupt signal.
And a setting module 230, configured to stop supplying power to the interface chip when the number of times of reception reaches a set threshold.
In one embodiment, the setting module 220 stops supplying power to the interface chip as follows: and setting the power supply voltage of the interface chip as a set value.
In an embodiment, the monitoring module 210 is further configured to monitor that the terminal is in a standby screen-off state, and perform a step of monitoring an interrupt signal received by the application processor.
In an embodiment, the monitoring module 210 is further configured to monitor an interrupt signal received by the application processor to wake up the terminal application processor.
In one embodiment, the obtaining module 220 obtains the number of times of receiving the interrupt signal as follows: and acquiring the accumulated receiving times of the interrupt signal within a preset time.
Fig. 6 is a block diagram illustrating an interface control apparatus according to still another exemplary embodiment of the present disclosure. As shown in fig. 6, the interface control apparatus 200 further includes: a prompt module 240.
And the prompting module 240 is configured to prompt to decrease or stop power supply to the interface chip when the power voltage of the interface chip is set to a set value.
Fig. 7 is a block diagram illustrating an interface control apparatus according to still another exemplary embodiment of the present disclosure. As shown in fig. 7, the interface control apparatus 200 further includes: a recovery module 250.
And a restoring module 250 for restoring the power supply of the interface chip in response to an operation of restoring the power supply of the interface chip.
In one embodiment, the restoring module 250 restores the power supply of the interface chip in response to the operation of restoring the power supply of the interface chip as follows:
and when detecting that the interface is reconnected, or receiving the operation of pressing a power key of the terminal, or receiving the operation of determining to recover the power supply of the interface chip, which is input through a prompt window of the terminal, recovering the power supply of the interface chip.
In an embodiment, the monitoring module 210 is further configured to perform the step of monitoring the interrupt signal received by the application processor after the power supply of the interface chip is restored.
With regard to the apparatus in the above embodiments, the specific manner in which the various modules perform operations has been in relation to embodiments of the method.
FIG. 8 is a block diagram illustrating an interface control apparatus according to an exemplary embodiment. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, apparatus 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the apparatus 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply component 606 provides power to the various components of device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 600.
The multimedia component 608 includes a screen that provides an output interface between the device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 600 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, audio component 610 includes a Microphone (MIC) configured to receive external audio signals when apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of components, such as a display and keypad of the apparatus 600, the sensor component 614 may also detect a change in position of the apparatus 600 or a component of the apparatus 600, the presence or absence of user contact with the apparatus 600, orientation or acceleration/deceleration of the apparatus 600, and a change in temperature of the apparatus 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the apparatus 600 and other devices in a wired or wireless manner. The apparatus 600 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the apparatus 600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of a mobile terminal, enable the mobile terminal to perform any of the screen display methods as previously described.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (20)

1. An interface control method, characterized in that the interface control method comprises:
monitoring an interrupt signal received by an application processor, wherein the interrupt signal is sent by an interface chip when a double-role port switching edge of a configuration channel pin exceeds a protocol threshold;
acquiring the receiving times of the interrupt signal;
and when the receiving times reach a set threshold value, stopping supplying power to the interface chip.
2. The interface control method of claim 1, wherein the stopping the power supply to the interface chip comprises:
and setting the power supply voltage of the interface chip as a set value.
3. The interface control method according to claim 1, further comprising: and monitoring that the terminal is in a standby screen-off state, and executing the step of monitoring the interrupt signal received by the application processor.
4. The interface control method according to claim 3, wherein the monitoring application processor wakes up the terminal AP in response to an interrupt signal received.
5. The interface control method according to claim 1, wherein the obtaining the number of times of receiving the interrupt signal includes:
and acquiring the accumulated receiving times of the interrupt signal within a set time.
6. The interface control method according to claim 1 or 2, characterized in that the interface control method further comprises:
and after the power supply voltage of the interface chip is set to be a set value, prompting to reduce or stop supplying power to the interface chip.
7. The interface control method according to claim 3, further comprising:
restoring the power supply of the interface chip in response to an operation of restoring the power supply of the interface chip.
8. The interface control method of claim 7, wherein the restoring the power of the interface chip in response to the restoring the power of the interface chip comprises:
and when detecting that the interface is reconnected, or receiving the operation of pressing a power key of the terminal, or receiving the operation of determining to recover the power supply of the interface chip, which is input through a prompt window of the terminal, the power supply of the interface chip is recovered.
9. The interface control method according to claim 8, further comprising:
and after the power supply of the interface chip is recovered, executing the step of monitoring the interrupt signal received by the application processor.
10. An interface control apparatus, comprising:
the monitoring module is used for monitoring an interrupt signal received by the application processor, and the interrupt signal is sent by the interface chip when the switching edge of the dual-role port responding to the configuration channel pin exceeds the protocol threshold;
the acquisition module is used for acquiring the receiving times of the interrupt signal;
and the setting module is used for stopping supplying power to the interface chip when the receiving times reach a set threshold value.
11. The interface control device of claim 10, wherein the setting module stops supplying power to the interface chip as follows:
and setting the power supply voltage of the interface chip as a set value.
12. The interface control device according to claim 10, wherein the monitoring module is further configured to monitor that the terminal is in a standby screen-off state, and execute the step of monitoring the interrupt signal received by the application processor.
13. The interface control apparatus according to claim 12, wherein the monitoring module is further configured to monitor an interrupt signal received by the application processor to wake up the terminal application processor.
14. The interface control apparatus according to claim 10, wherein the obtaining module obtains the number of times of receiving the interrupt signal by:
and acquiring the accumulated receiving times of the interrupt signal within a set time.
15. The interface control apparatus according to claim 10 or 11, characterized in that the interface control apparatus further comprises:
and the prompting module is used for prompting that the power supply voltage of the interface chip is reduced or stopped to supply power to the interface chip after the power supply voltage of the interface chip is set to be a set value.
16. The interface control apparatus according to claim 13, further comprising:
and the restoring module is used for responding to the operation of restoring the power supply of the interface chip and restoring the power supply of the interface chip.
17. The interface control device of claim 16, wherein the restoration module restores power to the interface chip in response to the restoring of power to the interface chip by:
and when detecting that the interface is reconnected, or receiving the operation of pressing a power key of the terminal, or receiving the operation of determining to recover the power supply of the interface chip, which is input through a prompt window of the terminal, the power supply of the interface chip is recovered.
18. The interface control device according to claim 17, wherein the monitoring module is further configured to perform the step of monitoring the interrupt signal received by the application processor after the power supply of the interface chip is restored.
19. An interface control apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: executing the interface control method of any of claims 1 to 9.
20. A non-transitory computer-readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform the interface control method of any one of claims 1 to.
CN201911237259.7A 2019-12-05 2019-12-05 Interface control method, interface control device and storage medium Active CN111026684B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911237259.7A CN111026684B (en) 2019-12-05 2019-12-05 Interface control method, interface control device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911237259.7A CN111026684B (en) 2019-12-05 2019-12-05 Interface control method, interface control device and storage medium

Publications (2)

Publication Number Publication Date
CN111026684A true CN111026684A (en) 2020-04-17
CN111026684B CN111026684B (en) 2021-07-27

Family

ID=70204366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911237259.7A Active CN111026684B (en) 2019-12-05 2019-12-05 Interface control method, interface control device and storage medium

Country Status (1)

Country Link
CN (1) CN111026684B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022127659A1 (en) * 2020-12-15 2022-06-23 维沃移动通信有限公司 Protection method, protection apparatus, electronic device, readable storage medium, and chip
WO2023165251A1 (en) * 2022-03-03 2023-09-07 荣耀终端有限公司 Liquid inflow detection control method and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970148A (en) * 2012-12-05 2013-03-13 福建星网锐捷网络有限公司 Power supply method and device based on POE (Power Over Ethernet) switch, and POE switch
CN104767260A (en) * 2015-03-30 2015-07-08 华为技术有限公司 Chargers, End Devices and Charging Systems
CN106026232A (en) * 2016-06-01 2016-10-12 北京小米移动软件有限公司 Detecting method and apparatus for USB port type
CN109217248A (en) * 2017-07-05 2019-01-15 台达电子企业管理(上海)有限公司 A kind of fault handling method and system of connector
US20190036365A1 (en) * 2017-12-19 2019-01-31 Intel Corporation Method, apparatus and system to enhance a device policy manager to manage devices based on battery condition
CN109977057A (en) * 2019-03-27 2019-07-05 青岛海信移动通信技术股份有限公司 A kind of control method of interface equipment and interface equipment
CN110247368A (en) * 2018-03-09 2019-09-17 陈晓萍 Protect circuit

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970148A (en) * 2012-12-05 2013-03-13 福建星网锐捷网络有限公司 Power supply method and device based on POE (Power Over Ethernet) switch, and POE switch
CN104767260A (en) * 2015-03-30 2015-07-08 华为技术有限公司 Chargers, End Devices and Charging Systems
CN106026232A (en) * 2016-06-01 2016-10-12 北京小米移动软件有限公司 Detecting method and apparatus for USB port type
CN109217248A (en) * 2017-07-05 2019-01-15 台达电子企业管理(上海)有限公司 A kind of fault handling method and system of connector
US20190036365A1 (en) * 2017-12-19 2019-01-31 Intel Corporation Method, apparatus and system to enhance a device policy manager to manage devices based on battery condition
CN110247368A (en) * 2018-03-09 2019-09-17 陈晓萍 Protect circuit
CN109977057A (en) * 2019-03-27 2019-07-05 青岛海信移动通信技术股份有限公司 A kind of control method of interface equipment and interface equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022127659A1 (en) * 2020-12-15 2022-06-23 维沃移动通信有限公司 Protection method, protection apparatus, electronic device, readable storage medium, and chip
US12430273B2 (en) 2020-12-15 2025-09-30 Vivo Mobile Communication Co., Ltd. Protection method, protection apparatus, electronic device, readable storage medium, and chip
WO2023165251A1 (en) * 2022-03-03 2023-09-07 荣耀终端有限公司 Liquid inflow detection control method and electronic device

Also Published As

Publication number Publication date
CN111026684B (en) 2021-07-27

Similar Documents

Publication Publication Date Title
JP6298585B2 (en) Electronic device, electronic device wake-up method and apparatus
JP6343099B2 (en) MCU chip wake-up method and apparatus
EP3112980B1 (en) Circuit, method and device for waking up master mcu
EP2990906B9 (en) Function controlling method and electronic device supporting the same
US8335549B2 (en) Method for power management of mobile communication terminal and mobile communication terminal using this method
EP3112979B1 (en) Method and device for waking up mcu
CN106462687A (en) Touch device and method, electronic device
CN107608853A (en) Method, device, storage medium and intelligent terminal for controlling terminal usage time
JP7270719B2 (en) Terminal and Type C interface anti-corrosion method
CN113342150B (en) Electrostatic recovery method and device, electronic equipment and storage medium
CN105912297A (en) Input mode switching method and device
CN106469014B (en) Terminal, fingerprint Identification sensor awakening method and device
CN103927200A (en) Electronic equipment awakening method and related device
CN111026684B (en) Interface control method, interface control device and storage medium
EP3188566B1 (en) Application management method and device
CN106502370A (en) The method of control intelligent terminal and intelligent terminal
CN106708243B (en) Terminal equipment control method and device
CN106371941A (en) Running state adjustment method and apparatus
CN109976563B (en) Misoperation determining method and device and touch operation response method and device
CN113282361B (en) Window processing method and electronic equipment
CN106534524A (en) Poweroff display method and terminal
CN106776204B (en) Method and device for determining power consumption application
CN111782469B (en) Processing method, device and storage medium of electronic device
CN105188112A (en) Method and device for controlling dormant state
CN108521676B (en) Network back connection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant