CN105471688A - Communication node, communication link based on communication node and working method thereof - Google Patents

Communication node, communication link based on communication node and working method thereof Download PDF

Info

Publication number
CN105471688A
CN105471688A CN201510778166.0A CN201510778166A CN105471688A CN 105471688 A CN105471688 A CN 105471688A CN 201510778166 A CN201510778166 A CN 201510778166A CN 105471688 A CN105471688 A CN 105471688A
Authority
CN
China
Prior art keywords
communication node
communication
node
serial ports
mac address
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
Application number
CN201510778166.0A
Other languages
Chinese (zh)
Other versions
CN105471688B (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.)
Conway Communication Technology Co Ltd
Original Assignee
Shandong Conwell Communication Technology 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 Shandong Conwell Communication Technology Co Ltd filed Critical Shandong Conwell Communication Technology Co Ltd
Priority to CN201510778166.0A priority Critical patent/CN105471688B/en
Publication of CN105471688A publication Critical patent/CN105471688A/en
Application granted granted Critical
Publication of CN105471688B publication Critical patent/CN105471688B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/40Bus networks
    • H04L12/40052High-speed IEEE 1394 serial bus
    • H04L12/40097Interconnection with other networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

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

Abstract

The invention discloses a communication node, a communication link based on the communication node and a working method thereof. The communication node comprises a control unit provided with a 485 port, a network port and a plurality of serial ports. The serial ports are connected with a high-speed difference bus through a level converting circuit. The 485 port and the network port are connected with external devices. Based on an Ethernet protocol stack of the high-speed serial ports, serial port forwarding interfaces are added to the node, a cascade connection mode is adopted, and link development can be conveniently realized. Based on a baud rate self-adaption technology, the communication node can be flexibly and stably used for electric power channel communication with various distances. The node is provided with the expansion interfaces such as the network port and the 485 port, so that the access of various kinds of equipment is available. Based on the communication node, the reliable, flexible and high-speed communication link can be conveniently constructed, so that the access of network equipment is realized.

Description

A kind of communication node, based on the communication link of communication node and method of work thereof
Technical field
The Ethernet protocol stack that the present invention relates to based on High Speed Serial realizes and exchanging mechanism, particularly relates to a kind of communication node, based on the communication link of communication node and method of work thereof.
Background technology
Usually realized the UNICOM of different physical link between serial ports from network interface by the mode of serial server, but it realizes the exchange that result is application layer data, the standing mode counting transparent transmission, can not ensure the reliability of the application layer data that serial ports receives.And in implementation, be single-stage conversion mostly, because netting twine is the transmission range of about hundred meters mostly, although 485 ports can increase transmission range, on transmission link, again cannot carry out the expansions such as equipment access, very flexible.
Summary of the invention
Object of the present invention is exactly to solve the problem, a kind of communication node is provided, based on the communication link of communication node and method of work thereof, the present invention is based on the Ethernet protocol stack of High Speed Serial, increase serial ports forwarding interface at node, adopt cascade connected mode, conveniently realize link and expand.Coordinate baud rate self-adapting technology, the various distances being applicable to electric power tunnel communication that can be stable flexibly.Node is designed with network interface, the expansion interfaces such as 485, various equipment access can be realized.Based on this, the communication link of a reliable high speed flexibly can be built easily, thus achieve the access of the network equipment.
To achieve these goals, the present invention adopts following technical scheme:
A kind of communication node, comprising: control unit, described control unit is provided with 485 ports, network interface and some serial ports, and described serial ports is all connected with high-speed-differential bus by level shifting circuit, and described 485 ports and network interface are used for being connected with external device.
Described control unit is ARM chip.
Described communication node has four serial ports.
Based on the communication link of communication node, comprise: some communication nodes, communication node is connected by high-speed-differential bus each other, communication node is also connected with node manager by high-speed-differential bus, described node manager is connected with platform by TCP/IP bus, and described communication node is also connected with external equipment.
Based on the method for work of the communication link of communication node, comprise the steps:
Step (1): build high speed uplink serial ports path and descending serial ports path at each communication node of communication link;
Step (2): each communication node carries out sub-frame processing to high speed uplink serial ports path and descending serial ports path data;
Step (3): each communication node of communication link realizes switch function, after receiving data, to process Frame according to destination-mac address and data type or forwards.
The communication node of described step (1) possesses high data throughput capabilities, and baud rate reaches 5Mbps.
The switch function of described step (3) comprises external equipment and data retransmission.
The step of described step (3), is implemented as follows:
Step (31): the communication node on communication link sets up the mapping of source MAC with communication node port according to the source MAC received in Frame, and by mapping write mac address table; Described communication node port comprises: serial ports end and network interface end; Described mac address table comprises mac address table corresponding to serial ports end and mac address table corresponding to network interface end;
Step (32): the target MAC (Media Access Control) address in Frame compares with the mac address table set up by communication node, selects corresponding ports to carry out processing or forwarding according to comparative result;
If the address in the mac address table that target MAC (Media Access Control) address is corresponding with serial ports end is consistent, then protocol stack is given to process Frame;
If the address in the mac address table that target MAC (Media Access Control) address is corresponding with network interface end is consistent, then judges the whether successful connection of network interface end and external connection apparatus further, if success, Frame is transmitted to corresponding external equipment, if non-successful connection, does not forward;
If target MAC (Media Access Control) address is not in mac address table, then to all of the port forwarding data frame of communication node.
Described protocol stack adopts LWIP lightweight Embedded Protocol Stack.
LwIP is LightWeight (light-duty) IP agreement, and the support with or without operating system can run.The emphasis that LwIP realizes reduces taking RAM on the basis keeping Transmission Control Protocol major function, and it only needs the ROM of about RAM and 40K of tens KB just can run, and this makes LwIP protocol stack be adapted at using in the embedded system of low side.
Described step (2) each communication node realizes sub-frame processing by STM32F4XX chip.
Described step (2), the data of High Speed Serial path continuously send at a high speed, and the framing in units of wrapping of the Ethernet data of network access equipment sends, so sub-frame processing must be carried out to High Speed Serial data, to realize the reliable and stable conversion of serial data and Ethernet data.
Communication node adopts STM32F4XX chip, is carried out the reception of data by the idle interrupt mode of the DMA of chip, due to the existence of frame period, after often harvesting frame data, and notice CPU process.Can ensure that the CPU treatment system of terminal frequently need not enter terminal log according to processing like this, thus realize the data received from serial ports to carry out sub-frame processing.STM32F4xx is a ARM chip based on CORTEX-M4A kernel,
When dataframe, the idle interrupt mode of same employing DMA, requires to have a bytesfree time at least, when carrying out data and sending, one bag data must send continuously, do not allow to occur interval, can prevent CPU in process of transmitting from being interrupted the discontinuous situation of the data caused like this.
Beneficial effect of the present invention:
By enforcement of the present invention, can realize the cascade of each terminal node on electric power tunnel communication link, link communication distance, link increases external equipment, and expand and connect simply easily, flexibility is good.Each node provides network interface and 485 interfaces, facilitate the access of various types of external equipment.Based on this, the communication link of a reliable high speed flexibly can be built easily, can flexibly for various distance.Adapt to various different electric power tunnel, the stability of the communication data of guarantee and fail safe, thus ensure the safe and stable operation of electric power tunnel.
Accompanying drawing explanation
Fig. 1 hardware node schematic diagram of the present invention;
Fig. 2 is that on communication link of the present invention, node realizes switch function schematic diagram;
Fig. 3 is the application block diagram of a kind of ethernet communication mode based on High Speed Serial and network equipment access.
Embodiment
Below in conjunction with accompanying drawing and embodiment, the invention will be further described.
As shown in Figure 1, for each hardware terminal on communication link, by hardware terminal with ARM chip for core, realize this terminal high-speed up-downgoing serial ports path, and possess 485 mouthfuls and network interface, the connection with external equipment can be realized by 485 mouthfuls and network interface.
Terminal on each communication link is a communication node.Each communication node possesses 4 High Speed Serials, 1 485 mouthfuls and 1 network interface.This node possesses high data throughput capabilities, and baud rate can reach 5Mbps.By the cascade of high-speed-differential bus between node.
As shown in Figure 2, in communication link, the effect of each node mainly builds local area network (LAN), and therefore external equipment and data retransmission node realizes the function of switch.
Node on communication link sets up the mapping of this address with switch ports themselves according to the source MAC received in Frame, and is write in mac address table.
Target MAC (Media Access Control) address in Frame compares with the mac address table set up, to determine by which port to be forwarded by switch.Need the mac address table of contrast to be mainly divided into two parts, one is own MAC address, is confirmed whether the data for paying in self, and two is contrast with external equipment mac address table, is confirmed whether as external equipment.When external equipment state (network interface state) does not have successful connection, do not forward to external equipment.Here mainly to network interface locking equipment and the data of self, the mac address table contrasted therefore is needed also to comprise this two data.
If the target MAC (Media Access Control) address in Frame is not in mac address table, then forward, if broadcast frame and multicast frame are to all port repeats to all of the port.
As shown in Figure 3, communication node is connected with node manager by high-speed-differential bus interface; Node manager is connected with Platform Manager by TCP/IP; Connected by high-speed-differential bus between each node; Each node can by 485 mouthfuls and the external relevant device of network interface.
By reference to the accompanying drawings the specific embodiment of the present invention is described although above-mentioned; but not limiting the scope of the invention; one of ordinary skill in the art should be understood that; on the basis of technical scheme of the present invention, those skilled in the art do not need to pay various amendment or distortion that creative work can make still within protection scope of the present invention.

Claims (10)

1. a communication node, it is characterized in that, comprising: control unit, described control unit is provided with 485 ports, network interface and some serial ports, described serial ports is all connected with high-speed-differential bus by level shifting circuit, and described 485 ports and network interface are used for being connected with external device.
2. a kind of communication node as claimed in claim 1, is characterized in that, described control unit is ARM chip.
3. based on the communication link of communication node, it is characterized in that, comprise: some communication nodes, communication node is connected by high-speed-differential bus each other, communication node is also connected with node manager by high-speed-differential bus, described node manager is connected with platform by TCP/IP bus, and described communication node is also connected with external equipment.
4. based on the method for work of the communication link of communication node, it is characterized in that, comprise the steps:
Step (1): build high speed uplink serial ports path and descending serial ports path at each communication node of communication link;
Step (2): each communication node carries out sub-frame processing to high speed uplink serial ports path and descending serial ports path data;
Step (3): each communication node of communication link realizes switch function, after receiving data, to process Frame according to destination-mac address and data type or forwards.
5. method as claimed in claim 4, it is characterized in that, the communication node of described step (1) possesses high data throughput capabilities, and baud rate reaches 5Mbps.
6. method as claimed in claim 4, it is characterized in that, the switch function of described step (3) comprises external equipment and data retransmission.
7. method as claimed in claim 4, it is characterized in that, the step of described step (3), is implemented as follows:
Step (31): the communication node on communication link sets up the mapping of source MAC with communication node port according to the source MAC received in Frame, and by mapping write mac address table;
Step (32): the target MAC (Media Access Control) address in Frame compares with the mac address table set up by communication node, selects corresponding ports to carry out processing or forwarding according to comparative result;
If the address in the mac address table that target MAC (Media Access Control) address is corresponding with serial ports end is consistent, then protocol stack is given to process Frame;
If the address in the mac address table that target MAC (Media Access Control) address is corresponding with network interface end is consistent, then judges the whether successful connection of network interface end and external connection apparatus further, if success, Frame is transmitted to corresponding external equipment, if non-successful connection, does not forward;
If target MAC (Media Access Control) address is not in mac address table, then to all of the port forwarding data frame of communication node.
8. method as claimed in claim 7, it is characterized in that, described communication node port comprises: serial ports end and network interface end; Described mac address table comprises mac address table corresponding to serial ports end and mac address table corresponding to network interface end.
9. method as claimed in claim 4, is characterized in that, described protocol stack adopts LWIP lightweight Embedded Protocol Stack.
10. method as claimed in claim 4, it is characterized in that, described step (2) each communication node realizes sub-frame processing by STM32F4XX chip.
CN201510778166.0A 2015-11-13 2015-11-13 A kind of communication node, communication link and its working method based on communication node Active CN105471688B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510778166.0A CN105471688B (en) 2015-11-13 2015-11-13 A kind of communication node, communication link and its working method based on communication node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510778166.0A CN105471688B (en) 2015-11-13 2015-11-13 A kind of communication node, communication link and its working method based on communication node

Publications (2)

Publication Number Publication Date
CN105471688A true CN105471688A (en) 2016-04-06
CN105471688B CN105471688B (en) 2019-04-09

Family

ID=55608997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510778166.0A Active CN105471688B (en) 2015-11-13 2015-11-13 A kind of communication node, communication link and its working method based on communication node

Country Status (1)

Country Link
CN (1) CN105471688B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506407A (en) * 2016-11-09 2017-03-15 湖南戈人自动化科技有限公司 A kind of T-shaped Ethernet interconnection device
CN106533994A (en) * 2016-12-19 2017-03-22 天津光电通信技术有限公司 Network switching device and method
CN106528486A (en) * 2016-11-09 2017-03-22 湖南戈人自动化科技有限公司 Method for exchanging serial port data
CN108322407A (en) * 2017-12-25 2018-07-24 山东康威通信技术股份有限公司 Multiple spot chain type communication system and method based on high-speed-differential communication
CN109194442A (en) * 2018-08-08 2019-01-11 济南浪潮高新科技投资发展有限公司 A kind of serial port data forwarding device, method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103457882A (en) * 2013-08-29 2013-12-18 国家电网公司 Intelligent substation secure access method
CN103701665A (en) * 2013-12-27 2014-04-02 华为技术有限公司 Line connection error detecting method and device
CN104852980B (en) * 2015-05-11 2017-12-22 成都运达科技股份有限公司 tunnel monitoring system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506407A (en) * 2016-11-09 2017-03-15 湖南戈人自动化科技有限公司 A kind of T-shaped Ethernet interconnection device
CN106528486A (en) * 2016-11-09 2017-03-22 湖南戈人自动化科技有限公司 Method for exchanging serial port data
CN106506407B (en) * 2016-11-09 2019-08-27 湖南戈人自动化科技有限公司 A kind of T-type Ethernet interconnection device
CN106533994A (en) * 2016-12-19 2017-03-22 天津光电通信技术有限公司 Network switching device and method
CN108322407A (en) * 2017-12-25 2018-07-24 山东康威通信技术股份有限公司 Multiple spot chain type communication system and method based on high-speed-differential communication
CN108322407B (en) * 2017-12-25 2021-08-13 康威通信技术股份有限公司 Multi-point chain type communication system and method based on high-speed differential communication
CN109194442A (en) * 2018-08-08 2019-01-11 济南浪潮高新科技投资发展有限公司 A kind of serial port data forwarding device, method and system

Also Published As

Publication number Publication date
CN105471688B (en) 2019-04-09

Similar Documents

Publication Publication Date Title
CN105471688A (en) Communication node, communication link based on communication node and working method thereof
US11425588B2 (en) Data processing method and related device
EP3681081A1 (en) Data transmission method, device and system
US11888960B2 (en) Packet processing method and apparatus
CN104937896A (en) Method for processing address resolution protocol message, forwarder and controller
US20190273697A1 (en) Data Migration Method and Apparatus
US10306481B2 (en) Wireless mesh network configuration
CN113612801B (en) EPA gateway equipment and EPA cross-network communication method
CN105337895B (en) A kind of network equipment main computer unit, network equipment subcard and the network equipment
EP4044655A1 (en) Method for modifying ba protocol parameter and device
CN104993979A (en) Network connection monitoring method, terminal equipment and communication system
CN105553795A (en) Method for transmitting standard Ethernet data in industrial Ethernet
AU2017391782A1 (en) RLC layer status report control PDU transmitting method and related device
EP3713286B1 (en) Data processing method and related device
WO2024060904A1 (en) Communication method, and inverter and sub-array controller
CN109586931B (en) Multicast method and terminal equipment
CN104243319A (en) Neighbor discovering method and device thereof
WO2020222951A1 (en) A SYSTEM COMMUNICATION TECHNIQUE OVER PCIe (PERIPHERAL COMPONENT INTERCONNECT EXPRESS) LINK
WO2020088477A1 (en) Communication method and device
US20220149988A1 (en) Method for Adjusting Transmission Rate, Processor, Network Device, and Network System
CN114039810B (en) Flexible automatic control system based on Ethernet
WO2015096734A1 (en) Downlink transmission method for service data, and packet data gateway
US11765076B2 (en) Distributed spanning tree protocol
CN112866187B (en) Path switching method and path switching device
CN217770112U (en) EPA gateway equipment and EPA cross-network communication system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 250101 A203, block F, entrepreneurship square, Qilu Software Park, No.1 Shunhua Road, high tech Development Zone, Jinan City, Shandong Province

Patentee after: Conway Communication Technology Co., Ltd

Address before: 250101 Qilu Software Park, No. 1 Shunhua Road, Jinan High-tech Development Zone, Shandong Province, A 203

Patentee before: SHANDONG KANGWEI COMMUNICATION TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address