CN106961304A - The multi-channel control methods, devices and systems of visible light communication - Google Patents

The multi-channel control methods, devices and systems of visible light communication Download PDF

Info

Publication number
CN106961304A
CN106961304A CN201710115766.8A CN201710115766A CN106961304A CN 106961304 A CN106961304 A CN 106961304A CN 201710115766 A CN201710115766 A CN 201710115766A CN 106961304 A CN106961304 A CN 106961304A
Authority
CN
China
Prior art keywords
packet
byte
control
visible light
transcoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710115766.8A
Other languages
Chinese (zh)
Inventor
邓楠
C·特里
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Frontier Communication Technology Development Co Ltd
Original Assignee
Shenzhen Frontier Communication Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Frontier Communication Technology Development Co Ltd filed Critical Shenzhen Frontier Communication Technology Development Co Ltd
Priority to CN201710115766.8A priority Critical patent/CN106961304A/en
Publication of CN106961304A publication Critical patent/CN106961304A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • H04B10/114Indoor or close-range type systems
    • H04B10/116Visible light communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1829Arrangements specially adapted for the receiver end
    • H04L1/1864ARQ related signaling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end
    • H04L1/1896ARQ related signaling

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Optical Communication System (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of multi-channel control method of visible light communication, applied to control end, this method includes:Redundancy check computing is circulated to sent raw data packets, the check code that computing is generated adds raw data packets afterbody, obtains the first packet;The control byte of preset length is added in the first data packet header, the second packet is obtained, the control byte is used for the control way for representing visible optical control signal;Transcoding is carried out to the second packet according to default transcoding rule, the packet after transcoding is regard as the 3rd packet;The identification byte for identifying visible light source is added in the 3rd data packet header, final data bag is obtained, final data bag is loaded onto in the driving of the electric current of visible light source, to drive visible light source to send optical signal.The invention also discloses a kind of Multi-channel controller of visible light communication and system.The present invention can reduce the complexity of visible light communication system, lift the scalability of visible light communication system.

Description

The multi-channel control methods, devices and systems of visible light communication
Technical field
The present invention relates to technical field of visible light communication, more particularly to the multi-channel control method of visible light communication, device and System.
Background technology
Visible light communication technology refers to by the use of the light of visible light wave range as information carrier, without wire message way such as optical fiber Transmission medium, directly transmits the communication mode of optical signal in atmosphere.Visible light communication is relative to radio frequency and the communication party such as infrared Formula have the advantages that low cost, coverage determine, will not be by electromagnetic interference.With LED (Light Emitting Diode, light emitting diode) illumination large-scale popularization and visible light communication technology development, traditional industrial communication field exists Have begun to use visible light communication technology under many occasions.
In current visible light communication technology, the same transmission signal of control device can only be realized to be entered to industrial equipment all the way Row control, scalability is not strong, due to the complexity of industrial control architecture, is generally required in actual production simultaneously different to multichannel Industrial equipment be controlled, if disposing multiple control devices, can undoubtedly increase the complexity of communication system, increase cost, Increasingly complicated Industry Control demand can not be met.
The content of the invention
It is a primary object of the present invention to propose a kind of multi-channel control methods, devices and systems of visible light communication, it is intended to The complexity of visible light communication system is reduced, the scalability of visible light communication system is lifted.
To achieve the above object, the present invention provides a kind of multi-channel control method of visible light communication, applied to control end, institute The method of stating comprises the following steps:
Redundancy check computing is circulated to sent raw data packets, the check code that computing is generated adds the original Beginning packet afterbody, obtains the first packet;
The control byte of preset length is added in first data packet header, the second packet, the control word is obtained Save in the control way for representing visible optical control signal;
Transcoding is carried out to second packet according to default transcoding rule, the packet after transcoding is regard as the 3rd data Bag;
The identification byte for identifying visible light source is added in the 3rd data packet header, final data bag is obtained, The final data bag is loaded onto in the driving of the electric current of the visible light source, to drive the visible light source to send light letter Number.
Alternatively, the basis presets transcoding rule and carries out transcoding to second packet, by the packet after transcoding The step of as three packets, includes:
It is 0xDB and 0xDC by the 0xC0 byte conversions in second packet according to SLIP SLIP Two bytes, while being two bytes of 0xDB and 0xDD by the 0xDB byte conversions in second packet, obtain the 3rd number According to bag;
The identification byte added in the 3rd data packet header for identifying visible light source, obtains final data The step of bag, includes:
0xC0 bytes are added in the 3rd data packet header, final data bag is obtained.
In addition, to achieve the above object, the present invention also provides a kind of Multi-channel controller of visible light communication, applied to control End processed, described device includes:
First processing module, for being circulated redundancy check computing to sent raw data packets, computing is generated Check code add the raw data packets afterbody, obtain the first packet;
Second processing module, the control byte for adding preset length in first data packet header, obtains second Packet, the control byte is used for the control way for representing visible optical control signal;
Transcoding module, for carrying out transcoding to second packet according to default transcoding rule, by the data after transcoding Bag is used as the 3rd packet;
Sending module, for adding the identification byte for identifying visible light source in the 3rd data packet header, is obtained To final data bag, the final data bag is loaded onto in the driving of the electric current of the visible light source, it is described visible to drive Radiant sends optical signal.
Alternatively, the transcoding module is additionally operable to according to SLIP SLIP, by second packet 0xC0 byte conversions be two bytes of 0xDB and 0xDC, while by the 0xDB byte conversions in second packet be 0xDB With two bytes of 0xDD, the 3rd packet is obtained;
The sending module is additionally operable to add 0xC0 bytes in the 3rd data packet header, obtains final data bag.
In addition, to achieve the above object, the present invention also provides a kind of multi-way control system of visible light communication, the system Including control end and controlled terminal, wherein,
The control end includes device as described above;
The controlled terminal includes:
Receiver module, for receiving optical signal that the control end sends and the optical signal being converted into current signal, Using the identification byte as decollator, the data flow in the current signal is divided into some packets;
Recovery module, the packet for being obtained to segmentation carries out transcoding reduction, obtains the 4th packet;
Whether comparison module, the control byte for comparing the 4th data packet header is identical with default control byte, If so, then removing the control byte of the 4th data packet header, the 5th packet is obtained;
Performing module, the CRC computing is carried out for the 5th packet by afterbody without check code, than It is whether identical with the check code of the 5th packet afterbody compared with the check code that computing is generated, if so, then by the 5th data Bag is reduced to the raw data packets, controls the controlled terminal to perform corresponding function according to the raw data packets.
Alternatively, the recovery module is additionally operable to:
According to SLIP SLIP, 0xDB bytes and 0xDB bytes in the packet that retrieval segmentation is obtained Latter byte;
When the latter byte for retrieving 0xDB bytes is 0xDC, two bytes of the 0xDB retrieved and 0xDC are reduced to 0xC0 bytes, when the latter byte for retrieving 0xDB bytes is 0xDD, two bytes of the 0xDB retrieved and 0xDD are reduced For 0xC0 bytes, the 4th packet is obtained.
Alternatively, the recovery module is additionally operable in the latter byte for retrieving 0xDB bytes is not 0xDC and 0xDD Any one when, abandon the obtained packet of segmentation.
Alternatively, the comparison module is additionally operable to control byte and default control byte when the 4th data packet header When different, the 4th packet is abandoned.
Alternatively, the performing module is additionally operable to the verification of check code and the 5th packet afterbody generated when computing When code is different, the 5th packet is abandoned.
Control end of the present invention is circulated redundancy check computing to sent raw data packets, the verification that computing is generated Code adds the raw data packets afterbody, obtains the first packet;The control of preset length is added in first data packet header Byte processed, obtains the second packet, and the control byte is used for the control way for representing visible optical control signal;Turned according to default Code rule carries out transcoding to second packet, regard the packet after transcoding as the 3rd packet;In the 3rd data Packet header adds the identification byte for identifying visible light source, obtains final data bag, and the final data bag is loaded onto In the electric current driving of the visible light source, to drive the visible light source to send optical signal.Control end of the present invention is to pending The raw data packets sent are circulated redundancy check, transcoding and add identification byte successively, ensure that controlled terminal is correctly recognized Transmission signal, while adding the control way of control byte correspondence visible light communication, can realize the same transmitting letter of visible ray Number multichannel distinct device is controlled, the complexity of visible light communication system is reduced, in addition, by changing control byte Length improves the scalability of visible light communication system with regard to that can change the at most controllable way of communication system.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the multi-channel control method first embodiment of visible light communication of the present invention;
Fig. 2 is the schematic flow sheet of the multi-channel control method second embodiment of visible light communication of the present invention;
Fig. 3 for visible light communication of the present invention multi-channel control method second embodiment in control end processing data packets flow Schematic diagram;
Fig. 4 is the high-level schematic functional block diagram of the Multi-channel controller first embodiment of visible light communication of the present invention;
Fig. 5 is the high-level schematic functional block diagram of the multi-way control system first embodiment of visible light communication of the present invention;
Fig. 6 for visible light communication of the present invention multi-way control system second embodiment in controlled terminal processing data packets flow Schematic diagram.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of multi-channel control method of visible light communication.
Reference picture 1, Fig. 1 is the schematic flow sheet of the multi-channel control method first embodiment of visible light communication of the present invention.Institute The method of stating comprises the following steps:
Step S10, redundancy check computing is circulated to sent raw data packets, and the check code that computing is generated is added Enter the raw data packets afterbody, obtain the first packet;
The multi-channel control method of the present embodiment visible light communication is applied to the control end in visible light communication system, and this is visible Optical communication system includes control end and controlled terminal, and control end sends packet by visible ray so that controlled terminal performs accordingly finger Order, controlled terminal can include some different industrial equipments, such as motor, temperature control device.
In the present embodiment, control end can keep communicating by EPA and the host computer of a control centre, control End processed receives the network packet that host computer is sent, and then removes corresponding procotol packet header, converts thereof into plain streams, And then obtain including some raw data packets of control instruction.First, control end carries out CRC to sent raw data packets (Cyclic Redundancy Check, CRC) computing, is specifically as follows CRC32 computings (32 cyclic redundancy schools Test computing) or CRC16 (16 CRC computings) etc., CRC32 computings are such as used, the check code of nybble will be generated, Now the check code of generation is added to raw data packets afterbody and is used as the first packet.
Step S20, adds the control byte of preset length in first data packet header, obtains the second packet, institute State the control way that control byte is used to represent visible optical control signal;
In the step, to above-mentioned first packet head add preset length control byte as the second packet, Wherein, the maximum control way of the visible optical control signal of length correspondence of control byte, can carry out spirit according to needs of production Living to set, if the control byte of two bytes, the span of two byte is 0-65536, using hexadecimal representation as 0x0000-0xFFFF, then, it is seen that the control way of optical control signal is at most 65536 tunnels.Control byte is used to represent control letter Number control way, such as, if control byte be 0x0001, then it represents that the visible optical control signal control way be first Road.
Step S30, according to default transcoding rule to second packet carry out transcoding, using the packet after transcoding as 3rd packet;
In the step, transcoding is carried out to above-mentioned second packet according to default transcoding rule, such as, related communication can be passed through Agreement carries out transcoding to the second packet, so that the data transfer of packet meets relevant communication protocol.
Step S40, the identification byte for identifying visible light source is added in the 3rd data packet header, obtains final Packet, the final data bag is loaded onto in the driving of the electric current of the visible light source, to drive the visible light source Send optical signal.
Transcoding is obtained after the 3rd packet, and the identifier word for identifying visible light source is added in the 3rd data packet header Section, so as to obtain final data bag.On the one hand identification byte can be used for controlled terminal to judge the legitimacy of packet, on the other hand may be used The data flow that certain time receives is divided into some packets for controlled terminal.Afterwards, obtained final data bag is added It is loaded onto in the driving of the electric current of visible light source, so as to drive visible light source to send optical signal.Controlled terminal is received after optical signal, Current signal is converted optical signals to, then packet is verified and decoded, so as to obtain raw data packets, passes through original number It is executable corresponding function according to the control instruction of bag.
In the present embodiment, control end is circulated redundancy check, transcoding to sent raw data packets and added successively Inlet identity byte, ensure that controlled terminal correctly recognizes transmission signal, while adding the control of control byte correspondence visible light communication Way processed, can realize that the same transmission signal of visible ray is controlled to multichannel distinct device, reduce visible light communication system The complexity of system, in addition, the length by changing control byte is improved with regard to that can change the at most controllable way of communication system The scalability of visible light communication system.
Further, reference picture 2, Fig. 2 is the flow of the multi-channel control method second embodiment of visible light communication of the present invention Schematic diagram.Based on the embodiment shown in above-mentioned Fig. 1, step S30 can include:
Step S31, according to SLIP SLIP, be by the 0xC0 byte conversions in second packet Two bytes of 0xDB and 0xDC, while be two bytes of 0xDB and 0xDD by the 0xDB byte conversions in second packet, Obtain the 3rd packet;
Now step S40 could alternatively be:
Step S41, adds 0xC0 bytes in the 3rd data packet header, final data bag is obtained, by the final number It is loaded onto according to bag in the driving of the electric current of the visible light source, to drive the visible light source to send optical signal.
Reference picture 3, Fig. 3 for visible light communication of the present invention multi-channel control method second embodiment in control end packet Handling process schematic diagram.Its process step is:Raw data packets afterbody is added into CRC check code first, then added on head Control byte, then convert to form new data packets by 0xC0 and 0xDB, then add identification byte 0xC0 on the head of new data packets Obtain finally launching packet.
The present embodiment is according to SLIP SLIP (Serial Line Internet Protocol) to second Packet carries out transcoding, and specific transcoding mode is:It is 0xDB and 0xDC two by all 0xC0 byte conversions in the second packet Individual byte, while being two bytes of 0xDB and 0xDD by all 0xDB byte conversions, regard the packet after transcoding as the 3rd number According to bag.Then, then in the 3rd data packet header increase 0xC0 bytes with the legitimacy of identification data packet, so as to obtain final data Wrap and be transmitted by visible ray.
In the present embodiment, transcoding is carried out to packet according to SLIP agreements, ensure that the legitimacy of transcoding;Due to turning No longer contain 0xC0 bytes in packet after code, thus now in data packet header increase 0xC0 bytes, this can be made unique 0xC0 bytes turn into the packet identification byte, while can also as control end visible light source identification byte, and Other visible light sources make a distinction.
The present invention also provides a kind of Multi-channel controller of visible light communication.
Reference picture 4, Fig. 4 illustrates for the functional module of the Multi-channel controller first embodiment of visible light communication of the present invention Figure.Described device includes:
First processing module 10, for being circulated redundancy check computing to sent raw data packets, computing is given birth to Into check code add the raw data packets afterbody, obtain the first packet;
The Multi-channel controller of the present embodiment visible light communication is applied to the control end in visible light communication system, and this is visible Optical communication system includes control end and controlled terminal, and control end sends packet by visible ray so that controlled terminal performs accordingly finger Order, controlled terminal can include some different industrial equipments, such as motor, temperature control device.
In the present embodiment, control end can keep communicating by EPA and the host computer of a control centre, control End processed receives the network packet that host computer is sent, and then removes corresponding procotol packet header, converts thereof into plain streams, And then obtain including some raw data packets of control instruction.First, first processing module 10 is to sent raw data packets CRC (Cyclic Redundancy Check, CRC) computing is carried out, being specifically as follows CRC32 computings, (32 are followed Ring redundancy check computing) or CRC16 (16 CRC computings) etc., CRC32 computings are such as used, nybble will be generated Check code, the check code of generation is now added to raw data packets afterbody be used as the first packet.
Second processing module 20, the control byte for adding preset length in first data packet header, obtains the Two packets, the control byte is used for the control way for representing visible optical control signal;
Second processing module 20 adds the control byte of preset length as the second number to the head of above-mentioned first packet According to bag, wherein, the maximum control way of the visible optical control signal of length correspondence of control byte can be entered according to needs of production Row is flexibly set, if the control byte of two bytes, and the span of two byte is 0-65536, with hexadecimal representation For 0x0000-0xFFFF, then, it is seen that the control way of optical control signal is at most 65536 tunnels.Control byte is used to represent to control The control way of signal, such as, if control byte is 0x0001, then it represents that the way that controls of the visible optical control signal is first Road.
Transcoding module 30, for carrying out transcoding to second packet according to default transcoding rule, by the number after transcoding The 3rd packet is used as according to bag;
Transcoding module 30 carries out transcoding according to default transcoding rule to above-mentioned second packet, such as, can be logical by correlation Believe that agreement carries out transcoding to the second packet, so that the data transfer of packet meets relevant communication protocol.
Sending module 40, for adding the identification byte for identifying visible light source in the 3rd data packet header, Obtain final data bag, the final data bag be loaded onto in the driving of the electric current of the visible light source, with drive it is described can See that radiant sends optical signal.
The transcoding of transcoding module 30 is obtained after the 3rd packet, and sending module 40 is added for marking in the 3rd data packet header The identification byte of visible light source is known, so as to obtain final data bag.On the one hand identification byte judges data available for controlled terminal The legitimacy of bag, is on the other hand divided into some packets available for controlled terminal by the data flow that certain time receives.Afterwards, Obtained final data bag is loaded onto in the driving of the electric current of visible light source by sending module 40, so as to drive visible light source to send out Optical signals.Controlled terminal is received after optical signal, converts optical signals to current signal, then carry out verification reconciliation to packet Code, so as to obtain raw data packets, the control instruction by raw data packets is executable corresponding function.
In the present embodiment, control end is circulated redundancy check, transcoding to sent raw data packets and added successively Inlet identity byte, ensure that controlled terminal correctly recognizes transmission signal, while adding the control of control byte correspondence visible light communication Way processed, can realize that the same transmission signal of visible ray is controlled to multichannel distinct device, reduce visible light communication system The complexity of system, in addition, the length by changing control byte is improved with regard to that can change the at most controllable way of communication system The scalability of visible light communication system.
Further, with continued reference to Fig. 4, the Multi-channel controller first embodiment based on above-mentioned visible light communication is proposed The Multi-channel controller second embodiment of visible light communication of the present invention.
In the present embodiment, transcoding module 30 is additionally operable to according to SLIP SLIP, by second data 0xC0 byte conversions in bag are two bytes of 0xDB and 0xDC, while being by the 0xDB byte conversions in second packet Two bytes of 0xDB and 0xDD, obtain the 3rd packet;Sending module 40 is additionally operable to add in the 3rd data packet header 0xC0 bytes, obtain final data bag.
Reference picture 3, control end process step is:Raw data packets afterbody is added CRC schools by first processing module 10 first Code is tested, then Second processing module 20 adds control byte on head, then carries out 0xC0 and 0xDB conversion by transcoding module 30 New data packets are formed, sending module 40 adds identification byte 0xC0 on the head of new data packets again and obtains finally launching packet.
The present embodiment is according to SLIP SLIP (Serial Line Internet Protocol) to second Packet carries out transcoding, and the specific transcoding mode of transcoding module 30 is:It is by all 0xC0 byte conversions in the second packet Two bytes of 0xDB and 0xDC, while being two bytes of 0xDB and 0xDD by all 0xDB byte conversions, by the data after transcoding Bag is used as the 3rd packet.Then, sending module 40 increases 0xC0 bytes with identification data packet in the 3rd data packet header again Legitimacy, so as to obtain final data bag and be transmitted by visible ray.
In the present embodiment, transcoding is carried out to packet according to SLIP agreements, ensure that the legitimacy of transcoding;Due to turning No longer contain 0xC0 bytes in packet after code, thus now in data packet header increase 0xC0 bytes, this can be made unique 0xC0 bytes turn into the packet identification byte, while can also as control end visible light source identification byte, and Other visible light sources make a distinction.
The present invention also provides a kind of multi-way control system of visible light communication.
Reference picture 5, Fig. 5 illustrates for the functional module of the multi-way control system first embodiment of visible light communication of the present invention Figure.The system includes control end 101 and controlled terminal 102, wherein, control end 101 includes the multichannel control of above-mentioned visible light communication Device described in device first embodiment and second embodiment processed;
Each functional module of the present embodiment control end 101 can refer to the Multi-channel controller embodiment of above-mentioned visible light communication, Here is omitted.Illustrate the function that the present embodiment controlled terminal 102 is realized below in conjunction with Fig. 5.
Controlled terminal 102 includes:
Receiver module 50, for receiving optical signal that the control end sends and the optical signal being converted into electric current letter Number, using the identification byte as decollator, the data flow in the current signal is divided into some packets;
In the present embodiment, because control signal is typically sent with data-stream form, thus the control that controlled terminal is received Signal is also data flow, specifically, and receiver module 50 receives the optical signal that control end sends and by change-over circuit by light first Signal is converted to current signal, then using the identification byte in data flow as decollator, and data flow is divided into some packets.
Recovery module 60, the packet for being obtained to segmentation carries out transcoding reduction, obtains the 4th packet;
The each packet obtained to segmentation, recovery module 60 carries out transcoding according to default transcoding rule to it, by number The form of raw data packets plus check code and control byte is reduced to according to bag, and regard the packet after transcoding as the 4th data Bag.
Comparison module 70, for compare the 4th data packet header control byte whether with default control byte phase Together, if so, then removing the control byte of the 4th data packet header, the 5th packet is obtained;
In the present embodiment, can pre-set the control byte corresponding with the control way of control system be stored in it is controlled End.After the transcoding of recovery module 60 obtains the 4th packet, comparison module 70 compares the control word of the 4th data packet header Whether section is identical with the control byte prestored, if identical, illustrates that the packet is matched with the controlled terminal, now removes the The control byte of four data packet headers, obtains the 5th packet.
Further, comparison module 70 is additionally operable to control byte and default control byte when the 4th data packet header When different, the 4th packet is abandoned.
If the control byte of the 4th data packet header is different from default control byte, illustrate that the packet is invalid, now Abandon the packet.
Performing module 80, the CRC computing is carried out for the 5th packet by afterbody without check code, Whether the check code of comparison operation generation is identical with the check code of the 5th packet afterbody, if so, then by the described 5th number The raw data packets are reduced to according to bag, control the controlled terminal to perform corresponding function according to the raw data packets.
Because the 5th packet adds the form of check code for raw data packets, now performing module 80 is by afterbody not tape verifying 5th packet of code is circulated redundancy check computing, and the circulation that the CRC computing should be used with control end is superfluous Remaining verification mathematical algorithm is consistent, then, and whether the check code of comparison operation generation is identical with the check code of the 5th packet afterbody, If identical, it is correct packet to illustrate the packet received, and now the 5th packet is reduced to institute by performing module 80 State after raw data packets, just according to raw data packets the controlled terminal can be controlled to perform corresponding function.
Further, performing module 80 is additionally operable to the verification of check code and the 5th packet afterbody generated when computing When code is different, the 5th packet is abandoned.
If the check code of computing generation is different from the check code of the 5th packet afterbody, illustrating may be due to environmental disturbances Cause received data packet to malfunction, now abandon the packet.
In the present embodiment, control end 101 to sent raw data packets by sequentially adding CRC And control byte, then carry out transcoding and add identification byte so that controlled terminal 102 is that a variety of industrial equipments are being received During the data flow sent to the control end, it can then pass through phase by identification byte splitting traffic so as to obtaining packet Regular restoring data bag should be decoded, and judges whether packet is to control way belonging to the controlled terminal by control byte, is passed through CRC judges whether packet malfunctions, the final corresponding function for performing raw data packets, it is achieved thereby that visible The same transmission signal of light is controlled to multichannel distinct device, reduces the complexity of visible light communication system, in addition, passing through Change the length of control byte with regard to the at most controllable way of communication system can be changed, improve expanding for visible light communication system Malleability.
Further, with continued reference to Fig. 5, the multi-way control system first embodiment based on above-mentioned visible light communication is proposed The multi-way control system second embodiment of visible light communication of the present invention.
In the present embodiment, recovery module 60 is additionally operable to:
According to SLIP SLIP, 0xDB bytes and 0xDB bytes in the packet that retrieval segmentation is obtained Latter byte;
When the latter byte for retrieving 0xDB bytes is 0xDC, two bytes of the 0xDB retrieved and 0xDC are reduced to 0xC0 bytes, when the latter byte for retrieving 0xDB bytes is 0xDD, two bytes of the 0xDB retrieved and 0xDD are reduced For 0xC0 bytes, the 4th packet is obtained.
Reference picture 6, Fig. 6 for visible light communication of the present invention multi-way control system second embodiment in controlled terminal packet Handling process schematic diagram.Controlled terminal process step is:Receiver module 50 first is using 0xC0 as decollator, by the data flow received Single packet is divided into, then 0xDB, 0xDC and 0xDD are subjected to transcoding reduction by recovery module 60, comparison module 70 compares Whether the control byte of the data packet header of reduction identical with default control byte, if identical, performing module 80 by afterbody not The packet of tape verifying code carries out CRC operation generation check code, and is compared with the check code of the packet afterbody, if phase Together, then the packet is reduced to raw data packets.
The present embodiment carries out transcoding reduction, the specific transcoding of recovery module 60 according to SLIP agreements to the packet that segmentation is obtained Mode is:All 0xDB bytes in the packet that retrieval segmentation is obtained, should if the latter byte of 0xDB bytes is 0xDC Two bytes of 0xDB and 0xDC are reduced to 0xC0 bytes, if the latter byte of 0xDB bytes is 0xDD, by the 0xDB and 0xDD Two bytes are reduced to 0xC0 bytes, obtain the 4th packet.
Further, recovery module 60 is additionally operable in the latter byte for retrieving 0xDB bytes is not 0xDC and 0xDD Any one when, abandon the obtained packet of segmentation.
If the latter byte that recovery module 60 retrieves 0xDB bytes is not any one in 0xDC and 0xDD, explanation connects Packet error is received, the packet is now abandoned.
In the present embodiment, transcoding reduction is carried out to packet according to SLIP agreements, ensure that the legitimacy of transcoding;Only Have when the packet that receive contains specified byte, and the control byte of packet and CRC check code are when being proved to be successful, and just sentence The fixed packet is correct and effective packet, and then controls controlled terminal to perform corresponding function, is led to so as to enhance visible ray The reliability of letter.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (9)

1. a kind of multi-channel control method of visible light communication, applied to control end, it is characterised in that methods described includes following step Suddenly:
Redundancy check computing is circulated to sent raw data packets, the check code that computing is generated adds the original number According to bag afterbody, the first packet is obtained;
The control byte of preset length is added in first data packet header, the second packet is obtained, the control byte is used In the control way for representing visible optical control signal;
Transcoding is carried out to second packet according to default transcoding rule, the packet after transcoding is regard as the 3rd packet;
The identification byte for identifying visible light source is added in the 3rd data packet header, final data bag is obtained, by institute State final data bag to be loaded onto in the driving of the electric current of the visible light source, to drive the visible light source to send optical signal.
2. the method as described in claim 1, it is characterised in that the basis is preset transcoding rule and entered to second packet Row transcoding, includes the step of using the packet after transcoding as three packets:
It is 0xDB and 0xDC two by the 0xC0 byte conversions in second packet according to SLIP SLIP Byte, while being two bytes of 0xDB and 0xDD by the 0xDB byte conversions in second packet, obtains the 3rd packet;
The identification byte added in the 3rd data packet header for identifying visible light source, obtains final data bag Step includes:
0xC0 bytes are added in the 3rd data packet header, final data bag is obtained.
3. a kind of Multi-channel controller of visible light communication, applied to control end, it is characterised in that described device includes:
First processing module, for being circulated redundancy check computing to sent raw data packets, the school that computing is generated Test code and add the raw data packets afterbody, obtain the first packet;
Second processing module, the control byte for adding preset length in first data packet header, obtains the second data Bag, the control byte is used for the control way for representing visible optical control signal;
Transcoding module, for carrying out transcoding to second packet according to default transcoding rule, the packet after transcoding is made For the 3rd packet;
Sending module, for adding the identification byte for identifying visible light source in the 3rd data packet header, is obtained most Whole packet, the final data bag is loaded onto in the driving of the electric current of the visible light source, to drive the visible ray light Source sends optical signal.
4. device as claimed in claim 3, it is characterised in that the transcoding module is additionally operable to according to SLIP SLIP, is two bytes of 0xDB and 0xDC by the 0xC0 byte conversions in second packet, while by second data 0xDB byte conversions in bag are two bytes of 0xDB and 0xDD, obtain the 3rd packet;
The sending module is additionally operable to add 0xC0 bytes in the 3rd data packet header, obtains final data bag.
5. a kind of multi-way control system of visible light communication, it is characterised in that the system includes control end and controlled terminal, its In,
The control end includes the device described in claim 3 or 4;
The controlled terminal includes:
Receiver module, for receiving optical signal that the control end sends and the optical signal being converted into current signal, with institute Identification byte is stated for decollator, the data flow in the current signal is divided into some packets;
Recovery module, the packet for being obtained to segmentation carries out transcoding reduction, obtains the 4th packet;
Whether comparison module, the control byte for comparing the 4th data packet header is identical with default control byte, if so, Then remove the control byte of the 4th data packet header, obtain the 5th packet;
Performing module, carries out the CRC computing for the 5th packet by afterbody without check code, compares fortune Whether the check code for calculating generation is identical with the check code of the 5th packet afterbody, if so, then by the 5th packet also Originally it was the raw data packets, and controlled the controlled terminal to perform corresponding function according to the raw data packets.
6. system as claimed in claim 5, it is characterised in that the recovery module is additionally operable to:
According to SLIP SLIP, 0xDB bytes and 0xDB bytes in the packet that retrieval segmentation is obtained it is latter Byte;
When the latter byte for retrieving 0xDB bytes is 0xDC, two bytes of the 0xDB retrieved and 0xDC are reduced to 0xC0 Byte, when the latter byte for retrieving 0xDB bytes is 0xDD, two bytes of the 0xDB retrieved and 0xDD are reduced to 0xC0 bytes, obtain the 4th packet.
7. system as claimed in claim 6, it is characterised in that the recovery module be additionally operable to when retrieve 0xDB bytes after When one byte is for any one in 0xDC and 0xDD, the packet that segmentation is obtained is abandoned.
8. the system as any one of claim 5 to 7, it is characterised in that the comparison module is additionally operable to when described the When the control byte of four data packet headers is different from default control byte, the 4th packet is abandoned.
9. the system as any one of claim 5 to 7, it is characterised in that the performing module is additionally operable to when computing life Into check code it is different from the check code of the 5th packet afterbody when, abandon the 5th packet.
CN201710115766.8A 2017-02-28 2017-02-28 The multi-channel control methods, devices and systems of visible light communication Pending CN106961304A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710115766.8A CN106961304A (en) 2017-02-28 2017-02-28 The multi-channel control methods, devices and systems of visible light communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710115766.8A CN106961304A (en) 2017-02-28 2017-02-28 The multi-channel control methods, devices and systems of visible light communication

Publications (1)

Publication Number Publication Date
CN106961304A true CN106961304A (en) 2017-07-18

Family

ID=59470694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710115766.8A Pending CN106961304A (en) 2017-02-28 2017-02-28 The multi-channel control methods, devices and systems of visible light communication

Country Status (1)

Country Link
CN (1) CN106961304A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218154A (en) * 2018-09-07 2019-01-15 深圳市常茂信科技开发有限公司 A kind of converting system based on the gigabit Ethernet of FPGA to SLIP
CN110932780A (en) * 2019-10-14 2020-03-27 北京邮电大学 Signal processing method and device based on parallelization KK

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103093601A (en) * 2012-12-31 2013-05-08 熊猫电子集团有限公司 Method for realizing full-function remote control of short-wave radio station
CN103199922A (en) * 2013-04-02 2013-07-10 中国矿业大学 Coal mining working face communication system based on visible light communication and method thereof
CN105227240A (en) * 2015-10-30 2016-01-06 上海航天测控通信研究所 Based on the industrial communication systems of visible ray
CN105665297A (en) * 2016-01-07 2016-06-15 中国人民解放军装甲兵工程学院 Logistics sorting system based on wireless optical communication
CN106444406A (en) * 2016-10-25 2017-02-22 彭云 Intelligent control system and network device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103093601A (en) * 2012-12-31 2013-05-08 熊猫电子集团有限公司 Method for realizing full-function remote control of short-wave radio station
CN103199922A (en) * 2013-04-02 2013-07-10 中国矿业大学 Coal mining working face communication system based on visible light communication and method thereof
CN105227240A (en) * 2015-10-30 2016-01-06 上海航天测控通信研究所 Based on the industrial communication systems of visible ray
CN105665297A (en) * 2016-01-07 2016-06-15 中国人民解放军装甲兵工程学院 Logistics sorting system based on wireless optical communication
CN106444406A (en) * 2016-10-25 2017-02-22 彭云 Intelligent control system and network device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218154A (en) * 2018-09-07 2019-01-15 深圳市常茂信科技开发有限公司 A kind of converting system based on the gigabit Ethernet of FPGA to SLIP
CN109218154B (en) * 2018-09-07 2021-05-18 深圳市常茂信科技开发有限公司 FPGA-based conversion system from gigabit Ethernet to SLIP
CN110932780A (en) * 2019-10-14 2020-03-27 北京邮电大学 Signal processing method and device based on parallelization KK

Similar Documents

Publication Publication Date Title
CN105991358B (en) Method, device, test board and system for testing interface board flow
US20220182704A1 (en) Method and device for matching up devices
CN102281121A (en) Method, equipment and system for transmitting and verifying data file
RU2010123915A (en) RADIO BEACON CONTROL CHANNELS
CN106961304A (en) The multi-channel control methods, devices and systems of visible light communication
CN103324969B (en) The method of the rfid interrogator that a kind of multiple antennas works simultaneously and identification RF data signal thereof
US20190037496A1 (en) Wur packets generation with legacy wifi transmitter
US20120324320A1 (en) Coding apparatus, coding method, data communication apparatus, and data communication method
CN109561426A (en) A kind of reliability method of less radio-frequency GFSK networking communication
JPH05122282A (en) Data transmission system
CN103856269B (en) Information transmitting, read method and device based on sound wave
CN105592558A (en) Data transmission method, terminal and data transmission system
CN107370567A (en) A kind of Turbo coding/decoding methods
US6134692A (en) Information identification system for identifying response units by a control unit, and the control unit and the response units for the information identification system
US7769915B1 (en) Systems and method of controlling control and/or monitoring devices
CN116723058A (en) Network attack detection and protection method and device
CN111342896B (en) Self-coding algorithm based on convolutional neural network
JP2004312667A (en) Multichannel remote control, and transmitter/receiver
EP3618580A1 (en) Transmission coding scheme for a lighting system
CN112332950B (en) Method, system, device and storage medium for adapting data transmission rate
CN113169995A (en) Method for configuring an Ethernet switch of a vehicle-mounted network of a motor vehicle
CN106412657A (en) Method and system for burning sequence codes of set-top box
CN212515784U (en) RS-485 signal line polarity self-adaptation realization device based on double UARTs
CN107395584A (en) The method and apparatus of communication between devices is realized based on natural language
KR102086457B1 (en) A decoding method of software modem in limited memory environment, using overlapping fragmentation and progressive decoding

Legal Events

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

Application publication date: 20170718