Transmitting and receiving line problem diagnosis method, device and system and computer storage medium

By using RS485 communication line and error line connection in industrial manufacturing equipment, voltage signal diagnosis is used to solve the positioning problem of signal transmission problems in transmission and reception line debugging, the diagnostic efficiency and accuracy are improved, and the stable operation of the equipment is ensured.

CN118890113APending Publication Date: 2024-11-01SHENZHEN HUAMAO AOTE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410929569.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

In modern industrial manufacturing, it is difficult to effectively locate and diagnose signal transmission problems during the debugging of the transceiver line, resulting in unstable equipment operation and affecting production efficiency.

Method used

By establishing an RS485 communication line and a code error line connection between the master station and the slave station, the signal reception situation is judged using the preset time period, the voltage signal of the code error line is obtained for diagnosis, and the specific cause of the signal transmission problem is determined, such as the master station The signal transmission failed or the communication line error was made.

Benefits of technology

It realizes accurate positioning and rapid diagnosis of transmission and reception line problems, improves the efficiency and accuracy of debugging tasks, and reduces equipment maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118890113A_ABST
    Figure CN118890113A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, in particular to a transceiving line problem diagnosis method, device and system and a computer storage medium. According to the invention, whether the slave station successfully receives the first detection signal sent by the master station through the RS485 communication line in the first preset time period or not is judged, and when the slave station successfully receives the first detection signal in the first preset time period, it is determined that there is no first transmit-receive line problem in the transmit-receive line problem diagnosis system; and when the slave station does not successfully receive the first detection signal within the first preset time period, the slave station obtains a voltage signal of an error code line, diagnoses a first transmit-receive line problem according to the voltage signal, and effectively locates the transmit-receive line problem existing in the transmit-receive line debugging task execution process of the transmit-receive line problem diagnosis system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, system and computer storage medium for diagnosing problems in transceiver lines. Background Art

[0002] At present, modern industrial manufacturing has entered the era of intelligence, and more and more processing and manufacturing equipment have adopted intelligent technology, which enables processing and manufacturing equipment to operate automatically and reduces the need for constant monitoring by personnel.

[0003] During the debugging of the transceiver lines, in order to ensure that the master station (any processing and manufacturing equipment) and the slave station (any processing and manufacturing equipment) can successfully send and receive signals, it is necessary to perform transceiver line debugging tasks on the master station and the slave station, that is, the master station sends a debugging signal to the slave station to detect whether the slave station has successfully received the debugging signal, and the slave station sends a debugging signal to the master station to detect whether the master station has successfully received the debugging signal. If the slave station or the master station does not successfully receive the debugging signal, it is necessary to locate what caused the problem. Summary of the invention

[0004] In view of the above, the present application provides a transceiver line problem diagnosis method, device, system and computer storage medium to effectively locate the transceiver line problems existing in the transceiver line problem diagnosis system during the execution of the transceiver line debugging task.

[0005] A first aspect of the present application provides a transceiver line problem diagnosis method, which is applied to a transceiver line problem diagnosis system, wherein the transceiver line problem diagnosis system includes a master station and a slave station, wherein the master station and the slave station are connected via an RS485 communication line and an error code line, and the method includes: Determine whether the slave station successfully receives a first detection signal sent by the master station through the RS485 communication line within a first preset time period; When the slave station successfully receives the first detection signal within the first preset time period, it is determined that the transceiver line problem diagnosis system does not have a first transceiver line problem; When the slave station fails to successfully receive the first detection signal within the first preset time period, acquiring a voltage signal of the bit error line; The problem of the first transceiver line is diagnosed according to the voltage signal.

[0006] In an optional implementation, the diagnosing the problem of the first transceiver line according to the voltage signal includes: When the voltage signal is at a high level, it is determined that the problem with the first transceiver line is that the master station fails to send the first detection signal; When the voltage signal is at a low level, it is determined that the problem with the first transceiver line is that a communication line error exists in the RS485 communication line.

[0007] In an optional implementation, the method for diagnosing transceiver line problems further includes: Determine whether the master station successfully receives a second detection signal corresponding to the first detection signal returned by the slave station within a second preset time period; When it is determined that the master station successfully receives the second detection signal within the second preset time period, it is determined that the transceiver line problem diagnosis system does not have a second transceiver line problem; When it is determined that the master station has not successfully received the second detection signal within the second preset time period, it is determined that the transceiver line problem exists in the transceiver line problem diagnosis system.

[0008] In an optional implementation, when the master station establishes a connection with the slave station via a wireless communication line, the transceiver line problem diagnosis method further includes: Determining whether the slave station successfully receives a third detection signal within the first preset time period; When the slave station receives the third detection signal within the first preset time period, analyzing the third detection signal to determine whether the third detection signal is consistent with the first detection signal; When the third detection signal is consistent with the first detection signal, extracting a detection instruction of the third detection signal; Determining whether the detection instruction exists in a preset instruction library of the slave station; When the detection instruction exists in the preset instruction library, determining that the transceiver line problem diagnosis system does not have the first transceiver line problem; When the detection instruction does not exist in the preset instruction library, it is determined that the transceiver line problem diagnosis system has the first transceiver line problem, and it is determined that a communication line error exists in the wireless communication line.

[0009] In an optional implementation, the method for diagnosing transceiver line problems further includes: Determine N wireless communication lines between the master station and the slave station, where N is an integer greater than or equal to 2; Obtaining the signal strength of each communication line in the N wireless communication lines; Determine whether there is a first wireless communication line among the N wireless communication lines whose signal strength is greater than a first preset threshold; When the first wireless communication line exists among the N wireless communication lines, the master station is controlled to send the first detection signal through the first wireless communication line.

[0010] In an optional implementation, the method for diagnosing transceiver line problems further includes: When the first wireless communication link does not exist in the N wireless communication links, adjusting the first preset threshold to obtain a second preset threshold; Determine whether there is a second wireless communication line among the N wireless communication lines, whose signal strength is greater than the second preset threshold; When the second wireless communication line exists among the N wireless communication lines, controlling the master station to send the first detection signal through the second wireless communication line; When the second wireless communication link does not exist in the N wireless communication links, the above steps are repeated until a wireless communication link between the master station and the slave station is determined.

[0011] In an optional implementation, the method for diagnosing transceiver line problems further includes: When it is determined that there is a problem with the first transceiver line, a first alarm signal is generated according to the problem with the first transceiver line, and the master station is controlled to issue an alarm according to the first alarm signal; When it is determined that there is a problem with the second transceiver line, a second alarm signal is generated according to the problem with the second transceiver line, and the slave station is controlled to issue an alarm according to the second alarm signal.

[0012] A second aspect of the present application provides a transceiver line problem diagnosis device, which is arranged in a transceiver line problem diagnosis system, wherein the transceiver line problem diagnosis system includes a master station and a slave station, wherein the master station and the slave station are connected via an RS485 communication line and an error code line, and the transceiver line problem diagnosis device includes: A judging module, used for judging whether the slave station has successfully received a first detection signal sent by the master station through the RS485 communication line within a first preset time period; A determination module, configured to determine that the transceiver line problem diagnosis system does not have a first transceiver line problem when the slave station successfully receives the first detection signal within the first preset time period; An acquisition module, configured to acquire a voltage signal of the error bit line when the slave station fails to successfully receive the first detection signal within the first preset time period; A diagnosis module is used to diagnose the problem of the first transceiver line according to the voltage signal.

[0013] A third aspect of the present application provides a terminal controller, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for diagnosing transceiver line problems when executing the computer program.

[0014] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned method for diagnosing transceiver line problems are implemented.

[0015] In summary, the transceiver line problem diagnosis method, device, system and computer storage medium provided by the present application, when the master station and the slave station establish a connection through the RS485 communication line and the bit error line, determine whether the slave station successfully receives the first detection signal sent by the master station through the RS485 communication line within the first preset time period. If the slave station successfully receives the first detection signal within the first preset time period, it is determined that there is no first transceiver line problem in the transceiver line problem diagnosis system. When the slave station does not receive the first detection signal within the first preset time period, it indicates that there is a first transceiver line problem, and further obtains the voltage signal of the bit error line, and locates the first transceiver line problem through the bit error line voltage signal. Specifically, when the voltage signal is at a high level, the first transceiver line problem is the failure of the master station to send the first detection signal; when the voltage signal is at a low level, the first transceiver line problem is the existence of a communication line error in the RS485 communication line.

[0016] Therefore, the effective positioning of the transceiver line problem in the transceiver line problem diagnosis system is achieved, and the accuracy and efficiency of the diagnosis are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a virtual structural diagram of a transceiver line problem diagnosis system shown in an embodiment of the present application; Figure 2 is a flow chart of a method for diagnosing transceiver line problems shown in an embodiment of the present application; Figure 3 It is a functional module diagram of a transceiver line problem diagnosis device shown in an embodiment of the present application; Figure 4 It is a virtual structure diagram of a terminal controller shown in an embodiment of the present application. DETAILED DESCRIPTION

[0018] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more of the listed items.

[0019] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0020] Reference Figure 1 , which is a virtual structural diagram of a transceiver line problem diagnosis system shown in an embodiment of the application.

[0021] The transceiver line problem diagnosis system 1 includes a master station 11 and a slave station 12. Any of the master stations 11 is connected to any of the slave stations 12. The master station 11 and the slave station 12 are both the subjects for executing the transceiver line debugging task. When the transceiver line debugging task needs to be performed on the master station 11 and the slave station 12, the master station 11 can be used as a signal sending end to send a debugging signal to the slave station 12 to detect whether the master station 11 successfully sends a signal to the slave station 12. At this time, the slave station 12 serves as a signal receiving end. When the slave station 12 successfully receives the signal sent by the master station 11, the master station 11 switches from the signal sending end to the signal receiving end to receive the debugging signal sent by the slave station 12 to detect whether the master station 11 successfully receives the signal sent by the slave station 12, and the slave station 12 switches from the signal receiving end to the signal sending end. When both the master station 11 and the slave station 12 can successfully send and receive signals, it can be determined that the transceiver line debugging tasks of the master station 11 and the slave station 12 have been completed, and it can be determined that there is no transceiver line problem in the transceiver line problem diagnosis system 1. Whenever the slave station 12 fails to successfully receive the debugging signal sent by the master station 11, or the master station 11 fails to successfully receive the debugging signal sent by the slave station, it can be determined that there is a transceiver line problem in the transceiver line problem diagnosis system 1.

[0022] The transceiver line problem diagnosis system 1 also includes a terminal controller 13, in which a transceiver line problem diagnosis device 30 is provided, and the transceiver line problem diagnosis device 30 is used to perform a transceiver line debugging task. That is, the master station 11 is controlled to send a debugging signal to the slave station 12, and when the slave station 12 receives the debugging signal, the slave station 12 is controlled to feed back a signal corresponding to the debugging signal to the master station 11, so as to implement the transceiver line debugging task, and determine whether there is a transceiver line problem in the transceiver line problem diagnosis system 1 according to the reception status of the signals of the master station 11 and the slave station 12, and diagnose the transceiver line problem to determine what causes the transceiver line problem.

[0023] In some embodiments, the master station 11 and the slave station 12 are connected via an RS485 communication line, and communication parameters such as communication protocol, baud rate, data bit, stop bit, etc. are set via the RS485 communication line to ensure that the communication parameters between the master station 11 and the slave station 12 are consistent. When the communication line between the master station 11 and the slave station 12 is an RS485 communication line, the master station and the slave station are also connected via an error line, so that the terminal controller 13 can obtain the signal state of the error line and locate the transceiver line problem according to its signal state. Specifically, when the slave station 12 does not receive the debugging signal sent by the master station 11 within a preset time period, the terminal controller can obtain the voltage signal of the error line. When the voltage signal is at a high level, it can be determined that the transceiver line problem is caused by the failure of the master station 11 to send the debugging signal, and when the voltage signal is at a low level, it can be determined that the transceiver line problem is caused by the communication line between the master station 11 and the slave station 12, that is, the RS485 communication line has a communication line error. In other embodiments, the master station 11 and the slave station 12 may also be connected via wireless communication, that is, via a wireless communication line (eg, WIFI, ZigBee, etc.).

[0024] In the following embodiment, the terminal controller 13 can be connected to the master station 11 and the slave station 12 through an emulator, so that the debugging personnel can intuitively understand the level of the voltage signal through the emulator. In other embodiments, an emulator software can also be installed in the terminal controller 13, and the level of the voltage signal in the emulator software is displayed through the human-computer interaction interface provided by the terminal controller 13.

[0025] In some implementations, before executing the transceiver line debugging task on the master station 11 and the slave station 12, the terminal controller 13 can control the master station 11 and the slave station 12 to each perform a device self-check operation, that is, execute an initialization program to detect whether the hardware component status and software version status are normal. When the hardware component status and software version status of the master station 11 and the slave station 12 are normal, the terminal controller 13 starts to execute the transceiver line debugging task on the master station 11 and the slave station 12.

[0026] In some embodiments, in order to accurately locate the transceiver line problem, it is necessary to eliminate external environmental interference, such as electromagnetic radiation interference, before performing the transceiver line debugging task.

[0027] Reference Figure 2 As shown, it is a flow chart of a method for diagnosing transceiver line problems shown in an embodiment of the present application, and the method for diagnosing transceiver line problems includes the following steps.

[0028] S21, determining whether the slave station successfully receives a first detection signal sent by the master station through the RS485 communication line within a first preset time period.

[0029] Among them, the transceiver line problem diagnosis includes a master station and a slave station, and the master station and the slave station are connected via an RS485 communication line. The transceiver line problem diagnosis system also includes a terminal controller, and the terminal controller can also establish connections with the master station and the slave station respectively via the RS485 communication line.

[0030] After the terminal controller controls the master station to send a debugging signal (first detection signal) through the RS485 communication line, the terminal controller determines whether the slave station can successfully receive the first detection signal within a preset time period (the first preset time period, such as 3 seconds) to determine whether there is a problem with the receiving and transmitting lines of the slave station.

[0031] In some embodiments, the terminal controller can pre-construct a detection signal with a specific sequence data frame format as a first detection signal. Specifically, the data frame format may include the address code, function code, sending data and check code of the master station, wherein the address code occupies 1 byte, which is used to represent the unique address of the master station, such as 0x01; the function code occupies 1 byte, which is used to instruct the operation type of the first detection model, such as 0x0A; since the embodiment of the present application is to locate the problem of the transceiver line, the sending data may not contain specific data, but only include simple detection instructions. The sending data occupies 1 byte, and the check code occupies 2 bytes to ensure the integrity and accuracy of the sending data.

[0032] Through the above optional implementation, since the detection signals sent by different master stations can be distinguished by the address code when performing the transceiver line debugging task. Although external environmental interference will be excluded when performing the transceiver line debugging task, in order to further exclude that the failure of the slave station to successfully receive the first detection signal is caused by external environmental interference during data transmission, the accuracy of the transmission data carried in the first detection signal can be verified by the check code in the data frame format.

[0033] S22: When the slave station successfully receives the first detection signal within the first preset time period, it is determined that the transceiver line problem diagnosis system does not have a first transceiver line problem.

[0034] When it is determined that the slave station receives the first detection signal within the first preset time period, the terminal controller can generate a corresponding prompt signal to inform the debugging personnel that there is no first transceiver line problem in the transceiver line problem diagnosis system, that is, the master station can successfully send the first detection signal to the slave station, and the slave station can successfully receive the first detection signal sent by the master station.

[0035] S23: When the slave station fails to successfully receive the first detection signal within the first preset time period, acquiring a voltage signal of the error line.

[0036] When it is determined that the slave station has not successfully received the first detection signal within the first preset time period, the terminal controller needs to determine whether the slave station has not received the first detection signal, or the slave station has received the detection signal, but the received detection signal is not the first detection signal. Among them, the master station and the slave station are also connected through an error line, which is an independent line used to monitor the error conditions of the master station and the slave station during the communication process. When there is a problem with the communication, the error line will produce a corresponding voltage signal change, so the terminal controller can monitor the operating status of the error line to determine the voltage signal of the error line, so that the problem of the transceiver line can be located later based on the voltage signal of the error line.

[0037] S24: diagnose the problem of the first transceiver line according to the voltage signal.

[0038] In some embodiments, the bit error line can be a copper wire, wherein the bit error line can be equivalent to a pull-up resistor. Under normal operating conditions, the voltage value of the bit error line is 3.3V. When in an abnormal state, the bit error line is grounded, that is, the voltage value of the bit error line is 0V. Therefore, the terminal controller can diagnose the problem of the first transceiver line by obtaining the voltage signal of the bit error line. Specifically, when the voltage signal is a high level, that is, the voltage value of the bit error line is 3.3V, it can be determined that the problem of the first transceiver line is that the master station fails to send the first detection signal. When the voltage signal is a low level, that is, the voltage value of the bit error line is 0V, it can be determined that the problem of the first transceiver line is that there is a communication line error in the RS485 communication line.

[0039] In other embodiments, the terminal device can set a corresponding return logic signal according to the level of the voltage signal of the bit error line, that is, when the voltage signal of the bit error line is determined to be at a high level, a logic 1 is returned to the terminal controller, and when the voltage signal of the bit error line is determined to be at a low level, a fire prevention logic signal 0 is sent to the terminal controller, so that the terminal controller can quickly identify the level of the voltage signal of the bit error line, and quickly locate the problem of the first transceiver line, whether the main station fails to send the first detection signal, or there is a communication line error in the RS485 communication line.

[0040] Through the above optional implementation, by monitoring the voltage signal of the bit error line, the terminal controller can accurately determine the problem of the first transceiver line. Whether the master station fails to send the first detection signal or there is a communication line error in the RS485 communication line, it can be quickly identified, so that the specific fault type can be accurately determined, so that personnel can quickly locate and take corresponding repair measures, greatly improving the maintenance efficiency of the equipment.

[0041] In an optional implementation, the method for diagnosing transceiver line problems further includes: Determine whether the master station successfully receives a second detection signal corresponding to the first detection signal returned by the slave station within a second preset time period; When it is determined that the master station successfully receives the second detection signal within the second preset time period, it is determined that the transceiver line problem diagnosis system does not have a second transceiver line problem; When it is determined that the master station has not successfully received the second detection signal within the second preset time period, it is determined that the transceiver line problem exists in the transceiver line problem diagnosis system.

[0042] In some embodiments, when it is determined that the slave station receives the first detection signal sent by the master station within the first preset time period, that is, when it is determined that there is no first transceiver line problem in the transceiver line diagnosis system, the slave station will return the second detection signal corresponding to the first detection signal to the master station, and the terminal controller can determine whether the master station successfully receives the second detection signal within the second preset time period (for example, 3 seconds). When it is determined that the master station successfully receives the second detection signal within the preset time period, it can be determined that there is no second transceiver line problem in the transceiver line problem diagnosis system, that is, the slave station can successfully send the second detection signal to the master station, and the master station can successfully receive the second detection signal sent by the slave station. On the contrary, it can be determined that there is a second transceiver line problem in the transceiver line problem diagnosis system. According to the same embodiment of step S23 and step S24, the terminal controller can accurately locate whether the second transceiver line problem is that the slave station fails to send the second detection signal, or there is a communication line error in the RS485 communication line between the slave station and the master station.

[0043] In some embodiments, the terminal controller can dynamically adjust the preset time period according to the network load condition of the communication line between the master station and the slave station, including the first preset time period and the second preset time period. When it is determined that the network load in the network load condition is greater than the preset load threshold, the preset time period can be increased, for example, from 3 seconds to 5 seconds, to improve the accuracy of the diagnosis of the transceiver line problem.

[0044] In an optional implementation, when the master station establishes a connection with the slave station via a wireless communication line, the transceiver line problem diagnosis method further includes: Determining whether the slave station successfully receives a third detection signal within the first preset time period; When the slave station receives the third detection signal within the first preset time period, analyzing the third detection signal to determine whether the third detection signal is consistent with the first detection signal; When the third detection signal is consistent with the first detection signal, extracting a detection instruction of the third detection signal; Determining whether the detection instruction exists in a preset instruction library of the slave station; When the detection instruction exists in the preset instruction library, determining that the transceiver line problem diagnosis system does not have the first transceiver line problem; When the detection instruction does not exist in the preset instruction library, it is determined that the transceiver line problem diagnosis system has the first transceiver line problem, and it is determined that a communication line error exists in the wireless communication line.

[0045] In some embodiments, in addition to establishing a communication connection through an RS485 communication line, the master station and the slave station can also establish a communication connection through a wireless communication method. When it is determined that the master station and the slave station are connected through a wireless communication line, the terminal controller, when performing the transceiver line debugging task, first controls the master station to send a first detection signal to the slave station, and determines whether the slave station successfully receives the first detection signal within a first preset time period. When it is determined that the slave station has not successfully received the first detection signal within the first preset time period, it can be determined that the transceiver line problem diagnosis system has a first transceiver line problem, and the first transceiver line problem is determined as the failure of the master station to send the first detection signal. When it is determined that the slave station successfully receives the third detection signal within the first preset time period, the third detection signal is decoded to determine the signal content in the third detection signal (for example, the data content, signal format, check code, etc. of the transmitted data), and the signal content in the decoded third detection signal is compared with the first detection signal to determine whether the third detection signal is consistent with the first detection signal. If the third detection signal is consistent with the first detection signal, the slave station continues to process the signal and extracts the detection instruction therein, wherein the detection instruction refers to a specific part in the third detection signal, which is used to instruct the slave station to perform a specific operation or response. The terminal controller can pre-set an instruction library and write the preset instruction library to the slave station, wherein the preset instruction library only includes the detection instruction of the first detection signal. Further, the slave station compares the extracted detection instruction with the instruction in the preset instruction library to check whether the detection instruction exists in the preset instruction library. If the detection instruction exists in the preset instruction library, it means that the slave station correctly receives and parses the third detection signal, and the wireless communication line is normal, that is, the transceiver line problem diagnosis system does not have the first transceiver line problem. If the detection instruction does not exist in the preset instruction library, it means that there is a problem with the signal received by the slave station. It may be that the signal has a code error or damage during the transmission process. Since the signal damage problem caused by external environmental interference has been ruled out, it can be determined that the transceiver line problem diagnosis system has a first transceiver line problem, and it can be determined that the first transceiver line problem is a communication line error in the wireless communication line.

[0046] Through the above optional implementation, by detecting whether the slave station successfully receives and analyzes the third detection signal, it is possible to quickly determine whether the transceiver line problem diagnosis system has a transceiver line problem. Secondly, by comparing the consistency of the detection signal with the preset instruction library, the bit error in the communication line can be accurately identified, thereby accurately locating the fault point, which not only improves the efficiency of locating the transceiver line problem, but also reduces the system maintenance cost, and effectively ensures the normal operation of the communication system.

[0047] In an optional implementation, the method for diagnosing transceiver line problems further includes: Determine N wireless communication lines between the master station and the slave station, where N is an integer greater than or equal to 2; Obtaining the signal strength of each communication line in the N wireless communication lines; Determine whether there is a first wireless communication line among the N wireless communication lines whose signal strength is greater than a first preset threshold; When the first wireless communication line exists among the N wireless communication lines, the master station is controlled to send the first detection signal through the first wireless communication line.

[0048] In some embodiments, when a connection is established between a master station and a slave station via a wireless communication line, before controlling the master station to send a first detection signal, the terminal controller can record and determine the available N wireless communication lines by identifying the available wireless communication lines between the master station and the slave station. For each wireless communication line, its signal strength can be determined and compared with a preset signal strength threshold (first preset threshold) to determine which wireless communication line has a signal quality that meets the requirements. When the signal strength is greater than the preset threshold, the wireless communication line is marked as a first wireless communication line, and the master station is controlled to send a first detection signal through the first wireless communication line, so that the master station selects a wireless communication line with better signal quality when sending the first detection signal, thereby improving the reliability and efficiency of communication.

[0049] In an optional implementation, the method for diagnosing transceiver line problems further includes: When the first wireless communication link does not exist in the N wireless communication links, adjusting the first preset threshold to obtain a second preset threshold; Determine whether there is a second wireless communication line among the N wireless communication lines, whose signal strength is greater than the second preset threshold; When the second wireless communication line exists among the N wireless communication lines, controlling the master station to send the first detection signal through the second wireless communication line; When the second wireless communication link does not exist in the N wireless communication links, the above steps are repeated until a wireless communication link between the master station and the slave station is determined.

[0050] In some embodiments, when the signal strengths are all less than the first preset threshold, that is, when the first wireless communication line does not exist in the N wireless communication lines, the threshold adjustment mechanism is triggered, that is, the first preset threshold is adjusted to obtain the second preset threshold. Specifically, the terminal controller can obtain the signal strength distribution and wireless communication environment of each wireless communication line at the current moment, and adjust the preset threshold according to its signal strength distribution and wireless communication environment. It should be noted that the first preset threshold is greater than the second preset threshold. Further, the adjusted second preset threshold is used to re-evaluate the signal strength of the wireless communication line. The signal strength of each wireless communication line is compared with the second preset threshold. If at least one line is found to have a signal strength greater than the second preset threshold, the wireless communication line with a signal strength greater than the second preset threshold is selected as the second wireless communication line. Once the second wireless communication line is determined, the terminal controller controls the main station to send a first detection signal through the second wireless communication line.

[0051] If there is still no satisfactory wireless communication link when the first preset threshold is lowered to the second preset threshold, the terminal controller will continue to lower the threshold until a wireless communication link between the master station and the slave station is determined.

[0052] In an optional implementation, the method for diagnosing transceiver line problems further includes: When it is determined that there is a problem with the first transceiver line, a first alarm signal is generated according to the problem with the first transceiver line, and the master station is controlled to issue an alarm according to the first alarm signal; When it is determined that there is a problem with the second transceiver line, a second alarm signal is generated according to the problem with the second transceiver line, and the slave station is controlled to issue an alarm according to the second alarm signal.

[0053] In some embodiments, when it is determined that there is neither a first transceiver line problem nor a second transceiver line problem in the transceiver line problem diagnosis system, it can be determined that there is no transceiver line problem in the transceiver line problem diagnosis system, but if any one of the transceiver line problems exists, it can be determined that there is a transceiver line problem in the transceiver line problem diagnosis system. Therefore, when the terminal controller determines that there is a first transceiver line problem in the transceiver line problem diagnosis system, a corresponding first alarm signal can be generated. Since the first transceiver line problem is that the master station fails to send a first detection signal or there is a communication line error in the RS485 communication line, in order to quickly locate whether the first transceiver line problem is that the master station fails to send a signal or the slave station fails to send a signal, the master station is controlled to alarm according to the first alarm signal. According to the same embodiment, when it is determined that there is a second transceiver line problem in the transceiver line problem diagnosis system, a corresponding second alarm signal is generated, and the slave station is controlled to alarm according to the second alarm signal. In other embodiments, in order to effectively distinguish whether the first transceiver line problem is the failure of the master station to send the first detection signal or the RS485 communication line has a communication line error, the terminal controller can generate a first alarm signal with different characteristics or different identifiers. For example, when the first transceiver line problem is the failure of the master station to send the first detection signal, the first alarm signal can carry error code 1, and when the first transceiver line problem is the RS485 communication line has a communication line error, the first alarm signal can carry error code 2. According to the same embodiment, the terminal controller can also effectively distinguish the second transceiver line problem.

[0054] Through the above optional implementation, by timely generating and sending alarm signals, rapid response and location of transceiver line problems are achieved. When a problem with the first transceiver line is detected, the master station will receive the first alarm signal and issue an alarm, which helps to quickly locate whether the master station fails to send the first detection signal or there is a communication line error in the RS485 communication line. Similarly, when a problem with the second transceiver line is detected, the slave station will receive the second alarm signal and issue an alarm, which improves the efficiency and accuracy of problem handling.

[0055] In some embodiments, when it is determined that the problem of the transceiver line is that there is a communication line error in the RS485 communication line or a communication line error in the wireless communication line, the terminal controller can divide the communication line into multiple sub-communication lines, and obtain the impedance data of each sub-communication line, and compare it with the standard impedance data to determine which sub-communication line causes the communication line error. The impedance data may include, but is not limited to, resistance, capacitance, and inductance, and the standard impedance data refers to the impedance data when the communication line is in normal operation. The impedance data of the communication line can be collected using an impedance analyzer with high precision and a wide measurement range, and the impedance data can be sent to the terminal controller in an active or passive manner so that the terminal controller can analyze the impedance data, that is, compare it with the standard impedance data.

[0056] Reference Figure 3 , which is a functional module diagram of a transceiver line problem diagnosis device shown in an embodiment of the present application.

[0057] In some embodiments, the transceiver line problem diagnosis device 30 is provided in the transceiver line problem diagnosis system 1, and may include a plurality of functional modules composed of computer program segments. The computer program of each program segment of the transceiver line problem diagnosis device 30 may be stored in the memory of the terminal controller and executed by at least one processor to perform the functions of the transceiver line problem diagnosis method.

[0058] In this embodiment, the transceiver line problem diagnosis device 30 can be divided into multiple functional modules according to the functions it performs. The functional modules may include: a judgment module 301, a determination module 302, an acquisition module 303, a diagnosis module 304, a line determination module 305 and an alarm module 306. The module referred to in this application refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.

[0059] The judging module 301 is used to judge whether the slave station successfully receives the first detection signal sent by the master station through the RS485 communication line within a first preset time period.

[0060] The determination module 302 is configured to determine that the transceiver line problem diagnosis system does not have a first transceiver line problem when the slave station successfully receives the first detection signal within the first preset time period.

[0061] The acquisition module 303 is configured to acquire the voltage signal of the error line when the slave station fails to successfully receive the first detection signal within the first preset time period.

[0062] The diagnosis module 304 is used to diagnose the problem of the first transceiver line according to the voltage signal.

[0063] The diagnostic module 304 is further specifically used to: when the voltage signal is at a high level, determine that the problem with the first transceiver line is that the master station fails to send the first detection signal; when the voltage signal is at a low level, determine that the problem with the first transceiver line is that there is a communication line error in the RS485 communication line.

[0064] The diagnostic module 304 is also used to: determine whether the master station successfully receives the second detection signal corresponding to the first detection signal returned by the slave station within a second preset time period; when it is determined that the master station successfully receives the second detection signal within the second preset time period, determine that the transceiver line problem diagnosis system does not have a second transceiver line problem; when it is determined that the master station does not successfully receive the second detection signal within the second preset time period, determine that the transceiver line problem diagnosis system has the second transceiver line problem.

[0065] When the master station establishes a connection with the slave station through a wireless communication line, the diagnostic module 304 is also used to: determine whether the slave station successfully receives the third detection signal within the first preset time period; when the slave station receives the third detection signal within the first preset time period, parse the third detection signal to determine whether the third detection signal is consistent with the first detection signal; when the third detection signal is consistent with the first detection signal, extract the detection instruction of the third detection signal; determine whether the detection instruction exists in the preset instruction library of the slave station; when the detection instruction exists in the preset instruction library, determine that the transceiver line problem diagnosis system does not have the first transceiver line problem; when the detection instruction does not exist in the preset instruction library, determine that the transceiver line problem diagnosis system has the first transceiver line problem, and determine that the wireless communication line has a communication line error.

[0066] The line determination module 305 is used to: determine N wireless communication lines between the master station and the slave station, where N is an integer greater than or equal to 2; obtain the signal strength of each of the N wireless communication lines; determine whether there is a first wireless communication line with a signal strength greater than a first preset threshold among the N wireless communication lines; when the first wireless communication line exists among the N wireless communication lines, control the master station to send the first detection signal through the first wireless communication line.

[0067] The line determination module 305 is also used for: when the first wireless communication line does not exist in the N wireless communication lines, adjusting the first preset threshold to obtain a second preset threshold; judging whether there is a second wireless communication line with a signal strength greater than the second preset threshold among the N wireless communication lines; when the second wireless communication line exists among the N wireless communication lines, controlling the master station to send the first detection signal through the second wireless communication line; when the second wireless communication line does not exist among the N wireless communication lines, repeating the above steps until the wireless communication line between the master station and the slave station is determined.

[0068] The alarm module 306 is used to generate a first alarm signal according to the problem of the first transceiver line when it is determined that there is a problem with the first transceiver line, and control the master station to alarm according to the first alarm signal; when it is determined that there is a problem with the second transceiver line, generate a second alarm signal according to the problem of the second transceiver line, and control the slave station to alarm according to the second alarm signal.

[0069] It should be understood that the various variations and specific embodiments of the transmission line problem diagnosis method provided in the above embodiment are also applicable to the transmission line problem diagnosis device of the present embodiment. Through the above detailed description of the transmission line problem diagnosis method, those skilled in the art can clearly know the implementation method of the transmission line problem diagnosis device of the present embodiment. For the sake of brevity of the specification, it will not be described in detail here.

[0070] Reference Figure 4 FIG. 1 is a virtual structure diagram of a terminal controller shown in an embodiment of the present application. In a preferred embodiment of the present application, the terminal controller 13 is arranged in the transceiver line problem diagnosis system 1, and includes a memory 131, at least one processor 132 and at least one communication bus 133.

[0071] Those skilled in the art should understand that Figure 4 The structure of the terminal controller shown does not constitute a limitation of the embodiments of the present application, and can be either a bus structure or a star structure. The terminal controller 13 can also include more or less other hardware or software than shown in the figure, or a different component arrangement.

[0072] In some embodiments, the terminal controller 13 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits, programmable gate arrays, digital processors, and embedded devices. The terminal controller 13 may also include debugger equipment, and the user equipment includes but is not limited to any electronic product that can interact with the user through a keyboard, mouse, remote control, touchpad, or voice control device, such as a personal computer, a tablet computer, and a smart phone.

[0073] It should be noted that the terminal controller 13 is only an example, and other existing or future electronic products that are suitable for the present application should also be included in the protection scope of the present application and included here by reference.

[0074] In some embodiments, the memory 131 stores a computer program, and when the computer program is executed by the at least one processor 132, all or part of the steps in the above-mentioned transceiver line problem diagnosis method are implemented. The memory 131 includes a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data. Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of blockchain nodes, etc. The blockchain referred to in this application is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods, each of which contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain may include the underlying blockchain platform, the platform product service layer, and the application service layer.

[0075] In some embodiments, the at least one processor 132 is the control core (Control Unit) of the terminal controller 13, and uses various interfaces and lines to connect the various components of the entire terminal controller 13, and executes various functions and processes data of the terminal controller 13 by running or executing the program or module stored in the memory 131, and calling the data stored in the memory 131. For example, when the at least one processor 132 executes the computer program stored in the memory, it implements all or part of the steps of the above-mentioned transceiver line problem diagnosis method in the embodiment of the present application; or implements all or part of the functions of the device. The at least one processor 132 can be composed of an integrated circuit, for example, it can be composed of a single packaged integrated circuit, or it can be composed of multiple integrated circuits with the same function or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips.

[0076] In some embodiments, the at least one communication bus 133 is configured to realize connection and communication between the memory 131 and the at least one processor 132, etc. Although not shown, the terminal controller 13 may also include a power supply (such as a battery) for powering each component. Preferably, the power supply may be logically connected to the at least one processor 132 through a power management device, so that the power management device can realize functions such as management of charging, discharging, and power consumption management. The power supply may also include any components such as one or more DC or AC power supplies, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The terminal controller 13 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0077] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a terminal controller (which can be a personal computer, electronic device, or network device, etc.) or a processor to execute part of the method described in each embodiment of the present application.

[0078] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0079] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0080] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.

Claims

1. A method for diagnosing problems in a transceiver line, characterized in that: Applied to a transceiver line problem diagnosis system, the transceiver line problem diagnosis system includes a master station and a slave station, the master station and the slave station are connected via an RS485 communication line and an error code line, and the transceiver line problem diagnosis method includes: Determine whether the slave station successfully receives a first detection signal sent by the master station through the RS485 communication line within a first preset time period; When the slave station successfully receives the first detection signal within the first preset time period, it is determined that the transceiver line problem diagnosis system does not have a first transceiver line problem; When the slave station fails to successfully receive the first detection signal within the first preset time period, acquiring a voltage signal of the bit error line; The problem of the first transceiver line is diagnosed according to the voltage signal.

2. The method for diagnosing transceiver line problems according to claim 1, characterized in that: The diagnosing the problem of the first transceiver line according to the voltage signal includes: When the voltage signal is at a high level, it is determined that the problem with the first transceiver line is that the master station fails to send the first detection signal; When the voltage signal is at a low level, it is determined that the problem with the first transceiver line is that a communication line error exists in the RS485 communication line.

3. The method for diagnosing transceiver line problems according to claim 1, characterized in that: The transceiver line problem diagnosis method further includes: Determine whether the master station successfully receives a second detection signal corresponding to the first detection signal returned by the slave station within a second preset time period; When it is determined that the master station successfully receives the second detection signal within the second preset time period, it is determined that the transceiver line problem diagnosis system does not have a second transceiver line problem; When it is determined that the master station has not successfully received the second detection signal within the second preset time period, it is determined that the transceiver line problem exists in the transceiver line problem diagnosis system.

4. The method for diagnosing transceiver line problems according to claim 1, characterized in that: When the master station establishes a connection with the slave station via a wireless communication line, the transceiver line problem diagnosis method further includes: Determining whether the slave station successfully receives a third detection signal within the first preset time period; When the slave station receives the third detection signal within the first preset time period, analyzing the third detection signal to determine whether the third detection signal is consistent with the first detection signal; When the third detection signal is consistent with the first detection signal, extracting a detection instruction of the third detection signal; Determining whether the detection instruction exists in a preset instruction library of the slave station; When the detection instruction exists in the preset instruction library, determining that the transceiver line problem diagnosis system does not have the first transceiver line problem; When the detection instruction does not exist in the preset instruction library, it is determined that the transceiver line problem diagnosis system has the first transceiver line problem, and it is determined that a communication line error exists in the wireless communication line.

5. The method for diagnosing transceiver line problems according to claim 4, characterized in that: The transceiver line problem diagnosis method further includes: Determine N wireless communication lines between the master station and the slave station, where N is an integer greater than or equal to 2; Obtaining the signal strength of each communication line in the N wireless communication lines; Determine whether there is a first wireless communication line among the N wireless communication lines whose signal strength is greater than a first preset threshold; When the first wireless communication line exists among the N wireless communication lines, the master station is controlled to send the first detection signal through the first wireless communication line.

6. The method for diagnosing problems in a transceiver line as claimed in claim 5, characterized in that: The transceiver line problem diagnosis method further includes: When the first wireless communication link does not exist in the N wireless communication links, adjusting the first preset threshold to obtain a second preset threshold; Determine whether there is a second wireless communication line among the N wireless communication lines, whose signal strength is greater than the second preset threshold; When the second wireless communication line exists among the N wireless communication lines, controlling the master station to send the first detection signal through the second wireless communication line; When the second wireless communication link does not exist in the N wireless communication links, the above steps are repeated until a wireless communication link between the master station and the slave station is determined.

7. The method for diagnosing transceiver line problems according to claim 3, characterized in that: The transceiver line problem diagnosis method further includes: When it is determined that there is a problem with the first transceiver line, a first alarm signal is generated according to the problem with the first transceiver line, and the master station is controlled to issue an alarm according to the first alarm signal; When it is determined that there is a problem with the second transceiver line, a second alarm signal is generated according to the problem with the second transceiver line, and the slave station is controlled to issue an alarm according to the second alarm signal.

8. A device for diagnosing problems in a transceiver line, characterized in that: It is set in a transceiver line problem diagnosis system, the transceiver line problem diagnosis system includes a master station and a slave station, the master station and the slave station are connected through an RS485 communication line and an error line, and the transceiver line problem diagnosis device includes: A judging module, used for judging whether the slave station has successfully received a first detection signal sent by the master station through the RS485 communication line within a first preset time period; A determination module, configured to determine that the transceiver line problem diagnosis system does not have a first transceiver line problem when the slave station successfully receives the first detection signal within the first preset time period; An acquisition module, configured to acquire a voltage signal of the error bit line when the slave station fails to successfully receive the first detection signal within the first preset time period; A diagnosis module is used to diagnose the problem of the first transceiver line according to the voltage signal.

9. A transceiver line problem diagnosis system, characterized in that: The transceiver line problem diagnosis system includes a master station and a slave station, the master station and the slave station are connected via an RS485 communication line and an error line, the transceiver line problem diagnosis system also includes a terminal controller, the terminal controller is connected to the master station and the slave station, the terminal controller includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the transceiver line problem diagnosis method described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for diagnosing transceiver line problems according to any one of claims 1 to 7 are implemented.