CN102693567B - Coding-decoding method based on communication of access control system - Google Patents

Coding-decoding method based on communication of access control system Download PDF

Info

Publication number
CN102693567B
CN102693567B CN201210133029.8A CN201210133029A CN102693567B CN 102693567 B CN102693567 B CN 102693567B CN 201210133029 A CN201210133029 A CN 201210133029A CN 102693567 B CN102693567 B CN 102693567B
Authority
CN
China
Prior art keywords
level
signal
identification data
low level
preset
Prior art date
Application number
CN201210133029.8A
Other languages
Chinese (zh)
Other versions
CN102693567A (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 CN201210133029.8A priority Critical patent/CN102693567B/en
Publication of CN102693567A publication Critical patent/CN102693567A/en
Application granted granted Critical
Publication of CN102693567B publication Critical patent/CN102693567B/en

Links

Abstract

The invention discloses a coding-decoding method based on communication of an access control system. The method comprises the steps of encoding the obtained identification data by a mobile phone according to the following modes: differentiating high level groups by delay of low level, wherein each high level group represents signal by quantity of high level; combining signals of each group to obtain the coded identification data; detecting the signal of visual light by a control terminal; beginning to time when detecting the high level; when the continuing time of the high level is longer than a first preset span, recording the quantity of the high level representing signal; beginning to time when detecting the low level; when the continuing time of the low level is longer than a second preset span, judging ending of a group of signals; when the continuing time of the low level is longer than a third preset span, judging finishing receiving signals; and combining the received different groups of signals so as to obtain the identification data representing visible light. Therefore, the communication based on the visible light between the mobile phone and the receiving and control terminal of the access control system is realized.

Description

Based on the decoding method of gate control system communication

Technical field

The present invention relates to gate control system communication technical field, be specifically related to a kind of decoding method based on gate control system communication.

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 transfer rate is up to upper gigabit per second.Wireless light communication carries out data transmission 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 security, 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, in conjunction with mobile phone and single-chip microcomputer performance, by the coded system arranged especially, the visible light signal that mobile phone LED lamp sends characterization data can be realized, but also do not have corresponding code encoding/decoding mode in prior art, be applied in gate control system.

Summary of the invention

Embodiment of the present invention technical matters to be solved is, a kind of decoding method based on gate control system communication, the communication that can realize between mobile phone and gate control system by visible light signal.

In order to solve the problems of the technologies described above, embodiment of the present invention provides a kind of decoding method based on gate control system communication, and described method comprises:

Mobile phone is encoded in the following manner to the identification data obtained: distinguish with low level delay between high level group, each high level group represents signal with the number of high level; The signal of each group is combined, obtains the identification data after coding;

Receive control end and detect visible light signal, 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.

In technique scheme, the performance that when utilizing mobile phone LED lamp switch, low level time can control, proposes a kind of coded system, represents signal with the number of high level, to distinguish low level time delay between high level group.When the identification data such as information are unblanked in mobile phone acquisition, adopt coded system provided by the invention, identification data is encoded, then LED is adopted to send the identification data after coding, receive control end visible light signal, when high level 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 technical scheme of the present invention, can realize mobile phone and gate control system receive control hold between communicate based on visible ray.

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 embodiment 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 decoding method process flow diagram based on gate control system communication 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 decoding method process flow diagram based on gate control system communication that the embodiment of the present invention two provides.

Embodiment

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

Embodiment one,

See Fig. 1, be the decoding method process flow diagram based on gate control system communication that the embodiment of the present invention one provides, this coding method comprises:

S101: mobile phone is encoded in the following manner to the identification data obtained: distinguish with low level delay between high level group, each high level group represents signal with the number of high level.

Wherein, mobile phone is as the transmitting terminal of gate control system.

Such as, each high level lasting time is 2ms, often organizes maximum four high level, and often organize level number and represent 2bit signal, four groups of signals represent a byte.That is: when high level number is 1 in one group of signal, 00 is represented; 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, representation signal 11.The signal corresponding relation of high level number and representative is as shown in Table 1:

Table one

High level number 1 2 3 4 Signal (2bit) 00 01 10 11

S102: mobile phone combines the signal of each group, obtains the identification data after coding.Relation schematic diagram as shown in Figure 2 between signal and level, four groups of signals in Fig. 2 represent 00,11,01,10 respectively, low level time delay between each signal group is 30ms, and the signal after combination is that a byte binary is expressed as: 00110110, and corresponding sexadecimal signal is 0x36.

S103: receive control termination and receive visible light signal.

S104: when receipts control end detects high level, 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.

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.

S105: when receipts control end detects low level, 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.

Such as, start timing when I/O pin detects negative 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.

S106: receive control end and each group of signal received is integrated, obtain the identification data that visible light signal characterizes.

The code encoding/decoding mode that this embodiment provides, mobile phone, as transmitting terminal, represents signal with the number of high level, to distinguish low level time delay between high level group.Receive the whether useful signal that control end judges by timing to receive, 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 can realize mobile phone and gate control system receive control hold between based on the communication of visible ray, thus improve Consumer's Experience.

Embodiment two,

See Fig. 3, be a kind of decoding method process flow diagram based on gate control system communication that the embodiment of the present invention two provides, the method comprises:

S201: mobile phone arranges the duration of each high level and each low level duration.Such as, the duration arranging each high level is 2ms, and each low level duration is 30ms.

Wherein, mobile phone is as the transmitting terminal of gate control system.

S202: mobile phone is encoded in the following manner to the identification data obtained: distinguish with low level delay between high level group, each high level group represents signal with the number of high level.

Such as, each high level lasting time is 2ms, often organizes maximum four high level, and often organize level number and represent 2bit signal, four groups of signals represent a byte.That is: when high level number is 1 in one group of signal, 00 is represented; 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, representation signal 11.The signal corresponding relation of high level number and representative is as shown in Table 1:

Table one

High level number 1 2 3 4 Signal (2bit) 00 01 10 11

S203: mobile phone combines the signal of each group, obtains the identification data after coding.Relation schematic diagram as shown in Figure 2 between signal and level, four groups of signals in Fig. 2 represent 00,11,01,10 respectively, low level time delay between each signal group is 30ms, and the signal after combination is that a byte binary is expressed as: 00110110, and corresponding sexadecimal signal is 0x36.

S204: the identification data after coding is sent with visible ray form by LED by mobile phone.Concrete, the identification data after coding is sent by the form of flash of light by mobile phone.

S205: receive control end and arrange the beginning of rising edge as a high level, negative edge is as a low level beginning.

S206: receive control termination and receive visible light signal.

S207: when receipts control end detects high level, 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.

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.

S208: when receipts control end detects low level, 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.

Such as, start timing when I/O pin detects negative edge, if the low level duration is 30ms, when the low level duration is greater than 20ms, namely think 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.

S209: receive control end and each group of signal received is integrated, obtain the identification data that visible light signal characterizes.

S210: receive control end and identification data and the condition preset are contrasted, if identification data and the Condition Matching preset, then controls connected electric lock and unblanks.

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

In the present embodiment, adopt the coded system that embodiment one provides, mobile phone, as the transmitting terminal of gate control system, represents signal with the number of high level, to distinguish low level time delay between high level group, the signal after coding is sent by mobile phone LED lamp.Receive control end to decode to the visible light signal received from mobile phone, the identification data then obtained according to decoding carries out prison power, if by prison power, then control connected electric lock and unblank, thus realize unlocked by mobile telephone, improves Consumer's Experience.

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 embodiments 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 (9)

1. based on the decoding method that the mobile phone LED of gate control system communicates, it is characterized in that, described method comprises:
Mobile phone is encoded in the following manner to the identification data obtained: distinguish with low level delay between high level group, each high level group represents signal bit value with the number of high level, arrange the beginning of rising edge as each high level, negative edge is as low level beginning; The signal bit value of each group is combined, obtains the identification data after coding;
Receive control end and detect visible light signal, 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; Arrange the beginning of rising edge as each high level, each group of signal received, as low level beginning, combines by negative edge, obtains the identification data that visible light signal characterizes.
2. method according to claim 1, is characterized in that, also comprises before described method: mobile phone arranges the duration of described low level time delay and described high level.
3. method according to claim 1, is characterized in that, after the identification data after described acquisition coding, also comprises:
Identification data after coding is sent with visible ray form by LED by mobile phone.
4. method according to claim 1, is characterized in that, after the identification data that described acquisition visible light signal characterizes, also comprises:
Described identification data and the condition preset are contrasted, if described identification data and the Condition Matching preset, then controls connected electric lock and unblank.
5. method according to claim 4, is characterized in that, described identification data comprises with the Condition Matching preset:
Identification data is identical with the condition preset.
6. method according to claim 4, is characterized in that, described identification data comprises with the Condition Matching preset:
Corresponding relation is there is in described identification data with the condition preset.
7. coding method according to claim 1, is characterized in that, described signal represents in a binary fashion.
8. method according to claim 7, is characterized in that, the described number often organizing high level is less than or equal to 4.
9. method according to claim 7, is characterized in that, described level number of often organizing represents 2bit signal.
CN201210133029.8A 2012-04-28 2012-04-28 Coding-decoding method based on communication of access control system CN102693567B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210133029.8A CN102693567B (en) 2012-04-28 2012-04-28 Coding-decoding method based on communication of access control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210133029.8A CN102693567B (en) 2012-04-28 2012-04-28 Coding-decoding method based on communication of access control system

Publications (2)

Publication Number Publication Date
CN102693567A CN102693567A (en) 2012-09-26
CN102693567B true CN102693567B (en) 2015-02-04

Family

ID=46858965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210133029.8A CN102693567B (en) 2012-04-28 2012-04-28 Coding-decoding method based on communication of access control system

Country Status (1)

Country Link
CN (1) CN102693567B (en)

Families Citing this family (13)

* 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
CN103714595B (en) * 2012-09-29 2015-04-15 深圳光启创新技术有限公司 Photon receiving end and decoding method
CN103812574B (en) * 2013-07-31 2015-02-04 深圳光启创新技术有限公司 Method, device and system for improving recognition rate of photon identity authentication system
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
CN103795464B (en) * 2013-07-31 2015-04-15 深圳光启创新技术有限公司 Error retransmission mechanism-contained visible optical signal sending method and apparatus and receiving method and apparatus, and system
CN103440697B (en) * 2013-09-09 2015-09-23 桂林理工大学 Light-operated guard method
CN103559748B (en) * 2013-10-31 2016-01-13 华北水利水电大学 A kind of visible ray identification lockset and visible ray identification lockset control method
CN103793987A (en) * 2014-02-26 2014-05-14 东南大学 Remote control lock based on visible light communication technology
WO2016034038A1 (en) * 2014-09-05 2016-03-10 深圳光启智能光子技术有限公司 Encoding and decoding method, mobile terminal, and system for enhancing speed of visible optical signal transmission
CN105471499B (en) * 2014-09-05 2018-05-25 深圳光启智能光子技术有限公司 The decoding method and mobile terminal and system of raising visible light signal transmission rate
CN105471511B (en) * 2014-09-05 2018-08-31 深圳光启智能光子技术有限公司 A kind of decoding method, apparatus and system improving optical signal transmission reliability
CN105654597A (en) * 2016-03-21 2016-06-08 文成县刀锋科技有限公司 Automatic charging LIFI (Light Fidelity) communication anti-theft energy-saving system
CN106327629B (en) * 2016-08-12 2018-07-27 广西大学 A method of cipher control open locking is transmitted by voice-grade channel

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102066675A (en) * 2008-06-16 2011-05-18 奥斯兰姆有限公司 Key with a key light function

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102066675A (en) * 2008-06-16 2011-05-18 奥斯兰姆有限公司 Key with a key light function

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
大气光通信调制编码技术研究;赵明;《cnki中国优秀硕士论文全文数据库》;20111201;第11-12页 *

Also Published As

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

Similar Documents

Publication Publication Date Title
CN204119532U (en) A kind of LTE mobile terminal supporting public wireless network and dedicated network
CN104737487B (en) Decode the method and user equipment of control channel in multiple subframes
US9461737B2 (en) Method for detecting fiber jumper connection and apparatus for detecting fiber jumper connection
CN103428818B (en) Terminal device discovery method, device and system
US9119024B2 (en) Wireless communication terminal, wireless communication device, and wireless communication method
EP2509235A2 (en) Method and apparatus for transmitting a frame in a wireless ran system
CN105916199B (en) System, method and device for short beacon in low-rate WI-FI communication
WO2015067196A1 (en) Method, system and device for sending and receiving data
KR20110096810A (en) Receiving system for use in near field communication and mode detection method therefore
CN201716777U (en) Location based intelligent attendance checking device
CN106383265B (en) A kind of area and the device and method for accessing phase automatic identification
CN102769684B (en) Cell phone external device based on visible light communication
CN104869653A (en) Scheduling method of unlicensed spectrum in base station and user equipment (UE) and device
CN104378838B (en) A kind of method and device for establishing wireless connection
CN104753612B (en) A kind of radio frequency test method and system
CN101895895B (en) Method and device for sensing graded frequency spectra in cognitive radio network
CN104219757A (en) Synchronizing signal transmission time determination method, terminal, base station and communication system
CN104486012B (en) A kind of environmental frequencies detection and automatic frequency-hopping system and method
CN101647243B (en) Method and apparatus of connectivity recovery in wireless network
WO2004021583A3 (en) Tasking and reporting method and implementation for wireless appliance location systems
CN101951671A (en) Wireless network connection method, device and terminal
MX2010005770A (en) Interface management in a wireless communication system using subframe time reuse.
CN101048669A (en) Method and system for detecting the phase wiring of an unknown phase voltage relative to a reference phase voltage
CN102694900A (en) Phone call intercepting method and device
CN103869284A (en) Visible light communication-based indoor positioning system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
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: 20150715

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20150715

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.