Alarm method, device and system with alarm confirmation function
Patent Information
- Application Number
- CN202410855532.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-08-23
Smart Images

Figure CN118538009A
Abstract
Description
Technical Field
[0001] The present invention is widely used in the field of measurement, control and alarm, especially in the field of monitoring and alarm of breeding, machine room, pump station and the like. Background Art
[0002] In the field of measurement, control and alarm, especially in the breeding industry, such as large pig farms, chicken farms, fish farms, etc., there are strict requirements on many parameters such as temperature, humidity, electricity consumption, oxygen content, etc. Once an accident affecting these parameters occurs, it must be dealt with immediately and effectively, otherwise it will cause immeasurable losses to the owner's property. For this reason, these breeding industries generally have PLC, touch screen, single-chip microcomputer, PC and other monitoring means on site, which will activate the alarm when the parameters exceed the standard. After the maintenance engineer finds the alarm, he will go to troubleshoot and repair the fault; Most existing alarm methods are on-site sound and light alarms, which requires engineers to monitor day and night, wasting manpower and financial resources; For large-scale farms, there are many engineers responsible for equipment monitoring, with different professional expertise, which makes it inconvenient to quickly and effectively dispatch when a fault occurs: Some engineers are busy handling other alarms, but a new alarm occurs in other places. They cannot rush to the scene immediately and need other engineers to handle it. At this time, a method is needed to notify engineers of abnormal alarm information detected by the PLC, touch screen and other monitoring equipment on site through text messages and phone calls for processing; Although some existing methods can also achieve SMS and phone alarms, the processing methods are unscientific. Most of them are flood-like alarms. After the alarm is sent out, both those related to the fault and those not related to it will receive SMS and phone alarms, resulting in a waste of fees and harassment of irrelevant personnel: Who handled the specific fault in the end? Was the fault eliminated? Who was responsible after the accident? There is no way to know afterwards, causing confusion in management and a huge threat to property safety; Or some alarm solutions use the Internet to send SMS and phone alarms through third-party server software, which also have the above-mentioned disadvantages. When these third-party software alarms, they will send the alarm information to all engineers at once and call everyone, resulting in a waste of fees and harassment to irrelevant personnel. For an alarm incident, it is possible that everyone will go to the scene to investigate, or it is possible that no one will pay attention, resulting in buck-passing and irresponsible phenomena. Moreover, since it relies on third-party server software, enterprises need to pay a lot of service fees every year, and their fate is in the hands of others. There will be security risks through third-party servers, and corporate data is prone to leakage, which brings risks to business operations. Summary of the invention
[0003] In view of this, an alarm method, device and system with an alarm confirmation function are provided. In the technical solution, a serial communication interface (2) is connected to a serial communication port, such as 232 or 485, of a user device PLC, a touch screen, and a PC running configuration software, and the like, and a SMS and telephone alarm is triggered using the Modbus RTU communication protocol widely supported by these devices; Support up to 128 alarm channels (expandable), each alarm channel can set the alarm content and each alarm channel can set 1 to 10 alarm recipient numbers (expandable); The invention uses ordinary telephone SIM cards to send alarm information via SMS and telephone alarm, and does not communicate with any third-party server software, and does not need to be connected to any third-party server software; The system can be used independently. Apart from the basic communication package, it does not incur any third-party service fees, which greatly saves costs, makes it convenient for users to renew their subscriptions, and increases data security.
[0004] The detailed workflow of this technical solution is combined with the attached Figure 3 To elaborate, the noun (recipient) in the present technical solution refers to the target recipient of the text message sent after the alarm and the person called after the telephone alarm. The noun (recipient) will be replaced by other names (engineer, electrician, Zhang San, Li Si, Wang Wu, team leader, superior, etc.) in the following implementation examples for a more vivid and specific introduction of the case. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] Figure 1 It is a schematic diagram of the hardware structure of the present invention.
[0006] Figure 2 It is an internal storage structure of an alarm channel in the storage device (2) of the present invention.
[0007] Figure 3 It is a detailed workflow diagram of the present invention.
[0008] Figure 4 It is a flow chart of an immediate alarm mode embodiment of the present invention.
[0009] Figure 5 It is a flow chart of an embodiment of a 60-second delayed alarm of the present invention.
[0010] Figure 6 This is an embodiment of the present invention, and focuses on further elaborating the alarm confirmation part. DETAILED DESCRIPTION
[0011] Attached Figure 3 This is a more detailed workflow of the present invention. According to this workflow, the working steps are summarized as follows: S1: the serial communication interface (2) collects a serial digital stream sent by a user device connected thereto, and sends it to the microprocessor (1), and then proceeds to step S2; The user equipment can be a PLC, an industrial touch screen, a PC running industrial configuration software, etc. The user equipment generally has a serial communication interface such as 485, 232 or a network port to 485, 232, etc. And support modbus rtu communication protocol, this technical solution uses function code 06 of modbus rtu protocol (other function codes may also be used) to communicate with the user equipment; S2: The microprocessor (1) determines the type of the received serial digital stream. If it is an alarm digital stream, it proceeds to step S3; if it is a configuration parameter digital stream, it writes it into the memory (2) and then returns to step S1; if it is other data, it is discarded and returns to step S1; The alarm digital stream represents a string of modbus rtu protocol data stream, and its byte order is: 01 06 register address high byte register address low byte 00 09 crc check code low byte crc check code high byte; 01 is the address of the user device, and the address can be changed; 06 is the function code; The high and low bytes of the register address represent the alarm channel number: when the user device alarms, the corresponding alarm is matched with the alarm channel number preset in the memory (2). The default alarm channel number supports a total of 128 channels from 0 to 127; the two bytes 00 09 represent an alarm, and if it is 00 06, it means to release the alarm; S3: The microprocessor determines whether the delay time between the current alarm and the previous alarm has expired. If it has expired, the alarm mode is determined: if it is an immediate alarm mode (312), the process proceeds to step S4; if it is a 60-second delay centralized alarm mode (311), the process determines whether the 60 seconds have expired. If so, the process proceeds to step S4; if not, the process proceeds to step S2; S4: If it is the immediate alarm mode (312), then the alarm channel number is taken out from the high and low bytes of the register of the byte sequence received by the microprocessor (1) in step S2, and the alarm parameters of the corresponding alarm channel are searched in the memory (2) according to the alarm channel number: alarm content, number of recipients, name, telephone number, number of alarms, alarm mode, alarm delay time, etc., and the process proceeds to step S5; if it is the 60-second delay concentrated alarm mode (311), then the alarm channel numbers in the high and low bytes of all the byte sequence registers received by the microprocessor (1) within 60 seconds are taken out. And according to the channel number to remove the alarm content of each channel, and combine it into an alarm content, further remove the second alarm channel in addition to the alarm content of other related alarm parameters: the number of recipients, name, phone number, alarm number, alarm mode, alarm delay time, etc., and proceeds to step S5; S5: the microprocessor (1) sends the alarm content to the first recipient via the 4G communication unit (7) in a preset order of recipients according to the alarm parameters retrieved in step S4, and makes an alarm call to the first recipient; the first recipient can choose to answer or reject the call. If the first recipient answers the call, the process proceeds to step S6. If the first recipient refuses the call, the process continues to send an alarm text message to the second recipient and make a call. The process continues in this order, until a recipient answers the alarm call. S6: After the recipient answers the alarm call, the microprocessor (1) plays the alarm content to the recipient through the 4G communication unit (7) and the TTS voice playback unit (6). After the recipient speaks the agreed keyword through voice, it is sent by the 4G communication unit (7) to the voice recognition unit (8) for recognition. After the voice is recognized or the recipient presses a mobile phone button to confirm, the system stops calling the subsequent preset recipient and only sends the alarm information and the name of the recipient who has confirmed the alarm to the subsequent recipient via SMS, and then enters step S1; In step S6, the agreed keywords refer to the keywords written into the speech recognition unit (8) in advance. The keywords can be changed as needed, but the changed keywords need to be told to each of the recipients; In the above steps, the system records the handling of the alarm by each recipient: whether to pick up the phone, whether to hang up the phone, whether to confirm by voice, whether to confirm by key, and whether the confirmer handles the alarm. The record can be retrieved by the user device for management to view at any time, which is convenient for performance appraisal and to clarify responsibilities after problems occur, and to prevent buck-passing and wrangling. After the recipient who confirmed the alarm has eliminated the alarm fault, the microprocessor (1) will send a text message notification to each recipient through the 4G communication unit (7) to inform them that the alarm has been resolved.
[0012] Figure 2 A sequence of parameters preset for one of the alarm channels in the memory (2) is, from top to bottom, alarm content (201), recipient 1 (202), recipient 2 (203), recipient 9 (204), recipient 10 (205); The memory (1) can store 128 alarm channel preset parameters by default, numbered from 0 to 127 (expandable), and each alarm channel in the memory (1) can preset a maximum of 10 (expandable) recipients: Channel 0 and channel 1 are fixedly allocated to the parameters that need to be retrieved when the serial communication interface (2) is disconnected from the serial interface communication of the user equipment, channel 2 is fixedly allocated to the recipient parameters that need to be retrieved when the 60-second delay centralized alarm mode (311) is in effect, and other alarm channels from 3 to 127 can be freely allocated by the user according to needs.
[0013] according to Figure 2 The alarm parameters of each of the 128 alarm channels include: alarm content, recipient name, recipient phone number, alarm mode, alarm frequency, alarm delay time, etc. The alarm modes are divided into three types: SMS only mode, phone call only mode, and SMS and phone alarm mode; the alarm frequency is the alarm frequency of each number; the alarm delay time is the alarm delay time between each number; the parameters can be preset by the upper computer software of the present invention, and the parameters are stored in the memory (2). The memory (9) is an i2c bus memory, and the data is not lost when the power is off.
[0014] The present technical solution is further described in detail below through two embodiments and in combination with the accompanying drawings: the alarm of the present invention has two modes: an immediate alarm mode (312) and a 60-second delayed centralized alarm mode (311). The immediate alarm mode (312) is suitable for major alarm events. When an alarm occurs, it must be issued immediately to notify the recipient; the 60-second delayed centralized alarm mode (312) does not immediately alarm when an alarm event occurs, but delays for 60 seconds. If there are other alarms during this period, they will be processed centrally after the 60-second delay. The advantage is that it saves manpower and material resources and improves efficiency.
[0015] Embodiment 1, in combination with Figure 4 , introduce the immediate alarm mode in the present invention, the steps are: S1: the serial communication interface (2) collects a serial digital stream sent by a user device connected thereto, assuming that it is: 01 06 00 02 00 00 28 0A (hexadecimal data format), and the microprocessor (1) determines that the digital stream is a modbus rtu protocol digital stream according to the second byte 06 of the digital stream; The 4th byte is 02, and the 6th byte is 00, which is determined to be an immediate alarm mode (312); further, the serial communication interface (2) collects the serial digital stream sent by the user equipment connected thereto, for example: 01 06 00 03 0009 B9 CC (hexadecimal data format) and sends it to the microprocessor (1), and enters step S2; S2: The microprocessor (1) determines that the digital stream is a modbus rtu protocol digital stream according to the second byte 06; the sixth byte is 09, which is determined to be an alarm digital stream; according to the fourth byte, the alarm channel 03 is taken out and it is an immediate alarm mode (312); the microprocessor (1) takes out the alarm content corresponding to the alarm channel in the memory unit (9), for example: the temperature of pig house 3 is abnormal (402); further takes out the four recipients corresponding to the alarm channel 03: Zhang San (403), Li Si (404), Wang Wu (405), and the person in charge (406), as well as their corresponding telephone numbers, alarm methods, alarm times, alarm delay time, etc.; and proceeds to step S3; S3: The microprocessor (1) uses the 4G communication unit (7) to send a text message containing the alarm content to Zhang San (403) according to the alarm parameters retrieved in step S2 and in the order preset by the four recipients, and dials the alarm number for him; he may answer the call or refuse. If he answers, the system proceeds to step S4. If not, the system calls him a second and third time according to the number of alarms to remind him (Note: except for the first text message notification, no text messages will be sent for the second and third times, only calls will be made). If he still does not answer the call, the system continues to send a text message containing the alarm content to the second recipient, Li Si (404), and dials the phone. He may also answer the call or refuse. If he answers, the system proceeds to step S4. If not, The system will call the person a second time and a third time according to the number of alarms to remind him. If he still does not answer, the system will continue the same operation to Wang Wu (405) and the person in charge (406) until the recipient answers the alarm call and enter step S4. If the recipient does not answer the alarm call during the entire alarm process, the system will enter step S1 after a preset alarm time delay. S4: If one of the recipients, Li Si (404), picks up the phone to answer the alarm call, the microprocessor (1) will play the voice of the alarm content to him through the TTS voice playback module (6). After Li Si speaks the agreed keywords and is correctly recognized by the voice recognition unit (8) or presses a key to confirm, the system automatically hangs up; the system will stop calling the following Wang Wu (405) and the person in charge (406), and only send the alarm information and the name of Li Si (404) who has confirmed the alarm to the following Wang Wu (405) and the person in charge (406) via text message. The content of the text message is such as: The temperature in pig house 3 is abnormal, Li Si has confirmed it; after Li Si (404) handles the alarm, the system will automatically send an alarm cancellation text message to everyone, and finally record each recipient's handling of the alarm: whether to answer the call, whether to hang up, whether to confirm by voice, whether to confirm by key, whether to handle the alarm, etc., so that this information can be read through user devices, such as computers or industrial control touch screens, so that leaders can review employees' performance afterwards or clarify the responsible person when an accident occurs, prevent buck-passing, shirking of responsibility, etc., and strengthen employees' sense of responsibility.
[0016] Embodiment 2, in combination with Figure 5 , introduce the 60-second delay centralized alarm mode (311) of the present invention, the steps are: S1: the serial communication interface (2) collects a serial digital stream sent by a user device connected thereto, for example, 01 06 00 02 00 01 E9 CA (hexadecimal data format), and the microprocessor (1) determines that the digital stream is a modbus rtu protocol digital stream according to the second byte 06 of the digital stream; The fourth byte is 02, and the sixth byte is 01, which is determined to be a 60-second delay centralized alarm mode (311); further, the serial communication interface (2) collects the serial digital stream sent by the user equipment connected thereto, for example: 01 06 0003 00 09 B9 CC (hexadecimal data format) and sends it to the microprocessor (1), and enters step S2; S2: The microprocessor (1) determines that the digital stream is a modbus rtu protocol digital stream according to the second byte 06; the sixth byte is 09, which is determined to be an alarm digital stream; the alarm channel 03 is taken out according to the fourth byte, and according to step S1, because the current alarm alarm mode is a 60-second delay centralized alarm mode (311), a delay of 60 seconds is required, and the process goes to step S1. If the delay of 60 seconds expires, the process goes to step S3; S3: During the 60-second delay, if the microprocessor (1) receives a second serial digital stream data packet: 01 06 00 3a 00 09 B9 CC (hexadecimal data format), the second byte 06 of the digital stream is judged to be a modbusrtu protocol digital stream, the sixth byte is 09, and it is determined to be an alarm digital stream, the fourth byte 3a (hexadecimal data) corresponds to the alarm channel number 58, and the process proceeds to step S4; S4: The microprocessor (1) receives two serial alarm data streams within 60 seconds, the alarm channels are 03 and 58 (501), and the alarm contents corresponding to the two channels in the memory (9) are: abnormal temperature in pig house 3, power outage in pig house 6 (502), because it is a 60-second delay centralized alarm mode (311), then the microprocessor (1) takes out the preset recipient information (503) corresponding to the alarm channel 2 in the memory unit (9): there are 4 recipients, electrician 1 (504), electrician 2 (505), electrician 3 (506), electrician 4 (507); and proceeds to step S5; S5: The microprocessor (1) uses the 4G communication unit (7) to send a text message containing the alarm content to the electrician 1 (504) and dial the alarm number according to the alarm parameters taken out in step S4 and the order of the four recipients; the electrician may answer the call or refuse it. If he does, the process proceeds to step S6. If not, the system will not call the electrician because there is only one alarm. The system will continue to send a text message containing the alarm content to the second electrician 2 (505) and dial the phone. The electrician may answer the call or refuse it. If he does, the process proceeds to step S6. If not, the system will continue the same operation to the electrician 3 (506) and the electrician 4 (507) until an electrician answers the alarm call and the process proceeds to step S6. If no electrician answers the alarm call during the entire alarm process, the process proceeds to step S1 after a preset alarm delay time. S6: If one of the electricians, Electrician 2 (505), picks up the phone to answer the alarm call, the microprocessor (1) will play the voice of the alarm content to him through the TTS voice playback module (6). After Electrician 2 speaks the agreed keywords and is correctly recognized by the voice recognition unit (8) or presses a key to confirm, the system automatically hangs up; the system will stop calling the following Electrician 3 (505) and Electrician 4 (506), and only send the alarm information and the name of Electrician 2 (504) who has confirmed the alarm to the following Electrician 3 (505) and Electrician 4 (506) via text message. The content of the text message is such as: the temperature of pig house 3 is abnormal, the power outage in pig house 6, and Electrician 2 has confirmed it.
[0017] Further, Example 3 is given again, and combined with Figure 6 , only the alarm part is introduced: Figure 6 In the example, if the system has obtained the alarm content + alarm time (601) of a certain alarm channel, and if the alarm channel has four preset engineers: Engineer 1 (605), Engineer 2 (606), Engineer 3 (607), Engineer 4 (608), a team leader (609) and a superior (610), the four engineers handle the alarm as follows: Engineer 1 (605) did not answer the call because he was busy, Engineer 2 (606) did not answer the call because the phone was out of battery, Engineer 3 (607), Because it was a day off today and he was not at work, he was also on shift and did not answer the phone. Only Engineer 4 (608) answered the phone and confirmed the alarm by phone or by pressing a button. Then the system will no longer call the team leader (609) and the superior (609) behind him to confirm the alarm, but will only send them a new text message (603) with the alarm content + alarm time + the name of the alarm confirmer Engineer 4 (608). After Engineer 4 (608) eliminates the fault, the system will send text messages to the four engineers, team leader and superior respectively to inform them that the fault has been eliminated.
[0018] This invention can greatly save manpower and maintenance costs, and can effectively prevent employees from being lazy, prevent alarms from being ignored, and prevent accidents from happening afterwards where there is no accountability, and prevent mutual buck-passing and wrangling.
[0019] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A method, device and system for SMS and telephone alarm with alarm confirmation function, characterized in that: The following steps are involved: S1: The serial communication interface (2) collects the serial alarm digital stream sent by the user equipment connected thereto and sends it to the microprocessor (1); S2: The microprocessor (1) parses the alarm channel number from the serial alarm digital stream, and according to the alarm channel number, obtains the alarm content, the number of recipients and their telephone numbers and other parameters preset in the memory (9) of the channel, and proceeds to step S3; S3: The microprocessor (1) sequentially sends the alarm content to the first recipient via the 4G communication unit (7) in the order of the recipients preset in the memory (9) of the channel, and calls the first recipient to answer the alarm; if the first recipient answers the call, the process proceeds to step S4; if not, the process sends an alarm message to the second recipient and calls the second recipient, and so on, in order to send text messages and make calls until the recipient answers the alarm call; the process proceeds to step S4; if no one answers the call during the alarm process, the process proceeds to step S1; S4: After one of the recipients answers the alarm call, the microprocessor (1) will play the voice of the alarm content preset in the storage unit (9) through the 4G communication unit (7) and the TTS voice playback module (6). After the recipient hears the alarm or learns about the situation through the alarm text message received, the recipient speaks a confirmation keyword voice through the phone. After the voice is received by the 4G communication unit (7), it is correctly recognized by the voice recognition unit (8), or confirmed by pressing the phone button. The system will stop calling the subsequent preset recipients and only send the alarm information and the name of the recipient who has confirmed the alarm to the subsequent recipients through text messages, and enter step S1.
2. In step S4 of claim 1, the receiver who confirms the alarm eliminates the alarm fault, characterized in that: The microprocessor (1) will send a text message to each recipient via the 4G communication unit (7) to inform them that the alarm has been lifted.
3. The entire alarm process of claim 1 is characterized in that: The system will record each recipient's handling of the alarm: whether to pick up the phone, hang up, voice confirmation, key confirmation, whether the confirmer has handled the alarm, etc., so that the user device can read it at any time.
4. The alarm channel sequence number as claimed in claim 1, characterized in that: 1 to 128 channels can be preset, and each channel can be preset with parameters through the serial communication interface (2) through the matching host computer software, including: alarm content, recipient, recipient number, alarm mode, alarm number, delay time between alarms, etc.; the number of recipients preset for each alarm channel can be from 1 to 10 people; the preset alarm parameters are all stored in the memory unit (9), and the data will not be lost after power failure.
5. In step S1 of claim 1, the user equipment is characterized in that: It can be a PLC, industrial touch screen, PC running configuration software, single-chip controller and other devices with serial communication ports, such as 485, 232, etc.; the serial alarm digital stream is characterized in that it can be in accordance with standard communication protocols such as Modbus RTU protocol, or a custom protocol.
6. In step S1 of claim 1, the digital stream received by the serial communication interface (2) is characterized in that If it is a digital stream of configuration parameters of the alarm channel, the data is written into the memory (9).
7. In steps S2 and S3 of claim 1, it is characterized in that: There are two alarm modes: an immediate alarm mode (312) and a 60-second delayed centralized alarm mode (311); if it is the immediate alarm mode, the microprocessor (1) obtains the relevant alarm parameters of the channel in the memory (9) according to the serial number of the alarm channel parsed from the received alarm digital stream: alarm content, number of recipients, names, telephone numbers, alarm methods, number of alarms, delay time, etc.; if it is the 60-second delayed centralized alarm mode, it is characterized in that the alarm contents of all alarm channels are taken out and combined into one message, and other relevant alarm parameters of the recipients other than the alarm content of the second alarm channel are taken out: number of recipients, names, numbers, etc.
8. In step S1 of claim 1, when the microprocessor (1) recognizes the serial alarm digital stream, it is characterized in that: At the same time, the output switch alarm linkage unit (3) can trigger a local sound and light alarm so that nearby personnel can be notified more promptly to troubleshoot the fault.
9. The alarm text message in steps S3 and S4 of claim 1 is characterized in that: In addition to the alarm content, it also contains information such as the current alarm time, the alarm time being obtained through a time counting unit (4), and the time can be automatically calibrated through a Beidou positioning unit (5).
10. System power supply, characterized in that, The power supply adopts a dual power supply mode of a mains power supply and a battery switching circuit (10). After the mains power supply unit (11) loses power, the system will automatically switch to the back battery power supply unit (12) for power supply, and send a mains power failure alarm text message to the preset 0th channel recipient in sequence and call an alarm phone.
