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

Aperiodic timer resident mechanism based on osek embedded real-time operating system

A real-time operating system and operating system technology, applied in the computer field, can solve the problems that the callback function cannot set aperiodic timers, affect the operating efficiency of timer system-level services, etc., and achieve the effect of improving operating efficiency

Active Publication Date: 2021-10-29
ZHEJIANG UNIV
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of the above, the present invention provides a non-periodic timer resident mechanism based on the OSEK embedded real-time operating system, which can solve the problem that the callback function cannot set the non-periodic timer in the prior art and affects the operating efficiency of timer-related system-level services. technical problem

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
  • Aperiodic timer resident mechanism based on osek embedded real-time operating system
  • Aperiodic timer resident mechanism based on osek embedded real-time operating system
  • Aperiodic timer resident mechanism based on osek embedded real-time operating system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] In order to describe the present invention more specifically, the technical solutions of the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0026] The present invention is based on the non-periodic timer resident mechanism of the OSEK embedded real-time operating system. First, the counter Counter at the bottom of the operating system is associated with the clock of the hardware, and one or more timer Alarms are bound to the operating system counter Counter. .

[0027] Each timer has a preset value delta, indicating the trigger time of the timer; all timers are arranged into a timer linked list according to the size of the delta; the counter Counter maintains an integer variable RemainTicks, which stores the timing of the header of the timer linked list The difference between the device delta value and the current system time.

[0028] Timers include periodic timers and non-periodic timers: ...

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 non-periodic timer resident mechanism based on an OSEK embedded real-time operating system. The mechanism associates a hardware clock with a system counter, and associates multiple periodic or non-periodic timers with the counter to form a timer Linked list, optionally bind task or callback function on each timer. In the present invention, when the timer expires, the callback function will be called first, and the time-critical program can be executed efficiently through the callback function without context switching; device and delete it immediately after use. The main advantage of the present invention is that the non-periodic timer resident mechanism adopted combines the callback function and the non-periodic timer, and the non-periodic timer can still be used to realize the system service with an irregular cycle while using the callback function mechanism to perform efficient operations. The efficiency of program operation is improved, and the programming work is simplified.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to an aperiodic timer resident mechanism based on an OSEK embedded real-time operating system. Background technique [0002] In microcontrollers, a real-time operating system is usually used to provide multitasking and resource sharing functions. A real-time operating system (RTOS) refers to an operating system that provides services for real-time tasks that process incoming data for a limited time. . Because real-time systems have very strict restrictions on time, timers are very important as the core of real-time system time management. Therefore, it is very important to design a timer mechanism that is safe, efficient, and meets the system design requirements. [0003] In the existing real-time operating systems such as uCOS, μClinux, SMC-RTOS, and eCOS, the smallest entity scheduled by the timer mechanism is a task, but the scheduling between different tasks will...

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 Patents(China)
IPC IPC(8): G06F9/48
CPCG06F9/485
Inventor 吕攀章昌仲杨国青李红吴朝晖
Owner ZHEJIANG UNIV
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