Summary of the invention
The invention provides a kind of fax transmission control method, portable power source and terminal unit, it is possible to increase
The efficiency that fax is defeated, saves user and inserts the time of USB interface.
A first aspect of the present invention provides a kind of fax transmission control method, including:
The level of Type-C port in the opposite end that detection is connected with portable power source, determines according to level change and connects
Enter the port role of equipment;
According to the port role of access device, to carry out fax defeated with access device.
In conjunction with first aspect, in the first embodiment of first aspect, opposite end is access device, connects
Enter equipment to be connected with portable power source by data wire;Portable power source determines access device according to level change
Port role includes:
When the level of the Type-C port of access device is set to high level from low level, determine access device
Port role be power supply unit;When the level of the Type-C port of access device is set to low electricity from high level
At ordinary times, determine that the port role of described access device is for treating fill device.
In conjunction with the first embodiment of first aspect, in the second embodiment of first aspect, move
It is defeated that galvanic electricity source carries out fax according to the port role of access device and access device, including:
When the port role of access device is until fill device, portable power source is access device charging;When connecing
Enter the port role of equipment when being power supply unit, then receive the electric current of access device output.
In conjunction with first aspect, in the third embodiment of first aspect, opposite end turns for being arranged on interface
Changing the interface conversion chip of cable inner, interface conversion cable is used for connecting portable power source and access device;
According to level change, portable power source determines that the port role of access device includes:
When the level of the Type-C port of interface conversion chip is set to high level from low level, portable power source
The port role determining access device is power supply unit;
When the level of the Type-C port of interface conversion chip is set to low level from high level, portable power source
Determine that the port role of access device is for treating fill device.
In conjunction with the third embodiment of first aspect, in the 4th kind of embodiment of first aspect, move
It is defeated that galvanic electricity source carries out fax according to the port role of access device and access device, including:
When the port role of access device is until fill device, portable power source is access device charging;
When the port role of access device is power supply unit, then receive the electric current of access device output.
Second aspect provides a kind of fax transmission control method, and described method is applied to terminal unit, and terminal sets
For being connected with portable power source by data wire, described method includes:
According to level change, the level of the Type-C port of terminal unit detection terminal unit, determines that terminal sets
Standby for treating fill device;Receive the electric current of portable power source output.
The third aspect provides a kind of portable power source, including:
Type-C port, charge control module and battery component, charge control module respectively with Type-C end
Mouth, battery component are electrically connected with;Type-C port, for peer end of the connection;
Charge control module, the level of Type-C port in the opposite end that detection is connected with portable power source,
The port role of access device is determined according to level change;
Charge control module, is additionally operable to the port role according to access device, controls battery component and access
It is defeated that equipment carries out fax.
In conjunction with the third aspect, in the first implementation of the third aspect, opposite end is access device, fills
Electric control module is set to high level specifically for the level of the Type-C port when access device from low level
Time, determine that the port role of access device is power supply unit;Or,
Charge control module is set to low specifically for the level of the Type-C port when access device from high level
During level, determine that the port role of access device is for treating fill device.
In conjunction with the first implementation of the third aspect, in the second implementation of the third aspect, fill
Electric control module is specifically for when the port role of access device is until fill device, and controlling battery component is
Access device charges;Or,
Charge control module specifically for when the port role of access device is power supply unit, then controls electricity
Pond assembly receives the electric current of access device output.
In conjunction with the third aspect, in the third implementation of the third aspect, opposite end turns for being arranged on interface
Changing the interface conversion chip of cable inner, interface conversion cable is used for connecting portable power source and access device;
Charge control module is put from low level specifically for the level of the Type-C port when interface conversion chip
During for high level, determine that the port role of access device is power supply unit;Type-C when interface conversion chip
The level of port, when high level is set to low level, determines that the port role of access device is for treating fill device.
In conjunction with the third aspect, in the 4th kind of implementation of the third aspect, charge control module is specifically also
For when the port role of access device is until fill device, then controlling battery component is access device charging;
When the port role of access device is power supply unit, then controls battery component and receive access device output
Electric current.
Fourth aspect provides a kind of terminal unit, including:
Type-C port, processor and battery component, processor respectively with Type-C port, battery component
It is electrically connected with;Type-C port, is used for connecting portable power source;
According to level change, processor, for detecting the level of Type-C port, determines that terminal unit is for treating
Fill device;
Processor, is additionally operable to control battery component and receives the electric current of portable power source output.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
In the embodiment of the present invention, the highest voltage that can support 20V of Type-C port and the electric current of 5A,
Compared with prior art, the present invention can be greatly enhanced the efficiency that fax is defeated.Simultaneously as Type-C
Port supports bilateral construction, and when portable power source is connected with access device, portable power source can pass through this
The method of bright offer identifies the port role of access device automatically, and it is defeated to carry out fax, it is not necessary to connecting USB
During port spend the time confirm port the most correctly access, saved user insert USB port time
Between, improve Consumer's Experience.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out
Clearly and completely describe, it is clear that described embodiment is only a part of embodiment of the present invention, and not
It it is whole embodiments.Based on the embodiment in the present invention, those skilled in the art are not making creation
The every other embodiment obtained under property work premise, broadly falls into the scope of protection of the invention.
The present invention provides a kind of fax transmission control method, and the executive agent of the method is portable power source, accesses
Equipment can be the electronic equipments such as USB flash disk, portable hard drive, mobile phone or panel computer, when portable power source passes through
When data wire is connected with access device, the present invention provides a kind of fax transmission control method, it is possible to achieve mobile
Fax between power supply and access device is defeated.Refer to Fig. 1, the fax transmission control method that the present invention provides
One embodiment includes:
101, the level of the Type-C port of portable power source detection access device, determines according to level change
The port role of access device;
In the present embodiment, the two ends of data wire are provided with Type-C port, a Type-C of data wire
Port is connected with the Type-C port of portable power source, and another Type-C port of data wire sets with access
Standby Type-C port is connected.Wherein, the Type-C port of portable power source is double role's port (Dual Role
Port, DRP), Type-C port is provided with collocation channel (Configuration Channel, CC) pin,
Portable power source is additionally provided with the CC logic chip corresponding with CC pin, and port includes uplink port and descending
Port, portable power source can switch between, when portable power source port is as uplink port,
Port role is for treating fill device;When portable power source port is as downlink port, port role is that power supply sets
Standby.
When portable power source is connected by data wire with access device, the CC pin of portable power source sets with access
Standby CC pin connection, portable power source can detect the level of self CC pin, and detect that access sets
The level of standby CC pin.
Concrete, when the CC logic chip of portable power source detect in access device the level of CC pin from
When high level is set to low level, show that have passed through one through the level of CC pin is pulled down to common port
The resistance of (Ground, GND), portable power source may determine that access device, for treating fill device, and determines
Electricity transmission mode is powering mode, is i.e. powered to access device by portable power source.Wherein GND is an electricity
Pressure reference point, can be ground, it is also possible to refer to power cathode, be not construed as limiting herein.
When the CC logic chip of portable power source detects that in access device, the level of CC pin is put from low level
During for high level, show through the level of CC pin have passed through one be pulled to VBUS (Voltage Bus,
Bus-powered) resistance, portable power source may determine that access device is power supply unit, and determines the defeated mould of fax
Formula is charge mode, is i.e. powered to portable power source by access device.Wherein, power supply unit can be power supply
Adapter, PC (Personal Computer, PC), or other can connect power supply and export electricity
The equipment of stream.
It is understood that portable power source can include one or more Type-C port, wherein CC pipe
Foot can be CC1 pin or CC2 pin.
102, portable power source is according to the port role of access device, and to carry out fax defeated with access device.
Concrete, when the port role of access device is for during until fill device, and VBUS pipe opened by portable power source
Foot, charges for access device;When the port role of access device is power supply unit, power supply unit is opened
VBUS pin, charges for portable power source, and portable power source can receive the electric current of power supply unit output.
In the present embodiment, portable power source can detect the level of the Type-C port of access device, according to electricity
Flat change determines the port role of access device, and the port role further according to access device enters with access device
Row fax is defeated.The highest voltage that can support 20V of Type-C port and the electric current of 5A, with existing skill
Art is compared, and the present invention can be greatly enhanced the efficiency that fax is defeated.Owing to Type-C port supports two-way connecing
Enter, when portable power source is connected with access device, the method that portable power source can be provided by the present invention from
The dynamic port role identifying access device, and it is defeated to carry out fax, it is not necessary to during connecting USB port
The cost time confirms that port the most correctly accesses, and has saved user and has inserted the time of USB port, has improve use
Family is experienced.
In actual applications, access device may only be configured with Mini USB port or Micro USB port,
And it is configured without Type-C port, in the case, portable power source can pass through interface conversion cable and connect
Enter equipment to be connected.The present invention provides a kind of fax transmission control method, it is possible to realize portable power source and non-Type-C
The function that the fax of port access device is defeated, describes in detail to said method below:
Referring to Fig. 2, another embodiment of the fax transmission control method that the present invention provides includes:
201, the level of the Type-C port of portable power source detection interface conversion chip, changes according to level
Determine the port role of access device;
In the present embodiment, portable power source is connected by interface conversion cable with access device, interface conversion core
Sheet is arranged on inside interface conversion cable.Interface conversion chip includes Type-C port and conversion port,
This Type-C port is connected with the Type-C port of portable power source, conversion port and the port of access device
Being connected, the port of this access device can be Mini USB port or Micro USB port, conversion port
Corresponding with the port of this access device.Type-C port is provided with CC pin, concrete with reality shown in Fig. 1
Executing the Type-C port in example similar, here is omitted.
Concrete, when the CC logic chip of portable power source detects the electricity of the CC pin of interface conversion chip
Flat when low level is set to high level, i.e. the level of the Type-C port of interface conversion chip is put from low level
During for high level, show that have passed through one through the level of the CC pin of interface conversion chip is pulled to
The resistance of VBUS, portable power source determines that access device is power supply unit, and determines that electricity transmission mode is for filling
Power mode, is i.e. powered to portable power source by access device.
When the CC logic chip of portable power source detects that the level of the CC pin of interface conversion chip is from high electricity
Horizontal is low level, and i.e. the level of the Type-C port of interface conversion chip is when high level is set to low level,
Show to have passed through the resistance being pulled down to GND through the level of the CC pin of interface conversion chip, move
Galvanic electricity source may determine that access device for treating fill device, and determine electricity transmission mode be powering mode, i.e. by
Portable power source is powered to access device.
202, to carry out fax according to the port role of access device and access device defeated for portable power source.
Concrete, when the port role of access device is for during until fill device, and VBUS pipe opened by portable power source
Foot, charges for access device;When the port role of access device is power supply unit, power supply unit is opened
VBUS pin, charges for portable power source, and portable power source can receive the electric current of power supply unit output.
In the present embodiment, portable power source can be set by the electronics of interface conversion cable with dissimilar port
Defeated for carrying out fax, improve the motility that technical scheme is implemented.
When portable power source is connected with access device, if access device is terminal unit, such as mobile phone or flat board
Computer etc., terminal unit may determine that master-slave equipment, so that it is determined that charging process.Below with mobile terminal
For executive agent, a kind of fax transmission control method providing the present invention is introduced, and refers to Fig. 3, this
Another embodiment inventing transmission control method of offeing telex includes:
301, the level of the Type-C port of terminal unit detection terminal unit, determines according to level change
Terminal unit is for treating fill device;
In the present embodiment, the Type-C port of terminal unit is connected with a Type-C port of data wire,
2nd Type-C port of data wire is connected with the Type-C port of portable power source.When terminal unit passes through
When data wire is connected with portable power source, the CC pin of terminal unit connects with the CC pin of portable power source,
If the level of the Type-C port of terminal unit detection terminal unit is set to low level by high level, the most permissible
Determine that terminal unit is for treating fill device according to level change.
302, terminal unit receives the electric current of portable power source output.
After terminal unit determines that it is and treats fill device, portable power source can according to above-mentioned recognition result,
Determining that portable power source is power supply unit, charge to terminal unit, it is defeated that terminal unit can receive portable power source
The electric current gone out.
Fax transmission control method in the present embodiment is applied to portable power source and the tool with Type-C port
Having the terminal unit of Type-C port, terminal unit can identify from as treating fill device, so that moving
Power supply can charge to terminal unit, it is provided that the motility that fax transmission control method is implemented.
For ease of understanding, below with a concrete application scenarios controlling party defeated to fax in the embodiment of the present invention
Method is described in detail:
Access device is as a example by mobile phone, when Type-C port and the Type-C port of mobile phone of portable power source
When being connected, the CC pin of portable power source connects with the CC pin of mobile phone, and CC can be managed by portable power source
The level of foot detects, and the level of the CC pin of mobile phone can drag down, then may determine that mobile phone sets for waiting to fill
Standby, portable power source is mobile phone charging;
Access device is as a example by power supply adaptor, when Type-C port and the power supply adaptor of portable power source
When Type-C port is connected, the CC pin of portable power source connects with the CC pin of power supply adaptor, mobile
The level of CC pin can be detected by power supply, and the level of the CC pin of power supply adaptor can be drawn high,
Then determining that power supply adaptor is power supply unit, power supply is that portable power source charges by power supply adaptor.
When the port of mobile phone is Micro USB port, and portable power source turns USB male seat line by Type-C
When cable is connected with mobile phone, portable power source can detect Type-C and turn interface conversion core in USB male seat cable
The CC pin level of sheet, the level of the CC pin of interface conversion chip can drag down, then may determine that mobile phone
For treating fill device, portable power source is mobile phone charging.
Optionally, terminal unit is as a example by mobile phone, and when portable power source is connected with mobile phone, mobile phone can be examined
Survey the level of Type-C port, and determine from as treating fill device according to level change, portable power source according to
Mobile phone arranges and portable power source is set to power supply unit, and after being provided with, portable power source charges to mobile phone.
From method angle, fax transmission control method the embodiment of the present invention is described above, below from
Portable power source in the embodiment of the present invention is described by design factors:
The present invention provides a kind of portable power source, it is possible to achieve the fax transmission control method shown in Fig. 1 or Fig. 2,
Referring to Fig. 4, in the embodiment of the present invention, an embodiment of portable power source 400 includes:
Type-C port 401, charge control module 402 and battery component 403, charge control module 402
It is electrically connected with Type-C port 401, battery component 403 respectively;
Type-C port 401, for peer end of the connection;
Charge control module 402, the electricity of Type-C port in the opposite end that detection is connected with portable power source
Flat, the port role of access device is determined according to level change;
Charge control module 402, is additionally operable to the port role according to access device, controls battery component 403
To carry out fax defeated with access device.
In actual applications, charge control module 402 is can to realize the chip of Type-C agreement, such as CC
Logic chip, USB power supply (USB Power Delivery, PD) chip etc., it is also possible to be it
His chip, is not construed as limiting the most herein.
Below charge control module 402 is introduced further:
One, when opposite end is access device:
Charge control module 402 is put from low level specifically for the level of the Type-C port when access device
During for high level, determine that the port role of access device is power supply unit;
Or,
Charge control module 402 is put from high level specifically for the level of the Type-C port when access device
During for low level, determine that the port role of access device is for treating fill device.
Further, charge control module 402 is specifically for being to wait to fill to set when the port role of access device
Time standby, control battery component 403 and charge for access device;
Or,
Charge control module 402 is specifically for when the port role of access device is power supply unit, then controlling
Battery component 403 processed receives the electric current of access device output.
Two, when opposite end is to be arranged on the interface conversion chip within interface conversion cable:
Charge control module 402 specifically for the level of the Type-C port when interface conversion chip from low electricity
When horizontal is high level, determine that the port role of access device is power supply unit;When interface conversion chip
The level of Type-C port, when high level is set to low level, determines that the port role of access device is for waiting to fill
Equipment.
Further, charge control module 402 is specifically additionally operable to when the port role of access device is to wait to fill
During equipment, then control battery component 403 and charge for access device;When the port role of access device is to supply
During electricity equipment, then control battery component 403 and receive the electric current of access device output.
For ease of understanding, below with a concrete application scenarios to each in portable power source in the embodiment of the present invention
Being described in detail alternately between module:
Access device is as a example by mobile phone, as Type-C port 401 and the Type-C of mobile phone of portable power source
When port is connected, the CC pin of portable power source connects with the CC pin of mobile phone, charge control module 402
Can detect the level of CC pin, the level of the CC pin of mobile phone can drag down, then control of charging
Module 402 determines that mobile phone, for treating fill device, controls battery component 403 and charges for mobile phone;
Access device is as a example by power supply adaptor, when Type-C port 401 and the power adaptation of portable power source
When the Type-C port of device is connected, the CC pin of portable power source connects with the CC pin of power supply adaptor,
The level of CC pin can be detected by charge control module 402, the CC pin of power supply adaptor
Level can be drawn high, then charge control module 402 determines that power supply adaptor is power supply unit, and power supply is by electricity
Source adapter is portable power source charging, and charge control module 402 can control battery component 403 and receive electricity
The electric current of source output.
When the port of mobile phone is Micro USB port, and the Type-C port 401 of portable power source passes through
Type-C turns USB male seat cable when being connected with the Micro USB port of mobile phone, charge control module 402
Type-C can be detected and turn the CC pin level of interface conversion chip in USB male seat cable, interface conversion
The level of the CC pin of chip can drag down, then charge control module 402 may determine that mobile phone for treating fill device,
Control battery component 403 to charge for mobile phone.
Referring to Fig. 5, the present invention also provides for a kind of terminal unit, it is possible to achieve the defeated control of fax shown in Fig. 3
Method processed, an embodiment of the terminal unit 500 that the present invention provides includes:
Type-C port 501, processor 502 and battery component 503;
Type-C port 501, is used for connecting portable power source;
Processor 502, for detecting the level of Type-C interface, determines terminal unit according to level change
For treating fill device;
Processor 502, is additionally operable to control battery component 503 and receives the electric current of portable power source output.
For ease of understanding, below with a concrete application scenarios to each in terminal unit in the embodiment of the present invention
Being described in detail alternately between module:
When the Type-C port of portable power source is connected with Type-C port 501, processor 502 is permissible
The level of detection Type-C port 501, determines certainly as treating fill device according to level change, portable power source
Arranging according to mobile phone and portable power source is set to power supply unit, after being provided with, processor 502 controls
Battery component 503 receives the electric current of portable power source output.
During it is understood that two described in above example equipment is connected by Type-C port,
Type-C port and Type-C interface same meaning.
Those skilled in the art is it can be understood that arrive, and for convenience and simplicity of description, above-mentioned retouches
The specific works process of the system stated, device and unit, is referred to the correspondence in preceding method embodiment
Process, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed system, device and
Method, can realize by another way.Such as, device embodiment described above is only shown
Meaning property, such as, the division of described unit, be only a kind of logic function and divide, actual can when realizing
There to be other dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into another
System, or some features can ignore, or do not perform.Another point, shown or discussed each other
Coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit
Or communication connection, can be electrical, machinery or other form.
The above, above example only in order to technical scheme to be described, is not intended to limit;
Although being described in detail the present invention with reference to previous embodiment, those of ordinary skill in the art should
Work as understanding: the technical scheme described in foregoing embodiments still can be modified by it, or to it
Middle part technical characteristic carries out equivalent;And these amendments or replacement, do not make appropriate technical solution
Essence depart from various embodiments of the present invention technical scheme spirit and scope.