CN102035688B - Design method for rapidly controlling network link access - Google Patents
Design method for rapidly controlling network link access Download PDFInfo
- Publication number
- CN102035688B CN102035688B CN201110020507XA CN201110020507A CN102035688B CN 102035688 B CN102035688 B CN 102035688B CN 201110020507X A CN201110020507X A CN 201110020507XA CN 201110020507 A CN201110020507 A CN 201110020507A CN 102035688 B CN102035688 B CN 102035688B
- Authority
- CN
- China
- Prior art keywords
- message
- port
- network service
- slave station
- main website
- 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
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a design method for rapidly controlling network link access, which is not limited within a specific network medium and physical layer standards. Control nodes are formed by a primary station and a slave station and are connected end to end to form a control network, the main station actively sends a message requesting read-write operation, and the slave station has the main functions of analyzing the message of the main station to carry out the read-write operation on the content of the message, and sending the message back to the main station. The active query mode of the primary station avoids carrier wave monitoring conflict in the network, thereby enhancing the real-time property of the network. The primary station timely and periodically sends reading or writing messages to the slave station, which realizes rapid high-precision and high-stability information communicating mechanism.
Description
Technical field
The invention belongs to the networking products field; Relate in particular to the Control Network technology of industrial equipment; Network control method particularly; This method is that a kind of Control Network transmission design that is used to solve message transmission demand between the controller is selected different physical layer medium corresponding to different real-time demands, possesses general processing mode.
Background technology
Control Network is widely used in the industrial automation field, for control information between the industrial automation control system controller provides solution route effectively efficiently.
The scheme of general networks has self shortcoming, in the network transmission process, exists and detects conflict, and very big influence can be arranged the performance of network, can not reach the real-time of network, and data volume is bigger in the network data transmission process, and network load is higher.
This method adopts the basis of loop network topology as Network Transmission, and principal and subordinate's access mechanism, main website are always initiatively; Slave station is always passive, initiatively sends the message that reads and write by main website, and message is after slave station reads or writes data content; Return main website and handle, the real-time of network is improved greatly.
In addition, for participating in industrial control system, it is important requirement that control data obtains strict certainty, reliability, the accuracy transmitted with control signal.Yet at present Ethernet in this more or less exist defective.
Summary of the invention
For solving the above problem that exists in the prior art; The invention discloses quick control network link visit method for designing, method for designing of the present invention can be guaranteed strict certainty, height reliability, the high stability of control signal transmission, the quick control network of this problem of pin-point accuracy property.
The following technical scheme of the concrete employing of the present invention:
A kind of quick control network link visit method for designing realizes the function that control information is communicated by letter with master-slave mode; It is characterized in that, said method comprising the steps of:
(1) makes up quick control network link structure; Said quick control network link comprises a main website and a plurality of cascade slave station; Main website and slave station all comprise the network service port of two standards; Each network service port receives port RX by one and mouthful TX that makes a start forms, and main website can full duplex handle receiving and transmitting signal with the clump station;
(2) main website initiatively periodically first slave station in the cascade slave station send read-write control input, control dateout message, all comprise the unique identification of message index field, message in each said message;
(3) first slave station in said a plurality of cascade slave station is always monitored read-write control input, the control dateout message that main website sends, according to the order of message, and read-write control input, control dateout message;
(4) when the first network service port of first slave station in the data message process cascade slave station is exported in read-write control input, the control of the transmission of the network service A of main website port; This slave station receives the request message of main website from this first network service port; After doing read-write operation based on the order in the message, the next slave station of the second network service port in the cascade slave station through this slave station E-Packets;
(5) the first network service port of said next slave station receive said E-Packet and handle after; E-Packet to this slave station second network service port; The second network service port through this slave station E-Packets to the next slave station of this slave station again; Finally receive E-Packeting of upper level slave station through last slave station first network service port; And message being turned back to the network service B port of main website through the second network service port of said last slave station, the network service B of main website port receives message and handles;
(6) if one of them network service port of certain slave station is a notconnect state; Then message will turn back to first slave station in the said cascade slave station successively along former forward-path; Finally returning the network service A of main website port handles; After main website receives the message that returns, the said message that returns is duplicated the back transmit, so that all cascade slave stations of the traversal network service B of main website port to the network service B of main website port.
The invention also discloses a kind of quick control network link structure, realize the function that control information is communicated by letter with master-slave mode, said link structure comprises two parts group layer, is main website part and one or more slave station parts; It is characterized in that:
Main website comprises two standard network communication mouths, real time data synchronization module, diagnosis administration module, call number administration module, port reception queue management module and dual-port Redundancy Management System; Wherein, The real time data synchronization module realizes that the real time data synchronization module is mainly accomplished the transfer of data work between each slave node; Diagnosis administration module major function is regularly to send the diagnosis message, diagnoses the running status and the network state of each slave station, and is unusual if the running status of slave station takes place, and then diagnoses administration module can start configuration feature, and slave station is done configuration again; Call number administration module major function is before main website sends message, to need the untapped call number of application, so that distribute to the sign of the unique identification of each message and the buffer memory unit that corresponding port receives formation; Port receives queue management module, and major function is the data message that receives in the network, and stores this message in the memory cell of corresponding port reception formation according to the call number in the message; Dual-port redundant module, major function are networks when Single Point of Faliure occurring, do not influence the normal operation of whole network.
Said one or more slave stations comprise two standard network communication mouths, and slave station comprises data read-write module and forwarding module;
Compare with prior art, advantage of the present invention comprises the following aspects:
(1), is not limited to specific EBI adaptable across general bus standard.
(2) have strict time certainty, stability owing to having adopted dual-port redundancy scheme, strictly determined slave station access mechanism, control data to obtain or having transmitted, thereby improved the overall performance of quick control network.
(3) owing to realized obtaining or the control data that transmits has the independent cache location corresponding to each slave station; And can be mapped to the specific logical address of main website; Make the control data that obtains or transmit have high reliability and stability, improved the reliability of system.
Description of drawings
Fig. 1 has described quick control network link access method data flow illustraton of model;
Fig. 2 has described quick control network link access method, and the main website port receives the corresponding relation illustraton of model of formation and application call number;
Fig. 3 has described quick control network link access method message process chart.
Embodiment
With reference to Fig. 1, the quick control network configuration comprises two parts group layer, is main website part and one or more slave station parts.
Main website comprises network service mouth, real time data synchronization module, diagnosis administration module, call number administration module, reception queue management module and the dual-port Redundancy Management System of two standards; Wherein, The real time data synchronization module realizes that the real time data synchronization module is mainly accomplished the transfer of data work between each slave node; Diagnosis administration module major function is regularly to send the diagnosis message, diagnoses the running status and the network state of each slave station, and is unusual if the running status of slave station takes place, and then diagnoses administration module can start configuration feature, and slave station is done configuration again; Call number administration module major function is before main website sends message, to need the untapped call number of application, so that distribute to the sign of the unique identification of each message and the buffer memory unit that corresponding port receives formation; Port receives queue management module, and major function is the data message that receives in the network, and stores this message in the memory cell of corresponding port reception formation according to the call number in the message; Dual-port redundant module, major function are networks when Single Point of Faliure occurring, do not influence the normal operation of whole network.
Said one or more slave stations comprise two standard network communication mouths, and slave station comprises data read-write module and forwarding module;
Main website is responsible for the management to the slave station data; Major function comprises: read the slave station data, write all slave station data of data, preservation and management to slave station; Preserve and manage all slave station running statuses; Manage the Link State of whole network, main website realizes above function through sending the command message mode to slave station; The slave station major function comprises: receive main website message, analytic message, read-write message, E-Packet according to two port Link States of slave station.
The control input of all read and writes and control dateout message all have initiatively initiation request of main website.
Main website initiatively periodically sends read-write control input control dateout message, and slave station writes data passively or reads the data in the message in message.
There are two network ports in main website, and redundant each other, slave station has two network ports equally; Main website sends the read-write message, and during through slave station, a port of slave station receives the message of main website request; And according to after the processing of the command operation in the message, transmit to another port, if another port is a notconnect state; Message will go back on former road, finally returns main website.
Suppose that Single Point of Faliure appears in slave station, slave station can fast detecting go out network link failure, can E-Packet to former road, and main website can receive and handle message at source port.
Two network ports of main website; Network service port A has different MAC Addresss with network service port B, if the looped network network link is normal, the message that network service port A sends finally will receive and handle at network service port B; In order to detect network link status; When network service port A sent the data communication message, network service port B sent the network link message simultaneously, the monitoring network Link State; The message that network service port B sends finally can receive and handle at network service port A, and transmit port can be judged according to the MAC Address of message by main website; If Single Point of Faliure appears in the looped network network link; The message that network service port A sends finally can receive and handle at network service port A; The message that network service port B sends finally can receive and handle at network service port B, and this mode can solve the normal operation that Single Point of Faliure does not influence the The whole control network system.Receive data collision for fear of two ports; Network service port A and network service port B each have one and receive formation on software is realized; During main website application call number, network service port A and network service port B exist and main website call number call number buffer unit one to one.
Send in the message and defined the call number field, call number takies a byte, call number span 0 to 255; Call number when main website sends message, needs the application call number as the unique identification of message; Software is realized the call number resource management module, realizes the resource management of multitask system call number.Software is realized the reception formation of the main website network port; It is consistent with main website call number resource quantity and numbering to receive formation buffer unit resource quantity; The reception formation call number of the main website network port is corresponding to main website call number resource; Main website call number and formation call number are one-to-one relationships, and message of every transmission all can exist a unique index buffer unit corresponding with it.
Main website moves real-time synchronous task and diagnosis management role, and synchronous task priority is higher in real time, guarantees the fast and stable property of data communication, and diagnostic task regularly detects network state and slave station running status, slave station is done reconfiguring operation according to state variation.
With reference to Fig. 2, the main website port receives the corresponding relation illustraton of model of formation and application call number, and the present invention realizes with following several parts:
Main website sends the data message of read-write control input and control output, and message comprises a byte index number, and call number is continuous and unique.
Two modules of quick control network link visit method for designing; Data simultaneous module and diagnosis administration module; The data simultaneous module major responsibility is control input and the control dateout in the transmitting control network; Real-time, stability that control input and control dateout are had relatively high expectations are so the priority of data sync is higher; The major responsibility of diagnosis administration module is regularly to send the diagnosis administrative message; Read the Link State and the slave station running status of current network; If the slave station running status is unusual, main website can send a warning message and reinitialize slave station, slave station is done reconfiguring; To reach normal operating condition, the priority of diagnosis administration module is lower than data simultaneous module.
For fear of data simultaneous module and diagnosis administration module resource allocation conflict in service, realize the algorithm of message index resource and network port buffer queue resource one-to-one relationship, call number is unique and continuous, sends the preceding application of message call number.
The main website network port receives index of definition attribute in the data cached queue structure; This call number attribute and cache pool call number attribute are mapping relations one by one; When the network port is received message; Read the call number in the message, search out the memory cell of the corresponding network port buffer queue of call number, message is saved in the corresponding cache unit.
Each call number unit in the main website cache pool has defined status attribute; Comprise following attribute: dummy status, distribution state, transmit status, accepting state, loop ends state; During application cache pool call number, only can apply for the index of dummy status, after the loop ends; State will can be used by dummy status most in continuation application.
Network service port A of main website and network service port B have realized an independently packet buffer formation separately, are depositing the data message that receives, and have two not conflicting advantages of the same call number of port like this.
With reference to Fig. 3 quick control network link access method message process chart
Main website active periodically first slave station in the slave station of network service A port cascade is sent read-write control input, is controlled the dateout message; All comprise the message index field in each message; The unique identification of message, this call number need be applied for obtaining in the index pond;
Slave station is always monitored read-write control input, the control dateout message that main website sends, after slave station network service 1 port receives message, and according to the order of message, read-write control input, control dateout message; Slave station is judged the connection status of network service 2 ports of slave station simultaneously; If this port connection status is normal, slave station transmits message to this port, and this message will be forwarded to network service 1 port of the slave node of next cascade; After next cascade slave station is done above same operation equally; Continue to be forwarded to its slave station of cascade down, behind all slave stations in the traverses network, message will be forwarded to the network service B of main website port through last slave station network service 2 port and handle; If there is a slave station connection status unusual in this network; Message will be forwarded to this unusual slave station network service 1 port, with this unusual slave station network service 1 port mutually last slave station of cascade continue to join slave station and transmit to upper level, message will be forwarded to the network service A of main website port; After main website receives message; Read the MAC Address of message, can judge that this message is that main website network service A port sends, can judge thus that network connects to break down; Main website duplicates this message; Continuation is sent this message to the network service port B of main website, so that this message can travel through all slave stations of cascade mutually with the network port B of main website, finally returns the processing of the network service B of main website port.
Message finally can be forwarded to master node, and main website is saved in the data management area of main website to data updated in the message according to read write command, has so just realized the synchronization of data process.
Claims (5)
1. a quick control network link visit method for designing realizes the function that control information is communicated by letter with master-slave mode; It is characterized in that, said method comprising the steps of:
(1) makes up quick control network link structure; Said quick control network link comprises a main website and a plurality of cascade slave station; Main website and slave station all comprise the network service port of two standards; Each network service port receives port RX by one and mouthful TX that makes a start forms, and main website and slave station can full duplex be handled receiving and transmitting signal;
(2) main website initiatively periodically first slave station in the cascade slave station send read-write control input, control dateout message, all comprise the unique identification of message index field, message in each said message;
(3) first slave station in said a plurality of cascade slave station is always monitored read-write control input, the control dateout message that main website sends, according to the order of message, and read-write control input, control dateout message;
(4) when the first network service port of first slave station in the data message process cascade slave station is exported in read-write control input, the control of the transmission of the network service A of main website port; This slave station receives the request message of main website from this first network service port; After doing read-write operation based on the order in the message, the next slave station of the second network service port in the cascade slave station through this slave station E-Packets;
(5) the first network service port of said next slave station receive said E-Packet and handle after; E-Packet to this slave station second network service port; The second network service port through this slave station E-Packets to the next slave station of this slave station again; Finally receive E-Packeting of upper level slave station through last slave station first network service port; And message being turned back to the network service B port of main website through the second network service port of said last slave station, the network service B of main website port receives message and handles;
(6) if one of them network service port of certain slave station is a notconnect state; Then message will turn back to first slave station in the said cascade slave station successively along former forward-path; Finally returning the network service A of main website port handles; After main website receives the message that returns, the said message that returns is duplicated the back transmit, so that all cascade slave stations of the traversal network service B of main website port to the network service B of main website port.
2. quick control network link visit method for designing according to claim 1; It is characterized in that: said method comprises further that also main website regularly sends the step of real time data synchronization message and diagnosis administrative message; Through said real-time sync message timing Synchronization Control input and control dateout, regularly diagnose the running status and the network link status of slave station through said diagnosis administrative message.
3. quick control network link visit method for designing according to claim 1 is characterized in that:
Comprise MAC Address in the said message, distribute when this address is sent by main website, the call number in the message is sent application acquisition in the forward direction index pond by main website, and is written in the message index field.
4. quick control network link visit method for designing according to claim 1; It is characterized in that: two network service ports of main website; Be that network service A port has different MAC Addresss with network service B port, if network link is normal, the message that network service A port sends finally will receive and handle at network service B port; The message that network service B port sends finally can receive and handle at network service A port, and transmit port can be judged according to the MAC Address of message by main website; If Single Point of Faliure appears in the looped network network link, the message that network service A port sends finally can receive and handle at network service A port, and the message that network service B port sends finally can receive and handle at network service B port.
5. quick control network link visit method for designing according to claim 4; It is characterized in that: two ports for fear of main website receive data collision; Network service A port and network service B port all each have one and receive formation on software is realized; During main website application call number, network service A port and network service B port all exist and main website call number call number buffer unit one to one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110020507XA CN102035688B (en) | 2011-01-18 | 2011-01-18 | Design method for rapidly controlling network link access |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110020507XA CN102035688B (en) | 2011-01-18 | 2011-01-18 | Design method for rapidly controlling network link access |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102035688A CN102035688A (en) | 2011-04-27 |
CN102035688B true CN102035688B (en) | 2012-06-27 |
Family
ID=43888055
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110020507XA Active CN102035688B (en) | 2011-01-18 | 2011-01-18 | Design method for rapidly controlling network link access |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102035688B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103944785B (en) * | 2014-04-25 | 2017-05-24 | 成都理工大学 | Information stream evaluation algorithm based on random discrete model |
CN107171820B (en) * | 2016-03-08 | 2019-12-31 | 北京京东尚科信息技术有限公司 | Information transmission, sending and acquisition method and device |
CN108809791B (en) * | 2018-07-05 | 2020-10-13 | 福州福大海矽微电子有限公司 | Multi-device ring structure communication method and system |
CN108919762B (en) * | 2018-07-06 | 2021-05-25 | 东莞市李群自动化技术有限公司 | Control method and device based on industrial Ethernet |
CN111400215A (en) * | 2019-01-08 | 2020-07-10 | 深圳市慎勇科技有限公司 | Bus address distribution and communication method based on cascade father node gating |
CN109981404B (en) * | 2019-03-18 | 2020-10-30 | 浙江中控研究院有限公司 | Ad hoc network structure and diagnosis method thereof |
CN113162778B (en) * | 2020-01-07 | 2023-09-19 | 中国科学院沈阳自动化研究所 | Method for high-speed industrial Ethernet main station redundancy |
CN114137871B (en) * | 2021-11-22 | 2023-10-03 | 珠海格力电器股份有限公司 | Bus control device, configuration method thereof and building control system |
CN116566762B (en) * | 2023-07-07 | 2023-10-20 | 武汉亚为电子科技有限公司 | A cascade device based on Modbus-RTU protocol and its use method |
CN119363296B (en) * | 2024-12-24 | 2025-03-18 | 深圳三铭电气有限公司 | Bus message transmission control method, device, equipment and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102004050424B4 (en) * | 2004-10-15 | 2010-04-15 | Bosch Rexroth Ag | Method for transmitting data in a communication system |
CN101127653B (en) * | 2006-08-14 | 2010-06-23 | 中兴通讯股份有限公司 | Ethernet loop device with backup and implementation method for master device backup |
WO2009062280A1 (en) * | 2007-11-15 | 2009-05-22 | Mosaid Technologies Incorporated | Methods and systems for failure isolation and data recovery in a configuration of series-connected semiconductor devices |
CN101635609B (en) * | 2009-05-08 | 2013-01-02 | 嘉力时灯光设备(东莞)有限公司 | High-reliability control system based on asynchronous serial communication and control method thereof |
-
2011
- 2011-01-18 CN CN201110020507XA patent/CN102035688B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN102035688A (en) | 2011-04-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102035688B (en) | Design method for rapidly controlling network link access | |
CN103117933B (en) | The method and system of data is transmitted in multi-point communication network | |
CN103139060B (en) | Based on the high fault tolerance CAN digital gateway of two CSTR | |
CN101943898B (en) | Real-time control system of train sets | |
CN101449253B (en) | Multi-processor gateway | |
CN102970247B (en) | Effective communication time scheduling method of time-triggered network | |
CN104980224A (en) | FC-AE-1553 data exchange mode design method, FC-AE-1553 data exchange mode network control method and FC-AE-1553 data exchange mode energy saving method | |
CN104009976B (en) | A kind of real-time communication method being used between more main station systems and its equipment | |
CN112953803B (en) | Airborne redundant network data transmission method | |
CN101719876B (en) | Network communication dispatching method and system | |
CN104618207A (en) | Heterogeneous FC-AE-1553 network system and exchange method | |
CN101179453A (en) | A link state detection method and system | |
CN101873299A (en) | Serial bus, communication method and system | |
CN101159687A (en) | A system, device and method for multi-channel communication data transmission | |
CN106873541A (en) | A kind of EtherCAT Distributed Servo kinetic control systems based on DSP | |
CN104866399B (en) | UM-BUS bus run Failure Detection Controller and detection method | |
CN103136141A (en) | High speed interconnection method among multi-controllers | |
CN105376129A (en) | 1394 bus transaction layer-link layer data packet transmitting circuit and method | |
CN103257946A (en) | High-speed interconnecting method of controllers of tight-coupling multi-control storage system | |
CN110798479B (en) | Interoperability device and method for dynamically reconfigurable high-speed serial bus and Ethernet | |
CN106168933B (en) | A method of realizing virtual dual-port shared memory based on high-speed serial communication | |
CN102571933A (en) | Reliable message transmission method | |
CN110474828A (en) | A kind of MBUS bus communication and system | |
CN105530153A (en) | Slave device communication method in network, communication network, master device and slave device | |
CN204463106U (en) | UM-BUS bus channel fault detection controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20190320 Address after: 100085 9, four street, Shang Di information industry base, Haidian District, Beijing. Co-patentee after: Beijing Sifang Jibao Engineering Technology Co., Ltd. Patentee after: Beijing Sifang Jibao Automation Co., Ltd. Address before: 100085 9, four street, Shang Di information industry base, Haidian District, Beijing. Patentee before: Beijing Sifang Jibao Automation Co., Ltd. |
|
TR01 | Transfer of patent right |