Check patentability & draft patents in minutes with Patsnap Eureka AI!

Realize the message queue method of vxworks and qt communication

A vxworks and message queue technology, applied in the field of embedded development, can solve problems such as reading and writing data errors, system real-time impact, and damage to data integrity, so as to reduce coupling, avoid task deadlock, and avoid task priority Flip effect

Active Publication Date: 2016-06-08
SHANGHAI SPACEFLIGHT INST OF TT&C & TELECOMM
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when multiple VxWorks tasks or Qt sub-threads read and write the same piece of shared memory, the integrity of the data will be destroyed due to the asynchrony between the tasks or sub-threads, resulting in errors in reading and writing data.
If the critical area or mutual exclusion protection is implemented for the shared memory data, although the integrity of the data is guaranteed when reading and writing, it will cause task priority inversion under certain conditions, and even task deadlock, so that the real-time performance of the system will be affected. influences

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
  • Realize the message queue method of vxworks and qt communication
  • Realize the message queue method of vxworks and qt communication
  • Realize the message queue method of vxworks and qt communication

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The present invention is described in detail below in conjunction with embodiment, present embodiment implements under the premise of technical scheme of the present invention, has provided detailed implementation, but protection scope of the present invention is not limited to following embodiment.

[0028] The technical scheme adopted by the present invention is to create a required number of Qt sub-threads and communicate with corresponding VxWorks tasks through a message queue mechanism. The VxWorks task completes the creation and initialization of the message queue, and the Qt child thread externally refers to the message queue. Tasks and sub-threads can be both the sender and the receiver of the message queue as needed. Among them, the data type of the message queue can be freely defined, but the unique data type of VxWorks needs to declare and register the metatype METATYPE in the Qt main thread, so that Qt can recognize it. In addition, the message queue receiv...

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 relates to a message queue method for realizing communication between VxWorks and Qt. The method is suitable for mixed development of VxWorks and Qt and comprises the steps of: S1, declaring and establishing a message queue in a VxWorks task; S2, establishing a plurality of Qt sub threads in a Qt main thread and declaring the message queue outside the Qt sub threads; and S3, carrying out communication between the Qt sub threads and corresponding VxWorks tasks respectively through a message queue mechanism. Synchronization of the VxWorks tasks and the Qt sub threads is realized through a VxWorks message queue blocking reception mechanism, so that the atomic operation for message queue data during task or sub thread read and write process is ensured, and task deadlock is avoided.

Description

technical field [0001] The invention relates to the field of embedded development, in particular to a message queue method for realizing communication between VxWorks and Qt. Background technique [0002] Qt is a cross-platform C++ graphical user interface application framework developed by Nokia. It provides application developers with all the functionality needed to create state-of-the-art graphical user interfaces. And Qt is fully object-oriented, easy to expand, and allows real component programming; using software developed with Qt, the same code can be compiled and run on any supported platform without modifying the source code. [0003] The VxWorks operating system is an embedded real-time operating system (RTOS) designed and developed by WindRiver Corporation of the United States in 1983, and it is a key component of the embedded development environment. VxWorks operating system occupies a place in the field of embedded real-time operating system because of its goo...

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/46G06F9/52G06F9/54
Inventor 高宇刘成芳丁宝华顾少华
Owner SHANGHAI SPACEFLIGHT INST OF TT&C & TELECOMM
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More