A communication signal short circuit detection method, circuit, device and system
By detecting the delay consistency and number of changes of the sending signal and the receiving signal in the serial communication system, combined with the frame structure, the problem of difficulty in short-circuit detection of communication signals is solved, simplified design and high-reliability short-circuit detection are achieved, and the design is saved. area.
Patent Information
- Application Number
- CN202410977137.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-22
AI Technical Summary
In serial communication systems, there is a problem that it is difficult to detect short circuits of communication signals. The existing technology cannot effectively detect signal short circuits at the sending end and receiving end in real time, making it difficult to report protective measures in time under abnormal conditions.
By detecting the data path delay consistency, change times and number of frames of the sending signal and receiving signal, combined with the format of the synchronization frame, command frame and data frame, the digital control circuit is used to implement short circuit detection and determine whether the set threshold is reached to determine the short circuit abnormality. .
Simplified design is achieved, requiring only digital control circuits, avoiding additional analog circuits, improving detection reliability, saving design area, and enabling timely identification and reporting of signal short circuit abnormalities.
Smart Images

Figure CN118524037B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of serial communication technology, and in particular to a communication signal short circuit detection method, circuit, device and system. Background Art
[0002] like Figure 1 In the serial communication system shown, during the communication process, the sending end of the slave or host is used only as an output end, and the receiving end of the slave or host is used only as an input end.
[0003] During the communication process, various communication anomalies may occur. After a communication anomaly occurs, the host or slave where the communication anomaly occurs should promptly report the abnormal information to the upper-level system so that system protection measures can be taken in a timely manner.
[0004] like Figure 1 The host sends the single-bit information to the slave receiving end through the host transmitting end according to the agreed communication format. After the slave receives the single-bit information through the slave receiving end according to the agreed communication format, the slave sends the single-bit information to the host receiving end through the slave transmitting end according to the agreed communication format based on the single-bit information received by the slave.
[0005] Figure 1 The short circuit of the communication signal between the transmitting end and the receiving end shown in is an abnormal situation in the serial communication system, and a method for detecting the short circuit of the signal between the transmitting end and the receiving end in real time is urgently needed. Summary of the invention
[0006] The present invention aims to provide a communication signal short circuit detection method, circuit, device and system to solve the above-mentioned problems.
[0007] The present invention provides a communication signal short circuit detection method, comprising:
[0008] Perform short circuit detection on the sending and receiving ends when sending information;
[0009] If a short circuit occurs between the transmitting end and the receiving end of the communication device, the effective short circuit between the transmitting end and the receiving end can be identified by detecting whether the information of the receiving end and the transmitting end of the communication device is consistent.
[0010] Furthermore, the communication signal short circuit detection method comprises:
[0011] Make the data path delay time of the sending signal and the receiving signal consistent;
[0012] Detect the number of changes in the transmitted and received signals per frame;
[0013] During the communication information transmission process, if the number of changes of the sending signal and the receiving signal in each information transmission frame is the same, the receiving end and the sending end are effectively short-circuited;
[0014] Record the number of effective short-circuit information transmission frames;
[0015] It is determined whether the number of effective short-circuit information transmission frames has reached the set short-circuit abnormality threshold. If the short-circuit abnormality threshold has been reached, the short-circuit abnormality at the receiving signal end and the sending signal end is effective.
[0016] Furthermore, the information transmission frame is a synchronization frame, a command frame and n data frames in sequence; wherein:
[0017] The sync frame is used to identify the start of communication;
[0018] The command frame is used to specify the number of data frames;
[0019] Data frames are used to carry data that needs to be transmitted.
[0020] Furthermore, each information transmission frame includes 10 bits:
[0021] The start bit is low level to indicate the start of the information transmission frame;
[0022] The stop bit is high level to indicate the end of the information transmission frame;
[0023] The 8 bits transmitted in the middle are valid data.
[0024] Furthermore, the transmission order of the information transmission frame is: first transmit the high bit, then transmit the low bit.
[0025] The present invention also provides a communication signal short-circuit detection circuit, comprising a transmission signal synchronizer, a transmission signal change detector and a transmission signal change times counter per frame connected in sequence; a reception signal synchronizer, a reception signal change detector and a reception signal change times counter per frame connected in sequence; a reception signal and transmission signal comparator connected to the transmission signal change times counter per frame and the reception signal change times counter per frame; a short-circuit frame counter connected to the reception signal and transmission signal comparator; and a reception signal and transmission signal short-circuit determiner connected to the short-circuit frame counter;
[0026] The transmission signal synchronizer and the reception signal synchronizer are used to make the data path delay time of the transmission signal and the reception signal consistent;
[0027] The transmission signal change detector is used to detect the change of the transmission signal of each frame, and the reception signal change detector is used to detect the change of the reception signal;
[0028] The signal change count counter for each frame is used to count the changes of the signal sent for each frame, and the signal change count counter for each frame is used to count the changes of the signal received for each frame;
[0029] The receiving signal and sending signal comparator is used to determine whether the number of changes of the sending signal and the receiving signal in each information transmission frame is the same during the communication information sending process. If they are the same, the receiving end and the sending end are effectively short-circuited;
[0030] The short-circuit frame counter is used to record the number of information transmission frames with effective short circuits;
[0031] The receiving signal and sending signal short circuit judgement device is used to judge whether the number of information transmission frames with effective short circuit has reached the set short circuit abnormality threshold. If the short circuit abnormality threshold has been reached, the short circuit abnormality at the receiving signal end and the sending signal end is effective.
[0032] The present invention also provides a communication device, which is a host or a slave in a serial communication system, comprising:
[0033] A communication information sending controller, used to send a signal through the sending end according to the agreed data communication format, and to send a sending mark signal for marking the communication information sending process to the above-mentioned communication signal short circuit detection circuit;
[0034] A communication receiving information controller, used to receive signals through a receiving end according to an agreed data communication format;
[0035] The communication signal short circuit detection circuit is used to detect short circuit anomalies between the sending end and the receiving end during the process of communication information transmission.
[0036] The present invention also provides a serial communication system, comprising a host and a slave; the host and the slave are the above-mentioned communication devices.
[0037] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0038] The communication signal short circuit detection method of the present invention is simple and can be implemented with only a digital control circuit. There is no need to add an additional analog circuit for detecting physical voltage or current. While ensuring detection reliability, it simplifies the design of communication signal short circuit detection and saves the entire design area. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 Schematic diagram of serial communication system.
[0041] Figure 2 Flow chart of a communication signal short circuit detection method in an embodiment of the present invention.
[0042] Figure 3 4 is a functional block diagram of a communication device in an embodiment of the present invention.
[0043] Figure 4 It is a schematic diagram of the agreed data communication format in the embodiment of the present invention.
[0044] Figure 5 Schematic diagram of the data communication format of the information transmission frame in an embodiment of the present invention.
[0045] Figure 6 4 is a complete block diagram of a communication signal short circuit detection circuit in an embodiment of the present invention.
[0046] Figure 7 It is a waveform diagram for judging whether a receiving signal and a sending signal are effectively short-circuited in an embodiment of the present invention. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0048] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] Example
[0050] This embodiment proposes a communication signal short circuit detection method, and its detection principle is:
[0051] The communication equipment of the serial communication system includes a host and a slave. The receiving end of the host and the slave only acts as an input end during the communication process, and the sending end only acts as an output end during the communication process. The sending end and the receiving end of the communication equipment work in time-sharing. The communication equipment only performs short-circuit detection of the sending end and the receiving end when sending information. If a short circuit occurs between the sending end and the receiving end of the communication equipment, the effective short circuit between the sending end and the receiving end can be identified by detecting whether the information of the receiving end and the sending end of the communication equipment is consistent.
[0052] Figure 2 The present invention is a flow chart of a communication signal short circuit detection method, wherein the communication signal short circuit detection method specifically comprises the following steps:
[0053] Make the data path delay time of the sending signal and the receiving signal consistent;
[0054] Detect the number of changes in the transmitted and received signals per frame;
[0055] During the communication information transmission process, if the number of changes of the sending signal and the receiving signal in each information transmission frame is the same, the receiving end and the sending end are effectively short-circuited;
[0056] Record the number of effective short-circuit information transmission frames;
[0057] It is determined whether the number of effective short-circuit information transmission frames has reached the set short-circuit abnormality threshold. If the short-circuit abnormality threshold has been reached, the short-circuit abnormality at the receiving signal end and the sending signal end is effective.
[0058] like Figure 3 The figure shows a functional block diagram of a communication device, in which:
[0059] A communication information sending controller, used to send a signal through the sending end according to the agreed data communication format, and to send a sending flag signal for marking the communication information sending process to the communication signal short circuit detection circuit (when the sending flag signal output by the communication information sending controller is at a low level, it means that the communication information sending controller is in the communication information sending process);
[0060] A communication receiving information controller, used to receive signals through a receiving end according to an agreed data communication format;
[0061] The communication signal short-circuit detection circuit is used to detect short-circuit anomalies between the sending end and the receiving end during the communication information sending process: if the short-circuit detection circuit detects that there is a short-circuit anomaly between the sending end and the receiving end, the short-circuit anomaly information is reported to the upper system.
[0062] In this embodiment, the agreed data communication format is as follows: Figure 4As shown: each information transmission is in frames, and the information transmission frames are synchronization frames, command frames and n data frames in sequence; among them, the synchronization frame is used to identify the start of communication, the command frame is used to specify the number of data frames, and the data frame is used to carry the data to be transmitted.
[0063] In this embodiment, the data communication format of the information transmission frame is as follows: Figure 5 As shown in the figure: Each information transmission frame includes 10 bits. The start bit is low level, indicating the start of the information transmission frame, and the stop bit is high level, indicating the end of the information transmission frame. The 8 bits transmitted in the middle are valid data. The transmission order of the information transmission frame is as follows: Figure 4 As shown in the figure: the high bit is transmitted first, and then the low bit. The transmission time of each bit is as follows: Figure 4 T1 is determined by the transmission rate. For example, if the transmission rate is 1 MHz, the transmission time of each bit in this embodiment is 1 microsecond.
[0064] Figure 3 The communication sending information controller and the communication receiving information controller shown are both in accordance with Figure 4 and Figure 5 The data communication format is used to send and receive information.
[0065] Figure 6 The complete block diagram of the communication signal short circuit detection circuit is shown below, where:
[0066] The transmission signal synchronizer and the reception signal synchronizer are used to make the data path delay time of the transmission signal and the reception signal consistent, so as to prevent the comparison result of the reception signal and the transmission signal comparator from being wrong;
[0067] The transmission signal change detector is used to detect the change of the transmission signal of each frame, and the reception signal change detector is used to detect the change of the reception signal;
[0068] The signal change count counter for each frame is used to count the changes of the signal sent for each frame, and the signal change count counter for each frame is used to count the changes of the signal received for each frame;
[0069] The receiving signal and sending signal comparator is used to determine whether the number of changes of the sending signal and the receiving signal in each information transmission frame is the same during the communication information sending process. If they are the same, the receiving end and the sending end are effectively short-circuited;
[0070] The short-circuit frame counter is used to record the number of information transmission frames with effective short circuits;
[0071] The short circuit judgement device for receiving and sending signals is used to judge whether the number of information transmission frames with effective short circuit has reached the set short circuit abnormality threshold (the short circuit abnormality threshold is set as needed, for example, 3). If the short circuit abnormality threshold has been reached, the short circuit abnormality at the receiving signal end and the sending signal end is valid.
[0072] like Figure 7 The waveform diagram shown is a waveform diagram for judging whether the receiving signal and the sending signal are effectively short-circuited: each time the receiving signal changes, the synchronous receiving signal and the synchronous sending signal are detected to see if they are equal, so as to eliminate the delay effect from the sending end to the receiving end. If the sending signal and the receiving signal are not equal, the detection of the current information transmission frame is terminated, and a new detection is started when the next information transmission frame starts; Figure 7 At the moment when the receiving signal changes, the synchronous sending signal and the synchronous receiving signal are equal. The detection is carried out until the transmission of the current information transmission frame ends. At the moment when the current information transmission frame detection ends, the count of the number of changes of the receiving signal and the count of the number of changes of the sending signal are then detected to be equal, and then the effective short-circuit pulse will be triggered. Figure 7 In the information transmission frame, three consecutive effective short circuits are detected, so the short circuit abnormal pulses of the sending signal and the receiving signal are set high, and the short circuit abnormal information is reported to the upper system.
[0073] The above communication signal short-circuit detection method is simple and can be implemented with only a digital control circuit. There is no need to add additional analog circuits for detecting physical voltage or current. While ensuring detection reliability, it simplifies the design of communication signal short-circuit detection and saves the entire design area.
[0074] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A communication signal short circuit detection method, characterized in that: include: Perform short circuit detection on the sending and receiving ends when sending information; If a short circuit occurs between the transmitting end and the receiving end of the communication device, the effective short circuit between the transmitting end and the receiving end can be identified by detecting whether the information of the receiving end and the transmitting end of the communication device is consistent; The communication signal short circuit detection method comprises: Make the data path delay time of the sending signal and the receiving signal consistent; Detect the number of changes in the transmitted and received signals per frame; During the communication information transmission process, if the number of changes of the sending signal and the receiving signal in each information transmission frame is the same, the receiving end and the sending end are effectively short-circuited; Record the number of effective short-circuit information transmission frames; It is determined whether the number of effective short-circuit information transmission frames has reached the set short-circuit abnormality threshold. If the short-circuit abnormality threshold has been reached, the short-circuit abnormality at the receiving signal end and the sending signal end is effective.
2. The communication signal short circuit detection method according to claim 1, characterized in that: The information transmission frames are sequentially a synchronization frame, a command frame and n data frames; wherein: The sync frame is used to identify the start of communication; The command frame is used to specify the number of data frames; Data frames are used to carry data that needs to be transmitted.
3. The communication signal short circuit detection method according to claim 2, characterized in that: Each information transmission frame consists of 10 bits: The start bit is low level to indicate the start of the information transmission frame; The stop bit is high level to indicate the end of the information transmission frame; The 8 bits transmitted in the middle are valid data.
4. The communication signal short circuit detection method according to claim 3, characterized in that: The transmission order of information transmission frames is: high bits first, then low bits.
5. A communication signal short circuit detection circuit, characterized in that: It includes a transmitting signal synchronizer, a transmitting signal change detector and a transmitting signal change times counter per frame connected in sequence; a receiving signal synchronizer, a receiving signal change detector and a receiving signal change times counter per frame connected in sequence; a receiving signal and transmitting signal comparator connected to the transmitting signal change times counter per frame and the receiving signal change times counter per frame; and a short-circuit frame counter connected to the receiving signal and transmitting signal comparator; and, a receiving signal and a transmitting signal short circuit determiner connected to the short circuit frame counter; The transmission signal synchronizer and the reception signal synchronizer are used to make the data path delay time of the transmission signal and the reception signal consistent; The transmission signal change detector is used to detect the change of the transmission signal of each frame, and the reception signal change detector is used to detect the change of the reception signal; The signal change count counter for each frame is used to count the changes of the signal sent for each frame, and the signal change count counter for each frame is used to count the changes of the signal received for each frame; The receiving signal and sending signal comparator is used to determine whether the number of changes of the sending signal and the receiving signal in each information transmission frame is the same during the communication information sending process. If they are the same, the receiving end and the sending end are effectively short-circuited; The short-circuit frame counter is used to record the number of information transmission frames with effective short circuits; The receiving signal and sending signal short circuit judgement device is used to judge whether the number of information transmission frames with effective short circuit has reached the set short circuit abnormality threshold. If the short circuit abnormality threshold has been reached, the short circuit abnormality at the receiving signal end and the sending signal end is effective.
6. A communication device, characterized in that: include: A communication information sending controller, used to send a signal through the sending end according to the agreed data communication format, and to send a sending mark signal for marking the communication information sending process to the communication signal short circuit detection circuit as claimed in claim 5; A communication receiving information controller, used to receive signals through a receiving end according to an agreed data communication format; The communication signal short circuit detection circuit is used to detect short circuit anomalies between the sending end and the receiving end during the process of communication information transmission.
7. The communication device according to claim 6, characterized in that The communication device is a host in a serial communication system.
8. The communication device according to claim 6, characterized in that The communication device is a slave in a serial communication system.
9. A serial communication system, characterized in that: It comprises a host and a slave; the host and the slave are the communication devices as claimed in claim 6.
