CN103916151B - A kind of methods, devices and systems obtaining tone frequency channel wire sequence - Google Patents

A kind of methods, devices and systems obtaining tone frequency channel wire sequence Download PDF

Info

Publication number
CN103916151B
CN103916151B CN201210591815.2A CN201210591815A CN103916151B CN 103916151 B CN103916151 B CN 103916151B CN 201210591815 A CN201210591815 A CN 201210591815A CN 103916151 B CN103916151 B CN 103916151B
Authority
CN
China
Prior art keywords
frequency channel
tone frequency
terminal
channel wire
sequence
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.)
Expired - Fee Related
Application number
CN201210591815.2A
Other languages
Chinese (zh)
Other versions
CN103916151A (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.)
Beijing Watchdata Co ltd
Original Assignee
Beijing WatchData System Co 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 Beijing WatchData System Co Ltd filed Critical Beijing WatchData System Co Ltd
Priority to CN201210591815.2A priority Critical patent/CN103916151B/en
Publication of CN103916151A publication Critical patent/CN103916151A/en
Application granted granted Critical
Publication of CN103916151B publication Critical patent/CN103916151B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method, terminal and the system that obtain tone frequency channel wire sequence, described method comprises: after described terminal detects that external device is connected to described terminal by audio interface, obtains the type information being built in described terminal; Described terminal, according to described type information, by the corresponding relation of type information and tone frequency channel wire sequence information, obtains the tone frequency channel wire sequence information corresponding with described type information; Described tone frequency channel wire sequence information is sent to described external device by described terminal, so that described external device is according to described tone frequency channel wire sequence information, resolves the tone frequency channel wire sequence obtaining described terminal.By technical scheme of the present invention, for different terminals, external device correctly can obtain the tone frequency channel wire sequence of this terminal, thus realizes carrying out normal data interaction with terminal.

Description

A kind of methods, devices and systems obtaining tone frequency channel wire sequence
Technical field
The present invention relates to the mutual field of terminal audio frequency interface data, particularly a kind of method and system obtaining terminal audio frequency line sequence.
Background technology
At present, various external device obtains the implementation of the function such as high-speed data process or accesses network, mainly adopts external device be connected with various terminal and carry out data interaction with it.Especially, along with the popularity of the mobile terminal device such as mobile phone, pad is more and more higher, external device can be connected with mobile terminal by people, makes external device realize the functions such as high-speed data process or accesses network whenever and wherever possible.When being connected with terminal by external device, because all terminals all have audio interface, therefore, increasing terminal begins through audio interface and is connected with external device, to realize mutual data interaction.
At present, no matter the audio interface in all terminals, be 3.5 millimeters of bores or 2.5 millimeters of bores, have two kinds of line sequential modes.Wherein, a kind of tone frequency channel wire sequence be L channel, R channel, microphone; Another kind of tone frequency channel wire sequence be L channel, R channel, microphone.When external device is connected with terminal by audio interface by user, correct parsing is obtained in order to enable the signal between external device and terminal, the line sequence of external device its own interfaces needs to match with the line sequence of the audio interface of terminal, so, external device could carry out data interaction with terminal.Therefore, for same external device, for the tone frequency channel wire sequence of the connected terminal of interface line sequence ensureing this external device can match, this external device just needs the tone frequency channel wire sequence obtaining the terminal that it connects.
In the prior art, external device obtains the mode of the tone frequency channel wire sequence in terminal, is to be realized by the voltage in the microphone lines of external device sense terminals audio interface and ground wire or electric current.Such as, external device increases the voltage detecting circuit of microphone lines and ground wire, and set the threshold value of a voltage, when external device is accessed terminal by audio interface, the voltage of two lines in external device sense terminals interface except left and right sound channels, in this two line voltage be greater than voltage threshold as microphone lines, be less than voltage threshold as ground wire.
But due to the kind of terminal and the difference of manufacturer, different terminals, in its audio interface, the voltage and current of microphone lines and ground wire all has larger difference.So, by existing manner, no matter what kind of voltage or current threshold are set, the microphone lines of audio interface in all terminals and ground wire all can not distinguish by same external device, so, external device just correctly can not obtain the tone frequency channel wire sequence of terminal, thus just cannot carry out normal data interaction with terminal.
Summary of the invention
The problem to be solved in the present invention is to provide a kind of method and system obtaining tone frequency channel wire sequence, correctly can not obtain the defect of the tone frequency channel wire sequence of terminal to overcome external device in prior art.
For achieving the above object, the invention provides a kind of method obtaining tone frequency channel wire sequence, said method comprising the steps of:
After described terminal detects that external device is connected to described terminal by audio interface, obtain the type information being built in described terminal;
Described terminal, according to described type information, by the corresponding relation of type information and tone frequency channel wire sequence information, obtains the tone frequency channel wire sequence information corresponding with described type information;
Described tone frequency channel wire sequence information is sent to described external device by described terminal, so that described external device is according to described tone frequency channel wire sequence information, resolves the tone frequency channel wire sequence obtaining described terminal.
Preferably, described terminal is according to described type information, and by the corresponding relation of type information and tone frequency channel wire sequence information, the step obtaining the tone frequency channel wire sequence information corresponding with described type information specifically comprises:
Described type information whether is comprised in first corresponding relation of described terminal judges type information and tone frequency channel wire sequence information; Described first corresponding relation is preset in described terminal;
If so, then described terminal is by described first corresponding relation, extracts the tone frequency channel wire sequence information that described type information is corresponding;
If not, then described terminal is by the second corresponding relation of type information and tone frequency channel wire sequence information, extracts the tone frequency channel wire sequence that described type information is corresponding; Described second corresponding relation is preset in network side server.
Present invention also offers a kind of method obtaining tone frequency channel wire sequence, described method comprises:
After described terminal detects that external device is connected to described terminal by audio interface, obtain the type information being built in described terminal;
Described terminal, according to described type information, by the corresponding relation of type information and tone frequency channel wire sequence information, obtains the tone frequency channel wire sequence information corresponding with described type information;
Whether described terminal judges obtains tone frequency channel wire sequence information successful;
If so, then described tone frequency channel wire sequence information is sent to described external device by described terminal, so that described external device is according to described tone frequency channel wire sequence information, resolves the tone frequency channel wire sequence obtaining described terminal;
If not, then described terminal receives the line order sequenced data that described external device sends according to First Line sequence; Described terminal resolves described line order sequenced data according to the tone frequency channel wire sequence of described terminal, obtains resolution data; Whether resolution data described in described terminal judges is identical with described line order sequenced data; If so, then described terminal sends line sequence confirmation to described external device, so that described external device is according to described line sequence confirmation, described First Line sequence is retrieved as the tone frequency channel wire sequence of described terminal; If not, then described terminal sends line sequence adjustment information to described external device, so that described external device is according to described line sequence adjustment information, the second line sequence is retrieved as the tone frequency channel wire sequence of described terminal.
Preferably, described method also comprises:
Described external device utilizes the described tone frequency channel wire sequence obtained, and carries out data interaction with described terminal.
Preferably, described terminal is mobile terminal.
Present invention also offers a kind of terminal obtaining tone frequency channel wire sequence, described terminal comprises:
Type information acquisition module, after detecting that external device is connected to described terminal by audio interface, obtains the type information being built in described terminal;
Tone frequency channel wire sequence information extraction modules, for according to described type information, by the corresponding relation of type information and tone frequency channel wire sequence information, obtains the tone frequency channel wire sequence information corresponding with described type information;
First tone frequency channel wire sequence information sending module, for described tone frequency channel wire sequence information is sent to described external device, so that described external device is according to described tone frequency channel wire sequence information, resolves the tone frequency channel wire sequence obtaining described terminal.
Preferably, described tone frequency channel wire sequence information extraction modules comprises:
First corresponding relation judges submodule, is preset in the type information of described terminal and the first corresponding relation of tone frequency channel wire sequence information whether comprise described type information for judging;
First Line sequence information extraction submodule, for when described First Line sequence information judges the judged result of submodule for being, described terminal, by described first corresponding relation, extracts the tone frequency channel wire sequence information that described type information is corresponding;
Second line sequence information extraction submodule, for when described First Line sequence information judges that the judged result of submodule is no, by second corresponding relation of described terminal by the type information and tone frequency channel wire sequence information that are preset at network side server, extract the tone frequency channel wire sequence that described type information is corresponding.
Present invention also offers a kind of terminal obtaining tone frequency channel wire sequence, described terminal comprises:
Type information acquisition module, after detecting that external device is connected to described terminal by audio interface, obtains the type information being built in described terminal;
Tone frequency channel wire sequence information extraction modules, for according to described type information, by the corresponding relation of type information and tone frequency channel wire sequence information, obtains the tone frequency channel wire sequence information corresponding with described type information;
Obtain successful judge module, whether successful for judging to obtain tone frequency channel wire sequence information;
Second tone frequency channel wire sequence information sending module, for when the judged result of the successful judge module of described acquisition is for being, described tone frequency channel wire sequence information is sent to described external device by synchronizing signal by described terminal;
Line order sequenced data receiver module, for when the judged result of the successful judge module of described acquisition is no, receives the line order sequenced data that described external device sends according to First Line sequence;
Line order sequenced data parsing module, for resolving described line order sequenced data according to the tone frequency channel wire sequence of described terminal, obtains resolution data;
Resolution data judge module, for judging that whether described resolution data is identical with described line order sequenced data;
Line sequence confirmation sending module, for when the judged result of resolution data module is for being, send line sequence confirmation to described external device, so that described external device is according to described line sequence confirmation, described First Line sequence is retrieved as the tone frequency channel wire sequence of described terminal;
Line sequence adjustment data transmission blocks, for when the judged result of resolution data module is no, send line sequence adjustment information to described external device, so that described external device is according to described line sequence adjustment information, described second line sequence is retrieved as the tone frequency channel wire sequence of described terminal.
Preferably, described terminal is mobile terminal.
Present invention also offers a kind of system obtaining tone frequency channel wire sequence, described system comprises terminal and external device; Described external device is connected with described terminal by the audio interface of described terminal; Described terminal is the terminal described in aforementioned any one.
Preferably, described external device also comprises:
Data interaction module, for utilizing the described tone frequency channel wire sequence of acquisition, carries out data interaction with described terminal.
Compared with prior art, the present invention has the following advantages:
Technical scheme of the present invention, in advance tone frequency channel wire sequence corresponding with this model for the model of various terminal is stored with the form of type information and tone frequency channel wire sequence information, so, after external device is connected to the audio interface of terminal, terminal obtains built-in type information in the terminal, just can extract tone frequency channel wire sequence information corresponding to this type information according to above-mentioned corresponding relation; Then, this tone frequency channel wire sequence information is sent to external device by tone frequency channel wire sequence information by terminal, external device just can resolve obtain described terminal tone frequency channel wire sequence.By the technical scheme of the invention described above, for different terminals, external device correctly can obtain the tone frequency channel wire sequence of this terminal, thus realizes carrying out normal data interaction with terminal.
Accompanying drawing explanation
Fig. 1 is the basic flow sheet that the present invention obtains the embodiment of the method one of tone frequency channel wire sequence;
Fig. 2 is the basic flow sheet that terminal of the present invention obtains the embodiment of the tone frequency channel wire sequence information corresponding with type information;
Fig. 3 is the basic flow sheet that the present invention obtains the embodiment of the method two of tone frequency channel wire sequence;
Fig. 4 is the basic flow sheet that the present invention obtains the scene embodiment one of the method for tone frequency channel wire sequence;
Fig. 5 is the basic flow sheet that the present invention obtains the scene embodiment two of the method for tone frequency channel wire sequence;
Fig. 6 is the structure chart that the present invention obtains the terminal installation embodiment one of tone frequency channel wire sequence;
Fig. 7 is the structure chart that the present invention obtains the terminal installation embodiment two of tone frequency channel wire sequence;
Fig. 8 is the structure chart that the present invention obtains the terminal installation embodiment three of tone frequency channel wire sequence;
Fig. 9 is the structure chart that the present invention obtains the system embodiment one of tone frequency channel wire sequence;
Figure 10 is the structure chart that the present invention obtains the system embodiment two of tone frequency channel wire sequence;
Embodiment
We will by reference to the accompanying drawings below, is described in detail optimum implementation of the present invention.First it is to be noted, the implication of the term used in the present invention, words and claim only can not be only limitted to its literal and common implication and go to understand, the implication also comprised and then conform to technology of the present invention and concept, this is because we are as inventor, suitably to provide the definition of term, to carry out the most appropriate description to our invention.Therefore, the configuration provided in this explanation and accompanying drawing, just first-selected embodiment of the present invention, instead of all technical characteristics of the present invention will be enumerated.We will recognize, also have various equivalent scheme or the modification that can replace our scheme.
Basic thought of the present invention is: tone frequency channel wire sequence corresponding with this model for the model of various terminal stored with the form of type information and tone frequency channel wire sequence information in advance, so, after external device is connected to the audio interface of terminal, terminal obtains built-in type information in the terminal, just can extract corresponding tone frequency channel wire sequence information according to above-mentioned corresponding relation; Then, this tone frequency channel wire sequence information is sent to external device by terminal, so, external device just can resolve obtain described terminal tone frequency channel wire sequence.
Below in conjunction with accompanying drawing, describe mobile terminal of the present invention in detail by specific embodiment and trigger the specific implementation that external device obtains the method for tone frequency channel wire sequence.
Shown in Fig. 1 is the basic flow sheet of the embodiment of the method one obtaining tone frequency channel wire sequence in the present invention.This embodiment comprises the steps:
After step 101, described terminal detect that external device is connected to described terminal by audio interface, obtain the type information being built in described terminal.
Type information can be the specific product model of this terminal, also can be the model of product line described in this terminal.Terminal production firm sometimes can not by the terminal built-in for this terminal specific product model, but by the terminal built-in for the model of product line belonging to this terminal.The tone frequency channel wire sequence adopted under normal circumstances due to a serial end product is identical, and the model therefore by obtaining this series also can realize the technical scheme of the present embodiment.
Step 102, described terminal, according to described type information, by the corresponding relation of type information and tone frequency channel wire sequence information, obtain the tone frequency channel wire sequence information corresponding with described type information.
It should be noted that, the corresponding relation of type information and tone frequency channel wire sequence information needs preset in advance.This corresponding relation can be preset in described terminal, also can be preset in network side server.Because the update of current end product is very frequent, this corresponding relation needs to constantly update with the corresponding relation comprising new terminal product.And be preset at that corresponding relation in network side server upgrades than in terminal more timely, so this step 102 preferably the direct corresponding relation from being preset at network side server obtain tone frequency channel wire sequence information.If but terminal all needs with network side server mutual during each acquisition tone frequency channel wire sequence, mutual number of times can too much, and the efficiency of server response terminal request will reduce.In order to reduce the interaction times of terminal and network side server as far as possible, ensure the tone frequency channel wire sequence getting various end product, the present embodiment can adopt execution mode completing steps 102 as shown in Figure 2, comprises the steps: simultaneously
Described type information whether is comprised in first corresponding relation of step 201, described terminal judges type information and tone frequency channel wire sequence information; Described first corresponding relation is preset in described terminal; If so, step 202 is entered; If not, step 203 is entered.
Step 202, described terminal, by described first corresponding relation, extract the tone frequency channel wire sequence information that described type information is corresponding.
Step 203, described terminal, by the second corresponding relation of type information and tone frequency channel wire sequence information, extract the tone frequency channel wire sequence that described type information is corresponding; Described second corresponding relation is preset in network side server.
Certainly, in the present embodiment, user at any time by the first corresponding relation preset in network side server more new terminal, so can reduce the number of times of terminal and server interaction further.
Execution of step 102, enters step 103.
Described tone frequency channel wire sequence information is sent to described external device by step 103, described terminal, so that described external device is according to described tone frequency channel wire sequence information, resolves the tone frequency channel wire sequence obtaining described terminal.
It should be noted that, undertaken alternately in the present embodiment between terminal and external device by audio interface, is utilize existing terminal all to have the function that can be realized audio plays and recording audio by audio interface.Carry out in the process of record/playback in terminal, audio plays is actually terminal and sends analog signal by the L channel line of audio interface and/or the external tone playing equipment of R channel alignment, and recording audio is actually terminal and receives by the microphone lines of audio interface the analog signal that external sound pick-up outfit sends.Therefore, in the present embodiment, the information interaction of terminal and external device is specially: terminal outwards installs preparation by the left and/or right sound channel of audio interface and send analog signal, and external device sends analog signal by the microphone lines of audio interface to terminal.
In order to realize the process of information and data interaction, data mutual between terminal and external device need the mode adopting analog signal modulation, as FSK mode, by the waveform modelling signal of certain frequency or certain amplitude, represent certain data.Like this, when interaction data, external device or terminal just need to resolve to the received signal, obtain the data of its representative.Based on the function of existing terminal recording playback audio frequency, the present embodiment is when resolution data, the analog signal that terminal is received from microphone lines according to the tone frequency channel wire ordered pair of self is resolved, and external device is then resolved according to the analog signal be received from left/right sound channel line when front ordered pair of self.
Prior art sound intermediate frequency line sequence only has two kinds, and only has microphone lines different with the position of ground wire in these two kinds of tone frequency channel wire sequences, and the position of left and right acoustic channels line is all identical.Based on this reason, when external device sends information or data to terminal, if the line sequence of external device is different from terminal audio frequency line sequence, then during terminal parses data, because when the signal place circuit for resolving and external device send data, circuit used is different, the data that therefore terminal parses obtains will be no longer the data that external device sends; And terminal is when outwards installing preparation carry information or data, no matter whether both line sequences are identical, and the circuit that the circuit that terminal sends signal and external device are used for analytic signal is all identical, and therefore external device can both be resolved to the data of terminal transmission.As can be seen here, when the line sequence of external device is different with the tone frequency channel wire sequence of terminal, external device correctly can resolve the information obtaining terminal and send, and terminal correctly can not resolve the information obtaining external device and send.
For these reasons, in this step 103, no matter whether the line sequence of current external device matches with the tone frequency channel wire sequence of terminal, external device normally can resolve the audio-frequency information that terminal sends, and obtaining the data about tone frequency channel wire sequence of terminal transmission, external device is according to the tone frequency channel wire sequence of this data determination terminal thus.Particularly, terminal can be arranged with external device, the tone frequency channel wire sequence of terminal is determined according to the content of data, such as: when the tone frequency channel wire sequence that terminal determines oneself is First Line sequence, then send in tone frequency channel wire sequence information and comprise data " 11111111 ", external device receives and resolves when obtaining data " 11111111 ", then the tone frequency channel wire sequence of terminal is defined as First Line sequence; And when the tone frequency channel wire sequence that terminal determines oneself is the second line sequence, then sends in tone frequency channel wire sequence information and comprise data " 00000000 ", external device receives and resolves and obtains data " 00000000 ", then the tone frequency channel wire sequence of terminal is defined as the second line sequence.
In addition, the present embodiment, after step 103, can also comprise: described external device utilizes the described tone frequency channel wire sequence obtained, and carries out data interaction with described terminal.So, external device can utilize terminal to realize the function of self by audio interface.
In addition, in the present embodiment, described terminal can be the terminal that desktop computer etc. is fixed, and also can be the mobile terminals such as mobile phone, pad, notebook computer.
By the technical scheme of the present embodiment, by obtaining the type information of terminal, the tone frequency channel wire sequence information of terminal can be obtained further according to the corresponding relation of type information and tone frequency channel wire sequence information, thus for different terminals, external device correctly can both obtain the tone frequency channel wire sequence of terminal, thus can carry out normal data interaction with terminal.
When terminal obtains audio-frequency information according to type information, if do not comprise model in corresponding relation preset in terminal and terminal now can not be connected with network side server, then terminal just temporarily can not obtain audio-frequency information.In order to obtain the tone frequency channel wire sequence of terminal as early as possible, present invention also offers a kind of embodiment of the method two obtaining tone frequency channel wire sequence, as shown in Figure 3, comprising the steps:
After step 301, described terminal detect that external device is connected to described terminal by audio interface, obtain the type information being built in described terminal.
Step 302, described terminal, according to described type information, by the corresponding relation of type information and tone frequency channel wire sequence information, obtain the tone frequency channel wire sequence information corresponding with described type information.
Whether step 303, described terminal judges obtain tone frequency channel wire sequence information successful; If so, step 304 is entered; If not, step 305 is entered.
As terminal temporarily can not obtain tone frequency channel wire sequence information for above-mentioned reasons, then terminal check obtains unsuccessful.In this case, enter step 305, to realize following scheme: can external device sends line order sequenced data according to First Line sequence to terminal, then resolve according to the tone frequency channel wire sequence of self the tone frequency channel wire sequence that the judged result obtaining this line order sequenced data obtains terminal according to terminal.
Described tone frequency channel wire sequence information is sent to described external device by step 304, described terminal, so that described external device is according to described tone frequency channel wire sequence information, resolves the tone frequency channel wire sequence obtaining described terminal.
Step 305, described terminal receive the line order sequenced data that described external device sends according to First Line sequence.
Terminal can adopt the mode starting endless track sound recording to carry out wait-receiving mode external device and send and next data.In addition, First Line sequence can be any one in two kinds of tone frequency channel wire sequences, preferably using the default line sequence of external device as First Line sequence.
Step 306, described terminal resolve described line order sequenced data according to the tone frequency channel wire sequence of described terminal, obtain resolution data.
Described terminal parses line order sequenced data is resolved according to the tone frequency channel wire sequence of terminal self.According to the explanation to step 103, terminal receives data by audio interface, receives data indeed through the microphone lines on interface, so, when terminal resolves line order sequenced data according to self tone frequency channel wire sequence, be the data be resolved to according to the simulation that microphone lines receives.
Whether resolution data described in step 307, described terminal judges is identical with described line order sequenced data; If so, step 308 is entered; If not, step 309 is entered.
Because in two kinds of tone frequency channel wire sequences, the position of microphone lines is not identical, terminal resolves according to self tone frequency channel wire sequence the resolution data obtained might not be identical with line order sequenced data.If it is identical with the tone frequency channel wire sequence of terminal that external device sends the First Line sequence adopted, the data that terminal parses obtains are just identical with line order sequenced data; If line sequence is not identical with tone frequency channel wire sequence, then the data of terminal parses are just not identical with line order sequenced data.Thus, by judging that whether resolution data and line order sequenced data be identical, terminal can confirm that whether First Line sequence is identical with tone frequency channel wire sequence.
Step 308, described terminal send line sequence confirmation to described external device, so that described external device is according to described line sequence confirmation, described First Line sequence are retrieved as the tone frequency channel wire sequence of described terminal.
Based on the explanation to step 307, resolution data is identical with line order sequenced data, then First Line sequence is identical with terminal audio frequency line sequence, and as in the case, terminal sends line sequence confirmation with the tone frequency channel wire sequence making external device First Line sequence is retrieved as terminal.
Step 309, described terminal send line sequence adjustment information to described external device, so that described external device is according to described line sequence adjustment information, the second line sequence are retrieved as the tone frequency channel wire sequence of described terminal.
Based on the explanation to step 307, resolution data is not identical with line order sequenced data, then First Line sequence is not identical with terminal audio frequency line sequence, and as in the case, terminal sends line sequence adjustment information, to make external device, the second line sequence is retrieved as the tone frequency channel wire sequence of terminal.
It should be noted that, concerning step 309, although the current First Line sequence of external device is different from the tone frequency channel wire sequence of terminal, in First Line sequence, the position of left/right sound channel is identical with terminal audio frequency line sequence.Like this, according to the explanation to step 103, when terminal sends line sequence adjustment information to external device, the data that the analog signal in external device parsing left/right sound channel obtains are identical with the data that terminal sends, therefore, external device correctly can obtain the tone frequency channel wire sequence of terminal.
In addition, the present embodiment, after step 304 or step 309, can also comprise: described external device utilizes the described tone frequency channel wire sequence obtained, and carries out data interaction with described terminal.So, external device can utilize terminal to realize the function of self by audio interface.
In addition, in the present embodiment, described terminal can be the terminal that desktop computer etc. is fixed, and also can be the mobile terminals such as mobile phone, pad, notebook computer.
By the technical scheme of the present embodiment, when terminal temporarily can not obtain tone frequency channel wire sequence information according to type information, external device sends First Line order sequenced data according to First Line sequence to terminal, the tone frequency channel wire sequence that the judged result obtaining First Line order sequenced data obtains terminal can be resolved again according to terminal, thus when terminal abnormal can not obtain tone frequency channel wire sequence information according to corresponding relation, external device still correctly can obtain the tone frequency channel wire sequence of terminal, thus can carry out normal data interaction with terminal.
Below for a concrete application scenarios, describe the method that the present invention obtains tone frequency channel wire sequence in detail.In this scenario, the realization obtaining tone frequency channel wire sequence has been come by the application program in a terminal; Described terminal is mobile phone, and described external device is bank card card reader; First bank card is connected to mobile phone by user, mobile phone triggers bank card card reader and gets tone frequency channel wire sequence, the data interaction that end user utilizes this card reader to be undertaken by this tone frequency channel wire sequence and mobile phone, make the information on mobile phone reading bank card, and accesses network completes financial transaction; The operation that the reading data that user utilizes bank card card reader to realize, accesses network complete transaction is all performed by above-mentioned application program.Shown in Fig. 4 is the basic flow sheet that the present invention obtains the scene embodiment one of the method for tone frequency channel wire sequence, comprises the steps:
Step 401, bank card card reader are connected to the audio interface of mobile phone: card reader is connected to mobile phone by audio interface by user.
Step 402, start the application program that mobile phone connects bank card card reader: the mode of startup can be started by user's manual triggers, also can be that mobile phone has monitored bank card card reader when being connected by audio interface, cell phone system triggers startup automatically.
Step 403, application triggers mobile phone obtain type information: type information is built in the memory of mobile phone.
Step 404, application program, according to described type information, by the corresponding relation of type information and tone frequency channel wire sequence information, obtain the tone frequency channel wire sequence information of mobile phone: this corresponding relation is stored in mobile phone this locality with application program; As do not searched this mobile phone model in the corresponding relation of mobile phone this locality, then application triggers mobile phone is connected with network side server, and extracts tone frequency channel wire sequence information corresponding to this mobile phone model in corresponding relation in network side server.
Described tone frequency channel wire sequence information is sent to bank card card reader by step 405, application program, so that bank card card reader is according to described tone frequency channel wire sequence information, resolves the tone frequency channel wire sequence obtaining mobile phone.
Step 406, application prompts user bank card card reader with mobile phone exact connect ion.
Bank card is connected with bank card card reader by step 407, user: the mode of connection can adopt plug-in card mode, also can adopt the mode of swiping the card.
Step 408, application program read bank card information: bank card information to be sent to the application program on mobile phone by bank card card reader by the tone frequency channel wire sequence of acquisition.
Step 409, application program interconnection network: application program, according to bank card information, is connected to the webserver of the corresponding bank of network side.
Step 410, according to user operation, application program and network side server carry out data interaction, complete the financial transaction of bank card: financial transaction can be transfer accounts, the transaction of the form such as payment.
Shown in Fig. 5 is the basic flow sheet that the present invention obtains the scene embodiment two of the method for tone frequency channel wire sequence, comprises the steps:
Step 501, bank card card reader are connected to the audio interface of mobile phone.
Step 502, startup mobile phone connect the application program of bank card card reader.
Step 503, application triggers mobile phone obtain type information.
Step 504, application program, according to described type information, by the corresponding relation of type information and tone frequency channel wire sequence information, obtain the tone frequency channel wire sequence information of mobile phone.
Step 505, application program judge that whether tone frequency channel wire sequence acquisition of information is successful; If so, enter step 506, if not, enter step 507.
Described tone frequency channel wire sequence information is sent to bank card card reader by step 506, application program, so that bank card card reader is according to described tone frequency channel wire sequence information, resolves the tone frequency channel wire sequence obtaining mobile phone; Enter step 511.
Step 507, application triggers mobile phone receive the line order sequenced data that bank card card reader sends according to First Line sequence, and obtain resolution data according to the tone frequency channel wire sequence parsing of mobile phone: this step center line order sequenced data is preset in bank card card reader.
Step 508, application program judge that whether resolution data is identical with this line order sequenced data; If so, enter step 509, if not, enter step 510: the line order sequenced data in this step is in the application preset.
Step 509, application program send line sequence confirmation to bank card card reader, with the tone frequency channel wire sequence making bank card card reader First Line sequence is retrieved as mobile phone; Enter step 511.
Step 510, application program send line sequence adjustment information to bank card card reader, to make bank card card reader, the second line sequence are retrieved as the tone frequency channel wire sequence of mobile phone; Enter step 511.
Step 511, application prompts user bank card card reader with mobile phone exact connect ion.
Bank card is connected with bank card card reader by step 512, user: the mode of connection can adopt plug-in card mode, also can adopt the mode of swiping the card.
Step 513, application program read bank card information: bank card information to be sent to the application program on mobile phone by bank card card reader by the tone frequency channel wire sequence of acquisition.
Step 514, application program interconnection network: application program, according to bank card information, is connected to the webserver of the corresponding bank of network side.
Step 515, according to user operation, application program and network side server carry out data interaction, complete the financial transaction of bank card: financial transaction can be transfer accounts, the transaction of the form such as payment.
By the technical scheme of above-mentioned scene embodiment one and scene embodiment two, for different mobile phones, only need a corresponding application program installed by mobile phone, same bank card card reader just can get the tone frequency channel wire sequence of this mobile phone and carry out normal data interaction by this mobile phone, thus, make that same bank card card reader can to carry out normal data mutual with various mobile phone, and then, deposit in case there is no bank POS machine for punching the card, by means of mobile phone, can bank card be used whenever and wherever possible to realize financial transaction.
It should be noted that, in above-mentioned scene embodiment, be take mobile phone as terminal, with bank card card reader for external device, realization be that bank card realizes the execution mode of financial transaction by mobile phone.But in the present invention, terminal is not limited to mobile phone, it also can be the terminal such as panel computer, desktop computer; External device is not limited to bank card card reader, also can be that other need to carry out with terminal the equipment that data interaction realizes corresponding function; And external device is connected to the function that terminal will realize in the present invention, being not limited to bank card realizes financial transaction function by mobile phone, also can be that other external devices realize the execution mode of other functions by terminal.
Corresponding to embodiment of the method, present invention also offers a kind of terminal obtaining tone frequency channel wire sequence.Shown in Fig. 6 is the structure chart of the device embodiment one of the terminal obtaining tone frequency channel wire sequence, and described terminal comprises:
Type information acquisition module 601, after detecting that external device is connected to described terminal by audio interface, obtains the type information being built in described terminal;
Tone frequency channel wire sequence information extraction modules 602, for according to described type information, by the corresponding relation of type information and tone frequency channel wire sequence information, obtains the tone frequency channel wire sequence information corresponding with described type information;
First tone frequency channel wire sequence information sending module 603, for described tone frequency channel wire sequence information is sent to described external device, so that described external device is according to described tone frequency channel wire sequence information, resolves the tone frequency channel wire sequence obtaining described terminal.
Shown in Fig. 7 is the structure chart of the device embodiment two of the terminal obtaining tone frequency channel wire sequence, and this terminal is except comprising all structures in the embodiment one shown in Fig. 6, and described tone frequency channel wire sequence information extraction modules 602 specifically comprises:
First corresponding relation judges submodule 701, is preset in the type information of described terminal and the first corresponding relation of tone frequency channel wire sequence information whether comprise described type information for judging;
First Line sequence information extraction submodule 702, for when described First Line sequence information judges the judged result of submodule 701 for being, described terminal, by described first corresponding relation, extracts the tone frequency channel wire sequence information that described type information is corresponding;
Second line sequence information extraction submodule 703, for when described First Line sequence information judges that the judged result of submodule 701 is no, by second corresponding relation of described terminal by the type information and tone frequency channel wire sequence information that are preset at network side server, extract the tone frequency channel wire sequence that described type information is corresponding.
Shown in Fig. 8 is the structure chart of the terminal embodiment three obtaining tone frequency channel wire sequence, and described terminal comprises:
Type information acquisition module 601, after detecting that external device is connected to described terminal by audio interface, obtains the type information being built in described terminal;
Tone frequency channel wire sequence information extraction modules 602, for according to described type information, by the corresponding relation of type information and tone frequency channel wire sequence information, obtains the tone frequency channel wire sequence information corresponding with described type information;
Obtain successful judge module 801, whether successful for judging to obtain tone frequency channel wire sequence information;
Second tone frequency channel wire sequence information sending module 802, for when the judged result of the successful judge module 801 of described acquisition is for being, described tone frequency channel wire sequence information is sent to described external device by synchronizing signal by described terminal;
Line order sequenced data receiver module 803, for when the judged result of the successful judge module of described acquisition 801 is no, receives the line order sequenced data that described external device sends according to First Line sequence;
Line order sequenced data parsing module 804, for resolving described line order sequenced data according to the tone frequency channel wire sequence of described terminal, obtains resolution data;
Resolution data judge module 805, for judging that whether described resolution data is identical with described line order sequenced data;
Line sequence confirmation sending module 806, for when the judged result of resolution data module 805 is for being, send line sequence confirmation to described external device, so that described external device is according to described line sequence confirmation, described First Line sequence is retrieved as the tone frequency channel wire sequence of described terminal;
Line sequence adjustment data transmission blocks 807, for when the judged result of resolution data module 805 is no, send line sequence adjustment information to described external device, so that described external device is according to described line sequence adjustment information, described second line sequence is retrieved as the tone frequency channel wire sequence of described terminal.
It should be noted that, in the terminal installation embodiment shown in Fig. 6 to Fig. 8, described terminal can be the mobile terminal such as mobile phone, pad, also can be the fixed terminals such as desktop computer.
By device embodiment of the present invention, external device correctly can obtain the tone frequency channel wire sequence of terminal, thus can carry out normal data interaction with terminal.
Corresponding to embodiment of the method, present invention also offers a kind of system obtaining tone frequency channel wire sequence.Shown in Fig. 9 is the structure chart of the system embodiment one obtaining tone frequency channel wire sequence, and this system comprises terminal 901 and external device 902; Described external device 902 is connected to described terminal 901 by the audio interface of described terminal 901; Described terminal 901 is the terminal in the device embodiment shown in Fig. 6 to Fig. 8 described in any one.
Shown in Figure 10 is the structure chart of the system embodiment two obtaining tone frequency channel wire sequence, and this system, except comprising all structures in embodiment illustrated in fig. 9, also comprises in described external device 902:
Data interaction module 1001, for utilizing the described tone frequency channel wire sequence of acquisition, carries out data interaction with described terminal 901.
In addition, in the system embodiment one described in Fig. 9 and Figure 10 and embodiment two, described terminal 901 can be all fixed terminal, also can be mobile terminal.
By system embodiment of the present invention, external device correctly can obtain the tone frequency channel wire sequence of terminal, thus can carry out normal data interaction with terminal.
For the device embodiment obtaining tone frequency channel wire sequence and system embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above and system embodiment are only schematic, the wherein said module illustrated as separating component can or may not be physically separates, parts as module display can be or may not be physical module, namely can be positioned at a place, or also can be distributed on multiple mixed-media network modules mixed-media.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
In addition, it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.The verb mentioned in application documents " comprises ", those elements except recording in application documents are not got rid of in " comprising " and paradigmatic use thereof or the existence of element except step or step.Article "a" or "an" before element does not get rid of the existence of multiple this element.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (9)

1. obtain a method for tone frequency channel wire sequence, it is characterized in that, described method comprises:
After terminal detects that external device is connected to described terminal by audio interface, obtain the type information being built in described terminal;
Described terminal, according to described type information, by the corresponding relation of type information and tone frequency channel wire sequence information, obtains the tone frequency channel wire sequence information corresponding with described type information;
Whether described terminal judges obtains tone frequency channel wire sequence information successful;
If so, then described tone frequency channel wire sequence information is sent to described external device by described terminal, so that described external device is according to described tone frequency channel wire sequence information, resolves the tone frequency channel wire sequence obtaining described terminal;
If not, then described terminal receives the line order sequenced data that described external device sends according to First Line sequence; Described terminal resolves described line order sequenced data according to the tone frequency channel wire sequence of described terminal, obtains resolution data; Whether resolution data described in described terminal judges is identical with described line order sequenced data; If so, then described terminal sends line sequence confirmation to described external device, so that described external device is according to described line sequence confirmation, described First Line sequence is retrieved as the tone frequency channel wire sequence of described terminal; If not, then described terminal sends line sequence adjustment information to described external device, so that described external device is according to described line sequence adjustment information, the second line sequence is retrieved as the tone frequency channel wire sequence of described terminal.
2. method according to claim 1, is characterized in that, described terminal is according to described type information, and by the corresponding relation of type information and tone frequency channel wire sequence information, the step obtaining the tone frequency channel wire sequence information corresponding with described type information specifically comprises:
Described type information whether is comprised in first corresponding relation of described terminal judges type information and tone frequency channel wire sequence information; Described first corresponding relation is preset in described terminal;
If so, then described terminal is by described first corresponding relation, extracts the tone frequency channel wire sequence information that described type information is corresponding;
If not, then described terminal is by the second corresponding relation of type information and tone frequency channel wire sequence information, extracts the tone frequency channel wire sequence that described type information is corresponding; Described second corresponding relation is preset in network side server.
3. method according to claim 1, is characterized in that, described method also comprises:
Described external device utilizes the described tone frequency channel wire sequence obtained, and carries out data interaction with described terminal.
4. method according to claim 1, is characterized in that, described terminal is mobile terminal.
5. obtain a terminal for tone frequency channel wire sequence, it is characterized in that, described terminal comprises:
Type information acquisition module, after detecting that external device is connected to described terminal by audio interface, obtains the type information being built in described terminal;
Tone frequency channel wire sequence information extraction modules, for according to described type information, by the corresponding relation of type information and tone frequency channel wire sequence information, obtains the tone frequency channel wire sequence information corresponding with described type information;
Obtain successful judge module, whether successful for judging to obtain tone frequency channel wire sequence information;
Second tone frequency channel wire sequence information sending module, for when the judged result of the successful judge module of described acquisition is for being, described tone frequency channel wire sequence information is sent to described external device by synchronizing signal by described terminal;
Line order sequenced data receiver module, for when the judged result of the successful judge module of described acquisition is no, receives the line order sequenced data that described external device sends according to First Line sequence;
Line order sequenced data parsing module, for resolving described line order sequenced data according to the tone frequency channel wire sequence of described terminal, obtains resolution data;
Resolution data judge module, for judging that whether described resolution data is identical with described line order sequenced data;
Line sequence confirmation sending module, for when the judged result of resolution data module is for being, send line sequence confirmation to described external device, so that described external device is according to described line sequence confirmation, described First Line sequence is retrieved as the tone frequency channel wire sequence of described terminal;
Line sequence adjustment data transmission blocks, for when the judged result of resolution data module is no, send line sequence adjustment information to described external device, so that described external device is according to described line sequence adjustment information, the second line sequence is retrieved as the tone frequency channel wire sequence of described terminal.
6. terminal according to claim 5, is characterized in that, described tone frequency channel wire sequence information extraction modules comprises:
First corresponding relation judges submodule, is preset in the type information of described terminal and the first corresponding relation of tone frequency channel wire sequence information whether comprise described type information for judging;
First Line sequence information extraction submodule, for when described first corresponding relation judges the judged result of submodule for being, described terminal, by described first corresponding relation, extracts the tone frequency channel wire sequence information that described type information is corresponding;
Second line sequence information extraction submodule, for when described first corresponding relation judges that the judged result of submodule is no, by second corresponding relation of described terminal by the type information and tone frequency channel wire sequence information that are preset at network side server, extract the tone frequency channel wire sequence that described type information is corresponding.
7. terminal according to claim 5, is characterized in that, described terminal is mobile terminal.
8. obtain a system for tone frequency channel wire sequence, it is characterized in that, described system comprises terminal and external device; Described external device is connected with described terminal by the audio interface of described terminal; Described terminal is the terminal described in claim 5-7 any one.
9. system according to claim 8, is characterized in that, described external device also comprises:
Data interaction module, for utilizing the described tone frequency channel wire sequence of acquisition, carries out data interaction with described terminal.
CN201210591815.2A 2012-12-30 2012-12-30 A kind of methods, devices and systems obtaining tone frequency channel wire sequence Expired - Fee Related CN103916151B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210591815.2A CN103916151B (en) 2012-12-30 2012-12-30 A kind of methods, devices and systems obtaining tone frequency channel wire sequence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210591815.2A CN103916151B (en) 2012-12-30 2012-12-30 A kind of methods, devices and systems obtaining tone frequency channel wire sequence

Publications (2)

Publication Number Publication Date
CN103916151A CN103916151A (en) 2014-07-09
CN103916151B true CN103916151B (en) 2016-03-30

Family

ID=51041582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210591815.2A Expired - Fee Related CN103916151B (en) 2012-12-30 2012-12-30 A kind of methods, devices and systems obtaining tone frequency channel wire sequence

Country Status (1)

Country Link
CN (1) CN103916151B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108347393B (en) * 2017-01-22 2020-11-06 华为技术有限公司 Method, equipment and system for processing crossed line sequence
CN109874097B (en) * 2017-12-05 2020-10-30 炬芯科技股份有限公司 Active noise reduction earphone and test system thereof
CN113671419A (en) * 2021-08-17 2021-11-19 杭州佳量医疗科技有限公司 Line sequence testing method, device and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728082A (en) * 2005-07-29 2006-02-01 上海贝豪通讯电子有限公司 Method for raising versatility of earphone interface
CN101933316A (en) * 2008-01-30 2010-12-29 索尼爱立信移动通讯有限公司 System and method for determining accessory type
CN102143262A (en) * 2010-02-03 2011-08-03 深圳富泰宏精密工业有限公司 Electronic device and method for switching audio input channel thereof
CN102164263A (en) * 2011-03-08 2011-08-24 华为终端有限公司 Device and method of audio/video signal transmission interface
CN102395069A (en) * 2011-08-22 2012-03-28 华为终端有限公司 Method for being compatible with earphones with different plug types, apparatus and terminal equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080085744A1 (en) * 2006-09-25 2008-04-10 Duarte Romeo A Cellular phone vehicle stereo interface cable

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728082A (en) * 2005-07-29 2006-02-01 上海贝豪通讯电子有限公司 Method for raising versatility of earphone interface
CN101933316A (en) * 2008-01-30 2010-12-29 索尼爱立信移动通讯有限公司 System and method for determining accessory type
CN102143262A (en) * 2010-02-03 2011-08-03 深圳富泰宏精密工业有限公司 Electronic device and method for switching audio input channel thereof
CN102164263A (en) * 2011-03-08 2011-08-24 华为终端有限公司 Device and method of audio/video signal transmission interface
CN102395069A (en) * 2011-08-22 2012-03-28 华为终端有限公司 Method for being compatible with earphones with different plug types, apparatus and terminal equipment

Also Published As

Publication number Publication date
CN103916151A (en) 2014-07-09

Similar Documents

Publication Publication Date Title
EP3594878A1 (en) Smart broadcasting method and apparatus
CN101848373B (en) Wireless video monitoring system and video monitoring method thereof
CN103428333B (en) Mobile terminal, server and errors repair method
CN104657857A (en) Method, related device and system for realizing payment
CN103905474A (en) Information sharing method, terminal, server and system
CN105207851A (en) Fault detection method, device, system and terminal and intelligent device
CN103597805A (en) Techniques for facilitating interoperation between an accessory and multiple devices
CN104796385A (en) Terminal binding method, device and system
CN102270149B (en) Navigation equipment management device and method
CN105472596A (en) Binding method of communication number, apparatus and terminal thereof
RU2013141415A (en) AUTOMATIC ELECTRONIC PAYMENT THROUGH MOBILE TERMINALS
CN103051690B (en) In a kind of local area network (LAN), on-vehicle host plays system and the implementation method of mobile phone music
CN103916151B (en) A kind of methods, devices and systems obtaining tone frequency channel wire sequence
CN104618315A (en) Method, device and system for verification information push, and method, device and system for information verification
CN106294006A (en) A kind of data back up method, source terminal and target terminal
CN104780206A (en) Data sharing method and device
CN104462934A (en) Information processing method and electronic equipment
CN105554845A (en) Access method, router, and terminal
CN105549995B (en) A kind of audio frequency apparatus upgrade method and device
CN104468947A (en) Information processing method and electronic equipment
CN104331407A (en) Multimedia file information recommending method and multimedia file information recommending device
CN103095913B (en) Dialing method and electronic device
CN108521443B (en) The upgrade method and system and terminal and computer readable storage medium of a kind of application
CN103916152B (en) A kind of obtain the method for audio frequency line sequence, terminal and system
CN106095400A (en) A kind of application program method for down loading and terminal, communication equipment

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
CB03 Change of inventor or designer information

Inventor after: Guo Tianguang

Inventor after: Wang Sijun

Inventor before: Wang Sijun

COR Change of bibliographic data
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100102 Beijing, Chaoyang District, Wangjing Li Ze Park 101, Qiming International Building 7.

Patentee after: BEIJING WATCHDATA Co.,Ltd.

Address before: 100102 Beijing, Chaoyang District, Wangjing Li Ze Park 101, Qiming International Building 7.

Patentee before: BEIJING WATCH DATA SYSTEM Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160330

Termination date: 20211230