CN112084134A - Multistage cascade system control method and multistage cascade system - Google Patents
Multistage cascade system control method and multistage cascade system Download PDFInfo
- Publication number
- CN112084134A CN112084134A CN202010958699.8A CN202010958699A CN112084134A CN 112084134 A CN112084134 A CN 112084134A CN 202010958699 A CN202010958699 A CN 202010958699A CN 112084134 A CN112084134 A CN 112084134A
- Authority
- CN
- China
- Prior art keywords
- slave
- identity information
- host
- cascade system
- master
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000010586 diagram Methods 0.000 description 14
- 238000004891 communication Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/16—Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
- G06F15/163—Interprocessor communication
- G06F15/173—Interprocessor communication using an interconnection network, e.g. matrix, shuffle, pyramid, star, snowflake
- G06F15/17337—Direct connection machines, e.g. completely connected computers, point to point communication networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/16—Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
- G06F15/177—Initialisation or configuration control
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Small-Scale Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application provides a control method of a multistage cascade system and the multistage cascade system. The master machine sends a configuration instruction to the connected slave machines; each slave machine sequentially receives a configuration instruction transmitted by the superior equipment, sets identity information according to a target ID in the configuration instruction, modifies the target ID in the configuration instruction when the inferior equipment exists, and transmits the modified configuration instruction to the inferior equipment; after identity information is set by each slave, feeding back the corresponding identity information to the host; the host updates the waiting time according to the first time; and when the host does not receive new identity information after the waiting time, the host counts the identity information of all the slave machines in the cascade system according to the received identity information. By setting the waiting time, the identity information of all the slave machines in the cascade system can be accurately acquired by the host, the host is prevented from waiting for the feedback of the slave machines for a long time, and the time is saved.
Description
Technical Field
The present disclosure relates to the field of communications, and in particular, to a control method for a multi-stage cascade system and a multi-stage cascade system.
Background
With the development of society and scientific progress, internet devices are widely used. What is particularly important in the internet is the manner in which devices communicate and connect. Such as communication and connection between the master and slave. The existing master-slave communication has two modes: a point-to-point mode bus connection or a 1-drop multimode bus connection.
While the point-to-point mode bus connection is mainly used for data command transmission between the master and the slave. When the number of the slave machines is increased, the number of the buses is multiplied, the number of the control ports required by the host machine is increased, and the routing of the buses is very complicated. Although the 1-hanging multi-mode bus connection can solve the problem of complex routing, when the number of slave machines is increased, the length of a control bus is increased, the signal quality is reduced, and the anti-interference capability is reduced.
Disclosure of Invention
The present application provides a method for controlling a multi-stage cascade system and a multi-stage cascade system, so as to solve the above problems.
In order to achieve the above purpose, the embodiments of the present application employ the following technical solutions:
in a first aspect, an embodiment of the present application provides a method for controlling a multi-stage cascade system, where the cascade system includes a master and at least 1 slave, and the master and the at least 1 slave are sequentially connected in series;
the master sends a configuration instruction to a connected slave, wherein the configuration instruction comprises a target ID;
each slave machine sequentially receives a configuration instruction transmitted by a superior device, sets identity information according to a target ID in the configuration instruction, modifies the target ID in the configuration instruction when the inferior device exists, and transmits the modified configuration instruction to the inferior device;
the upper-level equipment is a slave or the host connected with the front end of the slave, and the lower-level equipment is a slave connected with the rear end of the slave;
after identity information is set by each slave, feeding back the corresponding identity information to the host;
the host updates the waiting time according to a first time, wherein the first time is the corresponding time when the host receives the identity information fed back by each slave, and the waiting time is the maximum time difference between the identity information fed back by two adjacent times;
and when the host does not receive new identity information after the waiting time, the host counts the identity information of all the slave machines in the cascade system according to the received identity information.
In a second aspect, an embodiment of the present application provides a multi-stage cascade system, where the cascade system includes a master and at least 1 slave, and the master and the at least 1 slave are sequentially connected in series;
the master is used for sending a configuration instruction to the connected slave, wherein the configuration instruction comprises a target ID;
each slave is used for sequentially receiving the configuration instruction transmitted by the superior device, setting identity information according to the target ID in the configuration instruction, modifying the target ID in the configuration instruction when the inferior device exists, and transmitting the modified configuration instruction to the inferior device;
the upper-level equipment is a slave or the host connected with the front end of the slave, and the lower-level equipment is a slave connected with the rear end of the slave;
each slave machine is also used for feeding back the corresponding identity information to the host machine after the identity information is set;
the master is further configured to update a waiting time according to a first time, where the first time is a time corresponding to the master receiving the identity information fed back by each slave, and the waiting time is a maximum time difference between two adjacent times of receiving the identity information fed back;
and when the host is also used for not receiving new identity information after the waiting time, the host counts the identity information of all the slave machines in the cascade system according to the received identity information.
Compared with the prior art, the control method of the multistage cascade system and the multistage cascade system provided by the embodiment of the application have the beneficial effects that: the master machine sends a configuration instruction to the connected slave machines; each slave machine sequentially receives a configuration instruction transmitted by the superior equipment, sets identity information according to a target ID in the configuration instruction, modifies the target ID in the configuration instruction when the inferior equipment exists, and transmits the modified configuration instruction to the inferior equipment; after identity information is set by each slave, feeding back the corresponding identity information to the host; the host updates the waiting time according to the first time, wherein the waiting time is the maximum time difference between the two adjacent times of receiving the fed back identity information; and when the host does not receive new identity information after the waiting time, the host counts the identity information of all the slave machines in the cascade system according to the received identity information. By setting the waiting time, the identity information of all the slave machines in the cascade system can be accurately acquired by the host, the feedback that the host waits for the slave machines for a long time is avoided, and the time is saved.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and it will be apparent to those skilled in the art that other related drawings can be obtained from the drawings without inventive effort.
FIG. 1 is a schematic diagram of a peer-to-peer mode provided by an embodiment of the present application;
FIG. 2 is a schematic diagram of another peer-to-peer mode provided in accordance with an embodiment of the present application;
fig. 3 is a schematic diagram of a 1-hook multimode according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another peer-to-peer mode provided by an embodiment of the present application;
FIG. 5 is a schematic diagram of another 1-hanging multi-mode provided by an embodiment of the present application;
fig. 6 is a schematic connection diagram of a multi-stage cascade system provided in an embodiment of the present application;
fig. 7 is a schematic flowchart of a control method of a multi-stage cascade system according to an embodiment of the present disclosure;
fig. 8 is a signaling diagram of an interaction of a multi-stage cascade system according to an embodiment of the present application;
fig. 9 is a schematic diagram illustrating the substeps of S202 according to an embodiment of the present application;
fig. 10 is a schematic flowchart of another control method of a multi-stage cascade system according to an embodiment of the present disclosure;
fig. 11 is another schematic flow chart of a control method of a multi-stage cascade system according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
In the description of the present application, it should be noted that the terms "upper", "lower", "inner", "outer", and the like indicate orientations or positional relationships based on orientations or positional relationships shown in the drawings or orientations or positional relationships conventionally found in use of products of the application, and are used only for convenience in describing the present application and for simplification of description, but do not indicate or imply that the referred devices or elements must have a specific orientation, be constructed in a specific orientation, and be operated, and thus should not be construed as limiting the present application.
In the description of the present application, it is also to be noted that, unless otherwise explicitly specified or limited, the terms "disposed" and "connected" are to be interpreted broadly, e.g., as being either fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Existing buses are mainly divided into two types: first, a point-to-point mode bus; and the second, 1-hanging multi-mode bus.
Point-to-point mode bus as shown in fig. 1, the point-to-point mode bus is mainly used for data command transmission between the master and the slave. When the number of the slaves is increased, the number of the buses is multiplied, and the number of the control ports required by the master is also increased, as shown in fig. 2.
1-pair multimode bus as shown in fig. 3, 1 bus carries a plurality of slaves.
Obviously, in the point-to-point mode bus, when the number of slaves is increased, the required point-to-point bus is increased, and the number of control ports of the master is increased accordingly. When the master needs to control 16 slaves, the master needs 16 control ports, and the control bus needs 16. As shown in fig. 4, the bus routing becomes quite complex.
In 1 pair of multi-mode buses, when the number of slaves increases, the length of the control bus increases, the anti-interference capability of the bus is weakened, the signal quality is reduced, and the anti-interference capability is strong without a point-to-point mode, as shown in fig. 5.
In order to solve the above problem, an embodiment of the present application provides a control method for a multi-stage cascade system, where the control method is applied to a multi-stage cascade system as shown in fig. 6. Referring to fig. 6, the cascade system includes a master and at least 1 slave, and the master and the at least 1 slave are sequentially connected in series.
Possibly, both the slave and the master comprise a processor, a memory, a bus. The processor, the memory being connected by a bus, is used for executing executable modules, such as computer programs, stored in the memory.
The processor may be an integrated circuit chip having signal processing capabilities. In the implementation process, the steps of the multistage cascade system control method can be completed by hardware integrated logic circuits in the processor or instructions in the form of software. The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
The Memory may comprise a Random Access Memory (RAM) and may also include a non-volatile Memory, such as at least one disk Memory.
The bus may be an ISA (Industry Standard architecture) bus, a PCI (peripheral Component interconnect) bus, or an EISA (extended Industry Standard architecture) bus.
The memory is used for storing programs, such as programs corresponding to the multi-stage cascade system control device. The multi-stage cascade system control device comprises at least one software functional module which can be stored in a memory in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the electronic equipment. And after receiving the execution instruction, the processor executes the program to realize the multi-stage cascade system control method.
Possibly, the slave and the master provided by the embodiment of the application further include a communication interface. The slave and the master may communicate in series over the communication interface.
It should be understood that the configuration shown in fig. 6 is merely a structural schematic diagram of a portion of a multi-stage cascade system, which may also include more or fewer components than shown in fig. 6, or have a different configuration than shown in fig. 6. The components shown in fig. 6 may be implemented in hardware, software, or a combination thereof.
The control method for a multi-stage cascade system provided in the embodiment of the present invention can be applied to, but is not limited to, the multi-stage cascade system shown in fig. 6, and please refer to fig. 7:
s101, the master sends a configuration command to the connected slave, wherein the configuration command comprises a target ID.
And the slave is used for identity setting according to the target ID.
S201, each slave machine receives the configuration command transmitted by the superior device in sequence, and sets identity information according to the target ID in the configuration command.
The upper device is a slave or a master connected to the front end of the slave, and the lower device is a slave connected to the rear end of the slave.
As shown in fig. 6, a indicates the front end of the slave, and B indicates the back end of the slave. The back end of the last slave is no longer connected with other slaves.
And S202, after the identity information is set, each slave machine feeds back the corresponding identity information to the host machine.
The master can acquire the identity information of each slave, so that the master can issue a control instruction to a specific slave.
S203, it is determined whether a subordinate device exists. If yes, executing S204; if not, go to S205.
S204, modifying the target ID in the configuration instruction, and transmitting the modified configuration instruction to the lower-level equipment.
Possibly, the original target ID in the original configuration command is added by 1 or a specified number, and then a new target ID is added, and the original target ID in the original configuration command is replaced by the new target ID, thereby obtaining a modified configuration command.
S205, the target ID in the configuration instruction is not modified.
And S102, the host updates the waiting time according to the first time, wherein the first time is the corresponding time when the host receives the identity information fed back by each slave, and the waiting time is the maximum time difference between two adjacent times of receiving the identity information fed back.
When the slave computer is ranked more backward, the communication time between the slave computer and the master computer is longer. However, the communication links between the slaves are of the same length, so the time interval for the master to receive the identity information fed back by the slaves each time is similar. And when the master does not determine the number of the slave machines in the system, updating the waiting time when the identity information fed back by one slave machine is received recently. If the new identity information is not received after the waiting time, the identity information of all the slave machines in the system is received.
Possibly, the waiting time may also be the maximum time difference plus a time threshold value that is set at the same time.
S103, when the host does not receive new identity information after the waiting time, the host counts the identity information of all the slave machines in the cascade system according to the received identity information.
To sum up, in the control method of the multi-stage cascade system provided in the embodiment of the present application, the master sends a configuration instruction to the connected slaves; each slave machine sequentially receives a configuration instruction transmitted by the superior equipment, sets identity information according to a target ID in the configuration instruction, modifies the target ID in the configuration instruction when the inferior equipment exists, and transmits the modified configuration instruction to the inferior equipment; after identity information is set by each slave, feeding back the corresponding identity information to the host; the host updates the waiting time according to the first time, wherein the waiting time is the maximum time difference between the two adjacent times of receiving the fed back identity information; and when the host does not receive new identity information after the waiting time, the host counts the identity information of all the slave machines in the cascade system according to the received identity information. By setting the waiting time, the identity information of all the slave machines in the cascade system can be accurately acquired by the host, the feedback that the host waits for the slave machines for a long time is avoided, and the time is saved.
Taking the number of slaves as 3 for example, please refer to fig. 8, where fig. 8 is a signaling diagram of interaction in a multi-stage cascade system.
On the basis of fig. 7, regarding the content in S202, the embodiment of the present application further provides a possible implementation manner, please refer to fig. 9, where S202 includes:
s202-1, after identity information setting, each slave sends feedback information to the upper-level equipment, wherein the feedback information comprises identity information of the slave.
And S202-2, when the superior device is a slave, transmitting feedback information to the new superior device until the new superior device is a master.
Referring to fig. 8, after the slave 3 sets the identity information, it sends feedback information M to the higher-level device (slave 2), where the feedback information M includes the identity information of the slave 3. The slave 2 transmits the feedback information M to the slave 1, and the slave 1 transmits the feedback information M to the master.
It can also be derived that the time difference between the slave 2 and the slave 3 feeding back the identity information to the master is the time taken for the slave 3 to transmit a message to the slave 2.
On the basis of fig. 7, in order to avoid channel collision, a possible implementation manner is further provided in the embodiment of the present application, please refer to fig. 10, where the method for controlling a multi-stage cascade system further includes:
and S104, after the master machine sends the control command to the slave machine, waiting for the reference time and then sending a new control command.
The reference time is the time from the time when the host sends the configuration command to the time when the host finally receives the identity information fed back by the slave.
Namely, the reference time is the difference between the time when the master sends the command and the time when the master receives the response command fed back by the last slave.
Possibly, after the master computer sends the control command, the master computer needs to wait for all slave computers to feed back data and then send the next command. That is, after the master receives the feedback data of the last slave corresponding to the control command, it indicates that the feedback data of all the slaves has been received. At this point, the next instruction can be issued and no conflict exists on the bus.
Possibly, the control command sent by the master includes the identity information of the slave that needs to execute the command. For example, when the slave 2 needs to execute the command information, the master transmits a control command to the slave 1, the slave 1 determines that the command is not completely executed by the slave 1, and the slave 1 transfers the control command to the slave 2. The slave 2 executes the control instruction, and the slave 2 judges that the control instruction does not need to be executed by other slaves any more, does not forward the control instruction downwards any more, and feeds back an executed message to the master. Of course, the slave 1 may feed back the forwarded message to the master after forwarding the control command to the slave 2.
On the basis of fig. 7, in order to quickly propagate the broadcast instruction, an embodiment of the present application further provides a possible implementation manner, please refer to fig. 11, where the method for controlling a multi-stage cascade system further includes:
and S105, when the multistage cascade system needs to send a broadcast command, the master sends a first switching command to the slave.
The first switching instruction is an instruction for driving the front end and the rear end inside the slave to be connected and conducted.
Referring to fig. 8, the master sends a switch command to the slave 1, the slave 1 forwards the switch command to the slave 2, and the slave 2 forwards the switch command to the slave 3.
And S206, after receiving the first switching instruction, the slave machine conducts the front end and the rear end inside the slave machine.
Specifically, after receiving the first switching instruction, the slave device switches on the front end and the back end inside the slave device, so that the broadcast instruction can be transmitted quickly. Possibly, the slave machine feeds back a switched instruction to the master machine after the front end and the rear end in the slave machine are conducted, and when the master machine receives the switched instruction fed back by the last slave machine, the multi-stage cascade system is switched to the 1-hanging multi-mode, so that the broadcast instruction sent by the master machine can be quickly transmitted to each slave machine.
And S106, when the multistage cascade system does not need to send the broadcast command, the master machine sends a second switching command to the slave machine.
The second switching instruction is an instruction for driving the slave to switch off the connection of the front end and the back end inside.
Possibly, the host may send the second switching instruction by execution of the broadcast instruction.
And S207, after receiving the second switching instruction, the slave disconnects the front end and the rear end inside the slave.
Specifically, after all the slaves disconnect the front end and the back end inside the slaves, a plurality of point-to-point modes are formed in sequence, for example, from the master to the slave 1, from the slave 1 to the slave 2, from the slave 2 to the slave 3, and the like. No matter how the number of the slave machines is increased, the loudness length of each point-to-point control line is not changed greatly, so that the communication quality is guaranteed, and the anti-interference capability is improved.
Referring to fig. 6, fig. 6 is a multi-stage cascade system according to an embodiment of the present disclosure, and optionally, the multi-stage cascade system may implement the above-mentioned multi-stage cascade system control method.
The multistage cascade system provided by the embodiment of the application comprises a host and at least 1 slave, wherein the host and the at least 1 slave are sequentially connected in series;
the master is used for sending a configuration instruction to the connected slave, wherein the configuration instruction comprises a target ID;
each slave is used for sequentially receiving the configuration instruction transmitted by the superior device, setting identity information according to the target ID in the configuration instruction, modifying the target ID in the configuration instruction when the inferior device exists, and transmitting the modified configuration instruction to the inferior device;
the upper-level equipment is a slave or a host connected with the front end of the slave, and the lower-level equipment is a slave connected with the rear end of the slave;
each slave machine is also used for feeding back the corresponding identity information to the host machine after the identity information is set;
the host is further used for updating the waiting time according to the first time, wherein the first time is the corresponding time when the host receives the identity information fed back by each slave, and the waiting time is the maximum time difference between two adjacent times of receiving the identity information fed back;
and when the host is also used for not receiving new identity information after the waiting time, the host counts the identity information of all the slave machines in the cascade system according to the received identity information.
Furthermore, each slave machine is also used for sending feedback information to the upper-level equipment after identity information setting is carried out, wherein the feedback information comprises the identity information of the slave machine;
and when the superior equipment is the slave, transmitting the feedback information to the new superior equipment until the new superior equipment is the master.
Furthermore, the master is also used for waiting for the reference time and then sending a new control instruction after sending the control instruction to the slave.
The reference time is the time from the time when the host sends the configuration command to the time when the host finally receives the identity information fed back by the slave.
Further, when the multistage cascade system needs to send a broadcast instruction, the host is further configured to send a first switching instruction to the slave, where the first switching instruction is an instruction for driving the slave to switch connection and conduction of the front end and the rear end inside the slave;
the slave computer is also used for conducting the front end and the back end inside the slave computer after receiving the first switching instruction so as to facilitate the rapid transmission of the broadcast instruction.
Further, when the multistage cascade system does not need to send a broadcast instruction, the host is further configured to send a second switching instruction to the slave, where the second switching instruction is an instruction for disconnecting the front end and the rear end inside the slave switching;
the slave is also used for disconnecting the front end and the rear end inside the slave after receiving the second switching instruction.
It should be noted that the multi-stage cascade system provided in this embodiment may execute the method flows shown in the above method flow embodiments to achieve the corresponding technical effects. For the sake of brevity, the corresponding contents in the above embodiments may be referred to where not mentioned in this embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Claims (10)
1. A control method of a multi-stage cascade system is characterized in that the cascade system comprises a host and at least 1 slave, wherein the host and the at least 1 slave are sequentially connected in series;
the master sends a configuration instruction to a connected slave, wherein the configuration instruction comprises a target ID;
each slave machine sequentially receives a configuration instruction transmitted by a superior device, sets identity information according to a target ID in the configuration instruction, modifies the target ID in the configuration instruction when the inferior device exists, and transmits the modified configuration instruction to the inferior device;
the upper-level equipment is a slave or the host connected with the front end of the slave, and the lower-level equipment is a slave connected with the rear end of the slave;
after identity information is set by each slave, feeding back the corresponding identity information to the host;
the host updates the waiting time according to a first time, wherein the first time is the corresponding time when the host receives the identity information fed back by each slave, and the waiting time is the maximum time difference between the identity information fed back by two adjacent times;
and when the host does not receive new identity information after the waiting time, the host counts the identity information of all the slave machines in the cascade system according to the received identity information.
2. The method for controlling a multistage cascade system according to claim 1, wherein the step of feeding back the identity information corresponding to each slave to the master after the identity information setting is performed by each slave comprises:
after identity information is set, each slave machine sends feedback information to the superior equipment, wherein the feedback information comprises identity information of the slave machine;
and when the superior device is a slave, transmitting the feedback information to a new superior device until the new superior device is the master.
3. The multi-stage cascade system control method of claim 1, wherein the method further comprises:
after the host sends the control instruction to the slave, the host waits for a reference time and then sends a new control instruction, wherein the reference time is the time from the time when the host sends the configuration instruction to the time when the host finally receives the identity information fed back by the slave.
4. The multi-stage cascade system control method of claim 1, wherein the method further comprises:
when the multistage cascade system needs to send a broadcast instruction, the host sends a first switching instruction to the slave, wherein the first switching instruction is an instruction for driving the front end and the rear end inside the slave to be switched to be connected and conducted;
and after receiving the first switching instruction, the slave machine conducts the front end and the rear end inside the slave machine.
5. The multi-stage cascade system control method of claim 4, wherein the method further comprises:
when the cascade system does not need to send a broadcast instruction, the host sends a second switching instruction to the slave, wherein the second switching instruction is an instruction for driving the slave to switch off the connection of the front end and the rear end inside;
and after receiving the second switching instruction, the slave disconnects the front end and the rear end of the slave.
6. The multistage cascade system is characterized by comprising a master machine and at least 1 slave machine, wherein the master machine and the at least 1 slave machine are sequentially connected in series;
the master is used for sending a configuration instruction to the connected slave, wherein the configuration instruction comprises a target ID;
each slave is used for sequentially receiving the configuration instruction transmitted by the superior device, setting identity information according to the target ID in the configuration instruction, modifying the target ID in the configuration instruction when the inferior device exists, and transmitting the modified configuration instruction to the inferior device;
the upper-level equipment is a slave or the host connected with the front end of the slave, and the lower-level equipment is a slave connected with the rear end of the slave;
each slave machine is also used for feeding back the corresponding identity information to the host machine after the identity information is set;
the master is further configured to update a waiting time according to a first time, where the first time is a time corresponding to the master receiving the identity information fed back by each slave, and the waiting time is a maximum time difference between two adjacent times of receiving the identity information fed back;
and when the host is also used for not receiving new identity information after the waiting time, the host counts the identity information of all the slave machines in the cascade system according to the received identity information.
7. The multi-cascade system of claim 6, wherein each slave device is further configured to send feedback information to the upper device after identity information setting is performed, wherein the feedback information includes identity information of the slave device;
and when the superior device is a slave, transmitting the feedback information to a new superior device until the new superior device is the master.
8. The multi-cascade system as claimed in claim 6, wherein the master is further configured to wait for a reference time after sending the control command to the slave, and then send a new control command, wherein the reference time is from the time the master sends the configuration command to the time the master finally receives the identity information fed back from the slave.
9. The multi-stage cascade system of claim 6, wherein when the multi-stage cascade system needs to send a broadcast command, the master is further configured to send a first switch command to the slave, where the first switch command is a command to turn on front-end and back-end connections inside the slave switch;
and the slave machine is also used for conducting the front end and the rear end of the slave machine after receiving the first switching instruction.
10. The multi-stage cascade system of claim 9, wherein the master is further configured to send a second switch command to the slave when the cascade system does not need to send a broadcast command, wherein the second switch command is a command for disconnecting the front-end and the back-end connections inside the slave switch;
and the slave is also used for disconnecting the front end and the rear end of the slave after receiving the second switching instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010958699.8A CN112084134B (en) | 2020-09-14 | 2020-09-14 | Multistage cascade system control method and multistage cascade system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010958699.8A CN112084134B (en) | 2020-09-14 | 2020-09-14 | Multistage cascade system control method and multistage cascade system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112084134A true CN112084134A (en) | 2020-12-15 |
CN112084134B CN112084134B (en) | 2024-08-09 |
Family
ID=73737678
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010958699.8A Active CN112084134B (en) | 2020-09-14 | 2020-09-14 | Multistage cascade system control method and multistage cascade system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112084134B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113905361A (en) * | 2021-09-16 | 2022-01-07 | 深圳国实智能有限公司 | Bluetooth one-to-many communication method, equipment and storage medium |
CN114025406A (en) * | 2021-11-04 | 2022-02-08 | 杭州老板电器股份有限公司 | Communication method and device of smoke exhaust system and smoke exhaust system |
CN114598690A (en) * | 2022-02-24 | 2022-06-07 | 深圳市海洋王照明工程有限公司 | Communication method and device of cascade equipment system and electronic equipment |
CN116132218A (en) * | 2023-03-30 | 2023-05-16 | 杭州协能科技股份有限公司 | Communication system of master machine and multi-slave machine and communication method thereof |
WO2023197686A1 (en) * | 2022-04-13 | 2023-10-19 | 西安广和通无线软件有限公司 | Method and apparatus for turning off multi-stage operational amplifiers, and device and storage medium |
CN117349201A (en) * | 2023-10-13 | 2024-01-05 | 芜湖藦卡机器人科技有限公司 | Multi-slave control method, system and storage medium based on serial port communication |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106162701A (en) * | 2016-07-20 | 2016-11-23 | 浙江昱能科技有限公司 | A kind of communications setting amending method of wireless communication network |
WO2020098755A1 (en) * | 2018-11-16 | 2020-05-22 | 中兴通讯股份有限公司 | Smart home control method, smart home device, and storage medium |
CN111586204A (en) * | 2020-05-12 | 2020-08-25 | 广州极飞科技有限公司 | Communication address allocation method, communication system, master device and slave device |
-
2020
- 2020-09-14 CN CN202010958699.8A patent/CN112084134B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106162701A (en) * | 2016-07-20 | 2016-11-23 | 浙江昱能科技有限公司 | A kind of communications setting amending method of wireless communication network |
WO2020098755A1 (en) * | 2018-11-16 | 2020-05-22 | 中兴通讯股份有限公司 | Smart home control method, smart home device, and storage medium |
CN111586204A (en) * | 2020-05-12 | 2020-08-25 | 广州极飞科技有限公司 | Communication address allocation method, communication system, master device and slave device |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113905361A (en) * | 2021-09-16 | 2022-01-07 | 深圳国实智能有限公司 | Bluetooth one-to-many communication method, equipment and storage medium |
CN114025406A (en) * | 2021-11-04 | 2022-02-08 | 杭州老板电器股份有限公司 | Communication method and device of smoke exhaust system and smoke exhaust system |
CN114025406B (en) * | 2021-11-04 | 2024-02-02 | 杭州老板电器股份有限公司 | Communication method and device of smoke exhaust system and smoke exhaust system |
CN114598690A (en) * | 2022-02-24 | 2022-06-07 | 深圳市海洋王照明工程有限公司 | Communication method and device of cascade equipment system and electronic equipment |
WO2023197686A1 (en) * | 2022-04-13 | 2023-10-19 | 西安广和通无线软件有限公司 | Method and apparatus for turning off multi-stage operational amplifiers, and device and storage medium |
CN116132218A (en) * | 2023-03-30 | 2023-05-16 | 杭州协能科技股份有限公司 | Communication system of master machine and multi-slave machine and communication method thereof |
CN117349201A (en) * | 2023-10-13 | 2024-01-05 | 芜湖藦卡机器人科技有限公司 | Multi-slave control method, system and storage medium based on serial port communication |
CN117349201B (en) * | 2023-10-13 | 2024-03-05 | 芜湖藦卡机器人科技有限公司 | Multi-slave control method, system and storage medium based on serial port communication |
Also Published As
Publication number | Publication date |
---|---|
CN112084134B (en) | 2024-08-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112084134A (en) | Multistage cascade system control method and multistage cascade system | |
US11240159B2 (en) | Service link selection control method and device | |
JP6110534B2 (en) | Method and apparatus for adjusting the reliability of data transmission in a serial bus system | |
JP5770925B2 (en) | Method and apparatus for increasing data transmission capacity in a serial bus system | |
US20200193027A1 (en) | Firmware upgrade method, slave station of robot, and machine readable storage medium | |
CN105210334A (en) | Communication node, packet processing method and program | |
CN111541688A (en) | Embedded system compatible with multiple protocols, data processing method and device | |
CN113179338B (en) | Communication method, electronic device, and storage medium | |
US20080021573A1 (en) | Communication system for flexible use in different application scenarios in automation technology | |
CN113099431B (en) | Communication method and device based on LoRa channel and LoRa host | |
EP3125470B1 (en) | Apparatus for detecting ethernet frame | |
EP3537671A1 (en) | Protection switching method and system, and nodes | |
CN107707449A (en) | A kind of method of data transfer, relevant apparatus and storage medium | |
CN113950120A (en) | Equipment networking method and device, terminal equipment and readable storage medium | |
CN114237928A (en) | Inter-container communication method and device, electronic equipment and computer-readable storage medium | |
CN111031138B (en) | Communication method and device of Internet of things and computer readable storage medium | |
CN107454021B (en) | Communication method and device | |
CN112688906A (en) | Auto-negotiation method and device | |
JP2009232254A (en) | On-vehicle relay connection unit | |
CN116886463B (en) | Cascade communication method, device, equipment and medium | |
JP2014075656A (en) | Position discrimination system, and position discrimination method | |
CN113193997B (en) | Redundant equipment configuration method and device, redundant system and redundant equipment | |
CN111600784B (en) | Data processing method, network equipment, main control board and logic chip | |
JP2001168874A (en) | Atm ring network system and simultaneous multiple address control system used therefor | |
CN113791804A (en) | Method and device for parallel upgrading of multiple instruments, computer equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |