A communication verification method, a master control, a readable storage medium and a communication system
By employing a double-sum check method in the optical fiber communication system to perform double verification of frame information, the problem of accuracy of the transmitted information of the communication unit is solved, thereby improving the reliability and stability of the communication system.
Patent Information
- Application Number
- CN202310760281.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-26
- Publication Date
- 2026-01-20
- Estimated Expiration
- 2043-06-26
AI Technical Summary
Existing communication protocols cannot accurately confirm the accuracy of received and transmitted information during fiber optic communication, which affects the reliability of the transmission of the communication unit.
A dual-check method is adopted, in which the master controller performs a first check and a second check on the frame information, and the communication unit performs dual checks during the receiving and transmitting processes to ensure the accuracy of the transmitted information.
It improves the accuracy and reliability of communication systems, enhances the security and stability of high-speed industrial fiber optic communication, and increases the accuracy of transmitted information.
Smart Images

Figure CN116647310B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of communication, in particular to a communication verification method, a master control, a readable storage medium and a communication system. BACKGROUND
[0002] With the continuous development of optical fiber communication technology, optical fiber communication technology is currently often used for data communication with the power communication unit inside the frequency converter. Compared with the direct connection mode of electrical signals, optical signals have the advantages of strong anti-interference ability and long transmission distance. The existing communication protocol can be used for the communication protocol in the optical fiber communication process. The communication unit cannot confirm the accuracy of the received wave information.
[0003] The communication protocol of the prior art can only judge the accuracy of the received data by performing frame and verification when applied to a series communication system. The frame information issued by the master control to the communication unit is received and transmitted by the communication unit, and the communication unit may add its own collection information to the frame information. This situation will cause the frame information to change, so the communication unit will recalculate and update the frame information checksum after the frame information changes. However, the updated checksum is calculated based on the changed frame information, which will be affected by the added collection information and may be affected by the transmission error of the wave information. However, the checksum has been updated in the case of frame information being changed, so the next communication unit will only use the updated checksum to verify the entire frame information when receiving the frame information. At this time, the updated checksum cannot verify whether the wave data transmitted by the previous communication unit is accurate, which affects the reliability of the wave transmission of the communication unit. SUMMARY
[0004] The purpose of the present application is to provide a communication verification method, a master control, a readable storage medium and a communication system. By using the second and verification, it is determined that the received wave information does not change or is missing, and it is ensured that the addition of collection information in the transmission process does not affect the wave information, so as to ensure the accuracy of the wave information, further ensure the accuracy and effectiveness of the frame information, increase the and verification process of the wave information in the frame data in the optical fiber communication process, improve the accuracy and reliability of the entire communication system, greatly improve the accuracy of the wave information transmitted by the communication unit, and make the entire communication process better adapt to industrial high-speed optical fiber communication and improve the safety and stability of the communication process.
[0005] To solve the above technical problems, the present application provides a communication verification method applied to a communication system, the communication system comprising a master control and N communication units, N being a positive integer greater than 1, the master control and the N communication units being connected in turn to form a communication loop; the method comprising:
[0006] The master carries out a first and check on frame data in frame information to be sent to obtain a first check sum, carries out a second and check on wave information in the frame data to obtain a second check sum, the frame information includes a frame header, the frame data, the first check sum and the second check sum;
[0007] The frame information is sent to one communication unit directly connected with itself, the frame information returned by another communication unit directly connected with itself is received, so that any of the communication units sends the frame information to the next communication unit connected with itself or the master after receiving the frame information, and judges whether the frame information passes the check by using the first and check, the second and check, the first check sum and the second check sum.
[0008] Optionally, the judgment by any of the communication units whether the frame information passes the check by using the first and check, the second and check, the first check sum and the second check sum comprises:
[0009] The communication unit carries out the first and check on the frame information, and carries out the second and check on the wave information;
[0010] Judges whether first check data obtained by the first and check is consistent with the first check sum, and judges whether second check data obtained by the second and check is consistent with the second check sum;
[0011] If the first check data is consistent with the first check sum and the second check data is consistent with the second check sum, it is determined that the frame information passes the check.
[0012] Optionally, after the judgment by any of the communication units whether the frame information passes the check by using the first and check, the second and check, the first check sum and the second check sum, further comprises:
[0013] If the frame information does not pass the check, the communication unit controls an alarm module to alarm and / or stop;
[0014] If the frame information passes the check, the communication unit determines that the frame information is valid data and works normally.
[0015] Optionally, further comprises:
[0016] The master determines a target communication unit which needs to load data on the frame information;
[0017] The master determines a control signal corresponding to the target communication unit, and controls the target communication unit to load data to the frame information by using the control signal, so that the target communication unit transmits the frame information loaded with data to the next communication unit connected with itself or the master.
[0018] Optionally, after the target communication unit loads data to the frame information, and before the target communication unit transmits the frame information loaded with data to the next communication unit connected with itself or the master, the method further comprises:
[0019] The target communication unit performs the first and check-sum on the frame information, and updates the first check-sum.
[0020] Optionally, the operation of loading data to the frame information by the target communication unit comprises:
[0021] After receiving the frame information, the target communication unit loads collection information to the common information bit of the frame data.
[0022] Optionally, the collection information comprises one or a combination of voltage, temperature, version number of communication unit software and fault information.
[0023] To solve the above technical problem, the application further provides a master, comprising:
[0024] a memory for storing a computer program;
[0025] a processor for implementing the steps of the communication check method as described above.
[0026] To solve the above technical problem, the application further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the communication check method as described above.
[0027] To solve the above technical problem, the application further provides a communication system, comprising a master and N communication units as described above, wherein N is a positive integer greater than 1, and the master and the N communication units are connected in sequence to form a communication loop.
[0028] Any of the communication units is configured to transmit the frame information to the next communication unit connected with itself or the master after receiving the frame information, and to determine whether the frame information passes the check by using the first and check-sum, the second and check-sum, the first check-sum and the second check-sum.
[0029] The application provides a communication verification method, which is applied to a communication system, the communication system comprises a master control and N communication units, the master control and the N communication units are sequentially connected to form a communication loop, the master control includes a first checksum and a second checksum in frame information to be sent, when the master control sends the frame information to the communication unit, the master control requires any communication unit to perform the first checksum verification on the frame information, and the communication unit needs to perform the second checksum verification on the wave emission information in the frame data, so that the second checksum verification determines that the received wave emission information is not changed or missed, and ensures that the addition of the collected information in the transmission process does not affect the wave emission information, thereby ensuring the accuracy of the wave emission information and further ensuring the accuracy and effectiveness of the frame information, the checksum verification process of the wave emission information in the frame data in the optical fiber communication process is increased, the accuracy and reliability of the whole communication system are improved, the accuracy of the wave emission information transmitted by the communication unit can be greatly improved, and the whole communication process can better adapt to the industrial high-speed optical fiber communication, and the safety and stability of the communication process are improved.
[0030] The application further provides a master control, a readable storage medium and a communication system, which have the same beneficial effects as the communication verification method. BRIEF DESCRIPTION OF DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the application, the drawings needed to be used in the prior art and the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of these drawings.
[0032] Figure 1 A flowchart of a communication verification method provided by the application is shown in the figure.
[0033] Figure 2 A structural diagram of a communication system provided by the application is shown in the figure.
[0034] Figure 3 A diagram of frame information provided by the application is shown in the figure.
[0035] Figure 4 A structural diagram of a master control provided by the application is shown in the figure.
[0036] Figure 5 A structural diagram of another communication system provided by the application is shown in the figure. DETAILED DESCRIPTION
[0037] The core of the present application is to provide a communication verification method, a master control, a readable storage medium and a communication system. The second and verification are used to determine that the received wave information is not changed or missed, to ensure that the addition of the collected information in the transmission process does not affect the wave information, thereby ensuring the accuracy of the wave information, further ensuring the accuracy and effectiveness of the frame information, increasing the wave information and verification process in the frame data in the optical fiber communication process, improving the accuracy and reliability of the whole communication system, greatly improving the accuracy of the wave information transmitted by the communication unit, and making the whole communication process better adapt to the industrial high-speed optical fiber communication and improve the safety and stability of the communication process.
[0038] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0039] The communication verification method provided by the present application is a method designed for a unit series communication protocol for high-voltage variable frequency, which can be used in a frequency converter, especially in the process of series communication between the master control and the unit of the unit series frequency converter. The unit series high-voltage frequency converter has good input and output waveform and small harmonic pollution to the power grid, and has developed rapidly in recent years and gradually matured. Compared with the direct connection mode of the electrical signal, the optical signal has the advantages of strong anti-interference ability and long transmission distance in data communication between the optical fiber communication technology and the power unit in the frequency converter, which is the communication unit described below. The communication mode of the unit series is similar to the ring network communication, which is generally applied to high-voltage frequency communication, and the specific implementation mode is described below.
[0040] Please refer to Figure 1 , Figure 1 The flowchart of the communication verification method provided by the present application is shown in FIG. 1. Please refer to Figure 2 , Figure 2 The structure diagram of the communication system provided by the present application is shown in FIG. 2. Figure 2 In FIG. 2, Rx represents the receiving end of the master control 21 and each communication unit 22, and Tx represents the transmitting end of the master control 21 and each communication unit 22. Please refer to Figure 3 , Figure 3 The schematic diagram of the frame information provided by the present application is shown in FIG. 3. To solve the above technical problems, the present application provides a communication verification method applied to a communication system, the communication system comprising a master control 21 and N communication units 22, N being a positive integer greater than 1, the master control 21 and the N communication units 22 being connected in turn to form a communication loop; the method comprising:
[0041] S11: The master 21 performs a first and check on the frame data in the frame information to be sent to obtain a first check sum, and performs a second and check on the wave information in the frame data to obtain a second check sum, the frame information including a frame header, frame data, the first check sum and the second check sum;
[0042] In view of the fact that the communication unit 22 in the prior art only performs a check process on the whole frame, which may result in a false pass, and it is difficult to achieve accurate checking of the frame information, in the present application, the master 21 calculates and sets a first check sum and a second check sum in the frame information to be sent, the first and check is a check process of the master 21 on the whole frame of the frame information, that is, the frame header and the check bit therein are excluded, and the rest is the frame data sent in a frame, and the check process of the whole frame is to perform a check on the frame data. The second check sum is a check process of the master 21 on the wave information in the frame data part of the frame information, that is, a check on the wave information.
[0043] S12: The frame information is sent to one of the communication units 22 directly connected to the master 21, and the frame information returned by the other communication unit 22 directly connected to the master 21 is received, so that any communication unit 22 sends the frame information to the next communication unit 22 or the master 21 connected to itself after receiving the frame information, and judges whether the frame information passes the check by using the first and check, the second and check, the first check sum and the second check sum.
[0044] Specifically, after the first check sum and the second check sum are calculated, the master 21 can send out the frame information, and since the master 21 and the N communication units 22 are connected in turn to form a communication loop, the master 21 has a connection relationship between two communication units 22, that is, the output information is sent to one communication unit 22, and the information returned after passing through the communication loop is received from the other communication unit 22, so the master 21 sends the frame information to one of the communication units 22 directly connected to the master 21, and the communication unit 22 sends the received frame information to the next communication unit 22 connected thereto until the last communication unit 22 sends the received frame information back to the master 21; and when any communication unit 22 receives the frame information, it checks the received frame information by using the first and check and the second and check to determine whether the frame information received by itself is valid and correct information.
[0045] It is not difficult to understand that the communication protocol coding mode of the communication system of the present application is to communicate between the master 21 and the N communication units 22 by polling, the frame information is sent from the master 21, passes through the N communication units 22 in turn according to the connection order and then returns to the master 21, so that the master 21 and the N communication units 22 can communicate with each other through the communication loop formed by the polling. Figure 2For example, a simple diagram of the unit series communication is shown in the figure, A1, A2, A3 and An represent the communication unit 22, the master 21 sends information to the A1 unit, the A1 unit can receive while sending to the A2 unit, and so on, and the An unit sends to the master 21 receiving end.
[0046] It should be noted that the execution subject of S11 and S12 is the master 21 in the communication system, and the specific type and implementation of the master 21 and the communication unit 22 are not particularly limited in this application. The master 21 is usually implemented by a controller or a control chip, and the communication unit 22 is usually used as a collection module, which can be realized by a detector or an instrument collection module. In actual application, the communication unit 22 is often used to detect and collect various information, and in the communication process, the control information of the master 21 is received to make corresponding operation or return the collected information to the master 21. When applied to the frequency converter, the communication unit 22 is often used to generate waves and / or collect information, and the master 21 uses the communication process between the frame information and the communication unit 22 to realize the process of acquiring the collected information. In addition to the frame information, data and information of the carrier wave and the modulation wave, and parameters such as the preset period are usually added to realize the wave generating process of the communication unit 22.
[0047] Specifically, the frame information includes a frame header, frame data, a first checksum and a second checksum; the frame information is a frame information sent by the master 21 as a sending end, and the specific composition and implementation of the frame information are not particularly limited in this application. For example, Table 1 is a frame information encoding content reference table, which includes a fill bit, a frame header, control information, wave generating information, public information and a checksum. The control information, wave generating information and public information constitute the frame data. The specific composition diagram can be referred to Figure 3 ; and Table 2 is a frame information encoding length reference table, in which the frame header length is 11, the fill bit length is 11, the frame data length is 94, the first checksum and the second checksum length are both 3, and the total length of each frame data is 122 bits. The encoding format of the frame information in the serial optical fiber communication protocol can refer to Table 1, Table 2 and Figure 3 , Figure 3 The control bit in Table 1 and Table 2 is the control information shown in Table 1 and Table 2, the checksum 1 is the first checksum shown in Table 1 and Table 2, and the checksum 2 is the second checksum shown in Table 1 and Table 2. The length of each part in the frame information is not particularly limited in this application. The first checksum and the second checksum can be realized by 3 bits of data length. The length of 3 bits can more effectively and accurately realize the checksum process without affecting the length of the frame information, further improve the reliability of the wave generating data, and ensure the accuracy and reliability of the checksum process.
[0048] Table 1 frame information encoding content reference table
[0049]
[0050] Table 2 Encoding length reference table of frame information
[0051]
[0052]
[0053] The application provides a double and check method in unit serial communication process. In addition to the whole frame and check, the separate and check of the wave sending information is added to ensure the accuracy of wave sending in unit serial communication and improve the safety and stability of communication. Since the master 21 knows each frame of data when sending, and the feedback information of the communication unit 22 usually only occupies the common information bit in the frame data, the wave sending information and check are added when the master 21 issues, then the wave sending information is checked by each unit when receiving, and the second and check is unchanged from the master 21 to each unit receiving, also called double check.
[0054] It is not difficult to understand that the communication unit 22 receives the frame information in bit unit, the first and check and the second and check process are performed while receiving, and the wave sending information for the second and check process added by the application is in the position of the earlier bit of the frame information, so the second and check can be completed earlier than the first and check, therefore the check method provided by the application can increase the double check to solve the problem of possible error of wave sending information under the condition of maintaining the real-time sending of the communication unit 22 without affecting this condition. The communication unit 22 receives and sends at the same time, when the last bit is received, the last bit is also sent out, the wave sending information is in the front bit, after the wave sending and check are completed, the frame is still continuing to send the whole frame and check, therefore the accuracy of the wave sending information can be verified before the whole frame data is sent, which does not affect the process of real-time sending and receiving of the communication unit 22.
[0055] The application provides a communication checking method applied to a communication system, the communication system comprising a master control 21 and N communication units 22, the master control 21 and the N communication units 22 are sequentially connected to form a communication loop, the frame information to be sent by the master control 21 comprises a first checksum and a second checksum, when the frame information is sent to the communication unit 22, the master control 21 not only requires any communication unit 22 to perform the first checksum checking on the frame information, but also requires the communication unit 22 to perform the second checksum checking on the wave emission information in the frame data, so as to determine that the received wave emission information is not changed or missed through the second checksum checking, ensure that the addition of the collected information in the transmission process does not affect the wave emission information, thereby ensuring the accuracy of the wave emission information, further ensuring the accuracy and effectiveness of the frame information, adding the checksum checking process of the wave emission information in the frame data in the optical fiber communication process, improving the accuracy and reliability of the whole communication system, and greatly improving the accuracy of the wave emission information transmitted by the communication unit 22, so that the whole communication process can better adapt to the industrial high-speed optical fiber communication and improve the safety and stability of the communication process.
[0056] On the basis of the above-mentioned embodiment,
[0057] As an optional embodiment, the first checksum checking, the second checksum checking, the first checksum and the second checksum are used by any communication unit 22 to determine whether the frame information passes the checking, which comprises the following steps:
[0058] The communication unit 22 performs the first checksum checking on the frame information and the second checksum checking on the wave emission information.
[0059] It is determined whether the first checksum data obtained through the first checksum checking is consistent with the first checksum and whether the second checksum data obtained through the second checksum checking is consistent with the second checksum.
[0060] If the first checksum data is consistent with the first checksum and the second checksum data is consistent with the second checksum, it is determined that the frame information passes the checking.
[0061] It can be understood that the execution subject of the embodiment is any communication unit 22, and the master control 21 accumulates the data of the wave emission information to determine a data checksum, namely the second checksum, when sending, and when the communication unit 22 receives the frame information, the communication unit 22 accumulates the part of information received by the communication unit 22, namely the communication unit 22 performs the second checksum checking on the wave emission information when receiving, and checks whether the obtained result is consistent with the second checksum calculated by the master control, if consistent, it indicates that the communication unit 22 receives accurately, and if inconsistent, it indicates that the receiving is incorrect.
[0062] It is not difficult to understand that the communication unit 22 completes the check in the receiving process, the unit receives data, and the check of the outgoing information is carried out separately, that is, the second check, the outgoing information is issued by the master 21, and the common information bit is used for back transmission when the unit back transmits information, which does not affect the outgoing information; and in the process of receiving frame information, the first check of the frame information is carried out; when the first check passes and the second check passes, that is, the first check data is consistent with the first check sum and the second check data is consistent with the second check sum, the communication unit 22 can determine that the frame information passes the check, that is, the frame information received by the communication unit 22 at this time is accurate.
[0063] Specifically, the communication unit 22 carries out the first check and the second check, that is, the process of carrying out the two checks on the frame information and the outgoing information respectively, and when the first check data is consistent with the first check sum and the second check data is consistent with the second check sum, it is indicated that the frame information passes the first check and the second check, and the frame information received by the communication unit 22 is accurate. The accuracy of the frame information is proved by the two checks, in addition to the frame check, the separate check of the outgoing information is increased, which guarantees the accuracy and effectiveness of the working process of the communication unit 22 and improves the safety and stability of the communication system.
[0064] As an optional embodiment, after any communication unit 22 judges whether the frame information passes the check by using the first check, the second check, the first check sum and the second check sum, it further includes:
[0065] If the frame information does not pass the check, the communication unit 22 controls the alarm module to alarm and / or stop;
[0066] If the frame information passes the check, the communication unit 22 determines that the frame information is valid data and normally works.
[0067] It is understandable that the execution subject of the embodiment is any communication unit 22, when the communication unit 22 checks the received frame information by using the first and check and the second and check, if the frame information does not pass the check, the alarm module needs to be controlled to alarm to remind the operator that the communication process has an error, and the communication process needs to be re-performed or the error needs to be corrected, etc. Usually, the communication failure will be reported, the frame data is not used, and the next round of data transmission of the main control 21 is waited. The specific type and implementation of the alarm module are not particularly limited in the application, and depend on the specific use of the communication unit 22 and the actual application requirement; the communication unit 22 can also be directly stopped to avoid damage or abnormal operation caused by abnormal working process, and the stop operation can also be performed after the alarm. If the frame information passes the check, and the data obtained by the check can pass the double check, it is proved that the communication unit 22 receives and outputs valid data, and the wave transmission or other work of the communication unit 22 can be normally operated.
[0068] Specifically, the communication unit 22 has different processing methods for the two cases of whether the frame information check passes or not, to avoid the failure caused by the error of the communication process, to ensure the normal working process of the communication unit 22, and to further ensure the safety and reliability of the entire communication system.
[0069] As an optional embodiment, it further comprises:
[0070] The main control 21 determines the target communication unit which needs to load data on the frame information;
[0071] The main control 21 determines the control signal corresponding to the target communication unit, and controls the target communication unit to load data on the frame information by using the control signal, so that the target communication unit transmits the frame information after the data loading to the next communication unit 22 connected with itself or the main control 21.
[0072] Considering that the main control 21 needs to realize the process of obtaining the collected information by using the communication process between the frame information and the communication unit 22, it is necessary to determine in advance by the main control 21 which communication unit 22 is the target communication unit which needs to perform the data loading operation, that is, which communication unit 22 is the target communication unit which needs to return the collected information to the main control 21. The main control 21 selects which communication unit 22, and the target communication unit will upload the collected information when receiving the frame information. If it is not selected, the communication unit 22 directly transmits, that is, receives and transmits, without performing the data loading operation.
[0073] Specifically, the master 21 determines the target communication unit in multiple ways, which are not particularly limited in the present application, and can be manually input into the master 21 or determined by the master 21 according to the control requirements in the actual application process. The control signal used by the master 21 can be in multiple forms, which are not particularly limited in the present application, and can be distinguished by number information.
[0074] It is not difficult to understand that the target communication unit will perform data loading operation in the process of receiving frame information, and at the same time, the frame information after data loading will be sent to the next communication unit 22 or the master 21 to complete the entire communication process.
[0075] As a specific embodiment, taking the number information as the control signal as an example, the master 21 can send the ID number to the serial communication unit 22 in advance, starting from ID0, and the ID number of the last communication unit 22 plus 1 is the total number of serial communication units 22 in the system, and the total number is fed back to the master 21. When the polling mode is used for communication process, the master 21 sends frame information to each communication unit 22, and sends the target number corresponding to the selected communication unit 22. When a communication unit 22 is selected, the communication unit 22 receives the master 21 information, and at this time, the master 21 information not only includes frame information, but also target number as control signal, and the communication unit 22 will upload the collection information, that is, the calibration problem caused by uploading new data in the prior art changes the whole frame data and.
[0076] Specifically, the master 21 needs to determine which communication unit 22 as the target communication unit to perform data loading operation, and needs to send corresponding control signal to control the target communication unit to perform operation. The data loading operation is the process of loading the collection information as data into the frame information by the communication unit 22. Further, the master 21 how to communicate with the communication unit 22 by using frame information to realize the process of obtaining collection information is further clarified, and the function of the communication system is further improved.
[0077] As an optional embodiment, before the target communication unit sends the frame information after data loading to the next communication unit 22 or the master 21 connected with itself, it further includes:
[0078] The target communication unit performs first and check on the frame information, and updates the first check sum.
[0079] It is easy to understand that after the target communication unit performs the data loading operation, it modifies the frame information. Therefore, the target communication unit needs to recalculate the first checksum to ensure that the subsequent communication unit 22 or the main control unit 21 can perform the first checksum and the second checksum process with the latest frame information after receiving the modified frame information, so as to avoid false alarms caused by untimely data updates.
[0080] Specifically, the target communication unit makes changes to the frame information, so the first checksum needs to be recalculated to ensure the correctness of subsequent checksum verification processes. This avoids checksum failures caused by outdated data, further ensuring the accuracy and reliability of the communication process and improving the security and reliability of the communication system.
[0081] As an optional embodiment, the operation of loading frame information by the target communication unit includes:
[0082] After receiving the frame information, the target communication unit loads the collected information into the common information bits of the frame data.
[0083] It is easy to understand that if communication unit 22 is selected as the target communication unit, the single-collection information returned by the target communication unit needs to be returned to the unit information through the common information bits of the frame data in the frame information so as not to affect the frame length and carrier information sent by the master controller 21. At this time, the value of the transmitted information is not overwritten or tampered with, and is still sent by the master controller 21. Therefore, the second check process can be used to check the transmitted information to realize the judgment of whether the frame information is accurately transmitted.
[0084] by Figure 2 For example, when the information collected by unit A1 needs to be transmitted back to the main controller 21, the main controller 21 sends frame information to A1. Unit A1 receives and transmits data to the next unit A2 simultaneously. During this transmission, unit A1 performs a data loading operation, that is, it uses the information to be transmitted back to modify the frame information and simultaneously changes the first checksum of the entire frame. If only the first checksum is performed when unit A2 receives the frame data, it cannot determine whether the transmitted data sent by the previous unit A1 has a communication fault. Therefore, in the communication process using the verification method provided by this invention, a double checksum method is used during data verification, adding a second checksum for the transmitted information. The transmitted information is sent by the main controller 21, and the data loaded by communication unit 22 subsequently, i.e., the transmitted information, will not affect the verification of the transmitted data, thus improving the accuracy of the unit's transmitted information.
[0085] Specifically, the acquisition information that the target communication unit needs to return, i.e., the unit backhaul information, is generally implemented by covering the public information bits of the frame data in the frame information, ensuring that the second and the check can utilize the transmit wave information that is not actively changed in the communication process to double-check the frame information, ensuring the accurate implementation of the check process and guaranteeing the accuracy and reliability of the entire check process.
[0086] As an optional embodiment, the acquisition information includes one or a combination of multiple of voltage, temperature, version number of the communication unit software and fault information.
[0087] It can be understood that the acquisition signal that the communication unit 22 needs to return has multiple types of options and settings, which are not particularly limited in the present application, and depend on the actual application environment and equipment. Taking the frequency converter as an example, the acquisition information of the communication unit 22, i.e., the backhaul information, is generally the bus voltage, temperature, version number of the communication unit 22 and fault information of the communication unit 22 collected by the communication unit 22. These information collected by the communication unit 22 needs to be returned to the master control 21 for response processing by the master control 21. Figure 2 For example, the master control 21 has one, A1 refers to the first unit, and A2 refers to the third unit. When the number of series communication units 22 is 8 and the same control board is used for the communication units 22, the bus voltage of each communication unit 22 is finally added to achieve an output voltage of 10Kv. The backhaul information of each unit A1, A2, etc. needs to pass through each unit, and then is received by the master control 21. The backhaul information is the bus voltage, temperature, version number, etc. collected by each unit.
[0088] Specifically, the acquisition information includes multiple types and multiple ways of data information, which is flexible and can be determined according to the actual application, improving the flexibility of the entire communication system and further expanding the application scenarios and application range of the communication system.
[0089] Please refer to Figure 4 , Figure 4 a structural schematic diagram of a master control provided by the present application; to solve the above technical problems, the present application further provides a master control 21, comprising:
[0090] a memory 1 for storing a computer program;
[0091] a processor 2 for implementing the steps of the communication check method as described above.
[0092] The processor 2 can include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 2 can be implemented in at least one of a hardware form of a DSP (Digital Signal Processor), an FPGA (Field-Programmable Gate Array), a PLA (Programmable Logic Array). The processor 2 can also include a main processor and a coprocessor, the main processor being a processor for processing data in a wake-up state, also known as a central processor; the coprocessor being a low-power processor for processing data in a standby state. In some embodiments, the processor 2 can integrate a GPU (graphics processing unit) for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 2 can further include an AI (Artificial Intelligence) processor for processing machine learning-related computing operations.
[0093] The memory 1 can include one or more computer-readable storage media, which can be non-transitory. The memory 1 can also include a high-speed random access memory, and a non-volatile memory such as one or more disk storage devices, flash storage devices. In the present embodiment, the memory 1 is at least used to store the following computer programs, wherein the computer programs are loaded and executed by the processor 2, and can implement the related steps of the communication verification method disclosed in any one of the preceding embodiments. In addition, the resources stored in the memory 1 can also include an operating system and data, etc., and the storage mode can be temporary storage or permanent storage. The operating system can include Windows, Unix, Linux, etc. The data can include but is not limited to the data of the communication verification method, etc.
[0094] In some embodiments, the master 21 can further include a display screen, an input / output interface, a communication interface, a power supply, and a communication bus.
[0095] Those skilled in the art can understand that, Figure 4 The structure shown in the figure does not constitute a limitation on the master 21, and can include more or fewer components than those shown.
[0096] For the master 21 provided by the present application, please refer to the embodiments of the communication verification method described above, and the present application will not be repeated here.
[0097] To solve the above technical problems, the application further provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the communication verification method.
[0098] It can be understood that if the method in the above embodiment is implemented in the form of a software function unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and executes all or part of the steps of the method described in each embodiment of the present application. Specifically, the computer readable storage medium can include but is not limited to any type of disk, including floppy disks, optical disks, and mobile hard disks, or any type of medium or device suitable for storing instructions, data, and the like. The present application does not make special limitations here.
[0099] For the computer readable storage medium provided by the present application, please refer to the above-mentioned embodiment of the communication verification method, and the present application will not be repeated here.
[0100] Please refer to Figure 5 , Figure 5 The present application provides another structural diagram of a communication system. To solve the above technical problems, the application further provides a communication system, which comprises the master 21 and N communication units 22 as described above, N is a positive integer greater than 1, and the master 21 and the N communication units 22 are connected in turn to form a communication loop.
[0101] Any communication unit 22 is used to send the frame information to the next communication unit 22 or the master 21 connected with itself after receiving the frame information, and to judge whether the frame information passes the verification by using the first and verification, the second and verification, the first verification sum and the second verification sum.
[0102] For the communication system provided by the present application, please refer to the above-mentioned embodiment of the communication verification method, and the present application will not be repeated here.
[0103] To solve the above technical problems, the application further provides a communication verification system, which is applied to a communication system, and the communication system comprises the master 21 and N communication units 22, N is a positive integer greater than 1, and the master 21 and the N communication units 22 are connected in turn to form a communication loop; the system comprises:
[0104] The verification sum determination unit is used for the master 21 to perform the first and verification on the frame data in the frame information to be sent to obtain the first verification sum, and to perform the second and verification on the wave sending information in the frame data to obtain the second verification sum, and the frame information comprises the frame header, the frame data, the first verification sum and the second verification sum.
[0105] a check unit for sending the frame information to one of the communication units 22 directly connected to itself, receiving the frame information returned by another of the communication units 22 directly connected to itself, and causing any of the communication units 22 to send the frame information to the next communication unit 22 or the master 21 connected to itself after receiving the frame information, and judging whether the frame information passes the check by using the first and check sum, the second and check sum, the first check sum and the second check sum.
[0106] As an optional embodiment, any of the communication units 22 comprises:
[0107] a check unit for performing the first and check on the frame information and the second and check on the outgoing information;
[0108] a judging unit for judging whether the first check data obtained by the first and check is consistent with the first check sum and whether the second check data obtained by the second and check is consistent with the second check sum, and triggering the determining unit if the first check data is consistent with the first check sum and the second check data is consistent with the second check sum;
[0109] a determining unit for determining that the frame information passes the check.
[0110] As an optional embodiment, any of the communication units 22 further comprises:
[0111] an alarming unit for controlling the alarming module to alarm and / or stop if the frame information does not pass the check;
[0112] a working unit for determining that the frame information is valid data and working normally if the frame information passes the check.
[0113] As an optional embodiment, the master 21 further comprises:
[0114] a target communication unit determining unit for determining a target communication unit which needs to perform data loading on the frame information;
[0115] a data loading unit for determining a control signal corresponding to the target communication unit, and controlling the target communication unit to perform data loading on the frame information by using the control signal, so that the target communication unit sends the frame information after data loading to the next communication unit 22 or the master 21 connected to itself.
[0116] As an optional embodiment, the target communication unit comprises:
[0117] an updating unit for performing the first and check on the frame information by the target communication unit, and updating the first check sum.
[0118] As an optional embodiment, the target communication unit comprises:
[0119] a loading unit, for loading the acquisition information to the common information bit of the frame data by the target communication unit after receiving the frame information.
[0120] For the communication verification system provided by the present application, please refer to the above-mentioned embodiments of the communication verification method, and the present application will not be described here again.
[0121] The various embodiments are described in the present specification in progressive manner, and each embodiment focuses on the difference from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the device disclosed by the embodiments, since it corresponds to the method disclosed by the embodiments, the description is relatively simple, and the related parts can be referred to the method part.
[0122] It should also be noted that the relative terms, such as first and second, in the present specification are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0123] The above description of the disclosed embodiments enables a person skilled in the art to implement or use the present application. Various modifications to the embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method of communication verification, the method comprising: The application is applied to a communication system, which comprises a master unit and N communication units, N is a positive integer greater than 1, the master unit and the N communication units are connected in turn to form a communication loop; the method comprises: The master unit performs first and second check on frame data in frame information to be sent to obtain first and second check sums, the frame information comprises a frame header, the frame data, the first check sum and the second check sum; the frame data comprises control information, wave information and public information; The frame information is sent to one communication unit directly connected with itself, and the frame information returned by another communication unit directly connected with itself is received, so that any communication unit sends the frame information to the next communication unit or the master unit connected with itself after receiving the frame information, and judges whether the frame information passes the check by using the first and second check, the first check sum and the second check sum; the second check is completed earlier than the first check; The judgment whether the frame information passes the check by using the first and second check, the first check sum and the second check sum by any communication unit comprises: The communication unit performs the first and second check on the frame information, and performs the second check on the wave information; Judges whether the first check data obtained by the first check is consistent with the first check sum, and whether the second check data obtained by the second check is consistent with the second check sum; If the first check data is consistent with the first check sum and the second check data is consistent with the second check sum, it is determined that the frame information passes the check.
2. The communication verification method of claim 1, wherein, After the judgment whether the frame information passes the check by using the first and second check, the first check sum and the second check sum by any communication unit, further comprises: If the frame information does not pass the check, the communication unit controls an alarm module to alarm and / or stop; If the frame information passes the check, the communication unit determines that the frame information is valid data and works normally.
3. The communication verification method of any of claims 1 to 2, wherein, Further comprises: The master unit determines a target communication unit which needs to perform data loading on the frame information; The master unit determines a control signal corresponding to the target communication unit, and controls the target communication unit to perform data loading operation on the frame information by using the control signal, so that the target communication unit sends the frame information after data loading to the next communication unit or the master unit connected with itself.
4. The communication verification method of claim 3, wherein, After the target communication unit performs data loading operation on the frame information, before the target communication unit sends the frame information after data loading to the next communication unit or the master unit connected with itself, further comprises: The target communication unit performs the first and second check on the frame information, and updates the first check sum.
5. The communication verification method of claim 3, wherein, The data loading operation of the target communication unit on the frame information comprises: After receiving the frame information, the target communication unit loads the collection information into the common information bit of the frame data.
6. The communication verification method of claim 5, wherein, The collection information includes one or a combination of voltage, temperature, version number of communication unit software and fault information.
7. A master unit, characterized by The application further discloses a communication verification method and a computer readable storage medium. The memory is used to store a computer program; The processor is used to implement the steps of the communication verification method according to claim 1.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the steps of the communication verification method according to any one of claims 1 to 6.
9. A communication system, characterized by The application further discloses a communication system including the master unit and N communication units according to claim 7, wherein N is a positive integer greater than 1, and the master unit and the N communication units are sequentially connected to form a communication loop. Any one of the communication units is used to send the frame information to the next communication unit or the master unit connected therewith after receiving the frame information, and judge whether the frame information passes the verification by using the first and verification, the second and verification, the first verification sum and the second verification sum.
Citation Information
Patent Citations
Method for carrying out seamless handover between longitudinal differential protection and pilot protection under single channel
CN102158306A
Synchronous loop communication system suitable for cascaded converter topology
CN115277299A
Frequency conversion control system with power balance function
CN205070857U