Summary of the invention
The embodiment of the present application provides a kind of mobile terminal USB plug method and plug-in system, it is possible to solve the problems referred to above.
The embodiment of the present application provides a kind of mobile terminal USB plug method, including step:
S1: fixed cellular terminal;
S2: detect the current location of the USB port of described mobile terminal;
S3: according to described current location, controls USB socket the most right with described USB port;
S4: control described USB socket and insert described USB port;
S5: control described USB socket and depart from described USB port.
Preferably, described step S3 includes step:
S31: judge whether historical position;
S32: when not history of existence position, controls described USB socket the most right with described USB port, and by described currently
Position is stored as historical position, enters step S4;
S33: when history of existence position, it is judged that described current location is the most consistent with described historical position;
S34: time inconsistent with described historical position when described current location, adjust described USB according to described current location
The position of socket, controls described USB socket the most right with described USB port, and described current location is stored as historical position, enter
Enter described step S4.
Preferably, the described position according to the described USB socket of described current location adjustment includes:
According to described current location in the first direction, second direction move described USB socket;
Wherein, described first direction, described second direction be: is positioned at the plane at the end face place of described USB socket, and
Mutually orthogonal both direction.
Preferably, further comprise the steps of: after described step S31
S33: when described current location is consistent with described historical position, enter described step S4.
Preferably, further comprise the steps of: before described step S3
S0: initialize the position of described USB socket.
The application also provides for a kind of mobile terminal USB plug-in system, including:
Fixture, is used for clamping mobile terminal;
Testing agency, for detecting the current location of the USB port of described mobile terminal;
Controlling organization, for controlling USB socket and described USB port, described USB socket and institute according to described current location
State insertion and the disengaging of USB port;
Described testing agency is connected with described controlling organization.
Preferably, described controlling organization includes:
Memorizer, is used for storing described current location, and as historical position;
Diagnosis apparatus, is used for judging that described current location is the most consistent with described historical position;
Controller, for when described current location and described historical position are inconsistent, adjusting according to described current location
The position of described USB socket, controls described USB socket the most right with described USB port;
Described testing agency electrically connects with described diagnosis apparatus, described diagnosis apparatus respectively with described memorizer, described controller
Electrical connection.
Preferably, described controller includes:
First actuator, for moving along the first direction described USB socket according to described current location;
Second actuator, for moving described USB socket in a second direction according to described current location;
Described first direction, described second direction be: is positioned at the plane at the end face place of described USB socket, and mutually
Orthogonal both direction.
Preferably, in described first actuator and described second actuator, at least one is motor.
Preferably, described testing agency includes vision-based detection mechanism.
The technical scheme that the embodiment of the present application provides can reach following beneficial effect:
USB provided herein plugs the current location of USB port in method, first detection fixture, then according to working as
Front position adjusts USB socket, makes USB socket the most right with USB port, the most again USB socket is inserted USB port.This mode,
Owing to adding detection, it is possible to the adjustment position of clear and definite USB socket, thus save adjusting machine time, improve work effect
Rate.
It should be appreciated that it is only exemplary that above general description and details hereinafter describe, can not be limited this
Application.
Detailed description of the invention
Below by specific embodiment and combine accompanying drawing the application is described in further detail.Described in literary composition
"front", "rear", "left", "right", " on ", D score is all with the laying state in accompanying drawing as reference.
As it is shown in figure 1, the embodiment of the present application provides a kind of mobile terminal USB plug method, move in test process
Dynamic terminal such as the plug of the USB port on mobile phone Yu USB socket, in order to the signal communication in test, including step:
S1: fixed cellular terminal, i.e. USB port are fixed, and it can be fixed by the mode such as fixture or bonded adhesives;
S2: the current location of the USB port of detection mobile terminal, generally, the plane at the end face place of USB port is built-in
Vertical two-dimensional coordinate system, to obtain the coordinate of USB port;
S3: according to current location, controls USB socket and USB port, i.e. according to the coordinate of USB port, controls USB socket
Make it the most right with USB port;
S4: control USB socket and insert USB port, i.e. along the plane at the end face place being perpendicular to USB socket and close
The direction mobile USB socket of USB port, so that in USB socket and USB port plug-in mounting;
Then move the test of terminal, after having tested, enter step S5,
S5: control USB socket and depart from USB port, i.e. along the plane at the end face place being perpendicular to USB socket, and the back of the body
From the direction mobile USB socket of USB port, so that USB socket separates with USB port, so, complete USB socket with
The plug successively of USB port, plug operation next time, can repeat step S1~S5.
The USB of above-described embodiment plugs the current location of USB port in method, first detection fixture, then according to current
Position adjustment USB socket, makes USB socket the most right with USB port, the most again USB socket is inserted USB port.This mode, by
In adding detection, it is possible to the adjustment position of clear and definite USB socket, thus save adjusting machine time, improve work efficiency.
As in figure 2 it is shown, step S3 may further include step:
S31: judge whether historical position;
S32: when not history of existence position, controls USB socket the most right with USB port, and is stored as going through by current location
History position, enters step S4;
S33: when history of existence position, it is judged that current location is the most consistent with historical position;
S34: time inconsistent with historical position when current location, adjust the position of USB socket according to current location, control
USB socket is the most right with the described USB port of mobile terminal, generally, USB socket edge is perpendicular to the end face place of USB socket
The direction of plane, projects the plane at the end face place to USB socket, obtains the offset distance of itself and current location, then adjust
This offset distance of USB socket, so that USB socket is the most right with USB port;And current location is stored as historical position, enter
Step S4.
By judging whether the whether consistent, in history of existence position of historical position and historical position and current location
When putting, having carried out USB socket and the plug of USB port at least one times, now, current location is inconsistent with historical position
Time, adjust the position of USB socket, so can reduce the action frequency that USB socket adjusts, improve work efficiency.
Above-mentioned two coordinate systems in the plane at the end face place of USB port, can be rectangular coordinate system, it is also possible to for
Polar coordinate system, preferably rectangular coordinate system, to facilitate the control of USB socket.Specifically, two sides that rectangular coordinate system is mutually orthogonal
To, respectively first direction, second direction, now, the position adjusting USB socket according to current location includes: according to present bit
Put in the first direction, second direction mobile USB socket.
In order to simplify the control program of USB socket further, further comprise the steps of: after step S31
S33: when current location is consistent with historical position, enters step S4.
Above-mentioned steps S3 can also the most first adjust USB socket during each USB socket plug-in mounting with USB port
Position, the most all starts the drive mechanism of USB socket, only when current location is consistent with historical position, and the displacement of USB socket
It is zero, controls USB socket the most again and insert USB port.
Adjust USB socket and USB port the most rapidly for the ease of controlling program, before step S3, also include step
Rapid:
S0: initialize the position of USB socket, as time initial, the position of USB socket is set to rectangular coordinate system or pole
The zero point of coordinate system, it is of course also possible to be set to other coordinate position.
Wherein, before step S0 can be located at step S1, it is also possible to be located between step S1 and step S2, or step S2
And between step S3.
The application also provides for a kind of mobile terminal USB plug-in system, as it is shown on figure 3, include:
Fixture (not shown), is used for clamping mobile terminal;
Testing agency 2, for detecting the current location of the USB port of described mobile terminal;
Controlling organization 3, for controlling the insertion of USB socket and USB port, USB socket and USB port according to current location
And depart from;
Wherein, testing agency 2 electrically connects with controlling organization 3, to facilitate signal communication.
This USB plug-in system, it is possible to use above-mentioned plug method, first passes through testing agency 2 and detects the position of USB port
Put, then according to the position adjustment USB socket of USB port, make USB socket the most right with USB port, the most again USB socket is inserted
Enter USB port, adjust engine efficiency to improve.
As shown in Figure 4, controlling organization 3 specifically comprises the steps that
Memorizer 31, is used for storing current location, and as historical position;
Diagnosis apparatus 32, is used for judging that current location is the most consistent with historical position;
Controller 33, for when current location and historical position are inconsistent, adjusting the position of USB socket according to current location
Put, control USB socket the most right with the USB port of mobile terminal
Now, testing agency 2 electrically connects with diagnosis apparatus 32, it is judged that device 32 electrically connects with memorizer 31, controller 33 respectively.
By memorizer 31, diagnosis apparatus 32 and controller 33, it is possible to use preceding method, improve further and adjust engine efficiency.
Further, controller 33 includes:
First actuator, for moving along the first direction USB socket according to current location;
Second actuator, for according to current location mobile USB socket in a second direction;
That is, by two actuators respectively along different both direction mobile USB sockets, with preferably make USB socket with
USB port is the most right.
Specifically, the second actuator includes the second movable part;First actuator includes the first fixed part, the first fixed part peace
Being loaded on the second movable part, the i.e. first actuator can move along second direction under the drive of the second actuator, whole to simplify
Individual mobile terminal USB plug-in system.
Controlling organization 3 also includes that the 3rd actuator, the 3rd actuator are used for driving USB socket to move along third direction, the
Three directions are perpendicular to the plane at the end face place of USB socket.3rd actuator can with the first actuator, the second actuator independently
Arranging, it is also possible to being associated with the first actuator, the second actuator, the i.e. the 3rd actuator includes the 3rd movable part, second drives
Part includes that the second fixed part, the second fixed part are installed on the 3rd movable part, and now the first fixed part can be connected to the second activity
Portion, it is also possible to the first actuator and the second actuator are independently arranged, the preferably first fixed part is connected to the second movable part, and such
One actuator, the second actuator and the 3rd actuator form three-dimensional mobile platform, it is simple to mobile terminal USB plug-in system control
System.
First actuator, the second actuator and the 3rd actuator three can be arranged the most alone, push USB respectively and insert
Seat, it is also possible in both the most therein, the fixed part of one is connected to the movable part of another one.
First actuator, the second actuator and the 3rd actuator three can be manual actuation part by oneself, as flexible
Bar, it is also possible to be motor for motor or hydraulic cylinder etc., preferably three, to facilitate the operation of whole control system, the most also
Can be with one therein or both are as motor.
In above-described embodiment, testing agency 2 can be to include position sensor, it is also possible to includes linear transducer or regards
Feel testing agency, or testing agency 2 include simultaneously in position sensor, linear transducer, vision sensor both or
Three, it is also possible to include that other detects device, preferably include vision-based detection mechanism, to facilitate operation.
Wherein, vision-based detection mechanism generally includes photographic head, such as simulation photographic head or digital camera.
The foregoing is only the preferred embodiment of the application, be not limited to the application, for the skill of this area
For art personnel, the application can have various modifications and variations.All within spirit herein and principle, that is made any repaiies
Change, equivalent, improvement etc., within should be included in the protection domain of the application.