CN103151658B - Data connecting line, for the control method of data connecting line and device - Google Patents

Data connecting line, for the control method of data connecting line and device Download PDF

Info

Publication number
CN103151658B
CN103151658B CN201310057389.9A CN201310057389A CN103151658B CN 103151658 B CN103151658 B CN 103151658B CN 201310057389 A CN201310057389 A CN 201310057389A CN 103151658 B CN103151658 B CN 103151658B
Authority
CN
China
Prior art keywords
data
switch
charging
wire
conducting state
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
CN201310057389.9A
Other languages
Chinese (zh)
Other versions
CN103151658A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201310057389.9A priority Critical patent/CN103151658B/en
Publication of CN103151658A publication Critical patent/CN103151658A/en
Application granted granted Critical
Publication of CN103151658B publication Critical patent/CN103151658B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a kind of data connecting line, for the control method of data connecting line and device, belong to electronic technology field.Described data connecting line comprises: the first USB plug, the second USB plug, for the wire group that is electrically connected the first USB plug and the second USB plug and the switch block be arranged in wire group; Switch block can in the first conducting state, switch between the second conducting state and the 3rd conducting state; When switch block is in the first conducting state, the wire conducting for charging in wire group; When switch block is in the second conducting state, for the wire conducting of transfer of data in wire group; When switch block is in the 3rd conducting state, for charging and the equal conducting of wire of transfer of data in wire group; Reach and only have when switch block is in the first conducting state and the 3rd conducting state, for the wire that charges just conducting thus the effect of charging for intelligent terminal in wire group.

Description

Data connecting line, for the control method of data connecting line and device
Technical field
The present invention relates to electronic technology field, particularly a kind of data connecting line, for the control method of data connecting line and device.
Background technology
Data connecting line is a kind of accessory the most common in the intelligent terminal of such as mobile phone, MP3, MP4 or digital camera and so on.Intelligent terminal can be connected with computer by data connecting line by people, thus realizes the charging of intelligent terminal and the operation of transfer of data.
Please refer to Fig. 1, it illustrates a kind of USB(Universal Serial BUS common at present, USB) structural representation of data wire.This USB data line comprises the first USB plug 110, second USB plug 120 and the wire group 130 for being connected two plugs.Second USB plug 120 can be Mini USB plug or Micro USB plug.Wherein, the first USB plug 110 and the second USB plug 120 all include four conducting terminals: power supply terminal VCC(Volt Current Condenser, power supply), earth terminal GND, the first data terminal D+ and the second data terminal D-.Corresponding conducting terminal in two plugs is connected with the second data conductor respectively by the power lead in wire group, earth lead, the first data conductor.In use, the first USB plug 010 can be connected with the USB on computer, and the second USB plug 020 can be connected with the micro USB socket on intelligent terminal.
At least there is following problem in such scheme: owing to working as user to realize the transfer of data between intelligent terminal and computer, and when intelligent terminal being connected with computer by data wire, what computer also can be given tacit consent to is charged to intelligent terminal by power lead and ground wire, and the battery of existing intelligent terminal is mostly lithium battery, the charging times of lithium battery is also useful life is limited, so this just causes when intelligent terminal only needs transfer of data not need to charge, the scheme that background technology provides still can consume certain charging times, reduce the useful life of intelligent terminal battery.
Summary of the invention
In order to solve in background technology when user needs transfer of data and is connected with computer by intelligent terminal, computer also repeatedly can charge to intelligent terminal, thus reduce the problem of the battery of intelligent terminal, embodiments provide a kind of data connecting line, for the control method of data connecting line and device.Described technical scheme is as follows:
First aspect, provides a kind of data connecting line, and described data connecting line, comprising:
First USB plug, the second USB plug, for the wire group that is electrically connected described first USB plug and described second USB plug and the switch block be arranged in described wire group;
Described switch block can in the first conducting state, switch between the second conducting state and the 3rd conducting state;
When described switch block is in the first conducting state, the wire conducting for charging in described wire group;
When described switch block is in the second conducting state, for the wire conducting of transfer of data in described wire group;
When described switch block is in the 3rd conducting state, for charging and the equal conducting of wire of transfer of data in described wire group.
Preferably, described data connecting line, also comprises: the control assembly be electrical connected with described wire group and described switch block;
Described control assembly, for according to the signal determination operation type in described wire group, described action type comprises charging operations, data transfer operation and charging and data transfer operation simultaneously;
Described control assembly, if when the action type also for determining is charging operations, then controls described switch block and is in the first conducting state;
If the action type determined is data transfer operation, then controls described switch block and be in the second conducting state;
If the action type determined for charging and data transfer operation simultaneously, then controls described switch block and is in the 3rd conducting state.
Preferably, the described wire for charging, comprises power lead and earth lead; The described wire for transfer of data, comprises the first data conductor and the second data conductor;
Described control assembly, for according to the voltage on described power lead and/or current detecting to current be charged as effectively charge time, determine that described action type is charging operations;
Described control assembly, time also for there is data-signal in described first data conductor and/or described second data conductor, determines that described action type is data transfer operation;
Described control assembly, also for being charged as effective charging according to the voltage on described power lead and/or current detecting to current, and when there is data-signal in described first data conductor and/or described second data conductor, determine that described action type is for charging and data transfer operation simultaneously.
Preferably, described switch block, comprises and is arranged at described the first switch on the wire charged and is arranged at described second switch on the wire of transfer of data;
Described control assembly, for when described action type is charging operations, controls described first switch and is in conducting state and controls described second switch and be in cut-off state;
Described control assembly, also for when described action type is data transfer operation, controls described first switch and is in cut-off state and controls described second switch and be in conducting state;
Described control assembly, also for when described action type be simultaneously charging and data transfer operation time, control described first switch and described second switch is all in conducting state.
Second aspect, provides a kind of control method for data connecting line, and described method comprises:
According to the signal determination operation type in wire group in described data connecting line, described action type comprises charging operations, data transfer operation and charges and data transfer operation simultaneously;
If the action type determined is charging operations, then controls the switch block be arranged in described wire group and be in the first conducting state, making the wire conducting for charging in described wire group;
If the action type determined is data transfer operation, then controls described switch block and be in the second conducting state, make the wire conducting for transfer of data in described wire group;
If the action type determined is charging and data transfer operation simultaneously, then controls described switch block and be in the 3rd conducting state, making in described wire group for charging and the equal conducting of wire of transfer of data.
Preferably, the described wire for charging, comprises power lead and earth lead; The described wire for transfer of data, comprises the first data conductor and the second data conductor, described according to the signal determination operation type in wire group in described data connecting line, comprising:
According to the voltage on described power lead and/or current detecting to current be charged as effectively charge time, determine that described action type is charging operations;
When described first data conductor and/or described second data conductor exist data-signal, determine that described action type is data transfer operation;
Effective charging is being charged as to current according to the voltage on described power lead and/or current detecting, and when there is data-signal in described first data conductor and/or described second data conductor, determine that described action type is for charging and data transfer operation simultaneously.
Preferably, described switch block, comprises and is arranged at described the first switch on the wire charged and is arranged at described second switch on the wire of transfer of data,
Described, control the switch block be arranged in described wire group and be in the first conducting state, comprising:
Control described first switch to be in conducting state and to control described second switch and be in cut-off state;
Described, control described switch block and be in the second conducting state, comprising:
Control described first switch to be in cut-off state and to control described second switch and be in conducting state;
Described, control described switch block and be in the 3rd conducting state, comprising:
Control described first switch and described second switch is all in conducting state.
The third aspect, provides a kind of control device of data connecting line, and described device comprises:
Operation determination module, for according to the signal determination operation type in wire group in described data connecting line, described action type comprises charging operations, data transfer operation and charging and data transfer operation simultaneously;
First control module, if the action type determined for described operation determination module is charging operations, then controls the switch block be arranged in described wire group and is in the first conducting state, making the wire conducting for charging in described wire group;
Second control module, if the action type determined for described operation determination module is data transfer operation, then controls described switch block and is in the second conducting state, make the wire conducting for transfer of data in described wire group;
3rd control module, if the action type determined for described operation determination module is charging and data transfer operation simultaneously, then controls described switch block and is in the 3rd conducting state, makes in described wire group for charging and the equal conducting of wire of transfer of data.
Preferably, the described wire for charging, comprises power lead and earth lead; The described wire for transfer of data, comprises the first data conductor and the second data conductor, and described operation determination module, comprising:
First determining unit, for according to the voltage on described power lead and/or current detecting to current be charged as effectively charge time, determine that described action type is charging operations;
Second determining unit, during for there is data-signal in described first data conductor and/or described second data conductor, determines that described action type is data transfer operation;
3rd determining unit, for being charged as effective charging according to the voltage on described power lead and/or current detecting to current, and when there is data-signal in described first data conductor and/or described second data conductor, determine that described action type is for charging and data transfer operation simultaneously.
Preferably, described switch block, comprises and is arranged at described the first switch on the wire charged and is arranged at described second switch on the wire of transfer of data,
Described first control module, if the action type for determining is charging operations, then controls described first switch and is in conducting state and controls described second switch and be in cut-off state, making the wire conducting for charging in described wire group;
Described second control module, if the action type for determining is data transfer operation, then controls described first switch and is in cut-off state and controls described second switch and be in conducting state, make the wire conducting for transfer of data in described wire group;
Described 3rd control module, if be charging and data transfer operation simultaneously for the action type determined, then controls described first switch and described second switch is all in conducting state, makes in described wire group for charging and the equal conducting of wire of transfer of data.
The beneficial effect of the technical scheme that the embodiment of the present invention provides is:
By arranging switch block in the wire group of data connecting line, thus according to user's request control switch parts switch between three kinds of conducting states realize respectively charging operations, data transfer operation and simultaneously charging and data transfer operation; Solve when intelligent terminal only needs transfer of data and do not need to charge, the scheme that background technology provides still can consume certain charging times, thus reduces the problem of intelligent terminal battery; Reach and only have when switch block is in the first conducting state and the 3rd conducting state, for the wire that charges just conducting thus the effect of charging for intelligent terminal in wire group.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the structural representation of the data connecting line that background technology of the present invention provides;
Fig. 2 is the structural representation of the data connecting line that the embodiment of the present invention one provides;
Fig. 3 is the structural representation of the data connecting line that the embodiment of the present invention two provides;
Fig. 4 is the structural representation of wire group in the data connecting line that provides of the embodiment of the present invention two;
Fig. 5 is another structural representation of the data connecting line that the embodiment of the present invention two provides;
Fig. 6 is the method flow diagram of the control method for data connecting line that the embodiment of the present invention three provides;
Fig. 7 is the method flow diagram of the control method for data connecting line that the embodiment of the present invention four provides;
Fig. 8 is the block diagram of the control device for data connecting line that the embodiment of the present invention five provides;
Fig. 9 is the block diagram of the control device for data connecting line that the embodiment of the present invention six provides.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail, and obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one
Please refer to Fig. 2, it illustrates the structural representation of the data connecting line that the embodiment of the present invention one provides, this data connecting line comprises the first USB plug 210, second USB plug 220, for the wire group 230 that is electrically connected the first USB plug and the second USB plug and the switch block 240 be arranged in wire group;
Wherein, switch block 240 can in the first conducting state, switch between the second conducting state and the 3rd conducting state;
When switch block 240 is in the first conducting state, the wire conducting for charging in wire group 230;
When switch block 240 is in the second conducting state, for the wire conducting of transfer of data in wire group 230;
When switch block 240 is in the 3rd conducting state, for charging and the equal conducting of wire of transfer of data in wire group 230.
In sum, the data connecting line that the present embodiment provides, by arranging switch block in the wire group of data connecting line, thus according to user's request control switch parts switch between three kinds of conducting states realize respectively charging operations, data transfer operation and simultaneously charging and data transfer operation; Solve when intelligent terminal only needs transfer of data and do not need to charge, the scheme that background technology provides still can consume certain charging times, thus reduces the problem of intelligent terminal battery; Reach and only have when switch block is in the first conducting state and the 3rd conducting state, for the wire that charges just conducting thus the effect of charging for intelligent terminal in wire group.
Embodiment two
Please refer to Fig. 3, it illustrates the structural representation of the data connecting line that the embodiment of the present invention two provides, this data connecting line comprises the first USB plug 210, second USB plug 220, the wire group 230 for being electrically connected the first USB plug and the second USB plug, the control assembly 250 that is arranged at the switch block 240 in wire group 230 and is electrical connected with wire group 230 and switch block 240.
Wherein, switch block 240 can in the first conducting state, switch between the second conducting state and the 3rd conducting state;
When switch block 240 is in the first conducting state, the wire conducting for charging in wire group 230;
When switch block 240 is in the second conducting state, for the wire conducting of transfer of data in wire group 230;
When switch block 240 is in the 3rd conducting state, for charging and the equal conducting of wire of transfer of data in wire group 230.
Control assembly 250 is for according to the signal determination operation type in wire group 230; Wherein, action type can comprise charging operations, data transfer operation and charge and data transfer operation simultaneously.
If when the action type of control assembly 250 also for determining is charging operations, then control switch parts 240 are in the first conducting state;
If the action type determined is data transfer operation, then control switch parts 240 are in the second conducting state;
If the action type determined is for charging and data transfer operation simultaneously, then control switch parts 240 are in the 3rd conducting state.
Please refer to Fig. 4, because the wire for charging can comprise power lead and earth lead, the wire for transfer of data can comprise the first data conductor and the second data conductor, so in a kind of implementation of the present embodiment,
Control assembly 250 for according to the combine detection of both the voltage on power lead, electric current or voltage and current to current be charged as effectively charge time, determination operation type is charging operations.Due to when both the voltage of intelligent terminal, electric current or voltage and current are lower than certain threshold value, can be judged to be that the electricity of now intelligent terminal is not enough, also namely now need for intelligent terminal charging, so control assembly 250 can judge currently to be charged as effective charging, action type is defined as charging operations;
When control assembly 250 also exists data-signal in the combination in the first data conductor, the second data conductor or the first data conductor and the second data conductor, determination operation type is data transfer operation.When there is transfer of data between intelligent terminal and computer, data transfer signal can be there is in combination for wire also i.e. the first data conductor, the second data conductor or the first data conductor and second data conductor of transfer of data, so when control assembly 250 detect there is data-signal in above-mentioned wire time, action type is defined as data transfer operation by control assembly 250.
Control assembly 250 is also for being charged as effective charging in the combine detection according to the voltage on power lead, electric current or voltage and current to current, and when there is data-signal in the first data conductor, the second data conductor or the first data conductor and the second data conductor, determination operation type is charge and data transfer operation simultaneously.When being combined to lower than first threshold of the voltage on power lead, electric current or voltage and current being detected when control assembly 250, illustrate that the electricity of now intelligent terminal is not enough, also namely now need for intelligent terminal charging; Meanwhile, when control assembly 250 detects and there is data-signal in the combination of the first data conductor, the second data conductor or the first data conductor and the second data conductor, illustrate that now intelligent terminal needs to carry out transfer of data between computer; In sum, control assembly 250 can determine that action type is now charge and data transfer operation simultaneously.
Preferably, switch block 240 can comprise the first switch on the wire that is arranged at for charging and be arranged at the second switch on the wire of transfer of data, and in the present embodiment, first switch can be the switch be arranged in power lead, second switch can be arranged on the switch in the first data conductor or the second data conductor, second switch can also comprise the switch be arranged in the first data conductor and the switch be arranged in the second data conductor, and the position of the present embodiment to the first switch and second switch does not limit.And in the present embodiment,
Control assembly 250 for when action type is charging operations, control the first switch be in conducting state and control second switch be in cut-off state; Due to when the action type that control assembly 250 is determined is charging operations, the computer be connected with intelligent terminal only needs for intelligent terminal charges, so now the second switch on the wire of transfer of data by the first switch-linear hybrid on the wire for charging in conducting state, and can be arranged on cut-off state by control assembly 250 simultaneously.
Control assembly 250 also for when action type is data transfer operation, control the first switch be in cut-off state and control second switch be in conducting state; When the action type that control assembly 250 is determined is data transfer operation, the computer be now connected with intelligent terminal does not need for intelligent terminal charges, only need between intelligent terminal and computer to carry out transfer of data, so, now the second switch on the wire of transfer of data by the first switch-linear hybrid on the wire for charging in cut-off state, and can be arranged on conducting state by control assembly 250 simultaneously.
Control assembly 250 also for when action type be simultaneously charging and data transfer operation time, control the first switch and second switch is all in conducting state.The action type determined when control assembly 250 is charge and data transfer operation simultaneously, then now need between intelligent terminal and computer to carry out transfer of data, and it is intelligent terminal charging that computer needs by charging conductor, so now, the first switch on the wire for charging and the second switch on the wire of transfer of data all can be arranged on conducting state by control assembly 250.
It should be added that, the control assembly 250 shown in Fig. 3 is the structural representation of its correspondence, and when actual realization, can be chip piece can be also the device be made up of polylith chip, the present embodiment limit this; And the first switch and second switch can be any one in sensitive switch, ship type switch, toggle switch, toggle switch, push-button switch, key switch, rocker switch and MOS switch, and the present embodiment does not also limit its way of realization.
In sum, the data connecting line that the present embodiment provides, by arranging switch block in the wire group of data connecting line, thus according to user's request control switch parts switch between three kinds of conducting states realize respectively charging operations, data transfer operation and simultaneously charging and data transfer operation; Solve when intelligent terminal only needs transfer of data and do not need to charge, the scheme that background technology provides still can consume certain charging times, thus reduces the problem of intelligent terminal battery; Reach and only have when switch block is in the first conducting state and the 3rd conducting state, for the wire that charges just conducting thus the effect of charging for intelligent terminal in wire group.In the present embodiment simultaneously, by arranging a control assembly be electrical connected with wire group and switch block, reach and can detect according to control assembly the conducting state that the action type obtained carrys out control switch parts, thus only have when intelligent terminal needs charging, just can conducting thus the effect of charging for intelligent terminal for the wire that charges in wire group.
It should be added that, above-described embodiment is just arranged in wire group 230 for switch block 240, can also be arranged in the second USB plug 220 as shown in Figure 5 when actual realization, or in the first USB plug 210, the present embodiment does not limit the position that switch block 240 is arranged; And the easy full of beard of those skilled in the art and, control assembly 250 also can be arranged in the first USB plug 210 or the second USB plug 220, and the present embodiment does not limit the position that control assembly 250 is arranged.
Embodiment three
Please refer to Fig. 6, it illustrates the method flow diagram of the control method for data connecting line that the embodiment of the present invention three provides, this control method may be used for the data connecting line of the intelligent terminal of such as mobile phone, MP3, MP4 or digital camera and so on, and this control method comprises:
Step 301, according to the signal determination operation type in wire group in data connecting line;
When intelligent terminal is connected with computer by data connecting line, the control assembly in data connecting line can according to the signal determination operation type in wire group in data connecting line.Wherein, action type comprises charging operations, data transfer operation and charges and data transfer operation simultaneously.
Step 302, if the action type determined is charging operations, then controls the switch block be arranged in wire group and is in the first conducting state, making the wire conducting for charging in wire group;
Step 303, if the action type determined is data transfer operation, then control switch parts are in the second conducting state, make the wire conducting for transfer of data in wire group;
Step 304, if the action type determined is charging and data transfer operation simultaneously, then control switch parts are in the 3rd conducting state, make in wire group for charging and the equal conducting of wire of transfer of data.
In sum, the control method for data connecting line that the present embodiment provides, by according to the signal determination operation type in wire group in data connecting line, thus only have when the action type determined be charging operations or simultaneously charging and data transfer operation time, just understand conducting for the wire that charges in wire group; Solve when intelligent terminal only needs transfer of data and do not need to charge, the scheme that background technology provides still can consume certain charging times, thus reduces the problem of intelligent terminal battery; Reach and can flexibly select the effect of action type according to user's request.
Embodiment four
Please refer to Fig. 7, it illustrates the control method for data connecting line that the embodiment of the present invention four provides, this control method may be used in the data wire of the intelligent terminal of such as mobile phone, MP3, MP4 or digital camera and so on, and this control method comprises:
Step 401, according to the signal determination operation type in wire group in data connecting line;
When intelligent terminal is connected with computer by data connecting line, the control assembly in data connecting line can according to the signal determination operation type in wire group in data connecting line.Wherein, action type comprises charging operations, data transfer operation and charges and data transfer operation simultaneously.
Owing to comprising power lead and earth lead for the wire charged in data connecting line, wire for transfer of data comprises the first data conductor and the second data conductor, so the difference of content according to different operating type detection, the step according to the signal determination operation type in wire group in data connecting line can comprise following three sub-steps:
The first, according to the combine detection of the voltage on power lead, electric current or voltage and current to current be charged as effectively charge time, determination operation type is charging operations;
After intelligent terminal is connected with computer by data connecting line, control assembly can detect the signal in voltage in power lead or electric current and the first data conductor or the second data conductor, because the electricity when intelligent terminal is less than predetermined value, also when namely intelligent terminal needs to charge, the voltage of intelligent terminal, the combination of electric current or voltage and current can lower than certain threshold value, so the voltage in power lead detected when control assembly, when the combination of electric current or voltage and current is lower than certain threshold value, control assembly can judge that now intelligent terminal electricity deficiency needs as its charging, also namely currently effective charging is charged as, thus determination operation type is charging operations.In actual implementation procedure, control assembly can also adopt the mode of intelligent terminal charger judgement battery electric quantity to detect, and the present embodiment does not limit this.
The second, when the first data conductor, the second data conductor or the first data conductor and the second data conductor exist data-signal, determination operation type is data transfer operation;
When intelligent terminal is connected with computer by data connecting line, and user by the data copy in intelligent terminal in computer, or during from computer download data, data-signal can be there is in first data conductor and the second data conductor, so after control assembly detects the signal in voltage in power lead or electric current and the first data conductor or the second data conductor, when the testing result of control assembly is the first data conductor, data-signal is there is in the combination of the second data conductor or the first data conductor and the second data conductor, then illustrate user intelligent terminal is connected with computer target time transfer of data, so now action type can be defined as data transfer operation by control assembly.
3rd, be charged as effective charging according to the voltage on power lead and/or current detecting to current, and when there is data-signal in the first data conductor and/or the second data conductor, determination operation type is charge and data transfer operation simultaneously.
Detect that when control assembly the combination of the voltage in power lead, electric current or voltage and current is lower than certain threshold value, and when there is data-signal in the first data conductor, the second data conductor or the first data conductor and the second data conductor, control assembly can determination operation type be charge and data transfer operation simultaneously, performing step with reference to the first sub-step and the second sub-step, can not repeat them here.
Step 402, if the action type determined is charging operations, then control the first switch be in conducting state and control second switch be in cut-off state, make the wire conducting for charging in wire group;
Comprise the first switch on the wire be arranged at for charging due to switch block and be arranged at the second switch on the wire of transfer of data, so, when the action type that control assembly is determined is charging operations, control assembly can control the first switch and be in conducting state and control second switch and be in cut-off state, thus makes the wire conducting for charging in wire group.
Step 403, if the action type determined is data transfer operation, then control the first switch be in cut-off state and control second switch be in conducting state, make the wire conducting for transfer of data in wire group;
Similar with step 402, the action type determined when control assembly is data transfer operation, then control assembly controls the first switch and is in cut-off state and controls second switch and be in conducting state, thus makes the wire conducting for transfer of data in wire group.
Step 404, if the action type determined is charging and data transfer operation simultaneously, then controls the first switch and second switch is all in conducting state, makes in wire group for charging and the equal conducting of wire of transfer of data.
When the action type that control assembly is determined is for charging and data transfer operation simultaneously, control assembly can control the first switch and second switch is all in conducting state, thus user in wire group is charged and the equal conducting of wire of transfer of data.
In sum, the control method for data connecting line that the present embodiment provides, by according to the signal determination operation type in wire group in data connecting line, thus only have when the action type determined be charging operations or simultaneously charging and data transfer operation time, just understand conducting for the wire that charges in wire group; Solve when intelligent terminal only needs transfer of data and do not need to charge, the scheme that background technology provides still can consume certain charging times, thus reduces the problem of intelligent terminal battery; Reach and can flexibly select the effect of action type according to user's request.In the present embodiment simultaneously, by arranging the first switch and arrange second switch in the wire for charging in for the wire of transfer of data, reach and can be realized charging operations, data transfer operation and charging and the effect of transfer of data three kinds of action types simultaneously by the state controlling the first switch and second switch respectively.
Embodiment five
Please refer to Fig. 8, it illustrates the control device for data connecting line that the embodiment of the present invention five provides, this control device comprises: operation determination module 510, first control module 520, second control module 530 and the 3rd control module 540.
Operation determination module 510, for according to the signal determination operation type in wire group in described data connecting line, described action type comprises charging operations, data transfer operation and charging and data transfer operation simultaneously;
First control module 520, if the action type determined for described operation determination module 510 is charging operations, then controls the switch block be arranged in described wire group and is in the first conducting state, making the wire conducting for charging in described wire group;
Second control module 530, if the action type determined for described operation determination module 510 is data transfer operation, then controls described switch block and is in the second conducting state, make the wire conducting for transfer of data in described wire group;
3rd control module 540, if the action type determined for described operation determination module 510 is charge and data transfer operation simultaneously, then controlling described switch block and be in the 3rd conducting state, making in described wire group for charging and the equal conducting of wire of transfer of data.
In sum, the present embodiment provide for the control device in data connecting line, by according to the signal determination operation type in wire group in data connecting line, thus only have when the action type determined be charging operations or simultaneously charging and data transfer operation time, just understand conducting for the wire that charges in wire group; Solve when intelligent terminal only needs transfer of data and do not need to charge, the scheme that background technology provides still can consume certain charging times, thus reduces the problem of intelligent terminal battery; Reach and can flexibly select the effect of action type according to user's request.
Embodiment six
The embodiment of the present invention six provides a kind of control device for data connecting line, and this control device comprises: operation determination module 510, first control module 520, second control module 530 and the 3rd control module 540.
Operation determination module 510, for according to the signal determination operation type in wire group in described data connecting line, described action type comprises charging operations, data transfer operation and charging and data transfer operation simultaneously;
First control module 520, if the action type determined for described operation determination module 510 is charging operations, then controls the switch block be arranged in described wire group and is in the first conducting state, making the wire conducting for charging in described wire group;
Second control module 530, if the action type determined for described operation determination module 510 is data transfer operation, then controls described switch block and is in the second conducting state, make the wire conducting for transfer of data in described wire group;
3rd control module 540, if the action type determined for described operation determination module 510 is charge and data transfer operation simultaneously, then controlling described switch block and be in the 3rd conducting state, making in described wire group for charging and the equal conducting of wire of transfer of data.
Preferably, please refer to Fig. 9, the described wire for charging, comprises power lead and earth lead; The described wire for transfer of data, comprises the first data conductor and the second data conductor, and described operation determination module 510, comprising: the first determining unit 512, second determining unit 514 and the 3rd determining unit 516;
First determining unit 512, for according to the voltage on described power lead and/or current detecting to current be charged as effectively charge time, determine that described action type is charging operations;
Second determining unit 514, during for there is data-signal in described first data conductor and/or described second data conductor, determines that described action type is data transfer operation;
3rd determining unit 516, for being charged as effective charging according to the voltage on described power lead and/or current detecting to current, and when there is data-signal in described first data conductor and/or described second data conductor, determine that described action type is for charging and data transfer operation simultaneously.
Preferably, described switch block, comprises and is arranged at described the first switch on the wire charged and is arranged at described second switch on the wire of transfer of data,
Described first control module 520, if the action type for determining is charging operations, then controls described first switch and is in conducting state and controls described second switch and be in cut-off state, making the wire conducting for charging in described wire group;
Described second control module 530, if the action type for determining is data transfer operation, then controls described first switch and is in cut-off state and controls described second switch and be in conducting state, make the wire conducting for transfer of data in described wire group;
Described 3rd control module 540, if the action type for determining is charge and data transfer operation simultaneously, then controlling described first switch and described second switch is all in conducting state, making in described wire group for charging and the equal conducting of wire of transfer of data.
In sum, the control device for data connecting line that the present embodiment provides, by according to the signal determination operation type in wire group in data connecting line, thus only have when the action type determined be charging operations or simultaneously charging and data transfer operation time, just understand conducting for the wire that charges in wire group; Solve when intelligent terminal only needs transfer of data and do not need to charge, the scheme that background technology provides still can consume certain charging times, thus reduces the problem of intelligent terminal battery; Reach and can flexibly select the effect of action type according to user's request.In the present embodiment simultaneously, by arranging the first switch and arrange second switch in the wire for charging in for the wire of transfer of data, reach and can be realized charging operations, data transfer operation and charging and the effect of transfer of data three kinds of action types simultaneously by the state controlling the first switch and second switch.
It should be noted that: the control device for data connecting line that above-described embodiment provides is when the operation that control data connecting line performs, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by equipment is divided into different functional modules, to complete all or part of function described above.In addition, the control device for data connecting line that above-described embodiment provides belongs to same design with the embodiment of the method for the control method for data connecting line, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. a data connecting line, is characterized in that, described data connecting line, comprising:
First USB plug, the second USB plug, for the wire group that is electrically connected described first USB plug and described second USB plug and the switch block be arranged in described wire group;
Described switch block can in the first conducting state, switch between the second conducting state and the 3rd conducting state;
When described switch block is in the first conducting state, the wire conducting for charging in described wire group;
When described switch block is in the second conducting state, for the wire conducting of transfer of data in described wire group;
When described switch block is in the 3rd conducting state, for charging and the equal conducting of wire of transfer of data in described wire group;
Described data connecting line, also comprises: the control assembly be electrical connected with described wire group and described switch block;
Described control assembly, for according to the signal determination operation type in described wire group, described action type comprises charging operations, data transfer operation and charging and data transfer operation simultaneously;
Described control assembly, if when the action type also for determining is charging operations, then controls described switch block and is in the first conducting state;
If the action type determined is data transfer operation, then controls described switch block and be in the second conducting state;
If the action type determined for charging and data transfer operation simultaneously, then controls described switch block and is in the 3rd conducting state;
The described wire for charging, comprising: power lead and earth lead;
The described wire for transfer of data, comprising: the first data conductor and the second data conductor;
Described control assembly, for according to the voltage on described power lead and/or current detecting to current be charged as effectively charge time, determine that described action type is charging operations;
Described control assembly, time also for there is data-signal in described first data conductor and/or described second data conductor, determines that described action type is data transfer operation;
Described control assembly, also for being charged as effective charging according to the voltage on described power lead and/or current detecting to current, and when there is data-signal in described first data conductor and/or described second data conductor, determine that described action type is for charging and data transfer operation simultaneously.
2. data connecting line according to claim 1, is characterized in that, described switch block, comprises and is arranged at described the first switch on the wire charged and is arranged at described second switch on the wire of transfer of data;
Described control assembly, for when described action type is charging operations, controls described first switch and is in conducting state and controls described second switch and be in cut-off state;
Described control assembly, also for when described action type is data transfer operation, controls described first switch and is in cut-off state and controls described second switch and be in conducting state;
Described control assembly, also for when described action type be simultaneously charging and data transfer operation time, control described first switch and described second switch is all in conducting state.
3. for a control method for data connecting line, it is characterized in that, described method comprises:
According to the signal determination operation type in wire group in described data connecting line, described action type comprises charging operations, data transfer operation and charges and data transfer operation simultaneously;
If the action type determined is charging operations, then controls the switch block be arranged in described wire group and be in the first conducting state, making the wire conducting for charging in described wire group;
If the action type determined is data transfer operation, then controls described switch block and be in the second conducting state, make the wire conducting for transfer of data in described wire group;
If the action type determined is charging and data transfer operation simultaneously, then controls described switch block and be in the 3rd conducting state, making in described wire group for charging and the equal conducting of wire of transfer of data;
The described wire for charging, comprises power lead and earth lead; The described wire for transfer of data, comprises the first data conductor and the second data conductor, described according to the signal determination operation type in wire group in described data connecting line, comprising:
According to the voltage on described power lead and/or current detecting to current be charged as effectively charge time, determine that described action type is charging operations;
When described first data conductor and/or described second data conductor exist data-signal, determine that described action type is data transfer operation;
Effective charging is being charged as to current according to the voltage on described power lead and/or current detecting, and when there is data-signal in described first data conductor and/or described second data conductor, determine that described action type is for charging and data transfer operation simultaneously.
4. method according to claim 3, is characterized in that, described switch block, comprises and is arranged at described the first switch on the wire charged and is arranged at described second switch on the wire of transfer of data,
Described, control the switch block be arranged in described wire group and be in the first conducting state, comprising:
Control described first switch to be in conducting state and to control described second switch and be in cut-off state;
Described, control described switch block and be in the second conducting state, comprising:
Control described first switch to be in cut-off state and to control described second switch and be in conducting state;
Described, control described switch block and be in the 3rd conducting state, comprising:
Control described first switch and described second switch is all in conducting state.
5. for a control device for data connecting line, it is characterized in that, described device comprises:
Operation determination module, for according to the signal determination operation type in wire group in described data connecting line, described action type comprises charging operations, data transfer operation and charging and data transfer operation simultaneously;
First control module, if the action type determined for described operation determination module is charging operations, then controls the switch block be arranged in described wire group and is in the first conducting state, making the wire conducting for charging in described wire group;
Second control module, if the action type determined for described operation determination module is data transfer operation, then controls described switch block and is in the second conducting state, make the wire conducting for transfer of data in described wire group;
3rd control module, if the action type determined for described operation determination module is charging and data transfer operation simultaneously, then controls described switch block and is in the 3rd conducting state, makes in described wire group for charging and the equal conducting of wire of transfer of data;
The described wire for charging, comprises power lead and earth lead; The described wire for transfer of data, comprises the first data conductor and the second data conductor, and described operation determination module, comprising:
First determining unit, for according to the voltage on described power lead and/or current detecting to current be charged as effectively charge time, determine that described action type is charging operations;
Second determining unit, during for there is data-signal in described first data conductor and/or described second data conductor, determines that described action type is data transfer operation;
3rd determining unit, for being charged as effective charging according to the voltage on described power lead and/or current detecting to current, and when there is data-signal in described first data conductor and/or described second data conductor, determine that described action type is for charging and data transfer operation simultaneously.
6. device according to claim 5, is characterized in that, described switch block, comprises and is arranged at described the first switch on the wire charged and is arranged at described second switch on the wire of transfer of data,
Described first control module, if the action type for determining is charging operations, then controls described first switch and is in conducting state and controls described second switch and be in cut-off state, making the wire conducting for charging in described wire group;
Described second control module, if the action type for determining is data transfer operation, then controls described first switch and is in cut-off state and controls described second switch and be in conducting state, make the wire conducting for transfer of data in described wire group;
Described 3rd control module, if be charging and data transfer operation simultaneously for the action type determined, then controls described first switch and described second switch is all in conducting state, makes in described wire group for charging and the equal conducting of wire of transfer of data.
CN201310057389.9A 2013-02-22 2013-02-22 Data connecting line, for the control method of data connecting line and device Active CN103151658B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310057389.9A CN103151658B (en) 2013-02-22 2013-02-22 Data connecting line, for the control method of data connecting line and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310057389.9A CN103151658B (en) 2013-02-22 2013-02-22 Data connecting line, for the control method of data connecting line and device

Publications (2)

Publication Number Publication Date
CN103151658A CN103151658A (en) 2013-06-12
CN103151658B true CN103151658B (en) 2015-10-07

Family

ID=48549594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310057389.9A Active CN103151658B (en) 2013-02-22 2013-02-22 Data connecting line, for the control method of data connecting line and device

Country Status (1)

Country Link
CN (1) CN103151658B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103326210B (en) * 2013-06-19 2015-12-09 上海亚晴电子科技有限公司 A kind of switchable multi-functional cable
CN105577874B (en) * 2016-02-25 2018-06-19 北京易诚高科科技发展有限公司 The removable integrated mobile phone test device of integration
CN106684650B (en) * 2016-12-09 2019-08-16 上海斐讯数据通信技术有限公司 Transmission cable and the mobile terminal for using transmission cable
CN106792131B (en) * 2016-12-23 2019-08-02 东软集团股份有限公司 Data transmission method and device
CN108206444B (en) * 2017-12-26 2021-01-26 努比亚技术有限公司 Data line and data transmission method
CN108608442B (en) * 2018-04-28 2020-11-20 北京航天控制仪器研究所 Communication device and method for wireless wire transfer of mobile robot
CN109656858B (en) * 2018-12-22 2021-03-05 西安易朴通讯技术有限公司 USB control method, terminal device and computer readable storage medium
CN115208433A (en) * 2021-04-08 2022-10-18 Oppo广东移动通信有限公司 Charging cable, power supply device, terminal device and communication system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2762389Y (en) * 2004-12-08 2006-03-01 曾榉嶒 Controllable synchronous charging data wire
CN200986703Y (en) * 2006-12-22 2007-12-05 朱培辉 Mobile phone charging data wire
CN101630852A (en) * 2008-07-18 2010-01-20 英华达(南京)科技有限公司 Mobile phone capable of selecting to be connected with computer for charge or data transmission
CN201629478U (en) * 2010-01-20 2010-11-10 泉州金山电子线缆有限公司 USB data line
CN201773967U (en) * 2010-06-30 2011-03-23 深圳富泰宏精密工业有限公司 Universal serial bus connecting structure
CN202068063U (en) * 2011-05-18 2011-12-07 永山科技有限公司 Wire module capable of simultaneously realizing quick charge and data transmission of electronic device
CN102610972A (en) * 2011-12-31 2012-07-25 惠州Tcl移动通信有限公司 Data line structure
CN202423756U (en) * 2012-01-09 2012-09-05 朱勇文 Charging and data transmission connector
CN102833387A (en) * 2011-06-15 2012-12-19 中兴通讯股份有限公司 Mobile terminal and processing method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8362741B2 (en) * 2009-09-10 2013-01-29 Broadcom Corporation Method and system for distinguishing between charging ports

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2762389Y (en) * 2004-12-08 2006-03-01 曾榉嶒 Controllable synchronous charging data wire
CN200986703Y (en) * 2006-12-22 2007-12-05 朱培辉 Mobile phone charging data wire
CN101630852A (en) * 2008-07-18 2010-01-20 英华达(南京)科技有限公司 Mobile phone capable of selecting to be connected with computer for charge or data transmission
CN201629478U (en) * 2010-01-20 2010-11-10 泉州金山电子线缆有限公司 USB data line
CN201773967U (en) * 2010-06-30 2011-03-23 深圳富泰宏精密工业有限公司 Universal serial bus connecting structure
CN202068063U (en) * 2011-05-18 2011-12-07 永山科技有限公司 Wire module capable of simultaneously realizing quick charge and data transmission of electronic device
CN102833387A (en) * 2011-06-15 2012-12-19 中兴通讯股份有限公司 Mobile terminal and processing method thereof
CN102610972A (en) * 2011-12-31 2012-07-25 惠州Tcl移动通信有限公司 Data line structure
CN202423756U (en) * 2012-01-09 2012-09-05 朱勇文 Charging and data transmission connector

Also Published As

Publication number Publication date
CN103151658A (en) 2013-06-12

Similar Documents

Publication Publication Date Title
CN103151658B (en) Data connecting line, for the control method of data connecting line and device
JP6359459B2 (en) Mobile terminal and charging device and method thereof
CN103178583B (en) Mobile phone USB (Universal Serial Bus) interface charging system supporting charging for other mobile devices and charging realization method of mobile phone USB interface charging system
CN101355259B (en) Portable communication device and method for charging through discernment of charging cable
CN104810875B (en) charging mode switching circuit and method
CN101945534B (en) Method and circuit for protecting circuit board in case of water inflow of mobile terminal and mobile terminal
CN101102119B (en) A charging detection circuit of appliance device and charging detection method
CN205193796U (en) Communication interface circuit, portable electronic equipment and electronic system
CN104810874B (en) Charging-starting detection circuit and method
CN102593930B (en) Charging system of mobile terminal
CN103730933A (en) Charging method and electronic devices
CN105244942A (en) Charging current control method and mobile terminal
US9755210B2 (en) Battery pack and method for controlling charge of battery pack
CN105552978A (en) Charging circuit, rechargeable cell, and user terminal
CN204361767U (en) Charger and charging control circuit thereof
CN105491473A (en) Bluetooth earphone with continuous power supply
CN201075704Y (en) Detection circuit of electrical equipment and mobile phone having the circuit
CN104617632B (en) Can the charging device of adaptive distinct electronic apparatuses and charging method, electronic equipment
CN201898656U (en) Protective circuit of waterlogged mobile terminal circuit board and mobile terminal
CN108683236A (en) A kind of mobile terminal OTG charging methods and device
CN205430550U (en) Last bluetooth headset of power supply
CN101359836B (en) Self-switching charging circuit
CN204376457U (en) A kind of mobile terminal
CN103001261A (en) Universal charger with USB (universal serial bus)
CN212965358U (en) Broken line detection circuit with load access automatic wake-up function and power bank

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Beijing Xiaomi Technology Co., Ltd.

C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Xiaomi Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant