CN108173081B - USB connection port assembly and self-protection method thereof and host - Google Patents

USB connection port assembly and self-protection method thereof and host Download PDF

Info

Publication number
CN108173081B
CN108173081B CN201711438467.4A CN201711438467A CN108173081B CN 108173081 B CN108173081 B CN 108173081B CN 201711438467 A CN201711438467 A CN 201711438467A CN 108173081 B CN108173081 B CN 108173081B
Authority
CN
China
Prior art keywords
connection port
female
usb
male
port
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
CN201711438467.4A
Other languages
Chinese (zh)
Other versions
CN108173081A (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.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital 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 Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN201711438467.4A priority Critical patent/CN108173081B/en
Publication of CN108173081A publication Critical patent/CN108173081A/en
Application granted granted Critical
Publication of CN108173081B publication Critical patent/CN108173081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/62Means for facilitating engagement or disengagement of coupling parts or for holding them in engagement
    • H01R13/639Additional means for holding or locking coupling parts together, after engagement, e.g. separate keylock, retainer strap
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component

Abstract

The invention discloses a USB connecting port component, which comprises a female connecting port and a male connecting port matched with the female connecting port, and further comprises a locking piece, a control module and a detection element, wherein the male connecting port is connected in a manner of being inserted into the female connecting port to transmit data, when the detection element detects that the male connecting port is pulled out from the female connecting port, the control module judges whether the pulling-out condition is met currently, and when the pulling-out condition is judged not to be met, the locking piece controls the male connecting port and the female connecting port to be continuously in a connecting state. The invention also discloses a self-protection method of the USB connection port assembly and a host. According to the technical scheme, the USB connection port assembly is locked when data are transmitted, and is unlocked and pulled after the data transmission is finished, so that the self-protection of the USB connection port assembly is realized, and the safety and practicability of the USB connection port assembly are improved.

Description

USB connection port assembly and self-protection method thereof and host
Technical Field
The invention relates to the field of universal serial bus equipment, in particular to a USB connection port assembly, a self-protection method thereof and a host.
Background
The Universal Serial Bus (USB) is a serial bus standard of butt joint equipment, a USB system consists of a host and USB equipment, one host can be connected with a plurality of USB equipment, and when the USB equipment is inserted into the host, the USB equipment is connected with a positive electrode signal line, a negative electrode signal line and a power line on the host, so that data transmission is realized; when the USB equipment is pulled out of the host, the USB equipment is disconnected with the positive signal line, the negative signal line and the power line on the host, and data transmission is stopped.
When the existing USB equipment is pulled out, the USB equipment is generally required to be selected to be stopped on a host, and the USB equipment can be pulled out after data transmission is stopped. In the prior art, the operation of pulling out the USB device is complicated, and an operator often forgets to select the USB device for deactivation on the host, but directly pulls out the USB device, however, if the USB device is not selected for deactivation on the host, and the USB device is copying data, data loss may be caused, the USB device or a file system in the USB device is damaged, and the host may also be halted.
Therefore, it is desirable to provide a USB port assembly with a self-protection function, which is prohibited from being manually removed during data transmission.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a USB connection port assembly, a self-protection method thereof and a host, and aims to solve the technical problems that data is lost and a file system in a USB device or the USB device is damaged due to the fact that a male connection port is pulled out from a female connection port when a male connection port is detected and a pull-out condition is judged not to be met currently, and the male connection port and the female connection port are controlled to be in a connection state continuously by a locking piece.
In order to achieve the above object, the present invention provides a USB connection port assembly, where the USB connection port assembly includes a female connection port and a male connection port adapted to the female connection port, and the USB connection port assembly further includes a locking member, a control module and a detection element, where the male connection port is connected by being inserted into the female connection port to transmit data, and when the detection element detects that the male connection port is pulled out from the female connection port, the control module determines whether a pull-out condition is currently satisfied, and when the pull-out condition is determined to be not satisfied, the locking member controls the male connection port and the female connection port to be continuously connected.
Preferably, the step of judging whether the pull-out condition is currently met by the control module specifically includes: the control module judges whether data transmission is currently performed.
Preferably, the locking member includes a locking portion provided to the female connection port, a fixing portion provided to the male connection port, and a driving portion for controlling the locking portion to be locked with or separated from the fixing portion.
Preferably, the locking portion is an engaging portion provided in the female connection port, and the engaging portion is engaged and locked with the fixing portion.
Preferably, the female connection port further comprises a side wall and a bottom wall provided with a connection pin, the clamping part is an elastic contact piece arranged on the side wall, and the driving part controls the elastic contact piece to elastically deform towards a direction departing from the male connection port to form a clamping groove; the fixing part is an elastic piece which is clamped and fixed in the clamping groove, and the elastic piece deforms in the direction back to the elastic contact piece under the action of the elastic restoring force of the elastic contact piece so as to enable the elastic piece to be separated from the clamping groove.
Preferably, the elastic piece is an elastic boss protruding from a side wall of the male connection port opposite to the elastic contact piece, and the elastic boss can deform toward the male connection port under the action of pressure.
Preferably, the USB connection port assembly further comprises a detection element, the detection element comprising a first DTC pin disposed within the female connection port and a second DTC pin disposed within the male connection port; first DTC pin with the connection length of second DTC pin is shorter than female connection port and the interior connection pin's of public connection port connection length, wherein, when public connection port extracts female connection port, first DTC pin with the disconnection is first disconnected to the second DTC pin, first DTC pin with during second DTC pin disconnection, it has been judged to have detected public connection port is followed female connection port extraction event.
In order to achieve the above object, the present invention further provides a method for self-protecting a USB connection port assembly, where the USB connection port assembly includes a female connection port and a male connection port adapted to the female connection port, and the method for self-protecting the USB connection port assembly includes the following steps:
detecting that the male connection port is pulled out of the female connection port; judging whether the pulling-out condition is met currently;
and when the pull-out condition is not met, controlling the male connection port and the female connection port to be continuously in a connection state.
Preferably, the judging whether the pull-out condition is currently met specifically includes:
judging whether data transmission is currently carried out or not;
when the judgment is yes, confirming that the pulling-out condition is not met;
when the judgment is no, the pull-out condition is satisfied.
To achieve the above object, the present invention further provides a host including a memory, a processor, a computer program stored in the memory and executable on the processor, and the USB connection port assembly as described above, the USB connection port assembly being connected to the processor, the computer program, when executed by the processor, implementing the steps of the method for self-protecting the USB connection port assembly as described above.
In addition, to achieve the above object, the present invention may further provide a computer-readable storage medium, on which a program for self-protecting a USB connection port assembly is stored, wherein the program for self-protecting the USB connection port assembly, when executed by a processor, implements the steps of the method for self-protecting the USB connection port assembly as described above.
The invention provides a USB connection port assembly and a self-protection method and a host thereof, wherein a male connection port in the USB connection port assembly is connected in a manner of inserting into a female connection port to transmit data, when a detection element detects that the male connection port is pulled out from the female connection port, a control module judges whether the pulling-out condition is met currently, when the pulling-out condition is judged not to be met, a locking piece controls the male connection port and the female connection port to be in a connection state continuously so as to enable the data to be transmitted continuously between the female connection port and the male connection port, and controls the male connection port and the female connection port to be unlocked so as to enable the connection port and the female connection port to be pulled out, so that the self-protection of the USB connection port assembly is realized, and the safety and practicability of the USB connection port assembly are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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 invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a schematic diagram of a female connection port of a USB connection port assembly according to the present invention;
FIG. 2 is a schematic diagram of a male connection port of the USB port assembly of the present invention;
FIG. 3 is a schematic diagram of the internal structure of a female connection port of the USB connection port assembly according to the present invention;
FIG. 4 is a schematic diagram of the internal structure of a male connection port of the USB connection port assembly according to the present invention;
FIG. 5 is a flowchart illustrating a first embodiment of a method for self-protecting a USB connection port assembly according to the present invention;
FIG. 6 is a flow chart illustrating a second embodiment of a method for self-protecting a USB connection port assembly according to the present invention;
FIG. 7 is a flowchart illustrating a third embodiment of a method for self-protecting a USB connection port assembly according to the present invention.
The reference numbers illustrate:
reference numerals Name (R) Reference numerals Name (R)
10 Female connection port 20 Male connection port
11 Locking part 21 Fixing part
12 Side wall 30 Driving part
13 Bottom wall 40 Connecting pin
111 Clamping groove 50 First DTC pin
60 Second DTC pin
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
In order to solve the problem that the conventional USB system does not have a self-protection function, the present invention provides a USB connection port assembly, specifically referring to fig. 1 to 4, the USB connection port assembly provided by the present invention includes a female connection port 10 and a male connection port 20 adapted to the female connection port 10, and further includes a locking element, a control module and a detection element, wherein the male connection port 20 is connected by being inserted into the female connection port 10 to transmit data, when the detection element detects that the male connection port 20 is pulled out from the female connection port 10, the control module determines whether a pull-out condition is currently satisfied, and when the pull-out condition is determined not to be satisfied, the locking element controls the male connection port 20 and the female connection port 10 to be continuously connected.
The control module specifically determines whether the pulling-out condition is met currently: the control module judges whether data transmission is currently performed. When the control module judges that data transmission is currently carried out, judging that the pulling-out condition is not met; when the control module judges that no data transmission exists currently, the control module judges that a pulling-out condition is met, when the pulling-out condition is met, the locking piece controls the male connection port 20 and the female connection port 10 to be disconnected, and particularly, when the pulling-out condition is met, the male connection port 20 can be pulled out of the female connection port 10.
The USB system comprises a host and USB equipment, wherein the host comprises electronic equipment such as a computer, a sound box, a television and the like, the USB equipment comprises a USB data line, a USB flash disk and the like, in the USB system, a general female connection port 10 is positioned at the host end, a male connection port 20 is positioned at the USB equipment end, when data is transmitted, the male connection port 20 at the USB equipment end is inserted into the female connection port 10 of the host, and the male connection port 20 is connected with a connection pin 40 in the female connection port 10 to realize data transmission.
The locking piece is used for locking the male connection port 20 and the female connection port 10 when the male connection port 20 and the female connection port 10 are in data transmission, so as to prevent data loss, damage to a USB device or a file system in the USB device, or host computer crash and the like caused by manual pulling out of the male connection port 20; the locking piece is further used for unlocking the male connection port 20 and the female connection port 10 after the male connection port 20 and the female connection port 10 complete data transmission, so that the male connection port 20 can be pulled out conveniently. Preferably, the locking member includes a locking portion 11 provided at the female connection port 10, a fixing portion 21 provided at the male connection port 20, and a driving portion 30, and the driving portion 30 is used for controlling the locking portion 11 to be locked with or separated from the fixing portion 21.
Specifically, the locking member may have various structures for locking the male connection port 20 and the female connection port 10 and unlocking the male connection port 20 and the female connection port 10, for example, the locking member includes a pin shaft disposed at the female connection port 10, a motor for driving the pin shaft to extend and retract in a direction perpendicular to an insertion direction of the male connection port 20, and a pin hole disposed at the male connection port 20 and adapted to the pin shaft, that is, the pin shaft is the locking portion 11, the pin hole is the fixing portion 21, the motor is the driving portion 30, the pin shaft is inserted into the pin hole when the motor drives the pin shaft to move toward the male connection port 20 to lock the male connection port 20 and the female connection port 10, and the pin shaft is separated from the pin hole when the motor drives the pin shaft to move away from the male connection port 20, to unlock the male connection port 20 from the female connection port 10.
Or, the locking part 11 is a snap structure, such as a claw or a slot 111, for example, the claw is disposed at the inlet end of the female connection port 10, the fixing part 21 is a fixing slot disposed on the male connection port 20, and the driving part is connected to the claw and is used for driving the claw to clamp the fixing slot and driving the claw to loosen the fixing slot; or, draw-in groove 111 set up in female connection port 10's inside wall 12, fixed part 21 for set up in elastic component on the public connection port 20, the elastic component card is gone into lock in draw-in groove 111 public connection port 20 with female connection port 10, the driving piece set up in draw-in groove 111, at the locking piece unblock public connection port 20 with during female connection port 10, the driving piece drive the elastic component warp, so that the elastic component breaks away from draw-in groove 111. It is understood that the locking member may have other structures, which are not described in detail herein.
It is understood that the locking portion 11 may be provided on the male connection port 20 and the fixing portion 21 may be provided on the female connection port 10, and the specific structure is the same as that described above.
In the embodiment of the present invention, the male connection port 20 in the USB connection port assembly is connected by being inserted into the female connection port 10 to transmit data, when the detection element detects that the male connection port 20 is pulled out from the female connection port 10, the control module determines whether the pull-out condition is currently satisfied, and when the pull-out condition is determined to be not satisfied, the locking element controls the male connection port 20 and the female connection port 10 to be continuously connected, so that data is continuously transmitted between the female connection port 10 and the male connection port 20, and the locking element controls the male connection port 20 and the female connection port 10 to be unlocked, so that the male connection port 20 and the female connection port 10 can be pulled out, thereby protecting the USB connection port assembly and improving the safety and practicability of the USB connection port assembly.
In the embodiment of the present invention, it is preferable that the locking portion 11 is a snap structure, and specifically, the locking portion 11 is an engaging portion provided in the female connection port 10, and the engaging portion is engaged and locked with the fixing portion 21. Specifically, the engaging portion may be a claw, a slot 111, or other engaging fixing structures, which are not described herein in detail.
In this embodiment, the locking piece is locked through the buckle structure block, and the fixed simple structure of buckle, locking are firm, and easily realize.
Preferably, the engaging portion and the fixing portion 21 are both elastic structures, specifically, the female connection port 10 further includes a side wall 12 and a bottom wall 13 provided with a connection pin 40, the engaging portion is an elastic contact piece provided on the side wall 12, and the driving portion 30 controls the elastic contact piece to elastically deform in a direction departing from the male connection port 20 to form a locking groove 111; the fixing portion 21 is an elastic member fixed in the locking slot 111 in a clamping manner, and the elastic member deforms in a direction away from the elastic contact piece under the action of the elastic restoring force of the elastic contact piece, so that the elastic member is separated from the locking slot 111. The driving piece is a relay, the relay is connected with a processor of the host, and the relay is controlled to work by the processor.
The elastic contact piece is made of a material easy to deform, the elastic contact piece is connected with the relay in the direction departing from the public connection port 20, when the relay works, the elastic contact piece is pulled up, and the elastic contact piece elastically forms a clamping groove 111 in the direction departing from the public connection port 20 and is used for clamping and fixing the elastic piece; when the relay does not work, the force of the relay acting on the elastic contact piece disappears, the elastic contact piece elastically resets to form a sheet structure, the elastic restoring force of the elastic contact piece acts on the elastic piece, the elastic piece deforms in the direction away from the elastic contact piece under the action of the elastic restoring force, and the elastic piece is separated from the clamping groove 111, so that the male connection port 20 is unlocked with the female connection port 10, and the male connection port 20 can be pulled out.
In this embodiment, the relay may work after receiving a lock signal to lock the male connection port 20 and the female connection port 10, or may be in a working state all the time, so that when the male connection port 20 is inserted into the female connection port 10, the male connection port 20 and the female connection port 10 may be locked, and when receiving an unlock instruction, the relay stops working to allow the male connection port 20 to be pulled out of the female connection port 10.
Or, the engaging portion is an elastic engaging groove 111 disposed on the side wall 12, the driving portion 30 controls the elastic engaging groove 111 to elastically become a plane in a direction toward the male connection port 20, the fixing portion 21 is an elastic member engaged and fixed in the engaging groove 111, and the elastic member deforms in a direction away from the elastic engaging groove 111 under a pressure of the driving portion 30 controlling the elastic engaging groove 111 to deform, so that the elastic member is disengaged from the elastic engaging groove 111.
The locking piece in the embodiment has a simple structure, is controlled to be locked or unlocked through the relay, realizes the locking of the male connection port 20 and the female connection port 10 in a self-protection state, unlocks the male connection port 20 and the female connection port 10 in a normal safety state, and is easy to control.
Preferably, the elastic element is an elastic boss protruding from the side wall 12 of the male connection port 20 opposite to the elastic contact piece, and the elastic boss can deform toward the male connection port 20 under the action of pressure.
Specifically, public connection port 20 includes lateral wall 12 and is equipped with the interior diapire 13 of connecting pin 40, the elasticity boss set up in on lateral wall 12 and with the corresponding position of elastic contact, be equipped with the confession on lateral wall 12 the holding when elastic deformation takes place for the elasticity boss the storage tank of elasticity boss, the elasticity boss under the effect of pressure to when public connection port 20 orientation takes place to warp, the elasticity boss accept in the storage tank, so that public connection port 20's lateral wall 12 forms the plane. Preferably, the size of the elastic boss is gradually decreased from the outer side wall 12 to the protruding direction, the elastic boss has a slope towards the insertion direction of the male connection port 20, in the process that the male connection port 20 is inserted into the female connection port 10, the side wall 12 of the female connection port 10 exerts pressure on the slope, and the elastic boss is elastically deformed, so that the male connection port 20 is conveniently inserted into the female connection port 10.
In this embodiment, the elastic boss has a simple structure, and is easily elastically deformed under the elastic restoring force of the elastic contact piece, so that the locking structure in the embodiment of the present invention is easily implemented.
It should be understood that, in this embodiment, the two side walls 12 of the female connection port 10 are both provided with the elastic contact pieces, the two outer side walls 12 of the male connection port 20 are both provided with the elastic bosses, and the female connection port 10 and the male connection port 20 are respectively clamped into the two clamping grooves 111 through the two elastic bosses and locked.
It is understood that the locking member may be locked when the male connection port 20 is inserted into the female connection port 10, and the locking member unlocks the male connection port 20 from being connected to the female connection port 10 when no data transmission is detected. Preferably, the locking member may lock the male connection port 20 and the female connection port 10 after the male connection port 20 is inserted into the female connection port 10 and when data transmission between the male connection port 20 and the female connection port 10 is detected, until the data transmission is finished, the locking member is unlocked to allow the male connection port 20 and the female connection port 10 to be easily separated.
In this way, based on the USB connection port assembly described above, the USB connection port assembly further includes a detection element for detecting whether the male connection port 20 is pulled out of the female connection port 10, and specifically, whether the male connection port 20 is pulled out of the female connection port 10 can be determined by detecting whether a certain pin in the male connection port 20 and the female connection port 10 is disconnected.
Specifically, the detection element includes a first DTC pin 50 disposed in the female connection port 10 and a second DTC pin 60 disposed in the male connection port 20; the connection length of first DTC pin 50 with second DTC pin 60 is shorter than the connection length of connecting pin 40 in female connecting port 10 and public connecting port 20, wherein, when public connecting port 20 pulls out female connecting port 10, first DTC pin 50 with second DTC pin 60 disconnection earlier, when first DTC pin 50 with second DTC pin 60 disconnection, judge that it has detected public connecting port 20 and follow female connecting port 10 and pull out the event.
The connection pins 40 include a positive signal line pin, a negative signal line pin, and a power supply pin, the connection pins 40 are provided in the male connection port 20 and the female connection port 10, and the connection pins 40 correspond to each other one to one. When the male connection port 20 is inserted into the female connection port 10, the positive electrode signal line pin is connected, the negative electrode signal line pin is connected, and the power supply pin is connected, so that the male connection port 20 and the connection pin 40 of the female connection port 10 are connected to each other to form a data transmission channel. The first DTC pin 50 and the second DTC pin 60 are used as detection elements for detecting whether the male connection port 20 is separated from the female connection port 10, the length of the part of the first DTC pin 50 contacted with the second DTC pin 60 is shorter than that of the part of the connection pin 40 contacted with the first DTC pin 50 or the second DTC pin 60 is shorter than the connection pin 40, therefore, when the male connection port 20 is manually pulled out, the connection channel between the first DTC pin 50 and the second DTC pin 60 is firstly disconnected, and the data transmission channel is then disconnected. When the first DTC pin 50 and the second DTC pin 60 are disconnected, the level of the first DTC pin 50 or the second DTC pin 60 changes, and when the level of the first DTC pin 50 or the second DTC pin 60 changes, it is determined that the detection element detects that the male connection port 20 is pulled out from the female connection port 10, so that whether the male connection port 20 is pulled out manually or not can be detected by detecting the level change of the first DTC pin 50 or the second DTC pin 60.
When detecting that the level signal changes on first DTC pin 50, data transmission channel has not been broken yet, and USB connection port subassembly is still carrying out data transmission, starts relay work this moment, makes elastic contact forms draw-in groove 111, the elastic component card on the public connection port 20 is gone into fixed in the draw-in groove 111, makes public connection port 20 with female connection port 10 locks, public connection port 20 can't be extracted, and USB connection port subassembly can continue data transmission, can effectively prevent to artificially extract public connection port 20 in data transmission process for data loss, or damage data and USB equipment system file, lead to the host computer to crash even, realize USB connection port subassembly self preservation protect function.
In order to achieve the above object, the present invention further provides a method for self-protecting a USB connection port assembly, and referring to fig. 5, fig. 5 is a flowchart illustrating a first embodiment of the method for self-protecting a USB connection port assembly according to the present invention, where the USB connection port assembly includes a female connection port and a male connection port adapted to the female connection port, and the method for self-protecting a USB connection port assembly includes the following steps:
step S10, detecting that the male connection port is pulled out from the female connection port;
after the male connection port is inserted into the female connection port, the male connection port and the connection pin in the female connection port form a data transmission channel, and an operator can transmit the content on the equipment of the male connection port to the equipment of the female connection port through the data transmission channel or transmit the content on the equipment of the female connection port to the equipment of the female connection port. When the male connection port is detected to be pulled out of the female connection port, it is determined that the male connection port is pulled out of the female connection port.
Step S20, judging whether the pulling-out condition is satisfied currently;
and step S30, when the pull-out condition is not satisfied, controlling the male connection port and the female connection port to be continuously in a connection state.
The specific step of judging whether the pull-out condition is met currently is as follows:
judging whether data transmission is currently carried out or not;
when the judgment is yes, confirming that the pulling-out condition is not met;
when the judgment is no, the pull-out condition is satisfied. When the pull-out condition is met, the locking piece controls the male connection port to be disconnected with the female connection port, and particularly, when the pull-out condition is met, the male connection port can be pulled out of the female connection port.
The terminal can determine whether the USB connection port assembly is performing data transmission by detecting whether data transmission is performed in the data transmission channel. When the USB connecting port assembly is used for data transmission, the male connecting port of the USB connecting port assembly is locked in the female connecting port through the control locking piece, so that the male connecting port and the female connecting port cannot be separated, and the male connecting port and the female connecting port are continuously in a connecting state. The locking piece including set up in female connection port's sticking department and set up in male connection port's fixed part, male connection port inserts behind female connection port, when detecting USB connection port subassembly is carrying out data transmission, through the sticking department locking the fixed part is in order to lock male connection port with female connection port, so, realize when USB connection port subassembly is carrying out data transmission, the self preservation protects male connection port with female connection port does not separate.
In this embodiment, when the male connection port is detected to be unplugged from the female connection port; judging whether the pulling-out condition is met currently; when the pulling-out condition is not met, the male connection port and the female connection port are controlled to be continuously in a connection state, so that the male connection port and the female connection port continuously transmit data, the USB connection port assembly is locked when transmitting data, the self-protection of the USB connection port assembly is realized, and the safety and practicability of the USB connection port assembly are improved.
Further, referring to fig. 6, a second embodiment of the method for self-protecting a USB connection port assembly according to the present invention is based on the embodiment shown in fig. 5, wherein the step of detecting that the male connection port is pulled out from the female connection port includes:
step S11, detecting a level signal of a first DTC pin in the female connecting port;
when the first DTC pin of female connection port is connected with the second DTC pin of public connection port, first DTC pin is in the low level state at DTC, and when USB equipment pulled out a little, because first DTC pin is shorter with the second DTC pin, the first DTC pin breaks off with the connection of second DTC pin earlier, and first DTC pin and second DTC pin become the high level state, and the host computer can detect first DTC pin level and become the high level by the low level, so, the level signal of first DTC pin changes.
Step S12, when detecting a level signal change of the first DTC pin, determining that a pull-out event of the male connection port from the female connection port is detected. That is, the first DTC pin and the second DTC pin are disconnected, and the male connection port is to be pulled out of the female connection port.
And when an event that the male connection port is pulled out of the female connection port is detected, executing the step of judging whether the pulling-out condition is met currently. That is, when the pull-out event of the male connection port from the female connection port is detected (when the male connection port is pulled out a little, the first DTC pin and the second DTC pin are disconnected), whether data transmission is being performed between the male connection port and the female connection port is detected, and if the data transmission is performed, the male connection port and the female connection port are locked by the locking piece, the male connection port is prevented from being pulled out, and the self-protection of the USB connection port assembly is realized.
In addition, the step of detecting the event that the male connection port is pulled out of the female connection port further comprises sending a prompt when the level signal change of the first DTC pin is detected, so as to prompt that the USB connection port assembly works and does not need to be pulled out. It can be understood that the prompt can be displayed by popping up a display window on the display terminal and displaying work on the display window, namely the prompt of not pulling out; or the prompt can also play the warning voice for forbidding pulling out through the voice playing terminal.
In this embodiment, the control of the USB connection port assembly is simplified by detecting a level signal of a first DTC pin in the female connection port, and when a change in the level signal of the first DTC pin is detected, determining that the male connection port is separated from the female connection port, and determining whether to lock the male connection port and the female connection port according to whether data transmission is detected between the male connection port and the female connection port.
Referring to fig. 7, a third embodiment of the method for self-protecting a USB connection port assembly according to the present invention, based on all the embodiments described above, further includes, after the step of controlling the male connection port and the female connection port to be continuously connected:
step S40, detecting whether the data transmission of the USB connection port assembly is completed;
step S50, when detecting that the data transmission of the USB connection port assembly is completed, controlling the male connection port to unlock the female connection port.
When the data transmission of the USB connecting port assembly is detected to be completed, the locking piece is controlled to be unlocked, so that the male connecting port is unlocked from the female connecting port, and the male connecting port and the female connecting port can be pulled out and separated. Specifically, when the data transmission of the USB connection port assembly is completed, the relay is controlled to stop working, the elastic contact piece is not subjected to the acting force of the relay and is elastically restored, the elastic contact piece is restored to be in a sheet shape, the elastic boss on the male connection port is deformed towards the direction of the male connection port under the elastic restoring force of the elastic contact piece, the clamping groove formed by the elastic contact piece becomes a plane, the elastic boss is separated from the clamping groove, the male connection port is unlocked with the female connection port, and the male connection port is easily pulled out of the female connection port.
In addition, after the step of controlling the unlocking of the locking piece, the step of controlling the unlocking of the locking piece further comprises the step of sending a prompt that the locking piece can be safely pulled out, and the prompt that the current USB connecting port assembly is not in a working state can be used for safely pulling out the male connecting port. It can be understood that the prompt can be a prompt that a display window pops up on the display terminal and the display window is safely pulled out; or the prompt can also be played through a voice playing terminal to finish data transmission and unlocked voice prompt.
In this embodiment, when detecting that data transmission of the USB connection port assembly is completed, the locking member is controlled to unlock so as to enable the male connection port to be conveniently pulled out after data transmission is completed, and at this time, when the male connection port is manually and forcibly pulled out, data loss, or file damage or host crash cannot be caused.
Furthermore, the present invention may also provide a computer-readable storage medium, on which a program for self-protection of a USB connection port assembly is stored, which, when executed by a processor, implements the steps of the method for self-protection of a USB connection port assembly as described above.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (6)

1. The utility model provides a USB connection port subassembly, its characterized in that, USB connection port subassembly includes female connection port and with female connection port looks adaptation's public connection port, USB connection port subassembly still includes locking piece, control module and detecting element, wherein, public connection port connects through the mode of inserting female connection port in order to transmit data, detecting element detects public connection port and pulls out the incident from female connection port, control module judges whether satisfies the condition of pulling out at present, when judging unsatisfied pulling out the condition, the locking piece control public connection port with female connection port continues to be in the connected state, control module judges whether satisfies the condition of pulling out at present specifically: the control module judges whether data transmission is currently carried out or not, and judges that the pulling-out condition is not met when the data transmission is currently carried out;
the female connecting port further comprises a side wall, the locking piece comprises a driving part, an elastic contact piece arranged on the side wall of the female connecting port and an elastic piece arranged on the male connecting port, the driving part is used for controlling the elastic contact piece to elastically deform towards a direction deviating from the male connecting port to form a clamping groove, and the elastic piece is clamped in the clamping groove so that the male connecting port and the female connecting port are continuously in a connecting state; the elastic piece deforms in the direction back to the elastic contact piece under the action of the elastic restoring force of the elastic contact piece, so that the elastic piece is separated from the clamping groove.
2. The USB connection port assembly of claim 1, wherein the female connection port further comprises a bottom wall provided with connection pins.
3. The USB connection port assembly of claim 1, wherein the resilient member is a resilient projection protruding from a side wall of the male connection port opposite the resilient contact, the resilient projection being deformable under pressure towards the male connection port.
4. The USB connection port assembly of any one of claims 1 to 3, wherein the detection element comprises a first DTC pin disposed within the female connection port and a second DTC pin disposed within the male connection port; first DTC pin with the connection length of second DTC pin is shorter than female connection port and the interior connection pin's of public connection port connection length, wherein, when public connection port extracts female connection port, first DTC pin with the disconnection is first disconnected to the second DTC pin, first DTC pin with during second DTC pin disconnection, it has been judged to have detected public connection port is followed female connection port extraction event.
5. A method of self-protecting a USB connection port assembly, the method being applied to the USB connection port assembly of any one of claims 1 to 4, the method comprising the steps of:
detecting that the male connection port is pulled out of the female connection port;
judging whether the pulling-out condition is met currently;
when the pull-out condition is not met, controlling the male connection port and the female connection port to be in a connection state continuously;
the specific step of judging whether the pull-out condition is met currently is as follows:
judging whether data transmission is currently carried out or not;
when the judgment is yes, confirming that the pulling-out condition is not met;
when the judgment is no, the pull-out condition is satisfied.
6. Host, characterized in that it comprises a memory, a processor, a computer program stored on said memory and executable on said processor, and a USB connection port assembly according to any of claims 1 to 4, said USB connection port assembly being connected to said processor, said computer program, when executed by said processor, implementing the steps of the method of self-protection of a USB connection port assembly according to claim 5.
CN201711438467.4A 2017-12-26 2017-12-26 USB connection port assembly and self-protection method thereof and host Active CN108173081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711438467.4A CN108173081B (en) 2017-12-26 2017-12-26 USB connection port assembly and self-protection method thereof and host

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711438467.4A CN108173081B (en) 2017-12-26 2017-12-26 USB connection port assembly and self-protection method thereof and host

Publications (2)

Publication Number Publication Date
CN108173081A CN108173081A (en) 2018-06-15
CN108173081B true CN108173081B (en) 2020-10-20

Family

ID=62521526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711438467.4A Active CN108173081B (en) 2017-12-26 2017-12-26 USB connection port assembly and self-protection method thereof and host

Country Status (1)

Country Link
CN (1) CN108173081B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6215119B2 (en) * 2014-04-11 2017-10-18 日本航空電子工業株式会社 USB receptacle
CN105589511A (en) * 2014-10-20 2016-05-18 黑龙江傲立辅龙科技开发有限公司 Power-off switch self-locking device for computer
CN204835128U (en) * 2015-08-19 2015-12-02 上海晴格电子有限公司 MicroSD card selects a cassette connector with nano SIM card no. 2
CN206757633U (en) * 2017-05-26 2017-12-15 宝鸡文理学院 A kind of monitoring device of USB interface of computer
CN107370199A (en) * 2017-06-26 2017-11-21 上海与德科技有限公司 USB male joint, female and power supply, charging terminal and charging connection control method

Also Published As

Publication number Publication date
CN108173081A (en) 2018-06-15

Similar Documents

Publication Publication Date Title
US8708719B2 (en) Terminal fitting and connector
US8033575B2 (en) Quick connector
US20180105055A1 (en) Charging control method and device and charging system for electric vehicle
JP6548038B2 (en) connector
US8282411B2 (en) Connector position assurance lock
EP2355255B1 (en) Terminal fitting and connector provided therewith
JPH09330757A (en) Connector
CN108173081B (en) USB connection port assembly and self-protection method thereof and host
JPH05121116A (en) Connector
US20090096132A1 (en) Container box, electric connection box provided with container box and method of molding container box
JP3891001B2 (en) connector
CN206650242U (en) Electric connector
JP4924901B2 (en) Lock structure and connector
EP3716413A1 (en) Connector
JP2002033160A (en) Connector device
WO2016185957A1 (en) In-vehicle communication system and in-vehicle control devices
US6935905B2 (en) Connector, a connector assembly, a jig, and a method for withdrawing a terminal in a connector
CN216413399U (en) Crystal head with lock structure
WO2023153258A1 (en) Connector
CN219874273U (en) USB adapter with self-locking function
JP3543621B2 (en) connector
JP7408703B2 (en) Charging control system
US20230142655A1 (en) Detachable plug
CN220190004U (en) Wire end connector
CN109586094B (en) Automobile wire harness plug-in

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