CN113347024B - Data isolation exchange method and device based on visible light communication - Google Patents

Data isolation exchange method and device based on visible light communication Download PDF

Info

Publication number
CN113347024B
CN113347024B CN202110547501.1A CN202110547501A CN113347024B CN 113347024 B CN113347024 B CN 113347024B CN 202110547501 A CN202110547501 A CN 202110547501A CN 113347024 B CN113347024 B CN 113347024B
Authority
CN
China
Prior art keywords
message
visible light
service data
data
synchronous communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110547501.1A
Other languages
Chinese (zh)
Other versions
CN113347024A (en
Inventor
刘熙胖
梁松涛
刘长河
孙晓鹏
廖正赟
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.)
Zhengzhou Xinda Jiean Information Technology Co Ltd
Original Assignee
Zhengzhou Xinda Jiean Information Technology 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 Zhengzhou Xinda Jiean Information Technology Co Ltd filed Critical Zhengzhou Xinda Jiean Information Technology Co Ltd
Priority to CN202110547501.1A priority Critical patent/CN113347024B/en
Publication of CN113347024A publication Critical patent/CN113347024A/en
Application granted granted Critical
Publication of CN113347024B publication Critical patent/CN113347024B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • 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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Optical Communication System (AREA)

Abstract

The invention provides a data isolation exchange method and a device based on visible light communication.A visible light sender and a visible light receiver are respectively provided with a built-in communication rule in advance, so that a sending device and a receiving device can be ensured to know the relevant information of a service data message in advance for carrying out subsequent data synchronization and ensuring the correctness of data transmission; before sending a service data frame, a visible light sender sends an initial message to a visible light receiver through a visible light unidirectional transmission channel to judge and prepare for receiving data; after the visible light transmitter carries out data splitting and recombination processing on the service data frame to be transmitted according to the message control information, the service data frame is sequentially transmitted to the visible light receiver through the visible light unidirectional transmission channel; and when the accumulated data length of the sent service data frame reaches the data length in the message control information, sending the ending message in the synchronous communication rule to a visible light receiver through a visible light one-way transmission channel.

Description

Data isolation exchange method and device based on visible light communication
Technical Field
The invention relates to the technical field of visible light communication, in particular to a data isolation exchange method and system based on visible light communication.
Background
Visible Light Communication (VLC) is a Communication method in which Light in a Visible Light band is used as an information carrier to directly transmit an optical signal in the air. The visible light communication technology is green and low-carbon, can realize nearly zero-energy-consumption communication, can effectively avoid the defects of leakage of radio communication electromagnetic signals and the like, and quickly constructs an anti-interference and anti-interception safety information space.
The visible light communication can realize high-speed data communication, and meanwhile, the visible light can be used for data isolation exchange due to the visibility and the unidirectionality of the visible light, so that the unidirectional transmission of data is realized, and the visibility of data transmission is ensured. When the visible light is used in a unidirectional isolation data exchange system, because both data exchange sides only have unidirectional data flow direction, how to carry out data synchronization in the data transmission process and how to ensure that the data in the data transmission process is not lost is a problem which is usually difficult to solve.
Therefore, how to design a data isolation exchange method based on visible light communication is a problem which needs to be solved urgently at present and can ensure data synchronization and data loss in the data unidirectional transmission process.
Disclosure of Invention
In view of the above problems, it is necessary to provide a data isolation and exchange method based on visible light communication, which can ensure data synchronization during data unidirectional transmission and prevent data loss.
The invention provides a data isolation exchange method based on visible light communication, which is applied to a visible light sender and comprises the following steps:
after the synchronous communication rule is set, the visible light sender sends an initial message in the synchronous communication rule to a visible light receiver through a visible light unidirectional transmission channel, so that the visible light receiver can enter a data synchronization state based on the received initial message and wait for receiving a service data frame sent by a first service system;
the visible light sender packages the service data frame according to the message control information in the synchronous communication rule after receiving the service data frame to obtain at least one service data message, sends the service data message to the visible light receiver through a visible light unidirectional transmission channel, and accumulates the data length of the sent service data frame; the message control information comprises a message start bit, a message stop bit, a message length, a data length, message sequence information and filling information;
and the visible light sender sends an end message in the synchronous communication rule to a visible light receiver through a visible light one-way transmission channel when the accumulated data length of the sent service data frame reaches the data length in the message control information, so that the visible light receiver can terminate the data synchronization state based on the received end message and clear the synchronous communication rule at the same time.
Based on the above, the synchronous communication rule further includes a first preset number of times and a second preset number of times; after the synchronous communication rule is set, the visible light sender sends an initial message in the synchronous communication rule to a visible light receiver through a visible light one-way transmission channel according to a first preset number of times;
and the visible light sender sends the ending message in the synchronous communication rule to the visible light receiver through a visible light one-way transmission channel according to a second preset time when the accumulated data length of the sent service data frame reaches the data length in the message control information.
Based on the above, when the data length of the service data frame transmitted accumulatively does not reach the data length in the message control information and the next service data frame transmitted by the first service system is not received, the visible light transmitting party retransmits the operation result and the service data message transmitted this time, so that the visible light receiving party can complete the lost message data according to the retransmitted service data message.
Based on the above, after the visible light sender obtains the service data message, the service data message is subjected to logical operation, and an operation result is sent to the visible light receiver together with the service data message through the visible light unidirectional transmission channel, so that the visible light receiver can judge the transmission state of the message based on the received operation result and the service data message;
after the visible light sender sends a service data message, an image acquisition device acquires a state picture of a state indicator lamp of the visible light receiver, wherein the state picture is used for displaying the transmission state of the message, identifies the color of the state indicator lamp, determines the transmission state of the message according to the color of the state indicator lamp, and retransmits the sent operation result and the service data message when the transmission state of the message is abnormal transmission.
The second aspect of the present invention provides a data isolation and exchange method based on visible light communication, which is applied to a visible light receiver, and the data isolation and exchange method includes the following steps:
after the visible light receiving party is put into the synchronous communication rule, the visible light receiving party enters a data synchronization state when judging that the received message is an initial message according to the synchronous communication rule; the synchronous communication rule comprises a starting message, an ending message and message control information, wherein the message control information comprises a message starting bit, a message ending bit, a message length, a data length, message sequence information and filling information;
in a data synchronization state, after receiving a message through a visible light one-way transmission channel, the visible light receiving party decapsulates the service data message according to the message control information when judging that the current message is the service data message according to the synchronous communication rule, obtains a service data frame, and accumulates the data length of the received service data frame; and when the current message is judged to be the end message according to the synchronous communication rule and the data length of the accumulated received service data frame reaches the data length in the message control information, sending the accumulated acquired service data frame to a second service system, simultaneously ending the data synchronization state, and clearing the synchronous communication rule.
Judging whether the received message is an initial message according to the synchronous communication rule, judging whether the current message is a service data message according to the synchronous communication rule when the received message is judged to be the initial message according to the synchronous communication rule, and judging whether the current message is an end message according to the synchronous communication rule
Based on the above, the synchronous communication rule further includes a first preset number of times and a second preset number of times; the visible light sender judges the type of the current message as an initial message according to the synchronous communication rule, then accumulates the sending times of the initial message, and enters a data synchronization state when the accumulated sending times of the initial message reaches a first preset time;
and the visible light sender accumulates the sending times of the end message after judging that the type of the current message is the end message according to the synchronous communication rule, and ends the data synchronization state when the accumulated sending times of the end message reaches a second preset time.
Based on the above, when the current message is a service data message, the visible light receiving party judges whether the transmission state of the current message is abnormal transmission according to the message length in the message control information, and if the transmission state is abnormal transmission, when the service data message with the same message sequence information is received, the lost data is recovered according to the newly received service data message; if the transmission is not abnormal, when the service data message with the same message sequence information is received, the newly received service data message is directly discarded.
Based on the above, if the operation result is received while the service data message is received, the visible light receiving party performs logical operation on the service data message, compares the operation result obtained by the calculation with the received operation result, and decapsulates the service data message according to the message control information when the comparison result is consistent to obtain a service data frame;
the visible light receiver also controls the state indicator lamp to emit light according to the comparison result, so that the visible light transmitter acquires a state picture of the state indicator lamp through the image acquisition device, identifies the color of the state indicator lamp, determines the message transmission state according to the color of the state indicator lamp, and retransmits the operation result and the service data message which are transmitted when the message transmission state is abnormal transmission.
The invention provides a data isolation switching device based on visible light communication, which is applied to a visible light sender, and comprises a first service module, a first processing module and a sending module, wherein the first processing module is respectively connected with the first service module and the sending module in a one-way manner;
the first service module is used for receiving a service data message sent by a first service system and sending the service data message to the first processing module;
the first processing module is used for sending an initial message in the synchronous communication rule to the sending module after the synchronous communication rule is put in, and waiting for receiving a service data frame sent by a first service system; the synchronous communication module is used for receiving a service data frame, packaging the service data frame according to the message control information in the synchronous communication rule to obtain at least one service data message, sending the service data message to the sending module, and meanwhile accumulating the data length of the sent service data frame; the message control information comprises a message start bit, a message stop bit, a message length, a data length, message sequence information and filling information; the synchronous communication module is used for sending an ending message in the synchronous communication rule to the sending module when the accumulated data length of the sent service data message reaches the data length in the message control information, and simultaneously clearing the synchronous communication rule;
and the sending module is used for converting the initial message, the ending message and the service data message into visible light signals and sending the visible light signals to the visible light receiver through a visible light unidirectional transmission channel.
The invention provides a data isolation switching device based on visible light communication, which is applied to a visible light receiver, and comprises a second service module, a second processing module and a receiving module, wherein the second processing module is respectively connected with the receiving module and the second service module in a one-way manner;
the receiving module is used for receiving the visible light signal sent by the sending module and converting the visible light signal into a data signal to obtain a message;
the second processing module is used for entering a data synchronization state when the received message is judged to be an initial message according to the synchronous communication rule after the synchronous communication rule is put in; the synchronous communication rule comprises a starting message, an ending message and message control information, wherein the message control information comprises a message starting bit, a message ending bit, a message length, a data length, message sequence information and filling information; the device is used for decapsulating the service data message according to the message control information to obtain a service data frame and accumulating the data length of the received service data frame when the current message is judged to be the service data message according to the synchronous communication rule after the message is received in a data synchronization state; when the current message is judged to be the end message according to the synchronous communication rule and the data length of the accumulated received service data frame reaches the data length in the message control information, the accumulated acquired service data frame is sent to the second service module, and the synchronous communication rule is cleared after the data synchronization state is ended;
and the second service module is used for sending accumulated service data frames to a second service system when judging that the received message is an initial message according to the synchronous communication rule, judging that the current message is a service data message according to the synchronous communication rule, and judging that the current message is an end message according to the synchronous communication rule.
The invention has prominent substantive characteristics and remarkable progress, in particular to the following steps:
(1) according to the invention, the synchronous communication rules are respectively pre-built in the visible light sender and the visible light receiver, so that the visible light sender and the visible light receiver can be ensured to be capable of acquiring the relevant information of the service data message in advance for carrying out subsequent data synchronization and ensuring the correctness of data transmission;
(2) before sending a service data frame, a visible light sender circularly sends an initial message to a visible light receiver through a visible light unidirectional transmission channel for judgment and prepares for receiving data; after the visible light transmitter carries out data splitting and recombination processing on the service data frame to be transmitted according to the message control information, the service data frame is sequentially transmitted to the visible light receiver through the visible light unidirectional transmission channel;
(3) after the visible light sender sends the service data frame, judging whether the accumulated service data message reaches the data length in the message control information, if not, the visible light sender sends the service data frame to the visible light receiver through retransmission until receiving the next service data message to be sent; if yes, automatically packaging the end message, and circularly sending the end message to a visible light receiver through a visible light one-way transmission channel; the data transmission synchronism is ensured by judging the data length, and the data loss is prevented;
(4) the visible light receiver repackages and executes related operations according to the received service data frame; the visible light transmitting party can package the service data message according to a certain data message requirement, and the visible light receiving party can repackage and distinguish the service data message according to the message related information received in advance, so that the data synchronization is ensured;
(5) after each data packet subjected to data splitting and recombining is subjected to logic operation, an operation result is attached to a service data message to be sent and then sent together; and the display screen is arranged to display the data transmission state, so that the data transmission synchronization can be ensured, and the data loss is prevented.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 shows a flow chart of a data isolation switching method according to embodiment 1 of the present invention;
fig. 2 shows the relevant contents of the start message, the end message and the message control information in the service data frame according to the present invention;
fig. 3 shows a flow chart of a data isolation switching method according to embodiment 2 of the present invention;
fig. 4 shows a flow chart of a data isolation switching method according to embodiment 3 of the present invention;
fig. 5 is a schematic structural diagram of a data isolation switching system according to embodiment 6 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Example 1
As shown in fig. 1, this embodiment provides a data isolation exchange method based on visible light communication, which is applied to a visible light sender, and the method includes the following steps:
after the synchronous communication rule is set, the visible light sender sends an initial message in the synchronous communication rule to a visible light receiver through a visible light unidirectional transmission channel, so that the visible light receiver can enter a data synchronization state based on the received initial message and wait for receiving a service data frame sent by a first service system;
the visible light sender packages the service data frame according to the message control information in the synchronous communication rule after receiving the service data frame to obtain at least one service data message, sends the service data message to the visible light receiver through a visible light unidirectional transmission channel, and accumulates the data length of the sent service data frame; the message control information comprises a message start bit, a message stop bit, a message length, a data length, message sequence information and filling information;
and the visible light sender sends an end message in the synchronous communication rule to a visible light receiver through a visible light one-way transmission channel when the accumulated data length of the sent service data frame reaches the data length in the message control information, so that the visible light receiver can terminate the data synchronization state based on the received end message and clear the synchronous communication rule at the same time.
It can be understood that the message control information may be generated by a management terminal and sent to the visible light sender, may be automatically generated by the visible light sender, and may be copied into the visible light sender in a hard disk form.
The synchronous communication rule further comprises a first preset time and a second preset time; after the synchronous communication rule is set, the visible light sender sends an initial message in the synchronous communication rule to a visible light receiver through a visible light one-way transmission channel according to a first preset number of times;
and the visible light sender sends the ending message in the synchronous communication rule to the visible light receiver through a visible light one-way transmission channel according to a second preset time when the accumulated data length of the sent service data frame reaches the data length in the message control information.
As shown in fig. 2, in practical application, the initial packet includes a packet initial bit, a packet length, a packet content, and a packet end bit; the end message comprises a message start bit, a message length, a message content and a message end bit. The content of the initial message and the content of the end message can be set by a user.
Specifically, the message control information includes synchronization information such as a message start bit, a message stop bit, a message length, a data length, message sequence information, and padding information; the padding information includes a padding field, a padding length and a padding length indication bit, the padding field may be, but is not limited to, 0xFF, and the padding length indication bit is a position of a data packet where the padding length is located, and may be, but is not limited to, behind a message start bit; the data length information is the total data length of the data exchange transmission; the message sequence information is used to indicate a message sequence indicator and a message sequence number processing mode, which may be, but is not limited to, an increasing or decreasing mode.
For example, the service data packet includes a start bit, a stop bit, and a packet content, the service data packet may be, but is not limited to, 512 bytes in length, the packet content may be, but is not limited to, 0XFF, the packet start field may be, but is not limited to, 0XAA, and the packet end field may be, but is not limited to, 0X 55.
It can be understood that, when the service data frame is encapsulated according to the message control information in the synchronous communication rule, first calculating a service data frame N/a message length k to obtain a packet number m, where, if the service data frame/the message length is an integer, the packet number m = the service data frame/the message length, and the message length of each packet = the message length k; if the service data frame/message length is not an integer, the number m of the packets is not = [ service data frame/message length ] +1, and [ service data frame/message length ] is a downward rounding operation on the service data frame/message length; wherein, the packet length in the first [ service data frame/packet length ] packets = the packet length k, and the last packet includes the remaining packets and the padding packets, so that the packet length of the last packet = the packet length k. And after grouping is finished, adding a message start bit, a message stop bit and message sequence information to each group.
When the visible light is used in the unidirectional isolation data exchange system, because both data exchange sides only have unidirectional data flow direction, the problem of data loss is easy to occur in the data transmission process, in order to prevent data loss, when the data length of the accumulated sent service data frame does not reach the data length in the message control information, the visible light sending party circularly resends the service data message sent this time to the visible light receiving party until the next frame service data message sent by the first service system is received.
In order to prevent data loss, after the visible light transmitting party obtains the service data message, the logic operation is carried out on the service data message, and the operation result is sent to the visible light receiving party together with the service data message through the visible light unidirectional transmission channel, so that the visible light receiving party can judge the message transmission state based on the received operation result and the service data message;
after the visible light sender sends a service data message, an image acquisition device acquires a state picture of a state indicator lamp of the visible light receiver, wherein the state picture is used for displaying the transmission state of the message, identifies the color of the state indicator lamp, determines the transmission state of the message according to the color of the state indicator lamp, and retransmits the sent operation result and the service data message when the transmission state of the message is abnormal transmission. .
In order to prevent data loss, when the data length of the accumulated transmitted service data frame does not reach the data length in the message control information and the next service data frame transmitted by the first service system is not received, the visible light transmitting party retransmits the operation result and the service data message transmitted this time, so that the visible light receiving party can complement the lost message data according to the retransmitted service data message.
Example 2
The embodiment provides a data isolation exchange method based on visible light communication, which is applied to a visible light receiver, as shown in fig. 3, the method includes the following steps:
after the visible light receiving party is put into the synchronous communication rule, the visible light receiving party enters a data synchronization state when judging that the received message is an initial message according to the synchronous communication rule; the synchronous communication rule comprises a starting message, an ending message and message control information, wherein the message control information comprises a message starting bit, a message ending bit, a message length, a data length, message sequence information and filling information;
in a data synchronization state, after receiving a message through a visible light one-way transmission channel, the visible light receiving party decapsulates the service data message according to the message control information when judging that the current message is the service data message according to the synchronous communication rule, obtains a service data frame, and accumulates the data length of the received service data frame; and when the current message is judged to be the end message according to the synchronous communication rule and the data length of the accumulated received service data frame reaches the data length in the message control information, sending the accumulated acquired service data frame to a second service system, simultaneously ending the data synchronization state, and clearing the synchronous communication rule.
When the current message is judged to be the service data message according to the synchronous communication rule, and the current message is judged to be the end message according to the synchronous communication rule
It can be understood that the message control information may be generated by a management terminal and issued to the visible light receiving party, may be automatically generated by the visible light receiving party, and may be copied into the visible light receiving party in a hard disk form. In specific implementation, the synchronous communication rule further comprises a first preset frequency and a second preset frequency; the visible light sender judges the type of the current message as an initial message according to the synchronous communication rule, then accumulates the sending times of the initial message, and enters a data synchronization state when the accumulated sending times of the initial message reaches a first preset time;
and the visible light sender accumulates the sending times of the end message after judging that the type of the current message is the end message according to the synchronous communication rule, and ends the data synchronization state when the accumulated sending times of the end message reaches a second preset time.
Further, when the current message is a service data message, the visible light receiving party judges whether the transmission state of the current message is abnormal transmission according to the message length in the message control information, and if the transmission state of the current message is abnormal transmission, when the service data message with the same message sequence information is received, the lost data is recovered according to the newly received service data message; if the transmission is not abnormal, when the service data message with the same message sequence information is received, the newly received service data message is directly discarded.
Example 3
In order to make the above data isolation exchange process more clearly understood by those skilled in the art, as shown in fig. 4, the data exchange process performed by the visible light transmitting side and the visible light receiving side in the present embodiment is described in detail.
The visible light sender sends an initial message in the synchronous communication rule to a visible light receiver through a visible light one-way transmission channel after the synchronous communication rule is set;
after the visible light receiver receives the message and is put into a synchronous communication rule, the visible light receiver enters a data synchronization state when judging that the received message is an initial message according to the synchronous communication rule;
the visible light sender packages the service data frame according to the message control information in the synchronous communication rule after receiving the service data frame to obtain at least one service data message, sends the service data message to the visible light receiver through a visible light unidirectional transmission channel, and accumulates the data length of the sent service data frame; the message control information comprises a message start bit, a message stop bit, a message length, a data length, message sequence information and filling information;
after the visible light receiver receives the message through the visible light unidirectional transmission channel, when the current message is judged to be the service data message according to the synchronous communication rule, the service data message is de-encapsulated according to the message control information to obtain a service data frame, and the data length of the received service data frame is accumulated; the visible light sending party judges that the current message is a service data message according to the synchronous communication rule, and sends an ending message in the synchronous communication rule to a visible light receiving party through a visible light one-way transmission channel when the accumulated data length of the sent service data frame reaches the data length in the message control information, so that the visible light receiving party can terminate the data synchronization state based on the received ending message, and simultaneously clear the synchronous communication rule;
and the visible light receiver judges that the current message is an end message according to the synchronous communication rule, and when the data length of the accumulated received service data frame reaches the data length in the message control information, transmits the accumulated acquired service data frame to a second service system, and ends the data synchronization state at the same time, and clears the synchronous communication rule to judge that the current message is the end message according to the synchronous communication rule.
Example 4
The embodiment provides a data isolation switching device based on visible light communication, which is applied to a visible light sender, and particularly,
the data isolation switching device comprises a first service module, a first processing module and a sending module, wherein the first processing module is respectively connected with the first service module and the sending module in a one-way mode;
the first service module is used for receiving a service data message sent by a first service system and sending the service data message to the first processing module;
the first processing module is used for sending an initial message in the synchronous communication rule to the sending module after the synchronous communication rule is put in, and waiting for receiving a service data frame sent by a first service system; the synchronous communication module is used for receiving a service data frame, packaging the service data frame according to the message control information in the synchronous communication rule to obtain at least one service data message, sending the service data message to the sending module, and meanwhile accumulating the data length of the sent service data frame; the message control information comprises a message start bit, a message stop bit, a message length, a data length, message sequence information and filling information; the synchronous communication module is used for sending an ending message in the synchronous communication rule to the sending module when the accumulated data length of the sent service data message reaches the data length in the message control information, and simultaneously clearing the synchronous communication rule;
and the sending module is used for converting the initial message, the ending message and the service data message into visible light signals and sending the visible light signals to the visible light receiver through a visible light unidirectional transmission channel.
Example 5
The embodiment provides a data isolation switching device based on visible light communication, which is applied to a visible light receiving party, and particularly,
the data isolation switching device comprises a second service module, a second processing module and a receiving module, wherein the second processing module is respectively connected with the receiving module and the second service module in a one-way mode;
the receiving module is used for receiving the visible light signal sent by the sending module and converting the visible light signal into a data signal to obtain a message;
the second processing module is used for entering a data synchronization state when the received message is judged to be an initial message according to the synchronous communication rule after the synchronous communication rule is put in; the synchronous communication rule comprises a starting message, an ending message and message control information, wherein the message control information comprises a message starting bit, a message ending bit, a message length, a data length, message sequence information and filling information; the device is used for decapsulating the service data message according to the message control information to obtain a service data frame and accumulating the data length of the received service data frame when the current message is judged to be the service data message according to the synchronous communication rule after the message is received in a data synchronization state; when the current message is judged to be the end message according to the synchronous communication rule and the data length of the accumulated received service data frame reaches the data length in the message control information, the accumulated acquired service data frame is sent to the second service module, and the synchronous communication rule is cleared after the data synchronization state is ended;
and the second service module is used for sending accumulated service data frames to a second service system when judging that the current message is a service data message according to the synchronous communication rule and judging that the current message is an end message according to the synchronous communication rule.
Example 6
As shown in fig. 5, the present embodiment provides a data isolation and exchange system based on visible light communication, the system includes a management terminal, a first data encryption communication device and a second data encryption communication device, the first data encryption communication device adopts the data encryption communication device described in embodiment 4, and the second data encryption communication device adopts the data encryption communication device described in embodiment 5; the management terminal is respectively in one-way connection with a first processing module of the first data encryption communication device and a second processing module of the second data encryption communication device, and a sending module of the first data encryption communication device is in one-way connection with a receiving module of the second data encryption communication device.
Before the synchronous communication rule is used, the synchronous communication rule is generated by a management end and is issued to the visible light sending party and the visible light receiving party.
In other embodiments, the synchronous communication rule may also be automatically generated by a visible light sender and a visible light receiver that have the same cryptographic module built therein, and the same communication rule may also be copied into the visible light sender and the visible light receiver, respectively, in a hard disk form.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A data isolation exchange method based on visible light communication is applied to a visible light sender and is characterized in that:
after the synchronous communication rule is set, the visible light sender sends an initial message in the synchronous communication rule to a visible light receiver through a visible light unidirectional transmission channel, so that the visible light receiver can enter a data synchronization state based on the received initial message and wait for receiving a service data frame sent by a first service system;
the visible light sender packages the service data frame according to the message control information in the synchronous communication rule after receiving the service data frame to obtain at least one service data message, sends the service data message to the visible light receiver through a visible light unidirectional transmission channel, and accumulates the data length of the sent service data frame; the message control information comprises a message start bit, a message stop bit, a message length, a data length, message sequence information and filling information;
and the visible light sender sends an end message in the synchronous communication rule to a visible light receiver through a visible light one-way transmission channel when the accumulated data length of the sent service data frame reaches the data length in the message control information, so that the visible light receiver can terminate the data synchronization state based on the received end message and clear the synchronous communication rule at the same time.
2. The data isolation switching method according to claim 1, wherein: the synchronous communication rule further comprises a first preset time and a second preset time; after the synchronous communication rule is set, the visible light sender sends an initial message in the synchronous communication rule to a visible light receiver through a visible light one-way transmission channel according to a first preset number of times; and the visible light sender sends the ending message in the synchronous communication rule to the visible light receiver through a visible light one-way transmission channel according to a second preset time when the accumulated data length of the sent service data frame reaches the data length in the message control information.
3. The data isolation switching method according to claim 1, wherein: when the data length of the accumulated transmitted service data frame does not reach the data length in the message control information and the next service data frame transmitted by the first service system is not received, the visible light transmitting party retransmits the operation result and the service data message transmitted this time, so that the visible light receiving party can complete the lost message data according to the retransmitted service data message.
4. The data isolation switching method according to claim 1, wherein: after the visible light sender obtains the service data message, performing logical operation on the service data message, and sending an operation result along with the service data message to the visible light receiver through the visible light unidirectional transmission channel, so that the visible light receiver can judge the transmission state of the message based on the received operation result and the service data message;
after the visible light sender sends a service data message, an image acquisition device acquires a state picture of a state indicator lamp used by the visible light receiver for displaying the transmission state of the message, identifies the color of the state indicator lamp, determines the transmission state of the message according to the color of the state indicator lamp, and retransmits the sent operation result and the service data message when the transmission state of the message is abnormal transmission.
5. A data isolation exchange method based on visible light communication is applied to a visible light receiver and is characterized in that:
after the visible light receiving party is put into the synchronous communication rule, the visible light receiving party enters a data synchronization state when judging that the received message is an initial message according to the synchronous communication rule; the synchronous communication rule comprises a starting message, an ending message and message control information, wherein the message control information comprises a message starting bit, a message ending bit, a message length, a data length, message sequence information and filling information;
in a data synchronization state, after receiving a message through a visible light one-way transmission channel, the visible light receiving party decapsulates the service data message according to the message control information when judging that the current message is the service data message according to the synchronous communication rule, obtains a service data frame, and accumulates the data length of the received service data frame; and when the current message is judged to be the end message according to the synchronous communication rule and the data length of the accumulated received service data frame reaches the data length in the message control information, sending the accumulated acquired service data frame to a second service system, simultaneously ending the data synchronization state, and clearing the synchronous communication rule.
6. The data isolation switching method of claim 5, wherein: the synchronous communication rule further comprises a first preset time and a second preset time; the visible light sender judges the type of the current message as an initial message according to the synchronous communication rule, then accumulates the sending times of the initial message, and enters a data synchronization state when the accumulated sending times of the initial message reaches a first preset time;
and the visible light sender accumulates the sending times of the end message after judging that the type of the current message is the end message according to the synchronous communication rule, and ends the data synchronization state when the accumulated sending times of the end message reaches a second preset time.
7. The data isolation switching method of claim 5, wherein:
when the current message is a service data message, the visible light receiving party judges whether the transmission state of the message is abnormal transmission according to the message length in the message control information, and if the transmission state is abnormal transmission, when the service data message with the same message sequence information is received, the lost data is recovered according to the newly received service data message; if the transmission is not abnormal, when the service data message with the same message sequence information is received, the newly received service data message is directly discarded.
8. The data isolation switching method of claim 5, wherein:
if the operation result is received while the service data message is received, the visible light receiver performs logic operation on the service data message, compares the operation result obtained by calculation with the received operation result, and decapsulates the service data message according to the message control information when the comparison result is consistent to obtain a service data frame;
the visible light receiver also controls the state indicator lamp to emit light according to the comparison result, so that the visible light transmitter acquires a state picture of the state indicator lamp through the image acquisition device, identifies the color of the state indicator lamp, determines the message transmission state according to the color of the state indicator lamp, and retransmits the operation result and the service data message which are transmitted when the message transmission state is abnormal transmission.
9. A data isolation switching device based on visible light communication is applied to a visible light sending party and is characterized by comprising a first service module, a first processing module and a sending module, wherein the first processing module is respectively connected with the first service module and the sending module in a one-way mode;
the first service module is used for receiving a service data message sent by a first service system and sending the service data message to the first processing module;
the first processing module is used for sending an initial message in the synchronous communication rule to the sending module after the synchronous communication rule is put in, and waiting for receiving a service data frame sent by a first service system; the synchronous communication module is used for receiving a service data frame, packaging the service data frame according to the message control information in the synchronous communication rule to obtain at least one service data message, sending the service data message to the sending module, and meanwhile accumulating the data length of the sent service data frame; the message control information comprises a message start bit, a message stop bit, a message length, a data length, message sequence information and filling information; the synchronous communication module is used for sending an ending message in the synchronous communication rule to the sending module when the accumulated data length of the sent service data message reaches the data length in the message control information, and simultaneously clearing the synchronous communication rule;
and the sending module is used for converting the initial message, the ending message and the service data message into visible light signals and sending the visible light signals to a visible light receiver through a visible light unidirectional transmission channel.
10. A data isolation exchange device based on visible light communication is applied to a visible light receiver and is characterized in that: the data isolation switching device comprises a second service module, a second processing module and a receiving module, wherein the second processing module is respectively connected with the receiving module and the second service module in a one-way mode;
the receiving module is used for receiving the visible light signal sent by the sending module and converting the visible light signal into a data signal to obtain a message;
the second processing module is used for entering a data synchronization state when the received message is judged to be an initial message according to the synchronous communication rule after the synchronous communication rule is put in; the synchronous communication rule comprises a starting message, an ending message and message control information, wherein the message control information comprises a message starting bit, a message ending bit, a message length, a data length, message sequence information and filling information; the device is used for decapsulating the service data message according to the message control information to obtain a service data frame and accumulating the data length of the received service data frame when the current message is judged to be the service data message according to the synchronous communication rule after the message is received in a data synchronization state; when the current message is judged to be the end message according to the synchronous communication rule and the data length of the accumulated received service data frame reaches the data length in the message control information, the accumulated acquired service data frame is sent to the second service module, and the synchronous communication rule is cleared after the data synchronization state is ended; and the second service module is used for sending the accumulated service data frame to a second service system.
CN202110547501.1A 2021-05-19 2021-05-19 Data isolation exchange method and device based on visible light communication Active CN113347024B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110547501.1A CN113347024B (en) 2021-05-19 2021-05-19 Data isolation exchange method and device based on visible light communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110547501.1A CN113347024B (en) 2021-05-19 2021-05-19 Data isolation exchange method and device based on visible light communication

Publications (2)

Publication Number Publication Date
CN113347024A CN113347024A (en) 2021-09-03
CN113347024B true CN113347024B (en) 2022-03-15

Family

ID=77469666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110547501.1A Active CN113347024B (en) 2021-05-19 2021-05-19 Data isolation exchange method and device based on visible light communication

Country Status (1)

Country Link
CN (1) CN113347024B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104348607A (en) * 2013-07-29 2015-02-11 深圳光启创新技术有限公司 Method and device for automatically adjusting clock in visible light communication system
KR20160120855A (en) * 2015-04-08 2016-10-19 한국전자통신연구원 Transmission apparatus and method for data security
CN106850061A (en) * 2017-01-13 2017-06-13 邦彦技术股份有限公司 Visible light communication system and synchronous detection method thereof
CN106982115A (en) * 2017-03-30 2017-07-25 山东超越数控电子有限公司 The synchronous method and system of a kind of block cipher mode
CN110324115A (en) * 2019-06-10 2019-10-11 普联技术有限公司 A kind of data transmission method, device, storage medium and terminal device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101009803B1 (en) * 2008-02-21 2011-01-19 삼성전자주식회사 Method and apparatus for transmitting/receiving data using a visible light communication
DE102016220884A1 (en) * 2016-10-24 2018-04-26 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Variable partial packet lengths for telegram splitting in low-power networks
CN106850135B (en) * 2016-12-31 2020-04-14 华为技术有限公司 Interface data transmission method, data transmission interface and interface system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104348607A (en) * 2013-07-29 2015-02-11 深圳光启创新技术有限公司 Method and device for automatically adjusting clock in visible light communication system
KR20160120855A (en) * 2015-04-08 2016-10-19 한국전자통신연구원 Transmission apparatus and method for data security
CN106850061A (en) * 2017-01-13 2017-06-13 邦彦技术股份有限公司 Visible light communication system and synchronous detection method thereof
CN106982115A (en) * 2017-03-30 2017-07-25 山东超越数控电子有限公司 The synchronous method and system of a kind of block cipher mode
CN110324115A (en) * 2019-06-10 2019-10-11 普联技术有限公司 A kind of data transmission method, device, storage medium and terminal device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Broadcasting MAC protocol for IEEE 802.15.7 visible light communication;Nam-Tuan Le等;《2013 Fifth International Conference on Ubiquitous and Future Networks (ICUFN)》;20130930;全文 *
基于分数低阶OFDM可见光通信系统的研究;郑伟;《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》;20160315;全文 *

Also Published As

Publication number Publication date
CN113347024A (en) 2021-09-03

Similar Documents

Publication Publication Date Title
US9326215B2 (en) Method for performing handover procedure and creating data
CN110505656B (en) Data processing method, device and system
CN103782569B (en) Data processing equipment and method
CN103873177B (en) Secure messaging methods based on In-vehicle networking
US11528715B2 (en) Wireless communication system, base station, and communication method
US10959129B2 (en) Data transmission method, apparatus, and system, and device
CN101156396B (en) Data frame transmission processing method and system
EP3641258A1 (en) Data transmission method, related device and communication system
CN101848489A (en) Sending/receiving method and device of PDU (Protocol Data Unit)
WO2010045820A1 (en) Transmission device and transmission method for remote radio data
CN104618019A (en) WiFi (wireless fidelity) access system based on visible light transmission and data frame transformation method
CN107979847A (en) Method, apparatus, user equipment and the base station of data transfer
CN113328801B (en) Data encryption communication method and device based on visible light communication
CN113347024B (en) Data isolation exchange method and device based on visible light communication
CN114978961A (en) Time delay measuring method, device, equipment and computer readable storage medium
CN111355561B (en) Data retransmission indicating and processing method and device
KR20230156786A (en) Service quality flow transmission method, base station, terminal, and storage medium
CN111106871B (en) Data processing method, device, equipment and storage medium
CN113872677A (en) Information transmission method, information updating method, low-orbit communication satellite and terminal
CN102497311B (en) The method of transmission/receiver section expense, device and transmission system in SDH/SONET circuit simulation
CN104170486B (en) The processing method and system and device of terminal capacity report
CN107734555B (en) Data receiving and transmitting channel, data transmission method and device
CN116599833B (en) Method and device for performing fault investigation on forwarding network
WO2024065471A1 (en) Wireless communication method and device
CN102223272B (en) System and method for improving data service bandwidth of cable television network

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
GR01 Patent grant
GR01 Patent grant