Sending and receiving method for multi-client access continuous transmission of embedded real-time system
The invention relates to the embedded field, and particularly discloses a sending and receiving method for multi-client access continuous transmission of an embedded real-time system, which comprises the following steps of: completing the initialization of a sending end, and creating a plurality of...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention relates to the embedded field, and particularly discloses a sending and receiving method for multi-client access continuous transmission of an embedded real-time system, which comprises the following steps of: completing the initialization of a sending end, and creating a plurality of array caches; creating a UDP receiving task thread and a UDP sending task thread; when a transmitting end needs to transmit a data packet, calling a UDP (User Datagram Protocol) transmitting task thread, writing a data head, an extension head and data content into the array cache, packing into the data packet, and transmitting the data packet; judging whether the data packet needs to respond; if not, sending is successful; if yes, calling a UDP (User Datagram Protocol) receiving task thread to receive response data, and detecting whether all clients corresponding to the equipment response list feed back correct response data to the data packet or not within preset time; and otherwise, resending the data packet. Acc |
---|