A multi-state multi-signal serial feedback method and system
By using different pulse widths of PWM signals in the same cycle and feedback of multiple semaphores, the problems of multiple interface resource occupation and low signal detection efficiency in the prior art are solved, and efficient and flexible multi-semaphore feedback is achieved. .
Patent Information
- Application Number
- CN202111617467.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2041-12-27
AI Technical Summary
The prior art feedback of multiple signal states usually requires multiple I/O ports or interface expansion chips, resulting in a large amount of interface resource occupancy, complex design and low signal detection efficiency.
By using different pulse widths of PWM signals in the same cycle to distinguish and feedback the states of multiple semaphores, high-level time and duty cycle are used to represent normal and fault states, serial feedback is achieved, and dependence on interface resources is reduced. .
It realizes efficient feedback of multiple signal states without increasing interface resources, reduces the complexity of circuit and programming, improves signal detection and feedback efficiency, and is low in cost and high flexibility.
Smart Images

Figure CN114296430B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of serial communication, and in particular to a multi-state multi-signal serial feedback method and system. Background Art
[0002] In the field of automobile control systems, some control systems usually need to drive multiple loads. Since it is inevitable that an output channel will have an open circuit or short circuit fault, the status of each signal quantity is fed back to the ECU. Based on the current signal quantity status, the ECU provides an alarm indication to the driver or directly takes the following safety measures to avoid harm to the safe operation of the automobile system.
[0003] However, the existing technology generally feeds back multiple signal states through multiple I / O ports or interface expansion chips to respectively implement the feedback of multiple signal quantities, which requires more interface resources, is not conducive to the simplification of circuit design and program design, and has low efficiency in signal detection and feedback. Summary of the invention
[0004] The purpose of the present invention is to overcome the above-mentioned technical deficiencies and provide a multi-state multi-signal serial feedback method and system to solve the technical problem that the prior art generally feedbacks multiple signal states through multiple I / O ports or interface expansion chips to respectively realize the feedback of multiple signal quantities, which requires more interface resources, is not conducive to the simplification of circuit design and program design, and at the same time, the efficiency of signal detection and feedback is low.
[0005] In order to achieve the above technical objectives, the technical solution of the present invention provides a multi-state multi-signal serial feedback method, comprising the following steps:
[0006] Step 1: first complete the initialization program, then start a feedback output cycle, first perform the operation status flag, the operation status flag signal uses the length of the high level time to distinguish between the normal and fault states;
[0007] Step 2: After the running state mark is completed, the signal level is adjusted for a period of time, and then the signal state is marked, and the signal state mark signal uses different duty cycles to represent different states;
[0008] Step 3: After the signal quantity status mark is completed, the signal level is changed at intervals to complete a feedback output cycle;
[0009] Step 4: Repeat steps 1, 2, and 3 to complete the next feedback output cycle.
[0010] Preferably, the initialization procedure includes activation, feedback delay, and outputting a feedback start signal in sequence.
[0011] Preferably, the feedback delayed signal is a low level signal within a period T.
[0012] Preferably, the feedback start signal is a high level signal within a period T.
[0013] Preferably, after the running status mark is completed or the semaphore status mark is completed, the signal level is at a low level for a period of time.
[0014] Preferably, the signal quantity status includes but is not limited to normal, open circuit, and short circuit.
[0015] Preferably, the semaphore state includes at least 8 semaphores.
[0016] Preferably, the signal feedback mode of the signal quantity state includes but is not limited to an open collector circuit, a push-to-switch output circuit, and a high-side output mode.
[0017] The present invention also provides a system for implementing the above-mentioned multi-state multi-signal serial feedback method, comprising an ECU system, a control system, and a plurality of loads, wherein:
[0018] An ECU system, used for receiving a feedback output signal output by the control system within a feedback output cycle, wherein the feedback output signal includes a flag signal of an operating state and a flag signal of a semaphore state, wherein the flag signal of the operating state distinguishes between a normal state and a fault state by using a long or short high level time, and the flag signal of the semaphore state represents different states by using different duty cycles;
[0019] A control system, comprising an MCU and a plurality of output drive modules electrically connected to the MCU, wherein the MCU is used to output a control signal to control the plurality of output drive modules, and the MCU performs output signal detection on the plurality of output drive modules, and the plurality of output drive modules are used to drive a plurality of loads respectively;
[0020] The multiple loads are used to respectively receive the driving signals of the multiple output driving modules and perform corresponding output actions.
[0021] Compared with the prior art, the beneficial effects of the present invention include: based on the different pulse widths of the PWM signal with the same cycle, the present invention can output feedback to multiple semaphores with multiple states for each semaphore to report the current semaphore state, without the need for multiple peripheral expansion interfaces, low cost, and easy to implement. The method can adjust the length of the feedback signal very conveniently according to the number of semaphores; it can also define the characterization value of the signal state according to the number of semaphore states, and the circuit output form is flexible. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1It is a timing diagram of a multi-state multi-signal serial feedback method of the present invention;
[0023] Figure 2 The present invention is a principle block diagram of a multi-state multi-signal serial feedback system. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0025] like Figure 1 As shown, the present invention provides a multi-state multi-signal serial feedback method, comprising the following steps:
[0026] Step 1: After the system is powered on, activate the system first, and then perform feedback delay, such as Figure 1 As shown in the figure, the period before the vertical lines a and f is the feedback delay period. In this embodiment, the feedback delay signal is a low-level signal within a cycle T. The system must complete the initialization work within the feedback delay period T.
[0027] When the feedback delay ends, the feedback start signal is output immediately to complete the system initialization; Figure 1 As shown in the figure, the period between the vertical lines a and b or between the vertical lines f and g is the feedback start period, and the feedback start signal is a high level signal within a period T.
[0028] In addition, after the system is powered on, if the system is not activated, all subsequent feedback output signals are continuously at a low level.
[0029] Step 2: After the system is initialized, a feedback output cycle begins. First, the system status is marked. The system status section is a high level after the feedback start signal. The system status section uses the length of the high level time to distinguish between normal and fault states. The normal system is represented by a high level not limited to two cycles T, and the system fault is represented by a high level not limited to one cycle T.
[0030] like Figure 1 As shown in the figure, the period between the vertical lines b and c is the feedback start period, which is one cycle T, indicating a system failure; the period between the vertical lines g and h is another feedback start period, which is two cycles T, indicating that the system is normal. If the ECU only pays attention to whether there is a fault in the system, but not to which signal is faulty, the ECU can only detect the system status flag of the 2T time.
[0031] After the system status flag segment is the interval segment before the feedback output starts; Figure 1As shown, the period between the vertical lines c and d in the figure is the interval before the feedback output starts, which is a low level of two cycles T, indicating the interval before the feedback output starts under system failure; the period between the vertical lines h and i in the figure is the interval before the feedback output starts, which is a low level of one cycle T, indicating the interval before the feedback output starts under system normal conditions.
[0032] Step 3: After the interval before the feedback output starts, the signal state is marked, and the signal state uses different duty cycles to represent different states; Figure 1 As shown, in this embodiment, a duty cycle of 50% indicates that the signal quantity is normal, a duty cycle of 80% indicates that the signal quantity is short-circuited, and a duty cycle of 20% indicates that the signal quantity is open-circuited.
[0033] If the state of the signal quantity is not limited to the above three normal, open circuit, and short circuit, the characterization information of the duty cycle can be further subdivided according to the specific situation. In this embodiment, there are 8 signal quantities, and the number of signal quantities can be determined according to the actual situation of the system. If each 10% progressively represents a state, 9 states can be represented.
[0034] Step 4: After the semaphore status mark is completed, it is the interval after the feedback output ends, indicating that the serial feedback output of all semaphores ends and a feedback output cycle is completed; Figure 1 As shown in the figure, the period from the vertical lines e and j to the next cycle is the interval after the feedback output ends, which is a low level of one cycle T.
[0035] Step 5. Finally, repeat steps 2, 3, and 4 to complete the next feedback output cycle.
[0036] In addition, the signal feedback method of the above-mentioned signal quantity status in this embodiment includes but is not limited to the open collector circuit, push-to-switch output circuit, and high-side output method. It is necessary to detect the status of each channel and feedback the current fault to the ECU.
[0037] like Figure 2 As shown, the present invention provides a system for the serial feedback method of multi-state multi-signal quantity as described above, comprising:
[0038] An ECU system, used for receiving feedback output signals within all feedback output cycles;
[0039] A control system, comprising an MCU and a plurality of output drive modules electrically connected to the MCU, wherein the MCU is used to output a control signal to control the plurality of output drive modules, and the MCU performs output signal detection on the plurality of output drive modules, and the plurality of output drive modules are used to drive a plurality of loads respectively;
[0040] The multiple loads are used to respectively receive the driving signals of the multiple output driving modules and perform corresponding output actions.
[0041] The present invention can output feedback to multiple semaphores with multiple states for each semaphore based on different pulse widths of PWM signals of the same cycle to report the current semaphore state, without requiring multiple peripheral expansion interfaces, with low cost and easy implementation. The method can adjust the length of the feedback signal very conveniently according to the number of semaphores; it can also define the characterization value of the signal state according to the number of semaphore states, and the circuit output form is flexible.
[0042] The specific implementation of the present invention described above does not constitute a limitation on the protection scope of the present invention. Any other corresponding changes and modifications made based on the technical concept of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A multi-state multi-signal serial feedback method, characterized in that: The following steps are involved: Step 1: first complete the initialization program, then start a feedback output cycle, first perform the operation status flag, the operation status flag signal uses the length of the high level time to distinguish between the normal and fault states; Step 2: After the running state mark is completed, the signal level is adjusted for a period of time, and then the signal state is marked, and the signal state mark signal uses different duty cycles to represent different states; Step 3: After the signal quantity status mark is completed, the signal level is changed at intervals to complete a feedback output cycle; Step 4: Repeat steps 1, 2, and 3 to complete the next feedback output cycle.
2. The multi-state multi-signal serial feedback method according to claim 1, characterized in that: The initialization procedure includes activation, feedback delay, and outputting a feedback start signal in sequence.
3. The multi-state multi-signal serial feedback method according to claim 2, characterized in that: The feedback delayed signal is a low level signal within a period T.
4. The multi-state multi-signal serial feedback method according to claim 2, characterized in that: The feedback start signal is a high level signal within a period T.
5. The multi-state multi-signal serial feedback method according to claim 1, characterized in that: After the running status mark is completed or the semaphore status mark is completed, the signal level is low for a period of time.
6. The multi-state multi-signal serial feedback method according to claim 1, characterized in that: The signal quantity status includes normal, open circuit, and short circuit.
7. The multi-state multi-signal serial feedback method according to claim 1, characterized in that: The semaphore state includes at least 8 semaphores.
8. The multi-state multi-signal serial feedback method according to claim 1, characterized in that: The signal feedback modes of the signal quantity state include open collector circuit, push-switch output circuit and high-side output.
9. A system for implementing the multi-state multi-signal serial feedback method according to any one of claims 1 to 8, characterized in that: Including ECU system, control system, multiple loads, including: An ECU system, used for receiving a feedback output signal output by the control system within a feedback output cycle, wherein the feedback output signal includes a flag signal of an operating state and a flag signal of a semaphore state, wherein the flag signal of the operating state distinguishes between a normal state and a fault state by using a long or short high level time, and the flag signal of the semaphore state represents different states by using different duty cycles; A control system, comprising an MCU and a plurality of output drive modules electrically connected to the MCU, wherein the MCU is used to output a control signal to control the plurality of output drive modules, and the MCU performs output signal detection on the plurality of output drive modules, and the plurality of output drive modules are used to drive a plurality of loads respectively; The multiple loads are used to respectively receive the driving signals of the multiple output driving modules and perform corresponding output actions.
