Method for realizing sleep function in embedded system

An embedded system and sleep technology, applied in the direction of multi-program device, data processing power supply, program startup/switching, etc., can solve the problem that the message mechanism is impossible and not suitable for integration, etc., to reduce load, avoid trouble, reduce The effect of share

Inactive Publication Date: 2008-10-08
ZTE CORP
View PDF0 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although the application framework has this mechanism, the application framework implements this function based

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
  • Method for realizing sleep function in embedded system
  • Method for realizing sleep function in embedded system
  • Method for realizing sleep function in embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] Embodiments of the present invention are described in further detail below in conjunction with the accompanying drawings:

[0021] Such as image 3 As shown, the method for realizing sleep function in a kind of embedded system provided by the present invention comprises the following contents:

[0022] Add a special Task (task) for the protocol stack, called TimerTask (timer task);

[0023] This Task uses the message mechanism of the application framework to receive and send the messages of the application framework, here mainly Timer (timer) messages, and the Task of the protocol stack is not established based on the message mechanism of the application framework, it cannot receive the messages of the application framework , but you can manually construct such a message and send it out;

[0024] Step S101: implement a special Sleep (sleep) function for the protocol stack;

[0025] Such as figure 2 Shown is the flow chart of the Sleep function, where:

[0026] Ste...

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 method for realizing sleep function in an embedded type system, which comprises the following steps: a timer task is set for a protocol stack; a task to sleep calls a sleep function sending a massage with information of task to sleep to the timer task, calls the waiting function of an operation system to hang the task to sleep; the timer task starts a timer by the received massage, appoints a response function after the time of the timer is up, and establishes a matching relationship between the function of the timer and the function of the task to sleep; when the time of the timer is up, the appointed response function is called, the wakeup function of the operating system is called according to the matching relationship, and the hung task to sleep is waken up. According to the invention, the original resources of the systems can be used to realize Sleep mechanism, thus solving the conflict in protocol stack transplantation.

Description

technical field [0001] The invention relates to a method for realizing functions by utilizing existing conditions in an embedded system, and more specifically, relates to a method for realizing a sleep function in an embedded system. Background technique [0002] At present, many embedded devices, such as mobile phones and other terminals, use very lean, small and simple operating systems. For some embedded operating systems, the entire core image is only tens of K or hundreds of K. Such a small operating system is certainly not omnipotent, and it must lack many functions. For example, its biggest shortcoming is that it only has the core of the operating system, but no application framework and UI (user interface) framework. Therefore if figure 1 As shown, in many embedded system solutions, in addition to an operating system core, an application framework and UI framework must be developed on this core. At the same time, in order to adapt to this application framework and...

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
IPC IPC(8): G06F9/48G06F1/32
Inventor 刘亮
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products