CN117240547A - Data processing method, transmitting end and receiving end - Google Patents

Data processing method, transmitting end and receiving end Download PDF

Info

Publication number
CN117240547A
CN117240547A CN202311198520.3A CN202311198520A CN117240547A CN 117240547 A CN117240547 A CN 117240547A CN 202311198520 A CN202311198520 A CN 202311198520A CN 117240547 A CN117240547 A CN 117240547A
Authority
CN
China
Prior art keywords
light
character
sequence
preset
color
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
CN202311198520.3A
Other languages
Chinese (zh)
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202311198520.3A priority Critical patent/CN117240547A/en
Publication of CN117240547A publication Critical patent/CN117240547A/en
Pending legal-status Critical Current

Links

Abstract

The application discloses a data processing method, a transmitting end and a receiving end, which can be applied to the field of big data or the field of finance. The method comprises the steps that a sending end matches original data with a preset character coding table to obtain a character coding sequence, light colors corresponding to all characters in the character coding sequence are sequentially determined based on the preset light coding table, and light wavelengths corresponding to all the light colors are sequentially emitted to a receiving end according to the sequence of all the light colors in the character coding sequence based on preset emission frequency. According to the application, the original data is converted into the character coding sequence, and then each character in the character coding sequence is converted into the light rays with the corresponding color, so that the original data is encrypted into the light rays to be sent to the receiving end, the whole data transmission process is not easy to steal, and even if the original data is stolen, the light rays are transmitted instead of the original data, so that the situation of data leakage is avoided, and the safety of data transmission in a middle-short distance range is greatly improved.

Description

Data processing method, transmitting end and receiving end
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data processing method, a transmitting end, and a receiving end.
Background
Currently, communication within a short-and-medium range is usually implemented by means of a signal device laid between two transmission devices. However, the security of the signal device is not high, so that data is easy to steal in the transmission process of the signal device, and the data is at risk of leakage.
Therefore, how to improve the security of data transmission in the middle-short distance range is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, the present application discloses a data processing method, a transmitting end and a receiving end, so as to improve the security of data transmission in a medium-short distance range.
A data processing method applied to a transmitting end, the data processing method comprising:
matching the original data with a preset character coding table to obtain a character coding sequence;
sequentially determining the light colors corresponding to all characters in the character coding sequence based on a preset light coding table;
and based on a preset emission frequency, sequentially emitting light wavelengths corresponding to the light colors to a receiving end according to the sequence of the light colors in the character coding sequence.
Optionally, the method further comprises:
and when the light emission is finished, sending an ending mark to the receiving end.
Optionally, when the character coding sequence is a binary coding sequence, the determining, based on a preset light coding table, the light color corresponding to each character in the character coding sequence sequentially includes:
determining the light color sequence corresponding to the binary coding sequence according to the sequence of the character 1 and the character 0 in the binary coding sequence based on the preset light coding table;
the preset light encoding table records that a character 1 corresponds to red light and a character 0 corresponds to non-red light.
A data processing method applied to a receiving end, the data processing method comprising:
acquiring each light wavelength sequentially transmitted by a transmitting end based on a preset transmitting frequency;
sequentially determining the light color corresponding to each light wavelength according to the sequence of acquiring the light wavelength;
based on a preset light coding table, sequentially determining characters corresponding to each light color according to the arrangement sequence of each light color to obtain a character coding sequence;
and matching each character in the character coding sequence with a preset character coding table to obtain original data.
Optionally, the determining, in order of obtaining the sequence of each light wavelength, a light color corresponding to each light wavelength includes:
sequentially determining the light color corresponding to each light wavelength according to the sequence of acquiring the light wavelength;
and stopping determining the light color when receiving the ending mark sent by the sending end.
Optionally, when the character coding sequence is a binary coding sequence, determining, based on a preset light coding table, the characters corresponding to each light color in sequence according to the arrangement sequence of the light colors, to obtain a character coding sequence, including:
based on the preset light ray encoding table, sequentially determining that the character corresponding to each light ray color is 1 or 0 according to the arrangement sequence of each light ray color to obtain the binary encoding sequence;
the preset light encoding table records that a character 1 corresponds to red light and a character 0 corresponds to non-red light.
A transmitting end comprising:
the first matching unit is used for matching the original data with a preset character encoding table to obtain a character encoding sequence;
the first light color determining unit is used for sequentially determining the light colors corresponding to all characters in the character coding sequence based on a preset light coding table;
and the transmitting unit is used for sequentially transmitting the light wavelengths corresponding to the light colors to the receiving end according to the sequence of the light colors in the character coding sequence based on the preset transmitting frequency.
Optionally, the method further comprises:
and the ending mark transmitting unit is used for transmitting the ending mark to the receiving end when the light emission is ended.
A receiving end, comprising:
the acquisition unit is used for acquiring each light wavelength sequentially transmitted by the transmitting end based on a preset transmitting frequency;
the second light color determining unit is used for sequentially determining the light color corresponding to each light wavelength according to the sequence of acquiring the light wavelengths;
the character determining unit is used for sequentially determining characters corresponding to each light color according to the arrangement sequence of the light colors based on a preset light encoding table to obtain a character encoding sequence;
and the second matching unit is used for matching each character in the character coding sequence with a preset character coding table to obtain original data.
Optionally, the second light color determining unit is specifically configured to:
sequentially determining the light color corresponding to each light wavelength according to the sequence of acquiring the light wavelength;
and stopping determining the light color when receiving the ending mark sent by the sending end.
According to the technical scheme, the data processing method, the sending end and the receiving end disclosed by the application, the sending end matches the original data with the preset character coding table to obtain the character coding sequence, the light colors corresponding to the characters in the character coding sequence are sequentially determined based on the preset light coding table, and the light wavelengths corresponding to the light colors are sequentially emitted to the receiving end according to the sequence of the light colors in the character coding sequence based on the preset emission frequency. According to the application, the original data is converted into the character coding sequence, and then each character in the character coding sequence is converted into the light rays with the corresponding color, so that the original data is encrypted into the light rays to be sent to the receiving end, the whole data transmission process is not easy to steal, and even if the original data is stolen, the light rays are transmitted instead of the original data, so that the situation of data leakage is avoided, and the safety of data transmission in a middle-short distance range is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the disclosed drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a data processing method according to an embodiment of the present application;
FIG. 2 is a flowchart of another data processing method according to an embodiment of the present application;
FIG. 3 is a flowchart of another data processing method according to an embodiment of the present application;
FIG. 4 is a flowchart of a method for sequentially determining the color of light corresponding to each light wavelength according to the sequence of obtaining the wavelengths of the light according to the embodiment of the present application;
fig. 5 is a schematic structural diagram of a transmitting end according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a receiving end according to an embodiment of the present application.
Detailed Description
It should be noted that the data processing method, the sending end and the receiving end provided by the application can be used in the big data field or the financial field. The foregoing is merely an example, and is not intended to limit the application fields of a data processing method, a sending end, and a receiving end provided by the present application.
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment of the application discloses a data processing method, a transmitting end and a receiving end, wherein the transmitting end matches original data with a preset character coding table to obtain a character coding sequence, light colors corresponding to all characters in the character coding sequence are sequentially determined based on the preset light coding table, and light wavelengths corresponding to all the light colors are sequentially transmitted to the receiving end according to the sequence of all the light colors in the character coding sequence based on preset transmitting frequency. According to the application, the original data is converted into the character coding sequence, and then each character in the character coding sequence is converted into the light rays with the corresponding color, so that the original data is encrypted into the light rays to be sent to the receiving end, the whole data transmission process is not easy to steal, and even if the original data is stolen, the light rays are transmitted instead of the original data, so that the situation of data leakage is avoided, and the safety of data transmission in a middle-short distance range is greatly improved.
Referring to fig. 1, a flowchart of a data processing method disclosed in an embodiment of the present application is applied to a transmitting end, where the data processing method includes:
step S101, matching the original data with a preset character encoding table to obtain a character encoding sequence.
In this embodiment, the transmitting end is in communication connection with the receiving end, and the original data is the data that the transmitting end needs to transmit to the receiving end. It should be noted that, the data (including, but not limited to, data for analysis, stored data, displayed data, etc.) related to the present application are all information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region.
Each data and the corresponding code value are recorded in the preset code table, and the code value can be a binary value, a hexadecimal value and the like, and is specific according to actual needs, and the application is not limited herein.
According to the embodiment, the character coding sequence corresponding to the original data can be obtained by matching the original data with the preset coding table.
Step S102, based on a preset ray encoding table, sequentially determining the ray colors corresponding to all characters in the character encoding sequence.
The preset light encoding table records light colors corresponding to different characters, for example, character 1 corresponds to red and character 0 corresponds to non-red, so that the light colors corresponding to the characters in the character encoding sequence can be determined by matching the characters in the character encoding sequence with the preset light encoding table.
Step 103, based on a preset emission frequency, sequentially emitting light wavelengths corresponding to the light colors to a receiving end according to the sequence of the light colors in the character coding sequence.
In this embodiment, the preset emission frequency, that is, the interval time between adjacent light wavelength transmissions, is determined according to actual needs, for example, the preset emission frequency is 0.5s, which is not limited herein.
After the light colors corresponding to the characters in the character coding sequence are determined based on the preset light coding table, light wavelengths corresponding to the light colors can be sequentially transmitted to the receiving end at intervals of preset transmitting frequencies, so that the encryption transmission of the original data is realized.
It should be noted that, when the transmitting end transmits light to the receiving end, the light intensity is adjusted according to the distance between the transmitting end and the receiving end, so that the light body received by the receiving end must be ensured to be clear.
Since the propagation speed of light is fast, the transmission rate of data can be ensured by increasing the preset emission frequency of light.
As can be seen from the foregoing, the present application discloses a data processing method, in which a transmitting end matches original data with a preset character encoding table to obtain a character encoding sequence, light colors corresponding to respective characters in the character encoding sequence are sequentially determined based on the preset light encoding table, and light wavelengths corresponding to respective light colors are sequentially transmitted to a receiving end according to the sequence of the respective light colors in the character encoding sequence based on a preset transmitting frequency. According to the application, the original data is converted into the character coding sequence, and then each character in the character coding sequence is converted into the light rays with the corresponding color, so that the original data is encrypted into the light rays to be sent to the receiving end, the whole data transmission process is not easy to steal, and even if the original data is stolen, the light rays are transmitted instead of the original data, so that the situation of data leakage is avoided, and the safety of data transmission in a middle-short distance range is greatly improved.
It should be specifically noted that, the transmitting end executing the data processing procedure in this embodiment may perform conversion processing on the data, or may send the light obtained by encrypting the original data to the receiving end.
In order to further optimize the foregoing embodiment, referring to fig. 2, another flowchart of a data processing method disclosed in the embodiment of the present application may further include, after step S103, on the basis of the embodiment shown in fig. 1:
and step S104, when the light emission is finished, sending a finishing mark to the receiving end.
After the transmitting end transmits the light to the receiving end, the transmitting end transmits an end mark (such as a preset binary number) set in advance to the receiving end, so that the receiving end determines the last light received.
In practical applications, the character encoding sequence may be a binary encoding sequence, a hexadecimal encoding sequence, or the like.
Taking the character encoding sequence as a binary encoding sequence as an example, the step S102 may specifically include:
determining the light color sequence corresponding to the binary coding sequence according to the sequence of the character 1 and the character 0 in the binary coding sequence based on a preset light coding table;
the preset light encoding table records that character 1 corresponds to red light and character 0 corresponds to non-red light.
For example, the predetermined character encoding table is a binary encoding table.
The colors of light are divided into two types: red light and non-red light, wherein character 1 corresponds to red light and character 0 corresponds to non-red light.
The original data to be transmitted is matched with a binary coding table to obtain binary values 01011101, the preset transmitting frequency is 0.5 s/each time, and red light rays are transmitted from the transmitting end to the receiving end at the time of 0.5s, 1.5s, 2s, 2.5s and 3.5s, and non-red light rays are transmitted at the time of 0s, 1s and 3 s.
Corresponding to the above embodiment, referring to fig. 3, another flowchart of a data processing method disclosed in an embodiment of the present application is applied to a receiving end, where the data processing method includes:
step 201, acquiring each light wavelength sequentially transmitted by the transmitting end based on a preset transmitting frequency.
In this embodiment, the preset emission frequency, that is, the interval time between adjacent light wavelength transmissions, is determined according to actual needs, for example, the preset emission frequency is 0.5s, which is not limited herein.
After determining the light colors corresponding to the characters in the character coding sequence based on the preset light coding table, the transmitting end can sequentially transmit the light wavelengths corresponding to the light colors to the receiving end at intervals of preset transmitting frequencies, so that the encryption transmission of the original data is realized.
It should be noted that, when the transmitting end transmits light to the receiving end, the light intensity is adjusted according to the distance between the transmitting end and the receiving end, so that the light body received by the receiving end must be ensured to be clear.
Since the propagation speed of light is fast, the transmission rate of data can be ensured by increasing the preset emission frequency of light.
Step S202, determining the light color corresponding to each light wavelength in sequence according to the sequence of obtaining the light wavelengths.
In practical application, the receiving end sequentially receives the light wavelengths corresponding to the light colors of each light wavelength, so that the light colors corresponding to the light wavelengths can be sequentially determined.
Step 203, based on a preset light coding table, determining the characters corresponding to each light color in sequence according to the arrangement sequence of the light colors, and obtaining a character coding sequence.
The preset light encoding table records light colors corresponding to different characters, for example, character 1 corresponds to red and character 0 corresponds to non-red, so that the interface determines the characters corresponding to the light colors by matching the light colors with the preset light encoding table, thereby obtaining a character encoding sequence.
Step S204, each character in the character coding sequence is matched with a preset character coding table, and original data are obtained.
Each data and the corresponding code value are recorded in the preset code table, and the code value can be a binary value, a hexadecimal value and the like, and is specific according to actual needs, and the application is not limited herein.
According to the embodiment, the data corresponding to each character can be obtained by matching each character in the character coding sequence with the preset character coding table, and the original data which needs to be sent to the receiving end by the sending end can be obtained by splicing all the data obtained by matching in sequence.
As can be seen from the above, the application discloses a data processing method, wherein a receiving end receives and acquires each light wavelength sequentially transmitted by a transmitting end based on a preset transmitting frequency, sequentially determines the light color corresponding to each light wavelength according to the sequence of acquiring each light wavelength, sequentially determines the character corresponding to each light color according to the preset light color arrangement sequence based on a preset light encoding table, obtains a character encoding sequence, and obtains original data by matching each character in the character encoding sequence with the preset character encoding table. According to the application, the original data is converted into the character coding sequence, and then each character in the character coding sequence is converted into the light rays with the corresponding color, so that the original data is encrypted into the light rays to be sent to the receiving end, the whole data transmission process is not easy to steal, and even if the original data is stolen, the light rays are transmitted instead of the original data, so that the situation of data leakage is avoided, and the safety of data transmission in a middle-short distance range is greatly improved.
In order to further optimize the foregoing embodiments, referring to fig. 4, a flowchart of a method for sequentially determining a light color corresponding to each light wavelength according to a sequence of obtaining each light wavelength disclosed in the embodiment of the present application, that is, step S202 may specifically include:
step S301, determining the light color corresponding to each light wavelength in sequence according to the sequence of obtaining the light wavelengths.
In practical application, after the light wavelength is determined, the corresponding light color is also determined correspondingly, and because the transmitting end sequentially transmits the corresponding light wavelength according to the light color corresponding to each character in the character coding sequence, the receiving end sequentially acquires each light wavelength. In order to ensure the accuracy of the subsequent character coding sequence, the receiving end sequentially determines the colors of the light rays which do not correspond to the wavelengths of the light rays according to the sequence of the wavelengths of the received light rays.
Step S302, stopping determining the light color when receiving the end mark sent by the sending end.
After the transmitting end transmits the light to the receiving end, the transmitting end transmits an end mark (such as a preset binary number) set in advance to the receiving end, so that the receiving end determines the last light received. Therefore, when the receiving end receives the end flag, the confirmation of the light color is stopped.
In practical applications, the character encoding sequence may be a binary encoding sequence, a hexadecimal encoding sequence, or the like.
Taking the character encoding sequence as a binary encoding sequence as an example, step S203 may specifically include:
based on the preset light coding table, sequentially determining that the character corresponding to each light color is 1 or 0 according to the arrangement sequence of each light color to obtain a binary coding sequence;
the preset light encoding table records that character 1 corresponds to red light and character 0 corresponds to non-red light.
For example, the predetermined character encoding table is a binary encoding table, and the predetermined transmission frequency is 0.5 s/each time.
The colors of light are divided into two types: red light and non-red light, wherein character 1 corresponds to red light and character 0 corresponds to non-red light.
When the receiving end receives red light at 0.5s, 1.5s, 2s, 2.5s and 3.5s and receives non-red light at 0s, 1s and 3s, a binary coding sequence can be obtained by matching a binary coding table, wherein the binary coding sequence is as follows: 01011101.
corresponding to the embodiment, the application also discloses a transmitting end.
Referring to fig. 5, a schematic structural diagram of a transmitting end disclosed in an embodiment of the present application, the transmitting end includes:
the first matching unit 401 is configured to match the original data with a preset character encoding table, so as to obtain a character encoding sequence.
Each data and the corresponding code value are recorded in the preset code table, and the code value can be a binary value, a hexadecimal value and the like, and is specific according to actual needs, and the application is not limited herein.
According to the embodiment, the character coding sequence corresponding to the original data can be obtained by matching the original data with the preset coding table.
The first light color determining unit 402 is configured to sequentially determine light colors corresponding to respective characters in the character encoding sequence based on a preset light encoding table.
The preset light encoding table records light colors corresponding to different characters, for example, character 1 corresponds to red and character 0 corresponds to non-red, so that the light colors corresponding to the characters in the character encoding sequence can be determined by matching the characters in the character encoding sequence with the preset light encoding table.
And the transmitting unit 403 is configured to sequentially transmit, to a receiving end, light wavelengths corresponding to the light colors according to the order of the light colors in the character encoding sequence based on a preset transmitting frequency.
In this embodiment, the preset emission frequency, that is, the interval time between adjacent light wavelength transmissions, is determined according to actual needs, for example, the preset emission frequency is 0.5s, which is not limited herein.
After the light colors corresponding to the characters in the character coding sequence are determined based on the preset light coding table, light wavelengths corresponding to the light colors can be sequentially transmitted to the receiving end at intervals of preset transmitting frequencies, so that the encryption transmission of the original data is realized.
It should be noted that, when the transmitting end transmits light to the receiving end, the light intensity is adjusted according to the distance between the transmitting end and the receiving end, so that the light body received by the receiving end must be ensured to be clear.
Since the propagation speed of light is fast, the transmission rate of data can be ensured by increasing the preset emission frequency of light.
As can be seen from the above, the application discloses a transmitting end, which matches original data with a preset character encoding table to obtain a character encoding sequence, sequentially determines light colors corresponding to each character in the character encoding sequence based on the preset light encoding table, and sequentially transmits light wavelengths corresponding to each light color to a receiving end according to the sequence of each light color in the character encoding sequence based on preset transmitting frequency. According to the application, the original data is converted into the character coding sequence, and then each character in the character coding sequence is converted into the light rays with the corresponding color, so that the original data is encrypted into the light rays to be sent to the receiving end, the whole data transmission process is not easy to steal, and even if the original data is stolen, the light rays are transmitted instead of the original data, so that the situation of data leakage is avoided, and the safety of data transmission in a middle-short distance range is greatly improved.
It should be specifically noted that, the transmitting end executing the data processing procedure in this embodiment may perform conversion processing on the data, or may send the light obtained by encrypting the original data to the receiving end.
To further optimize the above embodiment, the transmitting end may further include:
and the ending mark transmitting unit is used for transmitting the ending mark to the receiving end when the light emission is ended.
After the transmitting end transmits the light to the receiving end, the transmitting end transmits an end mark (such as a preset binary number) set in advance to the receiving end, so that the receiving end determines the last light received.
To further optimize the above embodiment, the first light color determination unit 402 may specifically be configured to:
when the character coding sequence is a binary coding sequence, determining the light color sequencing corresponding to the binary coding sequence according to the sequence of the character 1 and the character 0 in the binary coding sequence based on the preset light coding table;
the preset light encoding table records that a character 1 corresponds to red light and a character 0 corresponds to non-red light.
For example, the predetermined character encoding table is a binary encoding table.
The colors of light are divided into two types: red light and non-red light, wherein character 1 corresponds to red light and character 0 corresponds to non-red light.
The original data to be transmitted is matched with a binary coding table to obtain binary values 01011101, the preset transmitting frequency is 0.5 s/each time, and red light rays are transmitted from the transmitting end to the receiving end at the time of 0.5s, 1.5s, 2s, 2.5s and 3.5s, and non-red light rays are transmitted at the time of 0s, 1s and 3 s.
Corresponding to the above embodiment, referring to fig. 6, the present application also discloses a schematic structural diagram of a receiving end, where the receiving end may include:
an obtaining unit 501, configured to obtain each light wavelength sequentially sent by a sending end based on a preset sending frequency;
in this embodiment, the preset emission frequency, that is, the interval time between adjacent light wavelength transmissions, is determined according to actual needs, for example, the preset emission frequency is 0.5s, which is not limited herein.
After determining the light colors corresponding to the characters in the character coding sequence based on the preset light coding table, the transmitting end can sequentially transmit the light wavelengths corresponding to the light colors to the receiving end at intervals of preset transmitting frequencies, so that the encryption transmission of the original data is realized.
It should be noted that, when the transmitting end transmits light to the receiving end, the light intensity is adjusted according to the distance between the transmitting end and the receiving end, so that the light body received by the receiving end must be ensured to be clear.
Since the propagation speed of light is fast, the transmission rate of data can be ensured by increasing the preset emission frequency of light.
A second light color determining unit 502, configured to sequentially determine a light color corresponding to each light wavelength according to a sequence of acquiring the light wavelengths;
in practical application, the receiving end sequentially receives the light wavelengths corresponding to the light colors of each light wavelength, so that the light colors corresponding to the light wavelengths can be sequentially determined.
A character determining unit 503, configured to sequentially determine, based on a preset light encoding table, characters corresponding to each light color according to each light color arrangement order, so as to obtain a character encoding sequence;
the preset light encoding table records light colors corresponding to different characters, for example, character 1 corresponds to red and character 0 corresponds to non-red, so that the interface determines the characters corresponding to the light colors by matching the light colors with the preset light encoding table, thereby obtaining a character encoding sequence.
And a second matching unit 504, configured to match each of the characters in the character encoding sequence with a preset character encoding table, so as to obtain original data.
Each data and the corresponding code value are recorded in the preset code table, and the code value can be a binary value, a hexadecimal value and the like, and is specific according to actual needs, and the application is not limited herein.
According to the embodiment, the data corresponding to each character can be obtained by matching each character in the character coding sequence with the preset character coding table, and the original data which needs to be sent to the receiving end by the sending end can be obtained by splicing all the data obtained by matching in sequence.
As can be seen from the above, the application discloses a receiving end, which is used for receiving and acquiring each light wavelength sequentially transmitted by a transmitting end based on a preset transmitting frequency, sequentially determining the light color corresponding to each light wavelength according to the sequence of acquiring each light wavelength, sequentially determining the character corresponding to each light color according to the arrangement sequence of each light color based on a preset light coding table, obtaining a character coding sequence, and obtaining original data by matching each character in the character coding sequence with the preset character coding table. According to the application, the original data is converted into the character coding sequence, and then each character in the character coding sequence is converted into the light rays with the corresponding color, so that the original data is encrypted into the light rays to be sent to the receiving end, the whole data transmission process is not easy to steal, and even if the original data is stolen, the light rays are transmitted instead of the original data, so that the situation of data leakage is avoided, and the safety of data transmission in a middle-short distance range is greatly improved.
To further optimize the above embodiment, the second light color determination unit 502 may specifically be configured to:
sequentially determining the light color corresponding to each light wavelength according to the sequence of acquiring the light wavelength;
and stopping determining the light color when receiving the ending mark sent by the sending end.
To further optimize the above embodiment, the character determining unit 503 may specifically be configured to:
when the character coding sequence is a binary coding sequence, based on the preset light coding table, sequentially determining that the character corresponding to each light color is 1 or 0 according to the arrangement sequence of each light color, so as to obtain the binary coding sequence;
the preset light encoding table records that a character 1 corresponds to red light and a character 0 corresponds to non-red light.
The specific operation principle of the embodiment parts shown in the transmitting end and the receiving end should be specifically described, please refer to the corresponding parts of the method embodiment, and the detailed description is omitted herein.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A data processing method, applied to a transmitting end, the data processing method comprising:
matching the original data with a preset character coding table to obtain a character coding sequence;
sequentially determining the light colors corresponding to all characters in the character coding sequence based on a preset light coding table;
and based on a preset emission frequency, sequentially emitting light wavelengths corresponding to the light colors to a receiving end according to the sequence of the light colors in the character coding sequence.
2. The data processing method according to claim 1, characterized by further comprising:
and when the light emission is finished, sending an ending mark to the receiving end.
3. The data processing method according to claim 1 or 2, wherein when the character encoding sequence is a binary encoding sequence, the determining, based on a preset light encoding table, the light color corresponding to each character in the character encoding sequence sequentially includes:
determining the light color sequence corresponding to the binary coding sequence according to the sequence of the character 1 and the character 0 in the binary coding sequence based on the preset light coding table;
the preset light encoding table records that a character 1 corresponds to red light and a character 0 corresponds to non-red light.
4. A data processing method, applied to a receiving end, the data processing method comprising:
acquiring each light wavelength sequentially transmitted by a transmitting end based on a preset transmitting frequency;
sequentially determining the light color corresponding to each light wavelength according to the sequence of acquiring the light wavelength;
based on a preset light coding table, sequentially determining characters corresponding to each light color according to the arrangement sequence of each light color to obtain a character coding sequence;
and matching each character in the character coding sequence with a preset character coding table to obtain original data.
5. The method of claim 4, wherein sequentially determining the color of each light ray corresponding to the wavelength of each light ray according to the order in which the wavelengths of each light ray are obtained, comprises:
sequentially determining the light color corresponding to each light wavelength according to the sequence of acquiring the light wavelength;
and stopping determining the light color when receiving the ending mark sent by the sending end.
6. The method for processing data according to claim 4 or 5, wherein when the character code sequence is a binary code sequence, determining the character corresponding to each light color in turn according to the light color arrangement sequence based on a preset light code table, to obtain a character code sequence, includes:
based on the preset light ray encoding table, sequentially determining that the character corresponding to each light ray color is 1 or 0 according to the arrangement sequence of each light ray color to obtain the binary encoding sequence;
the preset light encoding table records that a character 1 corresponds to red light and a character 0 corresponds to non-red light.
7. A transmitting terminal, comprising:
the first matching unit is used for matching the original data with a preset character encoding table to obtain a character encoding sequence;
the first light color determining unit is used for sequentially determining the light colors corresponding to all characters in the character coding sequence based on a preset light coding table;
and the transmitting unit is used for sequentially transmitting the light wavelengths corresponding to the light colors to the receiving end according to the sequence of the light colors in the character coding sequence based on the preset transmitting frequency.
8. The transmitting end of claim 7, further comprising:
and the ending mark transmitting unit is used for transmitting the ending mark to the receiving end when the light emission is ended.
9. A receiving terminal, comprising:
the acquisition unit is used for acquiring each light wavelength sequentially transmitted by the transmitting end based on a preset transmitting frequency;
the second light color determining unit is used for sequentially determining the light color corresponding to each light wavelength according to the sequence of acquiring the light wavelengths;
the character determining unit is used for sequentially determining characters corresponding to each light color according to the arrangement sequence of the light colors based on a preset light encoding table to obtain a character encoding sequence;
and the second matching unit is used for matching each character in the character coding sequence with a preset character coding table to obtain original data.
10. The receiving end according to claim 9, wherein the second light color determining unit is specifically configured to:
sequentially determining the light color corresponding to each light wavelength according to the sequence of acquiring the light wavelength;
and stopping determining the light color when receiving the ending mark sent by the sending end.
CN202311198520.3A 2023-09-15 2023-09-15 Data processing method, transmitting end and receiving end Pending CN117240547A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311198520.3A CN117240547A (en) 2023-09-15 2023-09-15 Data processing method, transmitting end and receiving end

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311198520.3A CN117240547A (en) 2023-09-15 2023-09-15 Data processing method, transmitting end and receiving end

Publications (1)

Publication Number Publication Date
CN117240547A true CN117240547A (en) 2023-12-15

Family

ID=89096221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311198520.3A Pending CN117240547A (en) 2023-09-15 2023-09-15 Data processing method, transmitting end and receiving end

Country Status (1)

Country Link
CN (1) CN117240547A (en)

Similar Documents

Publication Publication Date Title
RU2581621C2 (en) Lighting system, light source, device and method for authorisation of light source
US10200257B2 (en) Indirect device communication
CN108962239B (en) Rapid network distribution method and system based on voice masking
CN103248416B (en) A kind of method and apparatus of information transmission
CN103795487B (en) Visible optical signal sending processing method, receiving processing method, and processing system, and visible optical signal transmission terminal and receiving terminal
CN103795471A (en) Optical or acoustic communication method and system
US20070123165A1 (en) Methods, systems and devices for assisted discovery in bluetooth enabled devices
CN103354461B (en) A kind of near field communication system and method based on sound
KR20120037330A (en) Log-in method and system using image objects
CN104427471A (en) Method for automatically establishing connection of mobile network and terminal
KR20160037204A (en) Multi-stage amplitude modulation-based methods, apparatuses and systems for coding and decoding visible light signal
CN103812657A (en) Authentication method
JP2011199381A (en) Radio communication method and system, and radio communication device of the same
CN105635162A (en) Combination method for achieving network isolation access type data communication
CN103108293B (en) Information identifying method and system thereof
US9980141B2 (en) User authentication method using phone number and one of NFC apparatus and beacon
CN113098629A (en) Network distribution method, device and storage medium
US20170223613A1 (en) Connecting one electronic device to internet through another electronic device
CN117240547A (en) Data processing method, transmitting end and receiving end
CN203859753U (en) Optical communication system and transmitting terminal and receiving terminal thereof, or acoustic wave communication system and transmitting terminal and receiving terminal thereof
US20130324085A1 (en) System to identify whether a text message is from a trusted source
CN116347656A (en) Bluetooth encryption connection method and device and electronic equipment
KR101718368B1 (en) System and method of a security communication using biometrics
CN204808366U (en) Read write line, label and tag system
CN204044880U (en) The system of information interaction, payment terminal and receiver module thereof is carried out based on POS

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