Processing method for optimization of inter-process communication of embedded operating system

A technology of inter-process communication and operating system, which is applied in the field of optimized devices for inter-process communication of embedded operating systems, can solve the problem of low message processing efficiency, and achieve the effects of improving equipment communication efficiency, facilitating monitoring and control, and simplicity and complexity

Active Publication Date: 2015-02-11
STATE GRID CORP OF CHINA +3
View PDF6 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the main purpose of the present invention is to provide a device and method for optimizing inter-process communication of an embedded operating system, which can solve the problem of using the message passing mechanism established by shared memory under the multi-process communication situation of an embedded operating system. Existing problems of useless message delivery and low efficiency of message processing

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
  • Processing method for optimization of inter-process communication of embedded operating system
  • Processing method for optimization of inter-process communication of embedded operating system
  • Processing method for optimization of inter-process communication of embedded operating system

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0055] Please refer to figure 1 , the message queue shared memory of the present invention is made up of two independent parts, and a part is used for the message queue information of management, establishes independent index ID, memory reads, writes the pointer, adopts independent semaphore control synchronization; The other part is used for communication The message queue of the process. All communication processes use a common semaphore to control synchronization. Each process has an independent message queue with characteristic values. The messages are convenient for message classification management and improve access efficiency. The read and write pointers of the message queue are easy to distinguish Whether the message has been processed.

[0056] Considering the consistency of message processing methods, the same message structure is used in the management message queue and the message queues of each process. The structure needs to have some key flag information for in...

no. 2 example

[0076] Please refer to figure 2 , the method for the optimization of embedded operating system interprocess communication of the present invention comprises:

[0077] Step 1: Initialize the management process, read the corresponding configuration file of the device, and determine various operating information such as the number of system interfaces and the number of devices. For each interface information, a relatively independent characteristic value is required, and a special structure is established to store the information;

[0078] Step 2: System device initialization, including system time, watchdog, etc.;

[0079] Step 3: Create a shared memory interval, including: parameter shared memory, real-time database shared memory and other equipment operations that must be operated;

[0080] Step 4: Establish a channel communication message shared memory space according to the system's maximum interface resources and assign values ​​to corresponding pointers, including messa...

no. 3 example

[0095] As another alternative embodiment, the method for optimizing inter-process communication of an embedded operating system in this embodiment includes:

[0096]Step 1: Initialize the management process, read the corresponding configuration file of the system equipment, and determine the operation information of the system equipment. The operation information includes the interface quantity information and / or the equipment quantity information. For each operation information, an independent characteristic value is used Establish a characteristic message structure to store the operation information, the characteristic message structure includes: read register serial number, write register serial number, message queue space; the message queue space includes a plurality of message queues, and each message queue Independent; establish the quantity of the message queue according to the quantity of the management process;

[0097] Step 2: Initialize the feature information struc...

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 device and a method for optimization of inter-process communication of an embedded operating system. The method comprises the following steps: initializing a management process to determine operation information of system equipment; initializing a characteristic information structural body and the equipment; establishing a real-time memory library; establishing a channel process message sharing memory space, a management process message sharing memory space, the semaphore of the channel process message sharing memory space and the semaphore of the management message sharing memory space; mapping the channel process message sharing memory space and the channel process characteristic information structural body; establishing channel processes according to the operation information and transferring a management message to the corresponding channel process; entering the management process, setting the semaphore of the management message, and reading the management message which is less than or equal to the semaphore of the management message. According to the device and the method, the problems of useless message transfer and low message processing efficiency existing in a message transfer mechanism established by using the sharing memories under the condition of communication among multiple processes of the embedded operation system are solved.

Description

technical field [0001] The invention belongs to the field of computer communication, and in particular relates to a device and method for optimizing inter-process communication of an embedded operating system. Background technique [0002] Traditional embedded computer communication technologies can use pipes, FIFOs, message queues, inter-domain sockets and shared memory methods. Because shared memory has the characteristics of simplicity, flexibility and high efficiency in operation, it is widely used in inter-process communication of embedded computers. Real-time library management of embedded computers, inter-process communication queues and other operations can be realized through sharing. Using the message mechanism of the shared memory can solve the work of mutual conversion between communication interfaces when the embedded computer is used as a communication management machine, especially in the process of mutual conversion between low-speed interfaces and high-speed...

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): G06F9/54
Inventor 王振岳罗凡王建领陈杰韩冬孙虎云薛廷超付瑞卿王继斌李俊
Owner STATE GRID CORP OF CHINA
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