Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for processing data based on RTOS and controller

A data processing device and data processing technology, applied in the direction of electrical digital data processing, multi-channel program device, program control design, etc., can solve the problem of occupying a lot of memory, achieve the effect of reducing usage and realizing multi-task multiplexing

Active Publication Date: 2018-07-13
深圳市德兰明海新能源股份有限公司
View PDF11 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the process of realizing the present invention, the inventors found that there are at least the following problems in the related technologies: two tasks and message queues need to be established for each data processing, which takes up a lot of memory

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 and device for processing data based on RTOS and controller
  • Method and device for processing data based on RTOS and controller
  • Method and device for processing data based on RTOS and controller

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0049] figure 1 A schematic flow chart of an RTOS-based data processing method provided by an embodiment of the present invention, the method can be executed by a controller (such as a single-chip microcomputer control chip), such as figure 1 As shown, the data processing method includes:

[0050] 101: collect data.

[0051] 102: Call a pre-est...

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 embodiment of the invention relates to a method and device for processing data based on an RTOS. The method includes the steps that the data is collected; a pre-established asynchronous thread pool is called, the data and processing information of the data are transmitted to the asynchronous thread pool, and the asynchronous thread pool includes one or more tasks; the data and the processing information of the data serve as task content and are added into one task in the asynchronous thread pool; one or more tasks in the asynchronous thread pool are activated. In the embodiment, the asynchronous thread pool including one or more tasks is established in advance, then by calling the asynchronous thread pool, the collected data and the processing information of the data serve as the taskcontent and are added into one task of the asynchronous thread pool, the tasks in the asynchronous thread pool are activated when CPU is available, and then data processing is finished. The tasks cancorrespond to one or more data processing operation, multi-task reusing can be achieved, and the usage quantity of memories is decreased.

Description

technical field [0001] The embodiment of the present invention relates to the technical field of computer software, in particular to an RTOS-based data processing method, device and controller. Background technique [0002] With the development of science and technology, the performance of random access memory, read-only memory and processor inside the microcontroller has been greatly improved. More and more microcontrollers can run real-time operating system (Real Time Operating System, RTOS). When the RTOS processes the collected data, two tasks will be set up. Task 1 is to insert the collected data into the message queue, and task 2 is to process the collected data. The RTOS kernel will wake up task 2 at an appropriate time. The data in the message queue is processed. [0003] During the process of implementing the present invention, the inventors found that there are at least the following problems in related technologies: two tasks and message queues need to be establ...

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/50G06F9/54
CPCG06F9/5038G06F9/545G06F2209/5011
Inventor 尹相柱刘志亮郭强
Owner 深圳市德兰明海新能源股份有限公司