CN103856375A - Single-slave end multi-master end distributed Ethernet system, construction method and communication method of single-slave end multi-master end distributed Ethernet system - Google Patents

Single-slave end multi-master end distributed Ethernet system, construction method and communication method of single-slave end multi-master end distributed Ethernet system Download PDF

Info

Publication number
CN103856375A
CN103856375A CN201210506443.9A CN201210506443A CN103856375A CN 103856375 A CN103856375 A CN 103856375A CN 201210506443 A CN201210506443 A CN 201210506443A CN 103856375 A CN103856375 A CN 103856375A
Authority
CN
China
Prior art keywords
ethernet
address
communication
port numbers
ethernet system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201210506443.9A
Other languages
Chinese (zh)
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.)
Shenyang Institute of Automation of CAS
Original Assignee
Shenyang Institute of Automation of CAS
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 Shenyang Institute of Automation of CAS filed Critical Shenyang Institute of Automation of CAS
Priority to CN201210506443.9A priority Critical patent/CN103856375A/en
Publication of CN103856375A publication Critical patent/CN103856375A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a single-slave end multi-master end distributed Ethernet system, a construction method and communication method of the single-slave end multi-master end distributed Ethernet system. The single-slave end multi-master end distributed Ethernet system includes an upper computer which is connected with an Ethernet switch and has a specified IP address and a floating port number, and Ethernet switches which at least comprise one Ethernet switch above; and each Ethernet switch has a fixed IP address and a fixed port number, and is connected with a terminal device through a serial port/Ethernet converter. According to the single-slave end multi-master end distributed Ethernet system, the construction method and communication method of the single-slave end multi-master end distributed Ethernet system, a single-slave end multi-master end reversal structure is adopted. With the single-slave end multi-master end distributed Ethernet system, the construction method and communication method of the single-slave end multi-master end distributed Ethernet system of the invention adopted, the communication burden of the system will not be increased with the increase of nodes under the premise that slave end-to-master end communication states are completely mastered, and the stability and security of the system can be greatly ensured; and the communication structure of a slave end is in an asynchronous multi-thread mode, and therefore, the salve end can simultaneously monitor all the communication states of all mater ends at the same time, and the communication efficiency and stability of the system can be greatly improved.

Description

The distributed Ethernet system in the many main sides of Dan Congduan and construction method and the means of communication
Technical field
The present invention discloses a kind of distributed Ethernet system in the many main sides of Dan Congduan and construction method and means of communication that can be used for Various Complex industrial occasions.
Background technology
Ethernet communication adopts the many communication structure framework modes from end in single main side more, and this mode is applicable to communication from end Limited Number and fixing mode.Along with the complexity of communication structure, communication constantly increases from the number of end, under many operating modes, also cannot fix from terminal number order.In this case, the burden of communication main side continues to increase and total amount is unable to estimate, and communication system bears in a kind of the state that continuous increase, risk continue to increase, and has brought great hidden danger to the stability of system.
Summary of the invention
For prior art above shortcomings part, the technical problem to be solved in the present invention is to provide a kind of distributed ethernet communication method in the many main sides of Dan Congduan and device that can be used for Various Complex industrial occasions.
The technical scheme that the present invention adopted is for achieving the above object: the distributed Ethernet system in the many main sides of a kind of Dan Congduan, comprises
A host computer, connects an Ethernet switch, has the IP address of appointment and unsteady port numbers;
Too network switch, is at least an above-mentioned Ethernet switch, and each Ethernet switch has its fixing IP address and port numbers, connects terminal equipment by serial ports/Ethernet transducer.
Each serial ports/Ethernet transducer is all specified the unique IP address in 192.168.1 section.
A construction method for the distributed Ethernet system in the many main sides of Dan Congduan, taking a host computer as from end, multiple Ethernet switches that described host computer connects are main side, comprise the following steps:
Fix IP address and the port numbers of each main side, specify from the IP address of end and stiff end slogan not;
The number of all main sides of scanning, from a number open numbering, and increases progressively port numbers gradually to add 1 method, makes the corresponding port numbers in each main side;
By fixing IP address and unsteady port numbers binding main side, send communication request from different main sides from end; Main side record send communication request from end IP address and port numbers, and with this IP address and port numbers and from end communication.
Described from holding according to main side number, open up same number of port numbers.
A described number is 10000.
Means of communication for the distributed Ethernet system in the many main sides of Dan Congduan, taking a host computer as from end, multiple Ethernet switches that described host computer connects are main side, comprise the following steps:
Thread constructing function by structure ThreadStart type is being opened and independently " is being read thread " from end;
After the memory field of depositing reading out data is filled with data, produce triggering signal, trigger " reading thread ", realize asynchronous " reading thread ", after number is removed, empty memory field, continue circulation and hang up " reading thread ";
" trust " asynchronous process data are realized by the method for dynamically giving parameter in main side; By data upload to from end.
Described data are stored in database, and its storage means is: add database ADOX dynamic link; Add database ADODB dynamic link; Specific data table memory location; Specific data table key assignments number; For each key assignments name; Periodically data inserting; More new database get back to periodically data inserting step
Method and apparatus of the present invention is thoroughly overturned this traditional communication framework, take one from holding the reversible type structure of multiple main sides, great advantage is the communication burden that can not increase along with increasing of interstitial content system the prerequisite of main side communication state being grasped completely from end realizing, greatly ensure the stable and safety of system, also adopted the mode of asynchronous multithreading in the communication structure design from end, make can monitor at one time the communication state of all main sides from end simultaneously, greatly improve communication efficiency and the stability of system.There is advantage as follows:
1. all terminal equipments all add Ethernet to carry out transfer of data, and uniform protocol is conducive to expansion;
System articulate terminal equipment quantity can be with the 24 multiples expansion for interface quantity of (total amount of data is less than 1GB/s), really realized distributed this industrial circle high requirement;
3. adopted unique host computer as slave station, slave computer the ad hoc network framework as main website, the resource requirement that has alleviated greatly host computer, makes " can expand " really become possibility;
Data decryptor, read, process the mode that has adopted separate threads and trust, alleviated to greatest extent the burden of host computer, greatly improved stability and the disposal ability of system;
5. usage data storehouse provides complete real-time data for applying, for follow-up data analysis and process brings convenience.
Brief description of the drawings
Fig. 1 apparatus of the present invention circuit theory diagrams;
Fig. 2 Dan Congduan of the present invention many main sides communication construction method control program flow chart;
Fig. 3 database storage means of the present invention control program flow chart.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
As Figure 1-3, system comprises a host computer, and operation realizes the control program of the distributed ethernet communication method in the many main sides of Dan Congduan; Host computer connects the 10M/100M network switch by 8 core netting twines; Switch connects RS232/ Ethernet transducer, RS485/ Ethernet transducer, RS422/ Ethernet transducer, Ethernet video server, Ethernet audio server by netting twine.Each transducer is all specified to the unique IP address in 192.168.1 section; Each transducer can directly connect terminal equipment, comprises S232 equipment, RS485 equipment, RS422 equipment, video equipment, audio frequency apparatus; Switch connects video decoding apparatus and audio decoding apparatus by netting twine.
First the means of communication of the many main sides of Dan Congduan fix IP address and the port numbers of each main side, but only specify from the IP of end and stiff end slogan not, then the number of all main sides that surface sweeping networks, thus from No. 10000 open numberings and to add 1 method, to increase progressively gradually port numbers corresponding with each main side.Set up communication by the unsteady port numbers of fixing IP address binding and each main side, main side record request communication from end IP and port numbers, and with this IP and port numbers and from end communication.
Reading out data adopts asynchronous method to read, and saves system resource, has alleviated main program burden.Each network equipment all adopts independent thread pool to process.After stopping up, data buffer storage adopts the mode deal with data of entrusting.Database adopts timer triggering mode to trigger, interval fixed cycle storage data.Audio and Video data all adopt and can read mode directly store, for displaying video and audio frequency bring maximum convenient.
A kind of distributed ethernet communication method in the many main sides of Dan Congduan with database function of the present invention comprises many main sides of Dan Congduan communication construction method and database storage means, as follows respectively:
Many main sides of Dan Congduan communication construction method:
Detect switch status, if undesired, give the alarm and cycle detection, if normally, continue to carry out;
Detect 1 ~ No. 24 ethernet server state, if; There is problem to give the alarm;
Fixing from end IP address;
The main side number that scanning networks;
Fixing IP address, main side and port numbers;
Opening up same number of port numbers according to main side number from end, and to ensure that port numbers does not have overlapping to add 1 mode;
Send communication request by IP address and different port numbers to different main sides;
Main side is recorded from the IP address of end and port numbers and is also returned data by this IP address and port numbers;
Open number from end and remove data function;
Open and independently " read thread ";
Asynchronous " reading thread ", circulation is hung up;
" trust " asynchronous process data;
By data upload to host computer.
Database storage means:
Add database ADOX dynamic link;
Add database ADODB dynamic link;
Specific data table memory location;
Specific data table key assignments number;
For each key assignments name;
Periodically data inserting;
More new database get back to the data step of periodically coming in and going out.

Claims (7)

1. list, from holding the distributed Ethernet system in many main sides, is characterized in that, comprises
A host computer, connects an Ethernet switch, has the IP address of appointment and unsteady port numbers;
Too network switch, is at least an above-mentioned Ethernet switch, and each Ethernet switch has its fixing IP address and port numbers, connects terminal equipment by serial ports/Ethernet transducer.
2. the distributed Ethernet system in the many main sides of Dan Congduan according to claim 1, is characterized in that, each serial ports/Ethernet transducer is all specified the unique IP address in 192.168.1 section.
3. a construction method for the distributed Ethernet system in the many main sides of Dan Congduan according to claim 1, is characterized in that, taking a host computer as from end, multiple Ethernet switches that described host computer connects are main side, comprise the following steps:
Fix IP address and the port numbers of each main side, specify from the IP address of end and stiff end slogan not;
The number of all main sides of scanning, from a number open numbering, and increases progressively port numbers gradually to add 1 method, makes the corresponding port numbers in each main side;
By fixing IP address and unsteady port numbers binding main side, send communication request from different main sides from end; Main side record send communication request from end IP address and port numbers, and with this IP address and port numbers and from end communication.
4. the construction method of the distributed Ethernet system in the many main sides of Dan Congduan according to claim 3, is characterized in that, described from holding according to main side number, opens up same number of port numbers.
5. the construction method of the distributed Ethernet system in the many main sides of Dan Congduan according to claim 3, is characterized in that, a described number is 10000.
6. means of communication for the distributed Ethernet system in the many main sides of Dan Congduan according to claim 1, is characterized in that, taking a host computer as from end, multiple Ethernet switches that described host computer connects are main side, comprise the following steps:
Thread constructing function by structure ThreadStart type is being opened and independently " is being read thread " from end;
After the memory field of depositing reading out data is filled with data, produce triggering signal, trigger " reading thread ", realize asynchronous " reading thread ", after number is removed, empty memory field, continue circulation and hang up " reading thread ";
" trust " asynchronous process data are realized by the method for dynamically giving parameter in main side; By data upload to from end.
7. the means of communication of the distributed Ethernet system in the many main sides of Dan Congduan according to claim 6, is characterized in that, described data are stored in database, and its storage means is: add database ADOX dynamic link; Add database ADODB dynamic link; Specific data table memory location; Specific data table key assignments number; For each key assignments name; Periodically data inserting; More new database get back to periodically data inserting step.
CN201210506443.9A 2012-11-30 2012-11-30 Single-slave end multi-master end distributed Ethernet system, construction method and communication method of single-slave end multi-master end distributed Ethernet system Pending CN103856375A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210506443.9A CN103856375A (en) 2012-11-30 2012-11-30 Single-slave end multi-master end distributed Ethernet system, construction method and communication method of single-slave end multi-master end distributed Ethernet system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210506443.9A CN103856375A (en) 2012-11-30 2012-11-30 Single-slave end multi-master end distributed Ethernet system, construction method and communication method of single-slave end multi-master end distributed Ethernet system

Publications (1)

Publication Number Publication Date
CN103856375A true CN103856375A (en) 2014-06-11

Family

ID=50863614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210506443.9A Pending CN103856375A (en) 2012-11-30 2012-11-30 Single-slave end multi-master end distributed Ethernet system, construction method and communication method of single-slave end multi-master end distributed Ethernet system

Country Status (1)

Country Link
CN (1) CN103856375A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878482A (en) * 2017-01-03 2017-06-20 新华三技术有限公司 Method for network address translation and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101165621A (en) * 2006-10-17 2008-04-23 江望 Remote automation system
CN101226397A (en) * 2008-02-04 2008-07-23 南京理工大学 High reliability distributed Ethernet test control system
CN101483728A (en) * 2008-12-31 2009-07-15 深圳市同洲电子股份有限公司 Digital television receiving terminal, connecting apparatus, system and method
US20110267950A1 (en) * 2005-05-06 2011-11-03 Orckit Corrigent, Ltd. Tunnel provisioning with link aggregation and hashing
CN102662365A (en) * 2012-04-26 2012-09-12 中国人民解放军海军工程大学 Method and system for monitoring state of ship power monitoring network
CN202998138U (en) * 2012-11-30 2013-06-12 中国科学院沈阳自动化研究所 A distributed Ethernet system with a single auxiliary end and multiple main ends

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110267950A1 (en) * 2005-05-06 2011-11-03 Orckit Corrigent, Ltd. Tunnel provisioning with link aggregation and hashing
CN101165621A (en) * 2006-10-17 2008-04-23 江望 Remote automation system
CN101226397A (en) * 2008-02-04 2008-07-23 南京理工大学 High reliability distributed Ethernet test control system
CN101483728A (en) * 2008-12-31 2009-07-15 深圳市同洲电子股份有限公司 Digital television receiving terminal, connecting apparatus, system and method
CN102662365A (en) * 2012-04-26 2012-09-12 中国人民解放军海军工程大学 Method and system for monitoring state of ship power monitoring network
CN202998138U (en) * 2012-11-30 2013-06-12 中国科学院沈阳自动化研究所 A distributed Ethernet system with a single auxiliary end and multiple main ends

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878482A (en) * 2017-01-03 2017-06-20 新华三技术有限公司 Method for network address translation and device
CN106878482B (en) * 2017-01-03 2020-01-03 新华三技术有限公司 Network address translation method and device

Similar Documents

Publication Publication Date Title
CN103619056B (en) A kind of method and terminal for reporting sensing data
CN103763396B (en) Energy consumption data acquisition device and its acquisition method based on multi-protocols parallel acquisition technique
CN103635881B (en) The management method and terminal of application program
CN103631694B (en) Monitoring server method and device under a kind of domestic environment
CN103986931A (en) Method for transmitting video data on FPGA and DSP structure on basis of SRIO bus
CN106643888A (en) 6LoWPAN based building environment monitoring system
CN202940848U (en) Bridge group monitoring system based on cloud computing platform
CN104881990A (en) Multi-protocol parallel acquisition technology based energy consumption data acquisition unit and acquisition method thereof
CN103678912A (en) Monitor data importing method and device
CN103399914B (en) Phasor data based on intelligent telecontrol processes system
CN207039634U (en) A kind of gateway apparatus based on Internet of Things
CN202998138U (en) A distributed Ethernet system with a single auxiliary end and multiple main ends
CN105515829A (en) Intelligent wiring system
CN103631691A (en) Disk array monitoring system and disk array monitoring method
CN103856375A (en) Single-slave end multi-master end distributed Ethernet system, construction method and communication method of single-slave end multi-master end distributed Ethernet system
CN109728936A (en) High-voltage chain type static reacance generator communication management method, apparatus and system
CN202906977U (en) A storage access system of electric energy using efficiency data
CN202978997U (en) Home intelligent control system
CN103731313B (en) Counter and its implementation based on DDR SDRAM
CN202795584U (en) Cabinet cascade type multifunctional intelligent access management system for certificates
CN107171440B (en) System for collecting electrical data of switch cabinet by intelligent transformer terminal and collecting method thereof
CN105786945A (en) High-efficiency processing method for electricity consumption information data based on data channel
CN201773300U (en) Centralized monitoring device in direct-current power system
CN204719916U (en) Machine room monitoring system
CN202939476U (en) PLC-based multi-point data acquisition device with controllable data flow direction

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140611

WD01 Invention patent application deemed withdrawn after publication