Shared Memory Message Prioritization for Intelligent Control Systems
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current intelligent control systems using socket communication approaches lack the ability to differentiate message urgency, leading to potential safety hazards in scenarios like unmanned vehicle operations, where immediate responses to high-priority messages are critical.
Innovation Solution
The method involves dividing a shared memory area into memory blocks with different priority levels, allowing messages to be stored and transmitted based on their priority, with high-priority messages being flagged and processed accordingly, ensuring timely and secure transmission.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If a socket communication approach with buffer queue is used for message transmission, then the communication process is simple and easy to implement, but the message transmission cannot differentiate according to urgency levels, leading to potential safety hazards
Solution Approach 1:
The shared memory area is segmented into multiple memory blocks with different priority levels (normal-priority memory block and high-priority memory blocks). Each memory block is further divided into multiple memory units with successive serial numbers. This segmentation allows the system to store and transmit messages of different urgencies in separate regions, enabling differential processing based on priority while maintaining the simplicity of shared memory communication.
Solution Approach 2:
Different memory blocks are assigned different qualities (priority levels) to match the urgency of messages. The normal-priority memory block stores low-urgency messages while high-priority memory blocks store urgent messages. This local quality differentiation ensures that critical messages are processed first without complicating the overall communication mechanism.
2Device complexity
If a first input first output (FIFO) mechanism is used in the buffer queue, then the message processing is simple and sequential, but the severe potential safety hazard arises when urgent messages are buried behind less urgent messages
Solution Approach 1:
The memory structure is segmented into priority-based blocks rather than using a single FIFO queue. This allows urgent messages to be placed in high-priority blocks that can be processed independently from normal-priority messages, eliminating the harmful effect of message burying while maintaining simple processing within each block.
Solution Approach 2:
The system dynamically selects which memory block to process based on message priority rather than following a fixed FIFO sequence. The receiving node can choose to read from high-priority or normal-priority blocks depending on the urgency of available messages, making the processing order flexible and adaptive rather than rigid and sequential.
3Device complexity
If messages are stored in a single shared memory area without priority differentiation, then the memory structure is simple, but the system cannot ensure timely execution of critical instructions
Solution Approach 1:
The shared memory area is segmented into priority-differentiated blocks (normal-priority and high-priority). This segmentation enables fast access to critical messages in high-priority blocks without traversing through normal-priority messages, significantly improving transmission speed for urgent instructions while maintaining a relatively simple overall memory structure.
Solution Approach 2:
Different regions of memory are assigned different qualities (priority levels) to match the speed requirements of different message types. High-priority memory blocks are optimized for rapid access of critical instructions, while normal-priority blocks handle less urgent messages, ensuring timely execution where needed without compromising overall system simplicity.
Data Source
AI summary
The present application discloses a method and an apparatus for transmitting a message. The method of an embodiment comprises: dividing a shared memory area allocated by an operating system into a plurality of memory blocks for storing messages having different priorities; dividing each memory block in the plurality of memory blocks into at least one memory unit having a successive serial number; determining, from the plurality of memory blocks according to a priority of a to-be-transmitted message, a target memory block for storing the to-be-transmitted message; and writing the to-be-transmitted message into a memory unit of the target memory block. This embodiment implements message transmission based on priorities of the messages, and improves the control security of an intelligent control system.


