CN112416797A - Method and system for automatically alarming and maintaining site when embedded software runs abnormally - Google Patents

Method and system for automatically alarming and maintaining site when embedded software runs abnormally Download PDF

Info

Publication number
CN112416797A
CN112416797A CN202011398422.0A CN202011398422A CN112416797A CN 112416797 A CN112416797 A CN 112416797A CN 202011398422 A CN202011398422 A CN 202011398422A CN 112416797 A CN112416797 A CN 112416797A
Authority
CN
China
Prior art keywords
computer
embedded
tested
maintaining
software runs
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
Application number
CN202011398422.0A
Other languages
Chinese (zh)
Inventor
马磊
黄国勇
杨峰
尤晓旭
谢雪亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Future Automotive Technology Shenzhen Co ltd
Original Assignee
Future Automotive Technology Shenzhen Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Future Automotive Technology Shenzhen Co ltd filed Critical Future Automotive Technology Shenzhen Co ltd
Priority to CN202011398422.0A priority Critical patent/CN112416797A/en
Publication of CN112416797A publication Critical patent/CN112416797A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a method and a system for automatically alarming and maintaining a site when embedded software runs abnormally, wherein the method specifically comprises the following steps: the first computer and the second computer receive log files sent by the tested embedded equipment; further, the second computer judges whether the current software is abnormal according to the received log file; and when the embedded device is abnormal, the second computer sends an alarm signal to the user and sends a stop signal for stopping the operation to the tested embedded device. The method utilizes the advantages of low cost, strong control function and good environment adaptability of the embedded computer, and also utilizes the advantages of the industrial control computer and the personal computer which are convenient for editing program codes and checking log files, and can alarm and maintain the site in time when abnormity occurs by monitoring the embedded equipment, thereby facilitating the on-site troubleshooting and problem solving of technical personnel.

Description

Method and system for automatically alarming and maintaining site when embedded software runs abnormally
Technical Field
The invention relates to the technical field of software testing, in particular to a method and a system for automatically alarming and maintaining a site when embedded software runs abnormally.
Background
When software development is performed on embedded equipment, whether the product performance is stable and reliable needs to be repeatedly verified by means of a large number of tests. To relieve manpower, automated testing systems are often introduced. At present, an automatic test system generally only has the functions of automatically testing and recording test data, and cannot automatically alarm and suspend testing when software runs abnormally, so that technicians cannot check real-time abnormal sites, and the best time for analyzing and solving problems is missed.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method for automatically alarming and maintaining a site when an embedded software is abnormally operated, and a system for automatically alarming and maintaining a site when an embedded software is abnormally operated, aiming at the above-mentioned defects of the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows:
on one hand, the method for automatically alarming and maintaining the site when the embedded software runs abnormally comprises a first computer; the first computer is an industrial control computer with a display screen or a personal computer with a display screen; wherein, also include the second computer; the second computer is an embedded computer; the first computer and the second computer are in communication connection with the embedded equipment to be tested; the method comprises the following steps:
the first computer and the second computer both receive log files sent by the tested embedded equipment; wherein, the log file corresponds to the program code currently executed by the embedded device to be tested;
the second computer judges whether the current software is abnormal or not according to the received log file;
and when the embedded device is abnormal, the second computer sends an alarm signal to a user and sends a stop signal for stopping operation to the tested embedded device.
Preferably, after the step of determining whether the current software operation is abnormal, the method further includes: and when no abnormality exists, the second computer sends an execution signal for re-running the current program code to the tested embedded equipment and skips to the step of receiving the log file until the total running times of the current program code reaches the preset test times.
Preferably, the step of determining whether the current software operation is abnormal includes: and judging whether the current software runs with illegal memory access and/or resource access conflict.
Preferably, the first computer is in communication connection with the embedded device to be tested through a first serial port line; and the second computer is in communication connection with the tested embedded equipment through a second serial port line.
Preferably, the alarm signal comprises an optical signal and/or an acoustic signal.
On the other hand, the system for automatically alarming and maintaining the site when the embedded software runs abnormally is provided, and the method for automatically alarming and maintaining the site when the embedded software runs abnormally is based on the embedded software, wherein the system comprises the following components: the first computer and the second computer are in communication connection with the embedded equipment to be tested; the first computer is an industrial control computer with a display screen or a personal computer with a display screen; the second computer is an embedded computer;
the first computer and the second computer are both used for receiving log files sent by the tested embedded equipment; wherein, the log file corresponds to the program code currently executed by the embedded device to be tested;
and the second computer is also used for judging whether the current software is abnormal according to the received log file, sending an alarm signal to a user when the current software is abnormal and sending an interruption signal for interrupting the operation to the tested embedded equipment.
Preferably, the second computer is further configured to send an execution signal for re-running the current program code to the tested embedded device when there is no abnormality, and skip to the step of receiving the log file until the total running frequency of the current program code reaches the preset test frequency.
Preferably, the second computer is specifically configured to determine whether there is an illegal memory access and/or resource access conflict during current software operation.
Preferably, the system further comprises a first serial port line and a second serial port line; the first computer is in communication connection with the embedded equipment to be tested through the first serial port line; and the second computer is in communication connection with the tested embedded equipment through the second serial port line.
Preferably, the alarm signal comprises an optical signal and/or an acoustic signal.
The invention has the beneficial effects that: the embedded equipment is monitored, so that the embedded equipment can give an alarm and maintain the site in time when an abnormality occurs, and technicians can conveniently troubleshoot and solve problems on site.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be further described with reference to the accompanying drawings and embodiments, wherein the drawings in the following description are only part of the embodiments of the present invention, and for those skilled in the art, other drawings can be obtained without inventive efforts according to the accompanying drawings:
fig. 1 is a flowchart illustrating an implementation of a method for automatically alarming and maintaining a field when embedded software runs abnormally according to an embodiment of the present invention;
fig. 2 is a schematic usage diagram of a system for automatically alarming and maintaining a site when embedded software runs abnormally according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without inventive step, are within the scope of the present invention.
Example one
The embodiment of the invention provides a method for automatically alarming and maintaining a site when embedded software runs abnormally, which comprises a first computer; the first computer is an industrial control computer with a display screen or a personal computer with a display screen; a second computer is also included; the second computer is an embedded computer; the first computer and the second computer are in communication connection with the embedded equipment to be tested; as shown in fig. 1, the method comprises the steps of:
step S1: the first computer and the second computer both receive the log file sent by the tested embedded equipment; the log file corresponds to a program code currently executed by the tested embedded device.
The first computer is in communication connection with the embedded equipment to be tested through a first serial port line; and the second computer is in communication connection with the tested embedded equipment through a second serial port line.
Step S2: and the second computer judges whether the current software is abnormal according to the received log file.
The step of judging whether the current software is abnormal or not comprises the following steps: and judging whether the current software runs with illegal memory access and/or resource access conflict.
Step S3: and when the embedded equipment is abnormal, the second computer sends an alarm signal to a user and sends a stop signal for stopping running to the tested embedded equipment.
Preferably, after the step of determining whether the current software operation is abnormal, the method further includes: and when no abnormality exists, the second computer sends an execution signal for re-running the current program code to the tested embedded equipment and skips to the step of receiving the log file until the total running times of the current program code reaches the preset test times.
Wherein the alarm signal comprises an optical signal and/or an acoustic signal.
The method provided by the embodiment specifically comprises the following steps: the first computer and the second computer receive log files sent by the tested embedded equipment; further, the second computer judges whether the current software is abnormal according to the received log file; and when the embedded device is abnormal, the second computer sends an alarm signal to the user and sends a stop signal for stopping the operation to the tested embedded device. The method utilizes the advantages of low cost, strong control function and good environment adaptability of the embedded computer, and also utilizes the advantages of the industrial control computer and the personal computer which are convenient for editing program codes and checking log files, and can alarm and maintain the site in time when abnormity occurs by monitoring the embedded equipment, thereby facilitating the on-site troubleshooting and problem solving of technical personnel.
Example two
The embodiment of the invention provides a system for automatically alarming and maintaining a site when embedded software runs abnormally, and based on the method for automatically alarming and maintaining the site when the embedded software runs abnormally, as shown in fig. 2, the system comprises: a first computer 10 and a second computer 11 which are in communication connection with the embedded equipment 2 to be tested; a first computer 10, either an industrial control computer with a display screen or a personal computer with a display screen; the second computer 11 is an embedded computer;
the first computer 10 and the second computer 11 are both used for receiving the log file sent by the embedded device 2 under test; wherein, the log file corresponds to the program code currently executed by the embedded device 2 under test;
the second computer 11 is further configured to determine whether the current software is abnormal according to the received log file, and further configured to send an alarm signal to a user and send an abort signal to abort the operation to the tested embedded device 2 when the current software is abnormal.
The second computer 11 is further configured to send an execution signal for re-running the current program code to the tested embedded device 2 when there is no abnormality, and skip to the step of receiving the log file until the total running frequency of the current program code reaches the preset test frequency.
The second computer 11 is specifically configured to determine whether the current software runs with an illegal memory access and/or resource access conflict.
Wherein, as shown in fig. 2, the system further comprises a first serial port line 12 and a second serial port line 13; the first computer 10 is in communication connection with the embedded device 2 to be tested through a first serial port line 12; the second computer 11 is connected to the embedded device under test 2 by a second serial port line 13.
Wherein the alarm signal comprises an optical signal and/or an acoustic signal.
It will be understood that modifications and variations can be made by persons skilled in the art in light of the above teachings and all such modifications and variations are intended to be included within the scope of the invention as defined in the appended claims.

Claims (10)

1. A method for automatically alarming and maintaining the site when the embedded software runs abnormally comprises a first computer; the first computer is an industrial control computer with a display screen or a personal computer with a display screen; the system is characterized by also comprising a second computer; the second computer is an embedded computer; the first computer and the second computer are in communication connection with the embedded equipment to be tested; the method comprises the following steps:
the first computer and the second computer both receive log files sent by the tested embedded equipment; wherein, the log file corresponds to the program code currently executed by the embedded device to be tested;
the second computer judges whether the current software is abnormal or not according to the received log file;
and when the embedded device is abnormal, the second computer sends an alarm signal to a user and sends a stop signal for stopping operation to the tested embedded device.
2. The method for automatically alarming and maintaining the scene when the embedded software runs abnormally according to claim 1, wherein after the step of judging whether the current software runs abnormally, the method further comprises the following steps:
and when no abnormality exists, the second computer sends an execution signal for re-running the current program code to the tested embedded equipment and skips to the step of receiving the log file until the total running times of the current program code reaches the preset test times.
3. The method for automatically alarming and maintaining the site when the embedded software runs abnormally according to claim 1, wherein the step of judging whether the current software runs abnormally comprises the following steps:
and judging whether the current software runs with illegal memory access and/or resource access conflict.
4. The method for automatically alarming and maintaining the site when the embedded software abnormally operates according to claim 1, wherein the first computer is in communication connection with the embedded device under test through a first serial port line; and the second computer is in communication connection with the tested embedded equipment through a second serial port line.
5. The method for automatically alarming and maintaining the scene when the embedded software runs abnormally according to claim 1, wherein the alarm signal comprises an optical signal and/or an acoustic signal.
6. A system for automatically alarming and maintaining the scene when the embedded software runs abnormally is based on the method for automatically alarming and maintaining the scene when the embedded software runs abnormally according to any one of claims 1 to 5, and is characterized in that the system comprises: the first computer and the second computer are in communication connection with the embedded equipment to be tested; the first computer is an industrial control computer with a display screen or a personal computer with a display screen; the second computer is an embedded computer;
the first computer and the second computer are both used for receiving log files sent by the tested embedded equipment; wherein, the log file corresponds to the program code currently executed by the embedded device to be tested;
and the second computer is also used for judging whether the current software is abnormal according to the received log file, sending an alarm signal to a user when the current software is abnormal and sending an interruption signal for interrupting the operation to the tested embedded equipment.
7. The system of claim 6, wherein the second computer is further configured to send an execution signal for re-running the current program code to the tested embedded device when there is no error, and jump to the step of receiving the log file until the total running frequency of the current program code reaches the preset test frequency.
8. The system of claim 6, wherein the second computer is specifically configured to determine whether there is an illegal memory access and/or resource access conflict during current software operation.
9. The system for automatically alarming and maintaining the scene when the embedded software runs abnormally according to claim 6, characterized in that the system further comprises a first serial port line and a second serial port line; the first computer is in communication connection with the embedded equipment to be tested through the first serial port line; and the second computer is in communication connection with the tested embedded equipment through the second serial port line.
10. The system for automatically alarming and maintaining the scene when the embedded software runs abnormally according to claim 6, wherein the alarm signal comprises an optical signal and/or an acoustic signal.
CN202011398422.0A 2020-12-02 2020-12-02 Method and system for automatically alarming and maintaining site when embedded software runs abnormally Pending CN112416797A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011398422.0A CN112416797A (en) 2020-12-02 2020-12-02 Method and system for automatically alarming and maintaining site when embedded software runs abnormally

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011398422.0A CN112416797A (en) 2020-12-02 2020-12-02 Method and system for automatically alarming and maintaining site when embedded software runs abnormally

Publications (1)

Publication Number Publication Date
CN112416797A true CN112416797A (en) 2021-02-26

Family

ID=74829893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011398422.0A Pending CN112416797A (en) 2020-12-02 2020-12-02 Method and system for automatically alarming and maintaining site when embedded software runs abnormally

Country Status (1)

Country Link
CN (1) CN112416797A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080270840A1 (en) * 2007-04-25 2008-10-30 Samsung Electronics Co., Ltd. Device and method for testing embedded software using emulator
CN103368756A (en) * 2012-03-29 2013-10-23 福建星网视易信息系统有限公司 A management system for monitoring the operation log of an embedded system
CN106708736A (en) * 2016-12-16 2017-05-24 武汉烽火网络有限责任公司 Production automation testing method and system for communication equipment
CN109698771A (en) * 2018-12-07 2019-04-30 网易(杭州)网络有限公司 Game server method for testing pressure and device
CN109814816A (en) * 2019-01-28 2019-05-28 先勒动力控制技术(上海)有限公司 Increase the system and method for print log in CAN bus
CN110096408A (en) * 2019-03-11 2019-08-06 中国平安人寿保险股份有限公司 Alarm-monitor method, apparatus, electronic equipment and computer readable storage medium
CN110362545A (en) * 2019-05-27 2019-10-22 平安科技(深圳)有限公司 Log monitoring method, device, terminal and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080270840A1 (en) * 2007-04-25 2008-10-30 Samsung Electronics Co., Ltd. Device and method for testing embedded software using emulator
CN103368756A (en) * 2012-03-29 2013-10-23 福建星网视易信息系统有限公司 A management system for monitoring the operation log of an embedded system
CN106708736A (en) * 2016-12-16 2017-05-24 武汉烽火网络有限责任公司 Production automation testing method and system for communication equipment
CN109698771A (en) * 2018-12-07 2019-04-30 网易(杭州)网络有限公司 Game server method for testing pressure and device
CN109814816A (en) * 2019-01-28 2019-05-28 先勒动力控制技术(上海)有限公司 Increase the system and method for print log in CAN bus
CN110096408A (en) * 2019-03-11 2019-08-06 中国平安人寿保险股份有限公司 Alarm-monitor method, apparatus, electronic equipment and computer readable storage medium
CN110362545A (en) * 2019-05-27 2019-10-22 平安科技(深圳)有限公司 Log monitoring method, device, terminal and computer readable storage medium

Similar Documents

Publication Publication Date Title
US10592369B2 (en) Testing framework for control devices
US10581665B2 (en) Content-aware anomaly detection and diagnosis
CN106649043B (en) Automatic fault diagnosis method and system for operation and maintenance system
US20210365021A1 (en) A method for commissioning and maintenance of alarm systems
CN111338951A (en) Wireless intelligent household appliance detection method and system
CN112069070A (en) Page detection method, device, server and computer readable storage medium
CN110990289A (en) Method and device for automatically submitting bug, electronic equipment and storage medium
CN105825641A (en) Service alarm method and apparatus
CN104794039A (en) Remote monitoring method and device for service software
JPH09205429A (en) Network fault diagnostic device, fault prediction device, and its diagnostic and prediction method
CN112416797A (en) Method and system for automatically alarming and maintaining site when embedded software runs abnormally
CN113538725B (en) Method for testing hardware products and related equipment
CN108845932B (en) Unit testing method and device of network library, storage medium and terminal
CN108664366B (en) Data transmission method and device and server
KR20070010315A (en) Apparatus and method for monitoring long call in a mobile communication system
KR20000051749A (en) Automatic analyzer of trouble shooting in base station manager system method for solving the trouble
CN112068878B (en) Method, device and storage medium for detecting software development kit state
KR101628072B1 (en) Test apparatus and test method for slowness of portable communication terminal
CN112286797B (en) Service monitoring method and device, electronic equipment and storage medium
CN114844800B (en) Abnormality detection method and device for equipment, readable storage medium and electronic equipment
CN114721957B (en) Software and hardware automatic testing method and device
CN114138578B (en) Server testing method and device
KR102372556B1 (en) Mobile service control method and system based on mobile remote control technology
CN108880907B (en) Network equipment automatic inspection and maintenance system based on operation log
CN107438259B (en) Method for positioning network management system performance module fault

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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20210226

Assignee: HUAAN XINCHUANG HOLDINGS (BEIJING) CO.,LTD.

Assignor: FUTURE AUTOMOTIVE TECHNOLOGY (SHENZHEN) Co.,Ltd.

Contract record no.: X2023450000036

Denomination of invention: Method and system for automatic alarm and on-site maintenance in case of abnormal operation of embedded software

License type: Common License

Record date: 20231023

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20210226

Assignee: Jiangsu Tianhua Automotive Electronic Technology Co.,Ltd.

Assignor: HUAAN XINCHUANG HOLDINGS (BEIJING) CO.,LTD.

Contract record no.: X2024980002027

Denomination of invention: Method and system for automatic alarm and on-site maintenance in case of abnormal operation of embedded software

License type: Common License

Record date: 20240207

EE01 Entry into force of recordation of patent licensing contract