CN108959002B - Insertion detection circuit, insertion detection method, and electronic device - Google Patents

Insertion detection circuit, insertion detection method, and electronic device Download PDF

Info

Publication number
CN108959002B
CN108959002B CN201810666025.3A CN201810666025A CN108959002B CN 108959002 B CN108959002 B CN 108959002B CN 201810666025 A CN201810666025 A CN 201810666025A CN 108959002 B CN108959002 B CN 108959002B
Authority
CN
China
Prior art keywords
interface
controller
port
external device
insertion detection
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.)
Active
Application number
CN201810666025.3A
Other languages
Chinese (zh)
Other versions
CN108959002A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810666025.3A priority Critical patent/CN108959002B/en
Publication of CN108959002A publication Critical patent/CN108959002A/en
Application granted granted Critical
Publication of CN108959002B publication Critical patent/CN108959002B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2215Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test error correction or detection circuits
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

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)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses an insertion detection circuit, an insertion detection method and an electronic device, wherein the insertion detection circuit comprises an interface and a controller, the controller comprises a detection port, the interface comprises a first metal shell, and the first metal shell is connected with the detection port; the controller is used for detecting the level of the detection port and determining that the interface is plugged into the external device when the level of the detection port is detected to be the ground level. According to the embodiment of the application, the insertion detection is carried out through the metal shell of the interface, the insertion identification can be carried out on the external equipment with only one grounding pin, and the compatibility of the insertion detection is improved.

Description

Insertion detection circuit, insertion detection method, and electronic device
Technical Field
The present application relates to the field of terminal technologies, and in particular, to an insertion detection circuit, an insertion detection method, and an electronic apparatus.
Background
With the development of electronic devices such as smart phones, the hardware circuit design of the electronic devices is also more and more complex. Electronic devices are generally configured with a Universal Serial Bus (USB) interface, and the USB interface is used for connecting and communicating between the electronic device and external devices. As one of the USB interfaces, the TYPE-C interface gradually becomes the mainstream of the USB interface because it can be plugged in and unplugged from the USB interface. At present, when the TYPE-C interface detects that external equipment is inserted, the grounding pin of the TYPE-C interface is inserted for detection. However, if the external device has only one ground pin, when the external device is plugged in, the only ground pin of the external device can be used as the detection pin, so that the external device does not have any redundant ground pin for grounding, and the external device cannot work normally. It can be seen that the current insertion detection scheme cannot perform insertion detection on an external device having only one ground pin.
Disclosure of Invention
The embodiment of the application provides an insertion detection circuit, an insertion detection method and an electronic device, which can improve the compatibility of insertion detection.
A first aspect of an embodiment of the present application provides an insertion detection circuit, including an interface and a controller, the controller includes a detection port, the interface includes a first metal housing, where:
the first metal shell is connected with the detection port;
the controller is used for detecting the level of the detection port and determining that the interface is plugged into an external device when the level of the detection port is detected to be the ground level;
wherein a portion of the external device in contact with the first metal case is grounded.
A second aspect of the embodiments of the present application provides an insertion detection method, which is applied to the insertion detection circuit of the first aspect of the embodiments of the present application, where the insertion detection circuit includes an interface and a controller, the controller includes a detection port, the interface includes a first metal shell, and the first metal shell is connected to the detection port, and the method includes:
the controller detects the level of the detection port;
when detecting that the level of the detection port is the ground level, the controller determines that the interface is plugged into an external device;
wherein a portion of the external device in contact with the first metal case is grounded.
A third aspect of the embodiments of the present application provides an electronic device, including a housing and the insertion detection circuit of the first aspect of the embodiments of the present application, a groove is formed in the housing, the insertion detection circuit includes an interface and a controller, and the interface is disposed in the groove.
The embodiment of the application has the following beneficial effects:
when the interface does not have external equipment to insert, the level of first metal casing is indefinite level, when external equipment inserts, because the position ground connection of the contact with first metal casing in the external equipment, external equipment draws down the voltage of first metal casing to ground level in the twinkling of an eye, and the controller leads to the level that can detect detection port and is ground level. The shell (namely the first metal shell) of the interface has the function of insertion detection, the grounding pin in the interface is not required to be used as a pin for detecting the insertion of external equipment, the insertion identification can be carried out on the external equipment with only one grounding pin, the insertion detection can be carried out on various external equipment, and the compatibility of the insertion detection is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an insertion detection circuit disclosed in an embodiment of the present application;
FIG. 2 is a schematic diagram of another insertion detection circuit disclosed in the embodiments of the present application;
FIG. 3 is a schematic diagram of another insertion detection circuit disclosed in the embodiments of the present application;
fig. 4 is a schematic location diagram of a TYPE-C interface disclosed in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a TYPE-C interface disclosed in an embodiment of the present application;
FIG. 6 is a schematic flow chart diagram illustrating an insertion detection method disclosed in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, system, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In addition, the electronic device according to the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and so on. For convenience of description, the above-mentioned apparatuses are collectively referred to as electronic devices.
In addition, "connection" mentioned in the embodiments of the present application is referred to as "electrical connection", and electrical connection is also referred to as electrical connection.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an insertion detection circuit disclosed in an embodiment of the present application, as shown in fig. 1, the insertion detection circuit 10 includes an interface 11 and a controller 12, the controller 12 includes a detection port 121, the interface 11 includes a first metal housing 111, where:
the first metal shell 111 is connected with the detection port 121;
the controller 12 is configured to detect a level of the detection port 121, and to determine that the interface 11 is plugged into the external device 20 when the level of the detection port 121 is detected as a ground level;
in the external device 20, a portion in contact with the first metal case 111 is grounded.
In the embodiment of the present application, the interface 11 includes a first metal housing 111 and pins (e.g., a ground pin, a power pin, a data transmission pin, etc.) disposed in the first metal housing 111. Wherein the first metal housing 111 is not electrically connected to the pins disposed in the first metal housing 111.
The insertion detection circuit 10 may be located in an electronic device, such as a mobile phone. The external device 20 may be a plug of a usb disk, a plug of a data line, and the like, one end of the data line is a plug and can be inserted into the interface 11, and the other end of the data line can be connected to a power adapter, a mobile hard disk, and the like. The types of external device 20 may include: a master device or a slave device. For example, when the external device 20 is a power supply device, if the external device 20 is plugged into the interface 11, the external device 20 serves as a master device, and the external device 20 can supply power to the electronic apparatus (in this case, a slave device) through the interface 11. For another example, if the external device 20 is a usb disk or a portable hard disk, and the external device 20 is inserted into the interface 11, the external device 20 may be used as a slave device, and the external device 20 may transmit data to the electronic apparatus (in this case, a master device). The master device may be a power adapter, and the slave device may be a usb disk, a removable hard disk, or the like.
In the embodiment of the present application, since the first metal housing 111 is connected to the detection port 121 of the controller 12, when the first metal housing 111 is not connected to the external device 20, the level of the first metal housing 111 is an indefinite level, and the indefinite level is a level varying from 0 to the power supply voltage of the controller 12. For example, if the power supply voltage of the controller 12 is 3.3V, the level of the first metal case 111 is an indefinite level of 0 to 3.3V. If the controller 12 detects that the levels of the detection ports 121 are all at indefinite levels, the controller 12 determines that no external device 20 is inserted. If the controller 12 detects that the level of the detection port 121 is at ground level, it is determined that the interface 11 is plugged into the external device 20. Wherein the voltage of the ground level is 0V.
In the embodiment of the present application, the controller 12 may include a processor and a memory, the processor is a control center of the electronic device, various interfaces and lines are used to connect various parts of the whole electronic device, and various functions of the electronic device and processing data are executed by running or executing software programs and/or modules stored in the memory and calling data stored in the memory, so as to perform overall monitoring of the electronic device. Optionally, the processor may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor.
The memory may be used for storing software programs and modules, and the processor executes various functional applications and data processing of the electronic device by operating the software programs and modules stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
In the embodiment of the application, the shell of the interface can be endowed with the function of insertion detection, the grounding pin in the interface is not required to be used as the pin for detecting the insertion of the external equipment, the external equipment with only one grounding pin can be also subjected to insertion identification, the insertion detection can be carried out on various external equipment, and the compatibility of the insertion detection is improved.
Alternatively, as shown in fig. 2, the external device 20 includes an insert 21, the insert 21 includes a second metal housing 211, and the second metal housing 211 is grounded; when the interface 11 is inserted into the external device 20, the first metal housing 111 is connected to the second metal housing 211.
In the embodiment of the present application, the second metal housing 211 of the insert 21 may be grounded. When the insert 21 is inserted into the interface 11, the second metal housing 211 is in contact with the first metal housing 111. The control 12 determines that the interface 11 is inserted into the external device 20 by detecting the level of the detection port 121 when detecting that the level of the detection port 121 is the ground level.
When the interface 11 is inserted into the external device 20, the first metal housing 111 and the second metal housing 211 may be connected in various ways. For example, the connection may be a snap connection or an elastic connection. The present application is not limited in its practice.
In the prior art, generally, a ground pin in an interface is not connected to ground, but is used as a detection pin, and a controller detects a level of the ground pin, and when the ground pin in the interface is connected to a ground pin of an external device, the controller can detect that the level of the ground pin is a ground level, so that it can be determined that the external device is inserted. In the embodiment of the application, the shell of the insertion piece is grounded, and the shell of the interface is used for insertion detection by utilizing the characteristic that the shell of the insertion piece can be in contact with the shell of the interface when external equipment is inserted into the interface. The grounding pin in the interface is not required to be used as a pin for detecting the insertion of the external equipment, the insertion identification can be carried out on the external equipment with only one grounding pin, the insertion detection can be carried out on various external equipment, and the compatibility of the insertion detection is improved.
Optionally, as shown in fig. 3, the interface 11 further includes a first detection pin 112 and a second detection pin 113, and the controller 12 further includes a first identification port 122 and a second identification port 123;
the first detection pin 112 is connected with the first identification port 122, and the second detection pin 113 is connected with the second identification port 123;
the controller 12 is further configured to determine that the type of the external device 20 is identified through the first identification port 122 and the second identification port 123 after the interface 11 is inserted into the external device 20.
The insertion detection circuit in the embodiment of the present application may be used for a Universal Serial Bus (USB) interface. Specifically, the method can be used for a TYPE-C interface, the TYPE-C interface is generally positioned at the bottom of the smart phone, and the method is used for charging, data transmission and other purposes most of the time. Referring to fig. 4, fig. 4 is a schematic position diagram of a TYPE-C interface disclosed in the embodiment of the present application, and as shown in fig. 4, the TYPE-C interface 11 is located at the bottom of the smart phone. Wherein, the TYPE-C interface supports the forward insertion and backward insertion of the external equipment.
In the embodiment of the present application, the interface 11 may include a plurality of pins. Taking the TYPE-C interface as an example, 24 pins may be included. For example, please refer to fig. 5, fig. 5 is a schematic structural diagram of a TYPE-C interface disclosed in the embodiment of the present application. As shown in fig. 5, the TYPE-C interface may include 24 total pins a1, a2, A3, a4, a5, A6, a7, A8, a9, a10, a11, a12, B1, B2, B3, B4, B5, B6, B7, B8, B9, B10, B11, B12. The A1, the A12, the B1 and the B12 are grounding pins and are used for grounding. A4, A9, B4 and B9 are power pins for connecting power. A2, A3, a10, a11, B2, B3, B10, and B11 are high-speed signal transmission pins for transmitting high-speed data signals. A6, A7, B6 and B7 are USB data transmission pins for transmitting differential data signals. A8 and B8 are auxiliary interfaces and provide auxiliary functions, and A8 and B8 can have different purposes in different application scenes.
Where a5 is a first Configuration Channel (CC) pin, also referred to as a CC1 pin, corresponding to the first detection pin 112 in the embodiment of the present application, and B5 is a second configuration channel pin, also referred to as a CC2 pin, corresponding to the second detection pin 113 in the embodiment of the present application. The pin CC1 and the pin CC2 are two key pins, and may be used to detect whether an external device is connected, confirm a data transmission direction, and confirm whether a plug of an inserted external device is inserted in a forward direction or a reverse direction.
Optionally, the controller 12 is further configured to provide the external device 20 with a supply voltage matching the type of the external device 20 after identifying the type of the external device 20.
Optionally, the controller 12 includes a Micro Controller Unit (MCU).
Optionally, the controller 12 outputs a pulse signal or a low level signal through the detection port 121 and the second detection port 122.
In the embodiment of the present application, the controller 12 outputs a pulse signal or a low level signal through the detection port 121 and the second detection port 122, and can identify whether an external device is inserted into the interface 11 by detecting the levels of the detection port 121 and the second detection port 122. For example, the controller 12 outputs a voltage of 0.2V through the detection port 121 and the second detection port 122, and when the voltage of the detection port 121 and the second detection port 122 is detected to be changed from 0.2V to 0V, it can be determined that the external device is inserted into the interface 11.
Optionally, the voltage of the low level signal is within a preset voltage range.
In the embodiment of the present application, the preset voltage range may be preset, for example, the preset voltage range may be set to be 0.1-0.9V. The voltage range of the low level signal is limited between 0.1-0.9V, since the controller 12 outputs the pulse signal or the low level signal through the detection port 121 and the second detection port 122, and the detection port 121 is connected with the first metal shell 111 of the interface 11. The voltage of the first metal shell 111 is between 0.1V and 0.9V. If the voltage of the low level signal is set too high (e.g., higher than 1V), electrochemical corrosion of the first metal housing 111 and the conductive liquid in contact therewith is easily caused. If the voltage setting of the low level signal is too low (e.g., below 0.1V), the level of the first metal housing 111 is susceptible to interference, which may cause the controller 12 to falsely detect. The voltage of the low level signal can be a fixed value between 0.1 and 0.9V. The low level signal is a fixed voltage to facilitate the controller 12 detecting whether an external device is plugged in.
The conductive liquid may be a liquid containing an electrolyte, for example, mineral water, coffee, fruit juice drink, tea drink, carbonated drink, or the like.
The electrochemical corrosion is that two electrodes are formed by metal and electrolyte to form a corrosion primary battery, because the electrode potential of the metal is lower than that of the electrolyte, the metal is a negative electrode, the metal and the electrolyte generate oxidation-reduction reaction, the metal loses electrons to become metal oxide, and the metal is corroded. Among them, metals, electrolytes and current circuits are the necessary conditions for electrochemical corrosion.
Optionally, the effective voltage value of the pulse signal is smaller than a preset voltage threshold.
In the embodiment of the present application, the effective voltage value refers to an average voltage value in one pulse period. The preset voltage threshold may be preset. For example, the preset voltage threshold may be set to 1V, and at this time, the effective voltage value of the pulse signal is smaller than 1V.
When the effective voltage value of the pulse signal output by the detection port 121 is less than 1V, the first metal shell 111 and the conductive liquid are difficult to be electrochemically corroded.
Specifically, the duty ratio of the pulse signal is less than 20%, and the amplitude of the pulse signal is less than 5 volts.
In the embodiment of the application, when the duty ratio of the pulse signal is less than 20%, the effective voltage value of the pulse signal is lower. When the amplitude of the pulse signal is lower than 5V and the duty ratio of the pulse signal is less than 20%, the voltage value of the pulse signal is lower than 1 volt. When the effective voltage of the first metal shell 111 of the interface 11 is less than 1 volt, the first metal shell 111 of the interface 11 and the conductive liquid are difficult to be corroded electrochemically. The duty ratio of the pulse signal is set to be less than 20%, and the amplitude of the pulse signal is set to be less than 5 volts, so that the first metal shell 111 of the interface 11 and the conductive liquid can be inhibited from being subjected to electrochemical corrosion.
Since the first metal shell 111 in the interface 11 is made of metal, when the first metal shell 111 in the interface 11 contacts with the conductive liquid, if the effective voltage on the first metal shell 111 reaches a certain value, the electrochemical corrosion of the first metal shell 111 and the conductive liquid will be accelerated because the conductive liquid is equivalent to an electrolyte. In this embodiment, the controller 12 outputs a pulse signal or a low level signal to the first metal housing 111 through the detection port 121, a voltage effective value of the pulse signal is lower than 1V, and a voltage of the low level signal is lower than 1V, and because the voltage effective value of the first metal housing 111 is lower, when the first metal housing 111 contacts with the conductive liquid, the first metal housing 111 and the conductive liquid can be inhibited from being electrochemically corroded. When the interface 11 is not connected to an external device, electrochemical corrosion of the interface 11 does not occur even if the first metal shell 111 of the interface 11 is in contact with the conductive liquid.
Generally, when the effective voltage of the first metal housing 111 of the interface 11 is higher than 1 volt, the first metal housing 111 and the conductive liquid will be subject to faster electrochemical corrosion. When the effective voltage of the first metal housing 111 is lower than 1 volt, the first metal housing 111 and the conductive liquid are difficult to be corroded electrochemically.
For example, if the duty cycle of the pulse signal output from the controller 12 to the first metal housing 111 through the detection port 121 is one tenth and the pulse amplitude is 3 volts, the effective voltage value of the first metal housing 111 is 0.3 volts. 0.3 volts is less than 1 volt, and electrochemical corrosion of the first metal case 111 and the conductive liquid is difficult to occur even if the first metal case 111 is in contact with the conductive liquid.
Referring to fig. 6, fig. 6 is a schematic flow chart of an insertion detection method according to an embodiment of the present application. As shown in fig. 6, the insertion detection method is applied to the insertion detection circuit shown in fig. 1 to 5, the insertion detection circuit includes an interface and a controller, the controller includes a detection port, the interface includes a first metal shell, and the first metal shell is connected to the detection port, and the insertion detection method includes the following steps.
601, the controller detects the level of the detection port.
When detecting that the level of the detection port is ground, the controller determines that the interface is plugged in the external device 602.
Wherein, the part of the external equipment contacting with the first metal shell is grounded.
The specific implementation of step 601 and step 602 in fig. 6 can refer to the insertion detection circuit shown in fig. 1 to fig. 5, and details thereof are not repeated here.
In the embodiment of the application, the controller can detect whether the external device is inserted by detecting whether the level of the first metal shell is the ground level, so that the insertion detection can be performed on various external devices, and the compatibility of the insertion detection is improved.
The embodiment of the application also provides an electronic device, which comprises a shell and the insertion detection circuit shown in the figures 1 to 5, wherein the shell is provided with a groove, the insertion detection circuit comprises an interface and a controller, and the interface is arranged in the groove.
An electronic device is also provided in the embodiments of the present application, as shown in fig. 7, for convenience of description, only the relevant portions of the embodiments of the present application are shown, and details of the technology are not disclosed. The electronic device may be any terminal equipment including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, etc., taking the electronic device as the mobile phone as an example:
referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application, and fig. 7 illustrates a mobile phone as an example. Referring to fig. 7, the handset includes: a Radio Frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a Wireless Fidelity (WiFi) module 970, a processor 980, and a power supply 990. Those skilled in the art will appreciate that the handset configuration shown in fig. 7 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 7:
RF circuitry 910 may be used for the reception and transmission of information. In general, the RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile phone, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 930 may include a fingerprint recognition module 931 and other input devices 932. Fingerprint identification module 931, can gather the fingerprint data of user above it. The input unit 930 may include other input devices 932 in addition to the fingerprint recognition module 931. In particular, other input devices 932 may include, but are not limited to, one or more of a touch screen, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 940 may include a Display screen 941, and optionally, the Display screen 941 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Although in fig. 7, the fingerprint recognition module 931 and the display screen 941 are shown as two separate components to implement the input and output functions of the mobile phone, in some embodiments, the fingerprint recognition module 931 and the display screen 941 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen 941 according to the brightness of ambient light, and the proximity sensor may turn off the display screen 941 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and the audio signal is converted by the speaker 961 to be played; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 960, and then processes the audio data by the audio data playing processor 980, and then sends the audio data to, for example, another mobile phone through the RF circuit 910, or plays the audio data to the memory 920 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 970, and provides wireless broadband Internet access for the user. Although fig. 7 shows the WiFi module 970, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces (e.g., a UART interface and a USB interface) and lines, performs various functions of the mobile phone and processes data by running or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby monitoring the mobile phone as a whole. Alternatively, processor 980 may include one or more processing units; preferably, the processor 980 may integrate an Application Processor (AP), which mainly handles operating systems, user interfaces, application programs, etc., and a Modem processor (Modem), which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
The handset also includes a power supply 990 (e.g., a battery) for supplying power to the various components, which may preferably be logically connected to the processor 980 via a power management system, thereby providing management of charging, discharging, and power consumption via the power management system.
The mobile phone may further include a camera 9100, and the camera 9100 is used for shooting images and videos and transmitting the shot images and videos to the processor 980 for processing.
The mobile phone can also be provided with a Bluetooth module and the like, which are not described herein again.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the core concepts of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An insertion detection circuit comprising an interface and a controller, the controller comprising a detection port, the interface comprising a first metal housing, wherein:
the first metal shell is connected with the detection port;
the controller is used for detecting the level of the detection port and determining that the interface is plugged into an external device when the level of the detection port is detected to be the ground level;
wherein the external device comprises an interposer, the interposer comprising a second metal housing, the second metal housing being grounded; when the interface is inserted into the external device, the first metal shell is connected with the second metal shell.
2. The insertion detection circuit of claim 1, wherein the interface further comprises a first detection pin and a second detection pin, and the controller further comprises a first identification port and a second identification port;
the first detection pin is connected with the first identification port, and the second detection pin is connected with the second identification port;
the controller is further configured to determine that the type of the external device is identified through the first identification port and the second identification port after the interface is inserted into the external device.
3. The insertion detection circuit of claim 2, wherein the controller is further configured to provide a supply voltage to the external device matching the type of the external device after identifying the type of the external device.
4. An insertion detection circuit as claimed in any one of claims 1 to 3, wherein the controller comprises a micro-control unit.
5. The insertion detection circuit according to any one of claims 1 to 3, wherein the controller outputs a pulse signal or a low level signal through the detection port.
6. The insertion detection circuit of claim 4, wherein the controller outputs a pulse signal or a low level signal through the detection port.
7. The insertion detection circuit of claim 5, wherein the voltage effective value of the pulse signal is less than a preset voltage threshold.
8. The insertion detection circuit of claim 5, wherein the voltage of the low level signal is within a preset voltage range.
9. An insertion detection method applied to the insertion detection circuit according to any one of claims 1 to 8, wherein the insertion detection circuit comprises an interface and a controller, the controller comprises a detection port, the interface comprises a first metal shell, and the first metal shell is connected with the detection port, and the method comprises the following steps:
the controller detects the level of the detection port;
when detecting that the level of the detection port is the ground level, the controller determines that the interface is plugged into an external device;
wherein a portion of the external device in contact with the first metal case is grounded.
10. An electronic device, comprising a housing and the insertion detection circuit according to any one of claims 1 to 8, wherein the housing has a groove, the insertion detection circuit comprises an interface and a controller, and the interface is disposed in the groove.
CN201810666025.3A 2018-06-26 2018-06-26 Insertion detection circuit, insertion detection method, and electronic device Active CN108959002B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810666025.3A CN108959002B (en) 2018-06-26 2018-06-26 Insertion detection circuit, insertion detection method, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810666025.3A CN108959002B (en) 2018-06-26 2018-06-26 Insertion detection circuit, insertion detection method, and electronic device

Publications (2)

Publication Number Publication Date
CN108959002A CN108959002A (en) 2018-12-07
CN108959002B true CN108959002B (en) 2021-07-13

Family

ID=64486756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810666025.3A Active CN108959002B (en) 2018-06-26 2018-06-26 Insertion detection circuit, insertion detection method, and electronic device

Country Status (1)

Country Link
CN (1) CN108959002B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109687235B (en) * 2019-01-02 2021-03-16 Oppo广东移动通信有限公司 Control circuit and contact actuation formula USB data line

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201440485U (en) * 2009-08-21 2010-04-21 深圳华为通信技术有限公司 USB connector and electronic device having same
CN103166062A (en) * 2011-12-17 2013-06-19 富泰华工业(深圳)有限公司 Electronic device and connector thereof
CN104237716A (en) * 2013-06-07 2014-12-24 鸿富锦精密工业(深圳)有限公司 Serial connector detection system and method
CN104317528A (en) * 2014-10-13 2015-01-28 惠州Tcl移动通信有限公司 Detecting system and detecting method of micro safe digital (SD) card
CN104735591A (en) * 2015-03-30 2015-06-24 天地融科技股份有限公司 Audio interface adaptation circuit and electronic device
CN205079384U (en) * 2015-09-18 2016-03-09 广州金田瑞麟净化设备制造有限公司 Indoor air monitering treater with temperature and humidity detects function
CN105704280A (en) * 2016-04-06 2016-06-22 广东欧珀移动通信有限公司 Built-in anti-static side key structure and mobile terminal employing same
CN106226647A (en) * 2016-07-29 2016-12-14 维沃移动通信有限公司 The earphone socket of a kind of electronic equipment and electronic equipment
CN206135103U (en) * 2016-09-23 2017-04-26 昆山捷皇电子精密科技有限公司 Cassette with independent detection module

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040009700A1 (en) * 2002-07-11 2004-01-15 Patel Jitendra Ambalal Motion activated plug-in outlet
TWM256012U (en) * 2004-03-04 2005-01-21 Carry Computer Eng Co Ltd USB connector with card detector
CN101493490B (en) * 2009-02-23 2013-03-27 华为终端有限公司 Terminal port insertion detection circuit
US8747147B2 (en) * 2012-10-25 2014-06-10 Hon Hai Precision Industry Co., Ltd. Electrical connector with detect pins
CN106210948A (en) * 2016-06-22 2016-12-07 维沃移动通信有限公司 A kind of on-off circuit, earphone socket, mobile terminal and method
CN206339601U (en) * 2016-12-13 2017-07-18 广州视源电子科技股份有限公司 Pluggable module detection means
CN106844265B (en) * 2017-02-06 2018-10-19 维沃移动通信有限公司 A kind of control method and mobile terminal of general-purpose serial bus USB interface

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201440485U (en) * 2009-08-21 2010-04-21 深圳华为通信技术有限公司 USB connector and electronic device having same
CN103166062A (en) * 2011-12-17 2013-06-19 富泰华工业(深圳)有限公司 Electronic device and connector thereof
CN104237716A (en) * 2013-06-07 2014-12-24 鸿富锦精密工业(深圳)有限公司 Serial connector detection system and method
CN104317528A (en) * 2014-10-13 2015-01-28 惠州Tcl移动通信有限公司 Detecting system and detecting method of micro safe digital (SD) card
CN104735591A (en) * 2015-03-30 2015-06-24 天地融科技股份有限公司 Audio interface adaptation circuit and electronic device
CN205079384U (en) * 2015-09-18 2016-03-09 广州金田瑞麟净化设备制造有限公司 Indoor air monitering treater with temperature and humidity detects function
CN105704280A (en) * 2016-04-06 2016-06-22 广东欧珀移动通信有限公司 Built-in anti-static side key structure and mobile terminal employing same
CN106226647A (en) * 2016-07-29 2016-12-14 维沃移动通信有限公司 The earphone socket of a kind of electronic equipment and electronic equipment
CN206135103U (en) * 2016-09-23 2017-04-26 昆山捷皇电子精密科技有限公司 Cassette with independent detection module

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
多功能接地检测仪;王振华;《科技与企业》;20130927(第19期);314页 *

Also Published As

Publication number Publication date
CN108959002A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN106549451B (en) A kind of wireless charging method and device
CN107613126B (en) UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal
CN108920390B (en) Insertion detection circuit, insertion detection method, and electronic device
CN106786961B (en) Charging method, device and terminal
CN106845422B (en) Fingerprint identification module, fingerprint identification method and mobile terminal
CN107678989B (en) UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal
EP3706007B1 (en) Electronic device having usb type-c interface, control method, and readable storage medium
CN108415865A (en) Interface circuit and electronic device
KR20160064842A (en) Method for confirming a foreign substance in earjack and electronic device thereof
US11425520B2 (en) Method for detecting blocking of microphone and related products
CN110138052B (en) Charging control method and related product
CN103605077A (en) Predetermined battery identification method, predetermined battery identification device and electronic equipment
CN108834013B (en) Wearable equipment electric quantity balancing method and related product
CN111008090B (en) Battery electric quantity control method and device, storage medium and terminal equipment
CN110352532B (en) Method for detecting swelling of rechargeable battery and portable electronic equipment
EP3570404B1 (en) Power supply control method and apparatus, storage medium, and electronic device
CN108411310B (en) Interface circuit and electronic device
CN108959002B (en) Insertion detection circuit, insertion detection method, and electronic device
CN110489177B (en) Application control method and device, storage medium and terminal equipment
CN110190641B (en) Charging control circuit, terminal equipment and data line
CN108255632B (en) Fall data calculation method based on artificial intelligence and related product
CN110958345A (en) Method and device for detecting rear cover of mobile terminal and computer readable storage medium
KR20210033758A (en) Method for power supply and an electronic device thereof
CN106849000B (en) Short-circuit protection circuit, power adapter and mobile terminal
CN110620602B (en) Reverse charging and data transmission sharing system, multiplexing data line and electronic 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