CN108959002A - insertion detection circuit, insertion detection method and electronic device - Google Patents
insertion detection circuit, insertion detection method and electronic device Download PDFInfo
- Publication number
- CN108959002A CN108959002A CN201810666025.3A CN201810666025A CN108959002A CN 108959002 A CN108959002 A CN 108959002A CN 201810666025 A CN201810666025 A CN 201810666025A CN 108959002 A CN108959002 A CN 108959002A
- Authority
- CN
- China
- Prior art keywords
- interface
- controller
- metal shell
- detection
- external equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection 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/2215—Detection 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus 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 present application discloses a kind of insertion detection circuit, insertion detection method and electronic device, which includes interface and controller, and controller includes detection port, and interface includes the first metal shell, the first metal shell connecting detection port;Controller is used to detect the level of detection port, and for determining that interface is inserted into external equipment when detecting the level of detection port is ground level.The embodiment of the present application does insertion detection by the metal shell of interface, for only having the external equipment of a grounding pin, is also able to carry out insertion identification, improves the compatibility of insertion detection.
Description
Technical field
This application involves field of terminal technology, and in particular to a kind of insertion detection circuit, insertion detection method and electronics
Device.
Background technique
With the development of the electronic devices such as smart phone, the hardware circuit design of electronic device also becomes increasingly complex.Electronics
Device is generally equipped with universal serial bus (Universal Serial Bus, USB) interface, and USB interface is filled for electronics
Set the connection and communication between external equipment.As one kind of USB interface, TYPE-C interface positive and negative can be plugged gradually with it
Mainstream as USB interface.Currently, TYPE-C interface detection external equipment insertion when, by the grounding pin of TYPE-C interface into
Row insertion detection.However, when external equipment insertion, external equipment is only if only one grounding pin of external equipment
One grounding pin can cause external equipment not have extra grounding pin to be used as ground connection as detection pin, and then cause outer
Portion's equipment can not work normally.As it can be seen that current insertion detection scheme can not external equipment to only one grounding pin into
Row insertion detection.
Summary of the invention
The embodiment of the present application provides a kind of insertion detection circuit, insertion detection method and electronic device, can be improved
It is inserted into the compatibility of detection.
The embodiment of the present application first aspect provides a kind of insertion detection circuit, including interface and controller, the controller
Including detecting port, the interface includes the first metal shell, in which:
First metal shell connects the detection port;
The controller is used to detect the level of the detection port, and in the electricity for detecting the detection port
When putting down as ground level, the interface insertion external equipment is determined;
Wherein, the position ground connection contacted in the external equipment with first metal shell.
The embodiment of the present application second aspect provides a kind of insertion detection method, and it is real which is applied to the application
The insertion detection circuit of a first aspect is applied, the insertion detection circuit includes interface and controller, and the controller includes inspection
Port is surveyed, the interface includes the first metal shell, and first metal shell connects the detection port, the method packet
It includes:
The controller detects the level of the detection port;
When detecting the level of the detection port is ground level, controller determines the interface insertion external equipment;
Wherein, the position ground connection contacted in the external equipment with first metal shell.
The embodiment of the present application third aspect provides a kind of electronic device, including shell and the embodiment of the present application first aspect
Insertion detection circuit, opens up on the shell fluted, and the insertion detection circuit includes interface and controller, and the interface is set
It sets in the groove.
The embodiment of the present application has the following beneficial effects:
When interface does not have external equipment insertion, the level of the first metal shell is indefinite level, when there is external equipment to insert
Fashionable, due to the position ground connection contacted in external equipment with the first metal shell, external equipment is by the voltage of the first metal shell
Moment is pulled low to ground level, and the logical level that can detecte detection port of controller is ground level.The embodiment of the present application imparting connects
The function that the shell (i.e. the first metal shell) of mouth has insertion to detect, without being set the grounding pin in interface as detection outside
The pin of standby insertion is also able to carry out insertion identification for only having the external equipment of a grounding pin, can be to various outsides
Equipment carries out insertion detection, improves the compatibility of insertion detection.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of structural schematic diagram of insertion detection circuit disclosed in the embodiment of the present application;
Fig. 2 is the structural schematic diagram of another kind insertion detection circuit disclosed in the embodiment of the present application;
Fig. 3 is the structural schematic diagram of another kind insertion detection circuit disclosed in the embodiment of the present application;
Fig. 4 is a kind of position view of TYPE-C interface disclosed in the embodiment of the present application;
Fig. 5 is a kind of structural schematic diagram of TYPE-C interface disclosed in the embodiment of the present application;
Fig. 6 is a kind of flow diagram for being inserted into detection method disclosed in the embodiment of the present application;
Fig. 7 is a kind of structural schematic diagram of electronic device disclosed in the embodiment of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
The description and claims of this application and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing
Different objects, are not use to describe a particular order.In addition, term " includes " and " having " and their any deformations, it is intended that
It is to cover and non-exclusive includes.Such as it contains process, system, product or the equipment of a series of steps or units and does not limit
In listed step or unit, but optionally further comprising the step of not listing or unit, or optionally further comprising for
Other intrinsic step or units of these processes, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments
It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
In addition, electronic device involved by the embodiment of the present application may include various hand-held with wireless communication function
Equipment, wearable device, calculates equipment or is connected to other processing equipments of radio modem mobile unit, and each
The user equipment (User Equipment, UE) of kind form, mobile station (Mobile Station, MS), terminal device
(terminal device) etc..For convenience of description, apparatus mentioned above is referred to as electronic device.
In addition, " connection " that is previously mentioned in the embodiment of the present application refers to " be electrically connected ", electrical connection also referred to as electrically connects
It connects.
It describes in detail below to the embodiment of the present application.
Referring to Fig. 1, Fig. 1 is a kind of structural schematic diagram of insertion detection circuit disclosed in the embodiment of the present application, such as Fig. 1 institute
Show, which includes interface 11 and controller 12, and controller 12 includes detection port 121, and interface 11 includes the
One metal shell 111 is wherein:
First metal shell, 111 connecting detection port 121;
Controller 12 be used for detect detection port 121 level, and for detect detect port 121 level be
When ground level, determine that interface 11 is inserted into external equipment 20;
Wherein, the position ground connection contacted in external equipment 20 with the first metal shell 111.
In the embodiment of the present application, interface 11 includes the first metal shell 111 and drawing in the first metal shell 111 is arranged in
Foot (for example, grounding pin, power pins, data transmission pin etc.).Wherein, the first metal shell 111 is not with setting the
Pin electrical connection in one metal shell 111.
Insertion detection circuit 10 can be located in electronic device (for example, mobile phone).Wherein, external equipment 20 can be USB flash disk
Plug, the plug etc. of data line, one end of data line is plug, interface 11 can be inserted, the other end of data line can connect
Connect power supply adaptor, mobile hard disk etc..The type of external equipment 20 may include: main equipment or from equipment.For example, external equipment
20 when being power supply unit, if external equipment 20 is inserted into interface 11, external equipment 20 is used as main equipment, and external equipment 20 can lead to
Interface 11 is crossed to electronic device (at this time for from equipment) power supply.For another example, when external equipment 20 is USB flash disk, mobile hard disk, if outside
Portion's equipment 20 is inserted into interface 11, and as from equipment, external equipment 20 (can be set external equipment 20 to electronic device based at this time
It is standby) transmission data.Wherein, main equipment can be power supply adaptor, can be USB flash disk, mobile hard disk etc. from equipment.
In the embodiment of the present application, since the first metal shell 111 is connect with the detection port 121 of controller 12, when first
When metal shell 111 is not connect with external equipment 20, the level of the first metal shell 111 is indefinite level, and indefinite level is 0
To the level changed between the supply voltage of controller 12.For example, if the supply voltage of controller 12 is 3.3V, the first gold medal
The level for belonging to shell 111 is the indefinite level of 0~3.3V.If controller 12 detects that the level of detection port 121 is not
Determine level, then controller 12 determines that no external equipment 20 is inserted into.If controller 12 detects the level of detection port 121 and is
When ground level, determine that interface 11 is inserted into external equipment 20.Wherein, the voltage of ground level is 0V.
In the embodiment of the present application, controller 12 may include processor and memory, which is the control of electronic device
Center processed is stored in storage by running or executing using the various pieces of various interfaces and the entire electronic device of connection
Software program and/or module in device, and call the data that are stored in memory, execute electronic device various functions and
Data are handled, to carry out integral monitoring to electronic device.Optionally, processor can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into the processor.
Wherein, memory can be used for storing software program and module, and processor is stored in the soft of memory by operation
Part program and module, thereby executing the various function application and data processing of electronic device.Memory can mainly include depositing
Store up program area and storage data area, wherein storing program area can application program needed for storage program area, at least one function
Deng;Storage data area, which can be stored, uses created data etc. according to electronic device.In addition, memory may include high speed with
Machine access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or its
His volatile solid-state part.
In the embodiment of the present application, the function that the shell of interface has insertion to detect can be assigned, without by the ground connection in interface
Pin is also able to carry out insertion for only having the external equipment of a grounding pin as the pin of detection external equipment insertion
Identification can carry out insertion detection to various external equipments, improve the compatibility of insertion detection.
Optionally, as shown in Fig. 2, external equipment 20 includes insertion piece 21, insertion piece 21 includes the second metal shell 211,
Second metal shell 211 ground connection;When interface 11 is inserted into external equipment 20, the first metal shell 111 and the second metal shell 211
Connection.
In the embodiment of the present application, the second metal shell 211 of insertion piece 21 can be grounded.When insertion piece 21 is inserted into interface
When 11, the second metal shell 211 is contacted with the first metal shell 111.Control 12 detects the level of port 121 by detection,
When the level for detecting detection port 121 is ground level, determine that interface 11 is inserted into external equipment 20.
Wherein, when interface 11 is inserted into external equipment 20, the connection of the first metal shell 111 and the second metal shell 211
Mode can there are many.For example, can be to snap connection, it be also possible to elastic connection.The application is implemented without limitation.
In the prior art, generally a grounding pin in interface is not connected to ground, but using this pin as
Detect pin, controller is by detecting the level of this grounding pin, when this grounding pin and external equipment in interface
When grounding pin connects, the level that controller can detecte this grounding pin is ground level, that is, can determine external equipment
Insertion.And in the embodiment of the present application, by the earthing of casing of insertion piece, when being inserted into interface using external equipment, the shell of insertion piece
The characteristics of contacting with the shell of interface, insertion detection is carried out using the shell of interface.It is not necessary that the grounding pin in interface is made
It is also able to carry out insertion identification for only having the external equipment of a grounding pin for the pin of detection external equipment insertion, it can
To carry out insertion detection to various external equipments, the compatibility of insertion detection is improved.
Optionally, as shown in figure 3, interface 11 further includes the first detection pin 112 and the second detection pin 113, controller
12 further include the first identification port 122 and the second identification port 123;
First detection pin 112 the first identification of connection port 122, second detection pin 113 the second identification of connection port
123;
Controller 12 is also used to determine that interface 11 is inserted into after external equipment 20, passes through the first identification port 122 and second
Identify that port 123 identifies the type of external equipment 20.
Insertion detection circuit in the embodiment of the present application can be used for universal serial bus (Universal Serial
Bus, USB) interface.Specifically, can be used for TYPE-C interface, TYPE-C interface is normally at the bottom of smart phone, mostly
Number when for charge, data transmission etc. purposes.Referring to Fig. 4, Fig. 4 is a kind of TYPE-C interface disclosed in the embodiment of the present application
Position view, as shown in figure 4, TYPE-C interface 11 is located at the bottom of smart phone.Wherein, TYPE-C interface is supported external
Equipment is just being inserted and anti-plug.
In the embodiment of the present application, interface 11 may include multiple pins.By taking TYPE-C interface as an example, it may include 24 and draw
Foot.For example, referring to Fig. 5, Fig. 5 is a kind of structural schematic diagram of TYPE-C interface disclosed in the embodiment of the present application.Such as Fig. 5
It is shown, TYPE-C interface may include A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, B1, B2, B3, B4, B5,
B6, B7, B8, B9, B10, B11, B12 24 pins in total.Wherein, A1, A12, B1, B12 are grounding pin, for being grounded.A4,
A9, B4, B9 are power pins, for connecing power supply.A2, A3, A10, A11, B2, B3, B10, B11 are high speed transmission of signals pin,
It is used for transmission high-speed data signal.A6, A7, B6, B7 are USB data transmission pin, are used for transmission differential data signals.A8,B8
For satellite interface, miscellaneous function is provided, in different application scenarios, A8, B8 there can be different purposes.
Wherein A5 is the first collocation channel (configuration channel, CC) pin, also referred to as CC1 pin, corresponding
The first detection pin 112 in the embodiment of the present application, B5 are the second collocation channel pin, also referred to as CC2 pin, and corresponding the application is real
Apply the second detection pin 113 in example.Wherein, CC1 pin and CC2 pin are two key pins, can be used for detecting whether
There is external equipment connection, can be used for confirmation data transfer direction, can be used for the plug of the external equipment of confirmation insertion
It is that positive insertion or anti-plug enter.
Optionally, controller 12 be also used to when identify external equipment 20 type after, for external equipment 20 provide with outside
The supply voltage of the type matching of portion's equipment 20.
Optionally, controller 12 includes micro-control unit (Microcontroller Unit, MCU).
Optionally, controller 12 passes through detection port 121 and the second detection 122 output pulse signal of port or low level letter
Number.
In the embodiment of the present application, controller 12 by detection port 121 and second detection 122 output pulse signal of port or
Low level signal can identify it is outer whether interface 11 has by the level of detection detection port 121 and the second detection port 122
The insertion of portion's equipment.For example, controller 12 exports the voltage of 0.2V by detection port 121 and the second detection port 122, work as detection
When voltage to detection port 121 and the second detection port 122 becomes 0V from 0.2V, that is, it can determine that interface 11 has external equipment to insert
Enter.
Optionally, the voltage of low level signal is located at predetermined voltage range.
In the embodiment of the present application, predetermined voltage range can be set in advance, for example predetermined voltage range can be set
Between 0.1~0.9V.The voltage range of low level signal is limited between 0.1~0.9V, since controller 12 passes through inspection
Port 121 and the second detection 122 output pulse signal of port or low level signal are surveyed, and detects port 121 and interface 11
The connection of first metal shell 111.Then the voltage of the first metal shell 111 is between 0.1~0.9V.If the electricity of low level signal
Pressure setting is too high (for example, being higher than 1V), be easy to cause the first metal shell 111 and the conducting liquid contacted that electrochemistry occurs
Corrosion.If the voltage setting of low level signal is too low (for example, be lower than 0.1V), the level of the first metal shell 111 be easy by
To interference, it will lead to controller 12 and the case where error detection occur.The voltage of low level signal can be consolidating between 0.1~0.9V
Definite value.Low level signal is that fixed voltage can detect whether external equipment insertion in order to controller 12.
Wherein, conducting liquid can be the liquid comprising electrolyte, for example, mineral water, coffee, fruit drink, tea-drinking
Material, soda etc..
Wherein, electrochemical corrosion is exactly that metal and electrolyte form two electrodes, forms corrosion galvanic cell, because metal
Electrode potential is always lower than the electrode potential of electrolyte, so metal is cathode, redox reaction, gold occur for metal and electrolyte
Category loses electronics and becomes metal oxide, causes to corrode to metal.Wherein, metal, electrolyte and current loop are electrochemistry corruption
The necessary condition of erosion.
Optionally, the voltage effective value of pulse signal is less than predetermined voltage threshold.
In the embodiment of the present application, voltage effective value refers to the average voltage in a pulse period.Predeterminated voltage threshold
Value can be set in advance.For example, predetermined voltage threshold can be set to 1V, at this point, the voltage effective value of pulse signal is small
In 1V.
Wherein, when the voltage effective value for detecting the pulse signal that port 121 exports is less than 1V, the first metal shell 111
Electrochemical corrosion is difficult to happen with conducting liquid.
Specifically, the duty ratio of pulse signal, less than 20%, the amplitude of pulse signal is less than 5 volts.
In the embodiment of the present application, when the duty ratio of pulse signal is less than 20%, the voltage effective value of pulse signal is lower.
When the amplitude of pulse signal is lower than 5V, when the duty ratio of pulse signal is less than 20%, the voltage value of pulse signal is lower than 1 volt.
When the voltage effective value of the first metal shell 111 of interface 11 is less than 1 volt, the first metal shell 111 of interface 11 with lead
Electro-hydraulic body is difficult to happen electrochemical corrosion.The duty ratio of pulse signal is set less than 20%, the amplitude of pulse signal is less than 5 volts
Spy can inhibit the first metal shell 111 of interface 11 that electrochemical corrosion occurs with conducting liquid.
Since the first metal shell 111 in interface 11 uses metal material, when the first metal shell 111 in interface 11
When being contacted with conducting liquid, since conducting liquid is equivalent to electrolyte, if the effective voltage on the first metal shell 111 reaches
When certain value, the electrochemical corrosion of the first metal shell 111 and conducting liquid can be accelerated.In the embodiment of the present application, controller 12
By detecting 121 output pulse signal of port or low level signal to the first metal shell 111, the voltage effective value of pulse signal
Lower than 1V, the voltage of low level signal is less than 1V, since the voltage effective value of the first metal shell 111 is lower, when the first metal
When shell 111 and conducting liquid contact, it can inhibit the first metal shell 111 that electrochemical corrosion occurs with conducting liquid.It is connecing
Mouthfuls 11 with external equipment when not connecting, even if the first metal shell 111 of interface 11 is contacted with conducting liquid, interface 11 is not yet
Electrochemical corrosion can occur.
In general, when the voltage effective value of the first metal shell 111 of interface 11 is higher than 1 volt, outside the first metal
Faster electrochemical corrosion can just occur for shell 111 and conducting liquid.When the voltage effective value of the first metal shell 111 is lower than 1 volt
When special, the first metal shell 111 is difficult to happen electrochemical corrosion with conducting liquid.
For example, if device processed 12 exports accounting for the pulse signal of the first metal shell 111 by detection port 121
For sky than being 1/10th, impulse amplitude is 3 volts, then the voltage effective value of the first metal shell 111 is 0.3 volt.0.3 volt
Less than 1 volt, even if the first metal shell 111 is contacted with conducting liquid, the first metal shell 111 is also difficult to send out with conducting liquid
Raw electrochemical corrosion.
Referring to Fig. 6, Fig. 6 is a kind of flow diagram for being inserted into detection method disclosed in the embodiment of the present application.Such as Fig. 6 institute
Show, which is applied to insertion detection circuit shown in above-mentioned FIG. 1 to FIG. 5, which includes interface
And controller, controller include detection port, interface includes the first metal shell, and the first metal shell connecting detection port should
Insertion detection method includes the following steps.
601, the level of controller detection detection port.
602, when detecting the level of detection port is ground level, controller determines that interface is inserted into external equipment.
Wherein, the position ground connection contacted in external equipment with the first metal shell.
The specific implementation of step 601 and step 602 in Fig. 6 may refer to Fig. 1 to insertion detection circuit shown in fig. 5,
Details are not described herein again.
In the embodiment of the present application, controller can be detected by the way that whether the level of the first metal shell of detection is ground level
Whether there is external equipment insertion, various external equipments can be carried out with insertion detection, improves the compatibility of insertion detection.
The embodiment of the present application also provides a kind of electronic device, which includes shown in shell and above-mentioned FIG. 1 to FIG. 5
Insertion detection circuit, open up on shell fluted, insertion detection circuit includes interface and controller, and interface is arranged in groove
It is interior.
The embodiment of the present application also provides a kind of electronic devices, as shown in fig. 7, for ease of description, illustrating only and this
Apply for the relevant part of embodiment, it is disclosed by specific technical details, please refer to the circuit part of the embodiment of the present application.The electronics
Device can be include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS
Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, by taking electronic device is mobile phone as an example:
Referring to Fig. 7, Fig. 7 is a kind of structural schematic diagram of electronic device disclosed in the embodiment of the present application, with mobile phone in Fig. 7
For be illustrated.With reference to Fig. 7, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 910, memory 920, input
Unit 930, display unit 940, sensor 950, voicefrequency circuit 960, Wireless Fidelity (Wireless Fidelity, WiFi) mould
The components such as block 970, processor 980 and power supply 990.It will be understood by those skilled in the art that handset structure shown in Fig. 7
The restriction to mobile phone is not constituted, may include perhaps combining certain components or difference than illustrating more or fewer components
Component layout.
It is specifically introduced below with reference to each component parts of the Fig. 7 to mobile phone:
RF circuit 910 can be used for sending and receiving for information.In general, RF circuit 910 includes but is not limited to antenna, at least one
A amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition,
RF circuit 910 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile
Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code it is point more
Location (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division
Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), Email, short message service
(Short Messaging Service, SMS) etc..
Memory 920 can be used for storing software program and module, and processor 980 is stored in memory 920 by operation
Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 920 can mainly include
Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function
Sequence etc.;Storage data area, which can be stored, uses created data etc. according to mobile phone.In addition, memory 920 may include high speed
Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or
Other volatile solid-state parts.
Input unit 930 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with
And the related key signals input of function control.Specifically, input unit 930 may include fingerprint recognition mould group 931 and other are defeated
Enter equipment 932.Fingerprint recognition mould group 931 can acquire the finger print data of user on it.In addition to fingerprint recognition mould group 931, input
Unit 930 can also include other input equipments 932.Specifically, other input equipments 932 can include but is not limited to touch-control
One of screen, physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
Or it is a variety of.
Display unit 940 can be used for showing information input by user or be supplied to user information and mobile phone it is various
Menu.Display unit 940 may include display screen 941, optionally, can use liquid crystal display (Liquid Crystal
Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure
Display screen 941.Although fingerprint recognition mould group 931 and display screen 941 are to realize mobile phone as two independent components in Fig. 7
Input and input function, but it is in some embodiments it is possible to fingerprint recognition mould group 931 and display screen 941 is integrated and real
The input and playing function of existing mobile phone.
Mobile phone may also include at least one sensor 950, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light
Light and shade adjust the brightness of display screen 941, proximity sensor can when mobile phone is moved in one's ear, close display screen 941 and/or
Backlight.As a kind of motion sensor, accelerometer sensor can detect all directions on (generally three axis) acceleration it is big
It is small, can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (such as horizontal/vertical screen switching, phase
Close game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as mobile phone
The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 960, loudspeaker 961, microphone 962 can provide the audio interface between user and mobile phone.Audio-frequency electric
Electric signal after the audio data received conversion can be transferred to loudspeaker 961, be converted to sound by loudspeaker 961 by road 960
Signal plays;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960
It is changed to audio data, then by after the processing of audio data playback process device 980, such as another mobile phone is sent to through RF circuit 910,
Or audio data is played to memory 920 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 970
Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 7 is shown
WiFi module 970, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need do not changing completely
Become in the range of the essence of invention and omits.
Processor 980 is the control centre of mobile phone, utilizes various interfaces (for example, UART interface and USB interface) and route
The various pieces for connecting whole mobile phone, by running or executing the software program and/or module that are stored in memory 920, with
And the data being stored in memory 920 are called, the various functions and processing data of mobile phone are executed, to carry out to mobile phone whole
Monitoring.Optionally, processor 980 may include one or more processing units;Preferably, processor 980 can be integrated using processing
Device (AP) and modem processor (Modem), wherein the main processing operation system of application processor, user interface and application
Program etc., modem processor mainly handle wireless communication.It is understood that above-mentioned modem processor can not also
It is integrated into processor 980.
Mobile phone further includes the power supply 990 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe
Reason system and processor 980 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system
Etc. functions.
Mobile phone can also include camera 9100, and camera 9100 is for shooting image and video, and by the image of shooting
It is handled with transmission of video to processor 980.
Mobile phone can be with bluetooth module etc., and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of
Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit,
It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and
Embodiment is expounded, the core concept for the application that the above embodiments are only used to help understand;Meanwhile for
Those of ordinary skill in the art have change according to the thought of the application in specific embodiments and applications
Place, in conclusion the contents of this specification should not be construed as limiting the present application.
Claims (10)
1. a kind of insertion detection circuit, which is characterized in that including interface and controller, the controller includes detection port, institute
Stating interface includes the first metal shell, in which:
First metal shell connects the detection port;
The controller be used for detect it is described detection port level, and for detect it is described detection port level be
When ground level, the interface insertion external equipment is determined;
Wherein, the position ground connection contacted in the external equipment with first metal shell.
2. insertion detection circuit according to claim 1, which is characterized in that the external equipment includes insertion piece, described
Insertion piece includes the second metal shell, the second metal shell ground connection;It is described when the interface is inserted into the external equipment
First metal shell is connect with second metal shell.
3. insertion detection circuit according to claim 1 or 2, which is characterized in that the interface further includes that the first detection is drawn
Foot and the second detection pin, the controller further include the first identification port and the second identification port;
The first detection pin connection, first identification port, the second detection pin connection second identification end
Mouthful;
After the controller is also used to determine interface insertion external equipment, pass through the first identification port and described the
The type of external equipment described in two identification port identifications.
4. insertion detection circuit according to claim 3, which is characterized in that the controller is also used to described outer when identifying
After the type of portion's equipment, the supply voltage with the type matching of the external equipment is provided for the external equipment.
5. insertion detection circuit according to any one of claims 1 to 4, which is characterized in that the controller includes micro-control
Unit processed.
6. described in any item insertion detection circuits according to claim 1~5, which is characterized in that the controller passes through described
Detect port output pulse signal or low level signal.
7. insertion detection circuit according to claim 6, which is characterized in that the voltage effective value of the pulse signal is less than
Predetermined voltage threshold.
8. insertion detection circuit according to claim 6, which is characterized in that the voltage of the low level signal is located at default
Voltage range.
9. a kind of insertion detection method, which is characterized in that the method is applied to insertion according to any one of claims 1 to 8
Detection circuit, the insertion detection circuit include interface and controller, and the controller includes detection port, and the interface includes
First metal shell, first metal shell connect the detection port, which comprises
The controller detects the level of the detection port;
When detecting the level of the detection port is ground level, controller determines the interface insertion external equipment;
Wherein, the position ground connection contacted in the external equipment with first metal shell.
10. a kind of electronic device, which is characterized in that the electronic device includes shell and as described in any one of claim 1~8
Insertion detection circuit, opens up on the shell fluted, and the insertion detection circuit includes interface and controller, and the interface is set
It sets in the groove.
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 true CN108959002A (en) | 2018-12-07 |
CN108959002B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109687235A (en) * | 2019-01-02 | 2019-04-26 | Oppo广东移动通信有限公司 | A kind of control circuit and contact suction type USB data line |
Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040009700A1 (en) * | 2002-07-11 | 2004-01-15 | Patel Jitendra Ambalal | Motion activated plug-in outlet |
US20050198407A1 (en) * | 2004-03-04 | 2005-09-08 | Johnson Lee | Usb connector with card detector |
CN101493490A (en) * | 2009-02-23 | 2009-07-29 | 深圳华为通信技术有限公司 | Terminal port insertion detection circuit |
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 |
US20140120778A1 (en) * | 2012-10-25 | 2014-05-01 | Hon Hai Precision Industry Co., Ltd. | Electrical connector with detect pins |
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 |
CN106210948A (en) * | 2016-06-22 | 2016-12-07 | 维沃移动通信有限公司 | A kind of on-off circuit, earphone socket, mobile terminal and method |
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 |
CN106844265A (en) * | 2017-02-06 | 2017-06-13 | 维沃移动通信有限公司 | The control method and mobile terminal of a kind of general-purpose serial bus USB interface |
CN206339601U (en) * | 2016-12-13 | 2017-07-18 | 广州视源电子科技股份有限公司 | Pluggable module detection means |
-
2018
- 2018-06-26 CN CN201810666025.3A patent/CN108959002B/en active Active
Patent Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040009700A1 (en) * | 2002-07-11 | 2004-01-15 | Patel Jitendra Ambalal | Motion activated plug-in outlet |
US20050198407A1 (en) * | 2004-03-04 | 2005-09-08 | Johnson Lee | Usb connector with card detector |
CN101493490A (en) * | 2009-02-23 | 2009-07-29 | 深圳华为通信技术有限公司 | Terminal port insertion detection circuit |
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 |
US20140120778A1 (en) * | 2012-10-25 | 2014-05-01 | Hon Hai Precision Industry Co., Ltd. | Electrical connector with detect pins |
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 |
CN106210948A (en) * | 2016-06-22 | 2016-12-07 | 维沃移动通信有限公司 | A kind of on-off circuit, earphone socket, mobile terminal and method |
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 |
CN206339601U (en) * | 2016-12-13 | 2017-07-18 | 广州视源电子科技股份有限公司 | Pluggable module detection means |
CN106844265A (en) * | 2017-02-06 | 2017-06-13 | 维沃移动通信有限公司 | The control method and mobile terminal of a kind of general-purpose serial bus USB interface |
Non-Patent Citations (1)
Title |
---|
王振华: "多功能接地检测仪", 《科技与企业》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109687235A (en) * | 2019-01-02 | 2019-04-26 | Oppo广东移动通信有限公司 | A kind of control circuit and contact suction type USB data line |
Also Published As
Publication number | Publication date |
---|---|
CN108959002B (en) | 2021-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108415865A (en) | Interface circuit and electronic device | |
CN108899952B (en) | Multi-battery charging and discharging device and mobile terminal | |
CN106549451B (en) | A kind of wireless charging method and device | |
CN107635069B (en) | UART and USB multiplex circuit and mobile terminal | |
WO2018120236A1 (en) | Battery charging method, charging device and terminal equipment | |
CN108958696A (en) | Principal and subordinate's earphone method for handover control and Related product | |
CN108604218A (en) | The method and terminal device of connection are established between equipment with general-purpose serial bus USB Type-C interfaces | |
CN106786961B (en) | Charging method, device and terminal | |
ES2753802T3 (en) | Charging procedure, charging device and terminal | |
CN106155557B (en) | A kind of virtual key display methods and mobile terminal | |
CN107613126B (en) | UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal | |
KR20160064842A (en) | Method for confirming a foreign substance in earjack and electronic device thereof | |
CN105933537B (en) | A kind of volume processing method and user terminal | |
CN106549465B (en) | Charge control method, device, system and terminal | |
CN106505699B (en) | Charge control method, device and terminal | |
CN103605077A (en) | Predetermined battery identification method, predetermined battery identification device and electronic equipment | |
CN107678989A (en) | UART and USB multiplex circuits and mobile terminal | |
CN108920390A (en) | insertion detection circuit, insertion detection method and electronic device | |
CN108874708A (en) | OTG equipment, terminal charging method, mobile terminal and computer readable storage medium | |
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 | |
CN112311029B (en) | Charging method, electronic device and storage medium | |
CN107317917B (en) | Application control method and Related product | |
CN110489177B (en) | Application control method and device, storage medium and terminal equipment | |
CN108411310A (en) | Interface circuit 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 |