CN119561801A - A slave station and communication system - Google Patents
A slave station and communication system Download PDFInfo
- Publication number
- CN119561801A CN119561801A CN202311135458.3A CN202311135458A CN119561801A CN 119561801 A CN119561801 A CN 119561801A CN 202311135458 A CN202311135458 A CN 202311135458A CN 119561801 A CN119561801 A CN 119561801A
- Authority
- CN
- China
- Prior art keywords
- message
- communication path
- indication information
- processing unit
- port
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the application provides a secondary station and a communication system, which relate to the field of communication and are used for improving the communication efficiency problem of an industrial Ethernet, wherein the secondary station comprises a first receiving port, a first transmitting port, a first selecting unit and a processing unit; the first receiving port is configured to receive a message on the first communication path, the first transmitting port is configured to transmit the message on the first communication path, the processing unit is used for processing the message, the processing unit comprises an input end and an output end, the message comprises indication information, the first selecting unit is configured to connect the first receiving port with the first transmitting port according to the indication information of the message received by the first receiving port, or the first selecting unit is configured to connect the first receiving port with the input end of the processing unit according to the indication information of the message received by the first receiving port, and connect the first transmitting port with the output end of the processing unit.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a secondary station and a communications system.
Background
The industrial Ethernet is an Ethernet technology applied to the field of industrial control, and currently, the industrial Ethernet at least comprises a master station and a plurality of slave stations, the master station uses two ports and the slave stations to form a ring-shaped redundant link, and a message sent by the master station is bidirectionally transmitted on a ring-shaped network, so that when the line fails, all the slave stations can receive the message of the master station and process the message and then return to the master station.
One of the two bidirectional loops is a main path, the other is a backup path, and when a message on the main path reaches each secondary station, the message needs to pass through a processing unit of the secondary station to process the service, so that the delay of a main line is increased, and the backup line is only used as a backup, so that the service is not processed under normal conditions, the load sharing cannot be realized, and the communication efficiency is low.
Disclosure of Invention
The embodiment of the application provides a slave station and a communication system, which are used for solving the problems of lower communication efficiency and the like in an industrial Ethernet.
In a first aspect, the embodiment of the application provides a secondary station, which comprises a first receiving port, a first sending port, a first selecting unit and a processing unit, wherein the first receiving port is connected to a first communication path and is configured to receive a message on the first communication path, the first sending port is connected to the first communication path and is configured to send the message on the first communication path, the processing unit is used for processing the message, the processing unit comprises an input end and an output end, the message received by the first receiving port comprises indication information, the first selecting unit is configured to connect the first receiving port with the first sending port according to the indication information of the message received by the first receiving port, or the first selecting unit is configured to connect the first receiving port with the input end of the processing unit and connect the first sending port with the output end of the processing unit according to the indication information of the message received by the first receiving port.
The secondary station is provided with a first selection unit, the first selection unit can determine whether to process the message according to the indication information of the message received by the first receiving port, if the first selection unit judges that the message does not need to be processed, the first receiving port is connected with the first sending port, the message received by the first receiving port can be directly sent out by the first sending port without being processed by the processing unit, if the first selection unit judges that the message needs to be processed, the first receiving port is connected with the input end of the processing unit, the first sending port is connected with the output end of the processing unit, the message received by the first receiving port is sent to the processing unit to be processed, the processed message is sent out by the first sending port, and therefore whether to process the message or not can be judged according to the indication information of the message, the time that the message runs out of one period can be reduced when the message does not need to be processed, and the communication efficiency is improved.
In one possible implementation manner, when the indication information of the message received by the first receiving port is first indication information, the first selecting unit is configured to connect the first receiving port with the first sending port according to the first indication information, where the first indication information is used to indicate that the slave station is on a backup path of the message.
If the indication information of the message is the first indication information, the first indication information is used for indicating that the slave station is on the backup path, the message does not need to be processed, the first selection unit is configured to connect the first receiving port with the first sending port according to the first indication information, the message does not need to be processed by the slave station on the backup path, and the delay can be reduced.
In one possible implementation manner, when the indication information of the message received by the first receiving port is second indication information, the first selecting unit is configured to connect the first receiving port with the input end of the processing unit according to the second indication information, and connect the first sending port with the output end of the processing unit, where the second indication information is used to indicate that the slave station is on the main path of the message.
If the indication information of the message is second indication information, the second indication information is used for indicating that the slave station is on the main path, which means that the master station needs to process the message, the first selection unit is configured to connect the first receiving port with the first sending port according to the first indication information, and the message does not need to be processed by the slave station on the backup path, so that the delay can be reduced.
In a possible implementation, the secondary station further comprises a second receiving port, a second transmitting port and a second selecting unit, wherein the second receiving port is connected to the second communication path and is configured to receive a message on the second communication path, the second transmitting port is connected to the second communication path and is configured to transmit a message on the second communication path, the second communication path is opposite to the first communication path, the message received by the second receiving port comprises indication information, the second selecting unit is configured to connect the second receiving port with the second transmitting port according to the indication information of the second receiving port, or the second selecting unit is configured to connect the second receiving port with the second input end of the processing unit and connect the second transmitting port with the second output end of the processing unit according to the indication information of the second receiving port.
The slave station can be connected with the master station through the first communication path and the second communication path, so that messages can be shared on the two communication paths to be processed by the slave station, for example, messages are processed by the odd-numbered slave stations on the first communication path, and messages are processed by the even-numbered slave stations on the second communication path, so that traffic loads can be shared on the two communication paths, load and delay are reduced, and efficiency is improved. Meanwhile, the slave station can be configured on which communication path to process the message, for example, the slave station can be configured to process the message on both the first communication path and the second communication path, the message can be transmitted in two directions, and when the method is applied to the safety field, compared with the conventional industrial Ethernet in which the message can only be transmitted in one direction, the scheme message provided by the embodiment of the application can be configured to be transmitted in two directions, so that the response speed of the safety problem can be improved, and the safety performance can be improved.
In one possible implementation, when the indication information of the second receiving port is the first indication information, the second selecting unit is configured to connect the second receiving port with the second sending port according to the first indication information, where the first indication information is used to indicate that the slave station is on a backup path of the message.
In a possible implementation manner, when the indication information of the second receiving port is second indication information, the second selecting unit is configured to connect the second receiving port with the input end of the processing unit according to the second indication information, and connect the second sending port with the output end of the processing unit, where the second indication information is used to indicate that the slave station is in the main path of the message.
In a possible implementation, the first selection unit is further configured to connect the input of the processing unit with the first receiving port and the output of the processing unit with the second transmitting port when the first transmitting port and/or the second receiving port fails.
In a possible implementation, the second selection unit is further configured to connect the second input of the processing unit with the second receiving port and the second output of the processing unit with the first transmitting port when the second transmitting port and/or the first receiving port fails.
In one possible implementation, the first selection unit comprises a first multiplexer, the input of which is connected to the first receiving port of the slave station, the first output of which is connected to the first transmitting port of the slave station, and a second multiplexer, the second output of which is connected to the input of the processing unit, the input of which is connected to the output of the processing unit, the first output of which is connected to the first transmitting port of the slave station, and the second output of which is connected to the second transmitting port of the slave station.
In a possible implementation, the second selection unit comprises a third multiplexer and a fourth multiplexer, the input of the third multiplexer is connected to the second transmission port of the slave station, the first output of the third multiplexer is connected to the second transmission port of the slave station, the second output of the third multiplexer is connected to the input of the processing unit, the input of the fourth multiplexer is connected to the output of the processing unit, the first output of the fourth multiplexer is connected to the second transmission port of the slave station, and the second output of the fourth multiplexer is connected to the first transmission port of the slave station.
In a second aspect, the embodiment of the present application further provides a communication system, where the communication system includes a master station and a plurality of slave stations provided in any implementation manner of the first aspect, where the plurality of slave stations are connected to the master station through a first communication path and a second communication path, where transmission directions of the first communication path and the second communication path are opposite, and the master station is configured to send a message to the first communication path and the second communication path, where the message includes indication information.
Drawings
Fig. 1 is a schematic diagram of a communication system according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a message according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a secondary station according to an embodiment of the present application;
fig. 4 is a schematic diagram of another communication system according to an embodiment of the present application;
FIG. 5 is a schematic diagram of another secondary station according to an embodiment of the present application;
fig. 6 is a schematic diagram of another communication system according to an embodiment of the present application;
Fig. 7 is a schematic diagram of another communication system according to an embodiment of the present application;
Fig. 8 is a schematic diagram of another communication system according to an embodiment of the present application;
FIG. 9 is a schematic diagram of another secondary station provided by an embodiment of the present application;
fig. 10 is a block diagram of another secondary station according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. In the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or" describing an association of associated objects means that there may be three relationships, e.g., A and/or B, may mean that A exists alone, while A and B exist alone, and B exists alone, wherein A, B may be singular or plural "at least one item(s) below" or the like, referring to any combination of these items, including any combination of single item(s) or plural item(s). For example, at least one (a, b or c) of a, b, c, a and b, a and c, b and c or a, b and c may be represented, wherein a, b and c may be single or plural.
Embodiments of the present application employ words of "first" and "second" to distinguish between objects having similar names or functions or actions, and those skilled in the art will appreciate that the words of "first" and "second" do not limit the number or order of execution. The term "coupled" is used to indicate electrically connected, including directly via wires or connectors, or indirectly via other devices. Thus "coupled" should be seen as broadly connected to electronic communications.
In the present application, the words "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In industrial production, it is necessary to precisely control the cooperation of the respective devices, and thus it is necessary to establish a communication system capable of precisely controlling the respective devices between the different devices. Industrial internet of things or industrial ethernet (industrial ethernet, IE) and the like are commonly used in industrial field networks to improve control accuracy of industrial production and improve production efficiency.
Taking industrial ethernet as an example, industrial ethernet refers to the use of ethernet in industrial environments, especially industrial production environments employing a predictive and real-time control mechanism. For example, in an industrial engineering environment, using computer network technology of the ethernet family for automation and process control, by using industrial ethernet, automation systems from different manufacturers can be interconnected throughout the industrial production process, thereby improving the industrial control accuracy and improving the production efficiency. Industrial ethernet is widely used in various industries such as petroleum and natural gas, energy and electricity, electrical and electronic, mechanical manufacturing, transportation and chemical industries.
Currently, an industrial ethernet network at least comprises a master station and a plurality of slave stations, for example, for a certain production line comprising a plurality of production links, different production links such as a conveyor belt, a mechanical arm, an industrial robot and the like need to work cooperatively, and accurate control on different production links can be realized by using the industrial ethernet, for example, a controller can be set as the master station, different production links can be set as the slave stations, and the master station can send information to the slave stations to control the work of the slave stations.
In one possible implementation, the master station and the slave stations include at least two ports, such as a transmit port (TX) and a receive port (RX), and the master station and the slave stations and the respective slave stations are connected end to end by cables, referring to fig. 1, which shows a communication system provided by an embodiment of the present application, including a master station 10 and a plurality of slave stations 20 (for example, the slave stations 20-1 to 20-5 shown in fig. 1), in order to avoid complex wiring, a plurality of slave stations are typically connected end to end on a signal communication path to form a chain structure, each of the slave stations (for example, the slave stations 20-2 to 20-4) in the chain structure is connected to two adjacent slave stations, and a first slave station (for example, the slave station 20-1) and a last slave station (for example, the slave station 20-5) in the chain structure are connected to the master station, so as to form a ring network.
Illustratively, the TX of the master station 10 is connected to the RX of the first slave station (e.g., slave station 20-1) in the chain, the TX of the last slave station (e.g., slave station 20-5) in the chain is connected to the RX of the master station, the TX of each slave station in the chain is connected to the TX of the next slave station except for the last slave station in the chain, or the RX of each slave station in the connection is connected to the TX of the previous slave station except for the first slave station in the chain, in such a way that the master station is arranged with a plurality of slave stations to form a ring network.
Referring to fig. 2 on the basis of fig. 1, fig. 2 shows a schematic diagram of a message structure in a communication system according to an embodiment of the present application, which includes five slave stations, for example, slave station 20-1 to slave station 20-5, where the master station 10 integrates data of all the slave stations 20 into one ethernet message, and after a message sent by TX of the master station 10 passes through each slave station 20 in turn, the message finally returns to RX of the master station 10. In the ring network, a message sent by the master station 10 passes through each slave station 20 in turn, and when the message passes through, the slave station 20 takes out downlink data addressed to itself for processing, and meanwhile, the processed uplink data is packed into the message, all the slave stations 20 are added together to be understood as an ethernet node, and the data of each slave station 20 is a subpacket in the ethernet message.
Illustratively, in a ring network of a master station 10 and a plurality of slaves 20, the master station 10 is often configured to transmit a message, which is transmitted in one direction, or referred to as being transmitted on a communication path comprising a start point, an end point, and a chain structure of the plurality of slaves 20 located between the start point and the end point, e.g., the communication path starts with the TX of the master station 10 and ends with the RX of the master station 10, the message transmitted by the TX of the master station 10 starting from the master station 10 to the first slave station 20-1 of the connection via its TX and from this one slave station to the next slave station until the transmission reaches the last slave station 20-5 in the chain structure and then back to the RX of the master station 10.
As introduced in the previous example of the figure, the secondary station 20 comprises a receive port (RX) 21 and a transmit port (TX) 22, wherein the RX 21 of the secondary station 20 is arranged to receive a message from a previous node, wherein the previous node here refers to the primary station 10 if the secondary station 20 is the first secondary station in the chain structure, e.g. the secondary station 20-1 in fig. 1, and the previous node here refers to the secondary station of the previous stage if not the first secondary station in the chain structure, e.g. the secondary station 20-2 to the secondary station 20-5 in fig. 1, and the TX 22 of the secondary station 20 is arranged to transmit a message to the next node, wherein the next node here refers to the primary station 10 if the secondary station 20 is the last secondary station in the chain structure, e.g. the secondary station 20-5 in fig. 1, and the next node here refers to the secondary station of the next stage if not the last secondary station in the chain structure, e.g. the secondary station 20-1 to the secondary station 20-4 in fig. 1.
In addition to RX 21 and TX 22, secondary station 20 also comprises a processing unit 25 connected between RX 21 and TX 22, processing unit 25 being configured to process messages or data passing through secondary station 20, i.e. to exchange useful data assigned to secondary station 20 with the messages. The master station 10 integrates all the data of the slave stations 20 into one message or data packet, the data allocated to each slave station 20 is a sub-packet in the message, when the message sent by the master station 10 arrives through the slave station 20, the processing unit 25 of the slave station 20 extracts the sub-packet allocated to the slave station 20, and after processing, the data is stuffed into the message and sent to the next node. The simple structure enables the master station 10 to control the operation of a plurality of slave stations 20, and in an industrial production environment, different devices can be controlled to cooperatively work, so that precise control is realized, and the production efficiency is improved.
However, this structure has a disadvantage in that since data can be transmitted only on one communication path, if one of the slave stations 20 fails, the transmission of a message is not repeated, which may cause the entire system to fail to operate normally. Thus, on the basis of a ring network, an embodiment of the present application provides another communication system, and referring to fig. 4, the master station 10 forms a dual ring redundant network using two sets of ports and a plurality of slave stations 20 (e.g., slave station 20-1 to slave station 20-5).
In a dual ring redundant network, the primary station 10, the secondary station 20 each comprise two sets of ports, referred to as a first transmit port (TX 1), a first receive port (RX 1), a second transmit port (TX 2) and a second receive port (RX 2). The manner in which the first transmitting port and the first receiving port of the master station 10 are connected to the first transmitting port and the first receiving port of the slave station 20 on the first communication path to form a ring network, and the second transmitting port and the second receiving port of the master station 10 are connected to the second transmitting port and the second receiving port of the slave station 20 on the second communication path to form another ring network is described in detail in the foregoing examples and is not repeated here.
Illustratively, a plurality of secondary stations 20 are still connected end to form a chained structure, but since the secondary station 20 includes two sets of ports, there may be two signal communication paths, so in the chained structure, the secondary station 20 may be connected to a first transmitting port of a previous node on a first communication path through a first receiving port, to a first receiving port of a next node on the first communication path through the first transmitting port, and may be connected to a second transmitting port of a previous node on a second communication path through a second receiving port, and to a second receiving port of a next node on the second communication path through the second transmitting port.
Illustratively, the first communication path is opposite to the second communication path, e.g., a first transmit port of the master station 10 is coupled to a first receive port of a first slave station 20-1 in the chain, a first receive port of the master station is coupled to a first transmit port of a last slave station 20-5 in the chain, and a second transmit port of the master station 10 is coupled to a second receive port of the last slave station 20-5 in the chain, and a second receive port of the master station 10 is coupled to a second transmit port of the first slave station 20-1 in the chain.
Illustratively, the first communication path may be a primary path over which data packets transmitted by the respective secondary stations may be processed; the second communication path is used as a backup path, the messages sent on the backup path are not processed, but are used as backups, and when a certain link on the main path fails, the messages on the backup path are processed.
In a dual ring type redundant network, data may be communicated over two opposite communication paths, so that the configuration of the secondary station differs from that of the ring network provided by the previous example, for example, referring to fig. 5, secondary station 20 includes RX 121, TX 122, RX2 23, and TX2 24, where RX 121 is configured to receive messages over a first communication path, TX 122 is configured to transmit messages over the first communication path, RX2 23 is configured to receive messages over a second communication path, and TX2 24 is configured to transmit messages over the second communication path.
The secondary station 20 further comprises a processing unit 25 and a coupling unit 26, wherein the processing unit 25 is configured to process messages, the processing unit 25 comprises an input and an output, and the coupling unit 26 may be configured to connect the input of the processing unit 25 to RX 121, the output of the processing unit 25 to TX 122 and RX2 23 to TX2 24 in a normal operation mode. Since RX 121, TX 122 are configured to transmit data on the first communication path and RX2 23, TX2 24 are configured to transmit data on the second communication path, in normal operation mode, the input of processor 35 is connected to RX 121, the output of processor 35 is connected to TX 122, the data received by RX 121 is sent to processing unit 25 for processing, the processed data is sent to the next node via TX 122, and RX2 23 is connected to TX2 24, such that the data received by RX2 23 is sent directly to the next node by TX2 24 without processing.
The coupling unit 26 may also be configured to connect the input of the processing unit 25 to RX 121 and the output of the processing unit 25 to TX 224 in the failure mode of TX 122 and/or RX 223, i.e. in case of a failure of the right hand port of the slave station 20, a message may be sent out from the left hand port back to the master station 10. For example, in connection with fig. 6, if the port to the right of the secondary station 20-2 fails, a message may be sent back to the primary station 10 by the port to the left of the secondary station 20-2.
Or the coupling unit 26 may be further configured to connect the input of the processing unit 25 to RX2 23 and the output of the processing unit 25 to TX 122 in a failure mode of RX1 and/or TX2 24, i.e. in case of a failure of the left hand port of the secondary station 20, a message may be sent from the right hand port of the secondary station 20 back to the primary station 10. For example, in connection with fig. 6, if the port to the left of the secondary station 20-4 fails, a message may be sent back to the primary station 10 by the port to the right of the secondary station 20-4.
In one possible implementation, the coupling unit 26 comprises a first multiplexer 261 and a second multiplexer 262, a first input of the first multiplexer 261 being connected to RX 121, a second input of the first multiplexer 261 being connected to RX2 23, and an output of the first multiplexer 261 being connected to an input of the processing unit 25, a first input of the second multiplexer 262 being connected to RX2 23, a second input of the second multiplexer 262 being connected to an output of the processing unit 25, and an output of the second multiplexer 262 being connected to the second transmission unit 24.
The first multiplexer 261 is configured to switch a first input of the first multiplexer 261 to an output of the first multiplexer 261 in a normal operation mode and to switch a second input of the first multiplexer 261 to an output of the first multiplexer 261 in a failure mode of the RX1 and/or the second transmission unit 24, and the second multiplexer 262 is configured to switch a first input of the second multiplexer 262 to an output of the second multiplexer 262 in a normal operation mode and to switch a second input of the second multiplexer 262 to an output of the second multiplexer 262 in a failure mode of the first transmission unit 22 and/or the RX2 23.
The dual-ring type redundant network can increase the reliability of the system, and can still ensure the normal operation of the system under the condition of partial faults, but the technology adopts a passive redundancy scheme, wherein one backup path has no service processing under the normal condition and cannot share the load, and the messages of the main path pass through the processing unit, so that the delay of the main path is increased.
In addition, in the functional security scenario, since the current dual-ring redundancy network scheme normally only has the primary path to process the message, the backup path does not process the message, that is, the message can only be processed on one communication path, so that the fault is responded in time in one cycle, the fault detection site must be placed before the fault response site, as shown in fig. 7, the fault response site can only be in front, and only the fault response site can ensure that the fault is responded quickly in 1 cycle, for example, the message transmitted on the first communication path is processed, the message transmitted on the second communication path is used as a backup, when the fault detection site (for example, the slave station 20-1) detects the fault, the message is correspondingly processed, and when the message reaches the fault response site (for example, the slave station 20-4), the fault can be responded in one cycle, and if the fault detection site is behind the fault response site, the message sent from the fault detection site needs to reach the master station after one cycle, the fault response site can be responded again, so that the fault response is not completed in time.
To improve the above-described problems, the embodiment of the present application provides a communication system, as shown in fig. 8, where the master station 10 may form a dual ring redundant network with a plurality of slave stations 30, for example, the master station 10 forms a dual ring redundant network using two sets of ports and a plurality of slave stations 30 (for example, slave station 30-1 to slave station 30-5). In a dual ring redundant network, the primary station 10, the secondary station 30 each comprise two sets of ports, referred to as a first transmit port (TX 1), a first receive port (RX 1), a second transmit port (TX 2) and a second receive port (RX 2). The connection of the first transmitting port and the first receiving port of the master station 10 with the first transmitting port and the first receiving port of the slave station 30 on the first communication path forms a ring network, and the connection of the second transmitting port and the second receiving port of the master station 10 with the second transmitting port and the second receiving port of the slave station 30 on the second communication path forms another ring network, and the manner of forming the ring network is described in detail in the foregoing examples and will not be repeated here.
Illustratively, referring to FIG. 9, the secondary station includes a first receive port (RX 1) 31, a first transmit port (TX 1) 32, a second receive port (RX 2) 33, a second transmit port (TX 2) 34, a processing unit 35, a first selection unit 36, and a second selection unit 37.RX1 31 is connected to the first communication path and is configured to receive messages on the first communication path, TX1 32 is connected to the first communication path and is configured to transmit messages on the first communication path, RX2 33 is connected to the second communication path and is configured to receive messages on the second communication path, TX2 34 is connected to the second communication path and is configured to transmit messages on the second communication path, the second communication path being opposite to the first communication path, for example, a first transmission port of the master station is started, a first reception port reaching the master station through a chain structure formed by the slave station 30 is called a first communication path, a second reception port reaching the master station through a chain structure formed by the slave station 30 is called a second communication path. The messages transmitted on the first communication path and the second communication path are generally identical, and for convenience of distinction, the messages transmitted on the first communication path are referred to as first messages, and the messages transmitted on the second communication path are referred to as second messages.
The actual structure of the secondary station 30 is not shown in fig. 9, but merely to show the direction of signal transmission inside the secondary station 30. Taking the first message as an example, the first message includes indication information, the first selection unit 36 is configured to connect the RX 131 with the TX 132 according to the indication information of the first message, so that the message may be directly forwarded to the next node on the first communication path without being processed by the processing unit 35 of the slave station 30, or the first selection unit 36 is configured to connect the RX 131 with the input end of the processing unit 35 according to the indication information, and connect the TX 132 with the output end of the processing unit 35, so that the message may be processed by the processing unit 35 of the slave station 30 on the first communication path.
In the foregoing dual-ring redundancy network structure shown in fig. 4, although the primary path and the backup path are set for transmitting the packets, the packets transmitted on the primary path are processed by the secondary stations, and the packets transmitted on the backup path are not processed by the secondary stations under normal conditions, so that load sharing is not achieved, and the packets on the primary path pass through the processing unit of each secondary station, thereby increasing the delay of the primary path. In the solution provided in the embodiment of the present application, the load is shared by the first communication path and the second communication path, for example, the master station sends two identical messages to the first communication path and the second communication path, the messages may include indication information, which is used to indicate whether the messages are processed on the first communication path, for example, a part of data in the messages may be configured to be processed on the first communication path, another part of data in the messages is configured to be processed on the second communication path, but not all data in the messages are processed on the same communication path, for example, the first selection unit 36 may determine whether the messages need to be processed on the second communication path according to the indication information included in the messages, if the slave station 30 is configured to process the messages transmitted on the first communication path, then the RX 131 is connected to the input terminal of the processing unit 35, the TX1 is connected to the output terminal of the processing unit 35, the slave station 30 may process the messages, the processed messages are sent through the TX1, if the slave station 30 is configured not to process the second communication path, and thus the load of the RX1 is reduced by the first selection unit 36, and the RX1 may be directly connected to the first communication unit 31.
The secondary station structure provided by the embodiment of the application is applied to a double-ring type redundant network structure, wherein a message transmitted on a first communication path is called a first message, and a message transmitted on a second communication path is called a second message. The second message also includes indication information, and the second selecting unit 37 may determine whether the second message needs to be processed at the secondary station 30 according to the indication information of the second message, if the secondary station 30 is configured to process the second message transmitted on the second communication path, then connect the RX2 33 with the input end of the processing unit 35, connect the TX234 with the output end of the processing unit 35, so that the second message may be sent to the processing unit 35, the secondary station 30 may process the second message, and the processed second message is sent out through the TX234, and if the secondary station 30 is configured not to process the second message transmitted on the second communication path, the second selecting unit 37 may connect the RX2 33 with the TX234, and the second message received by the RX2 33 is directly sent out by the TX2 without being processed by the processing unit 35, thereby reducing the load of the second communication path and reducing the delay of the second communication path.
Because the message transmitted by the master station 10 to the first communication path and the message transmitted by the master station 10 to the second communication path are the same, a part of data in the message can be configured to be processed by the slave station 30 on the first communication path, and another part of data in the message can be configured to be processed by the slave station 30 on the second communication path, so that the two communication paths share loads.
In one possible implementation manner, the first message and the second message include indication information, and one or more fields may be set for the first message and the second message to be used as the indication information, or the first message and the second message may also multiplex existing fields to be used as the indication information.
For example, taking a message transmitted on the first communication path as an example, the first message includes a first field, where the first field may be used as indication information, and the RX1 31 of the slave station receives the first message and transmits the first message to the first selection unit 36, where the first selection unit 36 determines whether the first message is configured to be processed at the slave station 30 according to the indication information of the first message.
In an embodiment of the application, a secondary station 30 is said to be on the primary path of a first message if the first message is configured to be processed by the secondary station 30 on the first communication path, and a secondary station 30 is said to be on the backup path of the first message if the first message is configured to be processed by the secondary station 30 on the first communication path.
For example, when the indication information of the first message is the first indication information, for example, the first field is "1", the first indication information is used to indicate that the slave station 30 is in the backup path of the first message, that is, the slave station 30 does not need to process the first message transmitted on the first communication path, and the first selection unit 36 of the slave station 30 is configured to connect the RX 131 of the slave station 30 with the TX 132 according to the first indication information of the first message, so that after the RX 131 receives the first message, the first message is not processed by the processing unit 35, that is, sent through the TX1 32.
Or when the indication information of the first message is second indication information, for example, the first field is "0", the second indication information is used to indicate that the slave station 30 is in the main path of the first message, that is, the slave station 30 needs to process the first message transmitted on the first communication path, the first selecting unit 36 is configured to connect the RX 131 with the input end of the processing unit 35 according to the second indication information of the first message, and connect the TX132 with the output end of the processing unit 35, so that after the RX 131 receives the message, the message is sent to the processing unit 35 for processing, and the message processed by the processing unit 35 is sent out through the TX 132.
Similarly, for the second packet transmitted on the second communication path, the second packet is substantially the same as the first packet, except that the transmission path is different, the second packet also includes the first field, the first field may be used as indication information, the RX2 33 of the slave station 30 receives the second packet and sends the second packet to the second selection unit 37, and the second selection unit 37 determines whether the second packet is configured for processing in the slave station 30 according to the indication information of the second packet.
For example, when the indication information of the second message is the first indication information, for example, the first field is "1", the first indication information is used to indicate that the secondary station 30 is in the backup path of the second message, that is, the secondary station 30 does not need to process the second message transmitted on the second communication path, and the second selecting unit 37 is configured to connect the RX 233 with the TX2 34 according to the first indication information of the second message, so that after the RX 233 receives the second message, the second message is not processed by the processing unit 35, that is, sent out through the TX2 34.
Or when the indication information of the second message is the second indication information, for example, the first field is "0", the second indication information is used for indicating that the secondary station 30 is in the main path of the second message, that is, the secondary station 30 needs to process the second message transmitted on the second communication path, the second selecting unit 37 is configured to connect the RX 233 with the input end of the processing unit 35 according to the second indication information of the second message, and connect the TX 234 with the output end of the processing unit 35, so that after the RX 233 receives the second message, the second message is sent to the processing unit 35 for processing, and the second message processed by the processing unit 35 is sent out through the TX2 34.
In one possible implementation, for example, in the communication system formed by the master station 10 and the plurality of slave stations 30, for example, in the communication system shown in fig. 8, including the master station and the slave stations 30-1 to 30-8, the communication system may be configured by configuring the slave stations 30 to configure the slave stations 30-1, 30-3 and 30-5 to process a first message transmitted on a first communication path, the slave stations 30-2 and 30-4 to process a message transmitted on a second communication path, so that the traffic is shared on two paths, and the load is reduced, and for example, assuming that the duration required for each slave station 30 to process the traffic is the same and T is omitted, the time required for completing the traffic processing is 5T for the communication system in which the conventional master path processes the traffic and the backup path does not process the traffic, for the communication system provided in the embodiment of the present application, the slave stations 30-1, 30-3 and 30-5 process a message transmitted on the first communication path, and thus the load is reduced by the slave stations 30-3 and 30-5 to process the message transmitted on the first communication path, and the second message is reduced by the second communication path, and the load is reduced by implementing the application, and the method is further reduced by the second message transmission scheme, and the method is implemented by reducing the time required for processing the message transmitted on the second communication path by the second communication path and the second message is reduced by the second transmission time and the second transmission time is reduced by the first transmission time and the method and the second transmission method and the method is reduced and the time is reduced by the time and the time is reduced by 2 and the time and the 2 and the time is reduced and the time is compared 2 and is reduced and is as is reduced.
The secondary station 30 may be configured to process or not process the first message on the first communication path, or the secondary station 30 may be configured to process or not process the second message on the second communication path, for the first selection unit 36 it may be determined whether the secondary station 30 is on the primary path or the backup path of the first message, for the second selection unit 37 it may be determined whether the secondary station 30 is on the primary path or the backup path of the second message.
In one possible implementation, the secondary station 30 may be configured such that the first communication path is a primary path and the second communication path is a backup path, meaning that the secondary station 30 needs to process a first message transmitted on the first communication path and does not need to process a second message transmitted on the second communication path. In combination with the foregoing, it is known that the first message and the second message are the same, which means that the first message and the second message include the same indication information. For example, for the same indication information in the first message and the second message, if the first selection unit 36 determines that the first message on the first communication path needs to be processed according to the indication information of the first message, the second selection unit 37 determines that the second message on the second communication path does not need to be processed according to the indication information of the second message.
Or in another possible implementation, the secondary station 30 may be configured such that the first communication path is a backup path and the second communication path is a primary path, which means that the secondary station 30 needs to process the second message transmitted on the second communication path, and does not need to process the first message transmitted on the first communication path. Different judging logic is configured for the first selecting unit 36 and the second selecting unit 37, for example, for the same indication information in the first message and the second message, if the first selecting unit 36 judges that the first message on the first communication path does not need to be processed according to the indication information of the first message, the second selecting unit 37 judges that the second message on the second communication path needs to be processed according to the indication information of the second message.
Or in another possible implementation, both the first communication path and the second communication path may also be configured as a main path. I.e. the secondary station 30 needs to process a first message transmitted on a first communication path and also needs to process a second message transmitted on a second communication path. The first selection unit 36 and the second selection unit 37 are configured with the same judgment logic, for example, for the same indication information in the first message and the second message, the first selection unit 36 judges that the message on the first communication path needs to be processed according to the indication information of the first message, and the second selection unit 37 judges that the message on the second communication path needs to be processed according to the indication information of the second message.
It should be noted that, in general, in order to ensure that each slave station 30 processes its corresponding message, at least one path is the primary path for each slave station.
In one possible implementation, in order to adapt to the communication system shown in fig. 4, the embodiment of the present application may further configure all the secondary stations 30 in the communication system to have a first communication path as a primary path and a second communication path as a backup path, or vice versa. This results in a communication system in which one path is the primary path and the other path is the backup path as shown in fig. 4, wherein messages are only processed on the primary path, and the secondary stations on the backup path do not process messages and are only used as backups.
The communication system provided by the embodiment of the application can improve the communication efficiency in the industrial production environment, but in the industrial production environment, the safety is more important than the production efficiency. In case of failure, the system needs to respond to the failure in time, so as to avoid safety accidents. For example, in the event of a failure of some sensors, it is necessary to disconnect the drive bearings in time, avoiding injury to the person. The sensor is a fault detection point, the transmission bearing is a fault response point, and the fault response point needs to respond to the detected fault in time after the fault detection point detects the fault.
In the communication system shown in fig. 7, since the message is processed only on the primary path, if the slave station 20-1 is the fault response point, the slave station 20-4 is the fault detection point, and the fault detection point is behind the fault response point, if the slave station 20-4 processes the traffic to detect the fault, the message needs to run for a complete period, and after returning to the master station 10, the fault response point can be notified in the next message period, that is, the slave station 20-1 responds to the fault. If the fault is to be responded quickly in one period, the fault detection point is required to be arranged at the front, the fault response point is required to be arranged at the rear, but in the actual production environment, the setting positions of all the secondary stations are affected by a plurality of factors, and the requirement that the fault detection point is arranged at the front and the fault response point is arranged at the rear cannot be completely met.
In the communication system provided by the embodiment of the application, since the messages can be transmitted and processed on the first communication path and the second communication path, the time for processing the messages on each path is smaller than the time for completing one period shown in fig. 4 or fig. 7, so that the faults can be responded more quickly, and the messages can be transmitted and processed on the first communication path and the second communication path, and the slave station 30 processes the messages on which path is configurable, so that the fault detection point and the fault response point do not need to consider the deployment position, and the networking is more flexible. In addition, in some cases, in extreme cases, a plurality of fault response points may be disposed on the left side and the right side of the fault detection point, and the secondary station 30 may be set to process messages in two directions, that is, process messages on the first communication path and process messages on the second communication path, so that fault information detected by the fault detection point may be transmitted along two directions, so that it can be ensured that all fault response points can receive the messages processed by the fault detection point at the fastest, and respond to faults in time.
The original purpose of the dual-ring redundancy network structure is to improve the reliability of the system, for example, when the main path has a problem, the backup path can be used to complete the transmission of the message. For the communication system provided in the embodiment of the present application, when a port on one side of the slave station 30 fails, the port on the other side may be used to complete the message transmission.
For example, with continued reference to fig. 9, the first menu 36 is further configured to connect the input of the processing unit 35 to RX 131 and the output of the processing unit 35 to TX2 34 when either TX 132 of the slave 30 or RX2 33 of the slave 30 fails.
The TX 132 of the secondary station 30 is configured to transmit a message on the first communication path, the RX 233 of the secondary station 30 is configured to receive a message on the second communication path, if either the TX 132 or the RX 233 fails, the RX 131 and the TX2 34 are not failed, in which case the RX 131 of the secondary station 30 may receive a message transmitted on the first communication path, but in the case of a failure of the TX 132 the message cannot continue to be transmitted to a subsequent node of the first communication path, and if the RX 233 fails, the secondary station 30 cannot receive a message transmitted on the second communication path, but the TX2 34 is not failed, and may continue to transmit a message on the second communication path, so in this case, in order to ensure that the message can be processed and normally transmitted, the first selection unit 36 is configured to connect the input of the processing unit 35 to the TX 131 and connect the output of the processing unit 35 to the TX2 when either the TX1 or the RX 233 fails, so that the message transmitted on the first communication path is not transmitted on the subsequent node of the first communication path is transmitted to the second communication path, and the secondary station 30 may continue to transmit a message through the second communication path, which normally affects the transmission of the message through the second communication path, the secondary station 30, and the primary station 30 may not be able to transmit a message after the failure of the second communication path.
Similarly, the second selection unit 37 is further configured to connect the input of the processing unit 35 with RX2 33 and the output of the processing unit 35 with TX 132 when either TX2 34 of the slave 30 or RX 131 of the slave 30 fails.
In a possible implementation, TX 234 of secondary station 30 is used to send a message on the second communication path, RX 131 of secondary station 30 is used to receive a message on the first communication path, if TX 234 or RX 131 fails, RX 233 and TX1 32 are not failed, in which case RX 233 of secondary station 30 may receive a message transmitted on the second communication path, but in the event of TX 234 failure, the message may not continue to be sent to a subsequent node of the second communication path, if RX 131 fails, secondary station 30 may not receive a message transmitted on the first communication path, but TX1 32 may continue to be sent on the first communication path, so in this case, in order to ensure that the message can be processed and normally transmitted, second selection unit 37 is configured to connect the input of processing unit 35 to RX2 when TX 234 or RX 131 of secondary station 30 fails, and to connect the output of processing unit 35 to RX2, in which case of TX 234 fails, and to send a message to a subsequent node of the second communication path, in which case of TX1 fails, the message may not be processed back to the first communication path through the second communication path, in which case of TX1 fails, the message may still be processed to be sent back to the primary station 30 through the second communication path, and the message may not be received on the second communication path.
Referring to fig. 10, a block diagram of a secondary station 30 according to an embodiment of the present application is shown in fig. 10, wherein the first selecting unit 36 includes a first multiplexer 361 and a second multiplexer 362, the first multiplexer 361 and the second multiplexer 362 are single-input dual-output multiplexers, an input terminal of the first multiplexer 361 is connected to the RX 131 of the secondary station 30, a first output terminal of the first multiplexer 361 is connected to the TX 132 of the secondary station 30, a second output terminal of the first multiplexer 361 is connected to an input terminal of the processing unit 35, an input terminal of the second multiplexer 362 is connected to an output terminal of the processing unit 35, a first output terminal of the second multiplexer 362 is connected to the TX 132, and a second output terminal of the second multiplexer 362 is connected to the TX 234.
In a possible implementation, when the indication information of the first message is the first indication information, the first selection unit 36 is configured to connect the RX 131 of the slave station 30 with the TX 132 of the slave station 30 according to the first indication information of the first message, in which case the input of the first multiplexer 361 is in conduction with the first output of the first multiplexer 361, and the second multiplexer 362 is not operated, since the input of the first multiplexer 361 is connected with the RX 131 of the slave station 30, the first output of the first multiplexer 361 is connected with the TX 132 of the slave station 30, which is equivalent to connecting the RX 131 of the slave station 30 with the TX 132 of the slave station 30.
In another possible implementation, when the indication information of the first message is the second indication information, the first selection unit 36 is configured to connect the RX1 of the slave station 30 with the input of the processing unit 35 and connect the output of the processing unit 35 with the TX1 32 of the slave station 30 according to the second indication information of the first message. In this case, the input terminal of the first multiplexer 361 is connected to the second output terminal, the RX1 of the slave station 30 is connected to the input terminal of the processing unit 35, the input terminal of the second multiplexer 362 is connected to the first output terminal, and the output terminal of the processing unit 35 is connected to the TX1 32 of the slave station 30.
If either TX1 or RX 233 of the secondary station 30 fails, the input of the second multiplexer 362 is in communication with the second output, connecting the output of the processing unit 35 to TX2 34 of the secondary station 30, so that the first message received by RX 131 of the secondary station 30 can be sent out through TX2 34 of the secondary station 30.
The second selecting unit 37 includes a third multiplexer 371 and a fourth multiplexer 372, the third multiplexer 371 and the fourth multiplexer 372 are single-input and dual-output multiplexers, an input terminal of the third multiplexer 371 is connected to the RX2 33 of the slave station 30, a first output terminal of the third multiplexer 371 is connected to the TX2 34 of the slave station 30, a second output terminal of the third multiplexer 371 is connected to an input terminal of the processing unit 35, an input terminal of the fourth multiplexer 372 is connected to an output terminal of the processing unit 35, a first output terminal of the fourth multiplexer 372 is connected to the TX2 34 of the slave station 30, and a second output terminal of the fourth multiplexer 372 is connected to the TX 132 of the slave station 30.
In a possible implementation, when the indication information of the second message is the first indication information, the second selection unit 37 is configured to connect the RX2 33 of the slave station 30 with the TX2 34 of the slave station 30 according to the first indication information of the second message, in which case the input of the third multiplexer 371 is in conduction with the first output of the third multiplexer 371, the second multiplexer 362 is not operative, since the input of the third multiplexer 371 is connected with the RX2 33 of the slave station 30, the first output of the third multiplexer 371 is connected with the TX2 34 of the slave station 30, which is equivalent to connecting the RX2 33 of the slave station 30 with the TX2 34 of the slave station 30.
In another possible implementation, when the indication information of the second message is the second indication information, the second selecting unit 37 is configured to connect the RX2 33 of the secondary station 30 with the input of the processing unit 35 and connect the output of the processing unit 35 with the TX2 34 of the secondary station 30 according to the second indication information of the second message. In this case, the input of the third multiplexer 371 is in communication with the second output, connecting RX2 33 of the secondary station 30 with the input of the processing unit 35, and the input of the fourth multiplexer 372 is in communication with the first output, connecting the output of the processing unit 35 with TX2 34 of the secondary station 30.
If either TX2 34 or RX1 31 of the slave station 30 fails, the input of the fourth multiplexer 372 is connected to the second output, connecting the output of the processing unit 35 to TX1 32, so that the second message received by RX 233 can be sent out through TX1 32.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311135458.3A CN119561801A (en) | 2023-09-01 | 2023-09-01 | A slave station and communication system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311135458.3A CN119561801A (en) | 2023-09-01 | 2023-09-01 | A slave station and communication system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN119561801A true CN119561801A (en) | 2025-03-04 |
Family
ID=94738943
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311135458.3A Pending CN119561801A (en) | 2023-09-01 | 2023-09-01 | A slave station and communication system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN119561801A (en) |
-
2023
- 2023-09-01 CN CN202311135458.3A patent/CN119561801A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4782823B2 (en) | User terminal, master unit, communication system and operation method thereof | |
US8531942B2 (en) | Communication system having a master/slave structure | |
JP4776374B2 (en) | Redundant supervisory control system and redundant switching method for the same system | |
US8001306B2 (en) | Interface unit and communication system having a master/slave structure | |
CN101584155B (en) | Communication system having a master/slave structure | |
JPH10228426A (en) | Bus system and operating method for bus system | |
US5387902A (en) | Data networks | |
EP2088684B1 (en) | Information transmission system and information transmission method | |
CN105978735A (en) | Protection method and device for serial bus communication network | |
JP2008544678A (en) | Communication network system | |
CN119561801A (en) | A slave station and communication system | |
JP2005159546A (en) | Network system | |
JP3419979B2 (en) | Device state management method and data communication system | |
US6934882B2 (en) | Method and device to transmit data | |
JP5459117B2 (en) | Data transmission apparatus and data transmission method | |
JP2023004453A (en) | Redundancy module | |
JP2011188414A (en) | Ring type switch, ring type ethernet system, method of controlling ring type switch, and method of controlling ring type ethernet system | |
JPH04188926A (en) | Signal path switching device for loop-shaped data transmission system | |
JPS6143039A (en) | Data transmission loop changeover device | |
JP2021034907A (en) | Communication apparatus, abnormality detection method and program | |
JPS60197045A (en) | Loop connection control system | |
JPH0324111B2 (en) | ||
JPS6178243A (en) | Faulty station detecting system in duplicated loop network | |
JPH01136444A (en) | Loopback system for duplexed system | |
JPH0437346A (en) | Duplicate communication system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication |