Anti-interference serial board communication method and system

By introducing a microprocessor into the intelligent distribution transformer terminal equipment, the SPI signal is converted into an RS-485 signal and the message is verified, which solves the problem of serial communication being susceptible to interference and achieves the accuracy of data transmission and equipment safety. reliability.

CN114124296BActive Publication Date: 2024-09-06XUCHANG XJ SOFTWARE TECHNOLOGIES LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111159672.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-30
Publication Date
2024-09-06
Estimated Expiration
2041-09-30

AI Technical Summary

Technical Problem

Serial communication transmission in smart distribution transformer terminal equipment is susceptible to interference, leading to data transmission errors and affecting the safety and reliability of the distribution station area and the entire distribution network system.

Method used

A microprocessor is introduced between the data acquisition chip and the central control processor, and the microprocessor is used to process the SPI signal into a data signal suitable for RS-485 communication, and communicate through the RS-485 interface to carry out message data content. Two-way verification to ensure the accuracy of data transmission.

Benefits of technology

Effectively shields environmental electromagnetic interference, ensures the accuracy of data transmission, prevents erroneous data transmission, and improves the reliability and safety of intelligent distribution transformer terminal equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114124296B
    Figure CN114124296B
Patent Text Reader

Abstract

The disclosed embodiment provides an anti-interference serial inter-board communication method and system, which can realize anti-interference communication and ensure the accuracy of data transmission. The method includes: the main control processor sends an inquiry instruction message to the microprocessor; the microprocessor obtains the corresponding initial data from the data acquisition chip according to the inquiry instruction message; the microprocessor generates a response instruction message according to the initial data, and sends the response instruction message to the main control processor. The system includes a data acquisition module, a data processing module and a main control module, wherein the main control module is used to send an inquiry instruction message to the data processing module; the data processing module is used to obtain the corresponding initial data from the data acquisition module according to the inquiry instruction message, and is used to generate a response instruction message according to the initial data, and send the response instruction message to the main control module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of the present disclosure relate to the field of data communication technology, and more particularly to an anti-interference serial board communication method and system. Background Art

[0002] The intelligent distribution transformer terminal uses the edge computing concept to realize on-site data collection, on-site analysis and result reporting, changing the current situation of resource consumption and manual analysis energy occupation caused by large-scale data concentration in the main station calculation, improving the monitoring capability and intelligence level of the distribution station area, and improving the quality of power supply services and the level of lean management. In the intelligent distribution transformer terminal, the data acquisition board collects the operating data of the low-voltage side of the distribution transformer in real time and sends the data through the serial peripheral interface (SPI) communication method.

[0003] Due to the uncertainty of serial communication transmission and susceptibility to interference, the intelligent distribution transformer terminal equipment that uses SPI bus as the inter-board communication solution has the abnormal phenomenon of transmitting erroneous data, which will directly affect the distribution station area and indirectly affect the safety and reliability of the entire distribution network system. Summary of the invention

[0004] In view of this, an object of one or more embodiments of this specification is to provide an anti-interference serial inter-board communication method and system, which can achieve anti-interference communication and ensure the accuracy of data transmission.

[0005] Based on the above purpose, in a first aspect, one or more embodiments of this specification provide an anti-interference serial board communication method, including:

[0006] The main control processor sends an inquiry command message to the microprocessor;

[0007] The microprocessor obtains corresponding initial data from the data acquisition chip according to the query instruction message;

[0008] The microprocessor generates a response instruction message according to the initial data, and sends the response instruction message to the main control processor.

[0009] Optionally, the query instruction message includes multiple message fields, and the multiple message fields are:

[0010] Frame header segment, address identification segment, command code segment, data identification segment, data field segment, instruction time segment, checksum segment and frame tail segment;

[0011] The response instruction message includes multiple message fields, which are:

[0012] Response identification segment, address identification segment, command code segment, data identification end, data field segment, response data segment and checksum segment.

[0013] Optionally, the microprocessor generates a response instruction message according to the initial data, including:

[0014] The microprocessor determines the data content of the response data terminal according to the initial data.

[0015] Optionally, after the main control processor sends the query instruction message to the microprocessor, the method further includes:

[0016] The microprocessor verifies the query instruction message, and determines whether the query instruction message is interfered during transmission according to the verification result;

[0017] After the microprocessor sends the response instruction message to the main control processor, the method further includes:

[0018] The main control processor verifies the response instruction message, and determines whether the response instruction message is interfered during transmission according to the verification result.

[0019] Optionally, the microprocessor verifies the query instruction message, including:

[0020] Determine the data sum of all message fields from the frame header segment to the checksum segment in the query instruction message;

[0021] Select the lower 2 bytes of the data and adjust the lower 2 bytes to be in front and the higher 2 bytes to be in the back as the check value;

[0022] The check value is compared with the value of the checksum segment. If the check value is the same as the value of the checksum segment, the check passes.

[0023] Optionally, the main control processor verifies the response instruction message, including:

[0024] Determine the data sum of all message fields from the address identification segment to the checksum segment in the response instruction message;

[0025] Select the lower 2 bytes of the data and adjust the lower 2 bytes to be in front and the higher 2 bytes to be in the back as the check value;

[0026] The check value is compared with the value of the checksum segment. If the check value is the same as the value of the checksum segment, the check passes.

[0027] Optionally, the message types of the inquiry command message include a first read data message, a second read data message, a start calibration message, a read calibration message, and a write calibration message;

[0028] Wherein, the first read data message is used to obtain direct operation data of the power grid of the distribution area corresponding to the data acquisition chip;

[0029] The second data reading message is used to obtain the calculation and operation data of the power grid in the distribution area corresponding to the data acquisition chip.

[0030] Optionally, in the meter calibration start message, the instruction time period and the checksum section further include a meter calibration identification section, an external voltage section, an external current section and an external power factor section in sequence;

[0031] In the response instruction message corresponding to the start calibration message, the response data segment includes a response status segment;

[0032] In the response instruction message corresponding to the meter reading and calibration message, the response data segment includes a response status segment and a meter calibration parameter segment in sequence;

[0033] In the write calibration message, a calibration parameter section is also included between the instruction time section and the checksum section;

[0034] In the response instruction message corresponding to the write calibration message, the response data segment includes a corresponding status segment.

[0035] Optionally, after the microprocessor acquires corresponding initial data from the data acquisition chip according to the query instruction message, the method further includes:

[0036] The microprocessor acquires real-time data and a cyclic check code corresponding to the real-time data from the data acquisition chip;

[0037] Determine the cyclic check value of the real-time data by calculating according to a cyclic redundancy check algorithm;

[0038] Comparing the cyclic check value with the cyclic check code to determine whether the cyclic check value is consistent with the cyclic check code;

[0039] In response to the cyclic check value being consistent with the cyclic check code, storing the real-time data;

[0040] In response to the cyclic check value being inconsistent with the cyclic check code, the real-time data is deleted and the configuration register of the data acquisition chip is controlled and locked.

[0041] Based on the above purpose, in a second aspect, one or more embodiments of this specification further provide an anti-interference serial board communication system. The system includes a data acquisition module, a data processing module and a main control module.

[0042] The main control module is used to send an inquiry instruction message to the data processing module;

[0043] The data processing module is used to obtain corresponding initial data from the data acquisition module according to the inquiry instruction message, and to generate a response instruction message according to the initial data, and send the response instruction message to the main control module.

[0044] From the above description, it can be seen that an anti-interference serial board communication method and system provided by one or more embodiments of this specification has the following beneficial technical effects:

[0045] (1) Anti-interference serial inter-board communication method and system, a microprocessor is set between the data acquisition chip and the central control processor of the intelligent distribution transformer terminal, the SPI signal output by the data acquisition chip is processed by the microprocessor into a data signal suitable for RS-485 communication mode, and the RS-485 interface is used for communication between the microprocessor and the central control processor, which can effectively shield the environmental electromagnetic interference and ensure the accuracy of data transmission.

[0046] (2) The data content of the messages sent and received between the microprocessor and the central control processor is bidirectionally verified to ensure the accuracy of the query command message and the response command message when they are transmitted between the microprocessor and the central control processor.

[0047] (3) The microprocessor also verifies the data obtained from the data acquisition chip in real time to ensure the accuracy of the initial data sent from the data acquisition chip to the microprocessor. When the verification fails, the real-time data is deleted and the configuration register of the data acquisition chip is controlled and locked, so that the data transmission and communication between the data acquisition chip in the intelligent distribution transformer terminal and the central control processor can be terminated in time to avoid sending erroneous data to the central control processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate one or more embodiments of the present specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only one or more embodiments of the present specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0049] Figure 1 A schematic diagram of an anti-interference serial board communication method provided by one or more embodiments of this specification;

[0050] Figure 2 A schematic diagram of a method for a microprocessor to verify the query instruction message in an anti-interference serial inter-board communication method provided by one or more embodiments of this specification;

[0051] Figure 3 A schematic diagram of a method for a main control processor to verify the response instruction message in an anti-interference serial inter-board communication method provided by one or more embodiments of this specification;

[0052] Figure 4 A schematic diagram of a method for verifying real-time data of a data acquisition board by a microprocessor in an anti-interference serial inter-board communication method provided by one or more embodiments of this specification;

[0053] Figure 5 A schematic diagram of communication connection between a data acquisition chip, a microprocessor and a main control processor in an anti-interference serial inter-board communication method provided by one or more embodiments of this specification;

[0054] Figure 6 A schematic diagram of the structure of an anti-interference serial inter-board communication system provided in one or more embodiments of this specification. DETAILED DESCRIPTION

[0055] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0056] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in one or more embodiments of this specification should be understood by people with ordinary skills in the field to which this disclosure belongs. The "first", "second" and similar words used in one or more embodiments of this specification do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0057] As described in the background technology section, in the intelligent distribution transformer terminal, the data acquisition board collects the operating data of the low-voltage side of the distribution transformer in real time, and sends the operating data to the central control processor (CPU) of the intelligent distribution transformer terminal through the serial peripheral interface (SPI) communication method. Due to the uncertainty of serial communication transmission and susceptibility to interference, the intelligent distribution transformer terminal equipment used in the strong electromagnetic interference environment of the power generally needs to undergo an electrical fast transient pulse group interference test. As an intelligent distribution transformer terminal equipment that uses the SPI bus as an inter-board communication solution, an abnormal phenomenon of transmitting erroneous data was found in the electrical fast transient pulse group interference test, including when there is no AC value input at a certain phase source end, the terminal occasionally flashes irregular values. In addition, when there is an AC value input at the A-phase current source end, the terminal displays a fixed multiple value of the input value. This abnormal phenomenon will directly affect the distribution station area and indirectly affect the safety and reliability of the entire distribution network system.

[0058] In response to the above problems, the embodiments of the present disclosure propose a communication method in which a microprocessor is introduced between the data acquisition chip and the central control processor. The SPI signal of the data acquisition board is processed by the microprocessor and then transmitted to the central control processor using the RS-485 communication method. This method can effectively suppress electromagnetic interference in communication between SPI boards in intelligent distribution transformer terminal equipment.

[0059] The technical solution of the present disclosure is further described in detail below through specific embodiments.

[0060] In one aspect, an embodiment of the present disclosure provides an interference-resistant serial inter-board communication method.

[0061] like Figure 1 As shown, one or more optional embodiments of the present disclosure provide an anti-interference serial radius communication method, including:

[0062] S1: The main control processor sends an inquiry command message to the microprocessor.

[0063] In the anti-interference serial radius communication method, a microprocessor is arranged between the main control processor and the data acquisition chip in the intelligent distribution transformer terminal. The main control processor and the microprocessor are controlled to communicate according to the RS-485 communication protocol, and the communication interaction mode between the two can be set to a question-and-answer mode, that is, the main control processor initiates the inquiry and the microprocessor responds. In some optional embodiments, the main control processor can make inquiries by sending an inquiry instruction message to the microprocessor. The content of the inquiry can be data such as voltage, current, frequency, power, power factor, voltage angle, harmonics, number of electric energy pulses in the low-voltage side power grid of the distribution transformer, or active power, 4-quadrant reactive power, number of apparent electric energy pulses, fundamental voltage, fundamental current working parameter data, etc.

[0064] S2: The microprocessor obtains corresponding initial data from the data acquisition chip according to the query instruction message.

[0065] The microprocessor is connected to the data acquisition chip and can obtain corresponding initial data from the data acquisition chip according to the query instruction message sent by the main control processor. For example, the initial data obtained by the microprocessor from the data acquisition chip according to the query instruction can be working parameter data such as voltage, current, power, frequency, etc. in the power grid.

[0066] S3: The microprocessor generates a response instruction message according to the initial data, and sends the response instruction message to the main control processor.

[0067] After the microprocessor obtains the initial data, it can generate a response instruction message corresponding to the inquiry instruction message according to the content of the initial data, and send the response instruction message to the main control processor, wherein the response instruction message includes the initial data.

[0068] Wherein, the inquiry command message and the response command message are both transmitted via the RS-485 communication protocol.

[0069] like Figure 5 The figure shows a communication connection diagram of the data acquisition chip, the microprocessor and the main control processor.

[0070] The data acquisition chip and the microprocessor can be integrated in a data acquisition board, and the two are connected in communication. The data connection between the data acquisition chip and the microprocessor includes: chip selection signal NSS, clock signal SCK, master input / slave output MISO (Master Input, Slave Output) and master output / slave input MOSI (Master Output, Slave Input). The microprocessor and the main control processor communicate with each other using an RS-485 communication interface, and the microprocessor uses the RS-485 communication interface to receive inquiry command messages and send response command messages.

[0071] The anti-interference serial inter-board communication method is to set a microprocessor between the data acquisition chip and the central control processor, use the microprocessor to process the SPI signal output by the data acquisition chip into a data signal suitable for the RS-485 communication mode, and use the RS-485 interface to communicate between the microprocessor and the central control processor, which can effectively shield environmental electromagnetic interference and ensure the accuracy of data transmission.

[0072] In an anti-interference serial radius communication method provided by one or more optional embodiments of the present disclosure, the message types of the inquiry command message include a first read data message, a second read data message, a start calibration message, a read calibration message and a write calibration message.

[0073] Among them, the first data reading message is used to obtain the first operating data of the power grid in the distribution area corresponding to the data acquisition chip, and the first operating data includes voltage, current, frequency, power, power factor, voltage angle, harmonics, and the number of electric energy pulses.

[0074] Among them, the second data reading message is used to obtain the second operating data of the power grid in the distribution area corresponding to the data acquisition chip, and the second operating data includes active power, four-quadrant reactive power, number of apparent electric energy pulses, fundamental voltage, and fundamental current.

[0075] As shown in Table 1 below, the multiple message fields in the first read data message are:

[0076] Frame header segment, address identification segment, command code segment, data identification segment, data field segment, instruction time segment, checksum segment and frame tail segment.

[0077] Table 1

[0078]

[0079] The data of the frame header can be set as a data segment consisting of 4 "fe" connections, and the corresponding frame tail can be set as a data segment consisting of 4 "fc" connections. The address identification segment is used to record the physical identification of the data acquisition chip corresponding to the message instruction.

[0080] The code "03H" in the command code segment indicates the command code for reading data, and the code "00H01H" in the data identification segment indicates that the content to be queried by the message is the first operation data. The L in the data field segment indicates the length of the data field, and the value of L can be set to 2 bytes. The instruction time period is data recorded in time format, indicating the instruction issuance time of the corresponding query instruction message. The sum in the checksum segment indicates the checksum, which is used to verify the data content in the message.

[0081] As shown in Table 2 below, the multiple message fields in the response instruction message corresponding to the first read data message are:

[0082] Response identification segment, address identification segment, command code segment, data identification end, data field segment, response data segment and checksum segment.

[0083] Table 2

[0084]

[0085] Among them, the data in the response identification segment can be set to "f3".

[0086] The “DATA” in the response data segment refers to the first operation data corresponding to the data identifier “00H 01H”.

[0087] Those skilled in the art can understand that, in the inquiry command message and the response command message, the specific values ​​in the frame header segment, the frame tail segment and the response identification segment can be flexibly set according to actual conditions.

[0088] As shown in Table 3 below, the multiple message fields in the second read data message are:

[0089] Frame header segment, address identification segment, command code segment, data identification segment, data field segment, instruction time segment, checksum segment and frame tail segment.

[0090] Table 3

[0091]

[0092] In the second data read message, the code "03H" in the command code segment indicates the command code for reading data, and the code "01H 01H" in the data identification segment indicates that the content to be inquired by the message is the second operation data.

[0093] As shown in Table 4 below, the multiple message fields in the response instruction message corresponding to the first read data message are:

[0094] Response identification segment, address identification segment, command code segment, data identification end, data field segment, response data segment and checksum segment.

[0095] Table 4

[0096]

[0097] The “DATA” in the response data segment refers to the second operation data corresponding to the data identifier “01H 01H”.

[0098] As shown in Table 5 below, compared with the first data read message and the second data read message, in the startup meter calibration message, the instruction time period and the checksum section further include a meter calibration identification section, an external voltage section, an external current section and an external power factor section in sequence.

[0099] Table 5

[0100]

[0101] The code "10H" in the command code segment indicates the command code for writing data, and the code "00H 03H" in the data identification segment indicates that the content to be written in the message is various parameters related to the startup calibration. The calibration identification segment is recorded as M, and the external voltage segment Ui, the external current segment Ii and the external power factor segment PF respectively record the parameter values ​​of the external current, external voltage and external power factor related to the startup calibration.

[0102] As shown in Table 6 below, in the response instruction message corresponding to the start calibration message, the response data segment includes a response status segment.

[0103] Table 6

[0104]

[0105] The "sta" in the response data segment refers to the response status of the start-up calibration corresponding to the data identifier "00H 03H".

[0106] As shown in Table 7 below, the multiple message fields in the table reading and calibration message are:

[0107] Frame header segment, address identification segment, command code segment, data identification segment, data field segment, instruction time segment, checksum segment and frame tail segment.

[0108] Table 7

[0109]

[0110] Among them, in the meter reading and calibration message, the code "03H" in the command code segment indicates the command code for reading data, and the code "00H 02H" in the data identification segment indicates that the content to be inquired by the message is meter calibration parameter data.

[0111] As shown in Table 8 below, compared with the response messages of the first read data message and the second read data message, in the response message of the read calibration message, the response data segment includes a response status segment and a calibration parameter segment in sequence.

[0112] Table 8

[0113]

[0114] The response data segment is divided into a response status segment and a calibration parameter segment. The "sta" in the response status segment refers to the response status of the calibration meter reading corresponding to the data identifier "00H 02H". The "DATA" in the calibration parameter segment refers to the calibration parameter data corresponding to the data identifier "00H 02H".

[0115] As shown in Table 9 below, compared with the first read data message and the second read data message, in the write calibration message, a calibration parameter segment is further included between the instruction time segment and the checksum segment.

[0116] Table 9

[0117]

[0118] In the write calibration message, the code "10H" in the command code segment indicates the command code for writing data, and the code "01H 02H" in the data identification segment indicates that the message is to write calibration parameters. The "DATA" in the calibration parameter segment indicates the specific calibration parameters to be written.

[0119] As shown in Table 10 below, in the response instruction message corresponding to the write calibration message, the response data segment includes a response status segment.

[0120] Table 10

[0121]

[0122] The "sta" in the response data segment refers to the response status of the write calibration table corresponding to the data identifier "00H 02H".

[0123] like Figure 2 As shown, an anti-interference serial radius communication method provided by one or more optional embodiments of the present disclosure further includes: after the main control processor sends an inquiry command message to the microprocessor:

[0124] The microprocessor verifies the query instruction message, and determines whether the query instruction message is interfered during transmission according to the verification result.

[0125] In the anti-interference serial radius communication method, after receiving the inquiry instruction message from the main control processor, the microprocessor will verify the data content of the inquiry instruction message to ensure the accuracy of the data received by the microprocessor.

[0126] The microprocessor verifies the query instruction message, further comprising:

[0127] S201: Determine the data sum of all message fields from the frame header segment to the checksum segment in the query instruction message.

[0128] S202: Select the lower 2 bytes of the data and adjust the lower 2 bytes to be in front and the higher 2 bytes to be in the back as the check value;

[0129] S203: Compare the check value with the value of the checksum segment.

[0130] If the check value is the same as the value of the checksum segment, the check passes.

[0131] Taking the first read data message as an example, Table 1 shows the message format structure of the first read data message. The data of all message fields from the frame header segment to the checksum segment in the first read data message are summed to obtain the data sum. That is, the result of adding "fefefefe", "01H", "03H", "00H 01H", "L", "YY, MM...ms, us" is recorded as the data sum. Take the lower 2 bytes of data in the data sum, adjust the low-order data in front and the high-order data in the back to obtain the check value sum′. Afterwards, compare the check value sum′ with the numerical value sum in the checksum segment. If the two are the same, the check is passed, which means that the first read data message is not disturbed during the transmission process.

[0132] like Figure 3 As shown, an anti-interference serial radius communication method provided by one or more optional embodiments of the present disclosure, after the microprocessor sends the response instruction message to the main control processor, further includes:

[0133] The main control processor verifies the response instruction message, and determines whether the response instruction message is interfered during transmission according to the verification result.

[0134] In the anti-interference serial radius communication method, after the microprocessor sends a response instruction message to the main control processor, the main control processor will also verify the data content of the received response instruction message to ensure the accuracy of the data received by the main control processor.

[0135] The main control processor verifies the response instruction message, further comprising:

[0136] S301: Determine the data sum of all message fields from the address identification segment to the checksum segment in the response instruction message;

[0137] S302: Select the lower 2 bytes of the data and adjust the lower 2 bytes to be in front and the higher 2 bytes to be in the back as the check value;

[0138] S303: Compare the check value with the value of the checksum segment.

[0139] If the check value is the same as the value of the checksum segment, the check passes.

[0140] Taking the response instruction message of the first read data message as an example, Table 2 shows the message format structure of the response instruction message corresponding to the first read data message. For the response instruction message, the data of all message fields from the address identification segment to the checksum segment are added and summed to obtain the data sum. That is, the result of adding "01H", "03H", "00H 01H", "L", and "DATA" is recorded as the data sum. Take the lower 2 bytes of data in the data sum, adjust the low-order data in front and the high-order data in the back as the check value sum′. Afterwards, compare the check value sum′ with the numerical value sum in the checksum segment. If the two are the same, the check is passed, which means that the response instruction message of the first read data message was not disturbed during the transmission process.

[0141] In order to ensure the accuracy of data transmission between the data acquisition chip, microprocessor and central control processor, in addition to message verification between the microprocessor and the central control processor, the data communication between the microprocessor and the data acquisition chip must also be verified in real time.

[0142] like Figure 4 As shown, an anti-interference serial radius communication method provided by one or more optional embodiments of the present disclosure, after the microprocessor obtains corresponding initial data from the data acquisition chip according to the query instruction message, further includes:

[0143] S401: The microprocessor obtains real-time data and a cyclic check code corresponding to the real-time data from the data acquisition chip.

[0144] S402: Determine a cyclic check value of the real-time data by calculation according to a cyclic redundancy check algorithm.

[0145] S403: Compare the cyclic check value with the cyclic check code to determine whether the cyclic check value is consistent with the cyclic check code;

[0146] S404: In response to the cyclic check value being consistent with the cyclic check code, storing the real-time data;

[0147] S405: In response to the cyclic check value being inconsistent with the cyclic check code, deleting the real-time data and controlling and locking the configuration register of the data acquisition chip.

[0148] The microprocessor can obtain the real-time data collected by the data acquisition chip and the CRC check code corresponding to the real-time data through the interface function. After that, the cyclic redundancy check algorithm is used to calculate the cyclic check value corresponding to the real-time data, wherein the selected cyclic redundancy check algorithm can be the CRC-16CCITT algorithm. The accuracy of the real-time data is verified by comparing the cyclic check value obtained by calculation with the cyclic check code directly obtained. If the two are inconsistent, it means that an error occurs in the process of transmitting the real-time data from the data acquisition chip to the microprocessor, and there may be interference. In this case, control measures need to be taken in time to delete the real-time data and control the configuration register of the data acquisition chip to lock it, and terminate the data transmission and communication between the new data acquisition chip and the central control processor in the intelligent distribution transformer terminal.

[0149] It should be noted that the method of one or more embodiments of this specification can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of one or more embodiments of this specification, and the multiple devices will interact with each other to complete the described method.

[0150] It should be noted that the above is a description of a specific embodiment of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0151] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure also provides an anti-interference serial radius communication system.

[0152] refer to Figure 6 The anti-interference serial radius communication system includes a data acquisition module 602, a data processing module 604 and a main control module 606.

[0153] The main control module 606 is used to send an inquiry instruction message to the data processing module 604;

[0154] The data processing module 604 is used to obtain corresponding initial data from the data acquisition module 602 according to the query instruction message, and to generate a response instruction message according to the initial data, and send the response instruction message to the main control module 606.

[0155] For the convenience of description, the above device is described by dividing it into various modules according to its functions. Of course, when implementing the present disclosure, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0156] The device of the above embodiment is used to implement the corresponding anti-interference serial radius communication method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0157] For the convenience of description, the above devices are described in terms of functions divided into various modules. Of course, when implementing one or more embodiments of this specification, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0158] The apparatus of the above-mentioned embodiment is used to implement the corresponding method in the above-mentioned embodiment, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0159] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. In line with the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present specification as described above, which are not provided in detail for the sake of simplicity.

[0160] In addition, to simplify the description and discussion, and in order not to obscure one or more embodiments of the present specification, known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, devices may be shown in the form of block diagrams to avoid obscuring one or more embodiments of the present specification, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which one or more embodiments of the present specification will be implemented (i.e., these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that one or more embodiments of the present specification may be implemented without these specific details or with variations in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0161] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0162] One or more embodiments of this specification are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of this specification should be included in the scope of protection of this disclosure.

Claims

1. An anti-interference serial board communication method, characterized in that: The method comprises: After the main control processor sends the inquiry instruction message to the microprocessor, the method further includes: the microprocessor verifies the inquiry instruction message, and determines whether the inquiry instruction message is interfered during transmission according to the verification result; the microprocessor is arranged between the main control processor and the data acquisition chip, and controls the main control processor and the microprocessor to communicate according to the RS-485 communication protocol; The microprocessor obtains corresponding initial data from the data acquisition chip according to the query instruction message; The microprocessor generates a response instruction message according to the initial data, and sends the response instruction message to the main control processor. After the microprocessor sends the response instruction message to the main control processor, it also includes: the main control processor verifies the response instruction message, and determines whether the response instruction message is interfered during transmission according to the verification result.

2. The method according to claim 1, characterized in that The query instruction message includes multiple message fields, which are: Frame header segment, address identification segment, command code segment, data identification segment, data field segment, instruction time segment, checksum segment and frame tail segment; The response instruction message includes multiple message fields, which are: Response identification segment, address identification segment, command code segment, data identification end, data field segment, response data segment and checksum segment.

3. The method according to claim 2, characterized in that The microprocessor generates a response instruction message according to the initial data, including: The microprocessor determines the data content of the response data terminal according to the initial data.

4. The method according to claim 2, characterized in that: The microprocessor verifies the query instruction message, including: Determine the data sum of all message fields from the frame header segment to the checksum segment in the query instruction message; Select the lower 2 bytes of the data and adjust the lower 2 bytes to be in front and the higher 2 bytes to be in the back as the check value; The check value is compared with the value of the checksum segment. If the check value is the same as the value of the checksum segment, the check passes.

5. The method according to claim 4, characterized in that The main control processor verifies the response instruction message, including: Determine the data sum of all message fields from the address identification segment to the checksum segment in the response instruction message; Select the lower 2 bytes of the data and adjust the lower 2 bytes to be in front and the higher 2 bytes to be in the back as the check value; The check value is compared with the value of the checksum segment. If the check value is the same as the value of the checksum segment, the check passes.

6. The method according to claim 2, characterized in that The message types of the inquiry command message include a first read data message, a second read data message, a start calibration message, a read calibration message and a write calibration message; Wherein, the first read data message is used to obtain direct operation data of the power grid of the distribution area corresponding to the data acquisition chip; The second data reading message is used to obtain the calculation and operation data of the power grid in the distribution area corresponding to the data acquisition chip.

7. The method according to claim 6, characterized in that In the meter calibration start message, the instruction time period and the checksum period further include a meter calibration identification section, an external voltage section, an external current section and an external power factor section in sequence; In the response instruction message corresponding to the start calibration message, the response data segment includes a response status segment; In the response instruction message corresponding to the meter reading and calibration message, the response data segment includes a response status segment and a meter calibration parameter segment in sequence; In the write calibration message, a calibration parameter section is also included between the instruction time section and the checksum section; In the response instruction message corresponding to the write calibration message, the response data segment includes a corresponding status segment.

8. The method according to claim 1, characterized in that: After the microprocessor obtains corresponding initial data from the data acquisition chip according to the query instruction message, the method further includes: The microprocessor acquires real-time data and a cyclic check code corresponding to the real-time data from the data acquisition chip; Determine the cyclic check value of the real-time data by calculating according to a cyclic redundancy check algorithm; Comparing the cyclic check value with the cyclic check code to determine whether the cyclic check value is consistent with the cyclic check code; In response to the cyclic check value being consistent with the cyclic check code, storing the real-time data; In response to the cyclic check value being inconsistent with the cyclic check code, the real-time data is deleted and the configuration register of the data acquisition chip is controlled and locked.

9. An anti-interference serial inter-board communication system, characterized in that: The system includes a data acquisition module, a data processing module and a main control module; The main control module is used to send an inquiry command message to the data processing module, and after receiving the response command message, verify the response command message, and determine whether the response command message is interfered during transmission according to the verification result; The data processing module is arranged between the main control module and the data acquisition module, and controls the main control module and the data processing module to communicate according to the RS-485 communication protocol; The data processing module is used to verify the query command message, determine whether the query command message is interfered during transmission according to the verification result, and then send the response command message to the main control module; The corresponding initial data is obtained from the data acquisition module according to the inquiry instruction message, and a response instruction message is generated according to the initial data, and the response instruction message is sent to the main control module.