A batch data transmission method and device
A technology of batch data and transmission method, applied in the field of communication, can solve the problems of large timing error, lengthy operation time, cumbersome process, etc., to achieve the effect of reducing errors and shortening the time of data transmission
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0092] Embodiment 1 Batch data transmission method
[0093] like Image 6 As shown, an embodiment of the present invention provides a batch data transmission method, including the following steps:
[0094] Step 601: Generate n Modbus request messages, and send the n Modbus request messages in batches according to a preset sequence, where n is an integer greater than or equal to 1;
[0095] In an exemplary embodiment, the Modbus request message includes a Modbus RTU message or a Modbus TCP message.
[0096] In an exemplary embodiment, when the n Modbus request messages are sent in batches according to the preset order, the method further includes:
[0097] An exclusive identifier is set, and the exclusive identifier is used to prohibit the sending of other messages except the n Modbus request messages in the process of sending the n Modbus request messages in batches.
[0098] In this embodiment, when sending n Modbus request messages in batches, set the exclusive flag (Lock...
Embodiment 2
[0129] Embodiment 2 Batch data transmission device
[0130] An embodiment of the present invention further provides a batch data transmission apparatus, including a processor and a memory, wherein: the processor is configured to execute a program stored in the memory, so as to implement the steps of the method for batch data transmission as described in any of the above .
Embodiment 3
[0131] Embodiment 3 Batch data transmission device
[0132] like Figure 11 As shown, the embodiment of the present invention also provides a batch data transmission device, including a batch sending module 1101 and a batch receiving module 1102, wherein:
[0133] The batch sending module 1101 is configured to generate n Modbus request messages, and send the n Modbus request messages in batches according to a preset order, wherein n is an integer greater than or equal to 1;
[0134] The batch receiving module 1102 is used to receive m Modbus response messages returned within a preset timeout interval, and determine whether the batch transmission is successful according to the received Modbus response messages, where m is between 0 and n. integer between.
[0135] In an exemplary embodiment, the Modbus request message includes a Modbus RTU message or a Modbus TCP message; the Modbus response message includes a Modbus RTU message or a Modbus TCP message.
[0136] In an exempl...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


