Intelligent blackboard for intelligent teaching
Through the combination of dual-machine fusion technology and watchdog circuit and timer, the smart blackboard system is automatically and quickly switched after the program runs away, solving the problem of crashes and improving system stability and teaching efficiency.
Patent Information
- Application Number
- CN202411224874.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-12-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The smart blackboard system crashes due to program runs in educational scenarios, which will take several minutes to restore normality, affecting teaching activities.
Using dual-machine fusion technology, through switching between the first electronic control unit and the second electronic control unit, the watchdog circuit and timer detect faults, realize automatic and fast switching after the program runs away, ensuring that the system is within a few seconds. Return to normal.
It realizes automatic and fast switching system after the program runs, improves the stability and user experience of the smart blackboard, and improves the quality and efficiency of teaching activities.
Smart Images

Figure CN119091696A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of smart blackboards, and in particular relates to a smart blackboard for smart teaching. Background Art
[0002] With the rapid development of information technology, smart blackboards, as an important part of modern educational tools, have been widely used in various educational institutions. Smart blackboards integrate advanced display technology, touch interaction functions, multimedia playback and other functions, which greatly enriches teaching methods and improves teaching efficiency.
[0003] However, despite the many advantages of smart blackboards, they still face some technical challenges in actual use, one of which is the problem of system stability. Especially in embedded systems, due to the resource limitations of single-chip microcomputers or microprocessors, program runaway is more common, which may cause the system to freeze or become unstable. Program runaway usually refers to the phenomenon that the program execution path deviates from the normal track, enters an undefined area or executes an illegal instruction sequence due to software errors, hardware failures or external interference. Program runaway will not only reduce the reliability of the system, but may also cause data loss, system crashes and other problems.
[0004] In order to deal with the risks brought by program runaway, a variety of software and hardware measures have been proposed. For example, a watchdog timer (WDT) is used to monitor the execution process of the program. Once a program execution timeout is detected, it is considered that the program has runaway. At this time, the WDT will trigger a system reset to restart the program. In addition, there are methods to prevent program runaway by improving software design, such as enhancing memory management and error handling mechanisms, using more robust programming techniques, and regularly reviewing and testing code.
[0005] Although existing technologies can alleviate the problem of program crashes to a certain extent, in specific application environments, especially in smart blackboard systems used in educational scenarios, if a program crash occurs, the system needs to be restarted, and it may take several minutes for the system to work normally, which greatly affects normal teaching activities. Summary of the invention
[0006] In view of the shortcomings of the prior art, the present invention provides a smart blackboard for smart teaching. The present invention improves the reliability and stability of the smart blackboard system by integrating the function of preventing program runaway, avoids system crashes or other failures caused by program runaway, and improves the quality and efficiency of teaching activities.
[0007] The technical solution of the present invention is: a smart blackboard for smart teaching, including a smart blackboard circuit control system, the circuit control system includes a first electronic control unit, a second electronic control unit, a first watchdog circuit, a second watchdog circuit, a first timer, a second timer, a logic judgment circuit, a first bidirectional tri-state gate, a second bidirectional tri-state gate, an acquisition circuit and an analog digital output circuit; the first electronic control unit and the second electronic control unit are connected to the acquisition circuit, and the acquisition circuit is connected to the analog input and the digital input; it is characterized in that: the first electronic control unit is connected to the first watchdog circuit, the first watchdog circuit is connected to the logic judgment circuit through the first timer, the second electronic control unit is connected to the second watchdog circuit, the second watchdog circuit is connected to the logic judgment circuit through the second timer, the first timer output is also connected to the second electronic control unit, the second timer output is also connected to the first electronic control unit, the logic judgment circuit is respectively connected to the first bidirectional tri-state gate and the second bidirectional tri-state gate, the first bidirectional tri-state gate is respectively connected to the first electronic control unit and the analog digital output circuit, and the second bidirectional tri-state gate is respectively connected to the second electronic control unit and the analog digital output circuit.
[0008] According to the smart blackboard for smart teaching as described above, it is characterized by: it also includes an alarm display circuit, when an abnormal signal appears in the first timer, the second timer or both, an alarm is given through the alarm display circuit.
[0009] According to the smart blackboard for smart teaching as described above, it is characterized in that the first bidirectional three-state gate and the second bidirectional three-state gate are in parallel with the analog digital output circuit.
[0010] According to the smart blackboard for smart teaching as described above, it is characterized in that: for the control of the motor, the first bidirectional three-state gate and the second bidirectional three-state gate are connected to the same output line, and the two parallel directions are connected to the resistor R1, and the motor operation is directly controlled after conversion with the subsequent driving device through the resistor.
[0011] According to the smart blackboard for smart teaching as described above, it is characterized in that: when the first electronic control unit works normally, the watchdog is fed normally according to the watchdog cycle, the first watchdog circuit transmits signals to the first timer at regular intervals, and the first timer outputs signals to the logic judgment circuit at regular intervals. When the logic judgment circuit detects that the first electronic control unit is normal, it controls the first bidirectional three-state gate to work normally; and controls the second bidirectional three-state gate to be in a high-impedance state.
[0012] According to the smart blackboard for smart teaching as described above, it is characterized in that: during the normal operation of the first electronic control unit, the first electronic control unit collects the output of the second timer through the IO data port, and identifies whether the second timer is working normally through the timer output. If the second electronic control unit has a dead loop or the program runs away, the second timer outputs 0, and the first electronic control unit alarms, indicating that the second electronic control unit system has a fault.
[0013] According to the smart blackboard for smart teaching as described above, it is characterized in that: when an abnormality occurs in the first electronic control unit, the first timer outputs 0, and the second electronic control unit switches to the host state by collecting the output signal of the first timer. At this time, the logic judgment circuit controls the second bidirectional three-state gate to work normally.
[0014] According to the smart blackboard for smart teaching as described above, it is characterized in that: the logic of the logic judgment circuit is that as long as the output of the first timer is 1, the first bidirectional three-state gate works normally and the second bidirectional three-state gate is in a high-impedance state; when the output of the first timer is 0 and the output of the second timer is 1, the second bidirectional three-state gate works normally and the first bidirectional three-state gate is in a high-impedance state; when the first timer outputs 0 and the second timer outputs 0, the first bidirectional three-state gate and the second bidirectional three-state gate are both in a high-impedance state.
[0015] According to the smart blackboard for smart teaching as described above, it is characterized in that: the switching method of the circuit control system comprises the following steps:
[0016] Step 1: When the system is started and working normally, the first electronic control unit and the second electronic control unit respectively determine whether the other party is working normally by collecting the first timer and the second timer. If both are normal or only the first electronic control unit is normal, the first electronic control unit acts as the host. If the first electronic control unit is abnormal and the second electronic control unit is normal, the second electronic control unit acts as the host. If both are abnormal, a serious alarm fault is issued through the alarm display circuit.
[0017] Step 2: If the first electronic control unit as the host fails, the second electronic control unit is switched as the first electronic control unit. If the second electronic control unit is the host and the first electronic control unit returns to normal, the first electronic control unit is automatically restored as the host.
[0018] The beneficial effects of the present invention are: the dual-machine fusion technology is adopted to realize automatic and rapid switching of systems after the program runs away. The switching time is completed within a few seconds and the users will not notice it, which improves the user experience of the smart blackboard and is conducive to improving the quality and efficiency of teaching activities. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a circuit principle block diagram of the present invention.
[0020] Figure 2 This is a schematic diagram of the connection of a bidirectional three-state gate.
[0021] Figure 3 This is another bidirectional three-state gate connection diagram. DETAILED DESCRIPTION
[0022] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0023] like Figure 1 As shown, a smart blackboard for smart teaching of the present invention includes a smart blackboard circuit control system, and the circuit control system includes a first electronic control unit, a second electronic control unit, a first watchdog circuit, a second watchdog circuit, a first timer, a second timer, a logic judgment circuit, a first bidirectional tri-state gate, a second bidirectional tri-state gate, a collection circuit, and an analog digital output circuit; the first electronic control unit is connected to the first watchdog circuit, the first watchdog circuit is connected to the logic judgment circuit through the first timer, the second electronic control unit is connected to the second watchdog circuit, the second watchdog circuit is connected to the logic judgment circuit through the second timer, the first timer output is also connected to the second electronic control unit, the second timer output is also connected to the first electronic control unit, the logic judgment circuit is respectively connected to the first bidirectional tri-state gate and the second bidirectional tri-state gate, the first bidirectional tri-state gate is respectively connected to the first electronic control unit and the analog digital output circuit, and the second bidirectional tri-state gate is respectively connected to the second electronic control unit and the analog digital output circuit. The first electronic control unit and the second electronic control unit of the present invention are connected to the collection circuit, and the collection circuit is connected to the analog input and the digital input.
[0024] In the present invention, the first bidirectional tri-state gate and the second bidirectional tri-state gate are connected in parallel with the analog digital output circuit. Figure 2 For the control of the motor, the first bidirectional tri-state gate and the second bidirectional tri-state gate are connected to the same output line, and both parallel directions are connected to the resistor R1, and the motor operation is directly controlled after conversion with the subsequent drive device through the resistor. Figure 3 The first bidirectional tri-state gate and the second bidirectional tri-state gate are connected to the same output line, and the two parallel directions are connected to the resistor R2, and the lamp is turned off by controlling the voltage of the resistor R2. In actual work, the first bidirectional tri-state gate and the second bidirectional tri-state gate are controlled by the logic judgment circuit, so as to ensure that only the first electronic control unit or the second electronic control unit controls the control circuits such as the lifting and lighting of the blackboard. Figure 2 and Figure 3Just a corresponding illustration is given. In the actual output control of the smart blackboard, there are many aspects of control such as electric lifting rods, light intensity, lighting position, etc. People in this field can add more according to the above design ideas.
[0025] When the circuit control system of the present invention works normally, the first electronic control unit feeds the watchdog normally according to the watchdog cycle, the first watchdog circuit transmits a signal to the first timer regularly, and the first timer outputs a signal to the logic judgment circuit regularly. When the logic judgment circuit detects that the first electronic control unit is normal, it controls the first bidirectional three-state gate to work normally, that is, data can be bidirectionally input and output, and controls the second bidirectional three-state gate to be unable to work (that is, in a high-resistance state), so that the analog digital output circuit is controlled by the output of the first electronic control unit; during the normal operation of the first electronic control unit, the first electronic control unit collects the output of the second timer through the IO data port, and identifies whether the second timer works normally through the timer output. If the second electronic control unit has an infinite loop or the program runs away, the second timer outputs 0, and the first electronic control unit alarms, indicating that the second electronic control unit system has a fault.
[0026] When the first electronic control unit is abnormal, such as falling into an infinite loop or the program running away, the first timer outputs 0, and the second electronic control unit switches to the host state by collecting the output signal of the first timer. At this time, the logic judgment circuit controls the second bidirectional three-state gate to work normally, that is, data can be bidirectionally input and output, so that the analog digital output circuit is controlled by the output of the second electronic control unit; the automatic switching of the control system is realized when the first electronic control unit is in an abnormal state, and the first bidirectional three-state gate is in a high-impedance state.
[0027] Generally, when the system is working, both electronic control units are operating normally. At this time, the first electronic control unit is assumed to be the master unit and the second timer is assumed to be the slave unit. When the first electronic control unit fails, the second timer is regarded as the master unit through the monitoring of the logic judgment circuit and can be automatically switched.
[0028] In order to give an alarm in time, the device of the present invention may also include an alarm display circuit. When an abnormal signal appears in the first timer, the second timer or both, an alarm is given through the alarm display circuit to prompt the staff to perform maintenance. For example, when the output of the first timer and the second timer of the present invention is 1, it indicates that the corresponding component is working normally, and the output is 0, which indicates that the corresponding component is abnormal. The logic of the logic judgment circuit of the present invention is that as long as the output of the first timer is 1, the first bidirectional three-state gate works normally; when the output of the first timer is 0 and the output of the second timer is 1, the second bidirectional three-state gate works normally; if both are 0, it means that there is a serious fault in the system, and the first bidirectional three-state gate and the second bidirectional three-state gate do not work, which simplifies the control logic of the present invention and facilitates the implementation of the hardware circuit. When the circuit of the present invention is working, if the alarm display circuit often flashes frequently, it means that there is a more serious interference phenomenon in the system working area or the program needs to be optimized, which prompts people in this field to pay attention to the on-site working environment.
[0029] The present invention also discloses a switching method of a smart blackboard circuit control system, comprising the following steps:
[0030] Step 1: When the system is started and working normally, the first electronic control unit and the second electronic control unit respectively determine whether the other party is working normally by collecting the first timer and the second timer. If both are normal or only the first electronic control unit is normal, the first electronic control unit acts as the host. If the first electronic control unit is abnormal and the second electronic control unit is normal, the second electronic control unit acts as the host. If both are abnormal, a serious alarm fault is issued through the alarm display circuit.
[0031] Step 2: If the first electronic control unit as the host fails, the second electronic control unit is switched as the first electronic control unit. If the second electronic control unit is the host and the first electronic control unit returns to normal, the first electronic control unit is automatically restored as the host.
Claims
1. A smart blackboard for smart teaching, comprising a smart blackboard circuit control system, the circuit control system comprising a first electronic control unit, a second electronic control unit, a first watchdog circuit, a second watchdog circuit, a first timer, a second timer, a logic judgment circuit, a first bidirectional tri-state gate, a second bidirectional tri-state gate, a collection circuit and an analog digital output circuit; the first electronic control unit and the second electronic control unit are connected to the collection circuit, and the collection circuit is connected to the analog input and the digital input; it is characterized in that: The first electronic control unit is connected to the first watchdog circuit, and the first watchdog circuit is connected to the logic judgment circuit through the first timer. The second electronic control unit is connected to the second watchdog circuit, and the second watchdog circuit is connected to the logic judgment circuit through the second timer. The first timer output is also connected to the second electronic control unit, and the second timer output is also connected to the first electronic control unit. The logic judgment circuit is respectively connected to the first bidirectional three-state gate and the second bidirectional three-state gate, the first bidirectional three-state gate is respectively connected to the first electronic control unit and the analog digital output circuit, and the second bidirectional three-state gate is respectively connected to the second electronic control unit and the analog digital output circuit.
2. According to claim 1, a smart blackboard for smart teaching is characterized by: It also includes an alarm display circuit, and when an abnormal signal appears in the first timer, the second timer, or both, an alarm is issued through the alarm display circuit.
3. The smart blackboard for smart teaching according to claim 1, characterized in that: The first bidirectional tri-state gate and the second bidirectional tri-state gate are connected in parallel with the analog digital output circuit.
4. The smart blackboard for smart teaching according to claim 1, characterized in that: For the control of the motor, the first bidirectional tri-state gate and the second bidirectional tri-state gate are connected to the same output line, and both parallel directions are connected to the resistor R1, and the motor operation is directly controlled after conversion with the subsequent driving device through the resistor.
5. The smart blackboard for smart teaching according to claim 1, characterized in that: When the first electronic control unit is working normally, the watchdog is fed normally according to the watchdog cycle, the first watchdog circuit transmits signals to the first timer regularly, and the first timer outputs signals to the logic judgment circuit regularly. When the logic judgment circuit detects that the first electronic control unit is normal, it controls the first bidirectional three-state gate to work normally; and controls the second bidirectional three-state gate to be in a high-impedance state.
6. The smart blackboard for smart teaching according to claim 2, characterized in that: During the normal operation of the first electronic control unit, the first electronic control unit collects the output of the second timer through the IO data port, and identifies whether the second timer is working normally through the timer output. If a dead loop or program runaway occurs in the second electronic control unit, the second timer outputs 0, and the first electronic control unit sounds an alarm through the alarm display circuit, indicating that a system failure has occurred in the second electronic control unit.
7. The smart blackboard for smart teaching according to claim 1, characterized in that: When the first electronic control unit is abnormal, the first timer outputs 0, and the second electronic control unit switches to the host state by collecting the output signal of the first timer. At this time, the logic judgment circuit controls the second bidirectional tri-state gate to work normally.
8. The smart blackboard for smart teaching according to claim 2, characterized in that: The logic of the logic judgment circuit is that as long as the output of the first timer is 1, the first bidirectional three-state gate works normally and the second bidirectional three-state gate is in a high-impedance state; when the output of the first timer is 0 and the output of the second timer is 1, the second bidirectional three-state gate works normally and the first ... first timer and the second timer output 0, the first bidirectional three-state gate and the second bidirectional three-state gate are both in a high-impedance state.
9. The smart blackboard for smart teaching according to claim 2, characterized in that: The switching method of the circuit control system comprises the following steps: Step 1: When the system is started and working normally, the first electronic control unit and the second electronic control unit respectively determine whether the other party is working normally by collecting the first timer and the second timer. If both are normal or only the first electronic control unit is normal, the first electronic control unit acts as the host. If the first electronic control unit is abnormal and the second electronic control unit is normal, the second electronic control unit acts as the host. If both are abnormal, a serious alarm fault is issued through the alarm display circuit. Step 2: If the first electronic control unit as the host fails, the second electronic control unit is switched as the first electronic control unit. If the second electronic control unit is the host and the first electronic control unit returns to normal, the first electronic control unit is automatically restored as the host.
