CN102694597B - Decoding method and controlling method of visible light signal - Google Patents

Decoding method and controlling method of visible light signal Download PDF

Info

Publication number
CN102694597B
CN102694597B CN201210133030.0A CN201210133030A CN102694597B CN 102694597 B CN102694597 B CN 102694597B CN 201210133030 A CN201210133030 A CN 201210133030A CN 102694597 B CN102694597 B CN 102694597B
Authority
CN
China
Prior art keywords
level
signal
duration
visible light
identification data
Prior art date
Application number
CN201210133030.0A
Other languages
Chinese (zh)
Other versions
CN102694597A (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 CN201210133030.0A priority Critical patent/CN102694597B/en
Publication of CN102694597A publication Critical patent/CN102694597A/en
Application granted granted Critical
Publication of CN102694597B publication Critical patent/CN102694597B/en

Links

Abstract

The invention discloses a decoding method and a controlling method of a visible light signal, wherein the decoding method of the visible light signal comprises that: timing starts when a high level is detected, and the number of high levels which features signals is recorded when the duration of the high level is longer than a first preset period; timing starts when a low level is detected, and a group of signals is determined to end when the duration of the low level is longer than a second preset period; the reception of the signals are determined to complete when the duration of low level is longer than a third preset period; and the received signals of each group are combined to obtain the identification data featured the visible light signal. Therefore, the visible light signal received from mobile phone can be decoded.

Description

The coding/decoding method of visible light signal and control method

Technical field

The present invention relates to technical field of visible light communication, be specifically related to a kind of coding/decoding method and control method of visible light signal.

Background technology

Wireless light communication technology is also known as visible ray communication, and the flicker of its high-frequency by LED light source communicates, and have light to represent 1, unglazedly represent 0, its transmission rate is up to upper gigabit per second.Wireless light communication carries out transfer of data by visible ray, and compared with microwave technology, having quite abundant frequency spectrum resource, is that general microwave communication and radio communication are incomparable; Visible light communication can be suitable for any communication protocol, be applicable to any environment simultaneously; In fail safe, need not worry that Content of Communication is stolen by people; The equipment of wireless light communication is convenient flexibly, and cost is very low, is applicable to extensive popularization and application.

In prior art, when mobile phone has a LED switch, signal dutyfactor is uncertain, but its low level time such as can to control at the performance.Therefore, can in conjunction with mobile phone and single-chip microcomputer performance, by the coded system arranged especially, mobile phone LED lamp sends the visible light signal of characterization data to receiving terminal, and receiving terminal adopts corresponding decoding process can obtain the data of mobile phone transmission.But also there is not corresponding decoding process in prior art, be applied in the communication of mobile phone and receiving terminal.

Summary of the invention

Embodiment of the present invention technical problem to be solved is, provides a kind of coding/decoding method and control method of visible light signal, can decode to the visible light signal received from mobile phone, improves Consumer's Experience.

In order to solve the problems of the technologies described above, embodiment of the present invention provides a kind of coding/decoding method of visible light signal, and described coding/decoding method comprises:

When high level being detected, start timing, be greater than the first preset time period when the duration of high level, the number of the high level of record characterization signal;

When low level being detected, start timing, be greater than the second preset time period when the low level duration, be judged as one group of signal ended; When low duration is greater than the 3rd preset time period, judge that Signal reception is complete;

The each group of signal received is combined, obtains the identification data that visible light signal characterizes.

Another embodiment of the present invention additionally provides a kind of control method of visible signal, and described method comprises:

When high level being detected, start timing, be greater than the first preset duration when the duration of high level, the number of the high level of record characterization signal;

When low level being detected, start timing, be greater than the second preset duration when the low level duration, be judged as one group of signal ended; When low duration is greater than the 3rd preset duration, judge that Signal reception is complete;

The each group of signal received is combined, obtains the identification data that visible light signal characterizes;

Described identification data and the condition preset are contrasted, if coupling, then controls connected functional unit action.

In technique scheme, with the number characterization signal of high level, distinguish with low level delay between each high level group, when high level therefore being detected, the whether useful signal received is judged by timing, if useful signal, then obtain the number of the high level of characterization signal according to the duration of high level; Accordingly, when low level being detected, judge that signal one group receives end, receive interruption or receives according to the low level duration.Therefore, utilize technical scheme of the present invention, can, to the decoding of the visible light signal that mobile phone sends, realize communicating based on visible ray between mobile phone with receiver section.

Accompanying drawing explanation

In order to be illustrated more clearly in embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in execution mode or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.

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

Fig. 2 is the relation schematic diagram between the signal that provides of the embodiment of the present invention and level;

Fig. 3 is the coding/decoding method flow chart of a kind of visible light signal that the embodiment of the present invention two provides.

Embodiment

Below in conjunction with the accompanying drawing in embodiment of the present invention, be clearly and completely described the technical scheme in embodiment of the present invention, obviously, described execution mode is only the present invention's part execution mode, instead of whole execution modes.Based on embodiments of the present invention, those of ordinary skill in the art, not making the every other execution mode obtained under creative work prerequisite, belong to the scope of protection of the invention.

First, in order to those skilled in the art better understand technical scheme of the present invention, brief description is carried out to technical scheme of the present invention below.

The decoding process of the visible light signal that the embodiment of the present invention provides, propose to the coded system representing signal, postpone to distinguish with low level between high level group and group for the number of high level, in described coded system, the duration of each high level is 2ms, the number often organizing high level is less than or equal to 4, often organizes level number and represents 2bit signal.When high level number is 1 in one group of signal, represent 00; When high level number is 2, representation signal 01, when high level number is 3 interval scale signals 10; When high level number is 4 interval scale signals 11.Postpone to distinguish with low level between group and group, low duration is about about 30ms.

Because high level and low level duration can drop in certain scope, therefore, can be decoded to the received signal by the high level on detection I/O pin and low duration during receiving terminal Received signal strength.

Embodiment one,

See Fig. 1, be the coding/decoding method flow chart of a kind of visible light signal that the embodiment of the present invention one provides, this coding/decoding method comprises:

S101: arrange the beginning of rising edge as a high level, trailing edge is as a low level beginning.

S102: when high level being detected, starts timing, is greater than the first preset time period when the duration of high level, the number of the high level of record characterization signal.

Such as, when I/O pin is when rising edge being detected, starting timing, when high level lasting time is greater than 1.5us, thinking effective signal, suppose that the duration of each high level is 2ms, then can according to the number of the duration acquisition high level of high level.

S103: when low level being detected, starts timing, is greater than the second preset time period, is judged as one group of signal ended when the low level duration; When low duration is greater than the 3rd preset time period, judge that Signal reception is complete.

Such as, start timing when I/O pin detects trailing edge, the such as low level duration is 30ms, when the low level duration is greater than 20ms, namely thinks the end mark of one group of signal.Think that Signal reception is complete when I/O pin low duration is greater than 75ms, or Signal reception interrupts, and restarts detection signal.

S104: integrate each group of signal received, obtains the identification data that visible light signal characterizes.

Relation schematic diagram as shown in Figure 2 between signal and level, in Fig. 2, the number of four groups of high level is respectively: 1,4,2,3, four groups of corresponding signals represent 00,11,01,10 respectively, low level time of delay between each signal group is 30ms, signal after combination is a byte, binary representation is: 00110110, and corresponding hexadecimal signal is 0x36.Namely the identification data binary representation obtained is 00110110.

With the number characterization signal of high level, distinguish with low level delay between each high level group, when high level therefore being detected, judge the whether useful signal received by timing, if useful signal, then obtain the number of the high level of characterization signal according to the duration of high level; Accordingly, when low level being detected, judge that signal one group receives end, receive interruption or receives according to the low level duration.Therefore utilize the present embodiment, realize the decoding to the visible light signal that mobile phone sends.

Embodiment two,

See Fig. 3, be the coding/decoding method flow chart of a kind of visible light signal that the embodiment of the present invention two provides, this coding/decoding method comprises:

S201: arrange the beginning of rising edge as a high level, trailing edge is as a low level beginning.

S202: when high level being detected, starts timing, is greater than the first preset time period when the duration of high level, the number of the high level of record characterization signal.

Such as, when I/O pin is when rising edge being detected, starting timing, when high level lasting time is greater than 1.5us, thinking effective signal, suppose that the duration of each high level is 2ms, then can according to the number of the duration acquisition high level of high level.

S203: when low level being detected, starts timing, is greater than the second preset time period, is judged as one group of signal ended when the low level duration; When low duration is greater than the 3rd preset time period, judge that Signal reception is complete.

Such as, start timing when I/O pin detects trailing edge, the such as low level duration is 30ms, when the low level duration is greater than 20ms, namely thinks the end mark of one group of signal.Think that Signal reception is complete when I/O pin low duration is greater than 75ms, or Signal reception interrupts, and restarts detection signal.

S204: integrate each group of signal received, obtains the identification data that visible light signal characterizes.

Such as, four groups of signals of reception represent 00,11,01,10 respectively, and the low level time of delay between each signal group is 30ms, and the signal after combination is a byte, and binary representation is: 00110110, and corresponding hexadecimal signal is 0x36.Namely the identification data binary representation obtained is 00110110.

S205: identification data and the condition preset are contrasted, if coupling, then controls connected functional unit action.

Wherein, identification data and the Condition Matching preset, comprise identification data identical with the condition preset; Or there is corresponding relation in identification data and the condition preset.

In the present embodiment, the visible light signal received is decoded, authentication is carried out to the identification data obtained after decoding, if by authentication, then control connected functional unit action.Thus control the equipment such as household electrical appliance by mobile phone.

Above disclosedly be only some embodiments of the present invention, certainly can not limit the interest field of the present invention with this, in concrete implementation process, different execution modes can also be combined, obtain other embodiment, repeat no more herein.Therefore according to the equivalent variations that the claims in the present invention are done, the scope that the present invention is contained still is belonged to.

Claims (6)

1. be applied to a coding/decoding method for the visible light signal of mobile phone LED, it is characterized in that, arrange the beginning of rising edge as high level, trailing edge is as low level beginning, and described coding/decoding method comprises:
When high level being detected, start timing, be greater than the first preset time period when the duration of high level, the number of the high level of record characterization signal;
When low level being detected, start timing, be greater than the second preset time period when the low level duration, be judged as one group of signal ended, the number often organizing high level is less than or equal to 4; When low duration is greater than the 3rd preset time period, judge that Signal reception is complete;
The each group of signal received is combined, obtains the identification data that visible light signal characterizes.
2. coding/decoding method according to claim 1, is characterized in that, the identification data that described visible light signal characterizes represents in a binary fashion.
3. coding/decoding method according to claim 2, is characterized in that, described level number of often organizing represents 2bit signal.
4. be applied to a control method for the visible light signal of mobile phone LED, it is characterized in that, arrange the beginning of rising edge as high level, trailing edge is as low level beginning, and described method comprises:
When high level being detected, start timing, be greater than the first preset duration when the duration of high level, the number of the high level of record characterization signal;
When low level being detected, start timing, be greater than the second preset duration when the low level duration, be judged as one group of signal ended, the number often organizing high level is less than or equal to 4; When low duration is greater than the 3rd preset duration, judge that Signal reception is complete;
The each group of signal received is combined, obtains the identification data that visible light signal characterizes;
Described identification data and the condition preset are contrasted, if coupling, then controls connected functional unit action.
5. control method according to claim 4, is characterized in that, the identification data that described visible light signal characterizes represents in a binary fashion; Often organize level number and represent 2bit signal.
6. control method according to claim 5, is characterized in that, described identification data contrasts with the condition preset, and comprising:
Described identification data is identical with the condition preset; Or there is corresponding relation with the condition preset in described identification data.
CN201210133030.0A 2012-04-28 2012-04-28 Decoding method and controlling method of visible light signal CN102694597B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210133030.0A CN102694597B (en) 2012-04-28 2012-04-28 Decoding method and controlling method of visible light signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210133030.0A CN102694597B (en) 2012-04-28 2012-04-28 Decoding method and controlling method of visible light signal

Publications (2)

Publication Number Publication Date
CN102694597A CN102694597A (en) 2012-09-26
CN102694597B true CN102694597B (en) 2015-05-27

Family

ID=46859892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210133030.0A CN102694597B (en) 2012-04-28 2012-04-28 Decoding method and controlling method of visible light signal

Country Status (1)

Country Link
CN (1) CN102694597B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101738792B1 (en) 2012-08-13 2017-05-22 쿠앙-치 이노베이티브 테크놀로지 리미티드 Optical signal processing apparatus and decoding method for optical signal reception control device
CN103051798B (en) * 2012-12-21 2016-12-28 Tcl通讯(宁波)有限公司 A kind of near radio data transmission method based on optical sensor and mobile terminal
US9210769B2 (en) * 2013-03-15 2015-12-08 Microchip Technology Incorporated Constant brightness LED drive communications port
CN103795465B (en) * 2013-07-31 2015-04-15 深圳光启创新技术有限公司 Multi-stage amplitude modulation visible optical signal coding method and apparatus and decoding method and apparatus, and system
CN103812557B (en) * 2013-07-31 2015-05-27 深圳光启创新技术有限公司 Visible light signal encoding and decoding method, device and system
CN104426607B (en) * 2013-09-09 2018-05-01 阿里巴巴集团控股有限公司 A kind of method and apparatus of information exchange
CN105471513B (en) * 2014-09-05 2018-10-02 深圳光启智能光子技术有限公司 The adaptive reception method, apparatus and system of wireless signal
CN105471512B (en) * 2014-09-05 2018-08-14 深圳光启智能光子技术有限公司 A kind of photon acceptor end and its coding/decoding method
WO2016034038A1 (en) * 2014-09-05 2016-03-10 深圳光启智能光子技术有限公司 Encoding and decoding method, mobile terminal, and system for enhancing speed of visible optical signal transmission
CN107171737B (en) * 2016-03-08 2020-03-06 深圳光启智能光子技术有限公司 Optical chip for optical communication and authentication device
CN108734945B (en) * 2017-04-20 2020-10-30 台达电子工业股份有限公司 Sensor instruction transmission and configuration method realized through light source

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101620664A (en) * 2008-07-03 2010-01-06 中兴通讯股份有限公司 Method for transmitting data information from reader to label
CN101404559B (en) * 2008-10-27 2011-06-22 江南大学 Short-distance wireless communication anti-interference simple encoding and decoding method for single-chip
CN101719310B (en) * 2009-12-21 2011-06-08 山东大学 Long-distance infrared remote-controlled device and method used for embedded equipment
CN102420791B (en) * 2011-10-27 2013-10-09 清华大学深圳研究生院 Bit zone difference pulse position modulation method and device

Also Published As

Publication number Publication date
CN102694597A (en) 2012-09-26

Similar Documents

Publication Publication Date Title
CN103458399B (en) Intelligent WIFI module and method for configuring device supporting WIFI connection into WIFI network
US10285135B2 (en) Data transmission arrangement, data receiver, and method for the operation thereof
JP5613866B1 (en) Wireless inductive power transmission
CN102025854B (en) Method for implementing learning type mobile phone remote controller and learning type mobile phone remote controller
US9685791B2 (en) Apparatus and method for controlling wireless power transfer to mobile devices
JP5721202B2 (en) Data transmission method, data reception method and apparatus
WO2016048067A3 (en) Synchronization procedure and resource control method and apparatus for communication in d2d system
KR20160140847A (en) Methods to send extra information in-band on inter-integrated circuit (i2c) bus
US9698620B2 (en) System and a method for charging multiple power receivers in a wireless charging environment
CN103200314B (en) A kind of intelligent dormancy method of mobile terminal and device
EP3068180A1 (en) Method, system and device for sending and receiving data
US20140010540A1 (en) Visible light communication method and apparatus
US20100144275A1 (en) Wireless communication unit, mobile terminal, and wireless authentication control method
JP2016528846A (en) System information broadcast in machine-to-machine wireless access system
RU2015116905A (en) METHOD AND DEVICE FOR IMPROVING COATING OF MACHINE TYPE COMMUNICATION DEVICES (MTS)
WO2013167076A2 (en) Charging method, mobile terminal and adapter
EP2982061B1 (en) A receiver, transceiver, transceiver module for a body coupled communication device, a body coupled communication system and a method of waking-up a body coupled receiver of a body coupled communication device
CN103207717B (en) Touch screen terminal, based on the communication system of human body electric field conduction and communication means
CN101610607A (en) Uplink detection reference signal sending, receiving method and base station and portable terminal
US20110153885A1 (en) Plug-in Peripheral Device for Enabling Smart Portable Device to be Universal Remote Control
CN103856241B (en) A kind of model plane frequency hopping means of communication
CN103916982A (en) Method and device for intelligent household appliances to have access to wireless router
RU2011140121A (en) METHOD FOR TRANSMISSION OF SERVICE BETWEEN BASE STATIONS, RADIO COMMUNICATION SYSTEM, DRX CONTROL METHOD, BASE STATION AND COMMUNICATION TERMINAL
WO2011071317A3 (en) Method and apparatus for performing contention-based access in a mobile communication system
CN102769684B (en) Cell phone external device based on visible light communication

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
C14 Grant of patent or utility model
TR01 Transfer of patent right

Effective date of registration: 20150716

Address after: 518000 Guangdong city of Shenzhen province Futian District Shennan Road and CaiTian Road intersection East Xintiandi Plaza C block 2007-27

Patentee after: Shenzhen Guang Qi intelligent photonic Technology Co., Ltd.

Address before: 518034 A international business center, No. 1061, Xiang Mei Road, Guangdong, Shenzhen, Futian District, China 18B

Patentee before: Shenzhen Kuang-Chi Innovation Technology Co., Ltd.

ASS Succession or assignment of patent right

Owner name: SHENZHEN GUANGQI INTELLIGENT PHOTONICS TECHNOLOGY

Free format text: FORMER OWNER: SHENZHEN KUANG-CHI INNOVATION TECHNOLOGY CO., LTD.

Effective date: 20150716

C41 Transfer of patent application or patent right or utility model