A dual-protocol stack dual-network port manufacturing message specification communication system and method
A technology for manufacturing message specifications and communication systems, applied in the field of embedded systems, can solve problems such as heavy workload and unstable communication programs, and achieve the effect of reducing system risks and costs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] figure 2 Describes the processing details in the MMS3 task. Initialization 1 is to create a listening socket for the LWIP protocol stack 7, which is used to listen to the network connection from the new network port. In MMS message receiving 2, add the LWIP socket receiving function to receive messages. In the socket receiving function, the socket adopts non-blocking mode, and the select function is used to monitor the socket file descriptor to prevent the receiving process from blocking here and affecting another Receive packets from the network port. In message analysis 3, the socket pointer of LWIP is added to the original message receiving structure, and the default value is empty. Any message received by the NetX socket will not be assigned a value. If the message received by the LWIP socket Then assign the pointer of the receiving socket to this variable. If this variable is empty, it must be the data received by the NetX socket. If it is not empty, it is the da...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

