
Figure 1
Partition embedded real-time operating system architecture

Figure 2
Process basic state and its transition diagram

Figure 3
Sampling port message communication process

Figure 4
Queue port message communication process

Figure 5
Communication between partition modules
Table I
Logical structure of virtual port
| content | Function |
|---|---|
| PortID | Port ID (receive/send, the same below) |
| MsgName | Subject information |
| MsgMaxSize | Maximum length of buffered message |
| MsgMaxNum | Maximum number of buffered messages |
| MsgQueueID | Message queue ID |
| DestMsgQueueID | The ID of the buffer message queue of the receiving port bound to the sending port (sending) |
| PsudoID | Virtual port user configuration number |
| DevHdr | Device handle of the underlying driver port |
| EmptyFlag | Whether the message buffer is empty |
| IsAssig | Whether to bind with the sending port (receive) |
Table II
Interface function and corresponding function
| Interface function | Function |
|---|---|
| socket( ) | Create a socket descriptor |
| bind( ) | Bind the socket to a specific TCP port |
| listen( ) | Listening socket |
| connect( ) | Send a connection request to the server (client-only) |
| accept( ) | Accept connection request (server exclusive) |
| send( ) | send data |
| recv( ) | Receive data |
| close( ) | Close socket |

Figure 6
Data sending process in partitioned operating system

Figure 7
Data receiving process in partitioned operating system