Background technique
In recent years, mobile terminal has become the indispensable communication terminal of people's life, such as smart phone, plate electricity
Brain.Mobile terminal is capable of providing multiple functions to meet the needs of people.Wherein, mobile terminal can store electronic document, packet
It includes, but is not limited to, text, audio and video file.Mobile terminal can obtain in several ways and store electronic document, packet
Include connection wireless network and directly from network source obtain, the network source can be connection on the computer network can provide text
The equipment of shelves, including server or another mobile device.The wireless network includes WLAN, mobile data network, example
Such as 3G or 4G, and the following 5G network among discussion, as long as based on identical or compatible network protocol transmission
Data.
Mobile terminal can also be connected on personal computer (or other calculate equipment) by cable, with from individual calculus
Machine obtains electronic document.Currently, common cable is USB cable, both ends are equipped with connector, and wherein one end is connected to computer, and
The other end may be connected to mobile terminal.
The connector of USB can have diversified forms, including A, B and C and various deformation.Most common USB cable
On, one end uses micro USB joint to connect mobile terminal, and the other end is calculated using standard A type connector to connect
The port of USB port or dedicated charger on machine.Also there is the USB cable using other class form connectors at present, for example, using
Micro USB connection mobile terminal, or be all made of Type C using Type C connector connection mobile terminal or both ends and connect
Head.Fig. 1 shows the example of an existing USB cable.
One USB cable has multiple conducting wires, including two power lines to transmit electric power and two to transmit number
According to data line.In general, being directly connected between two connectors by conducting wire.It is connect it is, the both ends of power line connect two
Corresponding stitch, equally, the both ends of data line are separately connected the corresponding stitch of two connectors.
When mobile terminal is connected to dedicated charger, although and using standard USB cable, in charger
End, two data lines are shorted, and thus only have power transmission, i.e. charge function.And when mobile terminal is connected to computer
When, two data lines are switched on, this is mobile terminal and computer can carry out power transmission simultaneously and data are transmitted, that is, are charged
While can from computer access mobile terminal memory.
In general, mobile terminal when being connected to computer, can all charge.Some mobile terminals can default turn-on data
Transmission, and some then need user manually opened.For example, be that mobile terminal will appear selection interface when being connected to computer,
User, which can choose, only to charge, or turn-on data is transmitted simultaneously.
Summary of the invention
The object of the present invention is to provide a kind of transmission cables, and the user of mobile terminal can be made to remove selection from, and only charging is gone back
It is the step of starting data transmission.
According to one aspect of the invention, a kind of transmission cable, including at least one power line and at least one data line, also
Including angle induction device, the angle induction device includes the obliquity sensor and computing unit being electrically connected to each other, wherein institute
It states computing unit to be electrically connected with the data line, wherein the obliquity sensor is configured to induction first position and the second position
Inclination angle, and generate corresponding first electric signal and the second electric signal and pass to the computing unit, the computing unit
It is configured to obtain the rotation angle of the transmission cable according to first electric signal and the second electric signal, and according to described first
Electric signal, second electric signal and the rotation angle generate respectively and transmission first operates telecommunications on the data line
Number, second operation electric signal and third operate electric signal.
Wherein, the transmission cable further comprises being located at first connector and second at the transmission cable both ends to connect
Head, the computing unit are configured to the first operation electric signal, the second operation electric signal or third operation electricity
Signal is transferred to first connector or second connector.
Wherein, the first operation electric signal includes the operation mode information for only carrying out charging operations.Second operation
Electric signal includes the operation mode information for carrying out data transmission operation.The third operation electric signal includes carrying out data transmission grasping
The operation mode information of work.
Wherein, the angle induction device is electrically connected with the power line.
Wherein, the base position of the obliquity sensor is consistent with plane where the contact of the first or second connector.
Further, the obliquity sensor is fixedly connected with the first or second connector.
According to another aspect of the present invention, a kind of mobile terminal, with one for accommodating the port of cable connector, feature
It is, which includes: operation electric signal receiving unit, is connect with the port, and be configured to obtain from the port
Extract operation pattern information;Mode selecting unit is configured to that the hardware configuration of the port is arranged according to the operation mode information,
To be only charging, simultaneously charging and the operating status that data are transmitted or only data are transmitted by the mobile terminal configuration.
The technical effects of the invention are that mobile terminal can be automatically determined according to the position of transmission cable or rotation angle
It is charged or is carried out data transmission, provided and use upper convenience.
Specific embodiment
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, Detailed description of the invention will be compareed below
A specific embodiment of the invention.It should be evident that drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing, and obtain other embodiments.
Fig. 2 shows the rough schematic views of one embodiment of cable according to the invention.In the embodiment illustrated in figure 2,
Transmission cable 100 has one group of conducting wire arranged side by side, can be made of conductive material, such as metal, especially copper, however this field
Technical staff can understand, these conducting wires can also be made of other conductive materials.
These conducting wires include the power line 110 for being used for transmission electric power and the data line 120 for being used for transmission data.For simplification
And convenient for description, although a line is used only all to indicate in power line and data line in Fig. 2, those skilled in the art
It can understand, power line can be made of positive electricity crimping and ground line and data line or have positive and negative two data line groups
At so as to verify the electric signal that data line is transmitted by differential signal.Therefore, the shown structure in Fig. 2 is only
To be illustrative, limitation of the present invention can not be interpreted as.
The first connector 130 and the second connector 140 are respectively equipped at the both ends of the transmission cable 100.First connector and
Second connector is respectively equipped with multiple contacts or stitch, the transmission cable 100 to be connected in other equipment, sets as calculated
It is standby, such as computer, tablet computer, cell phone etc., or it is connected to the port of charger.
The contact or stitch of first connector 130 or the second connector 140 respectively correspond and connect the power line sum number
According to line.
For example, in one example, the power line includes positive electricity crimping and ground line and the data line includes just
Data line and negative data line respectively correspond and connect the positive electricity crimping, ground connection then connector can have four contacts or stitch
Line, correction data line and negative data line.
In another example, the conducting wire also includes two power lines and two data lines, i.e. positive electricity crimping and ground connection
Line and positive and negative data line, the conducting wire further includes an identification line, to identify connected equipment.In such case
Under, connector can have corresponding five contacts or stitch.
First connector 130 and the second connector 140 can have contact or the stitch of identical quantity, it is possible to have no
Contact or stitch with data volume.Such as first connector 130 can have 4 contacts, and second connector 140 can be with
With 5 contacts.In the case where the quantity of the contact of two connectors is different, the quantity of the conducting wire of usual cable and less touching
Point quantity is corresponding, and the contact having more in another connector can be usually grounded.For example, in one example, first connector
130 be micro USB joint, and second connector is A type USB joint, then the identification line ground connection of first connector 130.
First connector 130 and second connector 140 can be the connector of identical type, be also possible to inhomogeneity
The connector of type.For example, foregoing, first connector 130 can be micro USB joint, and second connector can be with
It is A type USB joint.Alternatively, in another example, first connector 130 and second connector 140 are micro USB joint, or
Person's Type C connector.
It is known in those skilled in the art that how different types of connector connect with conducting wire.
In addition, the connector and conducting wire are wrapped up by rubber and/or plastic material and are formed as whole, consequently facilitating use with
And bear external force.
With continued reference to Fig. 2, transmission cable 100 according to the invention further includes angle induction device 150, including is electrically connected each other
The obliquity sensor 152 and computing unit 154 connect.Wherein, the obliquity sensor 152 and the computing unit 154 can be with structures
Make for structure it is independent of one another, also it is so structured that being integrated in structure.
The computing unit 154 is electrically connected with the data line 120, so as to by the data line 120 by telecommunications
Number it is transferred to first connector 130 and/or second connector 140.
The obliquity sensor 152 is configured to generate the electric signal of respective sensor current inclination and is transferred to the calculating
Unit 154.
The angle induction device 150 is also connect with the power line, and is configured to that electricity can be obtained from the power line
Power is so as to detect inclination angle and according to inclination angle progress response computation.Alternatively, in another embodiment, the angle induction device
150 have power supply unit, such as battery, especially chargeable button cell.
The angle induction device 150 is wrapped in plastic material and/or elasticity together with the conducting wire and the connector
In material, such as rubber or plastics.
In one embodiment, when the obliquity sensor 152 is in first position, by the corresponding first position
First electric signal transmission is to the computing unit 154.When the obliquity sensor 152 is in the second position, it is somebody's turn to do corresponding
Second electric signal transmission of the second position is to the computing unit 154.The computing unit 154 according to first electric signal and
Second electric signal is it can be concluded that differential seat angle between the first position and the second position.
The computing unit 154 is further configured to determine obliquity sensor 152 in first position according to the differential seat angle
Rotation angle between the second position.Also, the computing unit 154 is configured to according to the first position, described second
Position and the rotation angle generate the first operation electric signal, the second operation electric signal and third operation electric signal respectively.
In one embodiment, the base position of obliquity sensor 152 can be fixed as consistent with the connector.For example,
The contact of connector or stitch are usually placed in a plane so that the global shape of connector be it is flat, such as Fig. 1 institute
Show.In this case, the base position of obliquity sensor 152 contact for referring to the base position and connector consistent with connector
Or plane locating for stitch is consistent, that is, the more flat direction with connector is consistent.In this way, obliquity sensor 152 is monitored
Inclination angle it is just consistent with the inclination angle of connector.For example, i.e. plane locating for contact or stitch is inclined when connector is when in a horizontal state
Angle is zero, and the base position of obliquity sensor 152 is also at horizontality at this time, and the inclination angle monitored is zero.
Alternatively, in another embodiment, the base position of obliquity sensor 152 can also be inconsistent with connector.In this way,
When connector is in horizontality, obliquity sensor 152 is due to being in non-referenced position (namely nonzero digit), then inclination angle senses
Device 152 will monitor an inclination angle, so that the output valve of obliquity sensor and the actual inclination angle of connector there is a difference.
The difference can select any suitable value in the range of 0-180 degree.
Since transmission cable 100 is flexible and can be distorted, it is thus possible to will appear obliquity sensor 152 and monitor
Inclination angle and connector inclination angle it is inconsistent.As a result, in one embodiment, the obliquity sensor and the computing unit and its
In a connector be fixedly connected, such as the first connector or the second connector, it is possible thereby to obtain and the consistent dip angle signal of the connector.
Further, the rotation angle of obliquity sensor and the rotation angle of connector are consistent.
As previously mentioned, the object of the present invention is to provide a kind of schemes for enabling to user to remove selection operation mode from.
To this end it is possible to use, above-mentioned transmission cable 100 is for connecting such as computer and mobile mobile terminal.
When the transmission cable 100 connects computer and mobile terminal, the obliquity sensor 152 and computing unit 154
Operation power is obtained by power line, or as previously described by the power supply unit powered operation of itself, such as battery.This field
Technical staff is it is understood that if using rechargeable battery, such as chargeable button cell, when the transmission cable 100 connects
When being connected to power supply, such as the USB interface of computer, it can charge to the rechargeable battery.
In the embodiment that the angle induction device 150 itself has power supply unit, the obliquity sensor 152 and meter
Calculating unit 154 can be configured to not run when no connection computer and/or mobile terminal, to save electric power.
When connecting computer and mobile terminal, obliquity sensor 152 obtains current location (the i.e. described first position)
Inclination angle, and generate corresponding first electric signal and be sent to computing unit 154.In this case, computing unit generation pair
The the first operation electric signal answered, and mobile terminal is sent to by the data line 120.The first operation electric signal includes only
Carry out the operation mode information of charging operations.
Only with computer progress power transmission and without number after first operation electric signal described in the acquisition for mobile terminal
According to transmission.
When user's mobile terminal is to another location, obliquity sensor 152 obtains the inclination angle of the second position, and generates
Corresponding second electric signal and it is sent to computing unit 154.
In one embodiment, when the corresponding inclination angle of the second electric signal is in predetermined range, the computing unit 154
Generate the second operation electric signal, that is, and mobile terminal is sent to by the data line 120.The second operation electric signal packet
Include the operation mode information for carrying out data transmission operation.Described in the acquisition for mobile terminal second operation electric signal after with computer
Carry out data transmission operating.Depending on the configuration of mobile terminal, in one example, electric power and data transmission behaviour can be carried out simultaneously
Make, and in another example, only carry out data transmission operation and is operated without power transmission.
In another embodiment, which calculates the inclination angle according to first and second electric signal and passes
The rotation angle of sensor 152, by it, as previously described, the rotation angle of corresponding joints, such as the connector of connection mobile terminal,
Because the angle of the connector of usually connection computer is constant.When dry rotation angle is greater than preset threshold value, the computing unit 154
Generate the second operation electric signal.Similarly, which includes the operation mode information for carrying out data manipulation.Institute
Carry out data transmission operating with computer after stating the second operation electric signal described in acquisition for mobile terminal.Similarly, movement is depended on
The configuration of terminal can carry out electric power and data transfer operation in one example simultaneously, and in another example, only carry out
Data transfer operation and without power transmission operate.
As a result, as shown in figure 3, the present invention also provides a kind of mobile terminal 200, including operation electric signal receiving unit 210
With mode selecting unit 220.The operation electric signal receiving unit 210 is configured to receive the operation from the transmission cable 110
Operation mode information therein is simultaneously sent to the mode selecting unit 220 by electric signal.The mode selecting unit is configured to
Mobile terminal 200 is configured according to the operation mode information.
For mobile terminal 200, with port, such as meet the port of USB standard, such as micro USB, to hold
Receive the connector of cable, first or second connector as described in this specification.In general, port has peripheral circuit to turn electric signal
Become computer-readable information.The operating system of mobile terminal provides software interface can to obtain the computer of port circuit offer
Read information.The operation electric signal receiving unit 210 can obtain the operation electricity of connected transmission cable 100 from port as a result,
The corresponding computer-readable information of signal, and obtain operation mode information wherein included.
In addition, the operating system of mobile terminal provides software interface also to operate the operation of the various hardware of the mobile terminal.
Therefore, which can be arranged port by the software interface of operating system according to the operation mode information
Hardware configuration information, so as to only charge, or simultaneously carry out charging and data transmission, or only carry out data biography
It is defeated.
It should be noted that above-described embodiment can be freely combined as needed.The above is only of the invention preferred
Embodiment, it is noted that for those skilled in the art, in the premise for not departing from the principle of the invention
Under, several improvements and modifications can also be made, these modifications and embellishments should also be considered as the scope of protection of the present invention.