CN103379397A - Data transmission method, data processing method, and signal processing method and module based on audio interface - Google Patents

Data transmission method, data processing method, and signal processing method and module based on audio interface Download PDF

Info

Publication number
CN103379397A
CN103379397A CN2012101268437A CN201210126843A CN103379397A CN 103379397 A CN103379397 A CN 103379397A CN 2012101268437 A CN2012101268437 A CN 2012101268437A CN 201210126843 A CN201210126843 A CN 201210126843A CN 103379397 A CN103379397 A CN 103379397A
Authority
CN
China
Prior art keywords
data
symbol
audio
utmost point
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012101268437A
Other languages
Chinese (zh)
Other versions
CN103379397B (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.)
Nationz Technologies Inc
Original Assignee
Nationz Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nationz Technologies Inc filed Critical Nationz Technologies Inc
Priority to CN201210126843.7A priority Critical patent/CN103379397B/en
Publication of CN103379397A publication Critical patent/CN103379397A/en
Application granted granted Critical
Publication of CN103379397B publication Critical patent/CN103379397B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Dc Digital Transmission (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention discloses a data transmission method, a data processing method and a signal processing method and module based on an audio interface. The data transmission method comprises the steps that framing is conducted on audio binary character data which are actually sent, a front lead core comprises N binary characters which are continuous and the same and a binary character which is ranked behind the N characters and different to the N characters in phase position, two binary bits with different phase positions are respectively used for replacing each character of the binary character data formed by the front lead core and a data field in sequence, and according to the phase position of the current character and the marshalling sequence of the two bits for replacing a front character adjacent to the current character, the marshalling sequence of two bits replacing the current character is determined. The data processing method is used for conducting decoding according to the definition rule and the coding rule of the front lead core. The signal processing method and module based on the audio interface conduct coding and decoding according to the definition rule and the coding-and-decoding rule of the front lead core. According to the technical scheme, the problem that in the prior art, the coding method is not complete is solved.

Description

Transfer of data, processing, based on signal processing method and the module of audio interface
Technical field
The present invention relates to the communications field, relate in particular to data transmission method, data processing method, based on signal processing method and the module of audio interface.
Background technology
In data transmission procedure, usually need to encode to data.Differential Manchester Encoding is a kind of widely used coded system, is applicable to the various wireless communication scene.Its basic principle is that each binary character with physical layer utilizes respectively two binary bits with out of phase of link layer to reach generation, this coded system, need to decide through consultation initial condition with decoding side in advance, namely for a lot of binary character, need in advance to decide through consultation with decoding side the putting in order of dibit of the first symbol of replacement, that is to say, need to decide through consultation with decoding side in advance: if first symbol is 0, the dibit that then replaces this first symbol is 01 (perhaps 10), on the contrary, if first symbol is 1, the dibit that then replaces this first symbol is 10 (perhaps 01).
There is following defective at least in this coded system: in the abominable situation of transmission environment, the binary bits data that obtain behind the coding very easily are interfered, after being transferred to decoding side, coming forward binary bits loses easily, and the number of bits of losing is difficult to determine, when having lost the dibit that replaces above-mentioned first symbol, decode as first symbol other symbols mistake in decoding side according to the mode of deciding through consultation, integrality and the reliability of impact decoding; In addition, when having lost the odd number bit, the cut-point between its adjacent-symbol affects integrality and the reliability of decoding with whole entanglements.
Summary of the invention
The invention provides data transmission method, data processing method, based on signal processing method and the module of audio interface, solve the perfect not problem of coded system in the prior art.
For solving the problems of the technologies described above, one embodiment of the invention by the following technical solutions:
A kind of data transmission method, comprise: the binary character data that reality is to be sent are carried out framing, frame structure comprises lead code and data field, described data field comprises the binary character data that described reality is to be sent, described lead code comprises N continuous and identical binary character, and the different binary character of phase place that comes after the described N symbol, wherein, N is the positive integer more than or equal to 2; The a lot of binary character data that described lead code and data field are formed successively adopt default coding rule to encode, described coding rule comprises: successively to each symbols of described a lot of binary character data, utilize respectively two binary bits with out of phase to replace, and according to the phase place of current sign with replace the putting in order of dibit of its adjacent last symbol, determine to replace the putting in order of dibit of described current sign; The binary bits data that obtain behind the coding are transmitted.
In an embodiment of the present invention, coding rule comprises: if current sign is 1, the dibit that then replaces current sign is consistent with putting in order of the dibit that replaces its adjacent last symbol; If current sign is 0, the dibit that then replaces current sign is opposite with putting in order of the dibit that replaces its adjacent last symbol.
In an embodiment of the present invention, lead code comprises N continuous symbol 0, and one comes described N the symbol 1 after the continuous symbol 0.
In an embodiment of the present invention, coding rule comprises: if current sign is 0, the dibit that then replaces current sign is consistent with putting in order of the dibit that replaces its adjacent last symbol; If current sign is 1, the dibit that then replaces current sign is opposite with putting in order of the dibit that replaces its adjacent last symbol.
In an embodiment of the present invention, lead code comprises N continuous symbol 1, and one comes described N the symbol 0 after the continuous symbol 1.
A kind of data processing method comprises: receive the binary bits data of utilizing aforesaid data transmission method transmission; Detect successively the pulse duration of described binary bits data, find first symbol segmentation point; The decoding rule that described binary bits the data and its coding rule are complementary is decoded, described decoding rule comprises: successively to being arranged in described first symbol segmentation point binary bits data afterwards, every a pair of binary bits adjacent and that have an out of phase adopts a binary character to replace, and according to putting in order of current a pair of bit, and adjacent last to the putting in order of bit, determine to replace the phase place of the symbol of current a pair of bit; According to the definition rule identification lead code of binary character data in the lead code, cut apart lead code and data field, obtain binary character data actual to be sent in the data field; The binary character data that described reality is to be sent are carried out Business Processing.
In an embodiment of the present invention, detect successively the pulse duration of described binary bits data, find the method for first symbol segmentation point to comprise: the edge of detecting successively described binary bits data becomes constantly, obtain pulse duration with adjacent two along becoming constantly to subtract each other successively, with the central point of the first pulse duration that surpasses predetermined value as described first symbol segmentation point.
A kind of signal processing method based on audio interface comprises:
The binary character data that reality is to be sent are carried out framing, frame structure comprises lead code and data field, described data field comprises the binary character data that described reality is to be sent, described lead code comprises N continuous and identical binary character, and different binary character of phase place that comes after the described N symbol, wherein, N is the positive integer more than or equal to 2; The a lot of binary character data that described lead code and data field are formed successively adopt default coding rule to encode, described coding rule comprises: successively to each symbols of described a lot of binary character data, utilize respectively two binary bits with out of phase to replace, and according to the phase place of current sign with replace the putting in order of dibit of its adjacent last symbol, determine to replace the putting in order of dibit of described current sign; The binary bits data that obtain behind the coding are converted to audio signal;
Audio interface by audio frequency apparatus sends described audio signal to described audio frequency apparatus; Audio interface by audio frequency apparatus receives the audio signal from described audio frequency apparatus; Described audio signal is converted to the binary bits data; Detect successively the pulse duration of described binary bits data, find first symbol segmentation point; The decoding rule that described binary bits the data and its coding rule are complementary is decoded, described decoding rule comprises: successively to being arranged in described first symbol segmentation point binary bits data afterwards, every a pair of binary bits adjacent and that have an out of phase adopts a binary character to replace, and according to putting in order of current a pair of bit, and adjacent last to the putting in order of bit, determine to replace the phase place of the symbol of current a pair of bit; According to the definition rule identification lead code of binary character data in the lead code, cut apart lead code and data field, obtain binary character data actual to be sent in the data field.
In an embodiment of the present invention, coding rule comprises: if current sign is 1, the dibit that then replaces current sign is consistent with putting in order of the dibit that replaces its adjacent last symbol; If current sign is 0, the dibit that then replaces current sign is opposite with putting in order of the dibit that replaces its adjacent last symbol.
In an embodiment of the present invention, lead code comprises N continuous symbol 0, and one comes described N the symbol 1 after the continuous symbol 0.
In an embodiment of the present invention, coding rule comprises: if current sign is 0, the dibit that then replaces current sign is consistent with putting in order of the dibit that replaces its adjacent last symbol; If current sign is 1, the dibit that then replaces current sign is opposite with putting in order of the dibit that replaces its adjacent last symbol.
In an embodiment of the present invention, lead code comprises N continuous symbol 1, and one comes described N the symbol 0 after the continuous symbol 1.
In an embodiment of the present invention, detect successively the pulse duration of described binary bits data, find the method for first symbol segmentation point to comprise: the edge of detecting successively described binary bits data becomes constantly, obtain pulse duration with adjacent two along becoming constantly to subtract each other successively, with the central point of the first pulse duration that surpasses predetermined value as described first symbol segmentation point.
In an embodiment of the present invention, the binary bits data that obtain after employing current mode D/A converter module will be encoded are converted to audio signal.
In an embodiment of the present invention, the current mode D/A converter module sends the audio signal that converts to by the mode that the Mike's utmost point from described audio interface extracts electric current to described audio frequency apparatus.
In an embodiment of the present invention, the audio interface by audio frequency apparatus and described audio frequency apparatus carry out also comprising before the data interaction: will dock with the sound channel utmost point of audio interface for the audio signal receiving element that receives from the audio signal of described audio frequency apparatus; Mike's utmost point and earth polar in the audio interface are identified, will be docked with the Mike's utmost point that identifies for the audio signal transmitting element that sends audio signal to described audio frequency apparatus, earth potential is docked with the earth polar of identifying.
In an embodiment of the present invention, the method that Mike's utmost point and earth polar in the audio interface are identified comprises: obtain described audio frequency apparatus after opening the recording channel, the signal of telecommunication of each utmost point in a pair of audio frequency input extremely in its audio interface; The signal of telecommunication according to each utmost point in the described a pair of audio frequency input is extremely identified described Mike's utmost point and earth polar.
In an embodiment of the present invention, the method for obtaining the signal of telecommunication of each utmost point in the described a pair of audio frequency input extremely is: obtain in the described a pair of audio frequency input extremely each utmost point with respect to described earthy voltage relative value.
In an embodiment of the present invention, according to signal of telecommunication identification Mike's utmost point of each utmost point and the method in earth polar in the described a pair of audio frequency input extremely be: detect the positive negative characteristic of the voltage relative value of each utmost point in the described a pair of audio frequency input extremely, identify described Mike's utmost point and described earth polar according to testing result.
In an embodiment of the present invention, according to signal of telecommunication identification Mike's utmost point of each utmost point and the method in earth polar in the described a pair of audio frequency input extremely be: the voltage relative value of each utmost point compares with described earth potential respectively in will described a pair of audio frequency inputting extremely, obtains respectively a digital signal level according to separately comparative result; Identify described Mike's utmost point and described earth polar according to two digital signal levels that obtain.
In an embodiment of the present invention, when voltage relative value during greater than described earth potential, obtain level 1, when voltage relative value during less than described earth potential, obtain level 0, a utmost point in the level 1 corresponding described a pair of audio frequency input extremely is identified as described Mike's utmost point, a utmost point in the level 0 corresponding described a pair of audio frequency input extremely is identified as described earth polar.
In an embodiment of the present invention, when voltage relative value during greater than described earth potential, obtain level 0, when voltage relative value during less than described earth potential, obtain level 1, a utmost point in the level 0 corresponding described a pair of audio frequency input extremely is identified as described Mike's utmost point, a utmost point in the level 1 corresponding described a pair of audio frequency input extremely is identified as described earth polar.
A kind of signal processing module based on audio interface, described signal processing module carries out data interaction by audio interface and the audio frequency apparatus of audio frequency apparatus, described signal processing module comprises audio signal receiver module, the first audio signal modular converter, the second audio signal modular converter, audio signal sending module, coding module, decoder module, framing module reconciliation frame module, wherein
Described framing module, the digital signal that is used for treating to described audio frequency apparatus transmission is carried out framing, the framing rule comprises: the binary character data that reality is to be sent are carried out framing, frame structure comprises lead code and data field, described data field comprises the binary character data that described reality is to be sent, and described lead code comprises N continuous and identical binary character, and one comes a described N symbol different binary character of phase place afterwards, wherein, N is the positive integer more than or equal to 2;
Described coding module, the a lot of binary character data that form successively for described lead code and data field to frame structure adopt default coding rule to encode, described coding rule comprises: successively to each symbols of described a lot of binary character data, utilize respectively two binary bits with out of phase to replace, and according to the phase place of current sign with replace the putting in order of dibit of its adjacent last symbol, determine to replace the putting in order of dibit of described current sign;
Described the second audio signal modular converter, the binary bits data that obtain after being used for encoding are converted to audio signal;
Described audio signal sending module is used for by Mike's utmost point of described audio interface the audio signal that described the second audio signal modular converter converts to being sent to described audio frequency apparatus;
Described audio signal receiver module is used for sound channel utmost point reception by described audio interface from the audio signal of described audio frequency apparatus;
Described the first audio signal modular converter is used for being converted to from the audio signal of described audio frequency apparatus the digital bit data;
Described decoder module, the pulse duration for detecting successively described binary bits data finds first symbol segmentation point; The decoding rule that described binary bits the data and its coding rule are complementary is decoded, described decoding rule comprises: successively to being arranged in described first symbol segmentation point binary bits data afterwards, every a pair of binary bits adjacent and that have an out of phase adopts a binary character to replace, and according to putting in order of current a pair of bit, and adjacent last to the putting in order of bit, determine to replace the phase place of the symbol of current a pair of bit;
Described solution frame module is used for the definition rule identification lead code according to lead code binary character data, cuts apart lead code and data field, obtains binary character data actual to be sent in the data field;
In an embodiment of the present invention, the second audio signal modular converter is the current mode D/A converter module.
In an embodiment of the present invention, the current mode D/A converter module sends the audio signal that converts to by the mode that the Mike's utmost point from described audio interface extracts electric current to described audio frequency apparatus.
In an embodiment of the present invention, signal processing module also comprises the control module in the audio interface Mike utmost point and earth polar, be used for Mike's utmost point and the earth polar of described audio interface are identified, described audio signal sending module is docked with the Mike's utmost point that identifies, earth potential is docked with the earth polar of identifying.
In an embodiment of the present invention, the control module in the audio interface Mike utmost point and earth polar comprises:
Acquisition module is used for obtaining described audio frequency apparatus after opening the recording channel, the signal of telecommunication of each utmost point in a pair of audio frequency input extremely in its audio interface;
Identification module, be used for according to described a pair of audio frequency input extremely the signal of telecommunication of each utmost point identify described Mike's utmost point and earth polar;
The port handover module is used for described identification module and identifies after Mike's utmost point and the earth polar, and described audio signal sending module is docked with described Mike's utmost point, and earth potential is docked with described earth polar.
In an embodiment of the present invention, acquisition module is the voltage domain modular converter, be used for obtaining described a pair of audio frequency input extremely each utmost point with respect to described earthy voltage relative value.
In an embodiment of the present invention, identification module comprises the first recognin module, for detection of the positive negative characteristic of the voltage relative value of each utmost point in the described a pair of audio frequency input extremely, identifies described Mike's utmost point and described earth polar according to testing result.
In an embodiment of the present invention, identification module comprises:
The second recognin module, the voltage relative value of each utmost point compares with described earth potential respectively to be used for inputting described a pair of audio frequency extremely, exports respectively a digital signal level according to comparative result separately;
Logic judgment module is used for identifying described Mike's utmost point and described earth polar according to two digital signal levels of described the second recognin module output.
In an embodiment of the present invention, when voltage relative value during greater than described earth potential, the second recognin module output level 1, when voltage relative value during less than described earth potential, the second recognin module output level 0; When described logic judgment module is exported a level 1 and a level 0 in described the second recognin module, a utmost point in the level 1 corresponding described a pair of audio frequency input extremely is identified as described Mike's utmost point, a utmost point in the level 0 corresponding described a pair of audio frequency input extremely is identified as described earth polar.
In an embodiment of the present invention, when voltage relative value during greater than described earth potential, the second recognin module output level 0, when voltage relative value during less than described earth potential, the second recognin module output level 1; When described logic judgment module is exported a level 1 and a level 0 in described the second recognin module, a utmost point in the level 0 corresponding described a pair of audio frequency input extremely is identified as described Mike's utmost point, a utmost point in the level 1 corresponding described a pair of audio frequency input extremely is identified as described earth polar.
Beneficial effect of the present invention is, one, before reality binary character data to be sent, increase extra binary character data with the form of lead code in the frame structure, even if in the abominable situation of transmission environment, what at first be interfered is the symbol data that comes in the forward lead code, and the binary character data to be sent to reality play anti-interference protective effect; They are two years old, in the coding rule of the present invention, the putting in order of dibit that replaces current sign determined jointly by the phase place of current sign and the putting in order of dibit of its adjacent last symbol of replacement, the putting in order of dibit that replaces current sign only has two kinds of situations, phase place according to current sign is different, consistent with putting in order of the dibit that replaces its adjacent last symbol, otherwise opposite.When opposite, two continuous bits 1 two continuous bits 0 just can appear, perhaps.The pulse duration of two continuous bits 0 or two continuous bit 1 compositions is wider, based on this characteristic, lead code of the present invention is defined as comprises the individual continuous and identical binary character of N (N for more than or equal to 2 positive integer), and different binary character of phase place that comes after the described N symbol, that is to say, the defined lead code of the present invention comprise a pair of continuously and the symbol (01 or 10) of single spin-echo, and this is to also comprising N-1 symbol before the symbol.As long as this N-1 symbol is fully not disturbed behind the coding, namely at least also keep this previous symbol adjacent to the symbol of continuous and single spin-echo, so just can the reference when decoding of putting in order of the dibit of this previous symbol will be replaced, for followed by should be for symbol of continuous and single spin-echo, because of its single spin-echo and continuous, the situation that just can occur two pairs of bit arrangement reversed in order behind the coding, that is to say, two continuous bits 0 can appear, two continuous bits 1 perhaps appear, at least there is a wider pulse duration in the binary bits data that just can guarantee to obtain behind the lead code coding, just can be by detecting wider pulse duration in the lead code when decoding so, before to the decoding data in the data field, identify the symbol segmentation point, then adopt the decoding rule that is complementary to identify symbol 0 and symbol 1, guarantee integrality and the reliability of decoding.Therefore, irrelevant with the dibit that replaces first symbol, need not to decide through consultation the coding initial condition; They are three years old, in the data transmission procedure based on audio interface, for different audio frequency apparatuses, often be difficult to decide through consultation in advance the coding initial condition, therefore, existing Differential Manchester Encoding is not suitable for this scene, and coding rule and the lead code of the present invention definition need not to decide through consultation the coding initial condition, can guarantee integrality and the reliability of decoding, therefore, in the transfer of data scene based on audio interface, can be used widely, improve the reliability based on the transfer of data of audio interface.
Description of drawings
The frame structure schematic diagram that Fig. 1 provides for one embodiment of the invention;
The flow chart of the data transmission method that Fig. 2 provides for one embodiment of the invention;
Fig. 3 is the schematic diagram of employed coding rule in the data transmission method shown in Figure 2;
The flow chart of the data processing method that Fig. 4 provides for one embodiment of the invention;
Fig. 5 a is the schematic diagram of employed decoding rule in the data processing method shown in Figure 4;
Fig. 5 b is another schematic diagram of employed decoding rule in the data processing method shown in Figure 4;
The schematic diagram based on the message processing module of audio interface that Fig. 6 provides for one embodiment of the invention;
Fig. 7 is the schematic diagram of the second audio signal modular converter in the signal processing module shown in Figure 6;
Fig. 8 is the schematic diagram of the first audio signal modular converter in the signal processing module shown in Figure 6;
The schematic diagram based on the signal processing module of audio interface that Fig. 9 provides for another embodiment of the present invention;
Figure 10 is the schematic diagram of the control module in signal processing module sound intermediate frequency interface Mike's utmost point shown in Figure 9 and earth polar;
Figure 11 is another schematic diagram of the control module in signal processing module sound intermediate frequency interface Mike's utmost point shown in Figure 9 and earth polar;
Figure 12 is another schematic diagram of the control module in signal processing module sound intermediate frequency interface Mike's utmost point shown in Figure 9 and earth polar;
Figure 13 is the schematic diagram of equivalent circuit structure of the control module in audio interface Mike's utmost point shown in Figure 12 and earth polar;
Figure 14 a is the schematic diagram of voltage domain converting unit in the circuit structure shown in Figure 13;
Figure 14 b is another schematic diagram of voltage domain converting unit in the circuit structure shown in Figure 13;
Figure 14 c is another schematic diagram of voltage domain converting unit in the circuit structure shown in Figure 13;
Figure 14 d is another schematic diagram of voltage domain converting unit in the circuit structure shown in Figure 13;
The schematic diagram based on the signal processing module of audio interface that Figure 15 provides for another embodiment of the present invention;
Figure 16 is the flow chart of the signal processing method of signal processing module shown in Figure 9.
Embodiment
Main design of the present invention is, before reality binary character data to be sent, increase extra binary character data with the form of lead code in the frame structure, and in conjunction with coding rule of the present invention guarantee lead code include a pair of continuously and the symbol of single spin-echo, and this is to also comprising N-1 symbol before the symbol, as long as this N-1 symbol is fully not disturbed in the lead code, at least there is a wider pulse duration in the binary bits data that just can guarantee to obtain behind the lead code coding, just can be by detecting wider pulse duration in the lead code when decoding, before to the decoding data in the data field, identify the symbol segmentation point, then adopt the decoding rule identifier be complementary number 0 and symbol 1, guarantee integrality and the reliability of decoding.
As shown in Figure 1, be the frame structure that one embodiment of the invention provide, comprise lead code and data field, data field comprises binary character data actual to be sent, these binary character data can form by a lot of 0, perhaps form by a lot of 1, perhaps form by a lot of 0 and 1.
Lead code comprises N continuous and identical binary character, and at least one comes this N symbol different binary character of phase place afterwards, N is the positive integer more than or equal to 2, preferably, comprise following several form (it is identical that ellipsis represents the symbol adjacent with its front and back): 0 ... 01,1 ... 10.This shows, include in the defined lead code of the present invention a pair of continuously and the symbol of single spin-echo, such as 0 ... last two " 01 " in 01,1 ... last two " 10 " in 10, and before this is to symbol, also comprise N-1 symbol.In N-1 the symbol, coming a forward N-2 symbol is mainly used to anti-interference, as long as this N-1 symbol is fully not disturbed behind the coding, namely at least also keep this previous symbol adjacent to the symbol of continuous and single spin-echo, so just can will replace the reference when decoding of putting in order of the dibit of this previous symbol.For followed by should be for symbol of continuous and single spin-echo, because of its single spin-echo and continuous, the situation that just can occur two pairs of bit arrangement reversed in order behind the coding, two continuous bits 0 appear, perhaps two continuous bits 1, at least there is a wider pulse duration in the binary bits data that just can guarantee to obtain behind the lead code coding, just can be by detecting wider pulse duration in the lead code when decoding so, before to the decoding data in the data field, identify the symbol segmentation point, then adopt the decoding rule identifier be complementary number 0 and symbol 1, guarantee integrality and the reliability of decoding.Therefore, the value of N can dispose according to the abominable degree of transmission environment, if comparatively abominable, symbol that may be disturbed is more, then N can get higher value, on the contrary, if possible disturbed symbol is few, then N can get smaller value, as long as guarantee that this a pair of symbol N-1 symbol before continuous and single spin-echo is fully disturbed in the lead code, the last bit sign that namely at least also keeps and should be adjacent to the symbol of continuous and single spin-echo just can guarantee integrality and the reliability of binary data actual to be sent, and guarantees decoding integrality and reliability to reality binary data to be sent.
Come afterwards binary character that phase place is different of this N symbol, be mainly used to identify the end of lead code, lead code and data field are cut apart in the convenient end of identifying lead code when decoding.As binary character data in the lead code are defined as 0 ... 01 o'clock, the sign that first symbol 1 that occurs in the binary character data that obtain after the decoding is finished as lead code, cut apart lead code and data field, obtain binary character data actual to be sent in the data field, binary character data in the lead code are defined as 1 ... 10 o'clock, the sign that first symbol 0 that occurs in the binary character data that obtain after the decoding is finished as lead code, cut apart lead code and data field, obtain binary character data actual to be sent in the data field.
The below is elaborated to data transmission method of the present invention and data processing method.
Suppose that actual binary character data to be sent are 1101000; Suppose that coding rule is: if current sign is 1, the dibit that then replaces current sign is consistent with putting in order of the dibit that replaces its adjacent last symbol; If current sign is 0, the dibit that then replaces current sign is opposite with putting in order of the dibit that replaces its adjacent last symbol; Lead code can be defined as above-mentioned 0 ... 01,1 ... any form in 10.But because in the coding rule of this embodiment, the dibit that satisfy to replace current sign with opposite this condition that puts in order of the dibit of its adjacent last symbol of replacement is, current sign is 0, therefore, in order to obtain more wider pulse duration behind the further so that lead code coding, find out more symbol segmentation point, improve decoding efficiency and accuracy, can in lead code, define more continuous symbol 0, therefore select 0 ... the lead code of 01 this form, further dispose the value of N according to the abominable degree of transmission environment, as long as guarantee that a pair of symbol N-1 symbol before continuous and single spin-echo can be fully not disturbed in the lead code, namely at least also keep and be somebody's turn to do and just could to the adjacent last bit sign of the symbol of continuous and single spin-echo, suppose that N gets 4, can to define the binary character data in the lead code be 0001 to present embodiment so.It below is the detailed process of present embodiment data transmission method and data processing method.
The data transmission method of coding staff comprises that step S21 is to step S23, as shown in Figure 2:
S21, reality binary character data 1101000 to be sent are carried out framing:
Frame structure comprises data field and lead code, data field comprises binary character data 1101000 actual to be sent, lead code comprises extra newly-increased binary character data 0001, and a lot of binary character data to be encoded that lead code and data field form successively are 00011101000.
S22, a lot of binary character data 00011101000 that lead code and data field are formed successively adopt default coding rule to encode: for these a lot of binary character data 00011101000, from the first symbol 0 of calculating from left to right, can utilizing arbitrarily, a pair of bit (10 or 01) with out of phase replaces.
The a pair of bit with out of phase of supposing the first symbol 0 of replacement is 01, coding rule according to this embodiment: owing to second symbol from from left to right calculation is 0, therefore the dibit that replaces this symbol 0 is opposite with putting in order of the dibit that replaces first symbol 0, is 10; Owing to be 0 from the 3rd symbol of calculating from left to right, therefore replace this symbol 0 second symbol 0 of dibit and replacement dibit put in order on the contrary, be 01; Owing to be 1 from the 4th symbol of calculating from left to right, therefore replace this symbol 1 the 3rd symbol 0 of dibit and replacement dibit put in order identically, be 01; Owing to the 5th symbol from from left to right calculation is 1, therefore the dibit that replaces this symbol 1 is identical with putting in order of the dibit that replaces the 4th symbol 1, is 01, according to this rule, binary bits data 0110010101011010011001 after finally can obtaining encoding, as shown in Figure 3.If replacing a pair of bit with out of phase of first symbol 0 is 10, then according to the coding rule of this embodiment, the bit-order that replaces follow-up all symbols is all put upside down, but this can't affect the complete sum reliability of decoding, therefore, be according to the putting in order with adjacent last to the putting in order of bit of current a pair of bit during decoding, determine to replace the symbol of current a pair of bit, and not exclusively be replaced in putting in order of current a pair of bit.
S23, the binary bits data that obtain behind the coding are transmitted.
The data processing method of decoding side comprises that step S41 is to step S43, as shown in Figure 4:
The binary bits data that S41, receiving step S23 transmission comes, these binary bits data still are frame structures.
Were it not for bit drop-out, the binary bits data that receive of step S41 are complete 0110010101011010011001 so, and what comprise in the data field of the frame structure of these binary bits data is: binary character data 1101000 actual to be sent binary bits data 01011010011001 after through step S22 coding; What comprise in the lead code is: the binary bits data 01100101 after binary character data 0001 are encoded through step S22;
If transmission environment is abominable, the bit that is arranged in front may be lost, if lost the bit 0 that makes number one, the binary bits data that then receive are incomplete 110010101011010011001, and what the data field in the frame structure of these binary bits data comprised is: binary character data 1101000 actual to be sent binary bits data 01011010011001 after through step S22 coding; What lead code comprised is: 01100101 after binary bits loss of data the first bit sign 0 after binary character data 0001 are encoded through step S22.
S42, the pulse duration of the binary bits data that receive of detecting step S41 successively find first symbol segmentation point.
Lead code is positioned at before the data field, so first the binary bits data of lead code are detected.If the binary bits data that step S41 receives are complete 0110010101011010011001, shown in Fig. 5 a, can find in the following manner first symbol segmentation point: successively 0110010101011010011001 the edge change moment is detected, what detect first is first rising edge 51 among Fig. 5 a, record this rising edge and constantly be T1, what next detected is first trailing edge 52, record this trailing edge and constantly be T2, T2 is deducted T1 obtain first pulse duration d1, this pulse duration d1 and preset value are compared, the establishing method of preset value: according to Bit Transmission Rate, calculate higher limit and the lower limit of the pulse duration of binary bits data, the median of this preset value capping value and lower limit.Pulse duration d1 is greater than this preset value among Fig. 5 a, with the center point P 1 of pulse duration d1 as 0110010101011010011001 first symbol segmentation point.
Find after the first symbol segmentation point P1, can be according to Bit Transmission Rate, calculate cut-point P2, the P3...... (among the figure shown in the dotted line) of the symbol that per two bits replace after the first symbol segmentation point P1.Simultaneously, can utilize the detection of pulse duration that cut-point is checked, as continuing to detect second rising edge 53, record this rising edge and constantly be T3, T3 is deducted T2 obtain second pulse duration d2, this pulse duration d2 and preset value are compared, pulse duration d2 is greater than this preset value, whether as second symbol segmentation point of 0110010101011010011001, it is correct to check the P2 that calculates according to Bit Transmission Rate with the center point P 2 of pulse duration d2.
If the binary bits data that step S41 receives are incomplete 110010101011010011001, shown in Fig. 5 b, equally, can find by the way first symbol segmentation point: successively 110010101011010011001 the edge change moment is detected, that detect first is first trailing edge 51b among Fig. 5 b, record this trailing edge and constantly be T1 ', that next detects is first rising edge 52b, record this rising edge and constantly be T2 ', T2 ' is deducted T1 ' obtain first pulse duration d1 ', this pulse duration d1 ' is compared with preset value, and the establishing method of preset value is referring to above-mentioned.Pulse duration d1 ' is greater than this preset value among Fig. 5 b, with the first symbol segmentation point of the center point P 1 of pulse duration d1 ' ' as 110010101011010011001.
Find first symbol segmentation point P1 ' afterwards, equally can be according to Bit Transmission Rate, calculate first symbol segmentation point P1 ' afterwards cut-point P2 ', the P3 ' of the symbol that replaces of per two bits ... (among the figure shown in the dotted line).Simultaneously, also can utilize the detection of pulse duration that cut-point is checked, detect as continuing, when detecting the 4th rising edge 58b and the 5th trailing edge 59b, it is subtracted each other along becoming constantly, obtain the 8th pulse duration d8 ', this pulse duration d8 ' is compared with preset value, pulse duration d8 ' is greater than this preset value, whether with the 5th symbol segmentation point of the center point P 5 of pulse duration d8 ' ' as 0110010101011010011001, it is correct to check the P5 that calculates according to Bit Transmission Rate.
S43, the first symbol segmentation point binary bits decoding data afterwards of finding out being positioned at step S42 successively, decoding rule is complementary with coding rule among the step S22: if the putting in order with adjacent last consistent to putting in order of bit of current a pair of bit, the symbol that then replaces current a pair of bit is 1, if putting in order with adjacent last opposite to putting in order of bit of current a pair of bit, the symbol that then replaces current a pair of bit is 0.Wherein, for the bit before the first symbol segmentation point, owing to be extra newly-increased symbol in the lead code, do not affect the integrality of binary character actual to be sent, therefore can ignore, perhaps adopting arbitrarily, binary character replaces.
Shown in Fig. 5 a, find after the first symbol segmentation point P1, a pair of bit before the first symbol segmentation point P1 adopts arbitrarily binary character replacement (x shown in Fig. 5 a); Judge and be positioned at after the first symbol segmentation point P1, from putting in order with adjacent last whether consistent to putting in order of bit (first symbol segmentation point P1 a pair of bit before) of first pair of bit calculating from left to right, by Fig. 5 a as can be known, the first contrast is specially for 10, last contrast is specially for 01, it puts in order on the contrary, and the symbol that therefore can determine to replace first pair of bit is 0; Judge and be positioned at after the first symbol segmentation point P1, last bit (is positioned at after the first symbol segmentation point P1 with adjacent from putting in order of second pair of bit calculating from left to right, from first pair of bit calculating from left to right) put in order whether consistent, by Fig. 5 a as can be known, the second contrast is specially for 01, the first contrast is specially for 10, and it puts in order on the contrary, so the symbol that can determine to replace second pair of bit is 0; Judge and be positioned at after the first symbol segmentation point P1, last bit (is positioned at after the first symbol segmentation point P1 with adjacent from putting in order of the 3rd pair of bit calculating from left to right, from second pair of bit calculating from left to right) put in order whether consistent, by Fig. 5 a as can be known, the 3rd contrast is specially for 01, the second contrast is specially for 01, and it puts in order unanimously, so the symbol that can determine to replace the 3rd pair of bit is 1; Judge and be positioned at after the first symbol segmentation point P1, last bit (is positioned at after the first symbol segmentation point P1 with adjacent from putting in order of the 4th pair of bit calculating from left to right, from the 3rd pair of bit of calculating from left to right) put in order whether consistent, by Fig. 5 a as can be known, the 4th contrast is specially for 01, the 3rd contrast is specially for 01, and it puts in order unanimously, so the symbol that can determine to replace the 4th pair of bit is 1; According to this rule, finally can obtain decoded binary character data x0011101000, shown in Fig. 5 a.
Shown in Fig. 5 b, find first symbol segmentation point P1 ' afterwards, same, first symbol segmentation point P1 ' a pair of bit before adopts arbitrarily binary character replacement (x shown in Fig. 5 b); Judge and be positioned at first symbol segmentation point P1 ' afterwards, from putting in order with adjacent last whether consistent to putting in order of bit (first symbol segmentation point P1 ' a pair of bit before) of first pair of bit calculating from left to right, by Fig. 5 b as can be known, the first contrast is specially for 01, last contrast is specially for 10, it puts in order on the contrary, and the symbol that therefore can determine to replace first pair of bit is 0; According to this rule, it is same finally can to obtain decoded binary character data, and x011101000 is shown in Fig. 5 b.
S44, according to the definition rule of binary character data in lead code identification lead code, cut apart lead code and data field, obtain binary character data actual to be sent in the data field.Owing to binary character data in the lead code among this embodiment are defined as 0001, therefore, can be with in the binary character data that obtain after the step S43 decoding, the sign that first symbol 1 that occurs finishes as lead code, cut apart lead code and data field, obtain binary character data actual to be sent in the data field.
S45, the binary character data actual to be sent of obtaining are carried out Business Processing from data field.
In this embodiment, if the coding rule that adopts among the step S22 is: if current sign is 0, the dibit that then replaces current sign is consistent with putting in order of the dibit that replaces its adjacent last symbol; If current sign is 0, the dibit that then replaces current sign is opposite with putting in order of the dibit that replaces its adjacent last symbol, the step S43 rule of decoding accordingly is so: if the putting in order with adjacent last consistent to putting in order of bit of current a pair of bit, the symbol that then replaces current a pair of bit is 0, if putting in order with adjacent last opposite to putting in order of bit of current a pair of bit, the symbol that then replaces current a pair of bit is 1.
Among this embodiment, before reality binary character data to be sent, increase extra binary character data with the form of lead code in the frame structure, even if in the abominable situation of transmission environment, what at first be interfered is the data that come in the forward lead code, and the binary character data to be sent to reality play anti-interference protective effect; Simultaneously, can be by detecting wider pulse duration in the lead code during decoding, before to the decoding data in the data field, identify the symbol segmentation point, then adopt the decoding rule that is complementary to identify symbol 0 and symbol 1, guarantee integrality and the reliability of decoding.
The present invention also provides based on the signal processing module of audio interface and signal processing method, with of the present invention group of solution frame rule and encoding and decoding rule application at the signal transmitting scene based on audio interface.Signal processing module of the present invention can be the intermediate structure between audio frequency apparatus and the external equipment, also can be built in the external equipment, and it carries out data interaction by audio interface and the audio frequency apparatus of audio frequency apparatus.Preferably, signal processing module is connected with the audio interface of audio frequency apparatus by the mode of external plug.Need to prove, if signal processing module is the intermediate structure between audio frequency apparatus and the external equipment, the earth potential that so hereinafter occurs refers to the common earth potential of signal processing module and external equipment, if signal processing module is built in the external equipment, the earth potential that so hereinafter occurs refers to the earth potential of external equipment.
As shown in Figure 6, the message processing module based on audio interface that provides for one embodiment of the invention, comprise: comprise audio signal receiver module 2, the first audio signal modular converter 3, the second audio signal modular converter 4, audio signal sending module 5, coding module 6, decoder module 7, framing module 8 reconciliation frame modules 9, wherein
Framing module 8, the digital signal that is used for treating to the audio frequency apparatus transmission is carried out framing, the digital signal behind the framing is inputed to coding module 6 encode.
The framing rule comprises: frame structure comprises lead code and data field, as shown in Figure 1.
Wherein, data field comprises the binary character data that described reality is to be sent, and these binary character data can form by a lot of 0, perhaps form by a lot of 1, perhaps form by a lot of 0 and 1.
Lead code comprises N continuous and identical binary character, and at least one comes this N symbol different binary character of phase place afterwards, N is the positive integer more than or equal to 2, preferably, comprise following several form (it is identical that ellipsis represents the symbol adjacent with its front and back): 0 ... 01,1 ... 10.This shows, include in the defined lead code of the present invention a pair of continuously and the symbol of single spin-echo, such as 0 ... last two " 01 " in 01,1 ... last two " 10 " in 10, and before this is to symbol, also comprise N-1 symbol.In N-1 the symbol, coming a forward N-2 symbol is mainly used to anti-interference, as long as this N-1 symbol is fully not disturbed behind the coding, namely at least also keep this previous symbol adjacent to the symbol of continuous and single spin-echo, so just can will replace the reference when decoding of putting in order of the dibit of this previous symbol.For followed by should be for symbol of continuous and single spin-echo, because of its single spin-echo and continuous, the situation that just can occur two pairs of bit arrangement reversed in order behind the coding, two continuous bits 0 appear, perhaps two continuous bits 1, at least there is a wider pulse duration in the binary bits data that just can guarantee to obtain behind the lead code coding, just can be by detecting wider pulse duration in the lead code when decoding so, before to the decoding data in the data field, identify the symbol segmentation point, then adopt the decoding rule identifier be complementary number 0 and symbol 1, guarantee integrality and the reliability of decoding.Therefore, the value of N can dispose according to the abominable degree of transmission environment, if comparatively abominable, symbol that may be disturbed is more, then N can get higher value, on the contrary, if possible disturbed symbol is few, then N can get smaller value, as long as guarantee that this a pair of symbol N-1 symbol before continuous and single spin-echo is fully disturbed in the lead code, the last bit sign that namely at least also keeps and should be adjacent to the symbol of continuous and single spin-echo just can guarantee integrality and the reliability of binary data actual to be sent, and guarantees decoding integrality and reliability to reality binary data to be sent.
Come afterwards binary character that phase place is different of this N symbol, be mainly used to identify the end of lead code, lead code and data field are cut apart in the convenient end of identifying lead code when decoding.As binary character data in the lead code are defined as 0 ... 01 o'clock, the sign that first symbol 1 that occurs in the binary character data that obtain after the decoding is finished as lead code, cut apart lead code and data field, obtain binary character data actual to be sent in the data field, binary character data in the lead code are defined as 1 ... 10 o'clock, the sign that first symbol 0 that occurs in the binary character data that obtain after the decoding is finished as lead code, cut apart lead code and data field, obtain binary character data actual to be sent in the data field.
Coding module 6, a lot of binary character data that form successively for lead code and data field to frame structure adopt default coding rule to encode.
Coding rule comprises: successively to each symbols of described a lot of binary character data, utilize respectively two binary bits with out of phase to replace, and according to the phase place of current sign with replace the putting in order of dibit of its adjacent last symbol, determine to replace the putting in order of dibit of described current sign.Concrete can be: if current sign is 1, the dibit that then replaces current sign is consistent with putting in order of the dibit that replaces its adjacent last symbol; If current sign is 0, the dibit that then replaces current sign is opposite with putting in order of the dibit that replaces its adjacent last symbol; Or: if current sign is 0, the dibit that then replaces current sign is consistent with putting in order of the dibit that replaces its adjacent last symbol; If current sign is 1, the dibit that then replaces current sign is opposite with putting in order of the dibit that replaces its adjacent last symbol.
Wherein, for the first symbol of a lot of binary character data to be encoded, can utilizing arbitrarily, a pair of bit (10 or 01) with out of phase replaces.After although first symbol adopts the dibit of different order to replace, the bit-order that will cause replacing follow-up all symbols is all put upside down, but this can't affect the complete sum reliability of decoding, because be putting in order and adjacent last putting in order to bit according to current a pair of bit during decoding, determine to replace the symbol of current a pair of bit, and not exclusively be replaced in putting in order of current a pair of bit.
The second audio signal modular converter 4, the binary bits data that are used for obtaining behind coding module 6 codings are converted to audio signal.
As shown in Figure 7, be a kind of execution mode of the second audio signal modular converter 4 in the signal processing module shown in Figure 6.The second audio signal modular converter 4 adopts the current mode D/A converter module, such as current mode DAC, after the binary bits data that current mode DAC obtains after coding module 6 is encoded are converted to audio signal, simulate the operation principle of existing ear microphone, extract electric current from the MIC utmost point of audio interface, cause the impedance variation that MIC extremely goes up, thereby cause the curent change that microphone extracts from the MIC utmost point, when the electric current that extracts changes, the voltage that MIC extremely goes up can be along with variation, the voltage of extremely going up by changing MIC is to audio frequency apparatus input current type audio signal.
In another embodiment, signal processing module shown in Figure 6 also can comprise amplitude/centered level control module, amplitude/centered level control module is used for amplitude and the centered level of the audio signal of control the second audio signal modular converter 4 outputs, because different audio frequency apparatus, the amplitude of the audio signal that its audio interface is mated and centered level are different, therefore, by the control of amplitude/centered level control module, can be better compatible from the audio interface of different audio frequency apparatuses.
Audio signal sending module 5 is used for docking with Mike (MIC) utmost point in the audio frequency apparatus sound intermediate frequency interface, and the Mike's utmost point by audio interface sends the audio signal that the second audio signal modular converter 4 converts to audio frequency apparatus.
Audio signal receiver module 2, be used for docking with the sound channel utmost point (comprising left/right/MOMO sound channel) in the audio frequency apparatus sound intermediate frequency interface, the sound channel utmost point by audio interface receives the audio signal from audio frequency apparatus, and this audio signal gets after audio frequency apparatus framing, coding, digital-to-analogue conversion.
The first audio signal modular converter 3 is used for being converted to from the audio signal of audio frequency apparatus the digital bit data.As shown in Figure 8, be a kind of execution mode of the first audio signal modular converter 3 in the signal processing module shown in Figure 6.Comprise DC converting module 31 and comparison module 32.Corresponding to the sound channel number in the audio interface, set the sub-comparison module of corresponding number in the comparison module 32, present embodiment is set the sub-comparison module 32a of corresponding L channel and the sub-comparison module 32b of corresponding R channel.Owing to the ac voltage signal that is generally of exporting from the sound channel utmost point of audio interface, DC converting module 31 is used for the audio signal conversion direct current signal of audio signal receiver module 2 from the alternating voltage form of the sound channel utmost point reception of audio interface.Concrete, can be on the ac voltage signal of sound channel utmost point output, the positive direct voltage VDC_A that superposes, the original AC signal that the sound channel utmost point is exported becomes the signal that certain DC component is arranged, and preferred VDC_A is half of supply voltage VDD.The signal that certain DC component is arranged and above-mentioned direct voltage VDC_A that sub-comparison module 32a, sub-comparison module 32b are used for DC converting module 31 is converted to compare, send comparative result, if the signal that certain DC component is arranged that DC converting module 31 converts to is greater than VDC_A, then export high level, otherwise output low level.
The binary bits data that obtain after 3 conversions of the first audio signal modular converter still are frame structures, comprise lead code and data field, what comprise in the data field of the frame structure of these binary bits data is: the binary bits data after binary character data actual to be sent are encoded through audio frequency apparatus; What comprise in the lead code is: the binary bits data after newly-increased binary character data are encoded through audio frequency apparatus during framing.If in the transmission course, do not have bit drop-out, the binary bits data that obtain after 3 conversions of the first audio signal modular converter so are complete.If transmission environment is abominable, the bit that is arranged in front may be lost, and the binary bits data that obtain after 3 conversions of the first audio signal modular converter so are incomplete.
Decoder module 7, be used for detecting successively the pulse duration of the binary bits data that obtain after 3 conversions of the first audio signal modular converter, find first symbol segmentation point, the decoding rule that again this binary bits the data and its coding rule is complementary is decoded.
Find the method for first symbol segmentation point to be: the edge of detecting successively these binary bits data becomes constantly, obtain pulse duration with adjacent two along becoming constantly to subtract each other successively, with the central point of the first pulse duration that surpasses predetermined value as described first symbol segmentation point, such as Fig. 5 a and Fig. 5 b.Because lead code is positioned at before the data field, so must be first the binary bits data of lead code to be detected, again since include in the defined lead code of the present invention a pair of continuously and the symbol of single spin-echo, therefore, as long as N-1 forward in lead code symbol is fully not disturbed, namely at least also keep this previous symbol adjacent to the symbol of continuous and single spin-echo, so just can will replace the reference when decoding of putting in order of the dibit of this previous symbol.For followed by should be for symbol of continuous and single spin-echo, because of its single spin-echo and continuous, the situation that just can occur two pairs of bit arrangement reversed in order behind the coding, two continuous bits 0 appear, perhaps two continuous bits 1, at least there is a wider pulse duration in the binary bits data that just can guarantee to obtain behind the lead code coding, so just, can by detecting wider pulse duration in the lead code, before to the decoding data in the data field, identify first symbol segmentation point.
Find after the first symbol segmentation point P1, can be according to Bit Transmission Rate, calculate the cut-point of the symbol that per two bits replace after the first symbol segmentation point.Simultaneously, can also utilize the detection of pulse duration that some cut-points are checked.
The decoding rule comprises: successively to being arranged in this first symbol segmentation point binary bits data afterwards, every a pair of binary bits adjacent and that have an out of phase adopts a binary character to replace, and according to putting in order of current a pair of bit, and adjacent last to the putting in order of bit, determine to replace the phase place of the symbol of current a pair of bit.Decoding rule need to be complementary with the coding rule of data to be decoded, if the coding rule of these data is: if current sign is 1, the dibit that then replaces current sign is consistent with putting in order of the dibit of its adjacent last symbol of replacement; If current sign is 0, the dibit that then replaces current sign is opposite with putting in order of the dibit that replaces its adjacent last symbol.The decoding that is complementary so with it by rule is: if the putting in order with adjacent last consistent to putting in order of bit of current a pair of bit, the symbol that then replaces current a pair of bit is 1, if putting in order with adjacent last opposite to putting in order of bit of current a pair of bit, the symbol that then replaces current a pair of bit is 0.On the contrary, if the coding rule of these data is: if current sign is 0, the dibit that then replaces current sign is consistent with putting in order of the dibit that replaces its adjacent last symbol; If current sign is 1, the dibit that then replaces current sign is opposite with putting in order of the dibit that replaces its adjacent last symbol.The decoding that is complementary so with it by rule is: if the putting in order with adjacent last consistent to putting in order of bit of current a pair of bit, the symbol that then replaces current a pair of bit is 0, if putting in order with adjacent last opposite to putting in order of bit of current a pair of bit, the symbol that then replaces current a pair of bit is 1.
Separate frame module 9, be used for the definition rule identification lead code according to lead code binary character data, cut apart lead code and data field, obtain binary character data actual to be sent in the data field.
Come afterwards binary character that phase place is different of this N symbol, be mainly used to identify the end of lead code, lead code and data field are cut apart in the convenient end of identifying lead code when decoding.As binary character data in the lead code are defined as 0 ... 01 o'clock, the sign that first symbol 1 that occurs in the binary character data that obtain after the decoding is finished as lead code, cut apart lead code and data field, obtain binary character data actual to be sent in the data field, binary character data in the lead code are defined as 1 ... 10 o'clock, the sign that first symbol 0 that occurs in the binary character data that obtain after the decoding is finished as lead code, cut apart lead code and data field, obtain binary character data actual to be sent in the data field.
Because for different audio frequency apparatuses, the position disunity of the MIC utmost point and ground (GND) utmost point in common its audio interface, such as Samsung mobile phone and i Phone, the MIC utmost point in its audio interface and the position of gnd electrode are opposite, insert the audio interface of these two kinds of mobile phones when same plug after, the middle ring of plug and the signal of telecommunication that end on arrives are fixing, and the MIC utmost point and gnd electrode position are fixing in the audio frequency apparatus, cause the problem based on the data communication failure of audio interface.Can utilizing before audio interface and audio frequency apparatus carry out data communication, first the MIC utmost point and gnd electrode in the audio interface be identified.As shown in Figure 9, be the signal processing module based on audio interface that another embodiment of the present invention provides, signal processing module possesses the recognition function of the MIC utmost point and gnd electrode.The difference of this data processing module and data processing module shown in Figure 6 is, except comprising audio signal receiver module 2 shown in Figure 6, the first audio signal modular converter 3, the second audio signal modular converter 4, audio signal sending module 5, coding module 6, decoder module 7, framing module 8 reconciliation frame modules 9, also comprise the control module 1 in the audio interface Mike utmost point and earth polar.
The control module 1 in audio interface Mike's utmost point and earth polar, be used for before carrying out data communication by audio interface and audio frequency apparatus, first the MIC utmost point and gnd electrode in the audio interface are identified, again the audio signal sending module 5 in the signal processing module is docked with the MIC utmost point that identifies, earth potential is docked with the gnd electrode that identifies.Need to prove, because the position of the sound channel utmost point is normally fixed in the different audio frequency apparatus sound intermediate frequency interfaces, therefore, the audio signal receiver module 2 in the signal processing module can be finished according to usual manner of the prior art with docking of the audio interface sound channel utmost point.After the completing port docking, other modules of signal processing module just can be normally and audio frequency apparatus carry out data communication.
As shown in figure 10, be a kind of implementation of the control module 1 in signal processing module sound intermediate frequency interface Mike's utmost point shown in Figure 9 and earth polar, it comprises acquisition module 121, identification module 122 and port handover module 123.Wherein, after acquisition module 121 is used for obtaining audio frequency apparatus unlatching recording channel, the signal of telecommunication of each utmost point in a pair of audio frequency input extremely in its audio interface, identification module 122 is for the signal of telecommunication identification MIC utmost point and the gnd electrode at the two poles of the earth that get access to according to acquisition module 121, port handover module 123, be used for identification module 122 and identify after the MIC utmost point and the gnd electrode, automatically earth potential is docked with the gnd electrode that identifies, with audio signal sending module 5 and the MIC utmost point that identifies.
As shown in figure 11, be the another kind of implementation of the control module 1 in signal processing module sound intermediate frequency interface Mike's utmost point shown in Figure 9 and earth polar.Comprise voltage domain modular converter 141 and the first recognin module 142.After voltage domain modular converter 141 is opened the recording channel by existing audio frequency apparatus, one bias current is provided for the MIC utmost point, so that MIC has this precondition of voltage that is higher than gnd electrode, set up the curtage passage between a pair of audio frequency input of in its audio interface this utmost point, earth potential is accessed in the node of this passage, obtain in this a pair of audio frequency input extremely each utmost point with respect to this earthy voltage relative value.Because after audio frequency apparatus is opened the recording channel, MIC has the voltage that is higher than gnd electrode, and earth potential is 0 under normal circumstances, so the MIC utmost point with respect to this earthy voltage relative value one be decided to be on the occasion of, gnd electrode is decided to be negative value with respect to this earthy voltage relative value one, therefore, 141 outputs of voltage domain modular converter is a positive voltage relative value and a negative voltage relative value.The first recognin module 142 identifies the MIC utmost point and gnd electrode by the positive negative characteristic that detects the voltage relative value, the positive one MIC utmost point very, negative one gnd electrode very.
As shown in figure 12, be the another kind of implementation of the control module 1 in signal processing module sound intermediate frequency interface Mike's utmost point shown in Figure 9 and earth polar.This embodiment is different from place embodiment illustrated in fig. 11 and is, adopt the second recognin module 151 and logic judgment module 152 to substitute the first recognin module 142 embodiment illustrated in fig. 11, namely the control module 1 in this embodiment sound intermediate frequency interface Mike's utmost point and earth polar comprises voltage domain modular converter 141, the second recognin module 151 and logic judgment module 152.After voltage domain modular converter 141 is still opened the recording channel by existing audio frequency apparatus, one bias current is provided for the MIC utmost point, so that MIC has this precondition of voltage that is higher than gnd electrode, set up the curtage passage between a pair of audio frequency input of in its audio interface this utmost point, earth potential is accessed in the node of this current channel, obtain in this a pair of audio frequency input extremely each utmost point with respect to this earthy voltage relative value.The second recognin module 151 comprises two comparison modules, the first comparison module 151a and the second comparison module 151b, the first comparison module 151a is used for a voltage relative value and the earth potential of 141 outputs of voltage domain modular converter are compared, and exports a digital signal level according to comparative result; The second comparison module 151b is used for another voltage relative value and the earth potential of 141 outputs of voltage domain modular converter are compared, and exports another digital signal level according to comparative result.Logic judgment module 152 is used for the digital signal level identification MIC utmost point and the gnd electrode according to the first comparison module 151a and the second comparison module 151b output.The comparison rule of supposing the first comparison module 151a and the second comparison module 151b is, when voltage relative value during greater than earth potential, output level 1, when voltage relative value during less than earth potential, output level 0 is (in the practical application, also can be on the contrary), so when the first comparison module 151a and the second comparison module 151b output all be level 0 time, show that audio frequency apparatus also do not open the plug of recording channel or external equipment and also be not inserted in the audio interface, when any one output be level 1 time, show that audio frequency apparatus opened the recording channel, logic judgment module 152 is identified as the MIC utmost point with level 1 a corresponding utmost point, and level 0 a corresponding utmost point is identified as gnd electrode.
The audio interface MIC utmost point shown in Figure 12 and the identification module 1 of gnd electrode can be realized with the form of circuit.As shown in figure 13, be its equivalent circuit structure, suppose that signal processing module is built in the external equipment, the earth potential of external equipment represents that with AFG the output port of the audio signal sending module in the signal processing module represents with the AFM of external equipment.The identification module 1 of the audio interface MIC utmost point and gnd electrode comprises voltage domain converting unit 191, the first comparator 192, the second comparator 193, logic judgment unit 194 and port diverter switch 195.Wherein, voltage domain converting unit 191 can adopt the form of electric resistance partial pressure, structure shown in Figure 14 a, the respective rings section (such as A section and B section) of the external plug by signal processing module, the a pair of audio frequency input utmost point of accessing to audio equipment, in audio interface, be connected in series the intermediate node earthing potential AFG of the first resistance R 1 and the second resistance R 2, the first resistance R 1 and the second resistance R 2 between a pair of audio frequency input utmost point (corresponding to A section and the B section of plug).Because after existing audio frequency apparatus is opened the recording channel, MIC has the voltage that is higher than gnd electrode, and the voltage difference of supposing the MIC utmost point and gnd electrode is Δ V, R1=R2, AFG=0, the two voltage relative values with respect to earth potential AFG of voltage domain converting unit 191 outputs are respectively 1/2 Δ V ,-1/2 Δ V so.One voltage relative value of one input access voltage domain converting unit, 191 outputs of the first comparator 192, another input access earth potential AFG, output is exported a digital signal level according to comparative result, if this voltage relative value is greater than this earth potential AFG, then output level 1, otherwise output level 0.Another voltage relative value of one input access voltage domain converting unit, 191 outputs of the second comparator 193, another input access earth potential AFG, output is exported another digital signal level according to comparative result, equally, if this voltage relative value is greater than earth potential AFG, then output level 1, otherwise output level 0.The output of one input termination, first comparator 192 of logic judgment unit 194, the output of another input termination the second comparator 193, when the first comparator 192 and the output of the second comparator 193 all be level 0 time, show that audio frequency apparatus is not also opened the recording channel or the external plug of signal processing module also is not inserted in the audio interface, when any one output be level 1 time, show that audio frequency apparatus opened the recording channel, logic judgment unit 194 is identified as the MIC utmost point with level 1 a corresponding utmost point, level 0 a corresponding utmost point is identified as gnd electrode, exports recognition result to port diverter switch 195.Port diverter switch 195 is docked earth potential AFG automatically with the gnd electrode that identifies, the earth potential in order to unified signal processing module and audio frequency apparatus docks AFM with the MIC utmost point that identifies, to set up the passage that sends data to audio frequency apparatus.
In another embodiment, voltage domain converting unit 191 among Figure 13 can also adopt the form of capacitance partial pressure, shown in Figure 14 b, in audio interface, be connected in series the first capacitor C 1 and the second capacitor C 2 between a pair of audio frequency input utmost point, the intermediate node of the first capacitor C 1 and the second capacitor C 2 access earth potential AFG, the first capacitor C 1, the second capacitor C 2 are identical with R1, R2 effect among Figure 14 a.
In another embodiment, voltage domain converting unit 191 among Figure 13 can also adopt the form of metal-oxide-semiconductor dividing potential drop, shown in Figure 14 c, in audio interface, be connected in series the first metal-oxide-semiconductor N1 and the second metal-oxide-semiconductor N2 between a pair of audio frequency input utmost point, the intermediate node access earth potential AFG of the first metal-oxide-semiconductor N1 and the second metal-oxide-semiconductor N2 also is included as current source I and the 3rd metal-oxide-semiconductor N3 that the first metal-oxide-semiconductor N1 and the second metal-oxide-semiconductor N2 provide grid current.The gate voltage of the first metal-oxide-semiconductor N1, the second metal-oxide-semiconductor N2 and the 3rd metal-oxide-semiconductor N3 links to each other, and consists of current mirror, current source I the 3rd metal-oxide-semiconductor N3 that flows through, and the drain-source resistance RDS of the first metal-oxide-semiconductor N1, the second metal-oxide-semiconductor N2 is identical with R1, R2 effect among Fig. 7 a.
In another embodiment; can also be on the basis of voltage domain converting unit 191 shown in Figure 14 c; make further improvements; shown in Figure 14 d; be connected a protective resistance R1 ', R2 ' respectively between the audio frequency input utmost point and the first metal-oxide-semiconductor N1, the second metal-oxide-semiconductor N2, R1 ', R2 ' play respectively the effect of Limited Current and electrostatic protection.
As shown in figure 15, the signal processing module that provides for another embodiment of the present invention.Be with difference embodiment illustrated in fig. 9, signal processing module is conciliate the frame module 9 except control module 1, audio signal receiver module 2, the first audio signal modular converter 3, the second audio signal modular converter 4, audio signal sending module 5, coding module 6 and the decoder module 7, the framing module 8 that comprise the audio interface Mike utmost point and earth polar, also comprise connecting checking module 10, be used for checking that whether signal processing module is finished with audio interface is connected.Concrete, can the voltage of the MIC utmost point and gnd electrode in the audio interface be checked, after its voltage difference is above the threshold value of setting, connection has been finished in expression, output connects index signal, and after detecting signal processing module and extracting audio interface, the notification signal processing module enters low-power consumption mode.
As shown in figure 16, be the signal processing method of signal processing module shown in Figure 9, its flow process comprises:
S00, signal processing module are connected with the audio interface of audio frequency apparatus by the mode of external plug, audio signal receiver module 2 is finished according to usual manner of the prior art with the sound channel utmost point of audio interface and is docked, after audio frequency apparatus is opened the recording channel, the MIC utmost point and the gnd electrode of 1 pair of audio interface of control module in audio interface Mike's utmost point and earth polar are identified, after the identification, earth potential is docked with the gnd electrode that identifies, audio signal sending module 5 is docked with the MIC utmost point that identifies.
On the receive path:
S01, audio signal receiver module 2 pass through the sound channel utmost point reception of audio interface from the audio signal of audio frequency apparatus, with audio signal transmission to the first audio signal modular converter 3 that receives.Should obtain after via audio frequency apparatus framing, coding and digital-to-analogue conversion from the audio signal of audio frequency apparatus.
S02, the first audio signal modular converter 3 will be converted to the binary bits data from this audio signal of audio frequency apparatus, export the binary bits data that obtain after the conversion to decoder module 7.Before transferring to decoder module 7, preferred, by filter burr module the binary bits data that obtain after changing are filtered burr and process.
S03,7 pairs of binary bits decoding datas that convert to from the audio signal of audio frequency apparatus of decoder module are reportedly transported to solution frame module 9 with the binary signed digit number that obtains after the decoding.
Concrete, detect successively the pulse duration of the binary bits data that obtain after 3 conversions of the first audio signal modular converter, find first symbol segmentation point, the decoding rule that again this binary bits the data and its coding rule is complementary is decoded.
Find the method for first symbol segmentation point to be: the edge of detecting successively these binary bits data becomes constantly, obtain pulse duration with adjacent two along becoming constantly to subtract each other successively, with the central point of the first pulse duration that surpasses predetermined value as described first symbol segmentation point, such as Fig. 5 a and Fig. 5 b.
Find after the first symbol segmentation point P1, can be according to Bit Transmission Rate, calculate the cut-point of the symbol that per two bits replace after the first symbol segmentation point.Simultaneously, can also utilize the detection of pulse duration that some cut-points are checked.
The decoding rule comprises: successively to being arranged in this first symbol segmentation point binary bits data afterwards, every a pair of binary bits adjacent and that have an out of phase adopts a binary character to replace, and according to putting in order of current a pair of bit, and adjacent last to the putting in order of bit, determine to replace the phase place of the symbol of current a pair of bit.Decoding rule need to be complementary with the coding rule of data to be decoded, if the coding rule of these data is: if current sign is 1, the dibit that then replaces current sign is consistent with putting in order of the dibit of its adjacent last symbol of replacement; If current sign is 0, the dibit that then replaces current sign is opposite with putting in order of the dibit that replaces its adjacent last symbol.The decoding that is complementary so with it by rule is: if the putting in order with adjacent last consistent to putting in order of bit of current a pair of bit, the symbol that then replaces current a pair of bit is 1, if putting in order with adjacent last opposite to putting in order of bit of current a pair of bit, the symbol that then replaces current a pair of bit is 0.On the contrary, if the coding rule of these data is: if current sign is 0, the dibit that then replaces current sign is consistent with putting in order of the dibit that replaces its adjacent last symbol; If current sign is 1, the dibit that then replaces current sign is opposite with putting in order of the dibit that replaces its adjacent last symbol.The decoding that is complementary so with it by rule is: if the putting in order with adjacent last consistent to putting in order of bit of current a pair of bit, the symbol that then replaces current a pair of bit is 0, if putting in order with adjacent last opposite to putting in order of bit of current a pair of bit, the symbol that then replaces current a pair of bit is 1.
S04, separate the binary character data that obtain after 7 decodings of 9 pairs of decoder modules of frame module and separate frame, carry out buffer memory with separating the actual binary character data to be sent of the audio frequency apparatus that obtains behind the frame, or be sent to other processing modules and carry out Business Processing.
Concrete, can cut apart lead code and data field according to the definition rule identification lead code of binary character data in the lead code, obtain binary character data actual to be sent in the data field.Come afterwards binary character that phase place is different of this N symbol, be mainly used to identify the end of lead code, lead code and data field are cut apart in the convenient end of identifying lead code when decoding.As binary character data in the lead code are defined as 0 ... 01 o'clock, the sign that first symbol 1 that occurs in the binary character data that obtain after the decoding is finished as lead code, cut apart lead code and data field, obtain binary character data actual to be sent in the data field, binary character data in the lead code are defined as 1 ... 10 o'clock, the sign that first symbol 0 that occurs in the binary character data that obtain after the decoding is finished as lead code, cut apart lead code and data field, obtain binary character data actual to be sent in the data field.
On the sendaisle:
S11, framing module 8 are taken out or are obtained actual treating and to the binary character data of audio frequency apparatus transmission the binary character data that reality is to be sent carried out framing from other processing modules from buffer memory, input to coding module 6 behind the framing.
Wherein, frame structure comprises lead code and data field, as shown in Figure 1.Data field comprises the binary character data that described reality is to be sent, and these binary character data can form by a lot of 0, perhaps form by a lot of 1, perhaps form by a lot of 0 and 1.Lead code comprises N continuous and identical binary character, and at least one comes this N symbol different binary character of phase place afterwards, N is the positive integer more than or equal to 2, preferably, comprise following several form (it is identical that ellipsis represents the symbol adjacent with its front and back): 0 ... 01,1 ... 10.
The a lot of binary character data of S12,8 outputs of 6 pairs of framing modules of coding module are encoded, and a lot of binary bits data that obtain behind the coding are inputed to the second audio signal modular converter 4.
The a lot of binary character data that lead code in the frame structure and data field are formed successively adopt default coding rule to encode.Wherein, coding rule comprises: successively to each symbols of described a lot of binary character data, utilize respectively two binary bits with out of phase to replace, and according to the phase place of current sign with replace the putting in order of dibit of its adjacent last symbol, determine to replace the putting in order of dibit of described current sign.Concrete can be: if current sign is 1, the dibit that then replaces current sign is consistent with putting in order of the dibit that replaces its adjacent last symbol; If current sign is 0, the dibit that then replaces current sign is opposite with putting in order of the dibit that replaces its adjacent last symbol; Or: if current sign is 0, the dibit that then replaces current sign is consistent with putting in order of the dibit that replaces its adjacent last symbol; If current sign is 1, the dibit that then replaces current sign is opposite with putting in order of the dibit that replaces its adjacent last symbol.Wherein, for the first symbol of a lot of binary character data to be encoded, can utilizing arbitrarily, a pair of bit (10 or 01) with out of phase replaces.After although first symbol adopts the dibit of different order to replace, the bit-order that will cause replacing follow-up all symbols is all put upside down, but this can't affect the complete sum reliability of decoding, because be putting in order and adjacent last putting in order to bit according to current a pair of bit during decoding, determine to replace the symbol of current a pair of bit, and not exclusively be replaced in putting in order of current a pair of bit.
The a lot of binary bits data that S13, the second audio signal modular converter 4 will obtain after will encoding are converted to audio signal, transfer to audio signal sending module 5.
S14, audio signal sending module 5 will send to audio frequency apparatus via the audio signal that the second audio signal modular converter 4 converts to by the MIC utmost point of audio interface.After audio frequency apparatus is received this audio signal, carry out analog-to-digital conversion, decoding, the operation of solution frame.
This embodiment is the application scenarios based on the audio interface the transmission of data, the coding and decoding scheme that provides a kind of docking port initial condition not require.Simultaneously, utilize audio interface before audio frequency apparatus and external equipment carry out data communication, first the MIC utmost point and gnd electrode in the audio interface are identified, again the audio signal sending module in the signal processing module is docked with the MIC utmost point that identifies, earth potential is docked with the gnd electrode that identifies, avoid the interior MIC utmost point of audio frequency apparatus and gnd electrode position fixing, cause the problem based on the data communication failure of audio interface.
Above content is the further description of the present invention being done in conjunction with concrete execution mode, can not assert that implementation of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.

Claims (32)

1. data transmission method comprises:
The binary character data that reality is to be sent are carried out framing, frame structure comprises lead code and data field, described data field comprises the binary character data that described reality is to be sent, described lead code comprises N continuous and identical binary character, and different binary character of phase place that comes after the described N symbol, wherein, N is the positive integer more than or equal to 2;
The a lot of binary character data that described lead code and data field are formed successively adopt default coding rule to encode, described coding rule comprises: successively to each symbols of described a lot of binary character data, utilize respectively two binary bits with out of phase to replace, and according to the phase place of current sign with replace the putting in order of dibit of its adjacent last symbol, determine to replace the putting in order of dibit of described current sign;
The binary bits data that obtain behind the coding are transmitted.
2. data transmission method as claimed in claim 1 is characterized in that, described coding rule comprises: if current sign is 1, the dibit that then replaces current sign is consistent with putting in order of the dibit that replaces its adjacent last symbol; If current sign is 0, the dibit that then replaces current sign is opposite with putting in order of the dibit that replaces its adjacent last symbol.
3. data transmission method as claimed in claim 2 is characterized in that, described lead code comprises N continuous symbol 0, and one comes described N the symbol 1 after the continuous symbol 0.
4. data transmission method as claimed in claim 1 is characterized in that, described coding rule comprises: if current sign is 0, the dibit that then replaces current sign is consistent with putting in order of the dibit that replaces its adjacent last symbol; If current sign is 1, the dibit that then replaces current sign is opposite with putting in order of the dibit that replaces its adjacent last symbol.
5. data transmission method as claimed in claim 4 is characterized in that, described lead code comprises N continuous symbol 1, and one comes described N the symbol 0 after the continuous symbol 1.
6. data processing method comprises:
Reception utilizes the binary bits data of each described data transmission method transmission of claim 1 to 5;
Detect successively the pulse duration of described binary bits data, find first symbol segmentation point;
The decoding rule that described binary bits the data and its coding rule are complementary is decoded, described decoding rule comprises: successively to being arranged in described first symbol segmentation point binary bits data afterwards, every a pair of binary bits adjacent and that have an out of phase adopts a binary character to replace, and according to putting in order of current a pair of bit, and adjacent last to the putting in order of bit, determine to replace the phase place of the symbol of current a pair of bit;
According to the definition rule identification lead code of binary character data in the lead code, cut apart lead code and data field, obtain binary character data actual to be sent in the data field;
The binary character data that described reality is to be sent are carried out Business Processing.
7. data processing method as claimed in claim 6, it is characterized in that, detect successively the pulse duration of described binary bits data, find the method for first symbol segmentation point to comprise: the edge of detecting successively described binary bits data becomes constantly, obtain pulse duration with adjacent two along becoming constantly to subtract each other successively, with the central point of the first pulse duration that surpasses predetermined value as described first symbol segmentation point.
8. signal processing method based on audio interface comprises:
The binary character data that reality is to be sent are carried out framing, frame structure comprises lead code and data field, described data field comprises the binary character data that described reality is to be sent, described lead code comprises N continuous and identical binary character, and different binary character of phase place that comes after the described N symbol, wherein, N is the positive integer more than or equal to 2; The a lot of binary character data that described lead code and data field are formed successively adopt default coding rule to encode, described coding rule comprises: successively to each symbols of described a lot of binary character data, utilize respectively two binary bits with out of phase to replace, and according to the phase place of current sign with replace the putting in order of dibit of its adjacent last symbol, determine to replace the putting in order of dibit of described current sign; The binary bits data that obtain behind the coding are converted to audio signal; Audio interface by audio frequency apparatus sends described audio signal to described audio frequency apparatus;
Audio interface by audio frequency apparatus receives the audio signal from described audio frequency apparatus; Described audio signal is converted to the binary bits data; Detect successively the pulse duration of described binary bits data, find first symbol segmentation point; The decoding rule that described binary bits the data and its coding rule are complementary is decoded, described decoding rule comprises: successively to being arranged in described first symbol segmentation point binary bits data afterwards, every a pair of binary bits adjacent and that have an out of phase adopts a binary character to replace, and according to putting in order of current a pair of bit, and adjacent last to the putting in order of bit, determine to replace the phase place of the symbol of current a pair of bit; According to the definition rule identification lead code of binary character data in the lead code, cut apart lead code and data field, obtain binary character data actual to be sent in the data field.
9. the signal processing method based on audio interface as claimed in claim 8 is characterized in that, described coding rule comprises: if current sign is 1, the dibit that then replaces current sign is consistent with putting in order of the dibit that replaces its adjacent last symbol; If current sign is 0, the dibit that then replaces current sign is opposite with putting in order of the dibit that replaces its adjacent last symbol.
10. the signal processing method based on audio interface as claimed in claim 9 is characterized in that, described lead code comprises N continuous symbol 0, and one comes described N the symbol 1 after the continuous symbol 0.
11. the signal processing method based on audio interface as claimed in claim 8 is characterized in that, described coding rule comprises: if current sign is 0, the dibit that then replaces current sign is consistent with putting in order of the dibit that replaces its adjacent last symbol; If current sign is 1, the dibit that then replaces current sign is opposite with putting in order of the dibit that replaces its adjacent last symbol.
12. the signal processing method based on audio interface as claimed in claim 11 is characterized in that, described lead code comprises N continuous symbol 1, and one comes described N the symbol 0 after the continuous symbol 1.
13. the signal processing method based on audio interface as claimed in claim 8, it is characterized in that, detect successively the pulse duration of described binary bits data, find the method for first symbol segmentation point to comprise: the edge of detecting successively described binary bits data becomes constantly, obtain pulse duration with adjacent two along becoming constantly to subtract each other successively, with the central point of the first pulse duration that surpasses predetermined value as described first symbol segmentation point.
14. the signal processing method based on audio interface as claimed in claim 8 is characterized in that, the binary bits data that obtain after employing current mode D/A converter module will be encoded are converted to audio signal.
15. the signal processing method based on audio interface as claimed in claim 14 is characterized in that, described current mode D/A converter module sends the audio signal that converts to by the mode that the Mike's utmost point from described audio interface extracts electric current to described audio frequency apparatus.
16. such as each described signal processing method based on audio interface of claim 8 to 15, it is characterized in that, audio interface by audio frequency apparatus and described audio frequency apparatus carry out also comprising before the data interaction: will dock with the sound channel utmost point of audio interface for the audio signal receiving element that receives from the audio signal of described audio frequency apparatus; Mike's utmost point and earth polar in the audio interface are identified, will be docked with the Mike's utmost point that identifies for the audio signal transmitting element that sends audio signal to described audio frequency apparatus, earth potential is docked with the earth polar of identifying.
17. the signal processing method based on audio interface as claimed in claim 16 is characterized in that, the method that Mike's utmost point and earth polar in the audio interface are identified comprises:
Obtain described audio frequency apparatus after opening the recording channel, the signal of telecommunication of each utmost point in a pair of audio frequency input extremely in its audio interface;
The signal of telecommunication according to each utmost point in the described a pair of audio frequency input is extremely identified described Mike's utmost point and earth polar.
18. the signal processing method based on audio interface as claimed in claim 17, it is characterized in that the method for obtaining the signal of telecommunication of each utmost point in the described a pair of audio frequency input extremely is: obtain in the described a pair of audio frequency input extremely each utmost point with respect to described earthy voltage relative value.
19. the signal processing method based on audio interface as claimed in claim 18, it is characterized in that, according to signal of telecommunication identification Mike's utmost point of each utmost point and the method in earth polar in the described a pair of audio frequency input extremely be: detect the positive negative characteristic of the voltage relative value of each utmost point in the described a pair of audio frequency input extremely, identify described Mike's utmost point and described earth polar according to testing result.
20. the signal processing method based on audio interface as claimed in claim 18 is characterized in that, according to signal of telecommunication identification Mike's utmost point of each utmost point and the method in earth polar in the described a pair of audio frequency input extremely is:
The voltage relative value of each utmost point in the described a pair of audio frequency input is extremely compared with described earth potential respectively, obtain respectively a digital signal level according to separately comparative result;
Identify described Mike's utmost point and described earth polar according to two digital signal levels that obtain.
21. the signal processing method based on audio interface as claimed in claim 20, it is characterized in that, when voltage relative value during greater than described earth potential, obtain level 1, when voltage relative value during less than described earth potential, obtain level 0, a utmost point in the level 1 corresponding described a pair of audio frequency input extremely is identified as described Mike's utmost point, a utmost point in the level 0 corresponding described a pair of audio frequency input extremely is identified as described earth polar.
22. the signal processing method based on audio interface as claimed in claim 20, it is characterized in that, when voltage relative value during greater than described earth potential, obtain level 0, when voltage relative value during less than described earth potential, obtain level 1, a utmost point in the level 0 corresponding described a pair of audio frequency input extremely is identified as described Mike's utmost point, a utmost point in the level 1 corresponding described a pair of audio frequency input extremely is identified as described earth polar.
23. signal processing module based on audio interface, described signal processing module carries out data interaction by audio interface and the audio frequency apparatus of audio frequency apparatus, described signal processing module comprises audio signal receiver module, the first audio signal modular converter, the second audio signal modular converter, audio signal sending module, coding module, decoder module, framing module reconciliation frame module, wherein
Described framing module, the digital signal that is used for treating to described audio frequency apparatus transmission is carried out framing, the framing rule comprises: the binary character data that reality is to be sent are carried out framing, frame structure comprises lead code and data field, described data field comprises the binary character data that described reality is to be sent, and described lead code comprises N continuous and identical binary character, and one comes a described N symbol different binary character of phase place afterwards, wherein, N is the positive integer more than or equal to 2;
Described coding module, the a lot of binary character data that form successively for described lead code and data field to frame structure adopt default coding rule to encode, described coding rule comprises: successively to each symbols of described a lot of binary character data, utilize respectively two binary bits with out of phase to replace, and according to the phase place of current sign with replace the putting in order of dibit of its adjacent last symbol, determine to replace the putting in order of dibit of described current sign;
Described the second audio signal modular converter, the binary bits data that obtain after being used for encoding are converted to audio signal;
Described audio signal sending module is used for by Mike's utmost point of described audio interface the audio signal that described the second audio signal modular converter converts to being sent to described audio frequency apparatus;
Described audio signal receiver module is used for sound channel utmost point reception by described audio interface from the audio signal of described audio frequency apparatus;
Described the first audio signal modular converter is used for being converted to from the audio signal of described audio frequency apparatus the digital bit data;
Described decoder module, the pulse duration for detecting successively described binary bits data finds first symbol segmentation point; The decoding rule that described binary bits the data and its coding rule are complementary is decoded, described decoding rule comprises: successively to being arranged in described first symbol segmentation point binary bits data afterwards, every a pair of binary bits adjacent and that have an out of phase adopts a binary character to replace, and according to putting in order of current a pair of bit, and adjacent last to the putting in order of bit, determine to replace the phase place of the symbol of current a pair of bit;
Described solution frame module is used for the definition rule identification lead code according to lead code binary character data, cuts apart lead code and data field, obtains binary character data actual to be sent in the data field.
24. the signal processing module based on audio interface as claimed in claim 23 is characterized in that, described the second audio signal modular converter is the current mode D/A converter module.
25. the signal processing module based on audio interface as claimed in claim 24 is characterized in that, described current mode D/A converter module sends the audio signal that converts to by the mode that the Mike's utmost point from described audio interface extracts electric current to described audio frequency apparatus.
26. such as each described signal processing module based on audio interface of claim 23 to 25, it is characterized in that, described signal processing module also comprises the control module in the audio interface Mike utmost point and earth polar, be used for Mike's utmost point and the earth polar of described audio interface are identified, described audio signal sending module is docked with the Mike's utmost point that identifies, earth potential is docked with the earth polar of identifying.
27. the signal processing module based on audio interface as claimed in claim 26 is characterized in that, the control module in described audio interface Mike's utmost point and earth polar comprises:
Acquisition module is used for obtaining described audio frequency apparatus after opening the recording channel, the signal of telecommunication of each utmost point in a pair of audio frequency input extremely in its audio interface;
Identification module, be used for according to described a pair of audio frequency input extremely the signal of telecommunication of each utmost point identify described Mike's utmost point and earth polar;
The port handover module is used for described identification module and identifies after Mike's utmost point and the earth polar, and described audio signal sending module is docked with described Mike's utmost point, and earth potential is docked with described earth polar.
28. the signal processing module based on audio interface as claimed in claim 27 is characterized in that, described acquisition module is the voltage domain modular converter, be used for obtaining described a pair of audio frequency input extremely each utmost point with respect to described earthy voltage relative value.
29. the signal processing module based on audio interface as claimed in claim 28, it is characterized in that, described identification module comprises the first recognin module, for detection of the positive negative characteristic of the voltage relative value of each utmost point in the described a pair of audio frequency input extremely, identify described Mike's utmost point and described earth polar according to testing result.
30. the signal processing module based on audio interface as claimed in claim 28 is characterized in that, described identification module comprises:
The second recognin module, the voltage relative value of each utmost point compares with described earth potential respectively to be used for inputting described a pair of audio frequency extremely, exports respectively a digital signal level according to comparative result separately;
Logic judgment module is used for identifying described Mike's utmost point and described earth polar according to two digital signal levels of described the second recognin module output.
31. the signal processing module based on audio interface as claimed in claim 30, it is characterized in that, when voltage relative value during greater than described earth potential, described the second recognin module output level 1, when voltage relative value during less than described earth potential, described the second recognin module output level 0; When described logic judgment module is exported a level 1 and a level 0 in described the second recognin module, a utmost point in the level 1 corresponding described a pair of audio frequency input extremely is identified as described Mike's utmost point, a utmost point in the level 0 corresponding described a pair of audio frequency input extremely is identified as described earth polar.
32. the signal processing module based on audio interface as claimed in claim 30, it is characterized in that, when voltage relative value during greater than described earth potential, described the second recognin module output level 0, when voltage relative value during less than described earth potential, described the second recognin module output level 1; When described logic judgment module is exported a level 1 and a level 0 in described the second recognin module, a utmost point in the level 0 corresponding described a pair of audio frequency input extremely is identified as described Mike's utmost point, a utmost point in the level 1 corresponding described a pair of audio frequency input extremely is identified as described earth polar.
CN201210126843.7A 2012-04-26 2012-04-26 Data transfer, treatment, the signal processing method based on COBBAIF and module Active CN103379397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210126843.7A CN103379397B (en) 2012-04-26 2012-04-26 Data transfer, treatment, the signal processing method based on COBBAIF and module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210126843.7A CN103379397B (en) 2012-04-26 2012-04-26 Data transfer, treatment, the signal processing method based on COBBAIF and module

Publications (2)

Publication Number Publication Date
CN103379397A true CN103379397A (en) 2013-10-30
CN103379397B CN103379397B (en) 2017-06-13

Family

ID=49463880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210126843.7A Active CN103379397B (en) 2012-04-26 2012-04-26 Data transfer, treatment, the signal processing method based on COBBAIF and module

Country Status (1)

Country Link
CN (1) CN103379397B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104392724A (en) * 2014-12-11 2015-03-04 福建联迪商用设备有限公司 Audio communication method and device
CN105099571A (en) * 2015-07-10 2015-11-25 北京医康世纪科技有限公司 Audio communication method
WO2016078271A1 (en) * 2014-11-18 2016-05-26 中兴通讯股份有限公司 Signal sending and receiving method, device and system
CN107423248A (en) * 2016-11-24 2017-12-01 天地融科技股份有限公司 Data frame hair delivery method and dispensing device
WO2018095180A1 (en) * 2016-11-24 2018-05-31 天地融科技股份有限公司 Data transmission method, data receiving method and devices
CN110036596A (en) * 2016-11-04 2019-07-19 美商新思科技有限公司 Phase-shift coding for signal transition minimized

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070258535A1 (en) * 2006-05-05 2007-11-08 Sammel David W Wireless autonomous device data transmission
CN101610229A (en) * 2009-07-16 2009-12-23 清华大学 The recurrence MSK modulation demodulation system and the method for joint LDPC encoding
CN102404665A (en) * 2010-09-07 2012-04-04 中兴通讯股份有限公司 Earphone interface self-adaptation circuit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070258535A1 (en) * 2006-05-05 2007-11-08 Sammel David W Wireless autonomous device data transmission
CN101610229A (en) * 2009-07-16 2009-12-23 清华大学 The recurrence MSK modulation demodulation system and the method for joint LDPC encoding
CN102404665A (en) * 2010-09-07 2012-04-04 中兴通讯股份有限公司 Earphone interface self-adaptation circuit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张飞碧: "数字视音频以太网传输系统(一)", 《电声技术》, 30 June 2006 (2006-06-30) *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016078271A1 (en) * 2014-11-18 2016-05-26 中兴通讯股份有限公司 Signal sending and receiving method, device and system
CN104392724A (en) * 2014-12-11 2015-03-04 福建联迪商用设备有限公司 Audio communication method and device
CN105099571A (en) * 2015-07-10 2015-11-25 北京医康世纪科技有限公司 Audio communication method
CN105099571B (en) * 2015-07-10 2017-10-31 北京医康世纪科技有限公司 A kind of audio communication method
CN110036596A (en) * 2016-11-04 2019-07-19 美商新思科技有限公司 Phase-shift coding for signal transition minimized
CN110036596B (en) * 2016-11-04 2022-09-09 美商新思科技有限公司 Phase shift encoding method for signal transition minimization and encoder and decoder
CN107423248A (en) * 2016-11-24 2017-12-01 天地融科技股份有限公司 Data frame hair delivery method and dispensing device
WO2018095180A1 (en) * 2016-11-24 2018-05-31 天地融科技股份有限公司 Data transmission method, data receiving method and devices

Also Published As

Publication number Publication date
CN103379397B (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN103379397A (en) Data transmission method, data processing method, and signal processing method and module based on audio interface
CN103379214B (en) A kind of audio communication system
US9929818B2 (en) Methods and systems for selection of unions of vector signaling codes for power and pin efficient chip-to-chip communication
EP2962472B1 (en) Methods for multi-level data transmission
US4885582A (en) "Simple code" encoder/decoder
US8588280B2 (en) Asymmetric communication on shared links
US7180958B2 (en) Technique for utilizing spare bandwidth resulting from the use of a transition-limiting code in a multi-level signaling system
CN101882095B (en) Signal processing device and error correction method
CN103378933A (en) Decoding method, decoding module, signal processing method and signal processing device
US9276621B2 (en) Method and apparatus for differential communications
CN103957449B (en) Interface circuit
US8576928B2 (en) Capacitive divider transmission scheme for improved communications isolation
CN102523436B (en) Transmission terminal, receiving terminal, multi-channel video optical fiber transmission system and multi-channel video optical fiber transmission method
US6522269B2 (en) System and method for a self-delineating serial link for very high-speed data communication interfaces
US20100040169A1 (en) Coding methods and systems for improved error margins
CN101662316B (en) Information processing apparatus, signal transmission method and decoding method
CN103376876A (en) Audio interface device and power management method thereof
EP2997704B1 (en) Vector signaling with reduced receiver complexity
CN109905199B (en) Serial communication data polarity recovery method for asymmetric K code encoding and decoding
CN103379408A (en) Signal processing module
US6418170B1 (en) Method and apparatus for achieving 180° phase invariant transmission in a PCM modem system
CN101667836B (en) Information processing apparatus, decoding processing apparatus and signal transmission method
CN103379052A (en) Signal processing module and signal processing method
CN111800637A (en) System and method for realizing HDB3 encoding and decoding by using FPGA
US8165176B1 (en) System and method for generating a frequency rich spectrum in a data stream

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant