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

A processing method for optimizing inter-process communication of an embedded operating system

An inter-process communication and operating system technology, applied in the field of devices for optimizing 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, simplicity and complexity, and facilitating monitoring and control.

Active Publication Date: 2018-06-05
STATE GRID CORP OF CHINA +3
View PDF6 Cites 0 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
  • A processing method for optimizing inter-process communication of an embedded operating system
  • A processing method for optimizing inter-process communication of an embedded operating system
  • A processing method for optimizing inter-process communication of an 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 method for optimizing inter-process communication of an embedded operating system. The method includes: initializing a management process, determining the operation information of system equipment; initializing a feature information structure and equipment; creating a real-time memory library; creating Channel process message shared memory space, management process message shared memory space, channel process message shared memory space semaphore, management process message shared memory space semaphore; Mapping channel process message shared memory space and channel process characteristic message structure ; Establish a channel process according to the running information, and transmit the management message to the corresponding channel process; enter the management process, set the management message semaphore, and read the management message less than or equal to the management message semaphore. The invention solves the problems of useless message transmission and low message processing efficiency existing in the message transmission mechanism established by using the shared memory in the case of multi-process communication of the embedded operating system.

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 Patents(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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products