Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Quick recovery method of communication failures in interrupt service routine

A service program and rapid recovery technology, applied in the direction of redundancy in computing for data error detection, response error generation, etc., can solve problems such as shortening the interruption time, and achieve shortened time, strong practicability, and reduced tasks. The effect of the number of switches

Active Publication Date: 2014-02-19
BEIJING INST OF CONTROL ENG
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem solved by the present invention is: to overcome the deficiencies of the prior art, to provide a fast recovery method for communication faults in the interrupt service program, to solve the problem of conflict between fault detection and recovery and interrupt processing time, and to shorten the time at the interrupt

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Quick recovery method of communication failures in interrupt service routine
  • Quick recovery method of communication failures in interrupt service routine
  • Quick recovery method of communication failures in interrupt service routine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Faults affecting subsequent data processing include:

[0026] Synchronization frame error: Subsequent bytes need to be discarded until a correct synchronization frame is received;

[0027] Data loss: that is, when the current data length does not reach the length of one instruction, a correct synchronization frame is received again, and all received data outside the synchronization frame should be discarded;

[0028] Mixed instruction: refers to an instruction that has not been issued yet, and another instruction is inserted in the middle. This kind of failure needs to receive the instruction inserted in the middle, and the data and subsequent data before the insertion are discarded;

[0029] Mixed data: Refers to the arrival of other data during normal command transmission. Inserting data before the instruction arrives or at the end of the instruction will directly discard the data, and inserting data in the middle will be attributed to instruction content errors and...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a quick recovery method of communication failures in an interrupt service routine. The method includes that advantages of a method performing failure detection and recovery in the interrupt service routine and a method performing failure detection and recovery in an interrupt processing task are combined, the failures are subdivided into failures influencing subsequent data processing and failures only influencing current instruction data processing, time interval of two data packets is fully utilized, and the failures influencing subsequent data processing are handled in the interrupt service routine, the failures only influencing current instruction data processing are handled in the interrupt processing task, so that task switching times are reduced, data receiving time is shortened, and a method of completing communication failure detection and recovery only after receiving is realized. The quick recovery method is applied in the process of communication of Chang'e 3 RS422 already, the problem of conflicting between failure detection and recovery and interrupt processing time in model number is solved, good effect is realized, and the quick recovery method has high practicability.

Description

technical field [0001] The invention relates to a fast recovery method for communication faults in an interrupt service program, in particular to a fast recovery method for communication faults in an interrupt service program in a strong real-time embedded environment, which can be applied to a strong real-time embedded software interrupt service program. Background technique [0002] Serial communication has the characteristics of long transmission distance, stable transmission, simplicity and practicality, and has been widely used in industrial control, data communication and other fields. In these fields, serial port communication is used to receive information from other devices in real time and requires real-time response, so it is very important to improve the real-time performance of device reception. [0003] The two devices of Chang'e-3 communicate through RS422, the communication baud rate is 38.4kbps, including 1 start bit, 8 data bits, 1 even parity bit, and 1 st...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/14
Inventor 万丽景党纪红关小川林琳葛莹王晶
Owner BEIJING INST OF CONTROL ENG
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products