CN1889543A - A communication gate in automatic system - Google Patents

A communication gate in automatic system Download PDF

Info

Publication number
CN1889543A
CN1889543A CN 200610088382 CN200610088382A CN1889543A CN 1889543 A CN1889543 A CN 1889543A CN 200610088382 CN200610088382 CN 200610088382 CN 200610088382 A CN200610088382 A CN 200610088382A CN 1889543 A CN1889543 A CN 1889543A
Authority
CN
China
Prior art keywords
data
chip microcomputer
canbus
communication
port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200610088382
Other languages
Chinese (zh)
Other versions
CN100448234C (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CNB2006100883823A priority Critical patent/CN100448234C/en
Publication of CN1889543A publication Critical patent/CN1889543A/en
Application granted granted Critical
Publication of CN100448234C publication Critical patent/CN100448234C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

A communication gateway consists of upper communication module, two-port RAM and lower communication module. It is featured as connecting upper communication module and lower communication module separately to two-port RAM in communication way, using two-port RAM to carry out data information interchange between two-CPU in gateway and to carry out two tasks simultaneously.

Description

A kind of communication gate in the automated system
Technical field
The present invention relates to the communicating to connect of smart machines different in the control system and main system, more specifically to a kind of communication gate in the automated system.
Background technology
In big-and-middle-sized automated system, comprise in electric substation automation system, Automation of Hydropower Station system and other industrial automation systems, often often relate to a large amount of smart machines and realize, and these equipment generally adopt different communication interface and various standards in the non-standard communication agreement Properties of Objects to be sent to central control unit by communication mode by the monitoring of observing and controlling object.
Because manufacturing firm's difference of field intelligent device, monitored target is far and near different with the distance of centralized control unit, cause the communication interface otherness very big, more common industrial automation control system communication mode comprises wired and communication, and wired fiber optic Ethernet communication interface that comprises, serial RS485, RS422, RS232 and CAN, LONWORK, physical interfaces such as PROFIBUS, the communication interface of various smart machines need adopt different traffic rate (communication baud rate) to communicate transmission, (distance is far away more generally speaking for the equipment that adopts serial communication, and communication baud rate is low more).Therefore when forming industrial control system, will adopt corresponding method that the smart machine of different communication characteristic is concluded the central control unit acceptable and unify on the communications platform.The device that solves communication interconnect between this distinct device is exactly a gateway, and traditional gateway adopts following several modes according to complexity:
One, the transparent protocol conversion.This mode is that the communication physical interface that only carries out between the distinct device that is access in equipment is changed, and does not relate to protocol analysis, generally is used for the little occasion of systematic comparison, needs central control unit to carry out packet parsing.
They are two years old, multi-functional communications gateway on high-grade little process chip single-chip microcomputer basis, the general chip microprocessor that adopts top grade, have a plurality of distinct interfaces simultaneously, adopt communication disruption request processing mode, the single task tupe, but because the equipment that can articulate is various, need to have higher two-way communication disposal ability and packet parsing ability simultaneously, so processor host frequency requires than higher, cost is than higher.
Its three, adopt the high-grade communication gate on flush bonding processor and the multiple task operating system basis, have a plurality of expanding communication interface functions simultaneously, because the dominant frequency of processor is very high, adopt multiple task operating system simultaneously, so disposal ability strengthens greatly, reliability also obtains basic raising.But adopt this mode cost than higher, the lead time is also long.
Summary of the invention
The objective of the invention is to overcome the deficiencies in the prior art, design a kind of communication gate in the automated system that produces the data collision phenomenon simultaneously when a kind of low cost of manufacture can be avoided the high-speed high capacity exchanges data, it is realized by following technical scheme:
A kind of communication gate in the automated system comprises:
Upper communication module, be used for receiving the visit order of central control unit by the internal system bus, corresponding data district from dual port RAM reads the device data of relevant field intelligent device and this device data is sent to central control unit according to this order, or the data that are provided with in the described instruction are deposited in the corresponding data district and send response message to central control unit;
Dual port RAM, be used for depositing the work state information that data, upper communication module are set of central control unit visit order by data/address bus (A1) and address bus (B1), messaging parameter, with deposit the device data of field intelligent device, the work state information of lower communication module by data/address bus (A2) and address bus (B2), messaging parameter, the messaging parameter of field intelligent device, communicate status information.
Lower communication module, be used for initiatively sending access instruction to field intelligent device by the field intelligent device bus, device data according to the relevant field intelligent device of this instruction acquisition, and deposit it corresponding data district of dual port RAM in, or call the relevant data that are provided with that upper communication module writes from the corresponding data district of dual port RAM, form message and be sent to field intelligent device, and receive the response message of field intelligent device.
Described upper communication module comprises upper single-chip microcomputer and the upper telecommunication circuit that communicates to connect with it; Described lower communication module comprises upper single-chip microcomputer and the next telecommunication circuit that communicates to connect with it.
Described upper single-chip microcomputer and the next single-chip microcomputer are made up of single-chip microcomputer (CPU1) and address latch (UA6) and single-chip microcomputer (CPU2) and address latch (UB6) respectively, data/the address port of single-chip microcomputer (CPU1, CPU2) is connected with the input port of data/address bus with address latch (UA6, UB6) respectively, and its address port is connected with address bus respectively with the output of address latch (UA6, UB6).
Described upper telecommunication circuit adopts two redundancy structures, it comprises CANBUS transceiver (UA2, UA2 '), optocoupler isolator (UA3, UA4, UA3 ', UA4 ') and CANBUS controller (UA5, UA5 '), CANBUS transceiver (UA2, UA2 ') serial transmit port is by optocoupler isolator (UA3, UA3 ') with CANBUS controller (UA5, UA5 ') serial received port connects, CANBUS transceiver (UA2, UA2 ') serial received port is by optocoupler isolator (UA4, UA4 ') with CANBUS controller (UA5, UA5 ') serial transmit port connects, CANBUS controller (UA5, UA5 ') FPDP (AD0-AD7) is connected with address bus with corresponding data/address bus.
Described the next telecommunication circuit adopts two redundancy structures, it comprises CANBUS transceiver (UB2, UB2 '), optocoupler isolator (UB3, UB4, UB3 ', UB4 ') and CANBUS controller (UB5, UB5 '), CANBUS transceiver (UB2, UB2 ') serial transmit port is by optocoupler isolator (UB3, UB3 ') with CANBUS controller (UB5, UB5 ') serial received port connects, CANBUS transceiver (UB2, UB2 ') serial received port is by optocoupler isolator (UB4, UB4 ') with CANBUS controller (UB5, UB5 ') serial transmit port connects, CANBUS controller (UB5, UB5 ') FPDP is connected with address bus with corresponding data/address bus.
Or comprise RS485 communication transceiver (UB2, UB2 ') and optocoupler isolator (UB3, UB3 ', UB4, UB4 ', UB5, UB5 '), by the serial transmit port of optocoupler isolator (UB3, UB3 ', UB4, UB4 ', UB5, UB5 ') with the next single-chip microcomputer (CPU), the serial received port is connected with the control signal output ends mouth serial received port, serial transmit port and the control port of RS485 communication transceiver (UB2, UB2 ') respectively.
Beneficial effect of the present invention: 1) adopt two CPU to communicate respectively with central control unit and field intelligent device respectively, both sides bear own related communications portion, the data collision phenomenon that often may occur when having avoided the high-speed high capacity exchanges data separately at the same time; 2) adopt dual port RAM to be responsible for carrying out data information exchange between two CPU in the gateway; And the data that upper single-chip microcomputer will read just in time are the data that the next single-chip microcomputer writes, and vice versa, have solved data so well and have switched the problem of the communication reliability decline that brings; 3) adopting cheap relatively double mcu and dual port RAM can carry out two tasks simultaneously works simultaneously, improved the disposal ability of communication data, can substitute the existing expensive gateway that adopts high-grade microprocessor and multiple task operating system fully, have good economic benefits.
Description of drawings
Fig. 1 is the structural representation block diagram of communication gate and system.
Fig. 2 is the structural representation block diagram of communication gate.
Fig. 3 is the gateway circuit modular structure schematic diagram that CANBUS is adopted in upper and lower communication.
Fig. 4 is the gateway circuit modular structure schematic diagram that CANBUS, RS485 are adopted in upper and lower communication respectively.
Fig. 5 is upper one-chip computer module workflow diagram.
Fig. 6 is the next one-chip computer module workflow diagram.
Fig. 7 is upper one-chip computer module break in service flow chart.
Fig. 8 is the next one-chip computer module break in service flow chart.
Embodiment
The present invention will be further described below in conjunction with the drawings and specific embodiments.
Contrast Fig. 1, the IO module of the central control unit of master control system and standard is realized communicating to connect by the inside IO layer bus of main system, and central control unit can be redundant configuration, to improve system reliability.The upper termination of communication gate is gone into main system IO layer bus, and the next termination is gone into the bus network of being made up of field intelligent device, thereby realizes and the communicating to connect of field intelligent device.Communication gate can be redundant configuration, and the upper and lower communication interface of communication gate is redundant configuration, and such design can improve field intelligent device carries out exchanges data by communication gate and central control unit reliability.Central control unit is by the visit to communication gate, indirect and field intelligent device generation exchanges data, so just the access master control system of the various smart machine successes in scene can be realized that master control system is integrated to the control of field intelligent device and standard I O module.The upper and lower communication of communication gate is relatively independent work, carries out exchanges data in inside by dual port RAM, has guaranteed the real-time requirement of central control unit visit field intelligent device like this.
Contrast Fig. 2, communication gate is made up of dual port RAM and the upper and lower communication module that communicates to connect with it, and is relatively simple for structure.And the upper and lower communication module is made up of with corresponding upper and lower telecommunication circuit that communicates to connect with it and relevant auxiliary circuit (circuit such as power management, power down protection, house dog) the upper and lower single-chip microcomputer respectively.
In actual applications, can design polytype communication gate as shown in Figure 2 according to demand, to cooperate the field intelligent device of actual needs.That is to say, lower communication module in the communication gate, in theory can be according to different communication modes, as: the MODBUS communication mode of RS485 serial link, the CANBUS communication mode waits and designs, adopt corresponding communication hardware circuit and corresponding data storage method, access mode, the software design of communication data form etc.
Fig. 3, Fig. 4 are exactly the gateway of two kinds of the next communication modes of difference.In Fig. 3, central control unit bus and field intelligent device bus are CANBUS; Among Fig. 4, central control unit bus, field intelligent device bus are respectively CANBUS and RS485.
Contrast Fig. 3, upper telecommunication circuit is a redundant configuration, it comprises CANBUS transceiver UA2, UA2 ', optocoupler isolator UA3, UA4, UA3 ', UA4 ' and CANBUS controller UA5, UA5 ', CANBUS transceiver UA2, the serial transmit port ua2-txd of UA2 ', ua2 '-txd is by optocoupler isolator UA3, UA3 ' and CANBUS controller UA5, the serial received port ua5-rxd of UA5 ', ua5 '-rxd connects, CANBUS transceiver UA2, the serial received port ua2-rxd of UA2 ', ua2 '-rxd is by optocoupler isolator UA4, UA4 ' and CANBUS controller UA5, the serial transmit port ua5-txd of UA5 ', ua5 '-txd connects, and realizes the exchange of communication data on CANBUS controller and the control unit internal bus.The FPDP AD0-AD7 of CANBUS controller UA5, UA5 ' is connected with address bus with corresponding data/address bus.
Upper single-chip microcomputer is made up of singlechip CPU 1 and address latch UA6, the data of singlechip CPU 1/address port P0.0~P0.7 is connected with the input port of data/address bus with address latch UA6 respectively, and the output of the address port of singlechip CPU 1 and address latch UA6 is connected with address bus respectively.Singlechip CPU 1 is connected address latch UA6 and CANBUS controller UA5, UA5 ' connection by its data/address bus A1 with dual port RAM with address bus B1.The next telecommunication circuit and upper telecommunication circuit circuit constitute basic identical, also are redundant configuration.UB1 wherein, the next CANBUS that UB1 ' expression is redundant.
Contrast Fig. 4, identical among upper telecommunication circuit and Fig. 3, all be to have adopted CANBUS, and be redundant configuration.The next telecommunication circuit is the RS485 telecommunication circuit, comprise RS485 communication transceiver UB2, UB2 ' and optocoupler isolator UB3, UB3 ', UB4, UB4 ', UB5, UB5 ', RS485 communication transceiver UB2, the serial received port ub2-rxd0 of UB2 ', ub2 '-rxd0, serial transmit port ub2-txd0, ub2 '-txd0 and control port ub2-re/de0, ub2 '-re/de0 is respectively by optocoupler isolator UB3, UB3 ', UB4, UB4 ', UB5, the serial transmit port cpu2-txd0 of UB5 ' and the next single-chip microcomputer, cpu2-txd1, serial received port cpu2-rxd0, cpu2-rxd1 and P3.2, P3.3 control signal output ends mouth connects.The next telecommunication circuit can be designed as redundant configuration by software design, also can be designed as the nonredundancy configuration, inserts different RS485 buses, and this can design with the actual hardware ability to work according to the actual requirements.
The composition structure of the next single-chip microcomputer is identical with the next single-chip microcomputer in the gateway structure shown in Figure 3.Form by singlechip CPU 2 and address latch UB6.Singlechip CPU 2 is by its data/address bus A2 and address bus B2 and dual port RAM, and address latch (UB6) connects.UB1, the next RS485 bus of UB1 ' expression, communication gate is by RS485 communication transceiver UB2, and UB2 ' is linked in this network.
The upper and lower communication of communication gate is relatively independent, shares the data of field intelligent device between the two by the dual port RAM in the gateway.In addition, the parameter that need use during some communications, the information of field apparatus, the communications status sign of field apparatus etc. also leaves in to keep supplying down in the dual port RAM to be shared.
In addition, in the upper and lower communication module, also have some auxiliary circuits.Down circuit UB7, UB7 ' (but data storage chip X5045) and LED communications status display circuit UB8, UB8 ' have been provided among Fig. 3, Fig. 4.But power down data storage chip has been deposited some important informations, and as field intelligent device information, upper and lower messaging parameter or the like like this, after the communication gate generation power down, just need not to reset these information when powering on once more.
The workflow of the upper communication module of gateway of the present invention such as Fig. 5.When upper Single Chip Microcomputer (SCM) program brings into operation, at first single-chip microcomputer and dual port RAM are carried out initial work, but upper single-chip microcomputer reads the information of the field intelligent device that writes in advance from power down data storage chip, bit walk parameter information etc. up and down, and the deposit data that will need to share with the next single-chip microcomputer is gone in the dual port RAM for the next calling.Simultaneously the flag bit that need use during some exchanges data is initialised, and these flag bits also all leave in the dual port RAM to be shared.Whether after telecommunication circuit success initialization, the port of upper telecommunication circuit is opened, have message to need to receive on the beginning monitor bus.
The step that a startup timer is arranged after the telecommunication circuit initialization, this timer is used for timing, in the process of whole procedure operation, the per cumulative time 300ms of timer, will remove to read the operating state sign of the next single-chip microcomputer in dual port RAM, this sign is provided with by the next single-chip microcomputer, and upper single-chip microcomputer indicates timing supervision to this down in working order.This sign is a cumulative number, the next single-chip microcomputer this sign that can constantly add up.Upper single-chip microcomputer at the 300ms timing then, can remove to read this sign and compare with sign that the last time reads, if twice numerical value is different, then represent the next single-chip microcomputer operate as normal, twice numerical value is the same, and then the next single-chip microcomputer is not made an amendment this sign, show the next single-chip microcomputer fault, at this moment upper single-chip microcomputer can be with the next single-chip microcomputer Reflector position 1, and normal if the next single-chip microcomputer work recovers, this sign is just put 0.As long as it is suitable that timing is provided with, just can guarantee of the correct supervision of upper single-chip microcomputer, to prevent the situation of the next single chip microcomputer halt to the next single-chip microcomputer operating state.Above flow process is seen among Fig. 5 and to be judged the flow process of timing behind the 300ms.
In the workflow of upper single-chip microcomputer, the every circular flow of program once, upper single-chip microcomputer can go also to monitor that the next single-chip microcomputer stops scanning flag, whether stops with the scanning of judging the next single-chip microcomputer.If find that bit scan has stopped down, upper single-chip microcomputer is the communication close mouth at once, carries out whole initialization again, and program is restarted.Like this, can transfer the task of scanning field apparatus intelligence to the redundancy communication gateway at once, guarantee the reliability of scanning and the promptness of switching.
After timer started, upper single-chip microcomputer just began to receive the data on the bus.Upper communication message has two kinds by the function branch, a kind of is the debug command that is used for being provided with or reading communication gate running parameter and field intelligent device information, this message uses when generally debugging before communication gate dispatches from the factory, and a kind of is the work order that upper control unit is visited field intelligent device under the normal operating conditions by communication gate.Communication gate can judge that message is debug command or work order after receiving message, classification is handled.If debug command just further resolves message, be provided with as requested then or read communication gate parameter or field device information, but the information that wherein is provided with can be preserved into power down data storage chip simultaneously.In working order down, upper control unit is after confirming that communication gate has connected, what at first will send is that communication gate starts the next scan command, communication gate is after receiving this order, can put 1 with starting the next scanning flag in the dual port RAM, the next this sign of reading after finding to be put 1, just starts scanning.But, be not after receiving starting command, central control unit just can have access to the field intelligent device data at once, must finish first time of field intelligent device all after the scanning the next, and communication gate just can be responded the visit of upper control unit to field intelligent device.She Ji purpose is in order to guarantee the validity of upper control unit visit site intelligent data, to prevent that upper control unit from producing misoperation because of receiving invalid information system like this.
After judgement option in the flow chart 5 after the startup scanning is all set up, upper single-chip microcomputer is resolved the request command from upper control unit, from dual port RAM, obtain the next scanning collection that central control unit needs to the data about field apparatus, perhaps the concrete numerical value that is provided with in order of central control unit to field intelligent device is deposited in the dual port RAM, make accordingly again and replying.
The upper Data Receiving work of communication gate is carried out in upper communication disruption.After the upper telecommunication circuit of gateway receives data, can trigger the external interrupt of upper single-chip microcomputer, like this, single-chip microcomputer has just entered upper single chip communication interrupt service routine as shown in Figure 7.The reason of communication disruption has several, interrupt routine is at first judged which kind of interruption that telecommunication circuit produces, when being sent completely interruption such as interruption generation, program all can be with the telecommunication circuit warm reset once, purpose is the reliability that guarantees the telecommunication circuit long-time running, and telecommunication circuit is unlikely to occur communication deadlock phenomenon.When Data Receiving interrupted producing, program at first can add 1 with a upper communications status sign.That purpose is set is identical for be provided with purpose and the foregoing the next operating state sign of this sign, will be under introducing describes in detail during bit walk.Judge then whether bit scan does not scan any equipment down, and this also is to judge a sign by the next foundation, purpose of design is when bit scan is less than any equipment down, suspends the response to central control unit.Then, program is taken out the identification information of message earlier, is debug command or work order to judge this message, if debug command, just directly message is dumped to the reception buffering area, if work order, also to judge the current communications status of the field apparatus that upper control unit will be visited, if state is normal, just message is stored in the reception buffering area, if undesired, directly dropping packets is not done response.So many arbitration functions, main purpose are in order to improve the operating efficiency of communication gate, to make CPU in time find the job failure of field intelligent device and communication gate, guaranteeing system reliability.
Bit walk has two redundant ports on the communication gate, and the communication function of these two mouths is identical, and central control unit can initiatively be visited another port to obtain data when the failure of certain mouthful of visit.
The workflow of the lower communication module of gateway of the present invention such as Fig. 6.When the next Single Chip Microcomputer (SCM) program brings into operation, at first single-chip microcomputer etc. is carried out initialization operation, after finishing, just monitor to start the next scanning flag that after upper single-chip microcomputer put 1 with this sign, program just can be proceeded the content below the flow chart.In this monitoring process, the next single-chip microcomputer can constantly add 1 with the next operating state sign, makes upperly to know that the next single-chip microcomputer is in normal operation.
After the next single-chip microcomputer finds that the startup scanning flag puts 1, the information of bit walk necessity under program reads in the dual port RAM, as baud rate, communication gate address etc., and with the next telecommunication circuit initialization, by communication gate transmission the stop scan command of field intelligent device bus to redundancy.Ceasing and desisting order like this can send 4 times at a certain time interval, and wherein certain is received and stops to send after redundant gateway is responded.If redundant gateway receives this order and response, then program knows that redundant gateway will stop scanning, so prepare to start scanning, if send to cease and desist order and all do not receive response for 4 times, program will be thought the next communication failure of redundant gateway, will prepare to start scanning.Such purpose of design is when redundancy is switched, and guarantees under two gateways that bit walk one stops opening all the time, two gateways can not take place all carrying out the next scan condition.
Before the bit scan, redundant gateway will read the information of scanning field intelligent device necessity in the dual port RAM, reinitialize telecommunication circuit, and start timer 1 under starting.The effect that upper timer is introduced in the effect of the timer 1 here and front is similar.Mainly be that the next single-chip microcomputer is used for the upper single-chip microcomputer operating state of timing supervision.In the process of the next scan round, when program is found timing then, can remove to read upper single chip communication Status Flag, this sign is exactly the sign that upper single-chip microcomputer adds up in upper communication interruption service program the inside, the next single-chip microcomputer reads this sign and compares with the sign that read last time then, if it is different, bit walk is normal in the expression, if it is identical, represent upper communication failure, at this moment, program can will stop scanning flag position 1 in the dual port RAM, make upper and lower all stop scanning, gateway switches.
In the next single-chip microcomputer scan round process, the next single-chip microcomputer can constantly add 1 with the next operating state sign, keeps supplying the position and monitors, to show that at present the next is normal operating conditions.
The scan round process is the process that the next single-chip microcomputer of communication gate conducts interviews in order one by one to equipment on the field intelligent device bus.Access request of every transmission will start timer 2, the response of waiting facilities always in the regular hour.If receive response message, program can be resolved message, judges the validity of message, if effectively, then make corresponding processing, simultaneously can the exchanges data of equipment corresponding states mark position 1 expression corresponding device is normal, and communicate by letter successfully.If after timing finishes, all do not receive response data, program can not have response situation record to this devices communicating, scans next equipment according to as above mode then, up to having scanned all devices.In scanning process, program can read stopping in the dual port RAM and judge whether to stop current scanning at once in the scanning flag position, if this sign puts 1, and the program scanning work that can stop at once, the communication close mouth reinitializes, and waits for starting command again.
The next telecommunication circuit of communication gate is redundant, as top scanning process, if when first port scanning device does not have the response condition generation, program can not have response situation record according to devices communicating and use another port once more field intelligent device to be carried out once identical scanning again after first port scanning be finished.
After using two redundant ports all to finish scanning, program meeting analysis scan result, if twice does not all scan any equipment, then scan armamentarium failure flags position 1, at this moment, will abandon the order of all visit field intelligent devices in the upper CIP, suspend visit central control unit.If there is some equipment not scan, program can judge that whether these equipment all do not scan for continuous 3 times, if, just with the communication failure mark position 1 of corresponding device, upper like this CIP will abandon the work order of central control unit to this equipment, respond, so that upper control unit is learnt this equipment fault.
After finishing for the first time complete scanning process, program puts 1 with the scanning of the first round in dual port RAM complement mark, to start the response of upper single-chip microcomputer to the central control unit work order.
The next Data Receiving work of communication gate is carried out in the next communication disruption.After the next telecommunication circuit of gateway receives data, can trigger the external interrupt of the next single-chip microcomputer, like this, single-chip microcomputer has just entered the next single chip communication interrupt service routine as shown in Figure 8.This interrupt service routine is similar to upper communication interruption service program, but comparatively simple.The reason of communication disruption has several, interrupt routine is at first judged which kind of interruption that telecommunication circuit produces, when being sent completely interruption such as interruption generation, program all can be with the telecommunication circuit warm reset once, purpose is the reliability that guarantees the telecommunication circuit long-time running, and telecommunication circuit is unlikely to occur communication deadlock phenomenon.When Data Receiving interrupted producing, program was directly taken out data and deposit the message reception buffering area that the next single-chip microcomputer is opened up in dual port RAM, interrupts then just withdrawing from.Concrete message validity judgement etc. is carried out in mh.

Claims (5)

1, a kind of communication gate in the automated system comprises
Upper communication module, be used for receiving the visit order of central control unit by the internal system bus, corresponding data district from dual port RAM reads the device data of relevant field intelligent device and this device data is sent to central control unit according to this order, or the data that are provided with in the described instruction are deposited in the corresponding data district and send response message to central control unit;
Dual port RAM, be used for depositing the work state information that data, upper communication module are set of central control unit visit order by data/address bus (A1) and address bus (B1), messaging parameter, with deposit the device data of field intelligent device, the work state information of lower communication module by data/address bus (A2) and address bus (B2), messaging parameter, the messaging parameter of field intelligent device, communicate status information.
Lower communication module, be used for initiatively sending access instruction to field intelligent device by the field intelligent device bus, device data according to the relevant field intelligent device of this instruction acquisition, and deposit it corresponding data district of dual port RAM in, or call the relevant data that are provided with that upper communication module writes from the corresponding data district of dual port RAM, form message and be sent to field intelligent device, and receive the response message of field intelligent device.
2, a kind of communication gate in the automated system according to claim 1 is characterized in that described upper communication module comprises upper single-chip microcomputer and the upper telecommunication circuit that communicates to connect with it; Described lower communication module comprises upper single-chip microcomputer and the next telecommunication circuit that communicates to connect with it.
3, a kind of communication gate in the automated system according to claim 2, it is characterized in that described upper single-chip microcomputer and the next single-chip microcomputer be made up of single-chip microcomputer (CPU1) and address latch (UA6) and single-chip microcomputer (CPU2) and address latch (UB6) respectively, data/the address port of single-chip microcomputer (CPU1, CPU2) is connected with the input port of data/address bus with address latch (UA6, UB6) respectively, and its address port is connected with address bus respectively with the output of address latch (UA6).
4, a kind of communication gate in the automated system according to claim 3, it is characterized in that described upper telecommunication circuit adopts two redundancy structures, it comprises CANBUS transceiver (UA2, UA2 '), optocoupler isolator (UA3, UA4, UA3 ', UA4 ') and CANBUS controller (UA5, UA5 '), CANBUS transceiver (UA2, UA2 ') serial transmit port is by optocoupler isolator (UA3, UA3 ') with CANBUS controller (UA5, UA5 ') serial received port connects, CANBUS transceiver (UA2, UA2 ') serial received port is by optocoupler isolator (UA4, UA4 ') with CANBUS controller (UA5, UA5 ') serial transmit port connects, CANBUS controller (UA5, UA5 ') FPDP (AD0-AD7) is connected with address bus with corresponding data/address bus.
5, a kind of communication gate in the automated system according to claim 3, it is characterized in that described the next telecommunication circuit adopts two redundancy structures, it comprises CANBUS transceiver (UB2, UB2 '), optocoupler isolator (UB3, UB4, UB3 ', UB4 ') and CANBUS controller (UB5, UB5 '), CANBUS transceiver (UB2, UB2 ') serial transmit port is by optocoupler isolator (UB3, UB3 ') with CANBUS controller (UB5, UB5 ') serial received port connects, CANBUS transceiver (UB2, UB2 ') serial received port is by optocoupler isolator (UB4, UB4 ') with CANBUS controller (UB5, UB5 ') serial transmit port connects, CANBUS controller (UB5, UB5 ') FPDP is connected with address bus with corresponding data/address bus.
Or comprise RS485 communication transceiver (UB2, UB2 ') and optocoupler isolator (UB3, UB3 ', UB4, UB4 ', UB5, UB5 '), serial received port, serial transmit port and the control port of RS485 communication transceiver (UB2, UB2 ') is respectively by the serial transmit port of optocoupler isolator (UB3, UB3 ', UB4, UB4 ', UB5, UB5 ') with the next single-chip microcomputer, serial received port and P3.2, P3.3 control signal output ends mouth connects.
CNB2006100883823A 2006-07-17 2006-07-17 A communication gate in automatic system Expired - Fee Related CN100448234C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100883823A CN100448234C (en) 2006-07-17 2006-07-17 A communication gate in automatic system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100883823A CN100448234C (en) 2006-07-17 2006-07-17 A communication gate in automatic system

Publications (2)

Publication Number Publication Date
CN1889543A true CN1889543A (en) 2007-01-03
CN100448234C CN100448234C (en) 2008-12-31

Family

ID=37578802

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100883823A Expired - Fee Related CN100448234C (en) 2006-07-17 2006-07-17 A communication gate in automatic system

Country Status (1)

Country Link
CN (1) CN100448234C (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447602A (en) * 2011-12-26 2012-05-09 苏州工业园区广福汽保机电设备有限公司 System for quickly exchanging Modbus and Canbus communication data
CN103139060A (en) * 2013-03-01 2013-06-05 哈尔滨工业大学 High-fault-tolerance controller area network (CAN) bus digital gateway based on double digital signal processors (DSPs)
CN105939253A (en) * 2016-04-14 2016-09-14 江汉大学 Industrial wireless gateway device and protocol conversion method thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5291480A (en) * 1991-06-18 1994-03-01 Dsc Communications Corporation Synchronous node controllers for switching network
US7212537B2 (en) * 2002-07-10 2007-05-01 Samsung Electronics Co., Ltd. Apparatus and method for recovering communication sessions in a wireless network gateway
CN1221111C (en) * 2003-03-26 2005-09-28 哈尔滨新中新电子股份有限公司 Business gateway
FI20040888A0 (en) * 2004-06-28 2004-06-28 Nokia Corp Management of services in a packet switching data network

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447602A (en) * 2011-12-26 2012-05-09 苏州工业园区广福汽保机电设备有限公司 System for quickly exchanging Modbus and Canbus communication data
CN103139060A (en) * 2013-03-01 2013-06-05 哈尔滨工业大学 High-fault-tolerance controller area network (CAN) bus digital gateway based on double digital signal processors (DSPs)
CN103139060B (en) * 2013-03-01 2015-10-28 哈尔滨工业大学 Based on the high fault tolerance CAN digital gateway of two CSTR
CN105939253A (en) * 2016-04-14 2016-09-14 江汉大学 Industrial wireless gateway device and protocol conversion method thereof

Also Published As

Publication number Publication date
CN100448234C (en) 2008-12-31

Similar Documents

Publication Publication Date Title
CN109597723B (en) Dual-machine hot standby redundancy implementation system and method for subway integrated monitoring system
CN101572702B (en) Method for scheduling high-speed bus master and slave network communication
CN1975680A (en) Method for realizing interprocess asynchronous communication based on Java
CN101753584B (en) Method for improving rapid message processing speed of intelligent transformer substation under VxWorks system
CN111711583B (en) Switch supporting configuration of multiple redundancy protocols and transformer substation network system
CN100448234C (en) A communication gate in automatic system
CN1220360C (en) Method and apparatus for protocol switch between MODBUS/TCP industrial Ethernet and device network field bus
CN1274112C (en) Centralized gateway warning box and warning treatment method
CN101644920A (en) Control method of embedded station information collector system
CN1246751C (en) Computer system with power management and its method
CN1753407A (en) Communication adapter
CN1268069C (en) Method and system of controlling network communication of automation based on blue-tooth technique
CN1908925A (en) Method for improving PCI communication credibility and efficiency
CN1798114A (en) CAN bus - bridge of Ethernet network
CN200959610Y (en) Telecommunication gateway of automatic system
CN201178481Y (en) Industrial optical fiber Ethernet switch
CN101018122B (en) Mode matching processing method and system
CN1545267A (en) Ethernet redundancy switcher, redundant network system, and method for implementing redundancy switching
CN1992664A (en) Method and system of emergency exit communication for light rail
CN1232915C (en) Field bus network controller
CN1798113A (en) Profibus bus - bridge of Ethernet network
CN1324859C (en) Device and method of processing main spared inversion of synchronous system
CN1434609A (en) Embedded in situ bus gateway
CN2728111Y (en) Intelligent multi serial port bridge
CN1588341A (en) Method for realizing multiple spare part of key application module in power automatic system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081231

Termination date: 20210717

CF01 Termination of patent right due to non-payment of annual fee