CN107885688A - A kind of signal switching method and device - Google Patents
A kind of signal switching method and device Download PDFInfo
- Publication number
- CN107885688A CN107885688A CN201610873166.3A CN201610873166A CN107885688A CN 107885688 A CN107885688 A CN 107885688A CN 201610873166 A CN201610873166 A CN 201610873166A CN 107885688 A CN107885688 A CN 107885688A
- Authority
- CN
- China
- Prior art keywords
- coffret
- terminal
- mode
- switching circuit
- external equipment
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/102—Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a kind of signal switching method, methods described includes:If detecting that terminal is established by interconnecting device and at least two external equipments to connect, the communication port of the coffret of at least two external equipment is identified;Wherein, the interconnecting device is connected by the coffret of the terminal with the terminal;According to the communication port of the coffret of at least two external equipment, judge whether to switch the mode of operation of the coffret of the terminal using the first switching circuit or the second switching circuit;Wherein, first switching circuit is arranged in the terminal, and second switching circuit is arranged in the interconnecting device.The embodiment of the present invention also discloses a kind of signal switching apparatus simultaneously.
Description
Technical field
The present invention relates to the signal handoff technique in the communications field, more particularly to a kind of signal switching method and device.
Background technology
With the rapid development of science and technology, USB (Universal Serial Bus, USB) technology also obtains
Fast development is arrived, as USB technologies are more next in the popularity application of mobile terminal, requirement of the people to USB interconnection techniques
It is higher.USB Type-C connectors have the largest data transfer speed of 10Gbit/ seconds, interface socket end size it is smaller, support
The advantages of tow sides can be inserted into and can provide larger electric power, has obtained the favor compared with multi-mobile-terminal production firm.Though
The communication connection with external equipment is so realized using USB Type-C interfaces, simplifies the design of handset, but single USB
Type-C interfaces make it that two external equipments can not be connected on mobile phone simultaneously, such as can not realize and insert earphone while charging
Music is listened, causes Consumer's Experience ineffective.
The content of the invention
In order to solve the above technical problems, the embodiment of the present invention it is expected to provide a kind of signal switching method and device, solve
A problem of external equipment can only be connected in the terminal of existing USB Type-C interfaces simultaneously, realize to be connected to simultaneously
Few two external equipments, and then improve the experience effect of user.
To reach above-mentioned purpose, what the technical scheme of the embodiment of the present invention was realized in:
A kind of signal switching method, methods described include:
If detecting that terminal is established by interconnecting device and at least two external equipments to connect, described at least two are identified
The communication port of the coffret of external equipment;Wherein, coffret and the end of the interconnecting device by the terminal
End connection;
According to the communication port of the coffret of at least two external equipment, judge whether to use the first switching circuit
Or second switching circuit switch the terminal coffret mode of operation;Wherein, first switching circuit is arranged on
In the terminal, second switching circuit is arranged in the interconnecting device.
Optionally, the communication port of the coffret according at least two external equipment, judges whether to use
First switching circuit or the second switching circuit switch the mode of operation of the coffret of the terminal, including:
Judge whether the communication port of the coffret of at least two external equipment is identical;
If the communication port of the coffret of at least two external equipment is identical, switch the Working mould of the terminal
Formula is mode of operation corresponding with the communication pattern of the external equipment of the Preset Transfer interface of interconnecting device connection.
Optionally, methods described also includes:
If the communication port of the coffret of at least two external equipment differs, the described first switching electricity is used
Road or second switching circuit switch the mode of operation of the coffret of the terminal according to the preset rules.
Optionally, if the communication port of the coffret of at least two external equipments differs, institute is used
State the work that the first switching circuit or second switching circuit switch the coffret of the terminal according to the preset rules
Operation mode, including:
If the communication port of the coffret of at least two external equipment differs, judge outside described at least two
Whether the communication mode for connecing the communication port of the coffret of equipment meets preparatory condition;
When the communication mode of the communication port of the coffret of at least two external equipment meets the preparatory condition
When, the mode of operation using first switching circuit according to the coffret of the preset rules switching terminal;
If the communication mode of the communication port of the coffret of at least two external equipment is unsatisfactory for the default bar
Part, then switch the mode of operation of the coffret of the terminal according to the preset rules using second switching circuit.
Optionally, the mode of operation of the coffret for switching the terminal according to preset rules, including:
Obtain the default communication, levels of at least two external equipment;
According to the default communication, levels, switched successively using first switching circuit or second switching circuit
The mode of operation of the coffret of the terminal is mode of operation corresponding with the communication pattern of the external equipment.
Optionally, the mode of operation of the coffret for switching the terminal according to preset rules, including:
Obtain the access order that at least two external equipment establishes connection with the terminal;
According to access order, switched successively using first switching circuit or second switching circuit described
The mode of operation of the coffret of terminal is mode of operation corresponding with the communication pattern of the external equipment.
A kind of signal switching apparatus, described device include:Recognition unit and processing unit;Wherein:
The recognition unit, if being connected for detecting that terminal is established by interconnecting device and at least two external equipments,
Then identify the communication port of the coffret of at least two external equipment;Wherein, the interconnecting device passes through the terminal
Coffret be connected with the terminal;
The processing unit, for the communication port of the coffret according at least two external equipment, judgement is
The mode of operation of the no coffret for switching the terminal using the first switching circuit or the second switching circuit;Wherein, it is described
First switching circuit is arranged in the terminal, and second switching circuit is arranged in the interconnecting device.
Optionally, the processing unit includes:Judge module and first processing module;Wherein:
The judge module, for judge at least two external equipment coffret communication port whether phase
Together;
The first processing module, if the communication port for the coffret of at least two external equipment is identical,
The mode of operation for then switching the terminal is the communication mould for the external equipment being connected with the Preset Transfer interface of the interconnecting device
Mode of operation corresponding to formula.
Optionally, the processing unit also includes:Second processing module and the 3rd processing module;Wherein:
The Second processing module, if the communication port not phase of the coffret at least two external equipment
Together, then using first switching circuit or second switching circuit;
3rd processing module, the Working mould of the coffret for switching the terminal according to the preset rules
Formula.
Optionally, the Second processing module, if specifically at least two external equipment coffret it is logical
Letter passage differs, then judges whether the communication mode of the communication port of the coffret of at least two external equipment meets
Preparatory condition;
The Second processing module, if being specifically additionally operable to the communication port of the coffret of at least two external equipment
Communication mode meet the preparatory condition, then using first switching circuit;
The Second processing module, if being specifically additionally operable to the communication port of the coffret of at least two external equipment
Communication mode be unsatisfactory for the preparatory condition, then using second switching circuit;
3rd processing module, the work of the coffret specifically for switching the terminal according to the preset rules
Pattern.
Optionally, the 3rd processing module is specifically used for:
Obtain the default communication, levels of at least two external equipment;
According to the default communication, levels, switched successively using first switching circuit or second switching circuit
The mode of operation of the coffret of the terminal is mode of operation corresponding with the communication pattern of the external equipment.
Optionally, the 3rd processing module is specifically additionally operable to:
Obtain the access order that at least two external equipment establishes connection with the terminal;
According to access order, switched successively using first switching circuit or second switching circuit described
The mode of operation of the coffret of terminal is mode of operation corresponding with the communication pattern of the external equipment.
The signal switching method and device that the embodiment of the present invention is provided, when detect terminal by interconnecting device with least
When two external equipments establish connection, the communication port of the coffret of at least two external equipments is identified, then according at least
The communication port of the coffret of two external equipments, judge whether to switch using the first switching circuit or the second switching circuit
The mode of operation of the coffret of terminal;So, terminal can connect at least two external equipments, solution simultaneously by interconnecting device
The problem of can only connecting an external equipment simultaneously in the terminal of existing USB Type-C interfaces of having determined, realize to connect simultaneously
At least two external equipments are connect, and then improve the experience effect of user.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of information switching method provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another information switching method provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of another information switching method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of information switching device provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another information switching device provided in an embodiment of the present invention;
Fig. 6 is the structural representation of another information switching device provided in an embodiment of the present invention.
Embodiment
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 clear, complete
Site preparation describes.
The embodiment of the present invention provides a kind of signal switching method, and shown in reference picture 1, this method comprises the following steps:
If step 101, detecting that terminal establishes connection by interconnecting device and at least two external equipments, identify at least
The communication port of the coffret of two external equipments.
Wherein, interconnecting device is connected by the coffret of terminal with terminal.
If being connected specifically, step 101 detects that terminal is established by interconnecting device and at least two external equipments, know
The communication port of the coffret of other at least two external equipments can be realized by terminal.Wherein, interconnecting device is a kind of connects
Welding system, interconnecting device one end have an interface, can carry out matching with the coffret of terminal and be connected, and the other end has more
Individual interface, multiple external equipments can be connected, interconnecting device is with the mode of operation that can be used in switching terminal coffret
Switching circuit;Terminal also has is used for switching terminal coffret with what the switching circuit work functions of interconnecting device differed
The switching circuit of mode of operation, such as terminal can be that there is provided the mobile devices such as the mobile phone of switching circuit, tablet personal computer, terminal
Coffret can be USB Type-C interfaces;External equipment can be can be attached by interconnecting device with terminal it is logical
The equipment of letter, such as can be the equipment such as charger, earphone, sound equipment.
Step 102, the communication port according to the coffrets of at least two external equipments, judge whether using the first switching
The mode of operation of the coffret of circuit or the second switching circuit switching terminal.
Wherein, the first switching circuit is set in the terminal, and the second switching circuit is arranged in interconnecting device.
Specifically, communication port of the step 102 according to the coffret of at least two external equipments, judge whether to use the
The mode of operation of the coffret of one switching circuit or the second switching circuit switching terminal can be realized by terminal.Terminal-pair
Analysis is identified in the communication port of the coffret of at least two external equipments connected by interconnecting device, is tied according to analysis
Fruit determines whether to switch over the mode of operation of terminal transmission interface using the first switching circuit or the second switching circuit, root
Ensure at least two external equipment energy normal works according to concrete application scene.
The signal switching method that embodiments of the invention are provided, when detecting that terminal passes through interconnecting device and at least two
When external equipment establishes connection, the communication port of the coffret of at least two external equipments is identified, then according at least two
The communication port of the coffret of external equipment, judge whether to use the first switching circuit or the second switching circuit switching terminal
Coffret mode of operation;So, terminal can connect at least two external equipments simultaneously by interconnecting device, solve
A problem of external equipment can only be connected in the terminal of existing USB Type-C interfaces simultaneously, realize to be connected to simultaneously
Few two external equipments, and then improve the experience effect of user.
The embodiment of the present invention provides a kind of signal switching method, and shown in reference picture 2, this method comprises the following steps:
If step 201, detect that terminal establishes connection, terminal recognition by interconnecting device and at least two external equipments
The communication port of the coffret of at least two external equipments.
Wherein, interconnecting device is connected by the coffret of terminal with terminal.
Illustrated specifically, establishing communication connection with a kind of interconnecting device of two external equipments can be connected with terminal
Illustrate, two of which external equipment can be earphone and charger, two earphones or earphones and be entered by data wire and terminal
Equipment of row data transfer etc., the mode of operation for two external equipments that terminal recognition is accessed by interconnecting device, with this determination
The communication port for the coffret that external equipment uses.
Step 202, terminal judge whether the communication port of the coffret of at least two external equipments is identical.
Specifically, terminal judges the logical of the coffret at least two external equipments being connected by interconnecting device with terminal
Believe whether passage is identical, the communication port of coffret of the judged result including at least two external equipments is identical and differs,
Wherein communication port differs the signal transmission passage of the communication port of the coffret including at least two external equipments at least
There is one to differ.For example, when two external equipments are two earphones, the signal transmission passage of the coffret of two earphones
All it is D+, D-, i.e., the communication port of the coffret of two earphones is identical;When two external equipments are respectively earphone and charger
When, the signal transmission passage of the coffret of earphone is D+, D-, and the signal transmission passage of the coffret of charger is VBus, D
+, D-, i.e., earphone is identical with two signal transmission passages of D+, D- of the coffret of charger, but charger also uses VBus
Signal transmission passage, therefore the communication port of earphone and charger differs;When two external equipments are earphone and pass through data
During the equipment that line and terminal carry out data transmission, the signal transmission passage of the coffret of earphone be D+, D-, by data wire and
The signal transmission passage of the coffret for the equipment that terminal carries out data transmission is RX, TX, earphone and passes through data wire and terminal
The signal transmission passage of the coffret of the equipment carried out data transmission is different from, and earphone and is passed through data wire and terminal and is carried out
The communication port of the equipment of data transfer differs.
Wherein, after step 202 terminal judges whether the communication port of the coffret of at least two external equipments is identical,
It can select to perform step 203 or step 204, if the identical execution of the communication port of the coffret of at least two external equipments
Step 203, if the communication port of the coffret of at least two external equipments, which differs, performs step 204;
If the communication port of the coffret of step 203, at least two external equipments is identical, the work of terminal switching terminal
Operation mode is mode of operation corresponding with the communication pattern of the external equipment of the Preset Transfer interface of interconnecting device connection.
It is configured specifically, the Preset Transfer interface of interconnecting device can be terminal when dispatching from the factory, is interconnecting device
Any one coffret, such as can be the first coffret of interconnecting device.When outside at least two communication port identicals
Equipment is connect to establish by interconnecting device and terminal when connecting, because at least two communication ports are identical, so terminal can with it is pre-
If the external equipment accessed on coffret is communicated, ensure the external equipment normal work, without using the first switching electricity
Road or the second switching circuit carry out circuit switching.For example, when two external equipments are two communication port identical earphones,
The mode of operation of two earphone communication patterns of terminal recognition simultaneously enters the mode of operation, due to the mode of operation phase of two earphones
Together, so terminal can select the earphone accessed on the coffret of interconnecting device first, it is in communication with making its normal work.
If the communication port of the coffret of step 204, at least two external equipments differs, terminal is cut using first
Change the mode of operation of circuit or the second switching circuit according to the coffret of preset rules switching terminal.
Specifically, preset rules are to ensure at least two external equipments that the communication port of coffret differs just
How often work using the first switching circuit or the second switching circuit to the signal transmission passage of terminal transmission interface, it is specified that entered
The rule of row switching.
Wherein, the mode of operation of the coffret in step 204 according to preset rules switching terminal can be by with lower section
Formula is realized:
A, terminal obtains the default communication, levels of at least two external equipments.
B, according to default communication, levels, terminal uses the first switching circuit or the second switching circuit successively switching terminal
The mode of operation of coffret is mode of operation corresponding with the communication pattern of external equipment.
Specifically, the default communication, levels of external equipment can be the significance level that is communicated according to external equipment with terminal or
Person determines to the influence of terminal.For example, because charging is to the maximum factor of mobile phone function effect, so in default communication
In grade:The communication, levels highest of charger can be set, and the communication, levels of earphone are taken second place, and enter line number by data wire and terminal
Communication, levels according to the equipment of transmission are minimum.By terminal with being carried out exemplified by being connected the interconnecting device connection of three external equipments
Illustrate, when three external equipments be earphone, standard charger and the equipment that is carried out data transmission by data wire and terminal simultaneously
When establishing connection by interconnecting device and terminal, the mode of operation of terminal recognition earphone is headset mode, the work of standard charger
Operation mode is charge mode, the mode of operation of the equipment carried out data transmission by data wire and terminal is OTG (On-The-Go)
Pattern, signal transmission passage corresponding to headset mode are D+, D-, signal transmission passage corresponding to charge mode be VBus, D+,
Signal transmission passage corresponding to D-, OTG pattern is RX, TX;According to default communication, levels, terminal is carried out with standard charger first
Communication, now the mode of operation of terminal is identical with the mode of operation (VBus, D+, D-) of standard charger;Then standard charging is worked as
After device is to terminal charge stabilization, terminal sends control command to interconnecting device, uses the transmission of the second switching circuit switching terminal
The mode of operation of interface is the mode of operation (headset mode) of earphone, that is, ensures that standard charger passes through VBus signal transmission passages
Charged to terminal, the transmission of D+, D- signal is switched to the left and right acoustic channels of earphone, establishing communication with earphone makes the normal work of earphone
Make;Finally after earphone normal work, terminal is logical using the mode of operation of the coffret of the first switching circuit switching terminal
The mode of operation (OTG patterns) for the equipment that data wire carries out data transmission with terminal is crossed, signal transmission passage RX, TX are switched to
Data wire, the communication established between the equipment that is carried out data transmission by data wire and terminal, makes equipment normal work.
It should be noted that the explanation in the present embodiment with same steps in other embodiments or concept, is referred to
Description in other embodiments, here is omitted.
The signal switching method that embodiments of the invention are provided, when detecting that terminal passes through interconnecting device and at least two
When external equipment establishes connection, the communication port of the coffret of at least two external equipments is identified, then according at least two
The communication port of the coffret of external equipment, judge whether to use the first switching circuit or the second switching circuit switching terminal
Coffret mode of operation;So, terminal can connect at least two external equipments simultaneously by interconnecting device, solve
A problem of external equipment can only be connected in the terminal of existing USB Type-C interfaces simultaneously, realize to be connected to simultaneously
Few two external equipments, and then improve the experience effect of user.
The embodiment of the present invention provides a kind of signal switching method, and shown in reference picture 3, this method comprises the following steps:
If step 301, detect that terminal establishes connection, terminal recognition by interconnecting device and at least two external equipments
The communication port of the coffret of at least two external equipments.
Wherein, interconnecting device is connected by the coffret of terminal with terminal.
Step 302, terminal judge whether the communication port of the coffret of at least two external equipments is identical.
Wherein, after step 302 terminal judges whether the communication port of the coffret of at least two external equipments is identical,
It can select to perform step 303 or step 304~306, if the communication port phase of the coffret of at least two external equipments
With step 303 is performed, if the communication port of the coffret of at least two external equipments, which differs, performs step 304~306;
If the communication port of the coffret of step 303, at least two external equipments is identical, the work of terminal switching terminal
Operation mode is mode of operation corresponding with the communication pattern of the external equipment of the Preset Transfer interface of interconnecting device connection.
If the communication port of the coffret of step 304, at least two external equipments differs, terminal judges at least two
Whether the communication mode of the communication port of the coffret of individual external equipment meets preparatory condition.
Specifically, preparatory condition does not have short circuit for the signal transmission passage of the communication port of the coffret of external equipment,
Such as preparatory condition can be the non-short circuit of D+, D- signal transmission passage.
Wherein, if the communication port of the coffret of the external equipment of step 304 at least two differs, terminal judge to
After whether the communication mode of the communication port of the coffret of few two external equipments meets preparatory condition, it can select to perform
Step 305 or step 306, if the communication mode of the communication port of the coffret of at least two external equipments meets default bar
Part performs step 305, if the communication mode of the communication port of the coffret of at least two external equipments is unsatisfactory for preparatory condition
Perform step 306.
If the communication mode of the communication port of the coffret of step 305, at least two external equipments meets preparatory condition,
Then mode of operation of the terminal using the first switching circuit according to the coffret of preset rules switching terminal.
If the communication mode of the communication port of the coffret of step 306, at least two external equipments is unsatisfactory for default bar
Part, then terminal using the second switching circuit according to the coffret of preset rules switching terminal mode of operation.
Wherein, can lead to according to the mode of operation of the coffret of preset rules switching terminal in step 305 and step 306
In the following manner is crossed to realize:
A, terminal obtains the access order that at least two external equipments establish connection with terminal.
B, according to access order, terminal using the first switching circuit or the second switching circuit successively switching terminal transmission
The mode of operation of interface is mode of operation corresponding with the communication pattern of external equipment.
Specifically, have the sequencing of access when being attached between external equipment and terminal by interconnecting device, when
When terminal first detects the access of external equipment, the mode of operation of the external equipment is identified, and by the coffret of terminal
Mode of operation switches to the mode of operation of the external equipment, establishes and communicates to connect with the external equipment, realizes communication;Then detect
Whether there is other equipment access on other interfaces of interconnecting device, when there is other equipment access, identify the Working mould of the equipment
Formula, then using the first switching circuit switching terminal coffret mode of operation, realize the normal works of at least two equipment
Make.It is noted that after terminal detects that other external equipments establish communication connection by interconnecting device and terminal first, inspection
When measuring charger by interconnecting device and terminal foundation connection, terminal terminates logical between other external equipments and terminal first
Letter, is communicatively coupled with charger, identifies the communication port of charger, the mode of operation of the coffret of terminal is cut
Change, realize the charging to terminal, after charger charges stabilization, according to two passages of signal transmission passage D+, D- of charger
Between relation selection using terminal in the first switching circuit or the second switching circuit in interconnecting device to D+, D- signal
Transmission channel switches over, and the mode of operation of the coffret of switching terminal is mode of operation corresponding to other external equipments, protects
Card terminal ensures other external equipments also normal work while charging normal.It is circumscribed with terminal by interconnecting device outside three
Connect and illustrate exemplified by equipment (flash disk, non-standard charger and earphone), if the priority of this three external equipment access terminals
Order is followed successively by:Non-standard charger, flash disk and earphone;Terminal, which is detected on interconnecting device, first has non-standard charger to connect
Enter, the mode of operation of the non-standard charger of terminal recognition is charge mode, and the mode of operation of the coffret of switching terminal is to fill
Power mode, realize the charging to terminal;Then proceed to detect interconnecting device while charging using non-standard charger
Whether have external equipment access on other interfaces, when detect on interconnecting device have flash disk access and non-standard charger it is steady
When determining to terminal charge, the mode of operation of terminal recognition flash disk is OTG patterns, and the mode of operation of the coffret of switching terminal is
OTG patterns, realize the data transfer communications between flash disk;Charged using non-standard charger and with flash disk charging
Continue to detect simultaneously on other interfaces of interconnecting device and whether have external equipment access, when terminal has been detected by interconnecting device
Earphone accesses and when stably carrying out data transmission with flash disk, identifies the mode of operation of earphone, using the first switching circuit by terminal
The mode of operation of coffret switch to headset mode, finally realizing non-standard charger, flash disk, earphone, these three external set
It is standby to pass through interconnecting device and terminal proper communication.When terminal detects flash disk of the non-standard charger in above-mentioned access order
Afterwards, terminal terminates the communication between flash disk and terminal first, or when terminal detects that non-standard charger is suitable in above-mentioned access
After earphone in sequence, terminal terminates the communication between flash disk and terminal, earphone and terminal first, is established with non-standard charger logical
Letter connection, is then switched over to the mode of operation of terminal using the first switching circuit, realizes flash disk and terminal, earphone and terminal
Between communication.
It should be noted that the explanation in the present embodiment with same steps in other embodiments or concept, is referred to
Description in other embodiments, here is omitted.
The signal switching method that embodiments of the invention are provided, when detecting that terminal passes through interconnecting device and at least two
When external equipment establishes connection, the communication port of the coffret of at least two external equipments is identified, then according at least two
The communication port of the coffret of external equipment, judge whether to use the first switching circuit or the second switching circuit switching terminal
Coffret mode of operation;So, terminal can connect at least two external equipments simultaneously by interconnecting device, solve
A problem of external equipment can only be connected in the terminal of existing USB Type-C interfaces simultaneously, realize to be connected to simultaneously
Few two external equipments, and then improve the experience effect of user.
The embodiments of the invention provide a kind of signal switching apparatus 4, can be applied to what embodiment corresponding to Fig. 1~3 provided
In a kind of signal switching method, shown in reference picture 4, the device includes:Recognition unit 41 and processing unit 42, wherein:
Recognition unit 41, if being connected for detecting that terminal is established by interconnecting device and at least two external equipments,
Identify the communication port of the coffret of at least two external equipments.
Wherein, interconnecting device is connected by the coffret of terminal with terminal.
Processing unit 42, for the communication port of the coffret according at least two external equipments, judge whether to use
The mode of operation of the coffret of first switching circuit or the second switching circuit switching terminal.
Wherein, the first switching circuit is set in the terminal, and the second switching circuit is arranged in interconnecting device.
The signal switching apparatus that embodiments of the invention are provided, when detecting that terminal passes through interconnecting device and at least two
When external equipment establishes connection, the communication port of the coffret of at least two external equipments is identified, then according at least two
The communication port of the coffret of external equipment, judge whether to use the first switching circuit or the second switching circuit switching terminal
Coffret mode of operation;So, terminal can connect at least two external equipments simultaneously by interconnecting device, solve
A problem of external equipment can only be connected in the terminal of existing USB Type-C interfaces simultaneously, realize to be connected to simultaneously
Few two external equipments, and then improve the experience effect of user.
Specifically, shown in reference picture 5, processing unit 42 includes:Judge module 421 and first processing module 422, wherein:
Judge module 421, for judging whether the communication port of coffret of at least two external equipments is identical.
First processing module 422, if the communication port for the coffret of at least two external equipments is identical, switch
The mode of operation of terminal is Working mould corresponding with the communication pattern of the external equipment of the Preset Transfer interface of interconnecting device connection
Formula.
Specifically, shown in reference picture 6, processing unit 42 also includes:The processing module 424 of Second processing module 423 and the 3rd,
Wherein:
Second processing module 423, if the communication port for the coffret of at least two external equipments differs, make
With the first switching circuit or the second switching circuit.
3rd processing module 424, the mode of operation for the coffret according to preset rules switching terminal.
Further specifically, Second processing module 423, if specifically at least two external equipments coffret it is logical
Letter passage differs, then judges whether the communication mode of the communication port of the coffret of at least two external equipments meets to preset
Condition.
Second processing module 423, if being specifically additionally operable to the logical of the communication port of the coffret of at least two external equipments
Letter mode meets preparatory condition, then using the first switching circuit.
Second processing module 423, the communication port for being specifically additionally operable to work as the coffret of at least two external equipments lead to
When letter mode is unsatisfactory for preparatory condition, the second switching circuit is used.
3rd processing module 424, specifically for the mode of operation of the coffret according to preset rules switching terminal.
Further, the 3rd processing module 424 is specifically used for performing following steps:
Obtain the default communication, levels of at least two external equipments.
According to default communication, levels, connect using the transmission of the first switching circuit or the second switching circuit successively switching terminal
The mode of operation of mouth is mode of operation corresponding with the communication pattern of external equipment.
Further alternative, the 3rd processing module 424 is specifically additionally operable to perform following steps:
Obtain the access order that at least two external equipments establish connection with terminal.
According to access order, the first switching circuit or the second switching circuit successively coffret of switching terminal are used
Mode of operation is mode of operation corresponding with the communication pattern of external equipment.
It should be noted that the interaction in the present embodiment between unit and module, is referred to Fig. 1~3 pair
Interaction in a kind of signal switching method that the embodiment answered provides, here is omitted.
The signal switching apparatus that embodiments of the invention are provided, when detecting that terminal passes through interconnecting device and at least two
When external equipment establishes connection, the communication port of the coffret of at least two external equipments is identified, then according at least two
The communication port of the coffret of external equipment, judge whether to use the first switching circuit or the second switching circuit switching terminal
Coffret mode of operation;So, terminal can connect at least two external equipments simultaneously by interconnecting device, solve
A problem of external equipment can only be connected in the terminal of existing USB Type-C interfaces simultaneously, realize to be connected to simultaneously
Few two external equipments, and then improve the experience effect of user.
In actual applications, recognition unit 41, judging unit 42, judge module 421, at first processing module 422, second
Managing the processing module 424 of module 423 and the 3rd can be by sending the central processing unit (Central in equipment positioned at wireless data
Processing Unit, CPU), microprocessor (Micro Processor Unit, MPU), digital signal processor
(Digital Signal Processor, DSP) or field programmable gate array (Field Programmable Gate
Array, FPGA) etc. realize.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the shape of the embodiment in terms of the present invention can use hardware embodiment, software implementation or combination software and hardware
Formula.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more to use storage
The form for the computer program product that medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.).
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (12)
1. a kind of signal switching method, it is characterised in that methods described includes:
If detecting that terminal is established by interconnecting device and at least two external equipments to connect, identify that described at least two is external
The communication port of the coffret of equipment;Wherein, the interconnecting device is connected by the coffret of the terminal with the terminal
Connect;
According to the communication port of the coffret of at least two external equipment, judge whether using the first switching circuit or
Second switching circuit switches the mode of operation of the coffret of the terminal;Wherein, first switching circuit is arranged on described
In terminal, second switching circuit is arranged in the interconnecting device.
2. according to the method for claim 1, it is characterised in that the transmission according at least two external equipment connects
The communication port of mouth, judge whether using the coffret of the first switching circuit or the second switching circuit switching terminal
Mode of operation, including:
Judge whether the communication port of the coffret of at least two external equipment is identical;
If the communication port of the coffret of at least two external equipment is identical, the mode of operation for switching the terminal is
Mode of operation corresponding with the communication pattern for the external equipment that the Preset Transfer interface of the interconnecting device connects.
3. according to the method for claim 2, it is characterised in that methods described also includes:
If the communication port of the coffret of at least two external equipment differs, using first switching circuit or
Second switching circuit described in person switches the mode of operation of the coffret of the terminal according to the preset rules.
4. according to the method for claim 3, it is characterised in that if the coffret of at least two external equipments
Communication port differ, then cut using first switching circuit or second switching circuit according to the preset rules
The mode of operation of the coffret of the terminal is changed, including:
If the communication port of the coffret of at least two external equipment differs, judge that described at least two external set
Whether the communication mode of the communication port of standby coffret meets preparatory condition;
When the communication mode of the communication port of the coffret of at least two external equipment meets the preparatory condition, make
Switch the mode of operation of the coffret of the terminal according to the preset rules with first switching circuit;
If the communication mode of the communication port of the coffret of at least two external equipment is unsatisfactory for the preparatory condition,
Switch the mode of operation of the coffret of the terminal according to the preset rules using second switching circuit.
5. the method according to claim 3 or 4, it is characterised in that the biography for switching the terminal according to preset rules
The mode of operation of defeated interface, including:
Obtain the default communication, levels of at least two external equipment;
According to the default communication, levels, switched successively using first switching circuit or second switching circuit described
The mode of operation of the coffret of terminal is mode of operation corresponding with the communication pattern of the external equipment.
6. the method according to claim 3 or 4, it is characterised in that the biography for switching the terminal according to preset rules
The mode of operation of defeated interface, including:
Obtain the access order that at least two external equipment establishes connection with the terminal;
According to access order, switch the terminal successively using first switching circuit or second switching circuit
The mode of operation of coffret be mode of operation corresponding with the communication pattern of the external equipment.
7. a kind of signal switching apparatus, it is characterised in that described device includes:Recognition unit and processing unit;Wherein:
The recognition unit, if being connected for detecting that terminal is established by interconnecting device and at least two external equipments, know
The communication port of the coffret of not described at least two external equipment;Wherein, the biography that the interconnecting device passes through the terminal
Defeated interface is connected with the terminal;
The processing unit, for the communication port of the coffret according at least two external equipment, judge whether to make
Switch the mode of operation of the coffret of the terminal with the first switching circuit or the second switching circuit;Wherein, described first
Switching circuit is arranged in the terminal, and second switching circuit is arranged in the interconnecting device.
8. device according to claim 7, it is characterised in that the processing unit includes:Judge module and the first processing
Module;Wherein:
The judge module, for judging whether the communication port of coffret of at least two external equipment is identical;
The first processing module, if the communication port for the coffret of at least two external equipment is identical, cut
The mode of operation for changing the terminal is the communication pattern pair for the external equipment being connected with the Preset Transfer interface of the interconnecting device
The mode of operation answered.
9. device according to claim 8, it is characterised in that the processing unit also includes:Second processing module and
Three processing modules;Wherein:
The Second processing module, if the communication port for the coffret of at least two external equipment differs,
Use first switching circuit or second switching circuit;
3rd processing module, the mode of operation of the coffret for switching the terminal according to the preset rules.
10. device according to claim 9, it is characterised in that
The Second processing module, if the communication port not phase of the coffret specifically at least two external equipment
Together, then judge whether the communication mode of the communication port of the coffret of at least two external equipment meets preparatory condition;
The Second processing module, if being specifically additionally operable to the logical of the communication port of the coffret of at least two external equipment
Letter mode meets the preparatory condition, then using first switching circuit;
The Second processing module, if being specifically additionally operable to the logical of the communication port of the coffret of at least two external equipment
Letter mode is unsatisfactory for the preparatory condition, then using second switching circuit;
3rd processing module, the Working mould of the coffret specifically for switching the terminal according to the preset rules
Formula.
11. the device according to claim 9 or 10, it is characterised in that the 3rd processing module is specifically used for:
Obtain the default communication, levels of at least two external equipment;
According to the default communication, levels, switched successively using first switching circuit or second switching circuit described
The mode of operation of the coffret of terminal is mode of operation corresponding with the communication pattern of the external equipment.
12. the device according to claim 9 or 10, it is characterised in that the 3rd processing module is specifically additionally operable to:
Obtain the access order that at least two external equipment establishes connection with the terminal;
According to access order, switch the terminal successively using first switching circuit or second switching circuit
The mode of operation of coffret be mode of operation corresponding with the communication pattern of the external equipment.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610873166.3A CN107885688B (en) | 2016-09-30 | 2016-09-30 | Signal switching method and device |
PCT/CN2017/081525 WO2018058946A1 (en) | 2016-09-30 | 2017-04-21 | Method and device for signal switching, and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610873166.3A CN107885688B (en) | 2016-09-30 | 2016-09-30 | Signal switching method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107885688A true CN107885688A (en) | 2018-04-06 |
CN107885688B CN107885688B (en) | 2021-06-04 |
Family
ID=61763145
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610873166.3A Active CN107885688B (en) | 2016-09-30 | 2016-09-30 | Signal switching method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107885688B (en) |
WO (1) | WO2018058946A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108430005A (en) * | 2018-04-26 | 2018-08-21 | 努比亚技术有限公司 | A kind of voicefrequency circuit, audio judgment method and mobile terminal |
CN108874708A (en) * | 2018-06-28 | 2018-11-23 | 努比亚技术有限公司 | OTG equipment, terminal charging method, mobile terminal and computer readable storage medium |
CN114297108A (en) * | 2021-12-16 | 2022-04-08 | 深圳市格安电子有限公司 | Multifunctional multi-protocol interface converter |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112292672A (en) * | 2019-11-05 | 2021-01-29 | 深圳市大疆创新科技有限公司 | Switching control method, electronic equipment and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202856125U (en) * | 2012-08-09 | 2013-04-03 | 深圳市江波龙电子有限公司 | Data line and system using the data line |
US20150067205A1 (en) * | 2013-09-03 | 2015-03-05 | Hon Hai Precision Industry Co., Ltd. | Electronic device assembly |
CN205122952U (en) * | 2015-10-28 | 2016-03-30 | 乐视移动智能信息技术(北京)有限公司 | Earphone converter |
CN205159720U (en) * | 2015-12-07 | 2016-04-13 | 乐视致新电子科技(天津)有限公司 | USB -Type -C interface converter |
CN105867874A (en) * | 2016-03-25 | 2016-08-17 | 乐视控股(北京)有限公司 | A user device |
CN105896221A (en) * | 2016-05-17 | 2016-08-24 | 乐视控股(北京)有限公司 | Adaptor and double-sided magnetic type conversion assembly |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202997245U (en) * | 2012-11-12 | 2013-06-12 | 林伟进 | USB (Universal Serial Bus) multipurpose adaption device |
TWM482862U (en) * | 2013-10-22 | 2014-07-21 | A & A Digital Technology Co Ltd | Docking device |
CN104149689B (en) * | 2014-09-04 | 2016-02-10 | 北京汽车研究总院有限公司 | A kind of audio output device and automobile |
-
2016
- 2016-09-30 CN CN201610873166.3A patent/CN107885688B/en active Active
-
2017
- 2017-04-21 WO PCT/CN2017/081525 patent/WO2018058946A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202856125U (en) * | 2012-08-09 | 2013-04-03 | 深圳市江波龙电子有限公司 | Data line and system using the data line |
US20150067205A1 (en) * | 2013-09-03 | 2015-03-05 | Hon Hai Precision Industry Co., Ltd. | Electronic device assembly |
CN205122952U (en) * | 2015-10-28 | 2016-03-30 | 乐视移动智能信息技术(北京)有限公司 | Earphone converter |
CN205159720U (en) * | 2015-12-07 | 2016-04-13 | 乐视致新电子科技(天津)有限公司 | USB -Type -C interface converter |
CN105867874A (en) * | 2016-03-25 | 2016-08-17 | 乐视控股(北京)有限公司 | A user device |
CN105896221A (en) * | 2016-05-17 | 2016-08-24 | 乐视控股(北京)有限公司 | Adaptor and double-sided magnetic type conversion assembly |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108430005A (en) * | 2018-04-26 | 2018-08-21 | 努比亚技术有限公司 | A kind of voicefrequency circuit, audio judgment method and mobile terminal |
CN108430005B (en) * | 2018-04-26 | 2021-04-09 | 努比亚技术有限公司 | Audio circuit, audio judgment method and mobile terminal |
CN108874708A (en) * | 2018-06-28 | 2018-11-23 | 努比亚技术有限公司 | OTG equipment, terminal charging method, mobile terminal and computer readable storage medium |
CN114297108A (en) * | 2021-12-16 | 2022-04-08 | 深圳市格安电子有限公司 | Multifunctional multi-protocol interface converter |
CN114297108B (en) * | 2021-12-16 | 2024-05-14 | 深圳市格安电子有限公司 | Multifunctional multi-protocol interface converter |
Also Published As
Publication number | Publication date |
---|---|
WO2018058946A1 (en) | 2018-04-05 |
CN107885688B (en) | 2021-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109600694B (en) | Wireless earphone pairing method and device, terminal and charging box | |
CN107885688A (en) | A kind of signal switching method and device | |
JP5388484B2 (en) | Apparatus and method for detecting power supply | |
CN106537719A (en) | Electronic device, charger, charging system, and charging method | |
US20080140887A1 (en) | Enhanced communication via a serial interface | |
CN106571663B (en) | Charging method, terminal and charging adapter | |
CN106532882B (en) | A kind of charge control method and device | |
CN104216840B (en) | The method and device that a kind of USB sets and operated to external equipment | |
CN105576727B (en) | Method, device and system for quick charging | |
TW201715412A (en) | Charging method, mobile terminal, and charging device | |
CN105549712B (en) | A kind of method of supplying power to, power supply mould group and electronic equipment | |
CN107516919B (en) | A kind of charging method and charger | |
CN106802872A (en) | A kind of method and terminal that equipment room charging is carried out by USB interface | |
CN104135057A (en) | Terminal, charger and charging method | |
EP3820168A1 (en) | Microphone hole blockage detection method and related product | |
CN108964187A (en) | The charging method of terminal and terminal room | |
CN107707000A (en) | A kind of OTG power supplies and wireless charging compatible circuit and correlation technique and terminal device | |
CN106597143A (en) | Test device and test method | |
CN106786904A (en) | Charging system of selection, device and charging equipment | |
CN105048018B (en) | The charging method and device of a kind of terminal with data exchanging function | |
CN109275058B (en) | Dual mode earphone system, bluetooth device and cable | |
CN110492575A (en) | For the quick charging system and method for handheld device, handheld device | |
CN107681730A (en) | A kind of battery, terminal device, charging system, the recognition methods of battery and device | |
CN208443947U (en) | A kind of multi-functional wire of novel intelligent based on code communication | |
CN106706998A (en) | Terminal test system and terminal test method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |