Nothing Special   »   [go: up one dir, main page]

CN113595845B - Method for realizing ring network communication - Google Patents

Method for realizing ring network communication Download PDF

Info

Publication number
CN113595845B
CN113595845B CN202110834070.7A CN202110834070A CN113595845B CN 113595845 B CN113595845 B CN 113595845B CN 202110834070 A CN202110834070 A CN 202110834070A CN 113595845 B CN113595845 B CN 113595845B
Authority
CN
China
Prior art keywords
ring network
unit
main controller
address
information
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.)
Active
Application number
CN202110834070.7A
Other languages
Chinese (zh)
Other versions
CN113595845A (en
Inventor
董锁英
董会然
高志辉
朱东涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HEBEI XUHUI ELECTRIC CO Ltd
Original Assignee
HEBEI XUHUI ELECTRIC CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by HEBEI XUHUI ELECTRIC CO Ltd filed Critical HEBEI XUHUI ELECTRIC CO Ltd
Priority to CN202110834070.7A priority Critical patent/CN113595845B/en
Publication of CN113595845A publication Critical patent/CN113595845A/en
Application granted granted Critical
Publication of CN113595845B publication Critical patent/CN113595845B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/427Loop networks with decentralised control

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a looped network communication implementation method, which is implemented based on a looped network system, wherein the looped network system comprises a main controller and a plurality of looped network units which are connected end to end, and a unidirectional looped network is formed by adjacent devices in a unidirectional receiving and transmitting mode; the method for realizing the looped network communication comprises three aspects: the main controller performs networking by sending a link test and address setting command; the main controller realizes the collection of data of each unit by sending a unit data summoning command; the ring network unit uses the signal state of the control end to control and send the information of the ring network unit to the next adjacent device or directly transmit the received ring network information to the next adjacent device. The invention is based on a free protocol, is simple and easy to implement, can exert advantages in a small equipment private network with stronger independence, and is particularly suitable for a distributed control system which needs high-speed and high-efficiency information transmission.

Description

Method for realizing ring network communication
Technical Field
The invention relates to the technical field of network communication, in particular to a method for realizing ring network communication.
Background
The ring network is a communication network which uses a continuous ring to connect all devices together, can ensure that signals sent by one device can be seen by all other devices on the ring, has the characteristics of simple implementation, low cost, high flexibility and the like, and is widely applied to systems such as an industrial field control system, an Ethernet network system and the like. In the prior art, a plurality of looped networks are established based on Ethernet, so that the interfaces and the like are limited, and the information transmission speed is relatively slow in the application of a small-sized equipment distributed private network.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method for realizing the ring network communication, which is simple and feasible and is suitable for a small-sized equipment private network.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows.
A ring network communication implementation method is realized based on a ring network system, the ring network system comprises a main controller and a plurality of ring network units which are connected end to end, and adjacent devices form a unidirectional ring network in a unidirectional receiving and transmitting mode;
the method for realizing the ring network communication comprises three aspects: the main controller performs networking by sending a link test and address setting command; the main controller realizes the collection of data of each unit by sending a unit data summoning command; the ring network unit uses the signal state of the control end to control and send the information of the ring network unit to the next adjacent device or directly transmit the received ring network information to the next adjacent device.
In the method for implementing ring network communication, the ring network unit receives ring network information through an RXD port, transmits data to a next adjacent device through a TXD port, and controls the content transmitted through the TXD port through a controlled terminal COM _ CTRL; when the COM _ CTRL of the controlled end is in a logic '1' state, the sending channel is directly communicated with the receiving channel, the DATA sent out from the TXD port is the DATA RXD _ DATA received from the RXD port, and each ring network unit in the ring network receives a ring network command without delay; when the controlled end COM _ CTRL is in a logic '0' state, the ring network unit sends sampling information TXD _ DATA of the device.
In the method for implementing ring network communication, the method for collecting information of each ring network unit by the main controller includes the following steps:
1) The main controller sends a test communication link command at regular time until the main controller continuously receives the test communication link commands returned by all the ring network units in the ring network, and a communication link is established;
2) After the access link is established, the main controller sends an address setting command, the controlled ends of all the ring network units are set in a logic '0' state, and when the main controller receives an address N +1, namely the number of the ring network units is N, and N is the same as the preset number of hardware, the address setting success can be judged;
3) After the address setting is finished, the main controller sends a unit information calling command, when the ring network unit with the unit address of N receives the information of the previous ring network unit N-1, the main controller sends the information of the main controller, and after the main controller receives the information of the N units, the execution process is finished.
Due to the adoption of the technical scheme, the technical progress of the invention is as follows.
The invention is based on a free protocol, is simple and easy to implement, can exert advantages in a small equipment private network with stronger independence, and is particularly suitable for a distributed control system which needs high-speed and high-efficiency information transmission.
Drawings
FIG. 1 is a block diagram of the present invention.
Detailed Description
The invention will be described in further detail below with reference to the figures and specific examples.
A ring network communication implementation method is shown in a structural block diagram of figure 1 and is implemented based on a ring network system, wherein the ring network system comprises a main controller and a plurality of ring network units which are connected end to end, and a unidirectional ring network is formed between adjacent devices in a unidirectional receiving and transmitting mode.
The method for realizing the looped network communication comprises three aspects: the main controller performs networking by sending a link test and address setting command; the main controller realizes the collection of data of each unit by sending a unit data summoning command, and the ring network unit uses the signal state of the control end to control and send the information of the unit to the next adjacent device or directly forwards the received ring network information to the next adjacent device.
And the ring network unit of the control end is used for receiving ring network information through the RXD port, sending data to the next adjacent device through the TXD port and controlling the content sent by the TXD port through the controlled end COM _ CTRL. When the COM _ CTRL of the controlled end is in a logic '1' state, the sending channel can be regarded as being directly communicated with the receiving channel, the DATA sent out from the TXD port is the DATA RXD _ DATA received from the RXD port, and all ring network units in the ring network almost receive a ring network command without delay; when the controlled end COM _ CTRL is in a logic '0' state, the ring network unit sends sampling information TXD _ DATA of the device.
The method for collecting the information of each ring network unit by the main controller comprises the following steps:
1) The master controller sends a link test command.
After the system is powered on and the ring network units are reset, the COM _ CTRL of the controlled end is in a logic '1' state by default, namely, data sent by the host can be directly sent to the next unit, the main controller sends a communication link testing command at regular time until the main controller continuously receives the communication link testing commands returned by all the ring network units in the ring network, and the communication link is established.
All the ring network units send the data out when receiving the data, namely all the ring network units almost receive the data sent by the main controller without time delay.
2) The main controller sends a set address command.
After a communication link is established, the main controller sends an address setting command, controlled ends COM _ CTRL of all units are set in a logic '0' state, the main controller sends a setting unit address x +1 after delaying, the received ring network unit 1 sets the address of the ring network unit to x +1, the setting unit address x +2 is sent, and then the controlled ends COM _ CTRL are set in a logic '1' state; the received ring network unit 2 sets the address of the ring network unit to be x +2, sends a set unit address x +3, and then the controlled end COM _ CTRL is placed in a logic '1' state; by analogy, the last ring network unit sets the address of the ring network unit as N, sends the unit address of N +1, and then the controlled end COM _ CTRL is placed in a logic '1' state. The main controller receives the address N +1, and then knows that the number of the ring network units is N, and when N is the same as the preset number of the hardware, the main controller can judge that the address setting is successful.
3) The main controller sends a unit information summoning command to realize the information collection of each unit.
After the address setting is finished, the main controller sends a unit information summoning command, after a unit 1 with a summoning command address x and an address of x +1 receives the command, the COM _ CTRL of the controlled end is placed in a logic '0' state, the unit information is sent, and after the sending is finished, the COM _ CTRL is placed in a logic '1' state. By parity of reasoning, the ring network unit with the unit address N sends the information of the ring network unit N-1 after receiving the information of the previous ring network unit. And when the main control receives the N unit information, the command execution process is completed.

Claims (1)

1. A method for realizing ring network communication is characterized in that: the method for realizing the ring network communication is realized based on a ring network system, the ring network system comprises a main controller and a plurality of ring network units which are connected end to end, and a unidirectional ring network is formed between adjacent devices in a unidirectional receiving and transmitting mode;
the method for realizing the ring network communication comprises three aspects: the main controller performs networking by sending a link test and address setting command; the main controller realizes the collection of data of each unit by sending a unit data summoning command; the ring network unit uses the signal state of the control end to control and send the information of the ring network unit to the next adjacent device or directly transmit the received ring network information to the next adjacent device;
the ring network unit receives ring network information through an RXD port, transmits data to a next adjacent device through a TXD port, and controls the content transmitted by the TXD port through a controlled terminal COM _ CTRL; when the COM _ CTRL of the controlled terminal is in a logic '1' state, the transmitting channel is directly connected with the receiving channel, the DATA transmitted from the TXD port is the DATA RXD _ DATA received from the RXD port, and each ring network unit in the ring network receives a ring network command without delay; when the COM _ CTRL of the controlled end is in a logic '0' state, the ring network unit sends sampling information TXD _ DATA of the device;
the method for collecting the information of each ring network unit by the main controller comprises the following steps:
1) The main controller sends a link test command
After a system is powered on and a ring network unit is reset, a controlled end COM _ CTRL is in a logic '1' state by default, namely data sent by a host can be directly sent to a next unit, a main controller sends a communication link test command at regular time until the main controller continuously receives communication link test commands returned by all ring network units in a ring network, and a communication link is established;
2) The main controller sends an address setting command
After a communication link is established, the main controller sends an address setting command, controlled ends COM _ CTRL of all units are set in a logic '0' state, the main controller sends a setting unit address x +1 after delaying, the received ring network unit 1 sets the address of the ring network unit to x +1, the setting unit address x +2 is sent, and then the controlled ends COM _ CTRL are set in a logic '1' state; the received ring network unit 2 sets the address of the ring network unit to be x +2, the setting unit address x +3 is sent, and then the controlled end COM _ CTRL is placed in a logic '1' state; by parity of reasoning, the last ring network unit sets the address of the last ring network unit as N, sends the unit address of N +1, and then the controlled end COM _ CTRL is placed in a logic '1' state; the main controller receives the address N +1, namely the number of the ring network units is known to be N, and the address setting success can be judged when N is the same as the preset number of the hardware;
3) Main controller sending unit information calling command to realize information collection of each unit
After the address setting is finished, the main controller sends a unit information calling command, after a unit 1 with the address x of the calling command and the address x +1 receives the command, the COM _ CTRL of the controlled end is placed in a logic '0' state, the unit information is sent, and after the sending is finished, the COM _ CTRL is placed in a logic '1' state; by parity of reasoning, the ring network unit with the unit address N sends the information of the ring network unit N-1 after receiving the information of the previous ring network unit; and when the main control receives the N unit information, the command execution process is completed.
CN202110834070.7A 2021-07-23 2021-07-23 Method for realizing ring network communication Active CN113595845B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110834070.7A CN113595845B (en) 2021-07-23 2021-07-23 Method for realizing ring network communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110834070.7A CN113595845B (en) 2021-07-23 2021-07-23 Method for realizing ring network communication

Publications (2)

Publication Number Publication Date
CN113595845A CN113595845A (en) 2021-11-02
CN113595845B true CN113595845B (en) 2023-01-31

Family

ID=78249444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110834070.7A Active CN113595845B (en) 2021-07-23 2021-07-23 Method for realizing ring network communication

Country Status (1)

Country Link
CN (1) CN113595845B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634186A (en) * 2013-01-30 2014-03-12 深圳市禾望电气有限公司 Ring-network serial communication method and system
CN103812962A (en) * 2014-02-12 2014-05-21 南京欧帝科技股份有限公司 Automatic device communication address allocation system based on serial interface and working method
CN106899472A (en) * 2017-04-19 2017-06-27 广州睿嵌电子技术有限公司 A kind of unidirectional ring network controller and its application method

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5914957A (en) * 1996-12-19 1999-06-22 Otis Elevator Company Automatic node configuration with identical nodes
EP1322073A1 (en) * 2001-12-22 2003-06-25 3Com Corporation Communication system with ring topology and automatic reconfiguration in case of a failure
US8295204B2 (en) * 2008-02-22 2012-10-23 Fujitsu Limited Method and system for dynamic assignment of network addresses in a communications network
JP2011223396A (en) * 2010-04-12 2011-11-04 Toshiba Corp Address distribution method and device
CN105743757B (en) * 2016-01-27 2018-07-20 南京埃斯顿自动化股份有限公司 The method of the free networking of RS485 communicating terminals
CN106205013B (en) * 2016-07-14 2018-10-26 中车青岛四方车辆研究所有限公司 Smoke detector based on automatic addressing mode and the means of communication
CN107231455A (en) * 2017-07-28 2017-10-03 北京硕人时代科技股份有限公司 A kind of method and device for distributing mailing address
CN108616610A (en) * 2018-05-21 2018-10-02 深圳前海有电物联科技有限公司 Address distribution method, host, slave and bus system
CN110417930B (en) * 2019-06-19 2022-02-25 浙江天正电气股份有限公司 Automatic allocation method for serial device communication address
CN112994930A (en) * 2021-02-05 2021-06-18 南京南瑞继保电气有限公司 Submodule address learning method and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634186A (en) * 2013-01-30 2014-03-12 深圳市禾望电气有限公司 Ring-network serial communication method and system
CN103812962A (en) * 2014-02-12 2014-05-21 南京欧帝科技股份有限公司 Automatic device communication address allocation system based on serial interface and working method
CN106899472A (en) * 2017-04-19 2017-06-27 广州睿嵌电子技术有限公司 A kind of unidirectional ring network controller and its application method

Also Published As

Publication number Publication date
CN113595845A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN110635982B (en) Double-host communication method and system on communication bus, industrial control gateway and storage medium
CN101707544A (en) E1 channel multidirectional network bridge transmission device and method
CN101562571A (en) KVM extender system and local, remote modules thereof
CN108614789B (en) Communication system and method of serial port bus with handshake mechanism
US20100296519A1 (en) Ethernet Physical Layer Repeater
US7206882B2 (en) Triggered communication network for CANOpen networks
CN101847135B (en) Series-connected communication system and communication method thereof
CN113595845B (en) Method for realizing ring network communication
CN107168045A (en) A kind of communication redundancy control system based on EtherCAT
CN108667706A (en) The adjustable Ethernet serial server of serial ports quantity dynamic and its data transmission method
CN114039810B (en) Flexible automatic control system based on Ethernet
KR100325323B1 (en) Local Digital Subscriber's Line; LDSL
JPS5829244A (en) Data communication system
CN110430023B (en) Data transmission method suitable for SpaceWire bus communication
CN110297795B (en) System and method for realizing single-channel serial data transmission based on Ethernet PHY chip
CN104750021B (en) Numerical control system
EP1525722B1 (en) Packet signal processing architecture
CN117349215A (en) Ultra-high-speed serial communication method and system of extension unit
CN116436489A (en) UART interaction system and method in half-duplex mode
CN108011798B (en) NC and RT data communication method
CN113746752A (en) Method and system for quick communication of series modules
CN205005067U (en) Gateway of communicating is agreed with CANopen to SPI agreement
CN108292954A (en) A kind of method of adjustment of the Wi-Fi transmission rates of ONT and ONT
CN112866069A (en) Method for solving conflict and disorder of multi-party sending same port
CN104038451A (en) Transmission processing method and system for multipath telegraph keying signals

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