CN103957074A - Data communication method based on intelligent terminal audio port - Google Patents

Data communication method based on intelligent terminal audio port Download PDF

Info

Publication number
CN103957074A
CN103957074A CN201410138810.3A CN201410138810A CN103957074A CN 103957074 A CN103957074 A CN 103957074A CN 201410138810 A CN201410138810 A CN 201410138810A CN 103957074 A CN103957074 A CN 103957074A
Authority
CN
China
Prior art keywords
intelligent terminal
digital
communication method
data communication
logic
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.)
Pending
Application number
CN201410138810.3A
Other languages
Chinese (zh)
Inventor
程伟胤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING SANYOU WEIYE TECHNOLOGY DEVELOPMENT Co Ltd
Original Assignee
BEIJING SANYOU WEIYE TECHNOLOGY DEVELOPMENT Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING SANYOU WEIYE TECHNOLOGY DEVELOPMENT Co Ltd filed Critical BEIJING SANYOU WEIYE TECHNOLOGY DEVELOPMENT Co Ltd
Priority to CN201410138810.3A priority Critical patent/CN103957074A/en
Publication of CN103957074A publication Critical patent/CN103957074A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to a data communication method based on an intelligent terminal audio port. The data communication method is used for communication between an intelligent terminal and a digital peripheral matched with the intelligent terminal. The data communication method comprises the following steps that the intelligent terminal encodes data needing to be transmitted and sends the encoded data to the digital peripheral through an audio channel; the digital peripheral decodes received digital signals to generate a return result; the digital peripheral encodes the return result and sends the encoded return result to the intelligent terminal through the audio channel; the intelligent terminal decodes the return result to complete two-way communication, wherein digital signal receiving and sending are carried out between the intelligent terminal and the digital peripheral through the audio channel, the duty ratio technology is applied to the digital signals transmitted on the audio channel, meanwhile, the multi-state logic encoding mode is adopted in the data transmission method, and the digital signals are represented with single-cycle square-wave signals with various different widths. By means of the data communication method, the contact-type connection communication between the portable intelligent terminal and the digital peripheral can be achieved, and safety and reliability are achieved.

Description

Based on the data communication method of intelligent terminal audio port
Technical field
The present invention relates to a kind of data communication method, particularly relate to a kind of data communication method based on intelligent terminal audio port, intelligent terminal utilizes its voice-grade channel to carry out the method for communication as Digital Transmission passage and digital peripherals.
Background technology
Along with the continuous progress of expanding economy and science and technology, traditional computer network has progressively lost his radiance in the past, the statistics of 2012 shows, utilize the user of panel computer and surfing Internet with cell phone to exceed the user who utilizes computer internet, once in the mobile Internet epoch that were always regarded as " out of reach ", seem just to have become a reality overnight.The fast development of science and technology, makes the technological level of smart mobile phone, panel computer constantly perfect, and performance improves constantly, and cost reduces gradually, thereby consumers in general are accepted.
But at present smart mobile phone and panel computer also cannot replace computer completely, very crucial a bit, do not have a kind of general solution that it is controlled other intelligent terminals by unified interface as computer.Thereby limit greatly its function, made the development of smart mobile phone and panel computer be subject to certain obstruction.
Specifically, the communication modes of mobile phone and other intelligent terminals mainly contains following several at present:
1. by wireless technology, for example, by Bluetooth technology, reach the object of mobile phone and other intelligent terminal communications, be characterized in that mechanics of communication is relatively ripe, the scope of application is large, but passes through wireless transmission, be ravesdropping the possibility of divulging a secret large, cannot meet financial field demand for security.
2. by the USB interface of mobile phone, other intelligent terminals are controlled, its maximum problem is that most of mobile phones are not all supported OTG agreement, cannot control other intelligent terminals by the USB interface of mobile phone.
3. by audio port, peripheral hardware is controlled, for example popular La Kala on the market, carries out communication with the audio signal of 4K, 8K, carries out communication with the analog signal of simulated sound.But due to the audio processing chip difference of each mobile phone, the effect of A/D and D/A conversion is different, cause in communication process the error rate very large, a lot of mobile phones cannot normal communication.In addition, this simulation process and conventional audio signal are easily obscured, and sometimes need user repeatedly to send same order, and system can be identified specific order.Further, voice signal receives before IC through the audio frequency of intelligent terminal, conventionally all needs through capacitance, and the value difference of the capacitance needing due to each audio chip, so be difficult to the waveform of some specific frequencies to carry out undistorted transmission.
So, be badly in need of a kind of data communication method, can make the communication between peripheral hardware that the intelligent terminals such as mobile phone are mated safer, more convenient.
Summary of the invention
The object of the invention is to propose a kind of data communication method based on intelligent terminal audio port, communication between the digital peripherals being mated for intelligent terminal, realize the contact connecting communication of Portable intelligent terminal and digital peripherals, can avoid using data under wireless mode to steal and unreliable; The current analog signal that technology was used providing as companies such as the Square of La Kala, the U.S. can also be provided is carried out the distorted signals in data transmission procedure and environmental interference is required to harsh problem by voice-grade channel.
The object of the invention is to realize by the following technical solutions.The invention provides a kind of data communication method based on intelligent terminal audio port, communication between the digital peripherals being mated for intelligent terminal, comprise the following steps: the data that (1) intelligent terminal transmits needs are encoded, and are sent to digital peripherals by voice-grade channel; (2) digital peripherals is decoded to the digital signal receiving by voice-grade channel, and generation returns results; (3) digital peripherals is encoded to returning results, and is sent to intelligent terminal by voice-grade channel; And (4) intelligent terminal decodes to returning results, complete both-way communication; Wherein, between this intelligent terminal and digital peripherals, rely on voice-grade channel to carry out digital signal transmitting-receiving, and duty-cycle is applied to the digital signal of transmitting on voice-grade channel; Meanwhile, this data communication method adopts the mode of multistate logic coding, carries out the sign of digital signal with the monocycle square-wave signal of multiple different wide cuts.
Object of the present invention also can be applied to the following technical measures to achieve further.
The aforesaid data communication method based on intelligent terminal audio port, wherein the method for characterization comprises single logic, the combination of many logic ORs Different Logic.
The aforesaid data communication method based on intelligent terminal audio port, the duty ratio of the digital signal of wherein transmitting on voice-grade channel is at least 3:1, to realize invert on zero, and the high pressure characteristic that is greater than 200 millivolts.
The aforesaid data communication method based on intelligent terminal audio port, this multistate logic coding comprises 4 state logic codings.
The aforesaid data communication method based on intelligent terminal audio port, wherein, before normal communication, can first carry out adjustment, to improve the accuracy of transfer of data.
The aforesaid data communication method based on intelligent terminal audio port, wherein, in adjustment process, relies on voice-grade channel to carry out digital signal transmitting-receiving, and duty-cycle is applied to the digital signal of transmitting on voice-grade channel between this intelligent terminal and digital peripherals; Meanwhile, adopt the mode of multistate logic coding, carry out the sign of digital signal with the monocycle square-wave signal of multiple different wide cuts.
The aforesaid data communication method based on intelligent terminal audio port, wherein adjustment process, is that the signal of transmitting-receiving is carried out self adaptation verification and locked, and meets the uncertain requirement of frequency, amplitude of the digital signal of transmission.
The aforesaid data communication method based on intelligent terminal audio port, the amplitude that wherein this intelligent terminal presets the digital signal of transmission is greater than 200 millivolts, with the digital peripherals of guaranteeing to be connected with the audio port of intelligent terminal, the amplitude limitation of the digital signal receiving by voice-grade channel is being greater than 200 millivolts.
The aforesaid data communication method based on intelligent terminal audio port, wherein this digital peripherals preset transmission digital signal amplitude be less than 500 millivolts, with the intelligent terminal of guaranteeing to be connected with digital peripherals, the amplitude of the digital signal receiving by voice-grade channel is less than 500 millivolts.
The aforesaid data communication method based on intelligent terminal audio port, wherein this intelligent terminal is Portable intelligent terminal, wearable intelligent terminal or intelligent vehicle-carried.
By technique scheme, the data communication method based on intelligent terminal audio port of the present invention at least has following advantages and beneficial effect:
What 1, the data communication method based on intelligent terminal audio port of the present invention related to is to propagate by the digital signal of voice-grade channel, although physical interface is audio signal, but receiving, the transmission of opposite end intelligent terminal can not be A/D, D/A conversion, invert on zero and the high voltage characteristics excessively that can utilize audio signal, directly carry out Digital Logic transmission.
2, the present invention is mainly used in relating to finance, the transmission of individual important private information.And the present invention adopts audio port transmission to be aided with self-defining signal transmission coding and agreement, the risk that can avoid data to be stolen completely.And be by current whole industry known standard not retrained by audio port to the whole transmission of peripheral hardware due to data, so this brand-new transmission means can be based on any known technical standard, the risk of effectively having avoided industry to carry out data decoding according to standard.
3, the data communication method based on intelligent terminal audio port of the present invention, can realize the contact connecting communication of Portable intelligent terminal and digital peripherals, avoids using data under wireless mode to steal and unreliable; The current analog signal that technology was used providing as companies such as the Square of La Kala, the U.S. can also be provided is carried out the distorted signals in data transmission procedure and environmental interference is required to harsh problem by voice-grade channel.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of specification, and for above and other object of the present invention, feature and advantage can be become apparent, below especially exemplified by preferred embodiment, and coordinate accompanying drawing, be described in detail as follows.
Brief description of the drawings
Fig. 1: be the flow chart of the data communication method based on intelligent terminal audio port of the present invention.
Fig. 2: be the representation of single logic.
Fig. 3: be multilogic representation.
Fig. 4: be the representation of Different Logic combination.
Embodiment
Technological means and effect of taking for reaching predetermined goal of the invention for further setting forth the present invention, below in conjunction with accompanying drawing and preferred embodiment, to embodiment, structure, feature and effect thereof of a kind of data communication method based on intelligent terminal audio port proposing according to the present invention, be described in detail as follows.
Consulting shown in Fig. 1, is the flow chart of the data communication method based on intelligent terminal audio port of the present invention.Should the data communication method based on intelligent terminal audio port be to utilize audio port (being audio interface) directly to carry out the transmission of digital signal, concrete, can utilize earphone jack that all intelligent terminals all have as communication interface, it is connected with corresponding digital peripherals, carry out both-way communication by digital information technology, thus reach mobile phone or panel computer by wired mode the object to other ip intelligent peripherals controls, communication.This intelligent terminal can be Portable intelligent terminal, wearable intelligent terminal or intelligent vehicle-carried, for example Portable intelligent terminal is smart mobile phone, panel computer, and wearable intelligent terminal is intelligent watch (having voice-grade channel), the present invention is not limited.
Before normal communication, for the accuracy of transfer of data, can carry out adjustment, namely self adaptation.This adjustment comprises two stages, is respectively intelligent terminal by its adjustment and the digital peripherals adjustment to intelligent terminal of the concrete voice-grade channel using to digital peripherals, specifically has following step:
(1) intelligent terminal is sent to the first adjustment ripple signal of having encoded the digital peripherals of cooperation via voice-grade channel;
Intelligent terminal is encoded to the first adjustment ripple signal by the mode of multistate logic coding, and is sent to the digital peripherals of cooperation by voice-grade channel.Concrete, in intelligent terminal, store the first multistate logic table of comparisons, it is the pre-stored time span (or time width) that has various logic waveform, specified the needed timeslice of time span (will be divided into some equal portions 1 second, the time span of every part is decided to be timeslice) of various logic waveform simultaneously.Wherein, the duty ratio E:1 of signal also preset it and sent by intelligent terminal, and in order to ensure that signal well transmits, duty ratio E:1 is greater than and equals 3:1.Concrete, corresponding different intelligent terminal, due to the difference of its voice-grade channel, in order correctly to carry out digital information transmission, the waveform with E:1 duty ratio is used, and duty ratio is at least more than or equal to 3:1, to eliminate the distorted signals of digital signal in voice-grade channel transmitting procedure.
Specifically introduce the process of above-mentioned coding, taking 4 state logic codings as example, intelligent terminal, in the time initiating adjustment request, first generates 4 state logic sequences, for example, characterize 1 by M logic, N logic characterizes 2, P logic characterizes 3, Q logic and characterizes the 44 state logic sequences that form, and for fear of interference, ensure that M, N, P and Q get the number that is greater than 4, can be different; Secondly, corresponding pre-stored more than first (4) state logical comparison table, calculate every kind of needed time span of logic in the 4 state logic sequences that generate, also calculate its needed timeslice, the number of timeslice is as required calculated respectively the number of high level and low level shared timeslice according to the duty ratio of E:1 subsequently, also by it, the order according to E:1 is arranged, and obtains the Serial No. of every kind of logic; Finally, convert 4 state logic sequences to corresponding digital signal sequences according to corresponding relation, i.e. the first adjustment ripple signal, and with predefined amplitude, be sent to the digital peripherals of cooperation by voice-grade channel.This predefined amplitude is greater than 200 millivolts, and with the digital peripherals of guaranteeing to be connected with the audio port of intelligent terminal, the amplitude limitation of the digital signal receiving by voice-grade channel is being greater than 200 millivolts.
It should be noted that this first adjustment ripple signal is in fact the digital signal transmitting on voice-grade channel, its basic signal waveform can, with reference to shown in Fig. 2, have obvious digital signal characteristic, i.e. obvious low and high level.
(2) digital peripherals is decoded to the first adjustment ripple signal;
Wherein, in digital peripherals, store the second multistate logic table of comparisons, it is the pre-stored time span (or time width) that has various logic waveform, specified the needed timeslice of time span (will be divided into some equal portions 1 second, the time span of every part is decided to be timeslice) of various logic waveform simultaneously.Digital peripherals has also been preset it and has sent the duty ratio F:1 of signal, and for fear of the interference of signal, duty ratio F:1 is located at and is not less than 8:1.
This digital peripherals detects after the first adjustment ripple signal higher than the thresholding signal of telecommunication (being generally greater than 200 millivolts), will signal be carried out self adaptation verification and be locked, and meets the uncertain requirement of frequency, amplitude of the digital signal of transmission.
Because each intelligent terminal is in data input and data output process, its reference clock has otherness (being mainly that each intelligent terminal manufacturer adopts different audio codings and decoding chip), so for determining frequency (namely traditional transmission based on standard time clock sampling) detection mode, can allow some users use, even if same portion intelligent terminal, it,, in the time that power supply energy is different, also likely there will be error code.The present invention can not do and determine frequency processing for characteristic frequency, but after peripheral hardware is connected with portable equipments such as intelligent terminals, first carrying out adaptation transmitter school card and filtering threshold self adaptation locks, according to the actual signal situation of the intelligent terminal that specifically will connect, carry out signal training, for further useful transfer of data is set up benchmark.Detailed, after two equipment connections, equipment can carry out adaptive frequency detection and lock for sending the frequency receiving in advance, specify in advance that various logic characterizes the time span of waveform, be not considered as noise at the waveform of time span, need to remove, different wave shape in scope is compared simultaneously, noise remove by different wave shape more than 10%, record every kind of logic and characterize waveform real time length on this equipment, result is stored in respectively in two equipment, for identifying two agreement frequencies between equipment, reach the result that two equipment can send and receive with identical frequency.Same, after two equipment connections, equipment can carry out self adaptation amplitude detection and lock for sending the signal amplitude receiving in advance, and result is stored in respectively in two equipment, for identifying two protocol signal amplitudes between equipment, reach the effect that can distinguish signal and noise.
Namely, digital peripherals is identified storage to signal low and high level, and clutter is rejected; Last digital peripherals is analyzed the sequence square wave of rejecting after clutter, judge its coded system, whether meet the coded system of adjustment agreement, if met the requirements, store the time span (or time value) of respective logic, form the 3rd accurate multistate logic table of comparisons.
Concrete, in the present embodiment, the digital peripherals of cooperation detects after the first adjustment ripple signal, signal is carried out self adaptation verification and is locked, and the low and high level of signal is started to storage, and rejecting signal noise by default duty ratio; Subsequently, according to the time of each waveform of change calculations of signal low and high level, then calculate each waveform and the time difference of waveform above, the number of the waveform of the error that judges time difference in 10%, in the time being greater than 3, the time of determining waveform, whether the scope of this setting was to determine according to the time span of every kind of logic in the scope of setting, if not, just abandon, and if this is logic sign waveform, store the time span of its respective logic, until read complete.So far, intelligent terminal completes the adjustment of digital peripherals.
(3) the second adjustment ripple signal of having encoded is sent to intelligent terminal by digital peripherals;
Same, digital peripherals is encoded to the second adjustment ripple signal by the mode of multistate logic coding, and is sent to intelligent terminal by audio port.
Taking 4 state logic codings as example, digital peripherals is in the time initiating adjustment request, equally first, generate 4 state logic sequences, for example characterize 1, N logic by M logic and characterize 2, P logic sign 3, Q logic characterizes 4 state logic sequences of 4 compositions, and for fear of interference, ensure that M, N, P and Q get the number that is greater than 4, can be different; Secondly, corresponding its pre-stored more than second (4) state logical comparison table, calculate every kind of needed time span of logic in the 4 state logic sequences that generate, also calculate its needed timeslice, the number of timeslice is as required calculated respectively high level and low level number according to the duty ratio of F:1 subsequently, also low and high level is arranged according to the order of F:1, obtained the sequence of levels of every kind of logic; Finally, convert 4 state coded sequences to corresponding sequence of levels according to corresponding relation, i.e. the second adjustment ripple signal, and with predefined amplitude, be sent to intelligent terminal.This predefined amplitude is less than 500 millivolts, and with the intelligent terminal of guaranteeing to be connected with digital peripherals, the amplitude of the digital signal receiving by voice-grade channel is less than 500 millivolts.
(4) intelligent terminal is decoded to the second adjustment ripple signal;
This intelligent terminal detects after the second adjustment ripple signal higher than the thresholding signal of telecommunication (being generally greater than 200 millivolts), the low and high level of signal started carry out self adaptation verification and lock, and storage, and by default duty ratio, clutter is rejected; Intelligent terminal is analyzed the sequence square wave of rejecting after clutter, judge its coded system, whether meet the coded system of adjustment agreement, if met the requirements, store the time span (or time value) of respective logic, form the 4th accurate multistate logic table of comparisons.Concrete decoding process is identical to the decoding process of the first adjustment ripple signal with digital peripherals, does not repeat them here.
So far, the adjustment between intelligent terminal and digital peripherals finishes.By above-mentioned adjustment process, in the time that same intelligent terminal and different digital peripheral hardware carry out communication, can realize the both-way communication of different frequency or amplitude.
Specifically, the present invention adopts the mode of multistate logic coding, carry out the sign of digital signal with the monocycle square-wave signal of multiple different wide cuts, for example, information can taking least unit as single logic, (monocycle square wave) represents respectively for data message and packet header bag tail, or (multicycle square wave) represents taking least unit as many logics, also can represent with Different Logic combination rule (square wave combination rule), encode with different least unit.Wherein, the present invention adopts multistate logic coding, is mainly the polymorphism of utilizing its logic, and representative digit information, digitlization start and end mark respectively.To improve its fail safe and adopt the free-revving engine of multistate logic coding.Compare common two-value (0,1) Digital Logic representative digit information, multistate logic coding safety and reliability of the present invention.
In addition, the present invention is also applied to voice-grade channel transmission of digital signals by the duty-cycle of digital circuit, make the voltage magnitude of the digital signal on the voice-grade channel of for example mobile phone of intelligent terminal both can produce invert on zero, also can produce 200 millivolts of above high pressure.And in the time that the ratio of duty ratio reaches at least 3:1, the noise effect that it can effectively eliminate audio frequency, makes the noise bouncing over the ground be less than 200 millivolts, has greatly reduced the generation of error code.Here two problems have mainly been solved, first, pass to the amplitude of the digital signal on the voice-grade channel of intelligent terminal by MIC generally all in 200 millivolts, the essence of distinguishing the traditional analogue audio frequency of signal instead of environment or transmitting terminal is the amplitude of signal waveform is improved and be greater than 200 millivolts, but in order not damage the MIC input of intelligent terminal, the input side of capacitance that need to be before MIC input carries out signal attenuation, in whole signals transmission, ensure that signal is not subject to the interference of conventional audio or power supply low-frequency noise like this; Second, because each passage all has a value to be distributed in the capacitance of 0.1~2.2uF at the IC of signal turnover intelligent terminal, according to low frequency filtering characteristic and the charge-discharge characteristic of electric capacity, the duty ratio of the square wave that characterizes multistate logic is adjusted at least 3:1 by the present invention, can allow like this capacitance within a square wave cycle, have a sufficient discharge time, to eliminate charge integrate process, ensure rising edge and the trailing edge of each square wave in continuous data transmitting procedure, can be because of waveform before the charging to electric capacity and cause distortion.
Below the data communication method based on intelligent terminal audio port of the present invention is described in detail.This data communication method comprises the following steps:
(1) data that intelligent terminal transmits needs are encoded, and are sent to digital peripherals by voice-grade channel;
In this step, the Data Segmentation that first intelligent terminal transmits needs becomes multiple packets, and each packet is increased to control command and CRC check code.Subsequently, each packet is carried out to multistate logic coding.Concrete, according to the corresponding relation of predefined binary digit and multistate logic, convert packet to polymorphic encoded packets, and before polymorphic encoded packets, increase the polymorphic code that several represent packet header, after polymorphic encoded packets, increase the polymorphic code that several represent to wrap tails; The first corresponding pre-stored multistate logic time table of comparisons, calculate every kind of needed time span of logic in the polymorphic encoded packets generating, also calculate its needed timeslice, the number of timeslice is as required calculated respectively the number of high level and low level shared timeslice according to the duty ratio of E:1 subsequently, also high level low level is arranged according to the order of E:1, obtain the sequence of levels of every kind of logic; Convert polymorphic encoded packets to corresponding level signal according to corresponding relation again.Finally, the level signal that coding is obtained, according to predefined amplitude, is sent to digital peripherals from voice-grade channel.This predefined amplitude is greater than 200 millivolts, and with the digital peripherals of guaranteeing to be connected with the audio port of intelligent terminal, the amplitude limitation of the digital signal receiving by voice-grade channel is being greater than 200 millivolts.
Wherein, above-mentioned level signal of having encoded is in fact digital signal, has obvious digital signal characteristic, i.e. obvious low and high level.
(2) digital peripherals is decoded to the digital signal receiving, and generation returns results;
This digital peripherals detects higher than after the thresholding signal of telecommunication digital signal of (being generally greater than 200 millivolts), the low and high level of signal is identified to storage, and clutter is rejected; According to the time span of each signal waveform of change calculations of signal low and high level, generate the time value sequence of signal; By the time value sequence of generation one by one with the 3rd accurate multistate logic table of comparisons of storage in the time value of default multistate logic compare, in the time that certain time value in time value sequence falls within the scope of the time value of certain logic, just be converted into corresponding logical value, count logic sequence, otherwise abandon, until signal receives completely, generate complete multistate logic sequence.Subsequently, according to the corresponding relation of predefined binary digit and multistate logic, remove the logic sequence that characterizes packet header bag tail in multistate logic sequence, also the information representation table of comparisons pre-stored in remaining logic sequence and digital peripherals is compared, information generated bag.Finally, the information in packets of information is made to CRC check, if failure represents that bag receives mistake, and if control command in packets of information and the packet of transmission are just isolated in success, then to packet content reading, obtain corresponding information, carry out corresponding actions, generation returns results.
(3) digital peripherals is encoded to returning results, and is sent to intelligent terminal by voice-grade channel;
Wherein, digital peripherals is to the coding returning results, and the coding of the data that needs transmitted to intelligent terminal is similar.
Concrete, in this step, first digital peripherals will return results and be divided into multiple packets, and each packet is increased to control command and CRC check code.Subsequently, each packet is carried out to multistate logic coding.Detailed, according to the corresponding relation of predefined binary digit and multistate logic, convert packet to polymorphic encoded packets, and before polymorphic encoded packets, increase the polymorphic code that several represent packet header, after polymorphic encoded packets, increase the polymorphic code that several represent to wrap tails; The second pre-stored multistate logic time table of comparisons in corresponding digital peripherals, calculate every kind of needed time span of logic in the polymorphic encoded packets generating, also calculate its needed timeslice, the number of timeslice is as required calculated respectively high level and low level number according to the duty ratio of F:1 subsequently, also low and high level is arranged according to the order of F:1, obtained the sequence of levels of every kind of logic; Convert polymorphic encoded packets to corresponding level signal according to corresponding relation again.Finally, the level signal that coding is obtained, according to predefined amplitude, is sent to intelligent terminal by voice-grade channel.This predefined amplitude is less than 500 millivolts, and with the intelligent terminal of guaranteeing to be connected with digital peripherals, the amplitude of the digital signal receiving by voice-grade channel is less than 500 millivolts.
(4) intelligent terminal is decoded to returning results, and completes both-way communication.
Wherein, intelligent terminal is to the decoding returning results, similar to the decoding of the digital signal receiving to digital peripherals.
This intelligent terminal detects higher than after the thresholding signal of telecommunication level signal of (being generally greater than 200 millivolts), the low and high level of signal is identified to storage, and clutter is rejected; According to the time span of each signal waveform of change calculations of signal low and high level, generate the time value sequence of signal; By the time value sequence of generation one by one with the 4th accurate multistate logic table of comparisons of storage in the time value of default multistate logic compare, within the scope of certain time value in time value sequence falls into the time value of certain logic when (conforming to it), just be converted into corresponding logical value, count logic sequence, otherwise abandon, until signal receives completely, generate complete multistate logic sequence.Subsequently, according to the corresponding relation of predefined binary digit and multistate logic, remove the logic sequence that characterizes packet header bag tail in multistate logic sequence, also the information representation table of comparisons pre-stored in remaining logic sequence and intelligent terminal is compared, information generated bag.Finally, the information in packets of information is made to CRC check, if failure represents that bag receives mistake, and if control command in packets of information and the packet of transmission are just isolated in success, then to packet content reading, obtain corresponding information, carry out corresponding actions, complete both-way communication.
What deserves to be explained is, the multistate logic coding of mentioning in the present invention can be 4 state logic codings, 8 state logic codings etc., the present invention is not limited, as long as in the process of both-way communication, both sides appoint concrete coding rule, set up the corresponding multistate logic table of comparisons, complete correct identification and decoding.
In addition, in the present invention, the number of packet header and bag tail is uncertain, is that self adaptation increasing is built, and concrete determines according to system interference in adjustment process.Conventionally, the audio signal of the intelligent terminals such as mobile phone all can from audio frequency IC output through an electric capacity by its DC component filtering, for the initial transmitting time section of signal, due to the charge and discharge process of electric capacity, signal can disturbedly become distorted signal, so the packet header of the correct data that detect a frame is vital with bag tail in transmitting procedure.And the present invention, in the adjustment stage, just as the case may be, having set needs to increase packet header and the bag tail built, ensures the correct transmission of signal.
Also have, in the present embodiment, should the data communication method based on intelligent terminal audio port be to complete on the basis of adjustment, for the accurate and effective of communication, utilize the 3rd accurate multistate logic table of comparisons and the 4th accurate multistate logic table of comparisons that in adjustment process, generate.But the data communication method being somebody's turn to do based on intelligent terminal audio port also can be under the prerequisite of not adjustment, utilizes the first pre-stored multistate logic table of comparisons and the second multistate logic table of comparisons, completes communication process.
Consult shown in Fig. 2, Fig. 3 and Fig. 4, be respectively taking 4 state logics as example the expression of three kinds of different coding rules.Wherein, Fig. 2 represents single logic, and every state logic all represents with monocycle square wave, and head, 0,1, tail all represent with monocycle square wave; Fig. 3 represents many logics, and every state logic combines and represents with multicycle square wave, and head, 0,1, tail represent with multicycle square wave combination; And Fig. 4 represents Different Logic combination, every state logic represents with multicycle square wave combination, head represents with monocycle square wave, 0 represents with 3 the same logics (or square wave), 1 respectively has continuous 2 to represent with 2 different logics (or square wave), and tail represents with another kind of monocycle square wave.It should be noted that, above-mentioned different coding rule is all that communication two party agreement obtains, and is not fixing unique constant, has ensured like this high security of communication.
In actual applications, what the data communication method based on intelligent terminal audio port of the present invention related to is to propagate by the digital signal of voice-grade channel, although physical interface is audio signal, but receiving, the transmission of opposite end intelligent terminal can not be A/D, D/A conversion, invert on zero and the high voltage characteristics excessively that can utilize signal, directly carry out Digital Logic transmission.
In addition, the present invention is mainly used in relating to finance, the transmission of individual important private information.Current, common communication adopts USB or wireless transmission method, need dynamical hardware device to be aided with high complicated cryptographic algorithm and can guarantee that system data is not illegally utilized, not only need expensive hardware and software, and the transmission of having relatively high expectations, amount of calculation requires very high relatively.By contrast, the present invention adopts audio port transmission to be aided with self-defining signal transmission coding and agreement, the risk that can avoid data to be stolen completely.And be by current whole industry known standard not retrained by audio port to the whole transmission of peripheral hardware due to data, so this brand-new transmission means can be based on any known technical standard, the risk of effectively having avoided industry to carry out data decoding according to standard.
The above, it is only preferred embodiment of the present invention, not the present invention is done to any pro forma restriction, although the present invention discloses as above with preferred embodiment, but not in order to limit the present invention, any those skilled in the art, do not departing within the scope of technical solution of the present invention, when can utilizing the technology contents of above-mentioned announcement to make a little change or being modified to the equivalent embodiment of equivalent variations, in every case be the content that does not depart from technical solution of the present invention, any simple modification of above embodiment being done according to technical spirit of the present invention, equivalent variations and modification, all still belong in the scope of technical solution of the present invention.

Claims (10)

1. the data communication method based on intelligent terminal audio port, communication between the digital peripherals being mated for intelligent terminal, comprise the following steps: the data that (1) intelligent terminal transmits needs are encoded, and are sent to digital peripherals by voice-grade channel; (2) digital peripherals is decoded to the digital signal receiving by voice-grade channel, and generation returns results; (3) digital peripherals is encoded to returning results, and is sent to intelligent terminal by voice-grade channel; And (4) intelligent terminal decodes to returning results, complete both-way communication;
It is characterized in that, between this intelligent terminal and digital peripherals, rely on voice-grade channel to carry out digital signal transmitting-receiving, and duty-cycle is applied to the digital signal of transmitting on voice-grade channel; Meanwhile, this data communication method adopts the mode of multistate logic coding, carries out the sign of digital signal with the monocycle square-wave signal of multiple different wide cuts.
2. the data communication method based on intelligent terminal audio port according to claim 1, is characterized in that wherein the method for characterization comprises single logic, the combination of many logic ORs Different Logic.
3. the data communication method based on intelligent terminal audio port according to claim 1, is characterized in that the duty ratio of the digital signal of wherein transmitting on voice-grade channel is at least 3:1, to realize invert on zero, and the high pressure characteristic that is greater than 200 millivolts.
4. the data communication method based on intelligent terminal audio port according to claim 1, is characterized in that wherein this multistate logic coding comprises 4 state logic codings.
5. the data communication method based on intelligent terminal audio port according to claim 1, is characterized in that wherein, before normal communication, can first carrying out adjustment, to improve the accuracy of transfer of data.
6. the data communication method based on intelligent terminal audio port according to claim 5, it is characterized in that wherein in adjustment process, between this intelligent terminal and digital peripherals, rely on voice-grade channel to carry out digital signal transmitting-receiving, and duty-cycle is applied to the digital signal of transmitting on voice-grade channel; Meanwhile, adopt the mode of multistate logic coding, carry out the sign of digital signal with the monocycle square-wave signal of multiple different wide cuts.
7. the data communication method based on intelligent terminal audio port according to claim 5, is characterized in that wherein adjustment process, is the signal of transmitting-receiving is carried out self adaptation verification and locked, and meets the uncertain requirement of frequency, amplitude of the digital signal of transmission.
8. the data communication method based on intelligent terminal audio port according to claim 1 or 5, it is characterized in that the amplitude that this intelligent terminal wherein presets the digital signal of transmission is greater than 200 millivolts, with the digital peripherals of guaranteeing to be connected with the audio port of intelligent terminal, the amplitude limitation of the digital signal receiving by voice-grade channel is being greater than 200 millivolts.
9. the data communication method based on intelligent terminal audio port according to claim 1 or 5, it is characterized in that this digital peripherals wherein preset transmission digital signal amplitude be less than 500 millivolts, with the intelligent terminal of guaranteeing to be connected with digital peripherals, the amplitude of the digital signal receiving by voice-grade channel is less than 500 millivolts.
10. the data communication method based on intelligent terminal audio port according to claim 1, is characterized in that wherein this intelligent terminal is Portable intelligent terminal, wearable intelligent terminal or intelligent vehicle-carried.
CN201410138810.3A 2014-04-08 2014-04-08 Data communication method based on intelligent terminal audio port Pending CN103957074A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410138810.3A CN103957074A (en) 2014-04-08 2014-04-08 Data communication method based on intelligent terminal audio port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410138810.3A CN103957074A (en) 2014-04-08 2014-04-08 Data communication method based on intelligent terminal audio port

Publications (1)

Publication Number Publication Date
CN103957074A true CN103957074A (en) 2014-07-30

Family

ID=51334311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410138810.3A Pending CN103957074A (en) 2014-04-08 2014-04-08 Data communication method based on intelligent terminal audio port

Country Status (1)

Country Link
CN (1) CN103957074A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104361733A (en) * 2014-11-26 2015-02-18 中国科学院电子学研究所 Method for dynamically verifying wireless remote control based on cross encoding
CN104954097A (en) * 2015-04-29 2015-09-30 上海林果实业股份有限公司 Audio communication device and encoding method
CN105516527A (en) * 2015-12-10 2016-04-20 河北远东通信系统工程有限公司 Alarm controller with multiple communication link interfaces and control method
CN106209313A (en) * 2016-07-06 2016-12-07 歌尔股份有限公司 Data transmission method and system
CN106877994A (en) * 2015-12-11 2017-06-20 深圳兆日科技股份有限公司 Voice data method of sending and receiving
CN111132377A (en) * 2019-12-27 2020-05-08 昱兆微电子科技(上海)有限公司 Data transmission method and system for terminal and earphone

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100057471A1 (en) * 2008-08-26 2010-03-04 Hongwei Kong Method and system for processing audio signals via separate input and output processing paths
CN101729625A (en) * 2010-01-05 2010-06-09 青岛海信移动通信技术股份有限公司 Method for driving motor of mobile phone and mobile equipment
CN103220428A (en) * 2013-04-17 2013-07-24 南京三宝科技股份有限公司 Audio signal data communication method for cell phone
CN103414819A (en) * 2013-07-02 2013-11-27 长城信息产业股份有限公司 Data communication method of audio interface of mobile intelligent device
CN103516470A (en) * 2012-06-25 2014-01-15 上海君戈网络科技有限公司 Anti-interference coding and decoding method suitable for audio frequency baseband

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100057471A1 (en) * 2008-08-26 2010-03-04 Hongwei Kong Method and system for processing audio signals via separate input and output processing paths
CN101729625A (en) * 2010-01-05 2010-06-09 青岛海信移动通信技术股份有限公司 Method for driving motor of mobile phone and mobile equipment
CN103516470A (en) * 2012-06-25 2014-01-15 上海君戈网络科技有限公司 Anti-interference coding and decoding method suitable for audio frequency baseband
CN103220428A (en) * 2013-04-17 2013-07-24 南京三宝科技股份有限公司 Audio signal data communication method for cell phone
CN103414819A (en) * 2013-07-02 2013-11-27 长城信息产业股份有限公司 Data communication method of audio interface of mobile intelligent device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104361733A (en) * 2014-11-26 2015-02-18 中国科学院电子学研究所 Method for dynamically verifying wireless remote control based on cross encoding
CN104361733B (en) * 2014-11-26 2017-10-27 中国科学院电子学研究所 A kind of method based on the dynamic authentication wireless remote control for intersecting coding
CN104954097A (en) * 2015-04-29 2015-09-30 上海林果实业股份有限公司 Audio communication device and encoding method
CN105516527A (en) * 2015-12-10 2016-04-20 河北远东通信系统工程有限公司 Alarm controller with multiple communication link interfaces and control method
CN105516527B (en) * 2015-12-10 2018-05-04 河北远东通信系统工程有限公司 A kind of alarming controller and control method with a variety of communication link interfaces
CN106877994A (en) * 2015-12-11 2017-06-20 深圳兆日科技股份有限公司 Voice data method of sending and receiving
CN106877994B (en) * 2015-12-11 2020-12-15 深圳兆日科技股份有限公司 Audio data transmitting and receiving method
CN106209313A (en) * 2016-07-06 2016-12-07 歌尔股份有限公司 Data transmission method and system
CN106209313B (en) * 2016-07-06 2019-03-29 歌尔股份有限公司 Data transmission method and system
CN111132377A (en) * 2019-12-27 2020-05-08 昱兆微电子科技(上海)有限公司 Data transmission method and system for terminal and earphone

Similar Documents

Publication Publication Date Title
CN103957074A (en) Data communication method based on intelligent terminal audio port
US10735391B2 (en) Instruction information transmission and reception methods and devices thereof
CN106027071B (en) To generate the method and device of the polarization code of variable code length
US10114401B2 (en) System and method for a serial bus interface
US20130087614A1 (en) Audio jack coupled secure magnetic card reader
KR101610916B1 (en) Receiving system for use in near field communication and mode detection method therefore
US20130130743A1 (en) Audio Jack Magnetic Card Reader
US8422596B2 (en) Communication device, communication method, and program
CN102255730A (en) Digital certificate safety lock device and digital certificate authentication system and method
CN103414819A (en) Data communication method of audio interface of mobile intelligent device
CN103220428A (en) Audio signal data communication method for cell phone
KR20090114972A (en) Encoding and decoding method of multi bit level data
CN104935408B (en) Data transmission method and device
US9271099B1 (en) Method and apparatus to use audio port to provide power and data communications for peripheral devices
CN103856269B (en) Information transmitting, read method and device based on sound wave
US20180188853A1 (en) Touch sensing system and data transmission method of a touch panel
US9075922B2 (en) Apparatus and method for decoding data transmissions
US20170109545A1 (en) Electronic device and data verification method
WO2014111013A1 (en) Wireless communications system and method
CN109067501B (en) Polar code communication method and device based on degraded wiretap channel noise interference
US8045648B2 (en) Amplitude-shift-keying (ASK) radio-frequency (RF) signal decoding device and method thereof
EP3070603A1 (en) Method and device for transmitting and receiving instruction information
KR101476908B1 (en) Transmitter, receiver and communication system using earphone port of mobile terminal
CN103685640A (en) Controller communicated with intelligent terminal based on audio cable and communication method of controller and intelligent terminal
CN109741756B (en) Method and system for transmitting operation signal based on USB external equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140730

WD01 Invention patent application deemed withdrawn after publication