CN106533795B - automatic configuration real-time optical fiber communication system - Google Patents

automatic configuration real-time optical fiber communication system Download PDF

Info

Publication number
CN106533795B
CN106533795B CN201611153028.4A CN201611153028A CN106533795B CN 106533795 B CN106533795 B CN 106533795B CN 201611153028 A CN201611153028 A CN 201611153028A CN 106533795 B CN106533795 B CN 106533795B
Authority
CN
China
Prior art keywords
node
slave
initialization
slave node
communication
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
CN201611153028.4A
Other languages
Chinese (zh)
Other versions
CN106533795A (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.)
China Eastern Electric Group Co Ltd
Original Assignee
China Eastern Electric Group 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 China Eastern Electric Group Co Ltd filed Critical China Eastern Electric Group Co Ltd
Priority to CN201611153028.4A priority Critical patent/CN106533795B/en
Publication of CN106533795A publication Critical patent/CN106533795A/en
Application granted granted Critical
Publication of CN106533795B publication Critical patent/CN106533795B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/25Arrangements specific to fibre transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/25Arrangements specific to fibre transmission
    • H04B10/2589Bidirectional transmission
    • H04B10/25891Transmission components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Automation & Control Theory (AREA)
  • Optical Communication System (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

the application discloses an automatic configuration real-time optical fiber communication system, and relates to the technical field of power electronic control. The invention comprises a master controller and a plurality of slave controllers, wherein the master controller is provided with a plurality of channels, and each slave controller is provided with only one channel; each channel of the main controller is a main node, and each main node comprises a sending end and a receiving end; the channel of the slave controller is a slave node, and each slave node comprises a sending end and a receiving end; the transmitting end of the (N-1) th slave node is connected with the receiving end of the Nth slave node through the optical fiber, and the transmitting end of the Nth slave node is connected with the receiving end of the master node through the optical fiber. The invention can realize that all nodes in a control period receive and execute the instruction and return the measurement data to the main control node, and the communication speed can reach 100 Mb/s.

Description

Automatic configuration real-time optical fiber communication system
Technical Field
The invention relates to the technical field of power electronic control, in particular to an automatic configuration real-time optical fiber communication system.
Background
the traditional communication modes applied to the field of power electronic control mainly comprise TTL UART (transistor-transistor universal asynchronous receiver/transmitter), SPI (serial peripheral interface) communication protocols in boards and RS485/RS232 UART, CANopen and MODBUS among boards, and mainstream real-time communication protocols comprise ProfineIRT, Powerlink, EtherCAT and SERCOS (service operating system)
the UART is called Universal Asynchronous Receiver/Transmitter (Universal Asynchronous Receiver/Transmitter), the TTL UART is mainly applied to the on-board communication, the RS485/RS232 UART is generally applied to the inter-board communication, the UART is only a protocol of a link layer for transmitting one byte data, an application layer protocol needs to be designed on the upper layer of the UART for the power electronic control communication, the SPI is only a link layer protocol similar to the UART, and at least three optical fibers are needed for realizing the SPI, wherein one optical fiber is a clock signal, so that the cost of a communication system is increased. CANopen communication protocol based on CAN bus, MODBUS/RTU based on RS485 and MODBUS/TCP based on Ethernet are common communication protocols between boards, but are non-real-time communication protocols which CAN not meet the requirement of high-speed real-time communication of power electronics. The mainstream real-time communication protocols are all based on the ethernet, the protocols are complex, and meanwhile, the implementation cost of the optical fiber ethernet is high. Communication protocols in the field of serial communication include FC (fiber channel), PCI-E, RockIO, RapidIO and the like, if the communication protocols are realized in optical fibers, a high-speed serial transceiver carried by FPGA (field programmable gate array) is generally used, the level of the transceiver is usually differential CML, and the lowest baud rate is not less than 600Mb/s, so that high requirements are provided for an optical fiber transceiver module, the high-speed optical fiber transceiver module needs to be applied, and the cost is greatly increased.
Disclosure of Invention
The invention aims to provide a low-cost communication protocol meeting the power electronic real-time control, which can realize that all nodes in a control period receive and execute instructions and return measurement data to a main control node, and the communication speed can reach 100 Mb/s.
in order to solve the problems in the prior art, the invention is realized by the following technical scheme:
an automatically configurable real-time optical fiber communication system, comprising: the system comprises a master controller and a plurality of slave controllers, wherein the master controller is provided with a plurality of channels, and each slave controller is provided with only one channel; each channel of the main controller is a main node, and each main node comprises a sending end and a receiving end; the channel of the slave controller is a slave node, and each slave node comprises a sending end and a receiving end; the transmitting end of the (N-1) th slave node is connected with the receiving end of the Nth slave node through the optical fiber, and the transmitting end of the Nth slave node is connected with the receiving end of the master node through the optical fiber;
Each channel of the main controller carries out an initialization communication process, each slave node obtains ID distribution, the main node obtains the number of the slave nodes of the channel, and a state and data storage area is distributed for each slave node;
each channel of the main controller obtains communication network connection topology information through an initial telephone communication process, network topology parameters are preset before initialization, whether the network topology parameters are consistent with the preset network topology parameters or not is judged after the initialization communication is completed, and if the network topology parameters are not consistent with the preset network topology parameters, communication error is reported;
After the main controller completes the system initialization communication process, the main controller sends a function code, and the equipment code is a configuration frame of the ID number of the slave node to carry out system configuration;
After the system initialization and configuration are completed, normal communication can be performed.
the initializing communication process specifically includes: when the system is powered on or the communication system is reset, the main node sends an initialization frame with a function code of 0 and a device code of 0, the first slave node adds 1 to the device code after receiving the initialization frame as an ID number of the first slave node and displays the ID number through an LED, meanwhile, the initialization frame with the function code of 0 and the device code of ID number is packed and sent to the second slave node, and the analogy is performed once, the ID number obtained by the Nth slave node is N, the initialization frame with the function code of 0 and the device code of ID number is sent to the main node, through the initialization process, each slave node obtains ID distribution, the main node obtains the number of the slave nodes of a channel, and distributes a state and a data storage area to each slave node.
The system can only carry out system configuration once after being electrified or the communication system is reset; the system configuration cannot be changed after completion.
after the system initialization and configuration are completed, normal communication can be performed, and the frame function code is 2.
the network topology parameters specifically include: number of slave nodes per channel of master controller.
in the present application, a custom function code of 0 indicates an initialization frame; the self-defined function code is 1 to represent a system configuration frame; a custom function code of 2 indicates a normal communication frame.
Compared with the prior art, the beneficial technical effects brought by the invention are as follows:
the present invention provides a scheme of a transceiver controller for transmitting and receiving through FPGA, which can realize the communication speed of 100Mb/s level, and the cost of the matched optical fiber transceiver is very low. Although the communication rate of 100mb/s is low frequency for the image and communication field, the communication rate is higher frequency for the power electronic control field, and the communication in the power electronic control field is characterized by high real-time requirement and small communication data volume. The invention also provides convenience for practical application and ensures the reliability of communication connection by automatically configuring the channel equipment function through the FPGA. The invention realizes an automatic configuration low-cost communication protocol meeting the real-time control of power electronics through the measures, can realize that all nodes in a control period receive and execute instructions, and simultaneously returns measurement data to the main control node, and the communication speed can reach 100 Mb/s.
Drawings
FIG. 1 is a diagram of a communication system topology of the present invention;
FIG. 2 is a hardware schematic block diagram of each channel of the communication of the present invention;
fig. 3 is a diagram of a communication frame format according to the present invention.
Detailed Description
Example 1
referring to fig. 1-3 of the specification, this embodiment discloses:
An automatically configurable real-time optical fiber communication system, comprising: the system comprises a master controller and a plurality of slave controllers, wherein the master controller is provided with a plurality of channels, and each slave controller is provided with only one channel; each channel of the main controller is a main node, and each main node comprises a sending end and a receiving end; the channel of the slave controller is a slave node, and each slave node comprises a sending end and a receiving end; the transmitting end of the (N-1) th slave node is connected with the receiving end of the Nth slave node through the optical fiber, and the transmitting end of the Nth slave node is connected with the receiving end of the master node through the optical fiber;
Each channel of the main controller carries out an initialization communication process, each slave node obtains ID distribution, the main node obtains the number of the slave nodes of the channel, and a state and data storage area is distributed for each slave node;
Each channel of the main controller obtains communication network connection topology information through an initial telephone communication process, network topology parameters are preset before initialization, whether the network topology parameters are consistent with the preset network topology parameters or not is judged after the initialization communication is completed, and if the network topology parameters are not consistent with the preset network topology parameters, communication error is reported;
after the main controller completes the system initialization communication process, the main controller sends a function code, and the equipment code is a configuration frame of the ID number of the slave node to carry out system configuration;
after the system initialization and configuration are completed, normal communication can be performed.
Example 2
referring to fig. 1-3 of the specification, this embodiment discloses as another preferred embodiment of the present invention:
an automatically configurable real-time optical fiber communication system, comprising: the system comprises a master controller and a plurality of slave controllers, wherein the master controller is provided with a plurality of channels, and each slave controller is provided with only one channel; each channel of the main controller is a main node, and each main node comprises a sending end and a receiving end; the channel of the slave controller is a slave node, and each slave node comprises a sending end and a receiving end; the transmitting end of the (N-1) th slave node is connected with the receiving end of the Nth slave node through the optical fiber, and the transmitting end of the Nth slave node is connected with the receiving end of the master node through the optical fiber;
each channel of the main controller carries out an initialization communication process, each slave node obtains ID distribution, the main node obtains the number of the slave nodes of the channel, and a state and data storage area is distributed for each slave node;
Each channel of the main controller obtains communication network connection topology information through an initial telephone communication process, network topology parameters are preset before initialization, whether the network topology parameters are consistent with the preset network topology parameters or not is judged after the initialization communication is completed, and if the network topology parameters are not consistent with the preset network topology parameters, communication error is reported;
After the main controller completes the system initialization communication process, the main controller sends a function code, and the equipment code is a configuration frame of the ID number of the slave node to carry out system configuration;
After the system initialization and configuration are completed, normal communication can be carried out;
The initializing communication process specifically includes: when the system is powered on or the communication system is reset, the main node sends an initialization frame with a function code of 0 and a device code of 0, the first slave node adds 1 to the device code after receiving the initialization frame as an ID number of the first slave node and displays the ID number through an LED, meanwhile, the initialization frame with the function code of 0 and the device code of ID number is packed and sent to the second slave node, and the analogy is performed once, the ID number obtained by the Nth slave node is N, the initialization frame with the function code of 0 and the device code of ID number is sent to the main node, through the initialization process, each slave node obtains ID distribution, the main node obtains the number of the slave nodes of a channel, and distributes a state and a data storage area to each slave node.
Example 3
Referring to fig. 1-3 of the specification, this embodiment discloses as another preferred embodiment of the present invention:
An automatically configurable real-time optical fiber communication system, comprising: the system comprises a master controller and a plurality of slave controllers, wherein the master controller is provided with a plurality of channels, and each slave controller is provided with only one channel; each channel of the main controller is a main node, and each main node comprises a sending end and a receiving end; the channel of the slave controller is a slave node, and each slave node comprises a sending end and a receiving end; the transmitting end of the (N-1) th slave node is connected with the receiving end of the Nth slave node through the optical fiber, and the transmitting end of the Nth slave node is connected with the receiving end of the master node through the optical fiber;
Each channel of the main controller carries out an initialization communication process, each slave node obtains ID distribution, the main node obtains the number of the slave nodes of the channel, and a state and data storage area is distributed for each slave node;
each channel of the main controller obtains communication network connection topology information through an initial telephone communication process, network topology parameters are preset before initialization, whether the network topology parameters are consistent with the preset network topology parameters or not is judged after the initialization communication is completed, and if the network topology parameters are not consistent with the preset network topology parameters, communication error is reported;
After the main controller completes the system initialization communication process, the main controller sends a function code, and the equipment code is a configuration frame of the ID number of the slave node to carry out system configuration;
After the system initialization and configuration are completed, normal communication can be carried out;
the initializing communication process specifically includes: when the system is powered on or the communication system is reset, the main node sends an initialization frame with a function code of 0 and a device code of 0, the first slave node adds 1 to the device code after receiving the initialization frame to serve as an ID number of the first slave node and displays the ID number through an LED, meanwhile, the initialization frame with the function code of 0 and the device code of ID number is packed and sent to the second slave node, and the analogy is performed once, the ID number obtained by the Nth slave node is N, the initialization frame with the function code of 0 and the device code of ID number is sent to the main node, each slave node obtains ID distribution through the initialization process, the main node obtains the number of slave nodes of a channel, and distributes a state and a data storage area to each slave node;
the system can only carry out system configuration once after being electrified or the communication system is reset; the system configuration cannot be changed after being completed; after the system initialization and configuration are completed, normal communication can be performed, and the frame function code is 2.
the network topology parameters specifically include: number of slave nodes per channel of master controller.
In the present application, a custom function code of 0 indicates an initialization frame; the self-defined function code is 1 to represent a system configuration frame; a custom function code of 2 indicates a normal communication frame.

Claims (4)

1. an automatically configurable real-time optical fiber communication system, comprising: the system comprises a master controller and a plurality of slave controllers, wherein the master controller is provided with a plurality of channels, and each slave controller is provided with only one channel; each channel of the main controller is a main node, and each main node comprises a sending end and a receiving end; the channel of the slave controller is a slave node, and each slave node comprises a sending end and a receiving end; the transmitting end of the (N-1) th slave node is connected with the receiving end of the Nth slave node through the optical fiber, and the transmitting end of the Nth slave node is connected with the receiving end of the master node through the optical fiber;
each channel of the main controller carries out an initialization communication process, each slave node obtains ID distribution, the main node obtains the number of the slave nodes of the channel, and a state and data storage area is distributed for each slave node;
Each channel of the main controller obtains communication network connection topology information through an initialization communication process, network topology parameters are preset before initialization, whether the network topology parameters are consistent with the preset network topology parameters or not is judged after initialization communication is completed, and if the network topology parameters are not consistent with the preset network topology parameters, communication error is reported;
after the main controller completes the system initialization communication process, the main controller sends a function code, and the equipment code is a configuration frame of the ID number of the slave node to carry out system configuration; after the system initialization and configuration are completed, normal communication can be carried out; the initializing communication process specifically includes: when the system is powered on or the communication system is reset, the main node sends an initialization frame with a function code of 0 and a device code of 0, the first slave node adds 1 to the device code after receiving the initialization frame as an ID number of the first slave node and displays the ID number through an LED, meanwhile, the initialization frame with the function code of 0 and the device code of ID number is packed and sent to the second slave node, and by analogy, the ID number obtained by the Nth slave node is N, the initialization frame with the function code of 0 and the device code of ID number is sent to the main node, through the initialization process, each slave node obtains ID distribution, the main node obtains the number of slave nodes of a channel, and distributes a state and a data storage area to each slave node.
2. An automatically configurable real-time optical fiber communication system according to claim 1, wherein: the system can only carry out system configuration once after being electrified or the communication system is reset; the system configuration cannot be changed after completion.
3. an automatically configurable real-time optical fiber communication system according to claim 1, wherein: after the system initialization and configuration are completed, normal communication can be performed, and the frame function code is 2.
4. An automatically configurable real-time optical fiber communication system according to claim 1, wherein: the network topology parameters specifically include: number of slave nodes per channel of master controller.
CN201611153028.4A 2016-12-14 2016-12-14 automatic configuration real-time optical fiber communication system Active CN106533795B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611153028.4A CN106533795B (en) 2016-12-14 2016-12-14 automatic configuration real-time optical fiber communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611153028.4A CN106533795B (en) 2016-12-14 2016-12-14 automatic configuration real-time optical fiber communication system

Publications (2)

Publication Number Publication Date
CN106533795A CN106533795A (en) 2017-03-22
CN106533795B true CN106533795B (en) 2019-12-13

Family

ID=58339416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611153028.4A Active CN106533795B (en) 2016-12-14 2016-12-14 automatic configuration real-time optical fiber communication system

Country Status (1)

Country Link
CN (1) CN106533795B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542133A (en) * 2020-04-22 2021-10-22 全球能源互联网研究院有限公司 Automatic configuration method of multi-channel bus channel, master node, slave node and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141451B (en) * 2007-10-26 2011-11-30 华中科技大学 numerical control system communication interface, numerical control system and data receiving method
CN102347879A (en) * 2011-05-23 2012-02-08 大连理工计算机控制工程有限公司 D-BUS high-speed bus technology based on ring type Ethernet and auxiliary network
CN102638306A (en) * 2012-03-31 2012-08-15 北京航空航天大学 1394b optical bus monitor and monitoring method thereof
CN102710484B (en) * 2012-05-26 2015-03-04 济南凌康数控技术有限公司 Ring redundant real-time Ethernet communication method
CN102833140A (en) * 2012-08-01 2012-12-19 深圳清华大学研究院 Computerized numerical control alliance bus system, coupler and communication method
KR101816944B1 (en) * 2013-10-02 2018-01-09 엘에스산전 주식회사 Method for automatically setting ID in UART Ring communication
CN105450489B (en) * 2015-12-02 2018-08-24 大连理工计算机控制工程有限公司 The preferential efficient field bus systems of HEBus and communication means for realizing most short message of output

Also Published As

Publication number Publication date
CN106533795A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
US8565259B2 (en) Method and system for direction setting of a self-configurable asymmetric link
CN108011694B (en) A kind of efficient data exchange method based on FC
WO2011002398A1 (en) Method and arrangement for enabling link status propagation
CN108011797B (en) Ethernet communication system based on 1553B protocol
CN111262768A (en) Ethernet ring network architecture of ADAS domain
CN100469046C (en) System, method and device for autonegotiation
CN103716092A (en) Networking system and communication method for bidirectional optical fiber communication in bus network
CN107168045A (en) A kind of communication redundancy control system based on EtherCAT
CN106533795B (en) automatic configuration real-time optical fiber communication system
CN102497302B (en) Hybrid network access system
US20140314417A1 (en) Reconfiguration of an optical connection infrastructure
CN101132337A (en) 2M loop circuit network system based on E1 transmission
CN105306421A (en) PCI-E interface based signal processing method and PCI-E interface based signal processing device
US7454513B2 (en) Interface link layer device for long delay connections
CN104717109A (en) Simulation testing method and system for wide area network links
CN104967482B (en) Multichannel IO synchronous control systems and method based on fiber optic communication
CN209627394U (en) A kind of digital signal acquiring device and system
CN109714384B (en) Method and device for communication in medical imaging device and medical imaging device
CN108885445A (en) Data communication bus for robot
CN202634445U (en) Low speed optical fiber transmission module based on microprogrammed control unit (MCU)
CN107645638B (en) Video processor and backplane communication method
CN106506304B (en) Expansible communication system and method
CN104506208A (en) One-to-multipoint duplex communication device based on RS-232C protocols
CN202551047U (en) Transmission system of ethernet signal in private network
CN212850766U (en) System message management device based on combination of serial port and Ethernet

Legal Events

Date Code Title Description
C06 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