CN-121984640-A - Optical fiber data communication method, data transceiver and electric power meter checking system
Abstract
The application relates to the technical field of data communication and discloses an optical fiber data communication method, a data transceiver and an electric power meter checking system, which are applied to a data transmitting end, wherein the method comprises the steps of acquiring initial communication data to be communicated, determining first communication frame data according to the initial communication data, wherein each data byte frame in the first communication frame data has an adjacent and complementary byte frame, and the level of the complementary byte frames is opposite to the level of the data byte frame; and determining first target communication data according to the first communication frame data, and sending the first target communication data to a data receiving end so as to realize optical fiber data communication based on second target communication data, wherein the first target communication data is processed at the data receiving end to obtain the second target communication data. The application is based on a new communication mode to realize the data communication on the optical fiber.
Inventors
- ZHANG JUNHENG
- FAN JIASHUAN
- LIU MINGZHONG
- GAN KUNLU
- GUO FENGBING
- ZHANG JUAN
- CHEN HUA
Assignees
- 深圳市科陆智慧工业有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260120
Claims (10)
- 1. The optical fiber data communication method is characterized by being applied to a data transmitting end, and comprises the following steps of: Acquiring initial communication data to be communicated, and determining first communication frame data according to the initial communication data, wherein each data byte frame in the first communication frame data has an adjacent and complementary byte frame, and the level of the complementary byte frame and the level of the data byte frame are opposite; And determining first target communication data according to the first communication frame data, and sending the first target communication data to a data receiving end, wherein the first target communication data is processed at the data receiving end to obtain second target communication data so as to realize optical fiber data communication based on the second target communication data.
- 2. The optical fiber data communication method according to claim 1, wherein the step of determining the first communication frame data from the initial communication data comprises: determining a data byte frame in the initial communication data, and determining a complementary byte frame corresponding to the data byte frame; and expanding the initial communication data according to the complementary byte frames to obtain first communication frame data, wherein the expanding comprises newly adding the complementary byte frames corresponding to the data byte frames at adjacent positions of each data byte frame.
- 3. The optical fiber data communication method according to claim 1, wherein the step of determining first target communication data from the first communication frame data comprises: Determining an initial data byte frame in the first communication frame data, and writing a preset idle byte frame in at least the previous frame of the initial data byte frame; determining an end data byte frame in the first communication frame data, writing the idle byte frame in at least the later frame of the end data byte frame, and taking the communication frame data written in the idle byte frame as first target communication data.
- 4. The fiber optic data communication method of claim 3, further comprising: Writing a preset interval byte frame in a frame between the idle byte frame and the initial data byte frame, writing the interval byte frame in a frame between the idle byte frame and the terminal data byte frame, and taking the communication frame data written in the interval byte frame as first target communication data.
- 5. The optical fiber data communication method according to any one of claims 1 to 4, wherein before the step of determining first communication frame data from the initial communication data, comprising: And determining a data byte frame in the initial communication data, writing a data start bit at the starting position of the data byte frame, and writing a data stop bit at the end position of the data byte frame.
- 6. The optical fiber data communication method is characterized by being applied to a data receiving end, and comprises the following steps of: acquiring first target communication data sent by a data sending end, and determining second communication frame data according to the first target communication data, wherein the first target communication data is obtained by performing coding processing based on initial communication data in the data sending end; And determining second target communication data according to the second communication frame data so as to realize optical fiber data communication based on the second target communication data.
- 7. The fiber optic data communication method of claim 6, wherein the step of determining second communication frame data from the first target communication data comprises: And determining preset idle byte frames in the first target communication data, and determining data frames among the idle byte frames as second communication frame data.
- 8. The fiber optic data communication method of claim 6, wherein the step of determining second target communication data from the second communication frame data comprises: Sequentially determining a target data frame in the second communication frame data, wherein the target data frame comprises a pair of adjacent and complementary byte frames and data byte frames; and determining a target data byte frame in the target data frames based on a preset decoding rule, and taking all target data byte frames in the second communication frame data as second target communication data.
- 9. A data transceiver, the data transceiver comprising; A data transmitting end and an optical fiber; The data receiving end is connected with the data transmitting end through the optical fiber; Wherein the data transmitting end is configured to perform the steps of the optical fiber data communication method according to any one of claims 1 to 5, and the data receiving end is configured to perform the steps of the optical fiber data communication method according to any one of claims 6 to 8.
- 10. A power meter system, comprising: A data transceiver for performing the steps of the optical fiber data communication method of any one of claims 1 to 8.
Description
Optical fiber data communication method, data transceiver and electric power meter checking system Technical Field The present application relates to the field of data communications technologies, and in particular, to an optical fiber data communication method, a data transceiver, and an electric power meter system. Background With the development of data communication technology, this also makes higher demands on data communication over optical fibers by users. The traditional data communication method uses a BMC (Binary-PhaseMarkCode) coding mode to realize data communication on an optical fiber, wherein the main principle of BMC coding is that at least one level change exists between every two code elements to enable a direct current component to be zero during communication so as to ensure normal communication. The data communication method has great defects, because the controller for realizing the data communication does not have peripheral related coding and decoding hardware, but the BMC coding needs to consume a large amount of computing resources in the controller, and therefore, a new communication mode is needed to realize the data communication on the optical fiber. The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present application and is not intended to represent an admission that the foregoing is prior art. Disclosure of Invention The application mainly aims to provide an optical fiber data communication method, a data transceiver and a power meter checking system, and aims to realize data communication on an optical fiber based on a new communication mode. In order to achieve the above object, the present application provides an optical fiber data communication method, which is applied to a data transmitting end, and includes the following steps: Acquiring initial communication data to be communicated, and determining first communication frame data according to the initial communication data, wherein each data byte frame in the first communication frame data has an adjacent and complementary byte frame, and the level of the complementary byte frame and the level of the data byte frame are opposite; And determining first target communication data according to the first communication frame data, and sending the first target communication data to a data receiving end so as to realize optical fiber data communication based on the second target communication data, wherein the first target communication data is processed at the data receiving end to obtain the second target communication data. In one embodiment, the step of determining the first communication frame data according to the initial communication data includes: sequentially determining data byte frames in the initial communication data, and determining complementary byte frames corresponding to the data byte frames; and expanding the initial communication data according to the complementary byte frames to obtain first communication frame data, wherein the expanding comprises newly adding the complementary byte frames corresponding to the data byte frames at adjacent positions of each data byte frame. In an embodiment, the step of determining the first target communication data according to the first communication frame data includes: Determining an initial data byte frame in the first communication frame data, and writing a preset idle byte frame in at least the previous frame of the initial data byte frame; determining an end data byte frame in the first communication frame data, writing the idle byte frame in at least the later frame of the end data byte frame, and taking the communication frame data written in the idle byte frame as first target communication data. In an embodiment, the optical fiber data communication method further includes: Writing a preset interval byte frame in a frame between the idle byte frame and the initial data byte frame, writing the interval byte frame in a frame between the idle byte frame and the terminal data byte frame, and taking the communication frame data written in the interval byte frame as first target communication data. In an embodiment, before the step of determining the first communication frame data according to the initial communication data, the method includes: And determining a data byte frame in the initial communication data, writing a data start bit at the starting position of the data byte frame, and writing a data stop bit at the end position of the data byte frame. In order to achieve the above object, the present application provides an optical fiber data communication method, which is applied to a data receiving end, the optical fiber data communication method comprising the steps of: acquiring first target communication data sent by a data sending end, and determining second communication frame data according to the first target communication data, wherein the first target communication data is obtained by pe