Technology contents
Therefore, but the purpose of this invention is to provide a kind of high-speed response real-time control network, it can be controlled in variation that the mass data communication will any one group of data in flowing and be distributed to its all nodes in Millisecond instantaneous, to realize that the whole network high-speed response is controlled and the physical layer and the link layer of network can adopt the not too high existing device of speed.
For achieving the above object, the invention provides a kind of distributed data base formula response real-time control network, it comprises: network cable, a plurality of bridges that are connected with described cable, each node that is connected with each bridge, described node comprises at a high speed or non-high speed transmits hardware and interface thereof, be characterized in that described each node also comprises a twoport random-access memory (ram) database and network data switch software bag.
The software kit of described each node is a kind of exchanges data software kit of the principle based on database detective, data compression and broadcast transmission; Described non-high speed transmits physical layer and the link layer that hardware is used for network, and it can adopt a kind of or wireless, infra-red carrier device in other fieldbus such as CAN, LON, RS485, LAN and UART.
Adopt technique scheme, hardware and software is plug and play on the present networks, and promptly increasing and decreasing meshed network does not need to programme and can discern automatically.
Adopt technique scheme, because each node of network itself all has a database, it is distributed data base, the software kit that each node of while all has a database detective, data compression and broadcast transmission principle, the high speed that the whole network node database can be used for the whole network node database refreshes, the computer of each node needn't communication just can obtain the dynamic data of the whole network from this node database, maybe the data that will send write this node database, communication needn't be carried out, thereby the high-speed real-time response of whole network can be realized less than the 1-4 millisecond; Because network of the present invention is not considered the high speed of network data and is transmitted, and network high-speed response everywhere when only considering in the network certain data variation, promptly the high-speed response with control system is controlled to be purpose, rather than be purpose with the high-speed transferring data of communication system stream and image, therefore high-speed response real-time control network of the present invention is a kind of digitized monitor supervision platform, can be widely used in the global function integrated system of boats and ships and industry automatic control and urban facilities.
Specify the distributed-data base type high speed responding real-time control network of a preferred embodiment of the present invention below with reference to accompanying drawings, so that clearer understanding purpose of the present invention, characteristics and advantage.
Embodiment
Fig. 1 illustrates the distributed-data base type high speed responding real-time control network of a preferred embodiment of the present invention.As shown in Figure 1, this distributed-data base type high speed responding real-time control network comprises: network cable 1, a plurality of bridges 2 that are connected with cable 1, each node 3 that is connected with each bridge 2.Each node 3 comprises that non-high speed transmits hardware CAN and interface 4, dual port random access memory (RAM) database 5 and network data switch software bag and hardware 6; Each node 3 is connected with other custom systems with PC computer 7.Network interface 4 can be provided with separately and be connected with node 9 with bridge 2.Each node 9 is node and application system unification body, comprises node database 5, network software bag 6 and monolithic computer 10.Present embodiment is to adopt physical layer and the link layer of CAN hardware as network, also can select hardware such as LON, RS485, LAN, UART for use certainly; These hardware are that what to meet international standard is not the hardware that transmits at a high speed.Specifically, these assembly hardware are the modular units that meet ISO and ieee standard, thereby conformance with standardization, generalization, open, the highly reliable and requirement being convenient to upgrade.Certainly also can select other standard for Fieldbus for use.Comprise twisted-pair feeder or common cable, power supply service cable in the described network cable; Using the network of network total cable length is that 120 meters (1MB communication speeds) are to 30 kilometers (10KB communication speeds).In a typical case uses, long 3 kilometers of network cable, speed 66KB, 4 milliseconds of distributed data base refresh rates, when 6000 databases of the whole network are worked simultaneously, instantaneous one group less than the switch control of 8 databases or alarm response speed less than 100 milliseconds.Bridge 2 is data channel, passes in and out that hardware is electric isolates, but data can two-way spacious logical the transmission, has distributed data base in the bridge 2.The database of each node 3 can constitute with dual port random access memory individual chips, links to each other with node computer central processing unit or control electronic circuit again; A part of random access memory in the also available monolithic computer constitutes, and forms one with monolithic computer, as node 9.Therefore database address is corresponding one by one with address ram, with the database swap data in fact be exactly to read and write RAM.Database address can distribute definition by function by standard criterion, realizes that whole network data is shared, thereby has simplified system.The exchanges data software kit of each node 3 adopts database detective, data compression and broadcast transmission principle: the database detective is whether the data in this node database of detective change; Data compression is that formation is lined up in the vicissitudinous taking-up of the data in the database, unconverted data is removed, and replaced database-name with sequence number; Broadcast transmission is with vicissitudinous data instant queuing broadcasting, and all nodes of network are received simultaneously.Like this, there is data variation in the some time in the control system, in a transmission cycle, each node of the whole network makes an immediate response, make control of the whole network switching value and alarm response speed less than 4 milliseconds, instantaneous one group of control alarm response speed less than 8 databases improves more than 200 times less than 100 milliseconds than traditional scanning communication modes response speed.Therefore network of the present invention is a high speed dynamic response real-time network.The capacity of the network of the above embodiment of the present invention is: the whole network is used 110 each bridge at most, and each bridge is with 110 nodes at most, and the whole network is 12100 nodes altogether, 16 parameter points of each node control, so the whole network maximum can be monitored 193600 parameter points.Since the computer of each node or monolithic computer only with the database swap data, control program is no longer considered the data network communication, need to send out data as long as data are write this node random access memory, receiving data is reader node random access memory, thereby use present networks also to improve the control rate of each node computer itself greatly, make whole computer network system high-speed, to satisfy requirement of real-time control.In addition, each node database can join together with various high-level language databases such as WINDOWS, to constitute big-and-middle-sized control system.
Figure 2 shows that an intelligent residential district charge adopting distributed-data base type high speed responding real-time control network of the present invention and monitor the global function integrated system.As shown in Figure 2, this system comprises: network cable 1, bridge 2, the single-chip microcomputer that is embedded with node chip 4 that is connected by bus and the multi-user electronic device 3 that is connected with each bridge; The single-chip microcomputer 4 of described node is formed sub-district toll center, security personnel center, sub-district and m of e chamber respectively.Described electronic installation is installed in every cover dwelling house.Each node comprises: the physical layer, distributed RAM database and the database high speed updating software bag (not shown) that use the hardware of ISO11989 standard CAN.Described CAN hardware has standardization, generalization, open, highly reliable characteristics, and its base communications protocol is the CAN2.0 standard, is easy to upgrading.Its networked physics layer adopts the detective, compression and broadcast three principles, make whole network data storehouse dynamic responding speed at the 1.5-4 millisecond, simultaneously the computer of each node or monolithic computer only with notebook data storehouse swap data, no longer consider data network communication holding time, thereby the whole network when 60000 points instantaneous one group of 8 switching values control that changes simultaneously or alarm response speed less than 100 milliseconds, like this, make control of the whole network single switch amount and alarm response speed less than 4 milliseconds, improve more than 200 times than traditional scanning communication modes response speed, therefore become a high-speed response real-time network.The network cable that this global function integrated system is adopted is the four-core network cable, wherein two cores are twisted-pair feeder or common cable, two cores are the power supply service cable in addition, and using the network of network total cable length is that 120 meters (1MB communication speeds) are to 30 kilometers (10KB communication speeds).With 110 bridges, each bridge is with 110 nodes at most to the whole network at most, and the whole network is 12100 nodes altogether, 16 parameter points of each node control, and therefore, the whole network can be monitored 193600 parameter points at most.Fig. 3 illustrates the wiring situation of dwelling house electronic installation wherein.As shown in the figure, this dwelling house electronic installation has the socket of IC-card and can show the charactron of corresponding data, it can with controlled each equipment, for example gas meter, ammeter, water meter, fire alarm probe, coal gas leakage alarming probe, the antitheft probe of infrared ray, call for help and the hand switch of reporting a case to the security authorities is connected with other stand-by equipments.Wherein ammeter, water meter and gas meter are provided with the tongue tube transducer.Because this network is open, any node hangs up and takes down all and needn't programme, and communication is full-automatic, therefore can plug and play.Simultaneously, network can be isolated with a plurality of similar and different network systems by bridge and is connected, and is convenient to the system integration.It is highly reliable and low-cost that the network node chip is embedded in the single-chip microcomputer, is convenient to form digital node of network intelligence or transducer, makes system have high reliability and low price.Because the distributed data base of the whole network has 4000 storehouses, they are defined each equipment of distributing to, the whole network shareable resource.The major function of this system is as follows: the automatically charge and of the IC-card of dwelling house ammeter, water meter and gas meter by the computer printout form that goes out to classify, and IC-card is inserted in the dwelling house electronic installation; The non-IC-card charge of dwelling house ammeter, water meter and gas meter goes out multi-joint charge payment card by computer printout, by bank charge; On the subzone network and put computer more than three, can guarantee not obliterated data and long preservation archives and network with whole city's computer network; One group of set digital display tube of each dwelling house electronic installation takes turns to show " electricity charge, water rate, gas charge, IC-card surplus value " four data with 30 seconds interval; And can realize that the whole district's warning and the response time of reporting a case to the security authorities are 1 second quick response.
Except the application example of charge of above-mentioned intelligent residential district and supervision global function integrated system, the present invention also can be applicable to municipal works supervisory control system and naval vessel and industrial automation control system etc.