CN112469065A - Keep-alive detection method for 5G short message all-in-one machine - Google Patents
Keep-alive detection method for 5G short message all-in-one machine Download PDFInfo
- Publication number
- CN112469065A CN112469065A CN202011532722.3A CN202011532722A CN112469065A CN 112469065 A CN112469065 A CN 112469065A CN 202011532722 A CN202011532722 A CN 202011532722A CN 112469065 A CN112469065 A CN 112469065A
- Authority
- CN
- China
- Prior art keywords
- thread
- monitoring
- equipment
- short message
- detection method
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/18—Service support devices; Network management devices
- H04W88/184—Messaging devices, e.g. message centre
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides a keep-alive detection method of a 5G short message all-in-one machine, which comprises the following steps: after the system is started, a monitoring thread is added besides the normal working thread, the monitoring thread is responsible for monitoring the state of the equipment, when the equipment runs abnormally, system information is sent, the system realizes resetting processing again, and the effect of keeping alive is achieved. The method can effectively avoid the problem of untimely short message receiving and sending caused by abnormal stop of the short message module, not only can ensure the normal operation of the equipment, but also can greatly reduce the labor cost of equipment maintenance.
Description
Technical Field
The invention relates to the field of short message communication, in particular to a keep-alive detection method of a 5G short message all-in-one machine.
Background
At present, a mobile phone is the most common portable communication tool applied by people, short messages also become the most direct and effective communication mode, and compared with the short message receiving and sending of a mobile phone, a short message sending and receiving integrated machine is quicker in short message receiving and sending, easier to operate, higher in safety and reliability and more convenient in data storage, so that the short message sending and receiving integrated machine is widely applied to aspects of company meeting notification, natural disaster early warning, dynamic code sending, data acquisition, hydrology monitoring, disaster relief and emergency rescue and the like.
However, when the short message module in the short message all-in-one machine stops working due to static electricity, current fluctuation, firmware bugs and other factors, the short message all-in-one machine may be deployed in an unattended machine room or other remote places due to some special requirements, and if the module cannot be found to stop working and be recovered to be normal in time, the receiving and sending of the short message are delayed, so that information acquisition or notification sending cannot be performed in time.
Therefore, when the working state of the equipment module is abnormal, it is very important that the system can recover the normal working state as soon as possible.
The normal work flow of the system comprises the following steps: and starting the system, performing module initialization operation through the serial port connection module, and starting a normal working thread (receiving a user instruction to send a short message, reading the module short message and informing a user).
The system software and the module communicate through AT commands, and whether the working state of the module is normal can be judged by sending the mode that the AT obtains the OK response. There are several situations where the AT command waits for a return: and returning OK in time, returning in time but not OK, not returning after overtime, and other unknown exceptions. Only timely return OK is in the normal state.
In normal work, the operation of the serial port belongs to an exclusive mode, and the operation can be performed only in one process.
Disclosure of Invention
In order to overcome the defects and shortcomings in the background technology, the invention provides a keep-alive detection method of a 5G short message all-in-one machine. The method can effectively avoid the problem of untimely short message receiving and sending caused by abnormal stop of the short message module, not only can ensure the normal operation of the equipment, but also can greatly reduce the labor cost of equipment maintenance.
The solution of the invention is as follows: after the system is started, a monitoring thread is added besides the normal working thread, the monitoring thread is responsible for monitoring the state of the equipment, when the equipment runs abnormally, system information is sent, the system realizes resetting processing again, and the effect of keeping alive is achieved.
Drawings
FIG. 1 is a flow chart of the whole system
FIG. 2 is a flow chart of the operation of monitoring threads
Detailed Description
The following further describes the embodiments of the present invention with reference to the attached drawings
(1) A module monitoring thread is added outside the normal working thread of the system and is responsible for monitoring whether the working state of the equipment is normal or not;
(2) the monitoring thread and the normal working thread run simultaneously, an AT instruction is sent to the 5G module through the serial port, and a return value is obtained to judge whether the module works normally or not;
(3) the monitoring thread and the normal working thread are synchronized by using a software synchronization lock, so that the exclusivity of a serial port can be kept, and the interference to the normal working thread is avoided;
(4) monitoring by the monitoring thread in a timing detection mode, sending an AT instruction AT a fixed time, acquiring a corresponding return value, identifying a state which is not returned with OK in time as an abnormal state, and considering that the system runs abnormally once the abnormal state continuously appears for a limited number of times;
(5) when the monitoring thread judges that the equipment is abnormal, sending a global notification message to the system, and notifying the system to perform reset processing;
(6) and after the system obtains the reset message, closing the existing thread and carrying out initialization reset operation again.
Claims (4)
1. A keep-alive detection method of a 5G short message all-in-one machine is characterized by comprising the following steps: after the system is started, a monitoring thread is added outside a normal working thread, the monitoring thread is responsible for monitoring the state of the equipment, when the equipment runs abnormally, system information is sent, the system realizes resetting processing again, and the effect of keeping alive is achieved:
(1) a module monitoring thread is added outside the normal working thread of the system and is responsible for monitoring whether the working state of the equipment is normal or not;
(2) the monitoring thread and the normal working thread run simultaneously, and whether the module works normally is judged by instructing the serial port AT and obtaining an OK return as a module;
(3) the monitoring thread and the normal working thread are synchronized by using a software synchronization lock, so that the exclusivity of a serial port can be kept, and the interference to the normal working thread is avoided;
(4) monitoring by the monitoring thread in a timing detection mode, carrying out abnormal judgment on the state of not timely returning OK, and considering that the system runs abnormally once the abnormal state continuously occurs for a limited number of times;
(5) when the monitoring thread judges that the equipment is abnormal, sending a global notification message to the system, and notifying the system to perform reset processing;
(6) and after the system obtains the reset message, closing the existing thread and carrying out initialization reset operation again.
2. The detection method according to claim 1, characterized in that: and using the AT instruction and obtaining the OK return as the judgment basis for the normal module.
3. The detection method according to claim 1, characterized in that: and the monitoring thread and the main thread adopt a synchronous lock mode to realize the sharing operation of exclusive equipment.
4. The detection method according to claim 1, characterized in that: the monitoring thread sets a mode of limiting times, and misjudgment caused by accidental conditions is avoided.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011532722.3A CN112469065A (en) | 2020-12-23 | 2020-12-23 | Keep-alive detection method for 5G short message all-in-one machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011532722.3A CN112469065A (en) | 2020-12-23 | 2020-12-23 | Keep-alive detection method for 5G short message all-in-one machine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112469065A true CN112469065A (en) | 2021-03-09 |
Family
ID=74803329
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011532722.3A Pending CN112469065A (en) | 2020-12-23 | 2020-12-23 | Keep-alive detection method for 5G short message all-in-one machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112469065A (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20030058144A (en) * | 2001-12-29 | 2003-07-07 | 엘지엔시스(주) | Process obstacle lookout method and recovery method for information communication |
CN1808386A (en) * | 2005-01-18 | 2006-07-26 | 华为技术有限公司 | Method for processing multi-thread, multi-task and multi-processor |
JP2008003770A (en) * | 2006-06-21 | 2008-01-10 | Denso Wave Inc | Mobile terminal |
CN101374080A (en) * | 2007-08-24 | 2009-02-25 | 上海合胜计算机科技有限公司 | Method for monitoring short message gateway server |
CN101374081A (en) * | 2007-08-24 | 2009-02-25 | 上海合胜计算机科技有限公司 | Easy automatic monitoring method for Domino server |
CN101409887A (en) * | 2008-01-22 | 2009-04-15 | 深圳国人通信有限公司 | Method for resolving wireless modem shamming dead |
CN101621734A (en) * | 2008-07-01 | 2010-01-06 | 鸿富锦精密工业(深圳)有限公司 | Abnormal occurrence notification system and method therefor in case of uninterruptible power source |
CN101695174A (en) * | 2009-10-22 | 2010-04-14 | 中兴通讯股份有限公司 | System and method for monitoring short message centre |
CN102209326A (en) * | 2011-05-20 | 2011-10-05 | 北京中研瑞丰信息技术研究所(有限合伙) | Malicious behavior detection method and system based on smartphone radio interface layer |
CN108255585A (en) * | 2016-12-28 | 2018-07-06 | 北京奇虎科技有限公司 | SDK exception controls and application program operation method, device and its equipment |
JP2019028593A (en) * | 2017-07-27 | 2019-02-21 | キヤノン株式会社 | System, control method of system, information processor, control method of information processor, and program |
CN109542599A (en) * | 2018-11-08 | 2019-03-29 | 南京理工大学 | A kind of embedded OS thread monitoring method |
CN111106955A (en) * | 2019-12-17 | 2020-05-05 | 国网智能科技股份有限公司 | Intelligent station communication gateway machine and communication method |
-
2020
- 2020-12-23 CN CN202011532722.3A patent/CN112469065A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20030058144A (en) * | 2001-12-29 | 2003-07-07 | 엘지엔시스(주) | Process obstacle lookout method and recovery method for information communication |
CN1808386A (en) * | 2005-01-18 | 2006-07-26 | 华为技术有限公司 | Method for processing multi-thread, multi-task and multi-processor |
JP2008003770A (en) * | 2006-06-21 | 2008-01-10 | Denso Wave Inc | Mobile terminal |
CN101374080A (en) * | 2007-08-24 | 2009-02-25 | 上海合胜计算机科技有限公司 | Method for monitoring short message gateway server |
CN101374081A (en) * | 2007-08-24 | 2009-02-25 | 上海合胜计算机科技有限公司 | Easy automatic monitoring method for Domino server |
CN101409887A (en) * | 2008-01-22 | 2009-04-15 | 深圳国人通信有限公司 | Method for resolving wireless modem shamming dead |
CN101621734A (en) * | 2008-07-01 | 2010-01-06 | 鸿富锦精密工业(深圳)有限公司 | Abnormal occurrence notification system and method therefor in case of uninterruptible power source |
CN101695174A (en) * | 2009-10-22 | 2010-04-14 | 中兴通讯股份有限公司 | System and method for monitoring short message centre |
CN102209326A (en) * | 2011-05-20 | 2011-10-05 | 北京中研瑞丰信息技术研究所(有限合伙) | Malicious behavior detection method and system based on smartphone radio interface layer |
CN108255585A (en) * | 2016-12-28 | 2018-07-06 | 北京奇虎科技有限公司 | SDK exception controls and application program operation method, device and its equipment |
JP2019028593A (en) * | 2017-07-27 | 2019-02-21 | キヤノン株式会社 | System, control method of system, information processor, control method of information processor, and program |
CN109542599A (en) * | 2018-11-08 | 2019-03-29 | 南京理工大学 | A kind of embedded OS thread monitoring method |
CN111106955A (en) * | 2019-12-17 | 2020-05-05 | 国网智能科技股份有限公司 | Intelligent station communication gateway machine and communication method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106946110B (en) | A kind of elevator malfunction failure monitoring system and method | |
CN101788936B (en) | Snapshot backup and restoration method and device when in running of mobile terminal | |
CN104038373B (en) | information early warning and self-repairing system and method | |
CN202995357U (en) | Equipment indicating lamp detecting and alarming device | |
CN104270533A (en) | Event reminding method and device | |
CN111858176A (en) | Remote monitoring fault self-healing system and method | |
CN104599428A (en) | Intelligent fire disaster alarming system of laboratory | |
CN104394194A (en) | Cloud system operation and maintenance monitoring method and system based on platform-as-a-service (PaaS) platform | |
CN105550012A (en) | Method for custom recovery of malfunctioning virtual machine | |
CN116107819A (en) | Server start-up fault detection system, method, device and medium | |
CN105550057A (en) | Embedded software system fault detecting and recovering method and system | |
CN110445932B (en) | Abnormal card dropping processing method and device, storage medium and terminal | |
CN112637004A (en) | Server monitoring system and method based on narrow-band Internet of things monitoring board card | |
CN101193001A (en) | Method for judging the master/slave computer consistent via static data or dynamic data | |
CN102662787A (en) | Method for protecting system disk RAID (redundant array of independent disks) | |
CN112469065A (en) | Keep-alive detection method for 5G short message all-in-one machine | |
CN104898509B (en) | A kind of industrial personal computer monitoring method and system based on secure short message | |
CN210795418U (en) | Elevator idle time fault automatic detection system | |
CN101764698B (en) | Automatic recovering method for power equipment | |
CN101895414A (en) | System and method for power off protection of server | |
CN105391575B (en) | A kind of national treasury control method and system | |
CN114816930A (en) | Active service self-healing operation and maintenance system and method | |
CN205212976U (en) | According to cell -phone MAC address discernment identity main control system cloth alarm system that withdraws a garrison | |
CN107590647A (en) | The servo supervisory systems of ship-handling system | |
CN111221680A (en) | Automatic management method and device for data center switch system |
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 |