CN103092793B - A kind of changing method and electric terminal - Google Patents

A kind of changing method and electric terminal Download PDF

Info

Publication number
CN103092793B
CN103092793B CN201110340317.6A CN201110340317A CN103092793B CN 103092793 B CN103092793 B CN 103092793B CN 201110340317 A CN201110340317 A CN 201110340317A CN 103092793 B CN103092793 B CN 103092793B
Authority
CN
China
Prior art keywords
electric terminal
transmission state
trigger event
event information
external unit
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
CN201110340317.6A
Other languages
Chinese (zh)
Other versions
CN103092793A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201110340317.6A priority Critical patent/CN103092793B/en
Publication of CN103092793A publication Critical patent/CN103092793A/en
Application granted granted Critical
Publication of CN103092793B publication Critical patent/CN103092793B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The present invention discloses a kind of changing method and electric terminal.Described method comprises: obtain trigger event information; Judge whether described trigger event information meets preset trigger condition, obtain judged result; When described judged result shows that described trigger event information meets the first preset trigger condition, described electric terminal is set to the first transmission state; When described judged result shows that described trigger event information meets the second preset trigger condition, described electric terminal is set to the second transmission state.Adopt method of the present invention or electric terminal, can carry out multiplexing for the data transmission interface of a script simple function, particularly can utilize earphone interface transmitting control data of the prior art, the data transmission between electric terminal and external unit can be realized, and reduce the cost of data transmission.

Description

A kind of changing method and electric terminal
Technical field
The present invention relates to field of data transmission, particularly relate to a kind of changing method and electric terminal.
Background technology
At present, from strength to strength, the external unit (abbreviation peripheral hardware) that can be connected with electric terminal also gets more and more the function of electric terminal.Some peripheral hardware is as extended memory, and Hi-Fi (High-Fidelity, high-fidelity) audio amplifier etc., need to use USB or Wi-Fi interface.But the peripheral hardware of some lower rate transmissions does not need such interface, the peripheral hardware of lampet such as thrown light on and so on.This is because data (control signal) transmission of control field (such as, robot, automobile, toy) does not need extra high bandwidth.
In prior art, for the peripheral hardware be connected with electric terminal, no matter the transmission of its data is the need of higher bandwidth, usually all adopt the communication that USB interface or blue tooth interface realize between electric terminal and peripheral hardware.But, due to USB interface or blue tooth interface to realize cost high, cause adopting the cost of the peripheral hardware of the corresponding interface also very high.Especially as the low cost peripheral hardware of illumination lampet and so on, the USB interface or the blue tooth interface that adopt high cost is more not suitable for.
Summary of the invention
The object of this invention is to provide a kind of changing method and electric terminal, the data transmission between electric terminal and external unit can be realized, and reduce the cost of data transmission.
For achieving the above object, the invention provides following scheme:
A kind of changing method, for electric terminal, described electric terminal has data transmission interface, described electric terminal has the first transmission state and the second transmission state, wherein, described first transmission state is according to described first data transmission parameter, by the state of described data transmission interface transmission data; Described second transmission state is according to second data transmission parameters different from described first data transmission parameter, by the state of described data transmission interface transmission data; Described method comprises:
Obtain trigger event information;
Judge whether described trigger event information meets preset trigger condition, obtain judged result;
When described judged result shows that described trigger event information meets the first preset trigger condition, described electric terminal is set to the first transmission state;
When described judged result shows that described trigger event information meets the second preset trigger condition, described electric terminal is set to the second transmission state.
Preferably, described acquisition trigger event information comprises:
Detect described electric terminal whether to be connected with an external unit by described data transmission interface, obtain testing result;
When described testing result shows that described electric terminal is connected with an external unit by described data transmission interface, obtain trigger event information.
Preferably, described acquisition trigger event information comprises:
When described electric terminal is connected with an external unit by described data transmission interface, detect operation information;
According to described operation information acquisition trigger event information.
Preferably, describedly judge whether described trigger event information meets preset trigger condition, obtain judged result; When described judged result shows that described trigger event information meets the first preset trigger condition, described electric terminal is set to the first transmission state; When described judged result shows that described trigger event information meets the second preset trigger condition, described electric terminal is set to the second transmission state; Comprise:
Obtain the external unit type information in described trigger event information;
When described external unit type information represents that described external unit type is the first kind, described electric terminal is set to the first transmission state;
When described external unit type information represents that described external unit type is Second Type, described electric terminal is set to the second transmission state.
Preferably, describedly judge whether described trigger event information meets preset trigger condition, obtain judged result; When described judged result shows that described trigger event information meets the first preset trigger condition, described electric terminal is set to the first transmission state; When described judged result shows that described trigger event information meets the second preset trigger condition, described electric terminal is set to the second transmission state; Comprise:
The operator scheme obtained in described trigger event information selects information;
When described operator scheme selects information to represent selection first mode, described electric terminal is set to the first transmission state;
When described operator scheme selects information to represent selection the second pattern, described electric terminal is set to the second transmission state.
Preferably, described first data transmission parameter is the first voltage parameter; Described second data transmission parameters is the second voltage parameter; The numerical value of described first voltage parameter is less than the numerical value of described second voltage parameter.
Preferably, described acquisition trigger event information; Judge whether described trigger event information meets preset trigger condition, obtain judged result; Comprise:
Obtain the rated voltage information of the external unit be connected with described data transmission interface;
Judge whether described rated voltage is greater than predeterminated voltage.
Preferably, described first transmission state is at least one road transmission of analogue signal; Described second transmission state is at least one road transmission of digital signals.
Preferably, described acquisition trigger event information; Judge whether described trigger event information meets preset trigger condition, obtain judged result; Comprise:
Obtain the working signal pattern information of the external unit be connected with described data transmission interface;
Judge whether described working signal pattern is digital signal mode of operation.
Preferably, describedly described electric terminal be set to the first transmission state comprise:
When described working signal pattern is simulating signal mode of operation, when described electric terminal is operated in described second transmission state, described electric terminal is switched to described simulating signal mode of operation by described digital signal mode of operation;
Describedly described electric terminal be set to the second transmission state comprise:
When described working signal pattern is digital signal mode of operation, when described electric terminal is operated in described first transmission state, described electric terminal is switched to described digital signal mode of operation by described simulating signal mode of operation.
Preferably, described first transmission state is, supports the transmission state of two-way voice output and a road Speech input; Described second transmission state is, supports the transmission state that a railway digital input and a railway digital export.
A kind of electric terminal, described electric terminal has data transmission interface, and described electric terminal has the first transmission state and the second transmission state, wherein, described first transmission state is according to described first data transmission parameter, by the state of described data transmission interface transmission data; Described second transmission state is according to second data transmission parameters different from described first data transmission parameter, by the state of described data transmission interface transmission data; Described electric terminal comprises:
Trigger event information acquisition module, for obtaining trigger event information;
Judge module, for judging whether described trigger event information meets preset trigger condition, obtains judged result;
First transmission state arranges module, during for showing that when described judged result described trigger event information meets the first preset trigger condition, described electric terminal is set to the first transmission state;
Second transmission state arranges module, during for showing that when described judged result described trigger event information meets the second preset trigger condition, described electric terminal is set to the second transmission state.
Preferably, described trigger event information acquisition module comprises:
Whether external unit detecting unit, be connected with an external unit by described data transmission interface for detecting described electric terminal, obtains testing result;
First trigger event information acquiring unit, for when described testing result shows that described electric terminal is connected with an external unit by described data transmission interface, obtains trigger event information.
Preferably, described trigger event information acquisition module comprises:
Operation information detecting unit, for when described electric terminal is connected with an external unit by described data transmission interface, detects operation information;
Second trigger event information acquiring unit, for according to described operation information acquisition trigger event information.
Preferably, described external unit detecting unit comprises:
External unit type information obtains subelement, for obtaining the external unit type information in described trigger event information;
Described first transmission state arranges module and comprises:
First transmission state arranges subelement, for when described external unit type information represents that described external unit type is the first kind, described electric terminal is set to the first transmission state;
Described second transmission state arranges module and comprises:
Second transmission state arranges subelement, for when described external unit type information represents that described external unit type is Second Type, described electric terminal is set to the second transmission state.
Preferably, described operation information detecting unit comprises:
Operator scheme selects acquisition of information subelement, selects information for the operator scheme obtained in described trigger event information;
Described first transmission state arranges module and comprises:
3rd transmission state arranges subelement, when selecting first mode for selecting information to represent when described operator scheme, described electric terminal is set to the first transmission state;
Described second transmission state arranges module and comprises:
4th transmission state arranges subelement, during for selecting information to represent selection the second pattern when described operator scheme, described electric terminal is set to the second transmission state.
Preferably, described trigger event information acquisition module, comprising:
Rated voltage information acquisition unit, for obtaining the rated voltage information of the external unit be connected with described data transmission interface;
Voltage judging unit, for judging whether described rated voltage is greater than predeterminated voltage.
Preferably, described trigger event information acquisition module, comprising:
Working signal pattern information acquiring unit, for obtaining the working signal pattern information of the external unit be connected with described data transmission interface;
Mode of operation judging unit, for judging whether described working signal pattern is digital signal mode of operation.
Preferably, also comprise:
First Working mode changeover unit, for when described working signal pattern be simulating signal mode of operation, when described electric terminal is operated in described second transmission state, described electric terminal is switched to described simulating signal mode of operation by described digital signal mode of operation;
Second Working mode changeover unit, for when described working signal pattern be digital signal mode of operation, when described electric terminal is operated in described first transmission state, described electric terminal is switched to described digital signal mode of operation by described simulating signal mode of operation.
According to specific embodiment provided by the invention, the invention discloses following technique effect:
Changing method of the present invention, due to can according to the trigger event information relevant with external unit, switch different transmission states, therefore, can carry out multiplexing for the data transmission interface of a script simple function, particularly can utilize earphone interface transmitting control data of the prior art, the data transmission between electric terminal and external unit can be realized, and reduce the cost of data transmission.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment below, 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 process flow diagram of changing method embodiment 1 of the present invention;
Fig. 2 is the process flow diagram of changing method embodiment 2 of the present invention;
Fig. 3 is the process flow diagram of changing method embodiment 3 of the present invention
Fig. 4 is the process flow diagram of changing method embodiment 4 of the present invention;
Fig. 5 is the process flow diagram of changing method embodiment 5 of the present invention;
Fig. 6 is the structural drawing of electric terminal embodiment 1 of the present invention;
Fig. 7 is the structural drawing of electric terminal embodiment 2 of the present invention;
Fig. 8 is the structural drawing of electric terminal embodiment 3 of the present invention;
Fig. 9 is the structural drawing of electric terminal embodiment 4 of the present invention;
Figure 10 is the structural drawing of electric terminal embodiment 5 of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
Fig. 1 is the process flow diagram of changing method embodiment 1 of the present invention.The method is used for electric terminal, described electric terminal has data transmission interface, it is characterized in that, described electric terminal has the first transmission state and the second transmission state, wherein, described first transmission state is according to described first data transmission parameter, by the state of described data transmission interface transmission data; Described second transmission state is according to second data transmission parameters different from described first data transmission parameter, by the state of described data transmission interface transmission data.As shown in Figure 1, the method comprising the steps of:
S101: obtain trigger event information;
Described trigger event information, when can be external unit be connected with the electric terminal performing this method, the trigger pip sent by external unit, also, after can be external unit be connected with the electric terminal performing this method, the electric terminal performing this method detects and is connected with external unit and the trigger pip that produced by electric terminal; Manual operation can also be carried out by user to electric terminal, and then produce trigger pip.
The content of trigger event information mainly contains the device type (namely can receive digital signal or simulating signal) of external unit, and (if ear speaker device, required voltage is lower for the voltage value needed for external unit; If peripheral hardwares such as lampets, required voltage is higher).
S102: judge whether described trigger event information meets preset trigger condition, obtains judged result;
In this step, when the content of described trigger event information is the device type of external unit, described preset trigger condition can be external unit is digital device, or external unit is analog machine; When voltage value needed for external unit of the content of described trigger event information, described preset trigger condition can be that the voltage value needed for external unit is greater than (or being less than) a certain predetermined threshold value.
S103: when described judged result shows that described trigger event information meets the first preset trigger condition, described electric terminal is set to the first transmission state;
When the content of described trigger event information is the device type of external unit, described first preset trigger condition can be external unit is digital device; When described judged result shows that described trigger event information meets the first preset trigger condition, described electric terminal is set to the first transmission state, then described electric terminal can be set to the transmission state having a-road-through road transmission of digital signals at least.Certainly, described first preset trigger condition also can be external unit is analog machine, accordingly, described electric terminal is set to the first transmission state, can be the transmission state being set to described electric terminal to have at least a-road-through road transmission of analogue signal.
When voltage value needed for external unit of the content of described trigger event information, described first preset trigger condition can be that external unit required voltage is greater than predetermined threshold value; When described judged result shows that described trigger event information meets the first preset trigger condition, described electric terminal is set to the first transmission state, then described electric terminal can be set to the transmission state providing high voltage.Certainly, described first preset trigger condition also can be that external unit required voltage is less than predetermined threshold value, accordingly, described electric terminal is set to the first transmission state, can be the transmission state being set to described electric terminal to provide low voltage.
S104: when described judged result shows that described trigger event information meets the second preset trigger condition, described electric terminal is set to the second transmission state.
This step is identical with the principle of step S103, and just second is pre-conditioned pre-conditioned different from first, do not repeat them here.
Adopt changing method of the present invention, due to can according to the trigger event information relevant with external unit, switch different transmission states, therefore, can carry out multiplexing for the data transmission interface of a script simple function, particularly can utilize earphone interface transmitting control data of the prior art, the data transmission between electric terminal and external unit can be realized, and reduce the cost of data transmission.
Fig. 2 is the process flow diagram of changing method embodiment 2 of the present invention.As shown in Figure 2, the method comprising the steps of:
S201: detect described electric terminal and whether be connected with an external unit by described data transmission interface, obtains testing result;
The executive agent of this step is electric terminal.Electric terminal can detect the external unit whether existing and be connected with self by described data transmission interface.
S202: when described testing result shows that described electric terminal is connected with an external unit by described data transmission interface, obtains trigger event information;
When there is the external unit be connected with self by described data transmission interface, obtain trigger event information.
S203: obtain the external unit type information in described trigger event information;
S204: when described external unit type information represents that described external unit type is digital device, described electric terminal is set to the transmission state of at least one road tunnel digital signal;
For the conventional earphone interface with four paths, the transmission state of this earphone interface can be set to: a road provides power supply signal, a road ground connection, a road receives the digital signal of external unit input, a road direction external unit output digit signals.
It should be noted that, the path of each road transmission of digital signals, can adopt simultaneously two-way, or the transmission mode such as timesharing is two-way.
S205: when described external unit type information represents that described external unit type is analog machine, described electric terminal is set to the transmission state of at least one road tunnel simulating signal.
For the conventional earphone interface with four paths, the transmission state of this earphone interface can be set to: a road receives microphone input signal, a road ground connection, a road exports left channel signals, and a road exports right-channel signals.
The changing method of the present embodiment, due to can according to the type of external unit, switch between digital data transmission state and analog signal transmission state, therefore, can carry out multiplexing for the data transmission interface of a script simple function, particularly can utilize the earphone interface transmission of digital signals of transmission of analogue signal in prior art, the digital data transmission between electric terminal and external unit can be realized, and reduce the cost of digital data transmission.
Fig. 3 is the process flow diagram of changing method embodiment 3 of the present invention.As shown in Figure 3, the method comprising the steps of:
S301: detect described electric terminal and whether be connected with an external unit by described data transmission interface, obtains testing result;
The executive agent of this step is electric terminal.Electric terminal can detect the external unit whether existing and be connected with self by described data transmission interface.
S302: when described testing result shows that described electric terminal is connected with an external unit by described data transmission interface, obtains trigger event information;
When there is the external unit be connected with self by described data transmission interface, obtain trigger event information.
S303: obtain the rated voltage information in described trigger event information;
S304: when the rated voltage of described external unit is greater than predeterminated voltage, described electric terminal is set to high voltage transmission state;
For the conventional earphone interface with four paths, the transmission state of this earphone interface can be set to: a road provides power supply signal, a road ground connection, a road receives the digital signal of external unit input, a road direction external unit output digit signals.
It should be noted that, the voltage now providing the path of power supply signal to provide is greater than the voltage needed for common ear speaker device.
S305: when the rated voltage of described external unit is less than predeterminated voltage, described electric terminal is set to low-voltage transmission state;
The voltage now providing the path of power supply signal to provide can equal the voltage needed for common ear speaker device.
The changing method of the present embodiment, due to can according to the rated voltage of external unit, switch between high voltage transmission state and low-voltage transmission state, therefore, can carry out multiplexing for the data transmission interface of a script simple function, the earphone interface of low-voltage transmission state in prior art particularly can being utilized to power for needing the external unit of high voltage, the power supply between electric terminal and external unit and data transmission can be realized, and reduce the cost of data transmission.
Fig. 4 is the process flow diagram of changing method embodiment 4 of the present invention.As shown in Figure 4, the method comprising the steps of:
S401: when described electric terminal is connected with an external unit by described data transmission interface, detect operation information;
The executive agent of this step is electric terminal.When described electric terminal is connected with an external unit by described data transmission interface, electric terminal can detect the operation information of outside input.Concrete, can, when connecting external unit, select the equipment connected to be analog machine or digital device by user.User selects the information of rear input to be operation information.
S402: according to described operation information acquisition trigger event information;
When outside inputs described operation information, this operation information can be thought trigger event information.
S403: obtain the external unit type information in described trigger event information;
S404: when described external unit type information represents that described external unit type is digital device, described electric terminal is set to the transmission state of at least one road tunnel digital signal;
For the conventional earphone interface with four paths, the transmission state of this earphone interface can be set to: a road provides power supply signal, a road ground connection, a road receives the digital signal of external unit input, a road direction external unit output digit signals.
It should be noted that, the path of each road transmission of digital signals, can adopt simultaneously two-way, or the transmission mode such as timesharing is two-way.
S405: when described external unit type information represents that described external unit type is analog machine, described electric terminal is set to the transmission state of at least one road tunnel simulating signal.
For the conventional earphone interface with four paths, the transmission state of this earphone interface can be set to: a road receives microphone input signal, a road ground connection, a road exports left channel signals, and a road exports right-channel signals.
The changing method of the present embodiment, due to can according to the type of external unit, switch between digital data transmission state and analog signal transmission state, therefore, can carry out multiplexing for the data transmission interface of a script simple function, particularly can utilize the earphone interface transmission of digital signals of transmission of analogue signal in prior art, the digital data transmission between electric terminal and external unit can be realized, and reduce the cost of digital data transmission.
The difference of the embodiment that the present embodiment and Fig. 2 provide is, in the present embodiment, trigger event information can be inputted by user.
Fig. 5 is the process flow diagram of changing method embodiment 5 of the present invention.As shown in Figure 5, the method comprising the steps of:
S501: when described electric terminal is connected with an external unit by described data transmission interface, detect operation information;
The executive agent of this step is electric terminal.When described electric terminal is connected with an external unit by described data transmission interface, electric terminal can detect the operation information of outside input.Concrete, when connecting external unit, the nominal voltage number of the equipment connected can be selected by user.User selects the information of rear input to be operation information.
S502: according to described operation information acquisition trigger event information;
When outside inputs described operation information, this operation information can be thought trigger event information.
S503: obtain the rated voltage information in described trigger event information;
S504: when the rated voltage of described external unit is greater than predeterminated voltage, described electric terminal is set to high voltage transmission state;
For the conventional earphone interface with four paths, the transmission state of this earphone interface can be set to: a road provides power supply signal, a road ground connection, a road receives the digital signal of external unit input, a road direction external unit output digit signals.
It should be noted that, the voltage now providing the path of power supply signal to provide is greater than the voltage needed for common ear speaker device.
S505: when the rated voltage of described external unit is less than predeterminated voltage, described electric terminal is set to low-voltage transmission state;
The voltage now providing the path of power supply signal to provide can equal the voltage needed for common ear speaker device.
The changing method of the present embodiment, due to can according to the rated voltage of external unit, switch between high voltage transmission state and low-voltage transmission state, therefore, can carry out multiplexing for the data transmission interface of a script simple function, the earphone interface of low-voltage transmission state in prior art particularly can being utilized to power for needing the external unit of high voltage, the power supply between electric terminal and external unit and data transmission can be realized, and reduce the cost of data transmission.
The difference of the embodiment that the present embodiment and Fig. 2 provide is, in the present embodiment, trigger event information can be inputted by user.
In addition, it should be noted that, in whole embodiments of changing method of the present invention, described electric terminal be set to the first transmission state and all can comprise:
When described working signal pattern is simulating signal mode of operation, when described electric terminal is operated in described second transmission state, described electric terminal is switched to described simulating signal mode of operation by described digital signal mode of operation;
Describedly described electric terminal is set to the second transmission state all can comprises:
When described working signal pattern is digital signal mode of operation, when described electric terminal is operated in described first transmission state, described electric terminal is switched to described digital signal mode of operation by described simulating signal mode of operation.
Present invention also offers a kind of electric terminal, described electric terminal has data transmission interface, it is characterized in that, described electric terminal has the first transmission state and the second transmission state, wherein, described first transmission state is according to described first data transmission parameter, by the state of described data transmission interface transmission data; Described second transmission state is according to second data transmission parameters different from described first data transmission parameter, by the state of described data transmission interface transmission data.
Fig. 6 is the structural drawing of electric terminal embodiment 1 of the present invention.As shown in Figure 6, this electric terminal can comprise:
Trigger event information acquisition module 601, for obtaining trigger event information;
Judge module 602, for judging whether described trigger event information meets preset trigger condition, obtains judged result;
First transmission state arranges module 603, during for showing that when described judged result described trigger event information meets the first preset trigger condition, described electric terminal is set to the first transmission state;
Second transmission state arranges module 604, during for showing that when described judged result described trigger event information meets the second preset trigger condition, described electric terminal is set to the second transmission state.
Electric terminal of the present invention, due to can according to the trigger event information relevant with external unit, switch different transmission states, therefore, can carry out multiplexing for the data transmission interface of a script simple function, particularly can utilize earphone interface transmitting control data of the prior art, the data transmission between electric terminal and external unit can be realized, and reduce the cost of data transmission.
Fig. 7 is the structural drawing of electric terminal embodiment 2 of the present invention.As shown in Figure 7, this electric terminal can comprise:
Whether external unit detecting unit 701, be connected with an external unit by described data transmission interface for detecting described electric terminal, obtains testing result;
First trigger event information acquiring unit 702, for when described testing result shows that described electric terminal is connected with an external unit by described data transmission interface, obtains trigger event information;
Judge module 602, for judging whether described trigger event information meets preset trigger condition, obtains judged result;
First transmission state arranges module 603, during for showing that when described judged result described trigger event information meets the first preset trigger condition, described electric terminal is set to the first transmission state;
Second transmission state arranges module 604, during for showing that when described judged result described trigger event information meets the second preset trigger condition, described electric terminal is set to the second transmission state.
Fig. 8 is the structural drawing of electric terminal embodiment 3 of the present invention.As shown in Figure 8, this electric terminal can comprise:
Operation information detecting unit 801, for when described electric terminal is connected with an external unit by described data transmission interface, detects operation information;
Second trigger event information acquiring unit 802, for according to described operation information acquisition trigger event information.
Judge module 602, for judging whether described trigger event information meets preset trigger condition, obtains judged result;
First transmission state arranges module 603, during for showing that when described judged result described trigger event information meets the first preset trigger condition, described electric terminal is set to the first transmission state;
Second transmission state arranges module 604, during for showing that when described judged result described trigger event information meets the second preset trigger condition, described electric terminal is set to the second transmission state.
The difference of the embodiment that the present embodiment and Fig. 7 provide is, in the present embodiment, trigger event information can be inputted by user.
Fig. 9 is the structural drawing of electric terminal embodiment 4 of the present invention.As shown in Figure 9, this electric terminal can comprise:
Whether external unit detecting unit 701, be connected with an external unit by described data transmission interface for detecting described electric terminal, obtains testing result;
First trigger event information acquiring unit 702, for when described testing result shows that described electric terminal is connected with an external unit by described data transmission interface, obtains trigger event information;
External unit type information obtains subelement 901, for obtaining the external unit type information in described trigger event information;
First transmission state arranges subelement 902, for when described external unit type information represents that described external unit type is the first kind, described electric terminal is set to the first transmission state;
Second transmission state arranges subelement 903, for when described external unit type information represents that described external unit type is Second Type, described electric terminal is set to the second transmission state.
The electric terminal of the present embodiment, due to can according to the type of external unit, switch between digital data transmission state and analog signal transmission state, therefore, can carry out multiplexing for the data transmission interface of a script simple function, particularly can utilize the earphone interface transmission of digital signals of transmission of analogue signal in prior art, the digital data transmission between electric terminal and external unit can be realized, and reduce the cost of digital data transmission.
Figure 10 is the structural drawing of electric terminal embodiment 5 of the present invention.As shown in Figure 10, this electric terminal can comprise:
Operation information detecting unit 801, for when described electric terminal is connected with an external unit by described data transmission interface, detects operation information;
Second trigger event information acquiring unit 802, for according to described operation information acquisition trigger event information.
Operator scheme selects acquisition of information subelement 1001, selects information for the operator scheme obtained in described trigger event information;
3rd transmission state arranges subelement 1002, when selecting first mode for selecting information to represent when described operator scheme, described electric terminal is set to the first transmission state;
4th transmission state arranges subelement 1003, during for selecting information to represent selection the second pattern when described operator scheme, described electric terminal is set to the second transmission state.
The electric terminal of the present embodiment, due to can according to the rated voltage of external unit, switch between high voltage transmission state and low-voltage transmission state, therefore, can carry out multiplexing for the data transmission interface of a script simple function, the earphone interface of low-voltage transmission state in prior art particularly can being utilized to power for needing the external unit of high voltage, the power supply between electric terminal and external unit and data transmission can be realized, and reduce the cost of data transmission.
In addition it should be noted that, in practical application, trigger event information acquisition module 601 of the present invention, all can comprise:
Rated voltage information acquisition unit, for obtaining the rated voltage information of the external unit be connected with described data transmission interface;
Voltage judging unit, for judging whether described rated voltage is greater than predeterminated voltage.
Can also comprise:
Working signal pattern information acquiring unit, for obtaining the working signal pattern information of the external unit be connected with described data transmission interface;
Mode of operation judging unit, for judging whether described working signal pattern is digital signal mode of operation.
In practical application, electric terminal of the present invention can also comprise:
First Working mode changeover unit, for when described working signal pattern be simulating signal mode of operation, when described electric terminal is operated in described second transmission state, described electric terminal is switched to described simulating signal mode of operation by described digital signal mode of operation;
Second Working mode changeover unit, for when described working signal pattern be digital signal mode of operation, when described electric terminal is operated in described first transmission state, described electric terminal is switched to described digital signal mode of operation by described simulating signal mode of operation.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For system disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
Apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications.In sum, this description should not be construed as limitation of the present invention.

Claims (19)

1. a changing method, for electric terminal, described electric terminal has data transmission interface, it is characterized in that, described electric terminal has the first transmission state and the second transmission state, wherein, described first transmission state is according to first data transmission parameter, by the state of described data transmission interface transmission data; Described second transmission state is according to second data transmission parameters different from described first data transmission parameter, by the state of described data transmission interface transmission data; Described data transmission interface comprises earphone interface, and wherein the channel status of earphone interface is respectively with described first transmission state with described second transmission state is corresponding arranges, and described method comprises:
Obtain trigger event information;
Judge whether described trigger event information meets preset trigger condition, obtain judged result;
When described judged result shows that described trigger event information meets the first preset trigger condition, described electric terminal is set to the first transmission state;
When described judged result shows that described trigger event information meets the second preset trigger condition, described electric terminal is set to the second transmission state.
2. method according to claim 1, is characterized in that, described acquisition trigger event information comprises:
Detect described electric terminal whether to be connected with an external unit by described data transmission interface, obtain testing result;
When described testing result shows that described electric terminal is connected with an external unit by described data transmission interface, obtain trigger event information.
3. method according to claim 1, is characterized in that, described acquisition trigger event information comprises:
When described electric terminal is connected with an external unit by described data transmission interface, detect operation information;
According to described operation information acquisition trigger event information.
4. method according to claim 2, is characterized in that, describedly judges whether described trigger event information meets preset trigger condition, obtains judged result; When described judged result shows that described trigger event information meets the first preset trigger condition, described electric terminal is set to the first transmission state; When described judged result shows that described trigger event information meets the second preset trigger condition, described electric terminal is set to the second transmission state; Comprise:
Obtain the external unit type information in described trigger event information;
When described external unit type information represents that described external unit type is the first kind, described electric terminal is set to the first transmission state;
When described external unit type information represents that described external unit type is Second Type, described electric terminal is set to the second transmission state.
5. method according to claim 3, is characterized in that, describedly judges whether described trigger event information meets preset trigger condition, obtains judged result; When described judged result shows that described trigger event information meets the first preset trigger condition, described electric terminal is set to the first transmission state; When described judged result shows that described trigger event information meets the second preset trigger condition, described electric terminal is set to the second transmission state; Comprise:
The operator scheme obtained in described trigger event information selects information;
When described operator scheme selects information to represent selection first mode, described electric terminal is set to the first transmission state;
When described operator scheme selects information to represent selection the second pattern, described electric terminal is set to the second transmission state.
6. the method according to any one of claim 1 to 5, is characterized in that, described first data transmission parameter is the first voltage parameter; Described second data transmission parameters is the second voltage parameter; The numerical value of described first voltage parameter is less than the numerical value of described second voltage parameter.
7. method according to claim 6, is characterized in that, described acquisition trigger event information; Judge whether described trigger event information meets preset trigger condition, obtain judged result; Comprise:
Obtain the rated voltage information of the external unit be connected with described data transmission interface;
Judge whether described rated voltage is greater than predeterminated voltage.
8. the method according to any one of claim 1 to 5, is characterized in that, described first transmission state is at least one road transmission of analogue signal; Described second transmission state is at least one road transmission of digital signals.
9. method according to claim 8, is characterized in that, described acquisition trigger event information; Judge whether described trigger event information meets preset trigger condition, obtain judged result; Comprise:
Obtain the working signal pattern information of the external unit be connected with described data transmission interface;
Judge whether described working signal pattern is digital signal mode of operation.
10. method according to claim 9, is characterized in that, describedly described electric terminal is set to the first transmission state comprises:
When described working signal pattern is simulating signal mode of operation, when described electric terminal is operated in described second transmission state, described electric terminal is switched to described simulating signal mode of operation by described digital signal mode of operation;
Describedly described electric terminal be set to the second transmission state comprise:
When described working signal pattern is digital signal mode of operation, when described electric terminal is operated in described first transmission state, described electric terminal is switched to described digital signal mode of operation by described simulating signal mode of operation.
11. methods according to claim 8, is characterized in that, described first transmission state is, support the transmission state of two-way voice output and a road Speech input; Described second transmission state is, supports the transmission state that a railway digital input and a railway digital export.
12. 1 kinds of electric terminals, described electric terminal has data transmission interface, it is characterized in that, described electric terminal has the first transmission state and the second transmission state, wherein, described first transmission state is according to first data transmission parameter, by the state of described data transmission interface transmission data; Described second transmission state is according to second data transmission parameters different from described first data transmission parameter, by the state of described data transmission interface transmission data; Described data transmission interface comprises earphone interface, and wherein the channel status of earphone interface is respectively with described first transmission state with described second transmission state is corresponding arranges, and described electric terminal comprises:
Trigger event information acquisition module, for obtaining trigger event information;
Judge module, for judging whether described trigger event information meets preset trigger condition, obtains judged result;
First transmission state arranges module, during for showing that when described judged result described trigger event information meets the first preset trigger condition, described electric terminal is set to the first transmission state;
Second transmission state arranges module, during for showing that when described judged result described trigger event information meets the second preset trigger condition, described electric terminal is set to the second transmission state.
13. electric terminals according to claim 12, is characterized in that, described trigger event information acquisition module comprises:
Whether external unit detecting unit, be connected with an external unit by described data transmission interface for detecting described electric terminal, obtains testing result;
First trigger event information acquiring unit, for when described testing result shows that described electric terminal is connected with an external unit by described data transmission interface, obtains trigger event information.
14. electric terminals according to claim 12, is characterized in that, described trigger event information acquisition module comprises:
Operation information detecting unit, for when described electric terminal is connected with an external unit by described data transmission interface, detects operation information;
Second trigger event information acquiring unit, for according to described operation information acquisition trigger event information.
15. electric terminals according to claim 13, is characterized in that, described external unit detecting unit comprises:
External unit type information obtains subelement, for obtaining the external unit type information in described trigger event information;
Described first transmission state arranges module and comprises:
First transmission state arranges subelement, for when described external unit type information represents that described external unit type is the first kind, described electric terminal is set to the first transmission state;
Described second transmission state arranges module and comprises:
Second transmission state arranges subelement, for when described external unit type information represents that described external unit type is Second Type, described electric terminal is set to the second transmission state.
16. electric terminals according to claim 14, is characterized in that, described operation information detecting unit comprises:
Operator scheme selects acquisition of information subelement, selects information for the operator scheme obtained in described trigger event information;
Described first transmission state arranges module and comprises:
3rd transmission state arranges subelement, when selecting first mode for selecting information to represent when described operator scheme, described electric terminal is set to the first transmission state;
Described second transmission state arranges module and comprises:
4th transmission state arranges subelement, during for selecting information to represent selection the second pattern when described operator scheme, described electric terminal is set to the second transmission state.
17., according to claim 12 to the electric terminal described in 16 any one, is characterized in that, described trigger event information acquisition module, comprising:
Rated voltage information acquisition unit, for obtaining the rated voltage information of the external unit be connected with described data transmission interface;
Voltage judging unit, for judging whether described rated voltage is greater than predeterminated voltage.
18., according to claim 12 to the electric terminal described in 16 any one, is characterized in that, described trigger event information acquisition module, comprising:
Working signal pattern information acquiring unit, for obtaining the working signal pattern information of the external unit be connected with described data transmission interface;
Mode of operation judging unit, for judging whether described working signal pattern is digital signal mode of operation.
19. electric terminals according to claim 18, is characterized in that, also comprise:
First Working mode changeover unit, for when described working signal pattern be simulating signal mode of operation, when described electric terminal is operated in described second transmission state, described electric terminal is switched to described simulating signal mode of operation by described digital signal mode of operation;
Second Working mode changeover unit, for when described working signal pattern be digital signal mode of operation, when described electric terminal is operated in described first transmission state, described electric terminal is switched to described digital signal mode of operation by described simulating signal mode of operation.
CN201110340317.6A 2011-11-01 2011-11-01 A kind of changing method and electric terminal Active CN103092793B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110340317.6A CN103092793B (en) 2011-11-01 2011-11-01 A kind of changing method and electric terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110340317.6A CN103092793B (en) 2011-11-01 2011-11-01 A kind of changing method and electric terminal

Publications (2)

Publication Number Publication Date
CN103092793A CN103092793A (en) 2013-05-08
CN103092793B true CN103092793B (en) 2016-03-02

Family

ID=48205385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110340317.6A Active CN103092793B (en) 2011-11-01 2011-11-01 A kind of changing method and electric terminal

Country Status (1)

Country Link
CN (1) CN103092793B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103957073B (en) * 2014-03-21 2018-02-16 天地融科技股份有限公司 A kind of method carried out data transmission by COBBAIF
CN105187820B (en) * 2015-09-21 2017-08-25 深圳创维数字技术有限公司 A kind of signal transfer management method and set top box
CN105677254B (en) * 2016-01-06 2019-10-25 深圳市紫光同创电子有限公司 A kind of data processing method and device
CN105681018B (en) * 2016-01-14 2019-01-15 深圳市紫光同创电子有限公司 Data sending, receiving method and device and PCS transmitting and receiving device
CN107553487B (en) * 2017-08-22 2021-05-25 广东美的智能机器人有限公司 Mode switching method and device for robot
CN208207368U (en) * 2017-11-21 2018-12-07 深圳市大疆创新科技有限公司 Head-mounted display apparatus, aircraft and image delivering system
CN111885462B (en) * 2020-07-17 2022-08-05 上海艾为电子技术股份有限公司 Audio power amplifier circuit, power amplifier mode control method thereof and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1921664A (en) * 2005-08-25 2007-02-28 乐金电子(中国)研究开发中心有限公司 Digital communication apparatus employing digital communication cable for mobile communication terminal and method thereof
CN1949201A (en) * 2005-10-12 2007-04-18 盛群半导体股份有限公司 Connecting judging method and device of computer external device interface shape
CN101330336A (en) * 2007-06-18 2008-12-24 三星电子株式会社 Device-adaptive connection establishing method and system for a mobile terminal
CN101359316A (en) * 2007-08-03 2009-02-04 大唐移动通信设备有限公司 Method and apparatus for implementing general-purpose serial bus USB OTG
CN101534349A (en) * 2008-03-10 2009-09-16 三星电子株式会社 Method and apparatus for determining external connection device in mobile terminal
CN101739375A (en) * 2008-11-10 2010-06-16 三星电子株式会社 Control method of portable device connected external device and external device operation system using the same
CN101751361A (en) * 2008-12-16 2010-06-23 联想(北京)有限公司 Switchover method for controlling data transmission interface in mobile terminal and terminal equipment
TW201107991A (en) * 2009-08-26 2011-03-01 Hon Hai Prec Ind Co Ltd Electronic device capable of switching between a USB master and a USB slave mode automatically
CN102033590A (en) * 2009-09-27 2011-04-27 联想(北京)有限公司 Method, device and data processing equipment for supplying power to communication interface
CN201919041U (en) * 2010-12-02 2011-08-03 惠州Tcl移动通信有限公司 Terminal equipment with plurality of peripheral sharing interfaces
CN102158575A (en) * 2011-02-21 2011-08-17 深圳桑菲消费通信有限公司 Method for expanding USB (Universal Serial Bus) interface of mobile terminal into earphone interface

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ITMI20071104A1 (en) * 2007-05-31 2008-12-01 St Microelectronics Srl "CONTROL DEVICE FOR A USB INTERFACE AND ITS CONTROL METHOD"
US7730242B2 (en) * 2008-03-05 2010-06-01 Olympus Medical Systems Corp. Communication conversion system for switching first communication lines to second communication lines based on change in voltage state of detection-use pin

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1921664A (en) * 2005-08-25 2007-02-28 乐金电子(中国)研究开发中心有限公司 Digital communication apparatus employing digital communication cable for mobile communication terminal and method thereof
CN1949201A (en) * 2005-10-12 2007-04-18 盛群半导体股份有限公司 Connecting judging method and device of computer external device interface shape
CN101330336A (en) * 2007-06-18 2008-12-24 三星电子株式会社 Device-adaptive connection establishing method and system for a mobile terminal
CN101359316A (en) * 2007-08-03 2009-02-04 大唐移动通信设备有限公司 Method and apparatus for implementing general-purpose serial bus USB OTG
CN101534349A (en) * 2008-03-10 2009-09-16 三星电子株式会社 Method and apparatus for determining external connection device in mobile terminal
CN101739375A (en) * 2008-11-10 2010-06-16 三星电子株式会社 Control method of portable device connected external device and external device operation system using the same
CN101751361A (en) * 2008-12-16 2010-06-23 联想(北京)有限公司 Switchover method for controlling data transmission interface in mobile terminal and terminal equipment
TW201107991A (en) * 2009-08-26 2011-03-01 Hon Hai Prec Ind Co Ltd Electronic device capable of switching between a USB master and a USB slave mode automatically
CN102033590A (en) * 2009-09-27 2011-04-27 联想(北京)有限公司 Method, device and data processing equipment for supplying power to communication interface
CN201919041U (en) * 2010-12-02 2011-08-03 惠州Tcl移动通信有限公司 Terminal equipment with plurality of peripheral sharing interfaces
CN102158575A (en) * 2011-02-21 2011-08-17 深圳桑菲消费通信有限公司 Method for expanding USB (Universal Serial Bus) interface of mobile terminal into earphone interface

Also Published As

Publication number Publication date
CN103092793A (en) 2013-05-08

Similar Documents

Publication Publication Date Title
CN103092793B (en) A kind of changing method and electric terminal
US9936317B2 (en) Audio crosstalk calibration switch
CN103974163A (en) Earphone compatible method, earphone compatible device and mobile terminal
CN101431708A (en) Terminal and method for recognizing headphone type
CN103945310A (en) Transmission method, mobile terminal, multi-channel earphones and audio playing system
CN101719610A (en) Wired earphone compatible method and device
CN202503656U (en) Device used for earphone microphone line sequence changing-over, and mobile terminal thereof
CN109660975A (en) The switching method of principal and subordinate's earphone, main earphone, from earphone and bluetooth headset network
CN105848225A (en) Wireless connection switching method and device applied to audio playing system
CN202551149U (en) Mobile terminal capable of adaptively detecting microphone of earphone
WO2020043814A1 (en) Transfer of data between a user terminal and another device
CN101232742A (en) Earphone device capable of switching signal transmission
CN203691642U (en) Mobile terminal provided with multiplex interface
CN105338445A (en) Signal transmission device, method and mobile terminal
CN102143238A (en) Communication interface, switching circuit and switching method of communication interfaces
CN109298846A (en) Audio frequency transmission method, device, electronic equipment and storage medium
CN102883255B (en) Switching device, electronic signing tool, detection device and interface detection system
CN104883644A (en) Information processing method and an electronic device
CN105049998A (en) Audio communication device
ATE532319T1 (en) AUTOMATIC SWITCHING AND RANGE CALIBRATION OF A HEADPHONE INTERFACE UNIT
CN201066905Y (en) Dual-mode mobile phone with voice switching circuit
CN103581414A (en) Electronic equipment and communication event prompting method applied to same
CN105681995A (en) Automatic earphone type identification device and method
CN103052004A (en) Signal receiving device, earphone and conversion joint
KR101762923B1 (en) Audio equipment and audio output port

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant