CN105471499B - The decoding method and mobile terminal and system of raising visible light signal transmission rate - Google Patents

The decoding method and mobile terminal and system of raising visible light signal transmission rate Download PDF

Info

Publication number
CN105471499B
CN105471499B CN201410453344.8A CN201410453344A CN105471499B CN 105471499 B CN105471499 B CN 105471499B CN 201410453344 A CN201410453344 A CN 201410453344A CN 105471499 B CN105471499 B CN 105471499B
Authority
CN
China
Prior art keywords
level
duration
symbol
visible light
coding
Prior art date
Application number
CN201410453344.8A
Other languages
Chinese (zh)
Other versions
CN105471499A (en
Inventor
不公告发明人
Original Assignee
深圳光启智能光子技术有限公司
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 深圳光启智能光子技术有限公司 filed Critical 深圳光启智能光子技术有限公司
Priority to CN201410453344.8A priority Critical patent/CN105471499B/en
Priority claimed from PCT/CN2015/086870 external-priority patent/WO2016034038A1/en
Publication of CN105471499A publication Critical patent/CN105471499A/en
Application granted granted Critical
Publication of CN105471499B publication Critical patent/CN105471499B/en

Links

Abstract

The present invention discloses a kind of decoding method for improving visible light signal transmission rate and mobile terminal, receiving terminal and the system using this method, and coding method is:Mobile terminal encodes:The symbol in serial data is read, when often reading a symbol, saltus step occurs for level, and different digital symbols are encoded to the level signal with different level durations;Optical signal modulation and transmitting:By encoded data modulated light source, the data are launched in the form of visible ray.In decoding, receiving terminal by the duration of all low and high levels read compared with adjudicating duration, can be decoded according to the judgement duration of setting so as to fulfill signal.

Description

The decoding method and mobile terminal and system of raising visible light signal transmission rate

Technical field

The present invention relates to a kind of decoding methods for improving visible light signal transmission rate, the especially mobile terminals such as mobile phone LED flash transmitted by the decoding method of optical signal and a kind of mobile terminal and communication system.

Background technology

The light that visible light communication is sent by the modulator approaches such as amplitude, frequency and phase modulation visible light source, LED is one The common visible light source of kind, transmission rate are up to per second several million to tens.Visible light communication can be applied to wireless optical In communication, for carrying out data transmission.Visible light communication has quite abundant frequency spectrum resource, is general compared with microwave technology Microwave communication and wireless communication are incomparable.Simultaneously, it is seen that optic communication can almost be applicable in any communication protocol, be suitable for Any environment.The signal cover of visible light communication is relatively easy to control, and Content of Communication is not easy to be stolen, and has higher safety Property.In addition, the equipment of visible light communication is flexibly convenient, cost is very low, is suitble to extensive popularization and application.

At present, LED flash has been an important accessory of mobile phone, and the logical of visible ray is carried out with the flash lamp of mobile phone Letter will bring great convenience.It is done so that there are problems that two, first, since the flash speed of flash lamp is slow, make It is small into transmission rate, it second is that when controlling the on and off of LED flash, can be delayed at random, i.e. the open and close of LED, holding of opening Continuous time, the duration closed cannot accurately control, and show certain unstability.For example, patent CN102693567 is provided A kind of decoding method, and be applied in access control system, the information content that this method there is transmission each second is smaller Problem, and since the control accuracy requirement to LED is higher, thus there is also it is more unstable the problem of.

The content of the invention

The object of the present invention is to provide a kind of decoding method for improving visible light signal transmission rate and a kind of movement eventually End and system, improve visible light signal transmission rate, eliminate control LED flash on and off when unstability caused by Influence.

For this purpose, the present invention includes a kind of coding method for improving visible light signal transmission rate, include the following steps:

Mobile terminal encodes:The symbol in serial data is read, when often reading a symbol, saltus step occurs for level, and Different digital symbols are encoded to the level signal with different level durations;

Optical signal modulation and transmitting:By encoded data modulated light source, the data are emitted in the form of visible ray It goes out.

Further, the serial data is n systems, and n is the integer more than 1, often reads a symbol, level is jumped Become, and duration/duration scope T0 ... ..., Tn-1 that level continues is represented into the different numbers 0 ... ... in n systems, n- 1;In and T0 ... ..., Tn-1 the absolute value of the difference of the adjacent duration of any two/duration scope be more than predetermined value to reduce or The influence that the control delay inequality of light source is identified for different symbols is eliminated, wherein, two adjacent duration/duration scopes refer to the time The immediate two durations/duration scope of length.

Further, the absolute value of the difference of the adjacent duration of any two/duration scope is at least big in T0 ... ..., Tn-1 In 1 times of the control delay inequality of light source.

Further, system conversion first is carried out to read serial data before mobile terminal coding.

Further, read binary data string is converted to nonbinary equivalent data string by described be converted to, bag It includes:In binary data string to be sent, the adjacent binary code symbol for taking j according to sequencing forms binary data String, which is recompiled, and forms the equivalent data string that he number is k;The equivalent data string is non-two Binary data string, symbol species number therein are three or more;J and k is natural number, and j is more than k;Then, equivalent data Each symbol in string is converted into the different level signal of duration successively;Repeat step:Continue to remove one group of j according to sequencing Adjacent binary code symbol, repeats the above steps, until the data in serial data to be sent all convert;It is alternatively, described It is converted to and read non-binary data string is converted into binary data string or different non-binary data strings.

Further, with the optical signal with or without lasting duration represent each symbol, i.e.,:So that the jump of level Become the variation that optical signal whether there is;Wherein, high level, which corresponds to, shines, and low level correspondence does not shine;Either high level corresponds to It does not shine, low level, which corresponds to, to shine.

Further, if the number of the symbol of some unit transmission time length is more than unit transmission time shortest symbol Number, and the unit transmission time length symbol be the longest symbol of overall transmission time, the overall transmission time is longest Symbol is exchanged with unit transmission time shortest symbol.

Further, in optical signal modulation step, mobile terminal is also using the optical signal of brightness regulation at least partly Data to be transmitted carries out luminous intensity coding, and at least part data to be transmitted is represented with the optical signal of varying strength.

Further, in continuous multiple same symbols, at least one symbol has the light of symbol higher intensity more adjacent than its Signal is to distinguish continuous multiple same symbols.

Present invention additionally comprises a kind of coding/decoding methods for improving visible light signal transmission rate, include the following steps:

Optical signal receives and conversion:Receiving terminal receives the visible light signal for representing serial data, converts optical signals to correspond to Level signal;

Signal decodes:Receiving terminal determines that the corresponding symbol of each level is digital according to the duration of each level read;

It integrates:Receiving terminal integrates each group signal received, obtains the information of visible light signal characterization.

Further, signal decoding includes:

Receiving terminal pre-sets n-1 judgement duration Td1 ... ..., Tdn-1, and n is marked off by described n-1 judgement duration A duration section, corresponds to the n symbol number of n systems respectively, and n is the integer more than 1;

Receiving terminal according to the duration of the N number of level read judge that the duration of each level each fallen into when Long section, so that it is determined that the duration of each level corresponding symbol is digital, N is the integer more than 0.

Further, the n-ary digit is binary data string according to string, sets in judgement duration step and only sets one to sentence Certainly duration Td, in signal decoding step by the duration of the N number of level collected respectively compared with Td, if some level Duration be less than Td, then the level representative 0, if the duration of some level be more than Td, the level representative 1, if certain The duration of a level is equal to Td, then the level representative 0 or 1;Or

The n-ary digit is binary data string according to string, sets and a judgement duration Td is only set in judgement duration step, In signal decoding step by the duration of the N number of level collected respectively compared with Td, if some level it is lasting when Between be less than Td, then the level representative 1, if the duration of some level be more than Td, the level representative 0, if some level Duration is equal to Td, then the level representative 0 or 1.

Further, the method for setting judgement duration Td is as follows:

Appoint and take natural number m, 1≤m≤N, calculate the average value Ta, minimum N/m of N/m maximum level duration The average value Tb of a level duration, wherein, then, a length of Td=(Ta+Tb)/2 during judgement, wherein, if N/m is aliquant Then round numbers part.

Present invention additionally comprises a kind of mobile terminal, using the coding method.

Present invention additionally comprises a kind of receiving terminal, using above-mentioned coding/decoding method.

Present invention additionally comprises a kind of optical communication system, including above-mentioned mobile terminal and receiving terminal.

As a result of said program, the present invention is different in serial data to represent with the various durations of LED on or off Digital symbol, such as data 0 and 1, low level and high level (off and on of corresponding LED) are used for characterize data, thus big Improve transmission rate greatly;On the other hand, although the control accuracy of mobile phone LED flash lamp is not high, it controls delay basic Within the scope of one;Although delay occurs at random, certain probabilistic statistical characteristics are shown.It is dodged according to mobile phone LED This stroboscopic nature of light lamp, the present invention pass through to controlling the reasonable processing of delay and luminous duration and setting judgement in receiving terminal Duration, it is ensured that low and high level will not generate in an encoding process to be obscured, so that low and high level can be used for representing information, Therefore the transinformation of each second can be effectively improved.

Description of the drawings

Fig. 1 is the decoding method flow chart for the visible light signal that the embodiment of the present invention one provides;

Fig. 2 is the relation schematic diagram between the signal that the embodiment of the present invention one provides and level (light intensity).

Fig. 3 is the relation schematic diagram between the signal that the embodiment of the present invention four provides and light intensity.

Specific embodiment

Symbol referred to herein refers to the digital efm of each for forming arbitrary carry system serial data, such as binary data The symbol of string 00111 is 0,0,1,1,1, and the symbol of ternary data string 012201 is 0,1,2,2,0,1.For binary data String includes two kinds of numbers:0 and 1;It can include three kinds of numbers for ternary data string:0th, 1 and 2;It can be wrapped according to string for n-ary digit Kind containing n is digital:0、1、2…n-1.

According to an embodiment of the invention, the coding method for improving visible light signal transmission rate includes the following steps:

Mobile terminal encodes:The symbol in serial data is read, when often reading a symbol, saltus step occurs for level, and Different digital symbols are encoded to the level signal with different level durations;

Optical signal modulation and transmitting:By encoded data modulated light source, the data are emitted in the form of visible ray It goes out.

In a further embodiment, the serial data is n systems, and n is the integer more than 1, often reads a symbol, Saltus step occurs for level, and duration/duration scope T0 ... ..., Tn-1 that level continues is represented the different numbers in n systems 0 ... ..., n-1;The absolute value of the difference of the adjacent duration of any two/duration scope is more than predetermined in and T0 ... ..., Tn-1 Value the influence that the control delay inequality of light source is identified for different symbols is reduced or eliminated, wherein, two adjacent duration/duration models It encloses and refers to immediate two durations of time span.

The absolute value of the difference of the adjacent duration of any two/duration scope is at least above the control of light source in T0 ... ..., Tn-1 1 times of delay inequality processed.In coding method preferred embodiment, the adjacent duration of any two/duration model in T0 ... ..., Tn-1 The absolute value for the difference enclosed is more than 2 times of the control delay inequality of light source.

According to an embodiment of the invention, the coding/decoding method for improving visible light signal transmission rate includes the following steps:

Optical signal receives and conversion:Receiving terminal receives the visible light signal for representing serial data, converts light signals into correspondence Level signal;

Signal decodes:Receiving terminal determines that the corresponding symbol of each level is digital according to the duration of the level read;

It integrates:Receiving terminal integrates each group signal received, obtains the information of visible light signal characterization.

In a further embodiment, above-mentioned signal decoding includes:

Receiving terminal pre-sets n-1 judgement duration Td1 ... ..., Tdn-1, and n is marked off by described n-1 judgement duration A duration section, n symbol for corresponding to n systems respectively are digital;N is the integer more than 1;Adjudicating duration can be according to the system of test Meter rule is selected.

Receiving terminal is compared according to the duration of the N number of level read with Td1 ... ..., Tdn-1 respectively, is judged The duration section that the duration of each level is each fallen into, so that it is determined that the duration of each level corresponding symbol is digital, N For be more than 0 it is whole.

The n-ary digit is binary data string according to string, sets and a judgement duration Td is only set in judgement duration step, In signal decoding step by the duration of the N number of level collected respectively compared with Td, if some level it is lasting when Between be less than Td, then the level representative 0, if the duration of some level be more than Td, the level representative 1, if some level Duration is equal to Td, then the level representative 0 or 1;Alternatively, the n-ary digit is binary data string according to string, when setting judgement One judgement duration Td is only set in long step, in signal decoding step by the duration of the N number of level collected respectively with Td is compared, if the duration of some level be less than Td, the level representative 1, if the duration of some level be more than Td, then the level representative 0, if the duration of some level be equal to Td, the level representative 0 or 1.

The coding and decoding methods of the present invention are described further below by way of several specific embodiments.

Embodiment one:

The present embodiment shows a kind of decoding method of visible light signal, can improve visible light signal transmission rate, described Method includes:

Mobile terminal encodes the N-bit binary digital signal of acquisition as follows:

When often reading a symbol 0 (hereinafter referred to as 0) or symbol 1 (hereinafter referred to as 1), a saltus step occurs for level, and Level is continued into the duration of T0 to represent 0, level is continued into the duration of T1 to represent 1, T0 < T1 or T0 > T1;It will pass through The signal modulation of coding is into visible light signal so that and the saltus step of level becomes the variation that optical signal whether there is, and by the optical signal With or without lasting duration T0, T1 represent 0 or 1.The benefit of this coding method is:Synchronous letter is represented with level saltus step Number, represent 0 or 1 with the lasting duration of level, in this way, each duration can be used to represent signal, density of encoding greatly increases, because And transmission rate can be improved.But due to that when controlling the on and off of LED flash, can be delayed at random, i.e. the opening of LED, The duration close, opened, the duration closed cannot accurately control, and show certain unstability, cause with duration come table Error may be bigger when showing signal.

For this purpose, the present embodiment proposes the scheme of being further improved, be described as follows (light modulation is segmented into two kinds of situations, the One kind is that high level correspondence shines, and low level correspondence does not shine;Second is that high level correspondence does not shine, and low level corresponds to hair Light.It is illustrated below by taking the first situation as an example):

Mobile terminal (transmitting terminal):The absolute value (| T0-T1 |) of difference between setting 0 and 1 duration is more than flash lamp Control 2 times of delay inequality.The control delay inequality of flash lamp described herein refers to the maximum delay Δ t of flash lampmaxAnd minimum Be delayed Δ tminBetween difference.Such as:Sending instruction in moment t1 requires flash lamp to shine, but is just sent out in t1 ' moment flash lamp Light just equally, sends instruction in moment t2 and flash lamp is required to close there are one delay Δ t1=t1 '-t1 therebetween, but in t2 ' It carves flash lamp just to close, just there are one delay Δ t2=t2 '-t2 therebetween.The maximum Δ t of all these delaysmaxAnd minimum value ΔtminBetween difference, the control delay inequality of flash lamp is known as in the application.Difference between the present embodiment setting 0 and 1 duration After value is more than 2 times of the control delay inequality of flash lamp, when still can guarantee the actual duration T1 ratios of the larger symbol data of duration The actual duration T0 of long smaller symbol data will be grown, i.e., | T0-T1 | -2 (Δ tmax-Δtmin)>0, it would not cause sending End is just the data obfuscation of two durations.Certainly, for the binary system with any number of symbols or non-two-stage system serial data, The absolute value of the difference of the adjacent duration of any two more preferably greater than light source control 2 times of delay inequality, so as to prevent because delay And the symbol of different numbers cannot be distinguished.Two adjacent durations refer to immediate two durations of time span.

Work as satisfaction | T0-T1 |>2(Δtmax-Δtmin) when, it is long to may result in larger duration, so as to reduce hair Penetrate efficiency.In order to obtain balance between emission effciency and recognition correct rate, also not necessarily meet in practical application | T0-T1 |>2 (Δtmax-Δtmin)。

Flash lamp delay in practical application per money mobile terminal is different from, it is necessary to carry out multiple test.

Receiving terminal:Receiving terminal detects visible light signal, converts optical signals into electric signal by photoelectric conversion device, there is light Corresponding high level, unglazed corresponding low level.The duration of low and high level is detected, altogether N number of level duration, under then storing Come.Then the judgement duration Td set by receiving terminal, is compared the above-mentioned N number of level duration received, so as to Distinguish represent respectively 0 and 1 duration.In comparison procedure, as T0 < T1, T0 < Td≤T1 collect top N number of level duration (t1, t2 ..., tn, n≤N) respectively compared with Td, if tn≤Td, the level representative number According to 0, if tn > Td, the level representative data 1;As T0 > T1, T0 >=Td > T1, N number of level that top is collected Duration (t1, t2 ..., tn, n≤N) respectively compared with Td, if tn≤Td, the level representative data 1, if tn > Td, then the level representative data 0.Then the binary digital signal compared according to the method described above is combined, it is just extensive The initial data that mobile terminal of appearing again is sent.

Why receiving terminal set judgement duration Td, be because LED open and close, open duration, close it is lasting when Between cannot accurately control, show certain unstability, situation about actually sending can not know in advance, thus also just can not be pre- First determine the judgement duration that transmitting terminal (mobile terminal) and receiving terminal are consistent.The side of judgement duration Td is set in receiving terminal Method is as follows:

Arbitrary round numbers m, 1≤m≤N, calculating maximum N/m, a level continues (if aliquant, round numbers part) The average value Tb of average value Ta, minimum N/m a level duration (if aliquant, round numbers part) of time, then, A length of Td=(Ta+Tb)/2 during judgement.The calculating of the bigger judgement duration of m values is more accurate.

The present embodiment is further described below as follows:

It is the decoding method flow chart for the visible light signal that the embodiment of the present invention one provides referring to Fig. 1, the coding method Including:

S101:Information of mobile terminal is read:The information of storage in the terminal is read, converts information into binary number Word signal.

Wherein, mobile terminal can be the mobile phone with LED flash, tablet computer etc..

S102:Mobile terminal encodes:When reading 0, saltus step occurs for level, and the level is continued the duration of T0 to represent 0;When reading 1, saltus step occurs for level, and the level is continued the duration of T1 to represent 1.T0 < T1 or T0 > T1.

S103:Optical signal modulation and transmitting:By the LED flash of the modulates information mobile terminal after coding, will pass through The signal modulation visible light signal of coding.Light modulation is segmented into two kinds of situations, the first is that high level correspondence shines, low level Correspondence does not shine;Second is that high level correspondence does not shine, and low level, which corresponds to, to shine.Here by taking the first situation as an example, and T0 < T1 illustrate above-mentioned coding method.

For example, as T0 < T1, T0 is set to 2ms, and T1 is set to 30ms, 10011010 corresponding level waveforms such as Fig. 2 of data It is shown.

Coding information is sent in the form of visible ray.

S104:Optical signal receives:Receiving terminal receives visible light signal, converts light signals into electric signal.

S105:Read the storage low and high level duration:Receiving terminal detects the duration of low and high level, altogether N number of level Then duration stores.

S106:It is automatic that judgement duration Td is set:Calculate maximum N/m (if aliquant, round numbers part) a level The average value Tb of average value Ta, minimum N/m a level duration (if aliquant, round numbers part) of duration, Wherein, 1≤m≤N, then, a length of Td=(Ta+Tb)/2 during judgement.

S107:Signal decodes:Receiving terminal compares the duration of all low and high levels read and judgement duration Compared with, duration (t1, t2 ..., tn, n≤N) for N number of level that top is collected respectively compared with Td, if tn < Td, then the level representative data 0, if tn > Td, the level representative data 1.

S108:Receiving terminal integrates each group signal received, obtains the information of visible light signal characterization.

Code encoding/decoding mode provided in this embodiment, using the switch of the LED light of the mobile terminals such as mobile phone it is controllable and open and Duration of pass controllable performance, propose a kind of coding mode, and data 0 are represented with the various durations of LED on or off With 1.When mobile phone obtains data, using coding mode provided by the invention, information is encoded, then by the letter after coding Breath is sent by LED flash in the form of visible light signal.Receiving terminal receives visible light signal, passes through photoelectric converter Part converts light signals into electric signal, detects high level and low level duration, then by judging the duration, The signal of acquisition is decoded, recovers initial data.The LED flash that this programme efficiently solves the mobile terminals such as mobile phone dodges Bright unstable characteristic can improve them, it can be achieved that communication between the mobile terminals such as mobile phone and visible light signal receiving terminal Between optical signal transmission rate.

Embodiment two:(segment encoding is simultaneously condensed with multi-system, and N systems are just with N kinds waveform)

Binary digital signal to be sent is often taken triad number to be recompiled according to ternary by the present embodiment, is met 2 into 1 (symbols 2 referred to as 2), as shown in table 1:

1 decimal system of table, binary system and ternary digital corresponding table

The decimal system Binary system Ternary 0 000 00 1 001 01 2 010 10 3 011 02 4 100 11 5 101 12 6 110 20 7 111 21

The decoding method of the visible light signal of the present embodiment is similar with embodiment one, the difference is that be encoded Signal form the three kinds of symbols 0,1,2 become by ternary digital signal by two kinds of symbols 0,1 of binary digital signal Composition, correspondingly, mobile terminal encodes the ternary digital signal of acquisition as follows:Often read 0,1,2 During any symbol, saltus step occurs for level, and level is continued the duration of T0 to represent 0, level is continued the duration of T1 to represent 1, Level is continued into the duration of T2 to represent 2, the value of T0, T1, T2 are different.Encoded signal modulation is believed into visible ray Number so that the saltus step of level becomes the variation that optical signal whether there is, and by the optical signal with or without lasting duration T0, T1, T2 represents 0,1,2.Similarly, control of the absolute value more than flash lamp of the difference between the respective duration of setting 0,1,2 is prolonged 2 times of the time difference are caused in transmitting terminal to avoid the control delay of flash lamp by the data obfuscation of different durations.

It should be noted that:Above-mentioned binary system and ternary correspondence are only a simplest example, actual Its corresponding two code of ternary can be adjusted according to the occurrence probability of three codes in binary system sequence in, such as is occurred several Highest three codes of rate are adjusted to corresponding ternary 00, three minimum codes of occurrence probability be adjusted to corresponding ternary 21 or 12, to shorten total sending time.Such as passing through three sections of overturnings of the first step in the present embodiment, 010 probability occurred is more than in sequence 011, and the time of the transmission 10 apparent time than sending 02 is short, so 02 He of ternary code of Binary Zero 10 and 011 will be corresponded to 10 exchanges, to realize the purpose for shortening sending time.As shown in upper table, 010 in binary system corresponds in ternary originally 02, but 10 in ternary are corresponded to after exchanging, and 10 in the corresponding ternary of 011 script in binary system, but corresponded to after exchanging 02 (being shown in Table middle bolded section) in ternary.

Ternary numerical value is all two codes from 00 to 21 after coding, and corresponding binary system is all three codes, without individual one Position 0 and one 1.

The decoding method of the present invention is obviously not only applicable in binary system or ternary digital signal, this can also be implemented Example is done extended below again:In binary digital signal to be sent, the adjacent binary code symbol of j is taken according to sequencing (character in digital signal is known as symbol, its value is 1 or 0) forms binary digital signal string in binary system, by this Binary digital signal string recompiles, and forms the equivalent data string that he number is k;The equivalent data string is nonbinary Digital signal string, symbol species number therein are three or more;J and k is natural number, and j is more than k;Then, equivalent data Each symbol in string is converted into the different level signal of duration successively;Repeat step:Continue to remove one group of j according to sequencing Adjacent binary code symbol, repeats the above steps, until the data in digital signal to be sent all convert.

Such as:In the preceding example, it is the situation of j=3, k=2, but in step is recompiled, can also makes j=2, k= 1, then the length of the different wave described in switch process need 4 kinds.

Embodiment three:(overturning:Under particular cases, the short symbol of the symbol of sending time length and sending time is exchanged)

The decoding method of the visible light signal of the present embodiment and embodiment one, second is that similar, the difference is that, In this example, if the number of the symbol of some unit transmission time length is more than the number of unit transmission time shortest symbol, and And the symbol of unit transmission time length is the longest symbol of overall transmission time, by the longest symbol of the overall transmission time and unit The shortest symbol of transmission time is exchanged;And it is identified using mark is exchanged.

For example, for ternary situation in embodiment two, we can set following overturning strategy:If 1 number Number more than 0, and 0 number more than 2 number be multiplied by send 2 average time divided by send 1 average time after Value, then 0 and 1 exchange (at this time by secondary overturning mark position 1), at this time because 1 is the longest symbol of overall transmission time, by 1 and 0 Transmission time will can more be saved than 2 and 0 are exchanged by exchanging;If 2 number is more than 0 number, and 2 number is multiplied by transmission The value of 2 average time divided by the average time of transmission 1 are more than 1 number, then 0 and 2 exchange (at this time by secondary overturning mark position It puts 2), at this time because 2 be the longest symbol of overall transmission time, when 2 and 0 are exchanged can more save transmission than 1 and 0 are exchanged Between, it does not otherwise exchange (at this time by secondary overturning mark position 0).

Example IV:(intensity modulated is added on the basis of embodiment two)

The decoding method of the visible light signal of the present embodiment with embodiment second is that similar, the difference is that, at this In example, mobile terminal also carries out luminous intensity coding using the optical signal of brightness regulation to a part for data to be transmitted, will be to be passed Transmission of data is represented with the optical signal of varying strength, and data to be transmitted after coding is sent with optical signal.Due in above-mentioned implementation In example two, the value of symbol has 0,1,2 three kind, if all represented with duration, wherein must have a kind of duration of symbol very It is long.In order to save transmission time, value 2 and above symbol are used instead different difference luminous intensities to represent by the present embodiment.Than Such as:Conventional luminous intensity continues the duration of T0 to represent 0;Conventional luminous intensity continues the duration of T1 to represent 1, but 2 do not use routine Luminous intensity duration T 2 represents, but is represented with the difference luminous intensity different from conventional luminous intensity, and its duration Can be then T1 or T0 or other.

Preferably, in continuous multiple same symbols, the light that at least one symbol has symbol higher intensity more adjacent than its is believed Number to distinguish continuous multiple symbols.For example, 100122201 corresponding level waveforms of data are as shown in Figure 3.It is continuous due to having Three 2, if all represented with same luminous intensity, it will cause losing synchronizing signal, so represented with two difference light intensity, There are one saltus steps between each 2 and next 2 to represent synchronizing signal.The duration of difference light intensity corresponding to symbol 2 can be with It is T0 or T1, even other durations.In Fig. 3, in order to shorten sending time, improve transmission rate, 2 it is lasting when Between use T0.Although 0 duration is also T0,0 light intensity is the saltus step between zero light intensity and conventional light intensity, and 2 signals Light intensity be the saltus step between two special light intensity, it is sufficient to will distinguish therebetween.

This example is sent by controlling the luminous power of flash lamp to encode, thus can be strong and weak instead of duration by combining To reduce the data volume of transmission.And the scheme of light intensity combinations can improve security.Due to increasing for light intensity series so that can The quantity of coding greatly increases, and can thus use a little rooms with the further security for increasing coding.

In further embodiments, the present invention also provides a kind of mobile terminal, which can be used any of the above-described kind The embodiment of coding method.

In further embodiments, the present invention also provides a kind of receiving terminal, which can be used any of the above-described kind of decoding The embodiment of method.

In yet other embodiments, the present invention also provides a kind of optical communication system, include any of the above-described kind of mobile terminal With any receiving terminal.

Although the present invention is described with reference to current specific embodiment, those of ordinary skill in the art It should be appreciated that above embodiment is intended merely to illustrate the present invention, can also make in the case of without departing from spirit of the invention Go out various equivalent change or replacement, therefore, as long as variation, change in the spirit of the present invention to above-described embodiment Type will all fall in the range of following claims.

Claims (12)

1. a kind of coding method for improving visible light signal transmission rate, it is characterized in that including the following steps:
Mobile terminal encodes:The symbol in serial data is read, when often reading a symbol, saltus step occurs for level, and different Digital symbol is encoded to the level signal with different level durations;
Optical signal modulation and transmitting:By encoded data modulated light source, the data are launched in the form of visible ray;
The serial data is n systems, and n is the integer more than 1, often reads a symbol, saltus step occurs for level, and level is held Continuous duration T0 ... ..., Tn-1 represents the different numbers 0 ... ... in n systems, n-1;Appoint in and T0 ... ..., Tn-1 The absolute value of the difference of two adjacent durations of meaning is more than predetermined value so that the control delay inequality of light source is reduced or eliminated for different codes The influence of member identification, wherein, two adjacent durations refer to immediate two durations of time span, and the control delay inequality refers to The maximum delay Δ t of light sourcemaxWith minimum delay Δ tminBetween difference.
2. the coding method of visible light signal transmission rate is improved as described in claim 1, it is characterized in that:T0 ... ..., Tn-1 The absolute value of the difference of the adjacent duration of middle any two is at least above 1 times of the control delay inequality of light source.
3. the coding method of visible light signal transmission rate is improved as described in claim 1, it is characterized in that:It is compiled in mobile terminal System conversion first is carried out to read serial data before code.
4. the coding method of visible light signal transmission rate is improved as claimed in claim 3, it is characterized in that:
Read binary data string is converted to nonbinary equivalent data string by described be converted to, including:To be sent In binary data string, the adjacent binary code symbol for taking j according to sequencing forms binary data string, by the binary number It is recompiled according to string, forms the equivalent data string that he number is k;The equivalent data string is non-binary data string, wherein Symbol species number be three or more;J and k is natural number, and j is more than k;Then, each symbol in equivalent data string according to It is secondary to be converted into the different level signal of duration;Repeat step:Continue to remove a adjacent binary code codes of one group of j according to sequencing Member repeats the above steps, until the data in serial data to be sent all convert;Alternatively, described be converted to will be read Non-binary data string be converted to binary data string or different non-binary data strings.
5. if Claims 1-4 any one of them improves the coding method of visible light signal transmission rate, it is characterized in that:With The optical signal with or without the duration of state represent each symbol, i.e.,:Have so that the saltus step of level becomes optical signal The variation of nothing;Wherein, high level, which corresponds to, shines, and low level correspondence does not shine;Either high level correspondence does not shine, low level pair It should shine.
6. the coding method of visible light signal transmission rate is improved as claimed in claim 5, it is characterized in that:If some unit Transmission time length symbol number be more than unit transmission time shortest symbol number, and the unit transmission time length Symbol is the longest symbol of overall transmission time, by the longest symbol of the overall transmission time and unit transmission time shortest symbol pair It adjusts, wherein the symbol of some described unit transmission time length refers to that the unit transmission time of the symbol is more than the unit transmission time most The unit transmission time of short symbol.
7. if Claims 1-4 any one of them improves the coding method of visible light signal transmission rate, it is characterized in that: In optical signal modulation step, mobile terminal also carries out luminous intensity using the optical signal of brightness regulation at least part data to be transmitted Coding, at least part data to be transmitted is represented with the optical signal of varying strength.
8. the coding method of visible light signal transmission rate is improved as claimed in claim 7, it is characterized in that:It is continuous multiple identical In symbol, at least one symbol has the optical signal of symbol higher intensity more adjacent than its to distinguish continuous multiple same codes Member.
9. a kind of coding/decoding method for improving visible light signal transmission rate, it is characterized in that including the following steps:
Optical signal receives and conversion:Receiving terminal receives the visible light signal for representing serial data, converts optical signals to corresponding electricity Ordinary mail number;The serial data is n systems, and n is integer more than 1, often reads a symbol, and saltus step occurs for level, and by electricity Lasting duration T0 ... ..., Tn-1 are put down to represent the different numbers 0 ... ... in n systems, n-1;And T0 ... ..., Tn-1 The absolute value of the difference of the adjacent duration of middle any two is more than predetermined value so that the control delay inequality of light source is reduced or eliminated for not With the influence of symbol identification, wherein, two adjacent durations refer to immediate two durations of time span, the control delay inequality Refer to the maximum delay Δ t of light sourcemaxWith minimum delay Δ tminBetween difference;
Signal decodes:Receiving terminal determines that the corresponding symbol of each level is digital according to the duration of each level read;
It integrates:Receiving terminal integrates each group signal received, obtains the information of visible light signal characterization.
10. the coding/decoding method of visible light signal transmission rate is improved as claimed in claim 9, it is characterized in that:Signal decoding bag It includes:
Receiving terminal pre-sets n-1 judgement duration Td1 ... ..., Tdn-1, when marking off n by described n-1 judgement duration Long section, corresponds to the n symbol number of n systems respectively, and n is the integer more than 1;
Receiving terminal judges the duration area that the duration of each level each fallen into according to the duration of the N number of level read Between, so that it is determined that the duration of each level corresponding symbol is digital, N is the integer more than 0.
11. the coding/decoding method of visible light signal transmission rate is improved as claimed in claim 10, it is characterized in that:The n systems Serial data is binary data string, sets and a judgement duration Td is only set in judgement duration step, will in signal decoding step The duration of the N number of level collected is respectively compared with Td, if the duration of some level is less than Td, the level Represent 0, if the duration of some level be more than Td, the level representative 1, if the duration of some level be equal to Td, The level representative 0 or 1;Or
The n-ary digit is binary data string according to string, sets and a judgement duration Td, signal are only set in judgement duration step In decoding step by the duration of the N number of level collected respectively compared with Td, if the duration of some level is small In Td, then the level representative 1, if the duration of some level be more than Td, the level representative 0, if some level continues Time is equal to Td, then the level representative 0 or 1.
12. the coding/decoding method of visible light signal transmission rate is improved as claimed in claim 11, it is characterized in that:When judgement is set The method of long Td is as follows:
Appoint and take natural number m, 1≤m≤N, calculate the average value Ta of N/m maximum level duration, minimum N/m electricity The average value Tb of flat duration, wherein, then, a length of Td=(Ta+Tb)/2 during judgement, wherein, N/m if aliquant only Round numbers part.
CN201410453344.8A 2014-09-05 2014-09-05 The decoding method and mobile terminal and system of raising visible light signal transmission rate CN105471499B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410453344.8A CN105471499B (en) 2014-09-05 2014-09-05 The decoding method and mobile terminal and system of raising visible light signal transmission rate

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410453344.8A CN105471499B (en) 2014-09-05 2014-09-05 The decoding method and mobile terminal and system of raising visible light signal transmission rate
PCT/CN2015/086870 WO2016034038A1 (en) 2014-09-05 2015-08-13 Encoding and decoding method, mobile terminal, and system for enhancing speed of visible optical signal transmission

Publications (2)

Publication Number Publication Date
CN105471499A CN105471499A (en) 2016-04-06
CN105471499B true CN105471499B (en) 2018-05-25

Family

ID=55608854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410453344.8A CN105471499B (en) 2014-09-05 2014-09-05 The decoding method and mobile terminal and system of raising visible light signal transmission rate

Country Status (1)

Country Link
CN (1) CN105471499B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018120745A1 (en) * 2016-12-29 2018-07-05 深圳光启智能光子技术有限公司 Coding method, signal sending device and receiving device, and method, for use in optical communication
CN107231192A (en) * 2017-02-28 2017-10-03 华南师范大学 The data transmission method and LED visible light communication system of double level pulse widths codings
CN108574535A (en) * 2017-03-09 2018-09-25 深圳光启智能光子技术有限公司 For the coding method of optic communication, sender unit and reception device and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008204423A (en) * 2007-03-27 2008-09-04 Kyocera Corp Visible light communication system, visible light communication transmission device, and visible light communication reception device
CN102693567A (en) * 2012-04-28 2012-09-26 深圳光启创新技术有限公司 Coding-decoding method based on communication of access control system
CN103378923A (en) * 2012-04-18 2013-10-30 北京鼎合远传技术有限公司 FM (frequency modulation)-based baseband transmission encoding method and apparatus thereof
CN103812574A (en) * 2013-07-31 2014-05-21 深圳光启创新技术有限公司 Method, device and system for improving recognition rate of photon identity authentication system
CN103812557A (en) * 2013-07-31 2014-05-21 深圳光启创新技术有限公司 Visible light signal encoding and decoding method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008204423A (en) * 2007-03-27 2008-09-04 Kyocera Corp Visible light communication system, visible light communication transmission device, and visible light communication reception device
CN103378923A (en) * 2012-04-18 2013-10-30 北京鼎合远传技术有限公司 FM (frequency modulation)-based baseband transmission encoding method and apparatus thereof
CN102693567A (en) * 2012-04-28 2012-09-26 深圳光启创新技术有限公司 Coding-decoding method based on communication of access control system
CN103812574A (en) * 2013-07-31 2014-05-21 深圳光启创新技术有限公司 Method, device and system for improving recognition rate of photon identity authentication system
CN103812557A (en) * 2013-07-31 2014-05-21 深圳光启创新技术有限公司 Visible light signal encoding and decoding method, device and system

Also Published As

Publication number Publication date
CN105471499A (en) 2016-04-06

Similar Documents

Publication Publication Date Title
CN105993151B (en) Low ISI is than low-power interchip communication method and apparatus
Mazzini et al. Interference minimisation by auto-correlation shaping in asynchronous DS-CDMA systems: chaos-based spreading is nearly optimal
US8666259B2 (en) Data transmitting and receiving apparatus and method for visible light communication
Ghassemlooy et al. Digital pulse interval modulation for optical communications
CN102696280B (en) Use the regular camera sensor tip Data Detection to visible light communication
CN102007703B (en) Method and apparatus for successive interference subtraction with covariance root processing
CN101091319B (en) Multilevel low density parity-check
Franaszek Sequence-state coding for digital transmission
AU2017326022A1 (en) Method and apparatus for encoding data using a polar code
CN102394724B (en) Highly-reliable data transmission method and device based on dual tone multiple frequency sound waves
JP2655547B2 (en) CRC calculation method and HEC synchronizer in ATM switching system
US5239496A (en) Digital parallel correlator
Assalini et al. Improved nyquist pulses
US4201909A (en) Data-transmission system and method using fiber-optical transmission
NL194930C (en) Electronic comparator and electronic logic circuit.
US7289560B2 (en) Digital modulation and demodulation technique for reliable wireless (both RF and IR) and wired high bandwidth data transmission
JP3323509B2 (en) Method and apparatus for formatting data for transmission
KR102082931B1 (en) Multi-stage amplitude modulation-based methods, apparatuses and systems for coding and decoding visible light signal
CN101312349B (en) Method and apparatus for information block encoding and synchronous detecting
CN103812557B (en) Visible light signal encoding and decoding method, device and system
US8989596B2 (en) Multiple sensor optical communication systems and methods
KR19980703104A (en) Method and apparatus for data encoding and communication over noisy media
JP4564339B2 (en) Evaluating the performance of multiple-input multiple-output (MIMO) communication links
US5883589A (en) Variable length code construction apparatus
CN101454768A (en) Time diversity voice channel data communications

Legal Events

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