CN105389865B - Shorten the digital signal method of sending and receiving and mobile terminal of sending time - Google Patents
Shorten the digital signal method of sending and receiving and mobile terminal of sending time Download PDFInfo
- Publication number
- CN105389865B CN105389865B CN201410453843.7A CN201410453843A CN105389865B CN 105389865 B CN105389865 B CN 105389865B CN 201410453843 A CN201410453843 A CN 201410453843A CN 105389865 B CN105389865 B CN 105389865B
- Authority
- CN
- China
- Prior art keywords
- symbol
- sending
- digital signal
- time
- ternary
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000005540 biological transmission Effects 0.000 claims abstract description 48
- 238000004904 shortening Methods 0.000 claims abstract description 12
- 230000008569 process Effects 0.000 claims abstract description 9
- 230000003287 optical effect Effects 0.000 claims description 35
- 238000004891 communication Methods 0.000 claims description 12
- 230000005611 electricity Effects 0.000 claims description 2
- 238000006243 chemical reaction Methods 0.000 claims 1
- 235000013399 edible fruits Nutrition 0.000 claims 1
- 229910002056 binary alloy Inorganic materials 0.000 description 10
- 230000001934 delay Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000011664 signaling Effects 0.000 description 4
- 230000003111 delayed effect Effects 0.000 description 3
- 230000005764 inhibitory process Effects 0.000 description 3
- 230000011218 segmentation Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012163 sequencing technique Methods 0.000 description 2
- 230000008054 signal transmission Effects 0.000 description 2
- 235000013290 Sagittaria latifolia Nutrition 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 235000015246 common arrowhead Nutrition 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000009131 signaling function Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
- 230000007306 turnover Effects 0.000 description 1
Landscapes
- Optical Communication System (AREA)
Abstract
A kind of digital signal method of sending and receiving for shortening sending time, sending method include:Recompile step:Binary data string to be sent is recompiled, forms multi-system equivalent data string;The multi-system is more than ternary and ternary;Switch process:Symbol in the multi-system equivalent data string is encoded into the different level signal of state successively.Method of reseptance includes:The different level signal of the state received is decoded into corresponding symbol, and is combined sequentially into multi-system serial data, the multi-system is more than ternary and ternary;The multi-system serial data is encoded into binary equivalent data string.A kind of mobile terminal using the above method.Shorten whole sending time by reducing transmission yardage, as long as determining the delay time of the different level signal of duration, receiver is distinguished according to the delay number of setting can receive accurate coding information.
Description
Technical field
It is especially a kind of to shorten movement the present invention relates to a kind of digital signal method of sending and receiving for shortening sending time
The method of terminal optical key fluorescent lifetime and a kind of mobile terminal, particularly optical key.
Background technology
Existing photon entrance guard system usually requires to preserve the authentication that user is held to believe using mobile terminals such as mobile phones
Breath, and the mobile terminal must then possess a device that can be shone and be sent receiving terminal to be allowed to get from mobile terminal
Optical signal, in the prior art, which would generally select the flash lamp of mobile terminal in itself.However, by
In mobile terminal flash lamp in itself and it is non-expert be designed to send optical signal, and the frequency glistened is typically by factory
Business is configured according to application model, is met so will customize the sending method being adapted for every money mobile terminal with sending
The defined frequency of receiving terminal and the optical signal of light intensity, in order to which receiving terminal correctly identifies the optical signal, in addition,
The mobile terminal of also some models is also fitted without flash lamp, has thereby resulted in using built in flash lamp or mobile terminal
The limitation of other original papers progress optic communications that shine and same optical communication method are difficult to for the client of optic communication by not
The problem of being compatible with the mobile terminal of model.For this problem, it can be realized by grafting adapter and send optical signal.
Either possesses the mobile terminal for sending optical signal function by the flash lamp or grafting adapter of itself, we can
Referred to as mobile terminal optical key.Common mobile terminal is mobile phone or tablet computer or the portable electricity such as carry-on WIFI or mobile power
Sub- equipment.
Mobile phone optical key is a kind of more recent application based on visible light communication, it is a kind of complete new experience enabling experience, is
The revolution in the field of intelligent entrance guard.The mandate id of access card need to be only simply provided in user, and mobile phone will be in a manner of optical signal
It is sent to gate inhibition's receiving terminal and opens corresponding gate inhibition.The optical signal of mobile phone optical key is not easy to intercept, and signals security is reliable.
The coding mode that present mobile phone optical key sends information is nrzi encoding, counts coding by raw information with n ratio
Specially for one group, time interval between setting group between two adjacent groups signal, per group information in high level to low level (or low level
To high level) reversion number represent the information of n bit in this group of signal respectively.Because it is needed between per group information by group
Between interval distinguish, interblock space take it is most long and without the information content, so whole sending time is longer.
For the occasions such as bank card other kinds of mobile terminal optical key there is also it is similary the problem of.
In the communications field, on especially binary-coded industrial control equipment, need to reduce sending time there is also various
Occasion, user wishes that can shorten sending time improves work efficiency.
The content of the invention
The object of the present invention is to provide a kind of digital signal method of sending and receiving for shortening sending time and a kind of movements
Terminal.
For this purpose, the digital signal sending method of the shortening sending time of the present invention, includes the following steps:
Recompile step:Binary data string to be sent is recompiled, forms multi-system equivalent data string;It is described
Multi-system is more than ternary and ternary;
Switch process:Symbol in the multi-system equivalent data string is encoded into the different level signal of state successively.
Preferably, following technical characteristic can also further be used:
The different digital in multi-system is represented using the level signal of different durations in switch process.
With 3 kinds or more kinds when described different.
Level signal is divided into multi gear according to level, and different shelves represent the different digital in multi-system.
Level signal is divided into multi gear according to level, and varying level size represents different in multi-system from the combination of duration
Number.
In switch process using do not set intersymbol interval direct coding or using set intersymbol interval space coding or
A part uses space coding using direct coding another part.
The direct coding for not setting intersymbol interval is to be lower from height by the level signal between symbol or become higher from low
To distinguish adjacent symbol.
Before step is recompiled, overturning step is further included, if the code that the unit transmission time is grown in binary element
The number of member is more than the number of unit transmission time short symbol, then the symbol grown the unit transmission time and unit transmission time
Short symbol is exchanged, and passes through leading flag bit and the overturning is identified.
After step is recompiled, secondary overturning step is further included, i.e.,:If the symbol of some unit transmission time length
Number be more than unit transmission time shortest symbol number, and the unit transmission time length symbol be overall transmission time
Longest symbol exchanges the longest symbol of the overall transmission time and unit transmission time shortest symbol;And it uses and exchanges mark
Will is identified the secondary overturning.
In overturning step, digital signal to be sent is first divided into k sections, is then overturn by section, wherein k is greater than 2
Natural number.
Present invention additionally comprises a kind of digital signal reception methods for shortening sending time, include the following steps:
The different level signal of the state received is decoded into corresponding symbol, and is combined sequentially into multi-system data
String, the multi-system are more than ternary and ternary;
The multi-system serial data is encoded into binary equivalent data string.
Present invention additionally comprises a kind of mobile terminals, for carrying out authentication by photon information, use above-mentioned side
Method shortens digital signal sending time.
Present invention additionally comprises a kind of receiving terminals, use above-mentioned digital signal reception 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 carried out binary digital signal to be sent again for a string by m symbol
Newly encoded, the he number n of newly organized code is less than the he number m in former binary digital signal, to be sent so as to reduce
Code number, and then reduce sending time.Although cannot so retransmit an individual symbol in binary system,
The transmission of overall digital signal is not interfered with, because can not possibly only send an individual binary code in actual transmission
Member.The present invention shortens whole sending time by reducing transmission yardage, as long as determining prolonging for the different level signal of duration
When the time, receiver is distinguished according to the delay number of setting can receive accurate coding information.
Description of the drawings
Fig. 1 is that embodiment one receives photon information hardware facility figure.
Fig. 2 is that the optical signal of optical key transmits and receives schematic diagram.
Fig. 3 is one direct coding principle schematic diagram of embodiment.
Fig. 4-1~Fig. 4-3 is one software signaling flow chart of embodiment, and the wherein identical arrow of label represents same arrow
Head, i.e.,:The arrow a in arrow a and Fig. 4-2 in Fig. 4-1 is same arrow, the arrow in arrow b and Fig. 4-3 in Fig. 4-2
Head b is same arrow.
Fig. 5 is two coding principle schematic diagram of embodiment.
Fig. 6 is two software signaling flow chart of embodiment.
Fig. 7-1, Fig. 7-2 are three software signaling flow charts of embodiment, and the wherein identical arrow of label represents same arrow,
I.e.:The arrow c in arrow c and Fig. 7-2 in Fig. 7-1 is same arrow, the arrow d in arrow d and Fig. 7-2 in Fig. 7-1
It is same arrow.
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.
An embodiment of the present invention provides a kind of digital signal sending methods for shortening sending time, include the following steps:
Recompile step:Binary data string to be sent is recompiled, forms multi-system equivalent data string;It is described
Multi-system is more than ternary and ternary;
Switch process:Symbol in the multi-system equivalent data string is encoded into the different level signal of state successively.
Based on the level signal that switch process obtains, optical signal modulation and transmitting can be carried out, utilizes encoded number
According to modulated light source, data are launched in the form of visible ray.
In some embodiments, the different digital in multi-system is represented using the duration of level signal different wave.Its
The duration of middle different wave can have 3 kinds or more kinds.A variety of durations can be a variety of duration scopes, i.e., with different duration scopes
Different digital in interior waveforms stands multi-system.
In further embodiments, the weak code level signal of light intensity can also be used, i.e., is divided into not according to the size of level
Same multi gear, different shelves represent the different digital in multi-systems.
It is readily appreciated that, can also be represented with the combination of the duration of different wave and the level signal of different shelves in multi-system
Different numbers.
In switch process using do not set intersymbol interval direct coding or using set intersymbol interval space coding or
A part uses space coding using direct coding another part.
In some embodiments, by the way that the level signal between symbol is made to be lower from height or be become higher from low, that is, saltus step occurs,
The waveform of each saltus step is all used for representing a symbol, to realize the direct coding for not setting intersymbol interval.In some embodiments,
The coding modes such as NRZI or NRZ may be employed in space coding.
In preferred embodiment, before step is recompiled, overturning step is further included, if unit passes in binary element
The number of the symbol of defeated time length is more than the number of unit transmission time short symbol, then the symbol grown the unit transmission time and
Unit transmission time short symbol is exchanged, and passes through leading flag bit and the overturning is identified.In preferred embodiment, in weight
After newly encoded step, secondary overturning step is further included, i.e.,:If the number of the symbol of some unit transmission time length is more than single
The number of the position shortest symbol of transmission time, and the symbol of unit transmission time length is the longest symbol of overall transmission time,
The longest symbol of the overall transmission time and unit transmission time shortest symbol are exchanged;And indicated using exchanging to described secondary
Overturning is identified.
Embodiment one:
As shown in Figs 1-4, the present embodiment shows a kind of method for shortening mobile phone optical key fluorescent lifetime and a kind of mobile phone light
Key, receiving terminal and optical communication system.
The optical communication system hardware facility figure receives gate inhibition system as shown in Figure 1, this is a kind of mobile phone optical key photon information
System, hardware facility include:Luminaire (mobile phone optical key), receiving terminal MCU are (including decoding, decryption and identification mould
Block), receiver included in MCU (being received including signal, photoelectric converter (photodiode)), access controller (wherein
Include Wiegand (Wiegand) protocol interface) and server.Optical signal is sent from luminaire (mobile phone optical key), by MCU
Photodiode receive, the optical signal received such as is decoded, descramble at the operations acquisition ID (identity) and Counter by MCU
(counting) value, by Wiegand passage by this signal transmission to access controller, access controller by ID values and is switched by network
Door temporal information etc. is uploaded to server by network.
Wherein MCU represents micro-control unit, and Wiegand (Wiegand) agreement is standard unified in the world, it is suitable for relating to
And the card reader and card of access control system.The output of Wiegand data is made of two lines, is DATA0 and DATA1 respectively, in figure
Be denoted as D0 D1;Two lines are respectively ' 0 ' or ' 1 ' output.
Its method is described as follows:
1st, physical step
Optical signal transmit and receive schematic diagram as shown in Fig. 2, mobile phone optical key irradiation receiver on photodiode when,
Photodiode converts optical signals to electric signal, this can be received by the pin of the connection photodiode of MCU I/0
Voltage signal, the digital information transmitted by the analysis of the transition detection to low and high level and sampling number, GND in Fig. 2
Represent ground terminal.
2nd, software signaling flow chart, such as Fig. 4-1~Fig. 4-3.
(1) three section of overturning
There is digital signal to be sent in this example often takes 18 to be divided into high, medium and low three sections in 54,54, carry out respectively
Judgement and plus corresponding leading flag bit leadIndex (being added in entire effectively digital foremost) whether overturning.Judge rule
It is then as follows:If 1 number (NumHigh, NumMid, NumLow) is more than 9 in 18, (0 and 1 exchanges) is exchanged,
Such as Fig. 4-1,;Otherwise without exchanging.The unit transmission time of symbol 0 due to the unit transmission time length of symbol 1 in this example
It is short, transmission time can be saved after exchanging.
Because a total of three leading marks, high section judging result charge to the bit2 of leading flag bit leadIndex, stage casing
Judging result charges to the bit1 of leading flag bit leadIndex, and low section of judging result charges to leading flag bit leadIndex's
Bit0, such leadIndex share 8 kinds of combinations, correspond to respectively in binary system 000,001,010,011,100,101,110,
111, decimally represent to be exactly that leadindex is respectively equal to 0,1,2,3,4,5,6,7, such as 8 branches in Fig. 4-2.
It is coded and decoded in transmitting terminal with receiving terminal according to consistent communication protocol, the digit of lead code can be pre-
If effectively digital digit can also be preset.The present embodiment is only with three sections as an example, can be according to be sent in practical application
Digital signal digit, time needed for judgement whether overturning and send time synthesis needed for leading flag bit
Balance determines to be specifically divided into several sections of overturnings.
(2) ternary encodes
To sent binary digital signal triad number is often taken to be recompiled according to ternary, meet 2 into 1, such 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 |
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 (i.e. n=2) from 00 to 21 after coding, and corresponding binary system is all three code (i.e. m
=3), without individual one 0 and one 1.
(3) direct coding
Direct coding is with respect to for nrzi encoding, i.e., does not set interblock space (i.e. intersymbol interval), the waveform of each saltus step
All it is useful information, different digital information is corresponded to according to the duration of waveform.The data of transmission are if 0 sends the short of t0
Level, if 1 long level for sending t1, if 2 long level for sending t2, on condition that each signal is jumped
Become.As Fig. 3 information for representing to send is:1010200.
(4) secondary overturning
Such as Fig. 4-2, the digital digit after ternary is 36, the number of statistics wherein 0,1 and 2, if after ternary 0
Number is zeroNum, and 1 number is oneNum, and 2 number is twoNum.The average time for sending 1 is aveOneTime, sends 2
Average time be aveTwoTime, then the rule as follows represented by the program in quotation marks is overturn:
“if((oneNum>zeroNum)&&(oneNum>twoNum*aveTwoTime/aveOneTime))
0 and 1 exchanges
else if((twoNum>zeroNum)&&(twoNum*aveTwoTime/aveOneTime>oneNum))
0 and 2 exchange
else
It does not exchange ".
Above procedure is meant that:If 1 number is more than 0 number, and 0 number of the number more than 2 is multiplied by hair
The value after 2 average time divided by the average time of transmission 1 is sent, then 0 and 1 is exchanged (at this time by secondary overturning mark position
1) leadIndexTernary is put, at this time because 1 is the longest symbol of overall transmission time, 1 and 0 are exchanged will be than 2 and 0 be exchanged
Transmission time can more be saved;If 2 number be more than 0 number, and 2 number be multiplied by send 2 average time divided by hair
Number of the value more than 1 of 1 average time is sent, then 0 and 2 is exchanged (at this time by secondary overturning mark position leadIndexTernary
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 and (at this time sets to 0 secondary overturning mark position leadIndexTernary).
(5) optical signal transmission algorithm flow
Such as Fig. 4-1~Fig. 4-3:Wherein, the long types data of 54 are set in initialization step as dataSend;dataSend
In in high, medium and low 18 1 number be initialized as NumHigh=0, NumMid=0, NumLow=0, leading flag bit respectively
It is initialized as leadIndex=0;The number for being converted into after ternary in 36 codes in total 0 is initialized as zeroNum=0,1
Number number twoNum=0, ternary exchange mark and are initialized as leadIndexTernary=0.
(6) overturning and ternary coding sequencing research
It is to need to overturn to encode with ternary according to current encoder rule if 1 number is more than 0 number in every section
, carry out which step also has an impact the final delivery time first.
Calculate also according to the situation that 18 are entirely 1, such as table 2 (setting t0=3.85ms, t1=16.28ms):
Table 2 is overturn and ternary encodes sequencing results of measuring
From table 2 it can be seen that being overturn again after carrying out ternary coding first, 1 in data can not be overturn,
Total sending time is caused to be elongated.It can more shorten sending time so still first overturning and carrying out ternary coding again.Certainly first carry out
It carries out overturning the required time again after ternary coding still more shorter than the time needed for prior art.
This embodiment scheme solves the problems, such as that the transmitted data currently position time is longer, can sending time be shorten to NRZI
The 1/3 of coding.
The part that the present embodiment is most difficult to is to be segmented overturning+ternary coding+secondary proposition for overturning assembly coding method, phase
For nrzi encoding, such method can reduce the yardage of transmission, although being become on coding by 0 and 1 two original number
0,1 and 2 three number, but fallen whole sending time by reducing the number (i.e. number of symbols) of the code sent
Come.For sending the more occasions of data bits, this method can be more efficient.
Overturning+ternary coding+secondary overturning is segmented in the above embodiment of the present invention to be shortened with reducing transmission yardage
Whole sending time, compared with binary coding, it is a that yardage N can be reduced to N* (2/3) by ternary coding, although three into
2 in system coding are time-consuming longer, but because sending gross yards reduces to shorten sending time.Segmentation overturning is to be directed to
1 situation unevenly distributed in serial data, by the way that 1 and 0 are exchanged, reducing by 1 number increases by 0 number, and realizing reduces transmission
The purpose of time simply needs to add leading marker level before bit string.Secondary overturning is for ternary coded data
In string 0 number it is fewer and 1 either 2 the more situation of number will be whole by carrying out exchanging realization by 1 or 2 and 0
The purpose that sending time is reduced again.
The useful achievement that the present embodiment protrudes is to propose segmentation overturning+ternary coding+secondary overturning in binary system
Application in data transmission, each saltus step are all a digital information, judge it is which is digital according to the length of delay.
In entire waveform, without any redundancy, the efficiency of transmission is substantially increased.For can accurately control the field of delay,
Following embodiments two may be employed.
In addition, because now we can only control the delay of flash of light from application layer in the terminal, can not be driven from system
Dynamic layer control, application layer APP are significantly lower than some softwares of system layer in terms of priority, and control flash of light can so be caused to occur
Delay.The embodiment of the present invention can be very good to solve this and cannot be precisely controlled the time to be difficult to effectively send the technology of information and ask
Topic.
It should be noted that the hardware facility of above-mentioned access control system and merely illustrative, the alternate embodiment of application
It can be the scene that subway system, ticket-booking system, payment system, wireless shrouding system etc. can use light to communicate.It is above-mentioned
Decoding, decryption can also omit as needed.
Embodiment two:
On the premise of can delay time accurately being controlled, unlike signal, this implementation are represented with integral multiple unit delay time
Example represents 4 kinds of unlike signals with 1-4 times of unit delay time, as shown in table 3.
Table 3 accurately controls delay time and information corresponding table
In this way, one group of binary digital signal each two symbol to be sent can be built with different delays with information
Vertical correspondence.
If sending 54bit in total, each two bit is as one group when sending digital, using saltus step as new code mark, such as sends
Number is gone here and there:10001101, then level is as shown in Figure 5.
If sending the long types data of 54 as dataSend, byte type data data0, software flow is as shown in Figure 6.
The premise of embodiment two be can accurate delay T, so as to using unlike signal by the use of the T of different multiples delay as area
Point.It is higher with this scheme efficiency in the case where hardware device can be directly controlled.
Implement embodiment two premise is that accurately being controlled delay, the T of being delayed represents 00, two T of delay
Represent 01, three T that are delayed represent 10, and four T that are delayed represent 11.Here and direct coding and saltus step are used, i.e., there are one two
The signal of position just carries out saltus step and passes through the length of delay representing different signal.
Embodiment two can greatly shorten sending time, and the time concrete condition that can actually shorten is different, generally not
Only 1/3.Nrzi encoding is the occasion that can not be accurately controlled for delay.
Embodiment three
The present embodiment flow chart is as shown in Fig. 7-1 to 7-2.54 are not segmented, if 1 number oneNum is more than 27,
It is then overturn, leading flag bit is 1;Otherwise without overturning, leading flag bit is 0.If signal is 0, t0 delays are sent;
If signal is 1, t1 delays are sent;If signal is 2, t2 delays are sent.As shown in Fig. 7-1~Fig. 7-2, wherein setting 54
Long types data are dataSend;1 number is oneNum in dataSend;Byte type data data0.
Embodiment three is algorithmically relatively easy, judge from total data 1 number so that decide whether to overturn.If
It is longer that wherein 1 arrangement concentrates in together then sending time, and average sending time is higher.
Embodiment three is direct coding, without secondary overturning.The time that can shorten is between 1/3~1/2.
Definition of the embodiment of the present invention is short the time required to being hair 0, longer the time required to hair 1, most long the time required to hair 2, in fact
There can also be other definition, such as hair 1 is most short, followed by 0, then be 2, then such case is then by exchanging, subtracting by 1 and 0
The number of few 0 number increase by 1 exchanges 1 and 2, and reducing by 2 number increases by 1 number.
The embodiment of the present invention is by the way that binary digital signal to be sent is recompiled for a string by m symbol, newly
The he number n of the code of volume is less than the he number m in former binary digital signal, so as to reduce of code to be sent
Number, and then reduce sending time.Can be combined with segmentation overturning either combine it is secondary overturning or combine direct coding or
Their arbitrary the two and above combination further reduce sending time, such as encode or be segmented only with ternary and turn over
Turn+ternary coding or ternary coding+secondary overturning etc..
As flexible embodiment, the direct coding step in above example can also be used between setting intersymbol interval
It is replaced every coding, such as uses NRZI or nrz encoding.Since intersymbol has interval, therefore whole sending time is compared with using straight
It is longer to connect coding, but since binary digital signal being recompiled according to ternary or other multi-systems, compared with pervious
Space coding mode, the embodiment of the present invention still are able to shorten sending time, improve work efficiency.In other variant embodiments
In, it is also not necessarily limited to for a serial data only with direct coding or only with space coding, it can be same with two class coding modes
When use, for example, in serial data a certain partial data use direct coding, another part data use space coding.
It is that different digital information is corresponded to according to the duration of different wave in above example, as flexible embodiment,
Can also correspond to different digital information according to the different size of level signal, for example, respectively with three kinds of different levels come
0,1 and 2 three number is represented, so as to distinguish the digital symbol of the difference in serial data.
In a further embodiment, can also be come with the combination of the duration of different wave and different size of level signal
Number different in multi-system is represented, for example, to quaternary number evidence, 0 and 1 respectively with the low level of the first duration and high level table
Show, 2 and 3 are represented respectively with the low level and high level of the second duration, due to being distinguished with reference to duration, therefore 0 and 2 level
Size can be identical, and 1 and 3 level can also be identical.
The embodiment of the present invention not only can solution the technical issues of must not being precisely controlled the time and being difficult to effectively send information,
It can be applied to be precisely controlled the occasion of time.
The embodiment of the present invention additionally provides a kind of digital signal reception method for shortening sending time, includes the following steps:
The different level signal of the state received is decoded into corresponding symbol, and is combined sequentially into multi-system data
String, the multi-system are more than ternary and ternary;
The multi-system serial data is encoded into binary equivalent data string.
The embodiment of the present invention additionally provides a kind of mobile terminal, using digital signal sending method described above.
The embodiment of the present invention additionally provides a kind of receiving terminal, using digital signal reception method described above.
The embodiment of the present invention additionally provides a kind of optical communication system, connects including mobile terminal described above and described above
Receiving end.
Application field extends:
The above method can be not only used for optical key field, and in the communications field, this assembly coding method can be used in and need
It reduces the various occasions of sending time, on especially binary-coded industrial control equipment, sending time can be shortened and improve work
Make efficiency.
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 (11)
1. a kind of digital signal sending method for shortening sending time, it is characterized in that including the following steps:
Recompile step:Binary data string to be sent is recompiled, forms multi-system equivalent data string;It is described mostly into
It is made as more than ternary and ternary;
Switch process:Symbol in the multi-system equivalent data string is encoded into the different level signal of state successively;
The overturning step recompiled after step is additionally included in, to shorten sending time;
It is described in the overturning step after recompiling step, for the multi-system equivalent data string, 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;And the secondary overturning is identified using mark is exchanged.
2. shorten the digital signal sending method of sending time as described in claim 1, it is characterized in that:
The overturning step being additionally included in before recompiling step, it is described in the overturning step before recompiling step, such as
The number for the symbol that the unit transmission time is grown is more than the number of unit transmission time short symbol in fruit binary element, then will be single
The symbol and unit transmission time short symbol of position transmission time length are exchanged, and are passed through leading flag bit and overturn to described into rower
Know.
3. shorten the digital signal sending method of sending time as described in claim 1, it is characterized in that:It is adopted in switch process
The different digital in multi-system is represented with the level signal of different durations.
4. shorten the digital signal sending method of sending time as claimed in claim 3, it is characterized in that:When described different with
3 kinds or more kinds.
5. shorten the digital signal sending method of sending time as described in claim 1, it is characterized in that:Level signal is according to electricity
Flat size is divided into multi gear, and different shelves represent the different digital in multi-system.
6. the digital signal sending method of the shortening sending time as described in claim 3 or 4, it is characterized in that:Level signal is pressed
It is divided into multi gear according to level, varying level size represents number different in multi-system from the combination of duration.
7. the digital signal sending method of the shortening sending time as described in claim 1 or 3 or 4, it is characterized in that:It is walked in conversion
The direct coding for not setting intersymbol interval is used in rapid or using the space coding or a part for setting intersymbol interval using directly volume
Code another part uses space coding.
8. shorten the digital signal sending method of sending time as claimed in claim 7, it is characterized in that:It is described not set between intersymbol
Every direct coding be to be lower from height by the level signal between symbol or become higher to distinguish adjacent symbol from low.
9. shorten the digital signal sending method of sending time as claimed in claim 2, it is characterized in that:It is described to recompile
In overturning step before step, digital signal to be sent is first divided into k sections, is then overturn by section, wherein k is greater than 2
Natural number.
10. a kind of mobile terminal, it is characterized in that using such as claim 1-9 any one of them digital signal sending methods.
11. a kind of optical communication system, it is characterized in that including mobile terminal as claimed in claim 10 and receiving terminal.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410453843.7A CN105389865B (en) | 2014-09-05 | 2014-09-05 | Shorten the digital signal method of sending and receiving and mobile terminal of sending time |
| 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 |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410453843.7A CN105389865B (en) | 2014-09-05 | 2014-09-05 | Shorten the digital signal method of sending and receiving and mobile terminal of sending time |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105389865A CN105389865A (en) | 2016-03-09 |
| CN105389865B true CN105389865B (en) | 2018-05-25 |
Family
ID=55422111
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410453843.7A Active CN105389865B (en) | 2014-09-05 | 2014-09-05 | Shorten the digital signal method of sending and receiving and mobile terminal of sending time |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105389865B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110601258A (en) * | 2019-09-09 | 2019-12-20 | 珠海格力电器股份有限公司 | Communication control method, device, storage medium and system for microgrid system |
| CN112702068B (en) * | 2020-12-25 | 2024-04-02 | 深圳市元征科技股份有限公司 | Method, device, equipment and storage medium for processing coded data |
| CN114039606A (en) * | 2021-11-02 | 2022-02-11 | 中国计量大学 | Binary digital signal to ternary analog signal conversion method and conversion circuit thereof |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102194139A (en) * | 2010-03-15 | 2011-09-21 | 欧姆龙株式会社 | Tag communication apparatus, tag communication apparatus control method, and tag communication apparatus control program |
| CN103118251A (en) * | 2012-05-08 | 2013-05-22 | 友达光电股份有限公司 | Method and system for multilevel data transmission |
| CN103812557A (en) * | 2013-07-31 | 2014-05-21 | 深圳光启创新技术有限公司 | Visible light signal encoding and decoding method, device and system |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1254919C (en) * | 2002-07-31 | 2006-05-03 | 中国科学院过程工程研究所 | Coding method of binary numerical signal and its signal transmission method and circuit |
| JP2008204423A (en) * | 2007-03-27 | 2008-09-04 | Kyocera Corp | Visible light communication system, visible light communication transmitter, and visible light communication receiver |
| US8781022B1 (en) * | 2013-03-01 | 2014-07-15 | Au Optronics Corporation | Methods for multi-level data transmission |
| CN103440697B (en) * | 2013-09-09 | 2015-09-23 | 桂林理工大学 | Light-operated guard method |
-
2014
- 2014-09-05 CN CN201410453843.7A patent/CN105389865B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102194139A (en) * | 2010-03-15 | 2011-09-21 | 欧姆龙株式会社 | Tag communication apparatus, tag communication apparatus control method, and tag communication apparatus control program |
| CN103118251A (en) * | 2012-05-08 | 2013-05-22 | 友达光电股份有限公司 | Method and system for multilevel data transmission |
| 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 |
|---|---|
| CN105389865A (en) | 2016-03-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103795465B (en) | Multi-stage amplitude modulation visible optical signal coding method and apparatus and decoding method and apparatus, and system | |
| CN104166910B (en) | Photon method of payment and system based on photon wallet | |
| JP6167237B2 (en) | Visible light signal encoding and decoding method, apparatus and system | |
| CN103812657B (en) | Authentication method | |
| CN102693567B (en) | Coding-decoding method based on communication of access control system | |
| CN105225297B (en) | Mobile terminal photonic data transmission method, transmitting device and photonic data reception device | |
| CN103869284A (en) | Visible light communication-based indoor positioning system and method | |
| CN105450299A (en) | Method, device and system for coding and decoding signal | |
| CN202976293U (en) | Light-operated lockset | |
| CN105389865B (en) | Shorten the digital signal method of sending and receiving and mobile terminal of sending time | |
| CN103812610B (en) | A kind of data communications method, terminal and information safety devices | |
| CN107425910A (en) | The method of near-field communication is carried out using the RGB ambient light sensors of mobile terminal | |
| CN103793979B (en) | Method for upgrading photon receiving end | |
| CN102694598B (en) | Coding method and transmission method of visible light signals | |
| CN106953690A (en) | Near Field Communication System for Smart Devices Based on Visible Light | |
| CN105472831A (en) | Light-emitting device control method through light driven chip and light driven chip thereof | |
| CN101442380B (en) | Method and apparatus for testing error rate based on high speed serial interface encoded mode | |
| CN103812556B (en) | Lighting parameter optimizing method for photon client | |
| CN103873832A (en) | Simplex communication and recognition method based on light-emitting device | |
| CN105471511B (en) | A kind of decoding method, apparatus and system improving optical signal transmission reliability | |
| CN202663410U (en) | Visible light communication receiving device based on time division multiple access | |
| CN205490552U (en) | Image transmission based on visible light communication | |
| CN103297144A (en) | Optical communication method based on USB and launching device | |
| CN103679857A (en) | Mobile phone photon client coding method | |
| CN204204131U (en) | Payable terminal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |