CN118524037B - Communication signal short circuit detection method, circuit, equipment and system - Google Patents

Communication signal short circuit detection method, circuit, equipment and system Download PDF

Info

Publication number
CN118524037B
CN118524037B CN202410977137.6A CN202410977137A CN118524037B CN 118524037 B CN118524037 B CN 118524037B CN 202410977137 A CN202410977137 A CN 202410977137A CN 118524037 B CN118524037 B CN 118524037B
Authority
CN
China
Prior art keywords
signal
communication
short circuit
frame
transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410977137.6A
Other languages
Chinese (zh)
Other versions
CN118524037A (en
Inventor
张红云
吴杭举
卿健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Yichong Wireless Power Technology Co ltd
Original Assignee
Chengdu Yichong Wireless Power Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Yichong Wireless Power Technology Co ltd filed Critical Chengdu Yichong Wireless Power Technology Co ltd
Priority to CN202410977137.6A priority Critical patent/CN118524037B/en
Publication of CN118524037A publication Critical patent/CN118524037A/en
Application granted granted Critical
Publication of CN118524037B publication Critical patent/CN118524037B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Communication Control (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention relates to the technical field of serial communication, and provides a communication signal short circuit detection method, a circuit, equipment and a system, wherein the communication signal short circuit detection method comprises the following steps: short circuit detection of a transmitting end and a receiving end is carried out when information is transmitted; if the sending end and the receiving end of the communication equipment have short circuits, the effective short circuits of 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. The communication signal short circuit detection method is simple, can be realized only by a digital control circuit, does not need to add an analog circuit for detecting physical voltage or current additionally, simplifies the design of communication signal short circuit detection while ensuring the detection reliability, and saves the whole design area.

Description

Communication signal short circuit detection method, circuit, equipment and system
Technical Field
The present invention relates to the field of serial communications technologies, and in particular, to a method, a circuit, an apparatus, and a system for detecting a short circuit of a communication signal.
Background
In the serial communication system shown in fig. 1, in the communication process, the transmitting end of the slave or the master is used as an output end only, and the receiving end of the slave or the master is used as an input end only.
In the communication process, various communication anomalies may occur, and after the communication anomalies occur, the host or the slave with the communication anomalies should report the anomaly information to the upper system in time, so as to take system protection measures in time.
As shown in fig. 1, the host transmits single-bit information to the slave receiving end through the host transmitting end according to the agreed communication format, and the slave transmits single-bit information to the host receiving end through the slave transmitting end according to the agreed communication format according to the single-bit information received by the slave after the slave finishes receiving the single-bit information through the slave receiving end according to the agreed communication format.
The short circuit of the communication signals of the transmitting side and the receiving side shown in fig. 1 is an abnormal situation in the serial communication system, and a method capable of detecting the short circuit of the communication signals of the transmitting side and the receiving side in real time is needed.
Disclosure of Invention
The present invention is directed to a method, circuit, device and system for detecting a short circuit of a communication signal, so as to solve the above-mentioned problems.
The invention provides a communication signal short circuit detection method, which comprises the following steps:
short circuit detection of a transmitting end and a receiving end is carried out when information is transmitted;
if the sending end and the receiving end of the communication equipment have short circuits, the effective short circuits of 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.
Further, the communication signal short circuit detection method includes:
enabling delay time of data paths of a sending signal and a receiving signal to be consistent;
detecting the change times of the transmission signal and the receiving signal of each frame;
in the process of communication information transmission, the number of changes of a transmission signal and a receiving signal in each information transmission frame is the same, and a receiving end and a transmitting end are effectively short-circuited;
Recording the number of the information transmission frames of the effective short circuit;
And judging whether the number of the information transmission frames with effective short circuits reaches a set short circuit abnormal threshold, and if the number of the information transmission frames with effective short circuits reaches the short circuit abnormal threshold, judging that the short circuits of the receiving signal end and the sending signal end are effective.
Further, the information transmission frames are a synchronous frame, a command frame and n data frames in sequence; wherein:
The synchronization frame is used for identifying the communication start;
the command frame is used for specifying the number of data frames;
The data frame is used to carry the data that needs to be transmitted.
Further, each frame of information transmission frame includes 10 bits:
a start bit of low level indicates that the information transmission frame starts;
the stop bit being high indicates that the information transmission frame is over;
The 8 bits of the intermediate transmission are valid data.
Further, the transmission sequence of the information transmission frame is as follows: the high bit is transmitted first and then the low bit is transmitted.
The invention also provides a communication signal short circuit detection circuit, which comprises a transmission signal synchronizer, a transmission signal change detector and a transmission signal change frequency counter which are sequentially connected; the device comprises a received signal synchronizer, a received signal change detector and a received signal change frequency counter of each frame, which are connected in sequence; a reception signal and transmission signal comparator connected to the transmission signal change count per frame counter and the reception signal change count per frame counter; a short-circuit frame counter connected to the received signal and the transmitted signal comparator; and a short circuit judging device for receiving signal and transmitting signal connected with the short circuit frame counter;
The transmission signal synchronizer and the reception signal synchronizer are used for enabling the delay time of the data paths of the transmission signal and the reception signal to be consistent;
the transmission signal change detector is used for detecting the change of the transmission signal of each frame, and the receiving signal change detector is used for detecting the change of the receiving signal;
The number of times of change of each frame of transmission signal counter is used for counting the change of each frame of transmission signal, and the number of times of change of each frame of receiving signal counter is used for counting the change of each frame of receiving signal;
The receiving signal and transmitting signal comparator is used for judging whether the number of changes of the transmitting signal and the receiving signal in each information transmission frame is the same or not in the process of transmitting information in a communication way, and if so, the receiving end and the transmitting end are effectively short-circuited;
The short circuit frame counter is used for recording the number of the information transmission frames which are effectively short-circuited;
The short circuit judgment device is used for judging whether the number of the information transmission frames of the effective short circuit reaches a set short circuit abnormal threshold value, and if the number of the information transmission frames of the effective short circuit reaches the short circuit abnormal threshold value, the short circuit of the receiving signal end and the sending signal end is effective.
The invention also provides a communication device, which is a master or a slave in a serial communication system, comprising:
A communication transmission information controller for transmitting a signal through a transmitting terminal according to a prescribed data communication format, and for transmitting a transmission flag signal for flag communication transmission information process to the above-mentioned communication signal short circuit detection circuit;
A communication receiving information controller for receiving signals through a receiving end according to a contracted data communication format;
the communication signal short circuit detection circuit is used for detecting short circuit abnormality of a sending end and a receiving end in the process of communication information sending.
The invention also provides a serial communication system, which comprises a host computer and a slave computer; the master and the slave are the communication devices.
In summary, due to the adoption of the technical scheme, the beneficial effects of the invention are as follows:
The communication signal short circuit detection method is simple, can be realized only by a digital control circuit, does not need to add an analog circuit for detecting physical voltage or current additionally, simplifies the design of communication signal short circuit detection while ensuring the detection reliability, and saves the whole design area.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following description will briefly describe the drawings in the embodiments, it being understood that the following drawings only illustrate some embodiments of the present invention and should not be considered as limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a serial communication system.
Fig. 2 is a flowchart of a method for detecting a short circuit of a communication signal according to an embodiment of the present invention.
Fig. 3 is a functional block diagram of a communication device in an embodiment of the present invention.
FIG. 4 is a schematic diagram of a contracted data communication format in an embodiment of the invention.
Fig. 5 is a schematic diagram of a data communication format of an information transmission frame according to an embodiment of the present invention.
Fig. 6 is a complete block diagram of a short circuit detection circuit for communication signals in an embodiment of the present invention.
Fig. 7 is a waveform diagram of determining that a received signal and a transmitted signal are effectively shorted in an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Examples
The embodiment provides a communication signal short circuit detection method, which has the detection principle that:
The communication device of the serial communication system comprises a host computer and a slave computer, wherein the receiving ends of the host computer and the slave computer only serve as input ends in the communication process, the transmitting end only serves as output ends in the communication process, and the transmitting end and the receiving end of the communication device work in a time-sharing mode. The communication equipment only performs short circuit detection of the sending end and the receiving end when information is sent, and if the sending end and the receiving end of the communication equipment have short circuits, the effective short circuits of 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.
Fig. 2 is a flowchart of a method for detecting a short circuit of a communication signal, where the method specifically includes the following steps:
enabling delay time of data paths of a sending signal and a receiving signal to be consistent;
detecting the change times of the transmission signal and the receiving signal of each frame;
in the process of communication information transmission, the number of changes of a transmission signal and a receiving signal in each information transmission frame is the same, and a receiving end and a transmitting end are effectively short-circuited;
Recording the number of the information transmission frames of the effective short circuit;
And judging whether the number of the information transmission frames with effective short circuits reaches a set short circuit abnormal threshold, and if the number of the information transmission frames with effective short circuits reaches the short circuit abnormal threshold, judging that the short circuits of the receiving signal end and the sending signal end are effective.
Fig. 3 shows a functional block diagram of a communication device, in which:
A communication transmission information controller for transmitting a signal through the transmitting end according to the agreed data communication format, and for transmitting a transmission flag signal for marking a communication transmission information process to the communication signal short-circuit detection circuit (when the transmission flag signal output by the communication transmission information controller is at a low level, it represents that the communication transmission information controller is in the communication transmission information process);
A communication receiving information controller for receiving signals through a receiving end according to a contracted data communication format;
The communication signal short circuit detection circuit is used for detecting short circuit abnormality of a sending end and a receiving end in the process of communication information sending: if the short circuit detection circuit detects that the sending end and the receiving end have short circuit abnormality, the short circuit abnormality information is reported to an upper system.
In this embodiment, the agreed data communication format is as shown in fig. 4: each time of information transmission is carried out by taking a frame as a unit, the information transmission frame sequentially comprises a synchronous frame, a command frame and n data frames; the synchronous frame is used for identifying the communication start, the command frame is used for specifying the number of data frames, and the data frames are used for bearing data to be transmitted.
In this embodiment, the data communication format of the information transmission frame is as shown in fig. 5: each frame of information transmission frame comprises 10 bits, wherein a start bit is low level to indicate the start of the information transmission frame, and a stop bit is high level to indicate the end of the information transmission frame; the 8 bits of the intermediate transmission are effective data, and the transmission sequence of the information transmission frame is as shown in fig. 4: the high bit is transmitted first and then the low bit is transmitted. The transmission time of each bit is determined by the transmission rate, for example, the transmission rate is 1 mhz, as shown by T1 in fig. 4, and the transmission time of each bit in this embodiment is 1 microsecond.
The communication transmission information controller and the communication reception information controller shown in fig. 3 both transmit and receive information in accordance with the data communication formats of fig. 4 and 5.
Fig. 6 is a complete block diagram of a communication signal short detection circuit, wherein:
the transmission signal synchronizer and the reception signal synchronizer are used for enabling delay time of data paths of the transmission signal and the reception signal to be consistent, and preventing comparison results of the reception signal and the transmission signal comparator from being wrong;
the transmission signal change detector is used for detecting the change of the transmission signal of each frame, and the receiving signal change detector is used for detecting the change of the receiving signal;
The number of times of change of each frame of transmission signal counter is used for counting the change of each frame of transmission signal, and the number of times of change of each frame of receiving signal counter is used for counting the change of each frame of receiving signal;
The receiving signal and transmitting signal comparator is used for judging whether the number of changes of the transmitting signal and the receiving signal in each information transmission frame is the same or not in the process of transmitting information in a communication way, and if so, the receiving end and the transmitting end are effectively short-circuited;
The short circuit frame counter is used for recording the number of the information transmission frames which are effectively short-circuited;
The short circuit judgment device of the receiving signal and the sending signal is used for judging whether the number of the information transmission frames of the effective short circuit reaches a set short circuit abnormal threshold (the short circuit abnormal threshold is set according to the requirement, for example, 3), and if the short circuit abnormal threshold is reached, the short circuit of the receiving signal end and the sending signal end is effective.
Fig. 7 is a waveform diagram showing a determination that the received signal and the transmitted signal are effectively shorted: detecting whether the synchronous receiving signal and the synchronous transmitting signal are equal at the moment of the change of the receiving signal each time, so that the delay influence from a transmitting end to a receiving end can be eliminated, if the transmitting signal and the receiving signal are not equal, the detection of the current information transmission frame is ended, and the next information transmission frame starts to restart the detection for the new time; in fig. 7, the time of the change of the received signal, the synchronous sending signal and the synchronous receiving signal are equal, the time of the detection of the current information transmission frame is detected until the transmission of the current information transmission frame is finished, then the time of the detection of the change count of the received signal is equal to the time of the change count of the sending signal, the effective short-circuit pulse is triggered, and in fig. 7, the information transmission frame of continuous 3 effective short-circuits is detected, so that the short-circuit abnormal pulse of the sending signal and the receiving signal is set high, and the short-circuit abnormal information is reported to an upper system.
The communication signal short circuit detection method is simple, can be realized only by a digital control circuit, does not need to add an analog circuit for detecting physical voltage or current additionally, simplifies the design of communication signal short circuit detection while ensuring the detection reliability, and saves the whole design area.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A method for detecting a short circuit of a communication signal, comprising:
short circuit detection of a transmitting end and a receiving end is carried out when information is transmitted;
If the sending end and the receiving end of the communication equipment have short circuits, the effective short circuits of 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;
The communication signal short circuit detection method comprises the following steps:
enabling delay time of data paths of a sending signal and a receiving signal to be consistent;
detecting the change times of the transmission signal and the receiving signal of each frame;
in the process of communication information transmission, the number of changes of a transmission signal and a receiving signal in each information transmission frame is the same, and a receiving end and a transmitting end are effectively short-circuited;
Recording the number of the information transmission frames of the effective short circuit;
And judging whether the number of the information transmission frames with effective short circuits reaches a set short circuit abnormal threshold, and if the number of the information transmission frames with effective short circuits reaches the short circuit abnormal threshold, judging that the short circuits of the receiving signal end and the sending signal end are effective.
2. The communication signal short circuit detection method according to claim 1, wherein the information transmission frame is a synchronization frame, a command frame, and n data frames in this order; wherein:
The synchronization frame is used for identifying the communication start;
the command frame is used for specifying the number of data frames;
The data frame is used to carry the data that needs to be transmitted.
3. The communication signal short circuit detection method according to claim 2, wherein each frame of information transmission frame includes 10 bits:
a start bit of low level indicates that the information transmission frame starts;
the stop bit being high indicates that the information transmission frame is over;
The 8 bits of the intermediate transmission are valid data.
4. A communication signal short circuit detection method according to claim 3, wherein the transmission order of the information transmission frames is: the high bit is transmitted first and then the low bit is transmitted.
5. A communication signal short circuit detection circuit is characterized by comprising a transmission signal synchronizer, a transmission signal change detector and a transmission signal change number counter which are sequentially connected; the device comprises a received signal synchronizer, a received signal change detector and a received signal change frequency counter of each frame, which are connected in sequence; a reception signal and transmission signal comparator connected to the transmission signal change count per frame counter and the reception signal change count per frame counter; a short-circuit frame counter connected to the received signal and the transmitted signal comparator; and a short circuit judging device for receiving signal and transmitting signal connected with the short circuit frame counter;
The transmission signal synchronizer and the reception signal synchronizer are used for enabling the delay time of the data paths of the transmission signal and the reception signal to be consistent;
the transmission signal change detector is used for detecting the change of the transmission signal of each frame, and the receiving signal change detector is used for detecting the change of the receiving signal;
The number of times of change of each frame of transmission signal counter is used for counting the change of each frame of transmission signal, and the number of times of change of each frame of receiving signal counter is used for counting the change of each frame of receiving signal;
The receiving signal and transmitting signal comparator is used for judging whether the number of changes of the transmitting signal and the receiving signal in each information transmission frame is the same or not in the process of transmitting information in a communication way, and if so, the receiving end and the transmitting end are effectively short-circuited;
The short circuit frame counter is used for recording the number of the information transmission frames which are effectively short-circuited;
The short circuit judgment device is used for judging whether the number of the information transmission frames of the effective short circuit reaches a set short circuit abnormal threshold value, and if the number of the information transmission frames of the effective short circuit reaches the short circuit abnormal threshold value, the short circuit of the receiving signal end and the sending signal end is effective.
6. A communication device, comprising:
a communication transmission information controller for transmitting a signal through a transmitting end in accordance with a prescribed data communication format, and for transmitting a transmission flag signal for flag communication transmission information process to the communication signal short-circuit detection circuit according to claim 5;
A communication receiving information controller for receiving signals through a receiving end according to a contracted data communication format;
the communication signal short circuit detection circuit is used for detecting short circuit abnormality of a sending end and a receiving end in the process of communication information sending.
7. The communication device of claim 6, wherein the communication device is a host in a serial communication system.
8. The communication device of claim 6, wherein the communication device is a slave in a serial communication system.
9. A serial communication system comprising a master and a slave; the master and the slave are the communication device according to claim 6.
CN202410977137.6A 2024-07-22 2024-07-22 Communication signal short circuit detection method, circuit, equipment and system Active CN118524037B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410977137.6A CN118524037B (en) 2024-07-22 2024-07-22 Communication signal short circuit detection method, circuit, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410977137.6A CN118524037B (en) 2024-07-22 2024-07-22 Communication signal short circuit detection method, circuit, equipment and system

Publications (2)

Publication Number Publication Date
CN118524037A CN118524037A (en) 2024-08-20
CN118524037B true CN118524037B (en) 2024-09-20

Family

ID=92281190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410977137.6A Active CN118524037B (en) 2024-07-22 2024-07-22 Communication signal short circuit detection method, circuit, equipment and system

Country Status (1)

Country Link
CN (1) CN118524037B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484648A (en) * 2015-08-28 2017-03-08 天地融科技股份有限公司 A kind of communication equipment, system and data is activation, method of reseptance
CN118349508A (en) * 2023-01-16 2024-07-16 苏州联芸科技有限公司 Data transmission method, device and system applied to preventing short circuit between master device and slave device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6701469B1 (en) * 1999-12-30 2004-03-02 Intel Corporation Detecting and handling bus errors in a computer system
SG11201803313TA (en) * 2015-10-21 2018-05-30 Tendyron Corp Communication device, adapter device, communication system
US10897342B2 (en) * 2017-03-22 2021-01-19 Rohm Co., Ltd. Single-line serial data transmission circuit and single-line serial data transmission method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484648A (en) * 2015-08-28 2017-03-08 天地融科技股份有限公司 A kind of communication equipment, system and data is activation, method of reseptance
CN118349508A (en) * 2023-01-16 2024-07-16 苏州联芸科技有限公司 Data transmission method, device and system applied to preventing short circuit between master device and slave device

Also Published As

Publication number Publication date
CN118524037A (en) 2024-08-20

Similar Documents

Publication Publication Date Title
EP0118763B1 (en) Method of searching fault locations in digital transmission line
JPS6027218B2 (en) Control channel failure detection method for wireless telephone equipment
JPH05130224A (en) Fault detecting and region specifying device and method
US5687200A (en) System for synchronizing distorted data in a data communication system
US11800476B2 (en) Wireless BMS host time synchronization mechanism
US4748643A (en) Start bit detecting circuit
JPH0378022B2 (en)
EP0264879A2 (en) A fault detection signal transmission system
CN118524037B (en) Communication signal short circuit detection method, circuit, equipment and system
EP0606413B1 (en) Method and means for automatically detecting and correcting a polarity error in twisted-pair media
CA1232020A (en) Channel monitoring circuit for use in a repeater station over radio digital transmission
JPH048981B2 (en)
CN106647228A (en) Convertor station master clock fault determination system
CN107465487B (en) Bus data sending method, system and sub-equipment
US4683471A (en) Data bus pilot tone
EP1305922B1 (en) Ground level shift detection in can systems
CN109525350B (en) Module synchronization control method based on asynchronous serial port synchronization source
CN109802761B (en) Fault identification method and device
US20130266044A1 (en) Communication system and test apparatus
JP2844562B2 (en) Train detection device
JP2693330B2 (en) Power system protection system
JP6571593B2 (en) Dual system control system
CN103152815B (en) Improved digital private mobile radio (dPMR) delay access method and device
CN118827574A (en) Data testing method, transmission method, device, client and storage medium
JPH11251977A (en) Transmission line fault detection system and its method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant