CN115426393A - Method and device for realizing wireless control information interaction - Google Patents

Method and device for realizing wireless control information interaction Download PDF

Info

Publication number
CN115426393A
CN115426393A CN202210939725.1A CN202210939725A CN115426393A CN 115426393 A CN115426393 A CN 115426393A CN 202210939725 A CN202210939725 A CN 202210939725A CN 115426393 A CN115426393 A CN 115426393A
Authority
CN
China
Prior art keywords
slave
request message
information
master
slaves
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210939725.1A
Other languages
Chinese (zh)
Inventor
寇立康
张玉波
黄玲
范福基
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hollysys Automation Co Ltd
Original Assignee
Hangzhou Hollysys Automation Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hollysys Automation Co Ltd filed Critical Hangzhou Hollysys Automation Co Ltd
Priority to CN202210939725.1A priority Critical patent/CN115426393A/en
Publication of CN115426393A publication Critical patent/CN115426393A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The document discloses a method and a device for realizing wireless control information interaction, comprising the following steps: the host sends request messages to all slave machines which are controlled wirelessly according to a preset mode; and after the master sends the request messages to all the slaves, executing the processing of receiving the response messages. According to the information interaction of the wireless control, the host sends the request messages to all the slave machines and then executes the processing of receiving the response messages, so that the number of the slave machines interacting with the host in the polling period is increased, and technical support is provided for the scale application of the wireless control.

Description

Method and device for realizing wireless control information interaction
Technical Field
The present disclosure relates to, but not limited to, automation technology, and more particularly, to a method and apparatus for implementing wireless control information interaction.
Background
Wireless communication technologies currently used in the industry include: fourth generation mobile communication (4G), fifth generation mobile communication (5G), industrial mobile hotspots (WIFI), narrowband internet of things (NB-IoT), and the like. Wireless monitoring and wireless control are two applications of wireless communication in industry; the wireless monitoring has lower requirements on data transmission reliability and delay, so that various applications based on wireless communication are mature; wireless control has high requirements on reliability and real-time performance of data transmission, and thus, has fewer applications based on wireless communication. Fig. 1 is a topological diagram of a wireless communication network in the related art, and as shown in fig. 1, a communication time from a User Equipment (UE) to a Radio Remote Unit (RRU) in a 5G network is a transmission time over the air (TOA), generally, the TOA is 10 milliseconds, a time of a message from a first user equipment (UE 1) to a second user equipment (UE 2) in fig. 1 is about 2TOA, and in consideration of reliability transmission required in an industrial control process, when the UE1 sends a request message to the UE2, the UE2 must send a response message to the UE1, so that a loop delay over the air (RTT) from the UE1 to the UE2 at least includes 4 times of TOA, and in consideration of time consumption of forward and backward transmissions in the network and processing of a protocol stack, the RTT time from the UE1 to the UE2 is about 50 milliseconds, and the RTT is also a typical loop delay of the 5G in a wireless control application.
Fig. 2 is a schematic view of a wired control network in the related art, in which a master and a slave are connected through a bus network as shown in fig. 2; fig. 3 is a schematic diagram of a related art wireless control network, as shown in fig. 3, a master and a slave perform message transmission through a 5G network; the host and the slave interact in a question-and-answer mode no matter wired or wireless; fig. 4 is a communication interaction flow chart of wireless control in the related art, and as shown in fig. 4, the master sequentially performs communication interaction with each slave according to a predetermined slave arrangement sequence, that is, after the master sends a request message to the slave 1, the master needs to send a request message to the slave 2 after receiving a response message from the slave 1, and after receiving a response message from the slave 2, the master can send a request message to the slave 3. In the figure, in the interactive communication process between a master machine and a slave machine 1, the sending time length of a request message is recorded as t1, the delay time length of sending a response message after the slave machine receives the request message is recorded as t2, the sending time length of the response message is recorded as t3, and the interval time length of sending the request message to the next slave machine by the master machine is recorded as t4; assuming that the request messages sent by the master to the slaves are the same and the response messages sent by all the slaves are the same, the time duration of one-time interaction between the master and one slave in the 5G network is equal to the sum of t1, t2, t3 and t4, which is about 50 milliseconds.
A Distributed Control System (DCS) is a type of system with high automation control requirements, and generally requires a polling cycle of one-time wireless control to be not more than 200 milliseconds, and since the interaction duration between a master computer and a slave computer needs about 50 milliseconds, it is difficult to implement wireless control application based on a wireless communication technology in a scale in the DCS; how to realize the interaction between the master and the slave in the polling cycle and further realize the scale application of wireless control becomes a problem to be solved.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
The embodiment of the invention provides a method and a device for realizing wireless control information interaction, which can improve the number of slaves for realizing communication interaction with a host in a polling period and realize the scale application of wireless control.
The embodiment of the invention provides a method for realizing wireless control information interaction, which comprises the following steps:
the host sends request messages to all slave machines which are controlled wirelessly according to a preset mode;
and after the master sends the request messages to all the slaves, executing the processing of receiving the response messages.
On the other hand, an embodiment of the present invention further provides a computer storage medium, where a computer program is stored in the computer storage medium, and when the computer program is executed by a processor, the method for implementing wireless control information interaction is implemented.
In another aspect, an embodiment of the present invention further provides a terminal, including: a memory and a processor, the memory having a computer program stored therein; wherein, the first and the second end of the pipe are connected with each other,
the processor is configured to execute the computer program in the memory;
the computer program, when executed by the processor, implements a method of implementing wireless control information interaction as described above.
In another aspect, an embodiment of the present invention further provides a method for implementing wireless control information interaction, where the method includes:
the slave computer receives a request message from the host computer;
sending a response message to the host according to the received request message;
and the response message is sent after the master sends the request message to all the slaves performing wireless control.
In a further aspect, an embodiment of the present invention further provides a computer storage medium, where a computer program is stored in the computer storage medium, and when the computer program is executed by a processor, the method for implementing wireless control information interaction is implemented.
In another aspect, an embodiment of the present invention further provides a terminal, including: a memory and a processor, the memory having a computer program stored therein; wherein, the first and the second end of the pipe are connected with each other,
the processor is configured to execute the computer program in the memory;
the computer program, when executed by the processor, implements the method of wireless control information interaction as described above.
In another aspect, an embodiment of the present invention further provides an apparatus for implementing wireless control information interaction, where the apparatus includes: a first sending unit and a first receiving message; wherein, the first and the second end of the pipe are connected with each other,
the first sending unit is arranged as follows: sending request messages to all slave machines which are controlled wirelessly according to a preset mode;
the first receiving unit is configured to: and the first sending unit executes the processing of receiving the response message after sending the request message to all the slave machines.
In another aspect, an embodiment of the present invention further provides an apparatus for implementing wireless control information interaction, where the apparatus includes: a second receiving unit and a second transmitting unit; wherein, the first and the second end of the pipe are connected with each other,
the second receiving unit is configured to: receiving a request message from a host;
the second sending unit is configured to: sending a response message to the host according to the received request message;
and the response message is sent after the master sends the request message to all the slaves performing wireless control.
The technical scheme of the application includes: the method comprises the steps that a host sends request messages to all slave machines which are controlled wirelessly according to a preset mode; and after the master sends the request messages to all the slaves, executing the processing of receiving the response messages. According to the information interaction of the wireless control, the processing of receiving the response message is executed after the master sends the request message to all the slave machines, so that the number of the slave machines interacting with the master in the polling period is increased, and technical support is provided for the scale application of the wireless control.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the present invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and are not intended to limit the invention.
Fig. 1 is a topology diagram of a wireless communication network in the related art;
FIG. 2 is a schematic diagram of a wired control network in the related art;
FIG. 3 is a schematic diagram of a related art wireless control network;
FIG. 4 is a flow chart of communication interaction of a wireless control in the related art;
FIG. 5 is a schematic diagram illustrating interaction of a wireless control in the related art;
FIG. 6 is a schematic diagram illustrating an interaction of another wireless control in the related art;
fig. 7 is a flowchart of a method for implementing wireless control information interaction according to an embodiment of the present invention;
FIG. 8 is a flowchart illustrating another method for implementing wireless control information interaction according to an embodiment of the present invention;
fig. 9 is a block diagram of an apparatus for implementing wireless control information interaction according to an embodiment of the present invention;
FIG. 10 is a block diagram of another apparatus for implementing wireless control information interaction according to an embodiment of the present invention;
FIG. 11 is an interaction diagram of application example 1 of the present invention;
fig. 12 is a flowchart of an implementation of wireless control information interaction in application example 1 of the present invention;
fig. 13 is a flowchart of another implementation of wireless control information interaction in application example 1 of the present invention;
FIG. 14 is an interaction diagram of application example 2 of the present invention;
fig. 15 is a flowchart of an application example 2 of the present invention for implementing wireless control information interaction;
fig. 16 is a flowchart of another implementation of wireless control information interaction according to application example 2 of the present invention;
FIG. 17 is an interaction diagram of application example 3 of the present invention;
fig. 18 is a flowchart of an implementation of wireless control information interaction according to application example 3 of the present invention;
fig. 19 is a flowchart of another implementation of wireless control information interaction according to application example 3 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
The slave in the DCS comprises an input slave and an output slave; the request message sent by the host to the two slave machines is different from the received response message; fig. 5 is an interaction diagram of a wireless control in the related art, as shown in fig. 5, for an output slave, a host carries information for controlling an output state in a request message, that is, there is a load in the request message, and the loads for different output slave devices are likely to be different; after the output slave equipment receives the request message, feeding back response information for confirming the reception of the request message; the request message in the figure at least includes: a destination address of a slave receiving the request message, a source address (host address) transmitting the request message, and output data for state control; the response message at least comprises: the destination address (host address) of the response message and the source address of the slave that sent the response message are received. Fig. 6 is an interaction diagram of another wireless control in the related art, as shown in fig. 6, for an input slave, a request message sent by a host to the slave does not carry a load, and other information of the request message is generally the same except that addresses of the slaves are different; after receiving the request message, the input slave machine feeds back a response message containing self state information; the request message in the figure at least includes: receiving a destination address of a slave of the request message and a source address (host address) of the transmission request message; the response message at least comprises: and receiving the destination address (host address) of the response message and the state information of the slave machine sending the response message.
Fig. 7 is a flowchart of a method for implementing wireless control information interaction according to an embodiment of the present invention, as shown in fig. 7, including:
step 701, the host sends request messages to all slave machines which are controlled wirelessly according to a preset mode;
step 702, after the master sends the request message to all the slaves, the master executes the process of receiving the response message.
In an illustrative example, the radio control information in the embodiment of the present invention includes: a master machine and a slave machine which are in wireless control in a Distributed Control System (DCS) carry out interactive request messages and response messages.
According to the information interaction of the wireless control, the host sends the request messages to all the slave machines and then executes the processing of receiving the response messages, so that the number of the slave machines interacting with the host in the polling period is increased, and technical support is provided for the scale application of the wireless control.
In an exemplary embodiment, the request message in the embodiment of the present invention includes a first request message, and the sending, by the master, the request message to all the slaves performing wireless control in a preset manner includes:
when the slave machines are all input slave machines according to the predetermined slave machine information for wireless control, the master machine broadcasts and sends a first request message to each input slave machine;
wherein, the first request message includes: the address information of each input slave and the first information for triggering the input slave to feed back the state of the slave to the master are input.
In an exemplary embodiment, the slave information wirelessly controlled according to the embodiment of the present invention may be obtained based on a method for obtaining a slave when a question-and-answer interaction process is performed in the related art; the slave information wirelessly controlled in one illustrative example may include: the slave machines arrange sequence information.
In an exemplary embodiment, the request message in the embodiment of the present invention includes a second request message, and the sending, by the master, the request message to all the slaves performing wireless control in a preset manner includes:
when the slave machines comprise input slave machines and/or output slave machines, the corresponding second request messages are sequentially sent to the slave machines according to the preset slave machine arrangement sequence information;
when the slave is an input slave, the second request message comprises address information of the input slave and first information for triggering the input slave to feed back the state of the second request message to the master; when the slave is the output slave, the second request message includes address information of the output slave and second information for controlling the output state of the output slave.
In an exemplary embodiment, the request message in the embodiment of the present invention includes a third request message, and the sending, by the master, the request message to all the slaves performing wireless control according to a preset manner includes:
when the slave machines comprise input slave machines and/or output slave machines, the host machine broadcasts and sends more than one pre-constructed third request message to each slave machine;
wherein, the third request message includes: the slave control system comprises address information of all slaves, first information sent to more than one input slave to trigger the input slave to feed back the state of the slave to a master, and/or second information sent to more than one output slave to control the output state of the output slave.
In an exemplary embodiment, after the master sends the request messages to all the slaves and before the master performs the processing of receiving the response messages, the method in the embodiment of the present invention further includes:
the host computer opens a communication window for receiving the response message.
In an exemplary embodiment, after the master sends the request messages to all the slaves and before the master performs the processing of receiving the response messages, the method in the embodiment of the present invention further includes:
the master machine sends a preset broadcast message to each slave machine to inform each slave machine to send a response message.
In an exemplary embodiment, when the master broadcasts and sends more than one pre-constructed third request message to each slave, the method in the embodiment of the present invention further includes:
the host determines whether the third request message sent by broadcasting is the last one;
and when the host determines that the third request message sent by broadcasting is the last one, adding notification information for switching the host to execute processing of receiving response messages in the third request message so as to notify each slave to send the response messages.
The embodiment of the invention also provides a computer storage medium, wherein a computer program is stored in the computer storage medium, and when the computer program is executed by a processor, the method for realizing the wireless control information interaction is realized.
An embodiment of the present invention further provides a terminal, including: a memory and a processor, the memory having stored therein a computer program; wherein the content of the first and second substances,
the processor is configured to execute the computer program in the memory;
the computer program, when executed by a processor, implements a method of implementing wireless control information interaction as described above.
Fig. 8 is a flowchart of another method for implementing wireless control information interaction according to an embodiment of the present invention, as shown in fig. 8, including:
step 801, receiving a request message from a host by a slave;
step 802, sending a response message to the host according to the received request message;
the response message is sent after the master sends the request message to all the slaves performing wireless control.
According to the information interaction of the wireless control, the processing of receiving the response message is executed after the master sends the request message to all the slave machines, so that the number of the slave machines interacting with the master in the polling period is increased, and technical support is provided for the scale application of the wireless control.
In an exemplary embodiment, when the request message is the first request message, the slave device sends a response message to the host device according to the first request message after receiving the first request message.
In an exemplary embodiment, the sending of the request message includes sending, by the host, a second request message according to the predetermined slave scheduling order information, and before sending, according to the received request message, a response message to the host, the sending of the response message includes:
the slave computer receives the broadcast message from the host computer;
the broadcast message is used for triggering the slave to send a response message.
In an exemplary embodiment, the sending of a request packet in an embodiment of the present invention includes sending, by broadcast, at least one pre-constructed third request packet by a host, where a last third request packet includes notification information of a host switch to a response cycle, and sending a response packet to the host according to a received request packet, and includes:
the slave machine determines the notification information and the first information or the second information sent to the slave machine from more than one third request message;
sending a response message to the host according to the determined first information or second information;
wherein, the third request message includes: the slave control system comprises address information of all slaves, first information sent to more than one input slave to trigger the input slave to feed back the state of the slave to a master, and/or second information sent to more than one output slave to control the output state of the output slave.
The embodiment of the invention also provides a computer storage medium, wherein a computer program is stored in the computer storage medium, and when the computer program is executed by a processor, the method for realizing the wireless control information interaction is realized.
An embodiment of the present invention further provides a terminal, including: a memory and a processor, the memory having stored therein a computer program; wherein the content of the first and second substances,
the processor is configured to execute the computer program in the memory;
the computer program, when executed by a processor, implements a method of implementing wireless control information interaction as described above.
Fig. 9 is a block diagram of a structure of a device for implementing wireless control information interaction according to an embodiment of the present invention, as shown in fig. 9, including: a first sending unit and a first receiving message; wherein the content of the first and second substances,
the first sending unit is arranged as follows: sending request messages to all slave machines which are controlled wirelessly according to a preset mode;
the first receiving unit is configured to: after the first transmission unit transmits the request messages to all the slaves, the first transmission unit executes the processing of receiving the response messages.
In an exemplary embodiment, the request message in the embodiment of the present invention includes a first request message.
In an exemplary embodiment, the first sending unit of the embodiment of the present invention is configured to:
when the slave machines are all input slave machines according to the preset slave machine information for wireless control, the master machine broadcasts and sends a first request message to each input slave machine;
wherein, the first request message includes: the address information of each input slave and the first information for triggering the input slave to feed back the state of the slave to the master are input.
In an exemplary embodiment, the request message in the embodiment of the present invention includes a second request message.
In an exemplary embodiment, the first sending unit of the embodiment of the present invention is configured to:
when the slave machines comprise input slave machines and/or output slave machines, corresponding second request messages are sequentially sent to the slave machines according to predetermined slave machine arrangement sequence information;
when the slave is an input slave, the second request message comprises address information of the input slave and first information for triggering the input slave to feed back the state of the second request message to the master; when the slave is the output slave, the second request message includes address information of the output slave and second information for controlling the output state of the output slave.
In an exemplary embodiment, the request message in the embodiment of the present invention includes a third request message.
In an exemplary embodiment, the first sending unit of the embodiment of the present invention is configured to:
when the slave machines comprise input slave machines and/or output slave machines, the host machine broadcasts and sends more than one pre-constructed third request message to each slave machine;
wherein, the third request message includes: the slave control system comprises address information of all slaves, first information sent to more than one input slave to trigger the input slave to feed back the state of the slave to a master, and/or second information sent to more than one output slave to control the output state of the output slave.
In an exemplary embodiment, the first receiving unit of the embodiment of the present invention is further configured to: and after the request messages are sent to all the slave machines and before the processing of receiving the response messages is executed, a communication window for receiving the response messages is opened.
In an exemplary embodiment, after the first sending unit sends the request message to all the slaves, the first sending unit further sets that: and sending a preset broadcast message to each slave machine to inform each slave machine of sending a response message.
In an exemplary embodiment, the first sending unit in the embodiment of the present invention is further configured to:
determining whether the third request message sent by broadcasting is the last one;
and when the third request message sent by broadcasting is determined to be the last message, adding notification information for switching the host to execute processing of receiving the response message in the third request message so as to notify each slave machine of sending the response message.
Fig. 10 is a block diagram of another apparatus for implementing wireless control information interaction according to another embodiment of the present invention, as shown in fig. 10, including: a second receiving unit and a second transmitting unit; wherein the content of the first and second substances,
the second receiving unit is configured to: receiving a request message from a host;
the second sending unit is configured to: sending a response message to the host according to the received request message;
the response message is sent after the master sends the request message to all the slaves performing wireless control.
In an exemplary embodiment, when the request message is a first request message, the slave device sends a response message to the host device according to the first request message after receiving the first request message.
In an exemplary embodiment, the second receiving unit of the embodiment of the present invention is further configured to:
and receiving the broadcast message from the host.
In an exemplary embodiment, the second sending unit in the embodiment of the present invention is configured to: and sending a response message according to the received broadcast message.
In an exemplary embodiment, the second sending unit in the embodiment of the present invention is configured to:
determining notification information and first information or second information sent to the notification information and the notification information from more than one received third request message;
sending a response message to the host according to the determined first information or second information;
wherein, the third request message includes: the slave control system comprises address information of all the slaves, first information which is sent to one or more input slaves to trigger the input slaves to feed back the state of the slave to a master, and/or second information which is sent to one or more output slaves to control the output state of the output slaves.
The following is a brief description of the embodiments of the present invention by way of application examples, which are only used to illustrate the embodiments of the present invention and are not used to limit the scope of the present invention.
Application example 1
Fig. 11 is an interaction diagram of an application example 1 of the present invention, and as shown in fig. 11, all the slaves in the system are input slaves, and the master broadcasts and sends a first request message to all the slaves; the first request message includes: the address information of each input slave machine and the first information for triggering the input slave machine to feed back the state of the input slave machine to the host machine are obtained. In the figure, "X" indicates that the message has not been sent.
Fig. 12 is a flowchart of an application example 1 of the present invention for implementing wireless control information interaction, as shown in fig. 12, including:
step 1201, the host starts information polling processing;
step 1202, the host determines that all the slave machines are input slave machines according to the slave machine arrangement sequence information;
step 1203, the master machine constructs a first request message and sends the first request message to all slave machines; wherein, the first request message includes: the method comprises the steps that address information of each input slave machine and first information for triggering the input slave machine to feed back the state of the input slave machine to a host machine are obtained; in an exemplary embodiment, the first request message further includes: each input slave has corresponding response delay information.
Step 1204, the host computer opens a communication window for receiving the response message, and receives the response message;
step 1205, the master determines whether the slave computer which does not send the response message is included, and if the slave computer which does not send the response message is included, step 12060 is executed; when all the slaves send response messages, step 12061 is executed;
step 12060, when determining whether the number of times of sending the first request message to the slave is less than the preset number of times and the number of times of sending the first request message to the slave is less than the preset number of times, executing step 120600; when the number of times of sending the first request message to the slave is greater than or equal to the preset number of times, executing step 12061;
in an exemplary instance, the preset number of times may be determined according to a polling period; generally, the preset number can be obtained by dividing the polling period by the time length of one interaction between the master and the slave.
Step 120600, resending the first request message to the slave machines which do not send the response message; after performing step 120600, the host computer continues to perform the process of step 1204.
Step 12061, the information polling of the current round is finished.
Fig. 13 is a flowchart of another implementation of wireless control information interaction in application example 1 of the present invention, as shown in fig. 13, including:
step 1301, the slave waits for receiving a first request message; the first request message includes: the method comprises the steps of inputting address information of each slave, triggering the input slave to feed back first information of the state of the input slave to a master and responding delay information corresponding to each input slave.
Step 1302, the slave machine determines whether a first request message is received; when the first request message is not received, re-executing the step 1301; when receiving the first request message, executing step 1303;
step 1303, according to the first request message, judging that the message is a request message sent by the host computer in a broadcast manner, and constructing a response message;
and 1304, replying a response message.
In an exemplary example, the first request message of the application example may include response delay information of each slave, or may not include the response delay information; when the slave machine contains the response delay information, the application example slave machine of the invention can send the response message according to the response delay information; when the slave does not include the response delay information, the application example may set the slave to send the response message immediately.
The application example is used for broadcasting and sending the first request message aiming at the condition that all the slave machines are input during the mounting of the system host, so that the redundant interaction times of the system are reduced, the number of the slave machines interacting with the host is increased and the support is provided for the wireless control scale application compared with a question-and-answer interaction mode in the related technology.
Application example two
Fig. 14 is an interaction schematic diagram of an application example 2 of the present invention, as shown in fig. 14, in order to reduce a system information polling cycle, the application example sequentially sends second request messages to an input slave machine and an output slave machine; when the slave is an input slave, the second request message comprises address information of the input slave and first information for triggering the input slave to feed back the state of the second request message to the master; when the slave is the output slave, the second request message includes address information of the output slave and second information for controlling the output state of the output slave. After the master machine sends the second request messages to all the slave machines, the master machine sends preset broadcast messages to all the slave machines so as to inform all the slave machines to send response messages. The slave machine feeds back a response message according to the received broadcast message; the number of the request messages in the application example 2 is not reduced, but the request messages and the response messages are respectively transmitted in a centralized manner, so that the transmission interval of the messages is reduced, the parallelism of the polling process of the system is improved, and the adaptability is higher.
Fig. 15 is a flowchart of an application example 2 of the present invention for implementing wireless control information interaction, as shown in fig. 15, including:
step 1501, the host starts information polling processing;
step 1502, the host sends a second request message to the slave in sequence according to the slave arrangement sequence information;
step 1503, after the master sends the second request messages to all the slaves, the master sends broadcast messages to inform the slaves of sending response messages; namely, the host enters a response period;
step 1504, the host receives a response message;
step 1505, the master determines whether the slave machine which does not send the response message is included, if the slave machine which does not send the response message is included, the step 15060 is executed; when all the slaves send response messages, step 15061 is executed;
step 15060, when it is determined whether the number of times of sending the second request message to the slave is smaller than a preset number of times and the number of times of sending the second request message to the slave is smaller than the preset number of times, step 150600 is executed; when the number of times of sending the second request message to the slave is greater than or equal to the preset number of times, executing step 15061;
in an exemplary instance, the preset number of times may be determined according to a polling period; the general preset times can be obtained by dividing the polling period by the time length of one interaction between the master and the slave.
Step 150600, resending the second request message to the slave that did not send a response message; and returns the value of step 1504.
And step 15061, the information polling of the current round is finished.
Fig. 16 is a flowchart of another implementation of wireless control information interaction according to application example 2 of the present invention, as shown in fig. 13, including:
step 1601, the slave waits for receiving a second request message;
step 1602, the slave determines whether a second request message is received; when the second request message is not received, re-executing step 1601; when receiving the second request message, execute step 1603;
step 1603, determining whether a broadcast message informing to send a response message is received from the host; when determining that the broadcast message is received, execute step 1604; when the broadcast message is not received, continue to execute step 1603;
step 1604, constructing a response message according to the received second request message;
and 1605, replying a response message.
In an exemplary embodiment, if the second request message may or may not include the response delay information; when the slave machine contains the response delay information, the slave machine of the application example of the invention can send the response message according to the response delay information; when the slave does not include the response delay information, the application example may set the slave to send the response message immediately.
Compared with a question-answer interaction mode in the related technology, the application example reduces the time interval for realizing wireless control information interaction, and reduces the time consumption for realizing wireless control information interaction by the system due to the improvement of the system parallelism; the number of the slave machines interacting with the host machine is increased, and support is provided for wireless control scale application.
Application example three
Fig. 17 is an interaction schematic diagram of an application example 3 of the present invention, as shown in fig. 17, in order to reduce a system information polling cycle, the application example broadcasts and sends more than one constructed third request messages to an input slave and an output slave; compared with the application example 1 and the application example 2, the application example 3 reduces the number of request messages to be sent and reduces the time consumption of system polling in a scenario where the application includes an input slave and an output slave.
Fig. 18 is a flowchart of an application example 3 of the present invention for implementing wireless control information interaction, as shown in fig. 18, including:
step 1801, the host computer starts information polling processing;
step 1802, the master machine constructs more than one third request message sent to all slave machines; wherein, the third request message includes: the slave control system comprises address information of all slaves, first information sent to more than one input slave to trigger the input slave to feed back the state of the slave to a master, and/or second information sent to more than one output slave to control the output state of the output slave. The last third request message sent by broadcasting is added with notification information for switching the host to execute the processing of receiving the response message, and each slave can be directly notified to send the response message through the notification information.
In an exemplary embodiment, all the third request messages may be sent to all the slaves in a broadcast manner;
in an exemplary embodiment, the third request message is constructed according to the following manner: adding address information of the slave machine sent by the third request message into the constructed message for other request messages except the last third request message, and adding first information or second information corresponding to each slave machine receiving the third request message into the third request message; in the last third request message, besides adding the first information and the second information of the slave machines which do not receive the third request message according to the above mode, the notification information that the master machine switches to execute the processing of receiving the response message is added. For example, one third request message may add request message information of at most n slaves, and when the system includes m slaves, first add addresses of the slaves 1 to the slave n and corresponding first information and second information of the slaves 1 to the slave n in the first third request message; adding addresses of the slaves n +1 to 2n and corresponding first information and second information of the slaves n +1 to 2n in the second third request message; repeating the above steps until the last third request message is reached, and if the request message is not sent by the residual slave computer m at the moment; at this time, the first information or the second information of the slave m is added to the last third request message, and in addition, address information of all the slaves and notification information for switching the master itself to execute the processing of the received response message are added to the last third request message.
In an exemplary embodiment, the number of the third request messages in the present application example may be determined according to a maximum load requirement of a single communication message set by the protocol.
Step 1803, the host sends each constructed third request message to all the slaves in a broadcast manner;
step 1804, the host receives a response message;
step 1805, the master determines whether the slave that does not send a response message is included, and if the slave that does not send a response message is included, step 18060 is executed; when all the slave machines send response messages, executing step 18061;
18060, if it is determined that the number of times of sending the third request message to the slave is less than the preset number of times and the number of times of sending the third request message to the slave is less than the preset number of times, executing 180600; when the number of times of sending the third request message to the slave is greater than or equal to the preset number of times, executing step 18061;
in an exemplary instance, the preset number of times may be determined according to a polling period; the general preset number can be obtained by dividing the polling period by the time length of one interaction between the master and the slave.
Step 180600, resending the third request message to the slave that did not send the response message;
and step 18061, finishing the information polling of the current round.
Fig. 19 is a flowchart of another implementation of wireless control information interaction according to application example 3 of the present invention, as shown in fig. 19, including:
step 1901, the slave waits for receiving a third request message;
step 1902, the slave machine determines whether a third request message is received; when the third request message is not received, step 1901 is executed again; when receiving the third request message, execute step 1903;
step 1903, the slave determines to receive the last third request message containing the notification information; executing step 1904 when determining that the last third message is received; when the last third message is not received, continue to execute step 1903;
step 1904, analyzing the received third request message to obtain the first information or the second information sent by the host to itself, and constructing a response message according to the analysis result;
step 1905, reply response message.
In an exemplary embodiment, if the third request message may or may not include response delay information; when the slave machine contains the response delay information, the application example slave machine of the invention can send the response message according to the response delay information; when the slave does not include the response delay information, the application example may set the slave to send the response message immediately.
Compared with a question-answer interaction mode in the related technology, the application example reduces the time interval for realizing wireless control information interaction, improves the system parallelism and reduces the time consumption for realizing wireless control information interaction by the system; the number of the slave machines interacting with the host machine is increased, and support is provided for wireless control scale application.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.

Claims (14)

1. A method for realizing wireless control information interaction comprises the following steps:
the method comprises the steps that a host sends request messages to all slave machines which are controlled wirelessly according to a preset mode;
and after the master sends the request messages to all the slaves, executing the processing of receiving the response messages.
2. The method according to claim 1, wherein the request message includes a first request message, and the master sends the request message to all the slaves performing wireless control according to a preset manner, including:
when the slave machines are all input slave machines according to the predetermined slave machine information for wireless control, the master machine broadcasts and sends the first request message to each input slave machine;
wherein, the first request message includes: the address information of each input slave machine and the first information triggering the input slave machine to feed back the state of the input slave machine to the master machine.
3. The method according to claim 1, wherein the request message includes a second request message, and the master sends the request message to all the slaves performing wireless control according to a preset manner, including:
when the slave machines comprise input slave machines and/or output slave machines, the corresponding second request messages are sequentially sent to the slave machines according to the preset slave machine arrangement sequence information;
when the slave is an input slave, the second request message includes address information of the input slave and first information for triggering the input slave to feed back the state of the second request message to the host; when the slave is an output slave, the second request message includes address information of the output slave and second information for controlling the output state of the output slave.
4. The method according to claim 1, wherein the request message includes a third request message, and the sending, by the master, the request message to all the slaves performing wireless control in a preset manner includes: when the slave machines comprise input slave machines and/or output slave machines, the host machine broadcasts and sends more than one pre-constructed third request message to each slave machine;
wherein, the third request message includes: the slave control system comprises address information of all slaves, first information which is sent to one or more input slaves to trigger the input slaves to feed back own states to the master, and/or second information which is sent to one or more output slaves to control output states of the output slaves.
5. The method according to claim 2, wherein after the master sends the request message to all the slaves and before the processing of receiving the response message is performed, the method further comprises:
and the host computer opens a communication window for receiving the response message.
6. The method according to claim 3, wherein after the master sends the request message to all the slaves and before the processing for receiving the response message is performed, the method further comprises:
and the master machine sends a preset broadcast message to each slave machine so as to inform each slave machine of sending the response message.
7. The method according to claim 4, wherein when the master machine broadcasts and sends more than one pre-constructed third request message to each slave machine, the method further comprises:
the host determines whether the third request message sent by broadcasting is the last message;
and when the master determines that the third request message sent by broadcasting is the last message, adding notification information for switching the master to execute processing of receiving response messages in the third request message so as to notify each slave to send the response messages.
8. A method for realizing wireless control information interaction comprises the following steps:
the slave computer receives a request message from the host computer;
sending a response message to the host according to the received request message;
and the response message is sent after the master sends the request message to all the slaves under wireless control.
9. The method according to claim 8, wherein the request message includes a second request message sent by the master according to the predetermined slave scheduling order information, and before sending the response message to the master according to the received request message, the method further includes:
the slave computer receives a broadcast message from the host computer;
and the broadcast message is used for triggering the slave machine to send the response message.
10. The method according to claim 8, wherein the request message includes more than one third request message that is constructed in advance by broadcasting and sending by the host, and the last third request message includes notification information of a host switch-to-response cycle, and the sending a response message to the host according to the received request message includes:
the slave machine determines the notification information and the first information or the second information sent to the slave machine from the received more than one third request message;
sending the response message to the host according to the determined first information or second information;
wherein, the third request message includes: the slave control system comprises address information of all the slaves, first information which is sent to one or more input slaves to trigger the input slaves to feed back the state of the slave to a master, and/or second information which is sent to one or more output slaves to control the output state of the output slaves.
11. A computer storage medium having a computer program stored therein, the computer program when executed by a processor implementing the method of implementing wireless control information interaction according to any one of claims 1-7 or 8-10.
12. A terminal, comprising: a memory and a processor, the memory having a computer program stored therein; wherein the content of the first and second substances,
the processor is configured to execute the computer program in the memory;
the computer program, when executed by the processor, implements a method of implementing wireless control information interaction as recited in any of claims 1-7 or 8-10.
13. An apparatus for implementing wireless control information interaction, comprising: a first sending unit and a first receiving message; wherein the content of the first and second substances,
the first sending unit is arranged as follows: sending request messages to all slave machines which are controlled wirelessly according to a preset mode;
the first receiving unit is configured to: and the first sending unit executes the processing of receiving the response message after sending the request message to all the slave machines.
14. An apparatus for implementing wireless control information interaction, comprising: a second receiving unit and a second transmitting unit; wherein the content of the first and second substances,
the second receiving unit is configured to: receiving a request message from a host;
the second sending unit is configured to: sending a response message to the host according to the received request message;
and the response message is sent after the master sends the request message to all the slaves performing wireless control.
CN202210939725.1A 2022-08-05 2022-08-05 Method and device for realizing wireless control information interaction Pending CN115426393A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210939725.1A CN115426393A (en) 2022-08-05 2022-08-05 Method and device for realizing wireless control information interaction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210939725.1A CN115426393A (en) 2022-08-05 2022-08-05 Method and device for realizing wireless control information interaction

Publications (1)

Publication Number Publication Date
CN115426393A true CN115426393A (en) 2022-12-02

Family

ID=84197260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210939725.1A Pending CN115426393A (en) 2022-08-05 2022-08-05 Method and device for realizing wireless control information interaction

Country Status (1)

Country Link
CN (1) CN115426393A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230247091A1 (en) * 2020-07-29 2023-08-03 Inspur Suzhou Intelligent Technology Co., Ltd. Method and System for Achieving High Availability of Service under High-Load Scene in Distributed System

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954213A (en) * 2015-04-23 2015-09-30 光一科技股份有限公司 Arbitration bus-free networking system applicable to intelligent capacitor
CN111200844A (en) * 2019-12-31 2020-05-26 苏州卓彩智能科技有限公司 Multi-slave machine bidirectional communication method
WO2021093540A1 (en) * 2019-11-13 2021-05-20 深圳竹芒科技股份有限公司 Master/slave communication system, method for identifying positions of slave machines, and appartus for leasing mobile power source
CN114422288A (en) * 2021-12-29 2022-04-29 厦门诚通达智能科技有限公司 Communication system based on Modbus protocol

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954213A (en) * 2015-04-23 2015-09-30 光一科技股份有限公司 Arbitration bus-free networking system applicable to intelligent capacitor
WO2021093540A1 (en) * 2019-11-13 2021-05-20 深圳竹芒科技股份有限公司 Master/slave communication system, method for identifying positions of slave machines, and appartus for leasing mobile power source
CN111200844A (en) * 2019-12-31 2020-05-26 苏州卓彩智能科技有限公司 Multi-slave machine bidirectional communication method
CN114422288A (en) * 2021-12-29 2022-04-29 厦门诚通达智能科技有限公司 Communication system based on Modbus protocol

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230247091A1 (en) * 2020-07-29 2023-08-03 Inspur Suzhou Intelligent Technology Co., Ltd. Method and System for Achieving High Availability of Service under High-Load Scene in Distributed System
US11736562B1 (en) * 2020-07-29 2023-08-22 Inspur Suzhou Intelligent Technology Co., Ltd. Method and system for achieving high availability of service under high-load scene in distributed system

Similar Documents

Publication Publication Date Title
CN111385765B (en) Information transmission method and terminal
CN108055111B (en) Data transmission method and device
WO2020063742A1 (en) Resource allocation method and apparatus in device-to-device communication
CN105519223B (en) Terminal equipment capability reporting method and device
CN107370573B (en) Method and equipment for transmitting downlink data
CN114501340B (en) MBS receiving method, MBS transmitting device, terminal and base station
CN111818493B (en) Data transmission method, wireless network system, node, and readable storage medium
KR102021000B1 (en) How to Transmit Channel Status Information, Access Points, and Stations
CN111770578B (en) Resource determination method, device and computer readable storage medium
JP4586906B2 (en) Wireless communication apparatus, program, wireless communication method, and wireless communication system
CN104620528A (en) Base station and multicast data sending processing method
CN112165413B (en) Equipment state reporting method and device and electronic device
CN110870237A (en) Data block based transmission
CN115426393A (en) Method and device for realizing wireless control information interaction
CN113784388A (en) Data transmission method, device, equipment and storage medium
CN110912654B (en) Data retransmission method, gateway device, terminal device, and storage medium
CN111835626B (en) LoRa communication method, loRa server gateway and readable storage medium
US20230403735A1 (en) Message Transmission Method, Terminal and Storage Medium
CN115843001A (en) Communication method, communication device, communication node and storage medium
CN111314036B (en) CPU (Central processing Unit) occupation time determination method and device for multi-PDCCH (physical Downlink control channel) repeated transmission scene, storage medium and terminal
CN116508377A (en) Resource allocation method and device under multi-connection scene
CN110677356B (en) Bus communication method, communication basic period determining method and device
KR20230025455A (en) Data transmission method and device
CN104427599A (en) Communication Apparatus And Communication Method
CN115499932B (en) Communication method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination