CN117542162A - Digital clock and alarm control method - Google Patents
Digital clock and alarm control method Download PDFInfo
- Publication number
- CN117542162A CN117542162A CN202410012475.6A CN202410012475A CN117542162A CN 117542162 A CN117542162 A CN 117542162A CN 202410012475 A CN202410012475 A CN 202410012475A CN 117542162 A CN117542162 A CN 117542162A
- Authority
- CN
- China
- Prior art keywords
- alarm
- unit
- main control
- control chip
- switch
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 239000003990 capacitor Substances 0.000 claims description 80
- 238000001514 detection method Methods 0.000 claims description 59
- 230000005611 electricity Effects 0.000 claims description 45
- 239000013078 crystal Substances 0.000 claims description 24
- 230000006698 induction Effects 0.000 claims description 17
- 230000001629 suppression Effects 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 35
- 244000144972 livestock Species 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 4
- 229910018487 Ni—Cr Inorganic materials 0.000 description 3
- VNNRSPGTAMTISX-UHFFFAOYSA-N chromium nickel Chemical compound [Cr].[Ni] VNNRSPGTAMTISX-UHFFFAOYSA-N 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 239000011651 chromium Substances 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 230000005764 inhibitory process Effects 0.000 description 2
- 238000002360 preparation method Methods 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 102100024061 Integrator complex subunit 1 Human genes 0.000 description 1
- 101710092857 Integrator complex subunit 1 Proteins 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 235000013601 eggs Nutrition 0.000 description 1
- 230000005389 magnetism Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 210000000056 organ Anatomy 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B21/00—Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
- G08B21/02—Alarms for ensuring the safety of persons
-
- G—PHYSICS
- G04—HOROLOGY
- G04B—MECHANICALLY-DRIVEN CLOCKS OR WATCHES; MECHANICAL PARTS OF CLOCKS OR WATCHES IN GENERAL; TIME PIECES USING THE POSITION OF THE SUN, MOON OR STARS
- G04B47/00—Time-pieces combined with other articles which do not interfere with the running or the time-keeping of the time-piece
-
- G—PHYSICS
- G04—HOROLOGY
- G04G—ELECTRONIC TIME-PIECES
- G04G21/00—Input or output devices integrated in time-pieces
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Emergency Management (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the application relates to a digital clock and an alarm control method, comprising the following steps: the system comprises a main control chip, a display module, a clock control module and an alarm module; one end of the main control chip is connected to the display module, and the other end of the main control chip is connected with the clock control module and the alarm module; the clock control module detects that an environment has alarm requirements, an alarm request is sent to the main control chip, the main control chip controls the alarm module to output trigger signals, and the different switches of the alarm module are controlled to execute the operations of off-hook, dialing, alarm tone and on-hook, so that the digital clock realizes automatic alarm on the basis of recording and time setting functions. Therefore, the technical effect of starting automatic alarm dialing based on the multifunctional digital clock can be achieved.
Description
Technical Field
The embodiment of the application relates to the technical field of intelligent home, in particular to a digital clock and an alarm control method.
Background
For a long time, some of the low-cost anti-theft alarms introduced by electronic magazines have no telephone dialing alarm function, and the commercial anti-theft equipment capable of automatically dialing alarm is high in price. The compatibility between the common alarm device and the dialing device is poor.
Meanwhile, the public communication network is utilized, the established alarm system network problem exists, a signal terminal can be caused at a position with poor signals, and an alarm function cannot be successfully transmitted through network connection, so that the security agent in a remote place is challenged.
Disclosure of Invention
In view of this, in order to solve the technical problems that the telephone alarm is affected by network signals and the cost of alarm materials is high, the embodiment of the application provides a digital clock and an alarm control method.
In a first aspect, an embodiment of the present application provides a digital clock and an alarm control method, including:
the system comprises a main control chip, a display module, a clock control module and an alarm module;
one end of the main control chip is connected to the display module, and the other end of the main control chip is connected with the clock control module and the alarm module;
the main control chip is used for controlling the display information of the display module and the trigger signal of the alarm module, the display module is used for displaying time information and alarm telephone information, the clock control module is used for inputting a clock control signal to the main control chip so that the main control chip controls the display module to display according to the clock control signal, and the alarm module is used for starting automatic dialing alarm after inputting a driving signal output by the main control chip;
Wherein, the alarm module includes: the device comprises a rectifying unit, an alarm unit and a power storage unit;
the first end of the rectifying unit is connected to the first end of the telephone line, the second end of the rectifying unit is connected to the second end of the telephone line, the third end of the rectifying unit is connected with the first input end of the alarm unit and the first end of the electricity storage unit, the fourth end of the rectifying unit is connected with the output end of the alarm unit and the second end of the electricity storage unit to the first grounding end, and the rectifying unit is used for rectifying an input signal of the telephone line;
the second input end of the alarm unit is connected to the first control pin of the main control chip, the third input end of the alarm unit is connected to the second control pin of the main control chip, and the alarm unit is used for triggering automatic dialing alarm;
the third end of the electricity storage unit is connected to the output end of the power supply, and the electricity storage unit is used for supplying power to the alarm unit when an alarm is started.
In one possible implementation manner, the main control chip controls the display module to display clock information after receiving the clock control signal input by the clock control module, and the main control chip inputs an alarm signal to the alarm module after receiving the alarm trigger signal to control the alarm module to start automatic dialing alarm.
In one possible embodiment, the rectifying unit includes: the first capacitor, the second capacitor, the rectifier bridge and the pressure-sensitive diode;
one end of the first capacitor is connected with one end of the second capacitor, the negative electrode output end of the rectifier bridge, the output end of the alarm unit and the second end of the electricity storage unit to a first grounding end, and the other end of the first capacitor is connected with the first end of the telephone line, one end of the pressure-sensitive diode and the first alternating current input end of the rectifier bridge;
the other end of the second capacitor is connected with the second end of the telephone line, the other end of the pressure-sensitive diode and the second alternating current input end of the rectifier bridge;
the positive electrode output end of the rectifier bridge, the first input end of the alarm unit and the first end of the electricity storage unit are connected to the power supply output end.
In one possible embodiment, the alarm unit comprises: the first resistor, the second resistor, the third resistor, the fourth resistor, the fifth resistor, the first electrolytic capacitor, the first selection switch, the first triode, the second triode and the first diode;
one end of the first resistor, one end of the second resistor, the third end of the rectifying unit and the first end of the electricity storage unit are connected to the output end of the power supply, and the other end of the first resistor is connected to the collector electrode of the first triode;
The other end of the second resistor is connected to the collector electrode of the second triode;
the emitter of the first triode is connected with the emitter of the second triode and the positive input end of the first diode, and the base of the first triode is connected with the first control pin of the main control chip and one end of the third resistor;
the reverse output end of the first diode, the fourth end of the rectifying unit and the second end of the electricity storage unit are connected to a first grounding end;
the base electrode of the second triode is connected to the first end of the first selection switch;
the second end of the first selection switch is connected with one end of the fourth resistor and the second control pin of the main control chip, and the third end of the first selection switch is connected with one end of the fifth resistor;
the other end of the third resistor and the other end of the fourth resistor are connected to the output end of the power supply;
the other end of the fifth resistor is connected to one end of the first electrolytic capacitor;
the other end of the first electrolytic capacitor is connected to the data output end.
In one possible embodiment, the power storage unit includes: the second diode, the third diode, the sixth resistor, the first switch, the third capacitor, the second electrolytic capacitor and the storage battery pack;
The positive input end of the second diode is connected with the first input end of the alarm unit and the third end of the rectifying unit, and the reverse output end of the second diode is connected to one end of the sixth resistor;
the other end of the sixth resistor, the reverse output end of the third diode, one end of the first switch, one end of the third capacitor and one end of the second electrolytic capacitor are connected to the power supply output end;
the positive input end of the third diode, the fourth end of the rectifying unit, the output end of the alarm unit, the negative input end of the storage battery pack, the other end of the third capacitor and the other end of the second electrolytic capacitor are connected to a first grounding end;
the other end of the first switch is connected to the positive electrode output end of the storage battery pack.
In one possible embodiment, the clock control module includes: the system comprises a crystal oscillator unit, a time setting unit, a display setting unit and an alarm triggering unit;
the first output end of the time setting unit is connected to a first pin of the main control chip, the second output end of the time setting unit is connected to a second pin of the main control chip, the third output end of the time setting unit is connected to a third pin of the main control chip, and the time setting unit is used for adjusting the display time of the display module;
The first input end of the crystal oscillator unit is connected to the fourth pin of the main control chip, the second input end of the crystal oscillator unit is connected to the fifth pin of the main control chip, the third input end of the crystal oscillator unit is connected to the sixth pin of the main control chip, and the crystal oscillator unit is used for providing an output clock signal for the main control chip;
the first output end of the display setting unit is connected to a reset pin of the main control chip, the second output end of the display setting unit is connected to a determination pin of the main control chip, the third output end of the display setting unit is connected to a counting pin of the main control chip, the fourth output end of the display setting unit is connected to a setting pin of the main control chip, and the display setting unit is used for setting number information of alarm dialing;
the input end of the alarm triggering unit is connected to the output end of the power supply, the output end of the alarm triggering unit is connected to the detection pin of the main control chip, and the alarm triggering unit is used for triggering alarm control when detecting a trigger signal.
In one possible embodiment, the display setting unit includes: the second switch, the third switch, the fourth switch, the fifth switch, the seventh resistor and the third electrolytic capacitor;
one end of the second switch and one end of the third electrolytic capacitor are connected to the output end of the power supply, the other end of the second switch is connected with one end of the seventh resistor, the other end of the third electrolytic capacitor and the first pin of the main control chip, and the second switch is used for controlling the reset of the display module;
The other end of the seventh resistor is connected to the second grounding end;
one end of the third switch and one end of the fourth switch, one end of the fifth switch are connected to a third grounding end, the other end of the third switch is connected to a second pin of the main control chip, and the third switch is used for determining setting time;
the other end of the fourth switch is connected to a third pin of the main control chip, and the fourth switch is used for selecting the display position of the display module;
the other end of the fifth switch is connected to the fourth pin of the main control chip, and the fifth switch is used for setting display information of the display module.
In one possible embodiment, the alarm triggering unit includes: eighth resistor, optocoupler and magnetic switch;
one end of the eighth resistor and one end of the magnetically sensitive switch are connected to the output end of the power supply, and the other end of the eighth resistor is connected with the first end of the optocoupler and the detection pin of the main control chip;
the other end of the magnetic induction switch is connected to the second end of the optocoupler;
the third end of the optocoupler is connected to the third ground terminal, and the fourth end is connected to the fourth ground terminal.
In one possible embodiment, the display module includes: the display device comprises a plurality of displays, a control switch group, a register unit and a power control unit;
each display first input end is respectively connected to the output end of the register unit; the second input end of each display is respectively connected to one switch in the control switch group, and the display is used for displaying numbers;
the control system comprises a main control chip, a register unit and a power control unit, wherein a plurality of output pins of the main control chip are connected with the input ends of the control switch unit, the main control chip is connected with the input ends of the register unit, the control switch unit controls the opening of each display, the register unit is used for controlling the display content of each display, and the power control unit is used for supplying power for the main control chip.
In a second aspect, an embodiment of the present application provides an alarm control method of a digital clock, including:
when the main control chip receives the target detection signal output by the clock control module, a trigger signal of the alarm module is generated;
determining an alarm signal of the alarm module based on the trigger signal;
executing automatic dialing control on the alarm module according to the alarm signal;
Wherein the target detection signal is obtained by:
determining a target detection signal output by a clock control module according to the switching state of the magnetic induction switch;
when the switch state of the magnetically sensitive switch is in an off state, determining that the clock control module outputs a first detection signal, wherein the first detection signal is output by the clock control module;
and when the switch state of the magnetically sensitive switch is a closed state, determining that the clock control module outputs a second detection signal, wherein the second detection signal is output by the clock control module.
In one possible implementation manner, when the main control chip receives the target detection signal output by the clock control module, the generating a trigger signal of the alarm module includes:
when the main control chip receives the first detection signal, generating a suppression signal of the alarm module;
executing a closing alarm control on the alarm module based on the suppression signal;
when the main control chip receives the second detection signal, a dialing pulse signal is output to a first triode in the alarm module, and an alarm sound pulse signal is output to a second triode;
generating a dialing trigger signal of the alarm module according to the dialing pulse signal so as to enable the alarm module to execute off-hook operation;
And generating an alarm sound trigger signal of the alarm module according to the alarm sound pulse signal.
In one possible implementation manner, the determining the alarm signal of the alarm module based on the trigger signal includes:
determining a dialing control signal corresponding to the first triode based on the dialing trigger signal;
and determining an alarm control signal corresponding to the second triode based on the alarm trigger signal.
In one possible implementation manner, the performing automatic dialing control on the alarm module according to the alarm signal includes:
determining a dialing rule of the alarm module;
executing automatic dialing operation by using the dialing control signal based on the dialing rule, and controlling a display module to display dialing information so that the alarm module executes the dialing operation;
controlling the second triode to be conducted according to the alarm sound control signal;
and controlling the alarm module to play alarm audio information based on the conduction state of the second triode so as to enable the alarm module to execute alarm sound operation.
In one possible embodiment, after performing automatic dialing control on the alarm module according to the alarm signal, the method further includes:
Outputting an end signal to the alarm module;
and respectively controlling the first triode and the second triode to keep a disconnected state based on the ending signal so as to enable the alarm module to execute the on-hook operation.
The digital clock provided by the embodiment of the application is provided with a main control chip, a display module, a clock control module and an alarm module; one end of the main control chip is connected to the display module, and the other end of the main control chip is connected with the clock control module and the alarm module; the main control chip is used for controlling the display information of the display module and the trigger signal of the alarm module, the display module is used for displaying time information and alarm telephone information, the clock control module is used for inputting a clock control signal to the main control chip so that the main control chip controls the display module to display according to the clock control signal, and the alarm module is used for starting automatic dialing alarm after inputting a driving signal output by the main control chip; wherein, the alarm module includes: the device comprises a rectifying unit, an alarm unit and a power storage unit; the first end of the rectifying unit is connected to the first end of the telephone line, the second end of the rectifying unit is connected to the second end of the telephone line, the third end of the rectifying unit is connected with the first input end of the alarm unit and the first end of the electricity storage unit, the fourth end of the rectifying unit is connected with the output end of the alarm unit and the second end of the electricity storage unit to the first grounding end, and the rectifying unit is used for rectifying an input signal of the telephone line; the second input end of the alarm unit is connected to the first control pin of the main control chip, the third input end of the alarm unit is connected to the second control pin of the main control chip, and the alarm unit is used for triggering automatic dialing alarm; the third end of the electricity storage unit is connected to the output end of the power supply, and the electricity storage unit is used for supplying power to the alarm unit when an alarm is started. The clock control module detects that an environment has alarm requirements, an alarm request is sent to the main control chip, the main control chip controls the alarm module to output trigger signals, and the different switches of the alarm module are controlled to execute the operations of off-hook, dialing, alarm tone and on-hook, so that the digital clock realizes automatic alarm on the basis of recording and time setting functions. By the scheme, the technical effect of starting automatic alarm dialing based on the multifunctional digital clock can be achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
Fig. 1 is a schematic structural diagram of a digital clock according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a digital clock with an alarm function in an application scenario according to an embodiment of the present application;
FIG. 3 is a schematic diagram of another digital clock according to an embodiment of the present disclosure;
Fig. 4 is a schematic structural diagram of a display module in a digital clock according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a digital clock according to an embodiment of the present disclosure;
FIG. 6 is a schematic flow chart of an alarm control method of a digital clock according to an embodiment of the present application;
FIG. 7 is a flowchart of another method for controlling an alarm of a digital clock according to an embodiment of the present disclosure;
FIG. 8 is a schematic flow chart of a function selection of an alarm control method of a digital clock according to an embodiment of the present application;
fig. 9 is a schematic flow chart of timing control of an alarm control method of a digital clock according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The terms "comprising" and "having" in the embodiments of the present application are used to mean that there may be additional elements/components/etc. in addition to the listed elements/components/etc.; the terms "first" and "second" and the like are used merely as labels, and are not intended to limit the number of their objects. Furthermore, the various elements and regions in the figures are only schematically illustrated and thus the present application is not limited to the dimensions or distances illustrated in the figures.
For the purpose of facilitating an understanding of the embodiments of the present application, reference will now be made to the following description of specific embodiments, taken in conjunction with the accompanying drawings, in which the embodiments are not intended to limit the embodiments of the present application.
Fig. 1 is a schematic structural diagram of a digital clock according to an embodiment of the present application. The embodiment of the application provides a multifunctional digital clock, according to the diagram provided in fig. 1, the structure of the digital clock specifically includes:
the device comprises a main control chip 11, a display module 12, a clock control module 13 and an alarm module 14.
One end of the main control chip 11 is connected to the display module 12, and the other end of the main control chip 11 is connected with the clock control module 13 and the alarm module 14.
The main control chip 11 is used for controlling the display information of the display module 12 and controlling the trigger signal of the alarm module 14, the display module 12 is used for displaying time information and alarm telephone information, the clock control module 13 is used for inputting clock control signals to the main control chip 11, so that the main control chip 11 controls the display module 12 to display according to the clock control signals, and the alarm module 14 is used for starting automatic dialing alarm after inputting driving signals output by the main control chip 11.
After receiving the clock control signal input by the clock control module 13, the main control chip 11 controls the display module 12 to display clock information, and after receiving the alarm trigger signal, the main control chip 11 inputs an alarm signal to the alarm module 14 to control the alarm module 14 to start automatic dialing alarm.
According to the diagram provided in fig. 1, the clock control module 13 detects that an alarm requirement occurs in the environment, sends an alarm request to the main control chip 11, controls the main control chip 11 to output a trigger signal to the alarm module 14, and controls different switches of the alarm module 14 to execute the operations of off-hook, dialing, alarm tone and on-hook, thereby realizing automatic alarm of the digital clock on the basis of the functions of recording and setting time.
According to the diagram provided in fig. 1, the alarm module 14 of the digital clock comprises: a rectifying unit 141, an alarm unit 142, and a power storage unit 143.
The rectifying unit 141 has a first end connected to a first end of the telephone line, a second end connected to a second end of the telephone line, a third end connected to a first input end of the alarm unit 142 and a first end of the power storage unit 143, a fourth end connected to a first ground end to an output end of the alarm unit 142 and a second end of the power storage unit 143, and the rectifying unit 141 is configured to rectify an input signal of the telephone line.
The second input end of the alarm unit 142 is connected to the first control pin of the main control chip 11, the third input end is connected to the second control pin of the main control chip 11, and the alarm unit 142 is used for triggering an automatic dialing alarm.
The third terminal of the electricity storage unit 143 is connected to the output terminal of the power supply VCC, and the electricity storage unit 143 is used for supplying power to the alarm unit when the alarm is started.
According to the diagram provided in fig. 1, when the clock control module 13 detects that the door and window are abnormally opened, a stolen condition exists, a detection signal is fed back to the main control chip 11, and the main control chip 11 controls the alarm unit 142 to open the operation of automatic dialing and playing the alarm sound, so that the automatic dialing alarm operation of the digital clock is realized. When the alarm module 14 is not in operation, an electric signal input through a telephone line connected with the alarm module 14 is charged into the electricity storage unit 143 under the processing of the rectifying unit 141, and when the alarm unit 142 is started to operate, the electricity storage unit 143 supplies electricity to the alarm unit 142.
In one possible application scenario, fig. 2 is a schematic structural diagram of a digital clock with an alarm function in an application scenario provided in an embodiment of the present application. Fig. 2 is a further division of the alarm function of the digital clock of fig. 1. According to the diagram provided in fig. 2, the main control chip 10 controls the display module 30 and the dialing alarm module 20, meanwhile, the dialing alarm module 20 receives the signal output by the telephone line and the electric signal of the power supply 60, the main control chip 10 is connected with the trigger switch 40, the keyboard 50 is connected with the main control chip 10, the trigger switch 40 sends an environment abnormality trigger signal to the main control chip 10, the main control chip 10 outputs an alarm signal to the dialing alarm module 20, so that the digits of automatic dialing are displayed in the redisplay module 30, and meanwhile, the alarm telephone number is input by means of the keyboard 50, the alarm is triggered, and the purpose of automatic dialing alarm based on a digital clock is achieved.
The embodiment of the application relates to a digital clock and a control method, comprising the following steps: the system comprises a main control chip, a display module, a clock control module and an alarm module; one end of the main control chip is connected to the display module, and the other end of the main control chip is connected with the clock control module and the alarm module; the main control chip is used for controlling the display information of the display module and the trigger signal of the alarm module, the display module is used for displaying time information and alarm telephone information, the clock control module is used for inputting clock control signals to the main control chip so that the main control chip controls the display module to display according to the clock control signals, and the alarm module is used for starting automatic dialing alarm after inputting driving signals output by the main control chip; wherein, alarm module includes: the device comprises a rectifying unit, an alarm unit and a power storage unit; the first end of the rectifying unit is connected to the first end of the telephone line, the second end of the rectifying unit is connected to the second end of the telephone line, the third end of the rectifying unit is connected with the first input end of the alarm unit and the first end of the electricity storage unit, the fourth end of the rectifying unit is connected with the output end of the alarm unit and the second end of the electricity storage unit to the first grounding end, and the rectifying unit is used for rectifying an input signal of the telephone line; the second input end of the alarm unit is connected to the first control pin of the main control chip, the third input end of the alarm unit is connected to the second control pin of the main control chip, and the alarm unit is used for triggering automatic dialing alarm; the third end of the electricity storage unit is connected to the output end of the power supply, and the electricity storage unit is used for supplying power to the alarm unit when the alarm is started. The clock control module detects that an environment has alarm requirements, an alarm request is sent to the main control chip, the main control chip controls the alarm module to output trigger signals, and the different switches of the alarm module are controlled to execute the operations of off-hook, dialing, alarm tone and on-hook, so that the digital clock realizes automatic alarm on the basis of recording and time setting functions. Therefore, the technical effect of starting automatic alarm dialing based on the multifunctional digital clock can be achieved.
In an alternative aspect of the embodiment of the present application, the rectifying unit includes: the first capacitor, the second capacitor, the rectifier bridge and the pressure-sensitive diode; one end of the first capacitor is connected with one end of the second capacitor, the negative electrode output end of the rectifier bridge, the output end of the alarm unit and the second end of the electricity storage unit to the first grounding end, and the other end of the first capacitor is connected with the first end of the telephone line, one end of the pressure-sensitive diode and the first alternating current input end of the rectifier bridge; the other end of the second capacitor is connected with the second end of the telephone line, the other end of the pressure-sensitive diode and the second alternating current input end of the rectifier bridge; the positive pole output end of the rectifier bridge, the first input end of the alarm unit and the first end of the electricity storage unit are connected to the power supply output end.
In an alternative aspect of the embodiments of the present application, the alarm unit includes: the first resistor, the second resistor, the third resistor, the fourth resistor, the fifth resistor, the first electrolytic capacitor, the first selection switch, the first triode, the second triode and the first diode; one end of the first resistor, one end of the second resistor, the third end of the rectifying unit and the first end of the electricity storage unit are connected to the output end of the power supply, and the other end of the first resistor is connected to the collector electrode of the first triode; the other end of the second resistor is connected to the collector electrode of the second triode; the emitter of the first triode is connected with the emitter of the second triode and the positive input end of the first diode, and the base of the first triode is connected with the first control pin of the main control chip and one end of the third resistor; the reverse output end of the first diode, the fourth end of the rectifying unit and the second end of the electricity storage unit are connected to the first grounding end; the base electrode of the second triode is connected to the first end of the first selector switch; the second end of the first selection switch is connected with one end of the fourth resistor and the second control pin of the main control chip, and the third end of the first selection switch is connected with one end of the fifth resistor; the other end of the third resistor and the other end of the fourth resistor are connected to the output end of the power supply; the other end of the fifth resistor is connected to one end of the first electrolytic capacitor; the other end of the first electrolytic capacitor is connected to the data output end.
In an alternative aspect of the embodiments of the present application, the power storage unit includes: the second diode, the third diode, the sixth resistor, the first switch, the third capacitor, the second electrolytic capacitor and the storage battery pack; the positive input end of the second diode is connected with the first input end of the alarm unit and the third end of the rectifying unit, and the reverse output end of the second diode is connected to one end of the sixth resistor; the other end of the sixth resistor, the reverse output end of the third diode, one end of the first switch, one end of the third capacitor and one end of the second electrolytic capacitor are connected to the output end of the power supply; the positive input end of the third diode, the fourth end of the rectifying unit, the output end of the alarm unit, the negative input end of the storage battery pack, the other end of the third capacitor and the other end of the second electrolytic capacitor are connected to the first grounding end; the other end of the first switch is connected to the positive electrode output end of the storage battery.
In an alternative aspect of the embodiments of the present application, the clock control module includes: the system comprises a crystal oscillator unit, a time setting unit, a display setting unit and an alarm triggering unit; the first output end of the time setting unit is connected to a first pin of the main control chip, the second output end of the time setting unit is connected to a second pin of the main control chip, the third output end of the time setting unit is connected to a third pin of the main control chip, and the time setting unit is used for adjusting the display time of the display module; the first input end of the crystal oscillator unit is connected to the fourth pin of the main control chip, the second input end of the crystal oscillator unit is connected to the fifth pin of the main control chip, the third input end of the crystal oscillator unit is connected to the sixth pin of the main control chip, and the crystal oscillator unit is used for providing an output clock signal for the main control chip; the first output end of the display setting unit is connected to a reset pin of the main control chip, the second output end of the display setting unit is connected to a determination pin of the main control chip, the third output end of the display setting unit is connected to a counting pin of the main control chip, the fourth output end of the display setting unit is connected to a setting pin of the main control chip, and the display setting unit is used for setting number information of alarm dialing; the input end of the alarm triggering unit is connected to the output end of the power supply, the output end of the alarm triggering unit is connected to the detection pin of the main control chip, and the alarm triggering unit is used for triggering alarm control when detecting a triggering signal.
In an alternative aspect of the embodiment of the present application, the display setting unit includes: the second switch, the third switch, the fourth switch, the fifth switch, the seventh resistor and the third electrolytic capacitor; one end of the second switch is connected with one end of the third electrolytic capacitor to be connected to the output end of the power supply, the other end of the second switch is connected with one end of the seventh resistor, the other end of the third electrolytic capacitor is connected with the first pin of the main control chip, and the second switch is used for controlling the reset of the display module; the other end of the seventh resistor is connected to the second grounding end; one end of the third switch and one end of the fourth switch, one end of the fifth switch are connected to a third grounding end, the other end of the third switch is connected to a second pin of the main control chip, and the third switch is used for determining setting time; the other end of the fourth switch is connected to the third pin of the main control chip, and the fourth switch is used for selecting the display position of the display module; the other end of the fifth switch is connected to the fourth pin of the main control chip, and the fifth switch is used for setting the display information of the display module.
In an alternative aspect of the embodiments of the present application, the alarm triggering unit includes: eighth resistor, optocoupler and magnetic switch; one end of the eighth resistor and one end of the magnetically sensitive switch are connected to the output end of the power supply, and the other end of the eighth resistor is connected with the first end of the optocoupler and the detection pin of the main control chip; the other end of the magnetic induction switch is connected to the second end of the optocoupler; the third end of the optocoupler is connected to the third ground terminal, and the fourth end is connected to the fourth ground terminal.
In an alternative aspect of the embodiments of the present application, the display module includes: the display device comprises a plurality of displays, a control switch group, a register unit and a power control unit; the first input end of each display is connected to the output end of the register unit respectively; the second input end of each display is respectively connected to one switch in the control switch group, and the display is used for displaying numbers; the control system comprises a main control chip, a register unit, a control switch group, a control unit and a power supply unit, wherein a plurality of output pins of the main control chip are connected with the input ends of the control switch group, the main control chip is connected with the power supply unit, the control switch group controls the opening of each display, the register unit is used for controlling the display content of each display, and the power supply unit is used for supplying power to the main control chip.
The following will be with main control chip, rectification unit, alarm unit, electricity storage unit, clock control module includes: crystal oscillator unit, time setting unit, display setting unit and warning trigger unit, display module includes: a plurality of displays, control switch sets, register units and power control units are described as examples. Fig. 3 is a schematic structural diagram of another digital clock according to an embodiment of the present application. Fig. 3 is presented on the basis of the above embodiment. According to the diagram provided in fig. 3, the structure of the digital clock specifically includes:
The device comprises a main control chip 11, a display module 12, a clock control module 13, an alarm module 14, a rectifying unit 141, an alarm unit 142 and an electricity storage unit 143.
According to the diagram provided in fig. 3, the clock control module 13 of the digital clock comprises: a crystal oscillator unit 131, a time setting unit 132, a display setting unit 133 and an alarm triggering unit 134.
The first output end of the time setting unit 132 is connected to a first pin of the main control chip 11, the second output end is connected to a second pin of the main control chip 11, the third output end is connected to a third pin of the main control chip 11, and the time setting unit 132 is used for adjusting the display time of the display module 12.
The first input end of the crystal oscillator unit 131 is connected to the fourth pin of the main control chip 11, the second input end is connected to the fifth pin of the main control chip 11, the third input end is connected to the sixth pin of the main control chip 11, and the crystal oscillator unit 131 is used for providing an output clock signal for the main control chip 11.
The first output end of the display setting unit 133 is connected to the reset pin of the main control chip 11, the second output end is connected to the determination pin of the main control chip 11, the third output end is connected to the counting pin of the main control chip 11, the fourth output end is connected to the setting pin of the main control chip 11, and the display setting unit 133 is used for setting the number information of the alarm dialing.
The input end of the alarm triggering unit 134 is connected to the output end of the power supply VCC, the output end is connected to the detection pin of the main control chip 11, and the alarm triggering unit 134 is used for triggering alarm control when detecting a trigger signal.
The 12MHZ crystal oscillator is adopted by the crystal oscillator unit 131, so that the accuracy of second timing is improved.
According to the diagram provided in fig. 3, the clock control module 13 is directly controlled by connecting the main control chip 11 with the clock control module 13. The crystal oscillator unit 131 is connected with the main control chip 11, and a stable clock signal is input to the main control chip 11. The master control chip 11 is connected with the time setting unit 132 to realize time modulation of the clock. The main control chip 11 is connected with the display setting unit 133 to realize direct control of display information in the display, and control the display time of the display or display alarm telephone. The alarm triggering unit 134 is connected with the main control chip 11, the external abnormal state is detected in real time through the alarm triggering unit 134, the detected signal is sent to the main control chip 11, whether the alarm is triggered or not is realized through the main control chip 11, and the purpose of automatic dialing alarm is realized on the basis of the digital clock function.
According to the diagram provided in fig. 3, the display module 12 of the digital clock comprises: a plurality of displays 121, a control switch group 122, a register unit 123, and a power control unit 124.
A first input of each display 121 is connected to an output of a register unit 123, respectively; a second input of each display 121 is connected to a respective one of the switches in the set of control switches 122, the display 121 being adapted to display a number.
The multiple output pins of the main control chip 11 are connected with the input end of the control switch group 122, the main control chip 11 is connected with the control unit 124, the main control chip 11 is connected with the input end of the register unit 123, the control switch group 122 controls the opening of each display 121, the register unit 123 is used for controlling the display content of each display 121, and the control unit 124 is used for supplying power to the main control chip 11.
The multiple displays are understood to be multiple display bits set according to the requirement of the digital clock, and 6 displays are selected as display screens of the digital clock in the embodiment of the application. The display 121 adopts an LED nixie tube, and the LED nixie tube is used for indicating the working state or inputting data.
According to the diagram provided in fig. 3, the display 121 in the display module is respectively connected with the control switch group 122, and the main control chip 11 realizes the on or off control of each display 121 through each switch. The main control chip 11 is connected through the register unit 123, and is controlled by software logic, so that the on-off states of eight display positions in a display connected with the register unit 123 are controlled, and the purpose of displaying different numbers is achieved. The power control unit 124 is connected with the main control chip 11 to achieve the purpose of supplying power to the main control chip 11.
In a possible example scenario, fig. 4 is a schematic structural diagram of a display module in a digital clock according to an embodiment of the present application. According to the diagram provided in fig. 4, the main control chip 10 is connected to the display driver 100 and the 6-bit LED display device 1000, respectively. The signal control of the main control chip 10 outputs an electric signal, and the display driver 100 generates a driving signal to light the display device and control the display of the digital clock.
According to the digital clock, the situation that the door and window is abnormally opened is detected through the alarm triggering unit, the existence of danger is judged, the detection signal is sent to the main control chip, the alarm triggering signal is generated through the main control chip, the alarm unit is controlled to start the operation of automatic dialing alarm and broadcasting alarm tone, the operations of off hook, dialing, alarm and on hook are simulated, the purpose of automatic dialing alarm is achieved, and therefore the technical effect of automatic dialing alarm is achieved based on the digital clock function.
The following will be with the main control chip, the rectification unit includes: the first electric capacity, second electric capacity, rectifier bridge and pressure sensitive diode, alarm unit includes: the first resistor, the second resistor, the third resistor, the fourth resistor, the fifth resistor, the first electrolytic capacitor, the first selector switch, the first triode, the second triode and the first diode, the electricity storage unit includes: the second diode, the third diode, the sixth resistor, the first switch, the third capacitor, the second electrolytic capacitor and the battery pack, the display setting unit includes: the second switch, the third switch, the fourth switch, the fifth switch, the seventh resistor and the third electrolytic capacitor, the alarm triggering unit includes: the eighth resistor, the optocoupler and the magnetic induction switch, the plurality of displays, the control switch group, the register unit and the electricity control unit, the crystal oscillator unit and the time setting unit are described as examples. Fig. 5 is a schematic structural diagram of another digital clock according to an embodiment of the present application. Fig. 5 is presented on the basis of the first embodiment. According to the diagram provided in fig. 5, the structure of the digital clock specifically includes:
The main control chip 11, the rectifying unit 141, the alarm unit 142, the electricity storage unit 143, the display setting unit 133, the alarm triggering unit 134, the display 121, the control switch group 122, the register unit 123, the electricity control unit 124, the crystal oscillator unit 131 and the time setting unit 132.
According to the diagram provided in fig. 5, the rectifying unit 141 of the digital clock includes: the device comprises a first capacitor C1, a second capacitor C2, a rectifier bridge BD1 and a voltage-sensitive diode ZND.
One end of the first capacitor C1 is connected to one end of the second capacitor C2, the negative output end of the rectifier bridge BD1, the output end of the alarm unit 142, and the second end of the power storage unit 143 to the first ground, and the other end is connected to the first end of the telephone line, one end of the voltage-sensitive diode ZND, and the first ac input end of the rectifier bridge BD 1.
The other end of the second capacitor C2 is connected to the second end of the telephone line, the other end of the voltage-sensitive diode ZND and the second ac input end of the rectifier bridge BD 1.
The positive output terminal of the rectifier bridge BD1 and the first input terminal of the alarm unit 142 and the first terminal of the electricity storage unit 143 are connected to the output terminal of the power supply VCC.
The voltage-sensitive diode ZND is a voltage-sensitive diode with breakdown voltage of 120V, and the circuit is prevented from being disturbed by lightning.
According to the diagram provided in fig. 5, the electricity storage unit 143 is supplied with electricity through two telephone lines when the alarm module 14 is not activated; when the alarm unit 142 triggers an alarm, the telephone line is stopped to supply power to the electricity storage unit 143, and the electricity storage unit is used for supplying power to the alarm unit 142. In the process of supplying power to the power storage unit 143 through the telephone line, filtering is performed through the first capacitor C1 and the second capacitor C2, rectifying processing is performed through the rectifying bridge BD1, a stable electric signal is obtained, and the purpose of anti-interference is achieved on the circuit through the pressure sensitive diode ZND.
According to the diagram provided in fig. 5, the alarm unit 142 of the digital clock includes: the first resistor R1, the second resistor R2, the third resistor R3, the fourth resistor R4, the fifth resistor R5, the first electrolytic capacitor Cr1, the first selection switch J1, the first triode T1, the second triode T2 and the first diode D1;
one end of the first resistor R1 and one end of the second resistor R2, the third end of the rectifying unit 141 and the first end of the electricity storage unit 143 are connected to the output end of the power supply VCC, and the other end of the first resistor R1 is connected to the collector of the first triode T1;
the other end of the second resistor R2 is connected to the collector of the second transistor.
The emitter of the first triode T1 is connected with the emitter of the second triode T2 and the positive input end of the first diode D1, and the base of the first triode T1 is connected with the first control pin of the main control chip 11 and one end of the third resistor R3.
The reverse output terminal of the first diode T1 and the fourth terminal of the rectifying unit 141 and the second terminal of the storing unit 143 are connected to the first ground terminal.
The base of the second transistor T2 is connected to the first terminal of the first selection switch J1.
The second end of the first selection switch J1 is connected with one end of the fourth resistor R4 and the second control pin of the main control chip 11, and the third end is connected with one end of the fifth resistor R5.
The other end of the third resistor R3 and the other end of the fourth resistor R4 are connected to the output end of the power supply VCC.
The other end of the fifth resistor R5 is connected to one end of the first electrolytic capacitor Cr 1.
The other end of the first electrolytic capacitor Cr1 is connected to the data output terminal.
The voltage on the telephone line is usually about 50-60V. When the dialing is not performed, the control pin P3.0 and the control pin P3.1 of the main control chip both output low level.
According to the diagram provided in fig. 5, after the alarm is triggered, a high level is output through the control pin P3.0 on the main control chip, so that the first triode T1 is turned on, and as the load R1 is connected to the telephone line, the voltage of the telephone line drops, and off-hook is simulated. The control pin P3.0 starts to output the dial pulse, so that the voltage (level) of the telephone line is also changed high and low. 1 pulse represents dial 1,2 pulses represents dial 2, … …,10 pulses represents dial 0, and each pulse has a width and interval of 100ms. After dialing the 1-bit number, the system pauses for 500ms (keeps the control pin P3.0 high level) and dials the next bit until all dialing is completed. The control pin P3.1 outputs high level to control the second triode T2 to be conducted, the control pin P3.1 outputs alarm sound pulse signals, the data input section is used for dialing input or alarm sound selection to realize alarm, and finally the control pin P3.1 outputs low level to complete alarm, and then the control pin P3.0 outputs low level to realize hang-up, so that the automatic dialing alarm control process is completed.
According to the diagram provided in fig. 5, the power storage unit 143 of the digital clock includes: the second diode D2, the third diode D3, the sixth resistor R6, the first switch JZ, the third capacitor C3, the second electrolytic capacitor Cr2 and the storage battery VF.
The second diode D2 has a forward input terminal connected to the first input terminal of the alarm unit 142 and the third terminal of the rectifying unit 141, and a reverse output terminal connected to one terminal of the sixth resistor R6.
The other end of the sixth resistor R6 is connected to the output end of the power supply VCC together with the reverse output end of the third diode D3, one end of the first switch JZ, one end of the third capacitor C3 and one end of the second electrolytic capacitor Cr 2.
The positive input terminal of the third diode D3 and the fourth terminal of the rectifying unit 141, the output terminal of the alarm unit 142, the negative input terminal of the battery bank VF, the other terminal of the third capacitor C3, and the other terminal of the second electrolytic capacitor Cr2 are connected to the first ground terminal.
The other end of the first switch JZ is connected to the positive output terminal of the battery pack VF.
According to the diagram provided in fig. 5, when the alarm module is in a standby state, the battery pack VF is charged through the telephone line, the second click-to-unlock capacitor Cr2 is charged through the battery pack VF, filtering is performed through the third capacitor C3, current is limited through the second diode D2 and the third diode D3, and the control circuit is turned on in a single phase; when the alarm module is triggered, the telephone line stops supplying power to the livestock battery pack VF, and at this time, the alarm unit 142 is supplied with power through the second click-through capacitor. The charge and discharge state of the livestock battery pack VF is detected by closing the first switch JZ means.
For example, assuming that the alarm module is in a low power consumption standby state (only about 2mA in power consumption at this time), the power is taken from the telephone line, and the 3.6V/60mA nickel-chromium battery (i.e., the livestock battery group VF) is charged, when the input data is set or the dialing alarm is performed, the power consumption reaches 10mA, and the power is mainly supplied by the nickel-chromium battery (i.e., the livestock battery group VF). Because of the backup power supply of the nickel-chromium battery, the input data cannot be lost even if the telephone line is disconnected.
According to the diagram provided in fig. 5, the display setting unit 133 of the digital clock includes: a second switch T3, a third switch T4, a fourth switch T5, a fifth switch T6, a seventh resistor R7 and a third electrolytic capacitor Cr3.
One end of the second switch T3 and one end of the third electrolytic capacitor Cr3 are connected to the output end of the power supply VCC, the other end of the second switch T3 is connected with one end of the seventh resistor R7, the other end of the third electrolytic capacitor Cr3 and the first pin of the main control chip 11, and the second switch T3 is used for controlling the reset of the display module 12.
The other end of the seventh resistor R7 is connected to the second ground.
One end of the third switch T4 and one end of the fourth switch T5, one end of the fifth switch T6 are connected to the third ground terminal, the other end of the third switch T4 is connected to the second pin of the main control chip 11, and the third switch T4 is used for determining the setting time.
The other end of the fourth switch T5 is connected to the third pin of the main control chip 11, and the fourth switch T5 is used for selecting the display position of the display module 12.
The other end of the fifth switch T6 is connected to the fourth pin of the main control chip 11, and the fifth switch T6 is configured to set display information of the display module 12.
According to the diagram provided in fig. 5, the details of the clock display are controlled by the second switch T3, the third switch T4, the fourth switch T5, and the fifth switch T6. The second switch T3 is set as a ret key and is a system reset key; setting a third switch T4 as an ok key and as an input data confirmation key; setting a fourth switch T5 as an up key and displaying a number increasing key; the fifth switch T6 is set as a set key, and the working mode setting key can set 5 modes of a management machine, a work, an input time T1, an input time T2 and an input telephone number.
According to the diagram provided in fig. 5, the alarm triggering unit 134 of the digital clock includes: eighth resistor R8, optocoupler U1, and magnetically sensitive switch R9.
One end of the eighth resistor R8 and one end of the magnetically sensitive switch R9 are connected to the output end of the power supply VCC, and the other end of the eighth resistor R8 is connected with the first end of the optocoupler U1 and the detection pin of the main control chip 11.
The other end of the magnetically sensitive switch R9 is connected to the second end of the optocoupler U1.
The third terminal of the optocoupler U1 is connected to the third ground terminal, and the fourth terminal is connected to the fourth ground terminal.
The magnetic induction switch R9 is an anti-theft induction switch arranged on a door or a window, is normally open when the door is closed, and is closed and connected when the door is opened. Of course, other sensing devices, such as laser detection, ultrasonic sensing, pyroelectric sensing, active infrared detection or wireless door magnetism, can be used instead to realize omnibearing remote detection. In order to prevent the magnetic induction switch R9 from being far away from the controller to generate the induced interference, the optocoupler U1 is used for signal transmission, and the effect is good.
Fig. 6 is a flow chart of an alarm control method of a digital clock according to an embodiment of the present application. The method is applied to a multifunctional digital clock. According to the diagram provided in fig. 6, the alarm control method of the digital clock specifically includes:
s601, when the main control chip receives the target detection signal output by the clock control module, a trigger signal of the alarm module is generated.
The clock control module detects that an environment has alarm requirements, an alarm request is sent to the main control chip, the main control chip controls the alarm module to output trigger signals, and the different switches of the alarm module are controlled to execute the operations of off-hook, dialing, alarm tone and on-hook, so that the digital clock realizes automatic alarm on the basis of recording and time setting functions.
The target detection signal is understood to be that the clock control module detects whether the peripheral environment has dangerous situations in real time.
Further, the clock control module detects whether the external environment is dangerous in real time, for example, whether a door or a window is abnormally opened, converts the detected information of the door or the window of the two eggs into detection electric signals, feeds the detection electric signals back to the main control chip, generates an alarm triggering signal according to the analysis of the main control chip, and prepares for starting automatic dialing alarm in the next step.
S602, determining an alarm signal of the alarm module based on the trigger signal.
The alarm signal is understood to be based on the dialing signal and the alarm bell signal information output by the alarm module.
Further, the alarm module is in a standby state, an alarm mode is started after a trigger signal is received, a dialing signal is generated through simulation dialing operation, an alarm sound signal is generated through simulation alarm bell operation, and reference data is provided for the next step of automatic dialing.
S603, executing automatic dialing control on the alarm module according to the alarm signal.
Further, according to the obtained alarm signal containing the dialing signal, the set pulse wave is utilized to carry out analog dialing, so that automatic dialing operation is achieved, alarm operation is achieved by simulating alarm bell through the alarm sound pulse signal, finally, the master control chip stops outputting a trigger signal, the on-hook operation is simulated, the purpose of automatic dialing alarm is achieved, and the functions of the digital clock are enriched.
Wherein the target detection signal is obtained by:
step 1: and determining a target detection signal output by the clock control module according to the switching state of the magnetic induction switch.
Step 2: when the switch state of the magnetic induction switch is in an off state, the clock control module is determined to output a first detection signal, and the first detection signal is used for keeping the detection alarm module.
Step 3: when the switch state of the magnetic induction switch is in a closed state, the clock control module is determined to output a second detection signal, and the second detection signal is used for triggering the alarm module.
Further, whether to trigger the alarm module is determined according to the switch state of the magnetically sensitive switch. When the magnetic induction switch is disconnected, the signal detected by the clock control module is used as a first detection signal to be fed back to the main control chip; when the switch state of the magnetic induction switch is in a conducting state, a second detection signal is fed back to the main control chip through the clock control module, and the dangerous door and window opening operation is indicated.
According to the alarm control method for the digital clock, the clock control module detects that an alarm requirement appears in the environment, an alarm request is sent to the main control chip, the main control chip controls the alarm module to output a trigger signal, and the different switches of the alarm module are controlled to achieve the operations of off-hook, dialing, alarm tone and on-hook, so that the digital clock can realize automatic alarm on the basis of recording and time setting functions. By the scheme, the technical effect of starting automatic alarm dialing based on the multifunctional digital clock can be achieved.
Fig. 7 is a flowchart of another alarm control method of a digital clock according to an embodiment of the present application. Fig. 7 is presented on the basis of the above embodiment. According to the diagram provided in fig. 7, the alarm control method of the digital clock specifically includes:
s701, determining a target detection signal output by the clock control module according to the switch state of the magnetically sensitive switch.
S702, when the switch state of the magnetically sensitive switch is in an off state, determining that the clock control module outputs a first detection signal, wherein the first detection signal is used for keeping the detection alarm module.
And S703, when the switch state of the magnetically sensitive switch is in a closed state, determining that the clock control module outputs a second detection signal, wherein the second detection signal is used for triggering the alarm module.
Further, whether to trigger the alarm module is determined according to the switch state of the magnetically sensitive switch. When the magnetic induction switch is disconnected, the signal detected by the clock control module is used as a first detection signal to be fed back to the main control chip; when the switch state of the magnetic induction switch is in a conducting state, a second detection signal is fed back to the main control chip through the clock control module, and the dangerous door and window opening operation is indicated.
S704, when the main control chip receives the first detection signal, a suppression signal of the alarm module is generated.
And S705, executing closing alarm control on the alarm module based on the inhibition signal.
Further, when the main control chip receives the first detection signal, the environment safety is indicated, and alarm processing is not needed. And turning off the alarm through the generated inhibition signal.
S706, when the main control chip receives the second detection signal, a dialing pulse signal is output to a first triode in the alarm module, and an alarm sound pulse signal is output to a second triode.
S707, a dialing trigger signal of the alarm module is generated according to the dialing pulse signal, so that the alarm module executes off-hook operation.
Further, according to the first triode output dialing pulse signal, the off-hook operation is simulated, and the alarm unit is controlled to execute the dialing operation through the alarm tone pulse signal.
S708, generating an alarm sound trigger signal of the alarm module according to the alarm sound pulse signal.
S709, determining a dialing control signal corresponding to the first triode based on the dialing trigger signal.
S710, determining an alarm control signal corresponding to the second triode based on the alarm trigger signal.
Further, according to the conduction of the first triode in the alarm module, preparation is made for the next control of automatic dialing operation, the second but organ in the alarm module is controlled to be conducted through the main control chip, an alarm sound control signal is input, and preparation is made for the next play of alarm bell sound.
S711, determining the dialing rule of the alarm module.
The dialing rule is understood to mean that the voltage (level) of the telephone line is also changed to be high or low according to the input dialing pulse. 1 pulse represents dial 1,2 pulses represents dial 2, … …,10 pulses represents dial 0, and each pulse has a width and interval of 100ms. After dialing 1 digit number, stopping dialing next digit for 500ms (keeping P3.0 high level) until all dialing is completed.
For example, the automatic dialing telephone number is set to 110 in advance by a software code, and the operation time required when performing automatic dialing is: 100ms+500 ms+100ms+500ms+1000ms=2200 ms.
S712, executing automatic dialing operation by using the dialing control signal based on the dialing rule, and controlling the display module to display the dialing information so that the alarm module executes the dialing operation.
S713, controlling the second triode to be conducted according to the alarm sound control signal.
S714, controlling the alarm module to play alarm audio information based on the conduction state of the second triode so that the alarm module executes alarm sound operation.
Further, the control pin P3.0 of the main control chip keeps high level (keeps the telephone line on), the control pin P3.1 outputs an alarm pulse of 1KHz to drive T2, and modulates at 2Hz (i.e. turns on the 1KHz signal for 0.5s and turns off the 1KHz signal for 0.5 s), so that the alarm sound of "beep, beep … …" is heard from the telephone of the receiving party. The time of the alarm sound is 60s according to design.
S715, outputting an end signal to the alarm module.
S716, respectively controlling the first triode and the second triode to keep a disconnected state based on the end signal so as to enable the alarm module to execute the on-hook operation.
Further, after the alarm time reaches 60 seconds, the control pin P3.1 of the main control chip outputs a low level, and the second triode T2 is disconnected to stop alarming. Then the control pin P3.0 also outputs low level to simulate the hang-up, thus completing an automatic dialing alarm process.
In a possible example scenario, fig. 8 is a flowchart illustrating a function selection of an alarm control method of a digital clock according to an embodiment of the present application. According to the diagram provided in fig. 8, when the digital clock selects the clock function, an initialization operation is first performed, the automatic dialing alarm function is turned off according to the input detection signal, and then the automatic dialing alarm function is respectively scattered to the corresponding subroutines (the management machine, the alert operation, the input time t1, the input time t2, and the input telephone number) according to the input key value to perform a cyclic operation. The pin T0 in the main control chip is a 100ms timing interrupt service subroutine, which realizes accurate dialing pulse timing sequence. The external interrupt service sub-function of the pin INT0 in the main control chip is used for realizing function selection; and the external interrupt service subfunction of the pin INT1 in the main control chip detects the state of the anti-theft trigger switch.
In a possible example scenario, fig. 9 is a schematic flow chart of timing control of an alarm control method of a digital clock according to an embodiment of the present application. According to the diagram provided in fig. 9, when the digital clock needs to adjust time, the display module is controlled to clear 0, then the switches T00 and T01 in the time setting unit are controlled to be set to a 16-bit counter mode, when the alarm module is controlled to operate through the terminal, the display number and the display subfunction are checked, the corresponding adjustment time setting is performed by detecting whether a key is pressed, the switch T00 in the time setting unit is set to a time minute, and when the switch T01 in the time setting unit is set to a time, time modulation is realized.
The foregoing embodiments have been provided for the purpose of illustrating the general principles of the present application, and are not meant to limit the scope of the invention, but to limit the scope of the invention.
Claims (14)
1. A digital clock, comprising:
The system comprises a main control chip, a display module, a clock control module and an alarm module;
one end of the main control chip is connected to the display module, and the other end of the main control chip is connected with the clock control module and the alarm module;
the main control chip is used for controlling the display information of the display module and the trigger signal of the alarm module, the display module is used for displaying time information and alarm telephone information, the clock control module is used for inputting a clock control signal to the main control chip so that the main control chip controls the display module to display according to the clock control signal, and the alarm module is used for starting automatic dialing alarm after inputting a driving signal output by the main control chip;
wherein, the alarm module includes: the device comprises a rectifying unit, an alarm unit and a power storage unit;
the first end of the rectifying unit is connected to the first end of the telephone line, the second end of the rectifying unit is connected to the second end of the telephone line, the third end of the rectifying unit is connected with the first input end of the alarm unit and the first end of the electricity storage unit, the fourth end of the rectifying unit is connected with the output end of the alarm unit and the second end of the electricity storage unit to the first grounding end, and the rectifying unit is used for rectifying an input signal of the telephone line;
The second input end of the alarm unit is connected to the first control pin of the main control chip, the third input end of the alarm unit is connected to the second control pin of the main control chip, and the alarm unit is used for triggering automatic dialing alarm;
the third end of the electricity storage unit is connected to the output end of the power supply, and the electricity storage unit is used for supplying power to the alarm unit when an alarm is started.
2. The digital clock according to claim 1, wherein the main control chip controls the display module to display clock information after receiving the clock control signal input by the clock control module, and the main control chip inputs an alarm signal to the alarm module after receiving the alarm trigger signal to control the alarm module to start automatic dialing alarm.
3. The digital clock of claim 1, wherein the rectifying unit comprises: the first capacitor, the second capacitor, the rectifier bridge and the pressure-sensitive diode;
one end of the first capacitor is connected with one end of the second capacitor, the negative electrode output end of the rectifier bridge, the output end of the alarm unit and the second end of the electricity storage unit to a first grounding end, and the other end of the first capacitor is connected with the first end of the telephone line, one end of the pressure-sensitive diode and the first alternating current input end of the rectifier bridge;
The other end of the second capacitor is connected with the second end of the telephone line, the other end of the pressure-sensitive diode and the second alternating current input end of the rectifier bridge;
the positive electrode output end of the rectifier bridge, the first input end of the alarm unit and the first end of the electricity storage unit are connected to the power supply output end.
4. The digital clock of claim 1, wherein the alarm unit comprises: the first resistor, the second resistor, the third resistor, the fourth resistor, the fifth resistor, the first electrolytic capacitor, the first selection switch, the first triode, the second triode and the first diode;
one end of the first resistor, one end of the second resistor, the third end of the rectifying unit and the first end of the electricity storage unit are connected to the output end of the power supply, and the other end of the first resistor is connected to the collector electrode of the first triode;
the other end of the second resistor is connected to the collector electrode of the second triode;
the emitter of the first triode is connected with the emitter of the second triode and the positive input end of the first diode, and the base of the first triode is connected with the first control pin of the main control chip and one end of the third resistor;
The reverse output end of the first diode, the fourth end of the rectifying unit and the second end of the electricity storage unit are connected to a first grounding end;
the base electrode of the second triode is connected to the first end of the first selection switch;
the second end of the first selection switch is connected with one end of the fourth resistor and the second control pin of the main control chip, and the third end of the first selection switch is connected with one end of the fifth resistor;
the other end of the third resistor and the other end of the fourth resistor are connected to the output end of the power supply;
the other end of the fifth resistor is connected to one end of the first electrolytic capacitor;
the other end of the first electrolytic capacitor is connected to the data output end.
5. The digital clock of claim 1, wherein the power storage unit comprises: the second diode, the third diode, the sixth resistor, the first switch, the third capacitor, the second electrolytic capacitor and the storage battery pack;
the positive input end of the second diode is connected with the first input end of the alarm unit and the third end of the rectifying unit, and the reverse output end of the second diode is connected to one end of the sixth resistor;
the other end of the sixth resistor, the reverse output end of the third diode, one end of the first switch, one end of the third capacitor and one end of the second electrolytic capacitor are connected to the power supply output end;
The positive input end of the third diode, the fourth end of the rectifying unit, the output end of the alarm unit, the negative input end of the storage battery pack, the other end of the third capacitor and the other end of the second electrolytic capacitor are connected to a first grounding end;
the other end of the first switch is connected to the positive electrode output end of the storage battery pack.
6. The digital clock of claim 1, wherein the clock control module comprises: the system comprises a crystal oscillator unit, a time setting unit, a display setting unit and an alarm triggering unit;
the first output end of the time setting unit is connected to a first pin of the main control chip, the second output end of the time setting unit is connected to a second pin of the main control chip, the third output end of the time setting unit is connected to a third pin of the main control chip, and the time setting unit is used for adjusting the display time of the display module;
the first input end of the crystal oscillator unit is connected to the fourth pin of the main control chip, the second input end of the crystal oscillator unit is connected to the fifth pin of the main control chip, the third input end of the crystal oscillator unit is connected to the sixth pin of the main control chip, and the crystal oscillator unit is used for providing an output clock signal for the main control chip;
The first output end of the display setting unit is connected to a reset pin of the main control chip, the second output end of the display setting unit is connected to a determination pin of the main control chip, the third output end of the display setting unit is connected to a counting pin of the main control chip, the fourth output end of the display setting unit is connected to a setting pin of the main control chip, and the display setting unit is used for setting number information of alarm dialing;
the input end of the alarm triggering unit is connected to the output end of the power supply, the output end of the alarm triggering unit is connected to the detection pin of the main control chip, and the alarm triggering unit is used for triggering alarm control when detecting a trigger signal.
7. The digital clock according to claim 6, wherein the display setting unit includes: the second switch, the third switch, the fourth switch, the fifth switch, the seventh resistor and the third electrolytic capacitor;
one end of the second switch and one end of the third electrolytic capacitor are connected to the output end of the power supply, the other end of the second switch is connected with one end of the seventh resistor, the other end of the third electrolytic capacitor and the first pin of the main control chip, and the second switch is used for controlling the reset of the display module;
the other end of the seventh resistor is connected to the second grounding end;
One end of the third switch and one end of the fourth switch, one end of the fifth switch are connected to a third grounding end, the other end of the third switch is connected to a second pin of the main control chip, and the third switch is used for determining setting time;
the other end of the fourth switch is connected to a third pin of the main control chip, and the fourth switch is used for selecting the display position of the display module;
the other end of the fifth switch is connected to the fourth pin of the main control chip, and the fifth switch is used for setting display information of the display module.
8. The digital clock of claim 6, wherein the alarm triggering unit comprises: eighth resistor, optocoupler and magnetic switch;
one end of the eighth resistor and one end of the magnetically sensitive switch are connected to the output end of the power supply, and the other end of the eighth resistor is connected with the first end of the optocoupler and the detection pin of the main control chip;
the other end of the magnetic induction switch is connected to the second end of the optocoupler;
the third end of the optocoupler is connected to the third ground terminal, and the fourth end is connected to the fourth ground terminal.
9. The digital clock of claim 1, wherein the display module comprises: the display device comprises a plurality of displays, a control switch group, a register unit and a power control unit;
Each display first input end is respectively connected to the output end of the register unit; the second input end of each display is respectively connected to one switch in the control switch group, and the display is used for displaying numbers;
the control system comprises a main control chip, a register unit and a power control unit, wherein a plurality of output pins of the main control chip are connected with the input ends of the control switch unit, the main control chip is connected with the input ends of the register unit, the control switch unit controls the opening of each display, the register unit is used for controlling the display content of each display, and the power control unit is used for supplying power for the main control chip.
10. An alarm control method of a digital clock, comprising:
when the main control chip receives the target detection signal output by the clock control module, a trigger signal of the alarm module is generated;
determining an alarm signal of the alarm module based on the trigger signal;
executing automatic dialing control on the alarm module according to the alarm signal;
wherein the target detection signal is obtained by:
determining a target detection signal output by a clock control module according to the switching state of the magnetic induction switch;
When the switch state of the magnetic induction switch is in an off state, determining that the clock control module outputs a first detection signal, wherein the first detection signal is used for keeping the detection alarm module;
when the switch state of the magnetically sensitive switch is a closed state, the clock control module is determined to output a second detection signal, and the second detection signal is used for triggering the alarm module.
11. The method of claim 10, wherein generating the trigger signal of the alarm module when the master control chip receives the target detection signal output by the clock control module comprises:
when the main control chip receives the first detection signal, generating a suppression signal of the alarm module;
executing a closing alarm control on the alarm module based on the suppression signal;
when the main control chip receives the second detection signal, a dialing pulse signal is output to a first triode in the alarm module, and an alarm sound pulse signal is output to a second triode;
generating a dialing trigger signal of the alarm module according to the dialing pulse signal so as to enable the alarm module to execute off-hook operation;
and generating an alarm sound trigger signal of the alarm module according to the alarm sound pulse signal.
12. The method of claim 11, wherein the determining an alarm signal of the alarm module based on the trigger signal comprises:
determining a dialing control signal corresponding to the first triode based on the dialing trigger signal;
and determining an alarm control signal corresponding to the second triode based on the alarm trigger signal.
13. The method of claim 12, wherein the performing an automatic dialing control on the alarm module according to the alarm signal comprises:
determining a dialing rule of the alarm module;
executing automatic dialing operation by using the dialing control signal based on the dialing rule, and controlling a display module to display dialing information so that the alarm module executes the dialing operation;
controlling the second triode to be conducted according to the alarm sound control signal;
and controlling the alarm module to play alarm audio information based on the conduction state of the second triode so as to enable the alarm module to execute alarm sound operation.
14. The method of claim 13, wherein after performing an automatic dialing control on the alarm module according to the alarm signal, the method further comprises:
Outputting an end signal to the alarm module;
and respectively controlling the first triode and the second triode to keep a disconnected state based on the ending signal so as to enable the alarm module to execute the on-hook operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410012475.6A CN117542162A (en) | 2024-01-04 | 2024-01-04 | Digital clock and alarm control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410012475.6A CN117542162A (en) | 2024-01-04 | 2024-01-04 | Digital clock and alarm control method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117542162A true CN117542162A (en) | 2024-02-09 |
Family
ID=89784578
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410012475.6A Pending CN117542162A (en) | 2024-01-04 | 2024-01-04 | Digital clock and alarm control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117542162A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4461927A (en) * | 1983-03-03 | 1984-07-24 | Olson Ronald E | Automatic dialing and alarm system |
CN2072752U (en) * | 1990-06-18 | 1991-03-06 | 李振宇 | Multipath triggering telephone alarm device |
CN1845519A (en) * | 2006-03-23 | 2006-10-11 | 湖南大学 | Integrative intelligent system of digitization community |
CN102982638A (en) * | 2012-11-27 | 2013-03-20 | 东兴市观福古典红木家具有限公司 | Anti-theft system |
TW201346849A (en) * | 2012-05-03 | 2013-11-16 | Ic Plus Corp | Home terminal for remote monitoring system |
CN103617710A (en) * | 2013-12-06 | 2014-03-05 | 文江湖 | Intelligent remote alarm system and intelligent remote alarm method |
CN112612251A (en) * | 2020-12-08 | 2021-04-06 | 珠海格力智能装备有限公司 | Signal processing method, circuit and device |
-
2024
- 2024-01-04 CN CN202410012475.6A patent/CN117542162A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4461927A (en) * | 1983-03-03 | 1984-07-24 | Olson Ronald E | Automatic dialing and alarm system |
CN2072752U (en) * | 1990-06-18 | 1991-03-06 | 李振宇 | Multipath triggering telephone alarm device |
CN1845519A (en) * | 2006-03-23 | 2006-10-11 | 湖南大学 | Integrative intelligent system of digitization community |
TW201346849A (en) * | 2012-05-03 | 2013-11-16 | Ic Plus Corp | Home terminal for remote monitoring system |
CN102982638A (en) * | 2012-11-27 | 2013-03-20 | 东兴市观福古典红木家具有限公司 | Anti-theft system |
CN103617710A (en) * | 2013-12-06 | 2014-03-05 | 文江湖 | Intelligent remote alarm system and intelligent remote alarm method |
CN112612251A (en) * | 2020-12-08 | 2021-04-06 | 珠海格力智能装备有限公司 | Signal processing method, circuit and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100389541C (en) | Special battery reserve of portable electronic devices for emergency use | |
US5680027A (en) | Battery pack including internal capacity monitor for monitoring groups of battery cells | |
CN1042478C (en) | Adaptive battery charging system | |
US20180208066A1 (en) | Method, battery management system and vehicle for charging awakening | |
EP0621649B1 (en) | Battery pack | |
CN108132401A (en) | Charge abnormal detection method, device, storage medium and mobile terminal | |
CN110460930B (en) | Earphone control method and circuit and intelligent wrist-worn device | |
CN100469154C (en) | Remote-controllable time-based power control apparatus | |
CN203434652U (en) | Medical device based on wireless charging | |
KR20100030473A (en) | A combination remote controller which has lce and touch screen together | |
CN117542162A (en) | Digital clock and alarm control method | |
CN210471211U (en) | Intelligence bracelet with test electric function | |
CN204720712U (en) | Control circuit of intelligent power strip and intelligent power strip | |
CN113687711B (en) | Terminal wake-up circuit and wake-up method | |
CN109950957B (en) | Charging cabin, bluetooth headset and Bluetooth headset charging system | |
JP2003132470A (en) | Real time clock for electrical equipment | |
JP3070715B2 (en) | Wireless switch | |
EP2012512A2 (en) | Apparatus and method for using alarm function in portable terminal | |
CN108091026B (en) | Two-wire access control system | |
CN105139067A (en) | Bluetooth watch with RFID function | |
CN216731908U (en) | Application system of integrated shaver driving chip and shaver | |
CN210006176U (en) | alarm device | |
CN214623838U (en) | Distance sensing bracelet | |
CN211630192U (en) | Triggering and informing device for storage management | |
RU194625U1 (en) | DEVICE FOR INDIVIDUAL APPOINTMENT OF A PARTICIPANT OF MASS PUBLIC EVENT |
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 |