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

Method for running multiple task sequences in parallel

A multi-task and sequence technology, applied in the field of computing multi-task, can solve problems such as large memory consumption, long real-time response time, random events are easy to burst, etc., to reduce operating resources, system stability, and good time predictability Effect

Active Publication Date: 2020-09-08
长沙小卡机器人科技有限公司
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Existing equipment for realizing multi-task sequence parallel operation has the following deficiencies: 1) memory consumption is large: the multi-task operation essence of the embedded operating system system is that multiple tasks are switched / rotated in a certain way, except that shared resources between tasks need to have In addition to storage, the allocation of a single task requires the allocation of memory resources (stack space) to ensure the entry, normal operation and exit of the task
2) Uncertainty in task operation and switching: In order to ensure the real-time performance of tasks, the embedded operating system usually adopts certain rules of high-priority tasks to preempt low-priority tasks between multiple tasks, whether it is based on time slice priority adjustment or Preemption, multi-task scheduling using event-triggered mode has a certain degree of uncertainty, and random events are prone to burst
The disclosure solves the cumbersome technical problem of switching to the target page of the application program in the related technology, and achieves the effect of simplifying the operation of switching to the target page of the application program. This method is not applicable to the bare metal mode without an operating system, and the real-time response time is long. has certain limitations

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 running multiple task sequences in parallel
  • Method for running multiple task sequences in parallel

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] Such as figure 1 According to the flowchart, the present invention provides a method for parallel operation of multi-task sequences, including a foreground program and a background program, wherein the specific steps of the background program are as follows:

[0030] 1) To wake up the device by inputting instructions through the power-on standby button, initialize the memory and peripherals, the specific process is as follows: initialize the SPI_FLASH storage and device parameters, control the power-on of other modules of the device, self-check the device, activate the Bluetooth 4.0 communication module and cycle Send the device status, read SPI_FLASH to store the boot detection sequence, control the multi-task module to carry out the boot detection sequence through the microprocessor, the boot detection sequence includes the following detection process: double OLED light group display eye shape, RGB full-color LED lights, distance measurement The mechanism performs dis...

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 provides a multitask sequence parallel-running method. The multitask sequence parallel-running method comprises the specific following steps that a device is awakened, and a memory and aperipheral are initialized; parameters required for running of all tasks in the device are configured, a microcontroller produces time takt corresponding to each task through a takt timer, all the task generate time slices according to each takt, period tasks are generated according to the time slices, and accordingly a time scheduling period table is established; the microcontroller receives instruction loading sequence data and run the sequence data according to the established time scheduling period table after parsing; normal running of multiple task modules is achieved through sequence data running. By adopting the method, a software / hardware framework is provided for secondary development of a user, a low-cost microprocessor running method is designed, multitask running based on time scheduling is supported to the greatest degree by scheduling multitask running sequence data in an SPI_FLASH memory in a running framework of the microprocessor, and fewer memory and computing resources are occupied.

Description

technical field [0001] The invention relates to the technical field of computing multi-task methods, in particular to a method for running multi-task sequences in parallel. Background technique [0002] In existing mobile embedded applications, a single-task (infinite loop) mode or front-end and back-end are usually used for multi-task processing. When multi-task operation requires the use of embedded real-time operating system for multi-task scheduling, the requirements for system resources are relatively high. At this time, many problems such as stack space allocation and priority processing are faced. [0003] In mobile environments (using batteries), lightweight and low-cost devices, low-power, low-cost microcontrollers are often used, which have a high level of integration, integrating multiple peripherals and internal memory systems , but the internal storage is relatively small (several KB to hundreds of KB). The multi-task processing managed by the usual real-time ...

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
Inventor 曾炼成
Owner 长沙小卡机器人科技有限公司
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