Discrete signal transmission method capable of realizing real-time fault detection
By using different frequency ranges to characterize the signal state in traditional discrete signal transmission and using high-frequency clock reference signals for fault detection, the problem of poor anti-interference ability of traditional methods and inability to detect faults in real time is solved, real-time fault detection and fault mode recognition of discrete signals are realized.
Patent Information
- Application Number
- CN202411810168.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-04-22
AI Technical Summary
The traditional discrete signal transmission method has poor anti-interference ability and cannot detect faults in real time, resulting in system abnormalities.
Two different frequency value ranges set are used to characterize different discrete quantities states, and clock counts through high-frequency clock reference signals to obtain the frequency value of the current discrete quantities signal and perform fault detection.
Real-time fault detection and fault pattern recognition of discrete signals are realized, effectively suppressing transient interference such as spikes and glitches, and ensuring the normal operation of the system.
Smart Images

Figure CN119865164A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of signal transmission, and in particular to a discrete signal transmission method capable of real-time fault detection. Background Art
[0002] A discrete quantity signal refers to a signal represented by non-continuous quantities in the time domain. In practical applications, traditional discrete quantity signal transmission usually uses a high level to represent logic "1" and a low level to represent logic "0". During the transmission process, the logic "1" and logic "0" are distinguished by distinguishing between high and low levels.
[0003] The traditional discrete signal transmission method has poor anti-interference ability. When unexpected interference such as spikes and glitches occur in the transmission line, it will cause back-end recognition errors and cause system abnormalities. At the same time, the traditional discrete signal transmission method does not have the ability to detect faults in real time. For example, when the transmission line is broken or short-circuited, the signal receiving device cannot effectively identify it, but always maintains the wrong signal, causing system abnormalities. Summary of the invention
[0004] In view of this, an embodiment of the present application provides a discrete signal transmission method capable of real-time fault detection, so as to detect in real time whether a current discrete signal has a fault, and identify the specific fault mode to ensure the normal operation of the system.
[0005] The embodiment of the present application provides the following technical solution: a discrete signal transmission method capable of real-time fault detection, comprising:
[0006] Two different frequency value ranges are set to represent different discrete quantity states, respectively, and the different discrete quantity states are respectively a low level and a high level;
[0007] Taking the high-frequency clock reference signal as the minimum unit, start counting the clock of the current cycle and obtain the clock count value of the current cycle;
[0008] Obtaining the frequency value of the current discrete quantity signal according to the clock count value and the clock cycle of this cycle;
[0009] The frequency value of the current discrete quantity signal is matched with two different set frequency value ranges to determine the fault detection result of the current discrete quantity signal.
[0010] According to an embodiment of the present application, matching the frequency value of the current discrete quantity signal with two different set frequency value ranges to determine the fault detection result of the current discrete quantity signal includes:
[0011] If the frequency value is within the high-level frequency value range, determining that the current discrete quantity signal is in a high-level state;
[0012] If the frequency value is within the frequency value range of the low level, determining that the current discrete quantity signal is in a low level state;
[0013] If the frequency values are not within the two different frequency value ranges, it is determined that the current discrete quantity signal is in a fault state.
[0014] According to an embodiment of the present application, matching the frequency value of the current discrete quantity signal with two different set frequency value ranges to determine the fault detection result of the current discrete quantity signal further includes:
[0015] If the frequency value is continuously judged as a high level state or continuously judged as a low level state in the current cycle, it is determined that the current discrete quantity signal is in a fault state.
[0016] According to an embodiment of the present application, taking the high-frequency clock reference signal as the minimum unit, starting the current cycle clock counting, obtaining the clock count value of the current cycle, further includes:
[0017] The high-frequency clock reference signal is used to capture the rising edge of the frequency signal at the beginning of the current cycle, and the interference signal with a cycle less than the set value is filtered out. The high-frequency clock reference signal is used as the minimum unit to start the current cycle clock counting and obtain the clock count value of this cycle.
[0018] According to an embodiment of the present application, the set value is less than 10 μs.
[0019] According to an embodiment of the present application, obtaining the frequency value of the current discrete quantity signal according to the clock count value and the clock cycle of the current cycle includes:
[0020] The clock count value is multiplied by the clock period to calculate the period ΔT of the current discrete quantity signal, and the frequency value f of the current discrete quantity signal is obtained by taking the derivative of the period ΔT.
[0021] Compared with the prior art, the beneficial effects that can be achieved by at least one of the above technical solutions adopted in the embodiments of this specification include at least the following: The embodiments of the present invention propose a discrete signal transmission method capable of real-time fault monitoring, which uses different frequency quantities to transmit and represent different discrete quantity states instead of conventional high and low levels. For example, when the frequency is 1MHz±1000Hz (which can be adjusted according to actual conditions), it is represented as a discrete quantity "low level", and when the frequency is 10MHz±1000Hz (which can be adjusted according to actual conditions), it is represented as a discrete quantity "high level", which can effectively suppress transient interference such as spikes and glitches generated during the transmission of discrete quantity signals. A predetermined frequency range is used to represent a predetermined discrete quantity state, and the remaining frequency values are all fault states. When an abnormality occurs in the signal transmission process, such as a disconnection, a short circuit, etc., the system can detect the fault in real time and identify the specific fault mode (normally high, normal low, etc.). BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 A schematic diagram showing different discrete quantity states characterized by different frequency quantity transmissions in an embodiment of the present invention;
[0024] Figure 2 Schematic diagram of a frequency quantity acquisition method in an embodiment of the present invention;
[0025] Figure 3 A fault monitoring and determination method in an embodiment of the present invention;
[0026] Figure 4 This is a flow chart of frequency quantity collection in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0028] The following describes the implementation methods of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that, in the absence of conflict, the following embodiments and the features in the embodiments can be combined with each other. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work belong to the scope of protection of the present application.
[0029] like Figure 1-Figure 4 As shown, an embodiment of the present invention provides a discrete signal transmission method that can detect faults in real time. The method is applied in the following scenarios: discrete quantity signal transmission between electronic modules inside an electronic product, or discrete quantity signal transmission between processors or FPGAs inside a single module.
[0030] The method comprises: using two different frequency value ranges to respectively characterize different discrete quantity states, wherein the different discrete quantity states are respectively a low level and a high level; taking a high-frequency clock reference signal as a minimum unit, starting the clock count of the current cycle to obtain the clock count value of the current cycle; obtaining the frequency value of the current discrete quantity signal according to the clock count value and the clock cycle of the current cycle; matching the frequency value of the current discrete quantity signal with the two different frequency value ranges to determine the fault detection result of the current discrete quantity signal.
[0031] Specifically, if the frequency value is within the high-level frequency value range, the current discrete quantity signal is determined to be in a high-level state; if the frequency value is within the low-level frequency value range, the current discrete quantity signal is determined to be in a low-level state; if the frequency values are not within two different frequency value ranges, the current discrete quantity signal is determined to be in a fault state. If the frequency value is continuously judged to be in a high-level state or continuously judged to be in a low-level state in the current cycle, the current discrete quantity signal is determined to be in a fault state.
[0032] In a specific implementation method of an embodiment of the present invention, the high-frequency clock reference signal is used as the minimum unit to start the clock counting of the current cycle and obtain the clock count value of the current cycle. It also includes: using the high-frequency clock reference signal to capture the rising edge of the frequency signal at the beginning of the current cycle, and filtering out interference signals with a cycle less than a set value, and starting the clock counting of the current cycle with the high-frequency clock reference signal as the minimum unit to obtain the clock count value of the current cycle.
[0033] In a specific implementation of an embodiment of the present invention, the frequency value of the current discrete quantity signal is obtained according to the clock count value and the clock cycle of this cycle, including: multiplying the clock count value by the clock cycle, calculating the period ΔT of the current discrete quantity signal, and differentiating the period ΔT to obtain the frequency value f of the current discrete quantity signal.
[0034] The embodiment of the present invention provides a discrete signal transmission method capable of real-time fault monitoring. By using different frequency quantities to transmit and represent different discrete quantity states instead of conventional high and low levels, transient interferences such as spikes and glitches generated during discrete quantity signal transmission can be effectively suppressed; a predetermined frequency range is used to represent a predetermined discrete quantity state, and the remaining frequency values are all fault states. When an abnormality occurs in the signal transmission process, such as a disconnection or short circuit, the system can detect the fault in real time and identify the specific fault mode (normally high, normal low, etc.). It has great application value for fault detection and fault location of discrete quantity signal transmission.
[0035] like Figure 1As shown, a discrete signal transmission method capable of real-time fault monitoring in an embodiment of the present invention uses different frequency transmissions to represent different discrete quantity states instead of conventional high and low levels. For example, when the frequency is 1MHz±1000Hz (which can be adjusted according to actual conditions), it is represented as a discrete quantity "low level", and when the frequency is 10MHz±1000Hz (which can be adjusted according to actual conditions), it is represented as a discrete quantity "high level", which can effectively suppress transient interference such as spikes and glitches generated during discrete quantity signal transmission. A predetermined frequency range is used to represent a predetermined discrete quantity state, and the remaining frequency values are all fault states. When an abnormality occurs in the signal transmission process, such as a disconnection, a short circuit, etc., the system can detect the fault in real time and identify the specific fault mode (normally high, normally low, etc.), which has great application value for fault detection and fault location of discrete quantity signal transmission.
[0036] like Figure 2 , Figure 3 , Figure 4 As shown in the figure, when the acquisition end performs frequency acquisition and resolution, the steps are as follows:
[0037] Step 1: Capture the rising edge of the frequency signal at the beginning of the current cycle;
[0038] Use a high-frequency (such as 50MHz) clock reference signal to capture the rising edge of the frequency signal at the beginning of this cycle and filter out interference signals due to high and low level switching or spikes, glitches and other interference signals introduced by the transmission system with a period less than the set value δ (the set value δ is generally less than 10μs);
[0039] Step 2: Start counting the current cycle;
[0040] Using a high-frequency clock reference signal (such as 50MHz) as the minimum unit, start counting the current cycle clock;
[0041] Step 3: Capture the rising edge at the beginning of the next cycle;
[0042] Use a high-frequency (such as 50MHz) clock reference signal to capture the rising edge at the beginning of the next cycle and filter out interference signals with a period less than δ (δ is generally less than 10μs) due to high-low level switching or spikes, glitches and other interference signals introduced by the transmission system;
[0043] Step 4: Stop the clock counting of this cycle and start the clock counting of the next cycle;
[0044] Step 5: Calculate the frequency value and solve the corresponding discrete quantity state;
[0045] The period ΔT of the transmission signal is calculated by multiplying the clock count value by the clock period, and the frequency value f of the transmission signal can be obtained by differentiation. For example, when the frequency is 1MHz±1000Hz (can be adjusted according to actual conditions), it is characterized as a discrete quantity "low level", and when the frequency is 10MHz±1000Hz (can be adjusted according to actual conditions), it is characterized as a discrete quantity "high level". The other frequency values correspond to fault states, and the discrete quantity state is obtained by solving this method.
[0046] Step 6: Read discrete quantity status values or make fault records.
[0047] Read discrete quantity status values or make fault records. When the frequency is within the range of 1MHz±1000Hz (can be adjusted according to actual conditions), it is characterized as a discrete quantity "low level". When the frequency is within the range of 10MHz±1000Hz (can be adjusted according to actual conditions), it is characterized as a discrete quantity "high level". When the signal is continuously at a high level, a "normally high" fault is recorded. The cause of the fault may be a short circuit between the signal and the power supply or a fault in the interface between the two sides of the signal interaction. When the signal is continuously at a low level, a "normally low" fault is recorded. The cause of the fault may be a short circuit between the signal and the ground, an open circuit or a fault in the interface between the two sides of the signal interaction. When the signal frequency is other frequency values, a "frequency abnormality" fault is recorded. The cause of the fault may be a fault in the interface between the two sides of the signal interaction.
[0048] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A discrete signal transmission method capable of real-time fault detection, characterized in that: include: Two different frequency value ranges are set to represent different discrete quantity states, respectively, and the different discrete quantity states are respectively a low level and a high level; Taking the high-frequency clock reference signal as the minimum unit, start counting the clock of the current cycle and obtain the clock count value of the current cycle; Obtaining the frequency value of the current discrete quantity signal according to the clock count value and the clock cycle of this cycle; The frequency value of the current discrete quantity signal is matched with two different set frequency value ranges to determine the fault detection result of the current discrete quantity signal.
2. The discrete signal transmission method capable of real-time fault detection according to claim 1, characterized in that: Matching the frequency value of the current discrete quantity signal with two different set frequency value ranges to determine the fault detection result of the current discrete quantity signal includes: If the frequency value is within the high-level frequency value range, determining that the current discrete quantity signal is in a high-level state; If the frequency value is within the frequency value range of the low level, determining that the current discrete quantity signal is in a low level state; If the frequency values are not within the two different frequency value ranges, it is determined that the current discrete quantity signal is in a fault state.
3. The discrete signal transmission method capable of real-time fault detection according to claim 2, characterized in that: Matching the frequency value of the current discrete quantity signal with two different set frequency value ranges to determine the fault detection result of the current discrete quantity signal, further comprising: If the frequency value is continuously judged as a high level state or continuously judged as a low level state in the current cycle, it is determined that the current discrete quantity signal is in a fault state.
4. The discrete signal transmission method capable of real-time fault detection according to claim 1, characterized in that: Taking the high-frequency clock reference signal as the minimum unit, start the clock counting of the current cycle and obtain the clock counting value of this cycle, which also includes: The high-frequency clock reference signal is used to capture the rising edge of the frequency signal at the beginning of the current cycle, and the interference signal with a cycle less than the set value is filtered out. The high-frequency clock reference signal is used as the minimum unit to start the current cycle clock counting and obtain the clock count value of this cycle.
5. The discrete signal transmission method capable of real-time fault detection according to claim 4, characterized in that: The set value is less than 10 μs.
6. The discrete signal transmission method capable of real-time fault detection according to claim 1, characterized in that: According to the clock count value and the clock cycle of this cycle, the frequency value of the current discrete quantity signal is obtained, including: The clock count value is multiplied by the clock period to calculate the period ΔT of the current discrete quantity signal, and the frequency value f of the current discrete quantity signal is obtained by taking the derivative of the period ΔT.