CN106790618B - Multi-function communication device and its data forwarding method for underwater analogue system - Google Patents
Multi-function communication device and its data forwarding method for underwater analogue system Download PDFInfo
- Publication number
- CN106790618B CN106790618B CN201611255918.6A CN201611255918A CN106790618B CN 106790618 B CN106790618 B CN 106790618B CN 201611255918 A CN201611255918 A CN 201611255918A CN 106790618 B CN106790618 B CN 106790618B
- Authority
- CN
- China
- Prior art keywords
- module
- data information
- interface
- communication protocol
- data
- 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.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Communication Control (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention provides a kind of multi-function communication devices for underwater analogue system, including central controller, communication Protocol Conversion module and the communication interface being correspondingly arranged for different type communication protocol, it includes the primary data information for forwarding request that communication interface, which is used to receive,;Each communication interface has all been correspondingly connected with Interface Controller, and communication Protocol Conversion module is for being recipient's communication protocol by generation side's communication Protocol Conversion.Also provide a kind of data forwarding method of multi-function communication device: the communication interface corresponding to sender's communication protocol receives primary data, central controller, which is sent to, by corresponding interface controller carries out data parsing, it is then sent to communication Protocol Conversion module and is converted into recipient's communication protocol, and pass sequentially through central controller, interface controller corresponding with recipient's communication protocol and communication interface forwarding.There is the communication between the simulation model of different communication protocol in the underwater analogue system of realization that the present invention can be quick, accurate, stable.
Description
Technical field
The present invention relates to a kind of multi-function communication device, in particular for control in underwater analogue system between each model into
More function communication modules of row communication.Further relate to a kind of data forwarding method of communication device.
Background technique
The whole world continues to increase the demand of the energy, more and more living for the development activities of deep-sea oil gas in world wide
Jump.The development process of deep-sea oil gas includes building a large amount of water surface production of hydrocarbons platforms, exploitation subsea production system and underwater life
Produce control system.Need to establish corresponding analogue system during developing Subsea Production Control System, in analogue system not
Communications protocol between same simulation model is different, therefore hinders the communication between each simulation model.For producing control under water
For analogue system processed, Building of Simulation Model is carried out to Subsea Production Control System each section using various suitable simulation softwares
And realize that the mutual communication between each section has weight to simulating entire control system function, study the performance under its different process
Want meaning.
Summary of the invention
Aiming at the above shortcomings existing in the prior art, the present invention provide it is a kind of for underwater control analogue system communication
Multifunctional Interface Module can be realized logical between the simulation model in underwater control analogue system with different communication protocol
Letter.
To achieve the above object, present invention employs following technological means: a kind of for the multi-functional of underwater analogue system
Communication device is correspondingly arranged logical including central controller, communication Protocol Conversion module and for different type communication protocol
Believe interface;
The communication interface includes following kind of interface: being respectively used to AI interface, AO that analog signal is inputted, exported and connects
Mouthful, it is respectively used to digital signal input, the DI interface of output, DO interface, TCP/IP interface, CANopen interface, RS422 interface
And RS485 interface;
It includes the primary data information for forwarding request that the communication interface, which is used to receive,;Each communication interface is all corresponding to be connected
It is connected to interface data transceiver module, the interface data transceiver module is used to include that the primary data of request is forwarded to be transmitted to
Central controller;
Be equipped with data resolution module and interrupt module in the central controller, the data resolution module be used for from comprising
Data information to be forwarded is parsed in the primary data information for having forwarding to request, and is compared and shown that sender and recipient's is logical
Interrogate the protocol conversion relationship between protocol type;The interrupt module is used to compare the priority of data to be forwarded, and according to excellent
First grade sequence transmits data information, protocol conversion relationship to the communication Protocol Conversion module;
The communication Protocol Conversion module is used to be turned according to the agreement between sender and the communication protocol type of recipient
Relationship is changed, is recipient's communication protocol from sender's communication Protocol Conversion by data information to be forwarded and will convert into recipient
Final state data information after communication protocol passes sequentially through central controller, interface data corresponding with the communication protocol of recipient is received
Hair module and communication interface are forwarded.
It preferably, include several protocol conversion submodules in the communication Protocol Conversion module, each protocol conversion
Module is used to carry out communication protocol for the protocol conversion relationship between a kind of sender and the communication protocol type of recipient
Conversion;Each protocol conversion submodule is designed with corresponding address code, be equipped in each protocol conversion submodule for pair
Data information after parsing executes the syntax conversion unit of syntax conversion, semantic conversion and timing sequence conversion, semantic conversion respectively
Unit and timing sequence conversion unit.
Further, the communication Protocol Conversion module includes protocol conversion for respectively corresponding following protocol conversion relationship
Module: TCP/IP-CANopen, TCP/IP-RS422, TCP/IP-RS485, TCP/IP-AO, TCP/IP-DO,
CANopen-RS422, CANopen-RS485, CANopen-AO, CANopen-DO, RS422-RS485, RS422-AO,
RS422-DO, RS485-AO, RS485-DO, AI-TCP/IP, AI-CANopen, AI-RS422, AI-RS485, AI-
DO, DI-TCP/IP, DI-CANopen, DI-RS422, DI-RS485, DI-AO.
Preferably, the interrupt module includes interrupting to allow deposit unit and interrupt priority level deposit unit;The interruption
Allow deposit unit to be used for the open or closed permission to interrupt requests, and it is temporary be allowed to include interrupt requests data
Information;The interrupt priority level deposit unit be used for reads interrupt allow deposit unit in include interrupt requests data letter
It ceases and judges its priority, and it is ranked up and is kept in from high priority to low priority.
Further, it is additionally provided in the central controller and interrupts feedback module, Read-write Catrol module and data compression
Module, the Read-write Catrol module are used to include that the primary data information of interrupt requests is sent to according to the sequence of priority
Data resolution module in central controller, or will include that the final state data informations of interrupt requests is sent to data compression mould
Block, and the completion instruction for indicating that read-write is completed is sent to the interruption feedback module;The interruption feedback module will be for that will complete
Instruction feedback gives interrupt priority level deposit unit.
Preferably, there is several data resolution modules and several data compressing modules.
Another object of the present invention is to provide a kind of data of multi-function communication device for underwater analogue system to turn
Forwarding method specifically comprises the following steps:
Step 1: it includes the primary data information for forwarding request that the communication interface corresponding to sender's communication protocol, which receives,
And it is sent to corresponding interface data transceiver module, interface data transceiver module will include the primary data for forwarding request
Information is sent to the interrupt module in central controller;
Step 2: interrupt module compares priority, and the data resolution module being sent in central controller carries out data solution
Analysis, and therefrom parse the protocol conversion between the communication protocol type of data information and sender and recipient to be forwarded
Relationship type is then forwarded to communications protocol conversion module;
Step 3: communication Protocol Conversion module is according between the communication protocol type of priority and sender and recipient
Data information to be forwarded is recipient's communication protocol from sender's communication Protocol Conversion by corresponding protocol conversion relationship and will
Final state data information after being converted into recipient's communication protocol is sent to central controller;
Step 4: final state data information is sent to interface data corresponding with the communication protocol of recipient by central controller
Transceiver module, then corresponding communication interface is sent to by interface data transceiver module and is forwarded.
It preferably, include several protocol conversion submodules in the communication Protocol Conversion module, each protocol conversion
Module is used to carry out communication protocol for the protocol conversion relationship between a kind of sender and the communication protocol type of recipient
Conversion;Each protocol conversion submodule is designed with corresponding address code, be equipped in each protocol conversion submodule for pair
Data information after parsing executes the syntax conversion unit of syntax conversion, semantic conversion and timing sequence conversion, semantic conversion respectively
Unit and timing sequence conversion unit;
In step 2: central controller parses the communications protocol of data information and sender and recipient to be forwarded
After protocol conversion relationship between type, according to the protocol conversion relationship between sender and the communication protocol type of recipient,
One-to-one addressing coding therewith is generated for data information to be forwarded;The addressing coding represents same protocol for matching
The address code of transformational relation;
In step 3: communication Protocol Conversion module is encoded according to addressing coding come match address, thus for the data after parsing
Information matches protocol conversion submodule;Syntax conversion unit, semantic conversion unit and timing in protocol conversion submodule turn
It changes unit and syntax conversion, semantic conversion and timing sequence conversion is carried out to the data information after parsing respectively;
Preferably, the interrupt module includes interrupting to allow deposit unit and interrupt priority level deposit unit;The interruption
Allow deposit unit to be used to open or close permission to interrupt requests, and it is temporary be allowed to include interrupt requests data
Information;The interrupt priority level deposit unit be used for reads interrupt allow deposit unit in include interrupt requests data letter
It ceases and judges its priority, and it is ranked up and is kept in from high priority to low priority;
It is additionally provided in the central controller and interrupts feedback module, Read-write Catrol module and data compressing module, it is described
Read-write Catrol module is used to include that the primary data information of interrupt requests is sent in controller according to the sequence of priority
Data resolution module, or will include that the final state data informations of interrupt requests is sent to data compressing module;The read-write
Control module, which is used to send to interruption feedback module, indicates that the completion that read-write is completed instructs;The interruption feedback module is used for will be complete
Interrupt priority level deposit unit is given at instruction feedback;
In step 1: first allowing deposit unit to open the permission to interrupt requests by interruption, then receiving interface data transmit-receive
What module was sent includes the primary data information of interrupt requests, and it is temporary be allowed to include interrupt requests primary data
Information;Again by interrupt priority level deposit unit read interrupt allow deposit unit in include interrupt requests initial number it is believed that
It ceases and judges its priority, and it is ranked up and is kept in from high priority to low priority, then according to priority
Sequence is sequentially transmitted to Read-write Catrol module, then parses mould to the data in central controller by Read-write Catrol module forwards
Block;Once forwarding is just complete to interrupt priority level deposit unit transmission one by interrupting feedback module for the every completion of Read-write Catrol module
At instruction, interrupt priority level deposit unit receives the primary data information deletion for completing that forwarding will just be completed after instructing, and makes
Next primary data information to be forwarded becomes highest priority;;
In step 3: interruption allows deposit unit to receive and keep in the transmission of communication Protocol Conversion module includes that interruption is asked
The final state data information asked;And then read by interrupt priority level deposit unit interrupt allow include in deposit unit
The primary data information and final state data information of disconnected request simultaneously judge its priority, and to it from high priority to low priority
It is ranked up and keeps in, Read-write Catrol module is sequentially then transmitted to according to priority sequence, then by Read-write Catrol
Module forwards are to the data compressing module or data resolution module in central controller;The every completion of Read-write Catrol module is primary to be turned
Hair just sends a completion instruction to interrupt priority level deposit unit by interrupting feedback module, and interrupt priority level deposit unit connects
Receive the primary data information that forwarding will just be completed after completing instruction or final state data information deleted, make it is next it is to be forwarded just
Beginning data information or final state data information become highest priority;
In step 4: final state data information is compressed into the communication being sent to after data packet with recipient by data compressing module
The corresponding interface data transceiver module of agreement, then corresponding communication interface is sent to by interface data transceiver module and is forwarded.
Compared with the prior art, the invention has the following beneficial effects:
1, the multi-function communication device for underwater analogue system of the invention can receive and send different types of logical
Believe agreement, and sender's communications protocol can be converted into recipient's communication protocol, so that realizing has different communication protocol
Communication between simulation model.
2, in the communication Protocol Conversion module in the present invention for every kind of sender and recipient communication protocol type it
Between protocol conversion relationship be equipped with corresponding protocol conversion submodule, the efficiency of conversion communication protocol and accurate can be improved in this way
Property.
3, the interrupt module in the present invention makes the reception of data and sends according to priority sequence progress, in this way can be effective
Avoid information collision and because of corrupted data caused by information collision.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the multi-function communication device for underwater analogue system of present embodiment 1;
Fig. 2 is the data forwarding flow chart of present embodiment 1;
Fig. 3 is the structural schematic diagram of the communication Protocol Conversion module in specific embodiment 1;
Fig. 4 is the structural schematic diagram of the central controller of specific embodiment 2.
Specific embodiment
Further description of the technical solution of the present invention with reference to the accompanying drawings and examples.
Specific embodiment 1
As shown in Figure 1, a kind of multi-function communication device for underwater analogue system, it is characterised in that: controlled including center
Device, communication Protocol Conversion module and the communication interface being correspondingly arranged for different type communication protocol processed;
The communication interface includes following kind of interface: being respectively used to AI interface, AO that analog signal is inputted, exported and connects
Mouthful, it is respectively used to digital signal input, the DI interface of output, DO interface, TCP/IP interface, CANopen interface, RS422 interface
And RS485 interface;
It includes the primary data information for forwarding request that the communication interface, which is used to receive,;Each communication interface is all corresponding to be connected
It is connected to interface data transceiver module, the interface data transceiver module is used to include that the primary data of request is forwarded to be transmitted to
Central controller;
Be equipped with data resolution module and interrupt module in the central controller, the data resolution module be used for from comprising
Data information to be forwarded is parsed in the primary data information for having forwarding to request, and is compared and shown that sender and recipient's is logical
Interrogate the protocol conversion relationship between protocol type;The interrupt module is used to compare the priority of data to be forwarded, and according to excellent
First grade sequence transmits data information, protocol conversion relationship to the communication Protocol Conversion module;
The communication Protocol Conversion module is used to be turned according to the agreement between sender and the communication protocol type of recipient
Relationship is changed, is recipient's communication protocol from sender's communication Protocol Conversion by data information to be forwarded and will convert into recipient
Final state data information after communication protocol passes sequentially through central controller, interface data corresponding with the communication protocol of recipient is received
Hair module and communication interface are forwarded.
In the above-mentioned multi-function communication device for underwater analogue system, comprising several in the communication Protocol Conversion module
A protocol conversion submodule, each protocol conversion submodule be used for for a kind of sender and recipient communication protocol type it
Between protocol conversion relationship carry out communication protocol conversion;Each protocol conversion submodule is designed with corresponding address code, often
It is equipped in a protocol conversion submodule for executing syntax conversion, semantic conversion respectively to the data information after parsing with timely
Syntax conversion unit, semantic conversion unit and the timing sequence conversion unit of sequence conversion.
As shown in figure 3, communication Protocol Conversion module includes respectively corresponding the protocol conversion submodule of following protocol conversion relationship
Block: TCP/IP-CANopen, TCP/IP-RS422, TCP/IP-RS485, TCP/IP-AO, TCP/IP-DO,
CANopen-RS422, CANopen-RS485, CANopen-AO, CANopen-DO, RS422-RS485, RS422-AO,
RS422-DO, RS485-AO, RS485-DO, AI-TCP/IP, AI-CANopen, AI-RS422, AI-RS485, AI-
DO, DI-TCP/IP, DI-CANopen, DI-RS422, DI-RS485, DI-AO.These protocol conversion submodules can be right
Two kinds of communication protocols in protocol conversion relationship carry out bi-directional conversion, such as correspond to the transformational relation of RS422-CANopen, i.e.,
RS422 as sender's communication protocol can be converted into the CANopen as recipient's communication protocol, can also will be used as and send
The CANopen of person's communication protocol is converted into the RS422 as recipient's communication protocol.Above-mentioned protocol conversion submodule is correspondingly
Location is encoded to P1, P2 ... P24.
The data forwarding method of the multi-function communication device for underwater analogue system in present embodiment according to
Following steps carry out, as shown in Figure 2:
Step 1: it includes the primary data information for forwarding request that the communication interface corresponding to sender's communication protocol, which receives,
And it is sent to corresponding interface data transceiver module, interface data transceiver module will include the primary data for forwarding request
Information is sent to the interrupt module in central controller;
Step 2: interrupt module compares priority, and the data resolution module being sent in central controller carries out data solution
Analysis, and therefrom parse the protocol conversion between the communication protocol type of data information and sender and recipient to be forwarded
Relationship type is then forwarded to communications protocol conversion module.Specific: central controller parses data information and hair to be forwarded
After protocol conversion relationship between the side of sending and the communication protocol type of recipient, according to the communications protocol class of sender and recipient
Protocol conversion relationship between type generates one-to-one addressing coding therewith for data information to be forwarded;The addressing is compiled
Code is for matching the address code for representing same protocol transformational relation.
Step 3: communication Protocol Conversion module is according to agreement corresponding between sender and the communication protocol type of recipient
Data information to be forwarded is recipient's communication protocol from sender's communication Protocol Conversion and will convert into reception by transformational relation
Final state data information after square communication protocol is sent to central controller.Wherein, protocol conversion submodule according to addressing coding come
Match address coding, thus for the data information match protocol transform subblock after parsing;Grammer in protocol conversion submodule
Converting unit, semantic conversion unit and timing sequence conversion unit carry out syntax conversion, semanteme to the data information after parsing respectively
Conversion and timing sequence conversion.
Step 4: final state data information is sent to interface data corresponding with the communication protocol of recipient by central controller
Transceiver module, then corresponding communication interface is sent to by interface data transceiver module and is forwarded.
Multi-function communication device of the invention: it can be achieved point-to-point (sender is to a recipient), point-to-points
(sender is to multiple recipients), multi-to-multi (multiple senders are to multiple recipients) and multipair point (multiple senders
To a recipient) data forwarding.
For point-to-point, for example, sender is CANopen communication protocol, recipient is RS422 communication protocol, data solution
Analysis module parses the data to be forwarded comprising CANopen-RS422 protocol conversion relationship and is sent to communication Protocol Conversion module,
The data information to be forwarded is assigned to corresponding with CANopen-RS422 protocol conversion relationship by communication Protocol Conversion module
Communication Protocol Conversion is carried out in protocol conversion submodule.
For point-to-points, for example, sender is equally CANopen communication protocol, recipient is respectively RS422 communication protocol
And RS485 communication protocol, data resolution module parse the data to be forwarded of two kinds of protocol conversion relationships of protection:
The data information to be forwarded is separately dispensed by CANopen-RS422 and CANopen-RS485, communication Protocol Conversion module
It is carried out in two protocol conversion submodules corresponding with CANopen-RS422, CANopen-RS485 protocol conversion relationship
Communication Protocol Conversion.
For multi-to-multi, such as there are two senders, be respectively CANopen communication protocol, analog signal input agreement, with
Corresponding communication interface be CANopen interface, AI interface;Recipient is TCP/IP communication agreement, digital signal output respectively
Agreement, corresponding communication interface are TCP/IP interface, DO interface.Interrupt module in central controller judges two transmissions
After the priority of the primary data information of side, data resolution module is successively issued according to the priority and is handled, it is assumed that
The priority of CANopen communication protocol is higher than analog signal and inputs agreement, and the protocol conversion relationship parsed is, AI-TCP/
IP, AI-DO, then data resolution module first parses communication Protocol Conversion relationship related with CANopen communication protocol, such as
CANopen-TCP/IP, CANopen-DO, are then sent to communications protocol conversion module, and communication Protocol Conversion module is by its point
It is fitted on corresponding TCP/IP-CANopen, handled in CANopen-DO protocol conversion submodule.Data resolution module solution
After having analysed protocol conversion relationship related with CANopen communication protocol, then parse association related with analog signal input agreement
Transformational relation is discussed, such as AI-TCP/IP, AI-DO, is then sent to communications protocol conversion module, communication Protocol Conversion module will
It is assigned to corresponding AI-TCP/IP, is handled in AI-DO protocol conversion submodule.
The protocol conversion of every completion of communication Protocol Conversion module just sends back controller, then is assigned to and is connect by controller
The corresponding interface data transceiver module of debit's communication protocol and communication interface are forwarded.
For multipair point, for example, according to the sequence sender of priority from high to low be respectively TCP/IP communication agreement,
CANopen communication protocol and RS422 communication protocol, recipient is RS485 communication protocol, then interrupt module is according to priority
Corresponding primary data information is sent to data resolution module by sequence, then data resolution module sequentially parses TCP/IP-
RS485, CANopen-RS485 and RS42-RS485 protocol conversion type, are then sequentially sent to communications protocol modulus of conversion
Block is handled.
In order to improve the efficiency of data parsing, the quantity of data resolution module can be increased, can be achieved in this way to initial
The synchronous parsing of status data, substantially increases data forwarding speed.
Specific embodiment 2
As shown in figure 4, leading in present embodiment and specific embodiment 1 for the multi-functional of underwater analogue system
T unit except that: the interrupt module includes interrupting to allow deposit unit and interrupt priority level deposit unit;In described
It is disconnected that deposit unit is allowed to be used for the open or closed permission to interrupt requests, and it is temporary be allowed to include interrupt requests number
It is believed that breath;The interrupt priority level deposit unit be used for reads interrupt permission deposit unit in include interrupt requests data
Information simultaneously judges its priority, and it is ranked up and is kept in from high priority to low priority.The center control
It is additionally provided in device and interrupts feedback module, Read-write Catrol module and data compressing module, the Read-write Catrol module is used for basis
The sequence of priority will include that the primary data information of interrupt requests is sent to the data resolution module in central controller, or
Person will include that the final state data informations of interrupt requests is sent to data compressing module, and sends table to the interruption feedback module
Show the completion instruction that read-write is completed;The interruption feedback module gives interrupt priority level deposit unit for that will complete instruction feedback.
The data forwarding method and tool of the multi-function communication device for underwater analogue system in present embodiment
Data forwarding method in body embodiment 2 except that:
In step 1: first allowing deposit unit to open the permission to interrupt requests by interruption, then receiving interface data transmit-receive
What module was sent includes the primary data information of interrupt requests, and it is temporary be allowed to include interrupt requests primary data
Information;Again by interrupt priority level deposit unit read interrupt allow deposit unit in include interrupt requests initial number it is believed that
It ceases and judges its priority, and it is ranked up and is kept in from high priority to low priority, then according to priority
Sequence is sequentially transmitted to Read-write Catrol module, then parses mould to the data in central controller by Read-write Catrol module forwards
Block;Once forwarding is just complete to interrupt priority level deposit unit transmission one by interrupting feedback module for the every completion of Read-write Catrol module
At instruction, interrupt priority level deposit unit receives the primary data information deletion for completing that forwarding will just be completed after instructing, and makes
Next primary data information to be forwarded becomes highest priority;
In step 3: interruption allows deposit unit to receive and keep in the transmission of communication Protocol Conversion module includes that interruption is asked
The final state data information asked;And then read by interrupt priority level deposit unit interrupt allow include in deposit unit
The primary data information and final state data information of disconnected request simultaneously judge its priority, and to it from high priority to low priority
It is ranked up and keeps in, Read-write Catrol module is sequentially then transmitted to according to priority sequence, then by Read-write Catrol
Module forwards are to the data compressing module or data resolution module in central controller;The every completion of Read-write Catrol module is primary to be turned
Hair just sends a completion instruction to interrupt priority level deposit unit by interrupting feedback module, and interrupt priority level deposit unit connects
Receive the primary data information that forwarding will just be completed after completing instruction or final state data information deleted, make it is next it is to be forwarded just
Beginning data information or final state data information become highest priority;
In step 4: final state data information is compressed into the communication being sent to after data packet with recipient by data compressing module
The corresponding interface data transceiver module of agreement, then corresponding communication interface is sent to by interface data transceiver module and is forwarded.
In order to improve the efficiency of data compression, the quantity of data compressing module can be increased, can be achieved in this way to final state
Data information synchronizes compression, substantially increases data forwarding speed.
Finally, it is stated that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although referring to compared with
Good embodiment describes the invention in detail, those skilled in the art should understand that, it can be to skill of the invention
Art scheme is modified or replaced equivalently, and without departing from the objective and range of technical solution of the present invention, should all be covered at this
In the scope of the claims of invention.
Claims (9)
1. a kind of multi-function communication device for underwater analogue system, it is characterised in that: including central controller, communication protocol
Conversion module and the communication interface being correspondingly arranged for different type communication protocol;
The communication interface includes following kind of interface: it is respectively used to analog signal input, the AI interface of output, AO interface,
Be respectively used to digital signal input, output DI interface, DO interface, TCP/IP interface, CANopen interface, RS422 interface and
RS485 interface;
It includes the primary data information for forwarding request that the communication interface, which is used to receive,;Each communication interface has all been correspondingly connected with
Interface data transceiver module, the interface data transceiver module are used to include that the primary data of request is forwarded to be transmitted to center
Controller;
It is equipped with data resolution module and interrupt module in the central controller, the data resolution module is used for from including to turn
It sends out and parses data information to be forwarded in the primary data information of request, and compare and show that the communication of sender and recipient are assisted
Discuss the protocol conversion relationship between type;The interrupt module is used to compare the priority of data to be forwarded, and according to priority
Sequence transmits data information, protocol conversion relationship to the communication Protocol Conversion module;
The communication Protocol Conversion module is used to be closed according to the protocol conversion between sender and the communication protocol type of recipient
Data information to be forwarded is recipient's communication protocol from sender's communication Protocol Conversion and will convert into recipient's communication by system
Final state data information after agreement passes sequentially through central controller, interface data corresponding with the communication protocol of recipient transmitting-receiving mould
Block and communication interface are forwarded.
2. the multi-function communication device according to claim 1 for underwater analogue system, it is characterised in that: the communication
Include several protocol conversion submodules in protocol conversion module, each protocol conversion submodule be used for for a kind of sender with
Protocol conversion relationship between the communication protocol type of recipient carries out the conversion of communication protocol;Each protocol conversion submodule
Equipped with corresponding address code, it is equipped in each protocol conversion submodule for executing language respectively to the data information after parsing
Method conversion, semantic conversion and timing sequence conversion syntax conversion unit, semantic conversion unit and timing sequence conversion unit.
3. the multi-function communication device according to claim 2 for underwater analogue system, it is characterised in that: the communication
Protocol conversion module includes the protocol conversion submodule for respectively corresponding following protocol conversion relationship: TCP/IP-CANopen, TCP/
IP-RS422, TCP/IP-RS485, TCP/IP-AO, TCP/IP-DO, CANopen-RS422, CANopen-RS485,
CANope-AO, CANopen-DO, RS422-RS485, RS422-AO, RS422-DO, RS485-AO, RS485-DO,
AI-TCP/IP, AI-CANopen, AI-RS422, AI-RS485, AI-DO, DI-TCP/IP, DI-CANopen, DI-
RS422、DI—RS485、DI—AO。
4. the multi-function communication device according to claim 1 for underwater analogue system, it is characterised in that: the interruption
Module includes interrupting to allow deposit unit and interrupt priority level deposit unit;The interruption allows deposit unit for opening or closing
Close the permission to interrupt requests, and it is temporary be allowed to include interrupt requests data information;The interrupt priority level deposit
Unit, which is used to read, interrupts including the data information of interrupt requests and judging its priority in permission deposit unit, and from height
Priority is ranked up and keeps in it to low priority.
5. the multi-function communication device according to claim 4 for underwater analogue system, it is characterised in that: the center
Interruption feedback module, Read-write Catrol module and data compressing module, the Read-write Catrol module is additionally provided in controller to be used for
It will include that the primary data information of interrupt requests is sent to the data parsing mould in central controller according to the sequence of priority
Block, or will include that the final state data informations of interrupt requests is sent to data compressing module, and to the interruption feedback module
Send the completion instruction for indicating that read-write is completed;The interruption feedback module is deposited for that will complete instruction feedback to interrupt priority level
Unit.
6. the multi-function communication device according to claim 5 for underwater analogue system, it is characterised in that: have several
Data resolution module and several data compressing modules.
7. a kind of data forwarding method for the multi-function communication device of underwater analogue system as described in claim 1,
It is characterized in that: the following steps are included:
Step 1: it includes to forward the primary data information of request concurrent that the communication interface corresponding to sender's communication protocol, which receives,
Corresponding interface data transceiver module is given, interface data transceiver module will include the primary data information for forwarding request
The interrupt module being sent in central controller;
Step 2: interrupt module compares priority, and the data resolution module being sent in central controller carries out data parsing, and
Therefrom parse the protocol conversion relationship between the communication protocol type of data information and sender and recipient to be forwarded
Type is then forwarded to communications protocol conversion module;
Step 3: communication Protocol Conversion module is according to corresponding between priority and sender and the communication protocol type of recipient
Protocol conversion relationship, by data information to be forwarded from sender's communication Protocol Conversion be recipient's communication protocol and will conversion
Central controller is sent at the final state data information after recipient's communication protocol;
Step 4: final state data information is sent to interface data corresponding with the communication protocol of recipient and received and dispatched by central controller
Module, then corresponding communication interface is sent to by interface data transceiver module and is forwarded.
8. the data forwarding method of the multi-function communication device according to claim 7 for underwater analogue system, special
Sign is: including several protocol conversion submodules in the communication Protocol Conversion module, each protocol conversion submodule is used for
The conversion of communication protocol is carried out for the protocol conversion relationship between a kind of sender and the communication protocol type of recipient;Each
Protocol conversion submodule is designed with corresponding address code, is equipped in each protocol conversion submodule for the number after parsing
It is believed that ceasing the syntax conversion unit for executing syntax conversion, semantic conversion and timing sequence conversion respectively, semantic conversion unit with timely
Sequence converting unit;
In step 2: central controller parses the communication protocol type of data information and sender and recipient to be forwarded
Between protocol conversion relationship after, according to the protocol conversion relationship between sender and the communication protocol type of recipient, for
The data information of forwarding generates one-to-one addressing coding therewith;The addressing coding represents same protocol conversion for matching
The address code of relationship;
In step 3: communication Protocol Conversion module is encoded according to addressing coding come match address, thus for the data information after parsing
Match protocol transform subblock;Syntax conversion unit, semantic conversion unit and timing sequence conversion list in protocol conversion submodule
Member carries out syntax conversion, semantic conversion and timing sequence conversion to the data information after parsing respectively.
9. the data forwarding method of the multi-function communication device according to claim 8 for underwater analogue system, special
Sign is: the interrupt module includes interrupting to allow deposit unit and interrupt priority level deposit unit;The interruption allows to deposit
Unit is used to open or close permission to interrupt requests, and it is temporary be allowed to include interrupt requests data information;Institute
Stating interrupt priority level deposit unit allows including the data information of interrupt requests and sentencing in deposit unit for reading to interrupt
Break its priority, and it is ranked up and is kept in from high priority to low priority;
It is additionally provided in the central controller and interrupts feedback module, Read-write Catrol module and data compressing module, the read-write
Control module is used to according to the sequence of priority include that the primary data information of interrupt requests is sent to the number in controller
It according to parsing module, or will include that the final state data informations of interrupt requests is sent to data compressing module;The Read-write Catrol
Module, which is used to send to interruption feedback module, indicates that the completion that read-write is completed instructs;The interruption feedback module will be for that will complete to refer to
Order feeds back to interrupt priority level deposit unit;
In step 1: first allowing deposit unit to open the permission to interrupt requests by interruption, then receiving interface data transmit-receive module
What is sent includes the primary data information of interrupt requests, and it is temporary be allowed to include interrupt requests initial number it is believed that
Breath;Again by interrupt priority level deposit unit read interrupt allow deposit unit in include interrupt requests primary data information
And judge its priority, and it is ranked up and is kept in from high priority to low priority, then according to priority height
Low sequence is sequentially transmitted to Read-write Catrol module, then parses mould to the data in central controller by Read-write Catrol module forwards
Block;Once forwarding is just complete to interrupt priority level deposit unit transmission one by interrupting feedback module for the every completion of Read-write Catrol module
At instruction, interrupt priority level deposit unit receives the primary data information deletion for completing that forwarding will just be completed after instructing, and makes
Next primary data information to be forwarded becomes highest priority;
In step 3: interruption allows deposit unit to receive and keep in the transmission of communication Protocol Conversion module includes interrupt requests
Final state data information;And then being read in interruption permission deposit unit by interrupt priority level deposit unit includes that interruption is asked
The primary data information and final state data information asked simultaneously judge its priority, and carry out from high priority to low priority to it
It sorts and keeps in, Read-write Catrol module is sequentially then transmitted to according to priority sequence, then by Read-write Catrol module
The data compressing module or data resolution module being transmitted in central controller;The primary forwarding of the every completion of Read-write Catrol module is just
A completion instruction is sent to interrupt priority level deposit unit by interrupting feedback module, interrupt priority level deposit unit receives
The primary data information of forwarding will just be completed after completing instruction or final state data information is deleted, make next initial number to be forwarded
It is believed that breath or final state data information become highest priority;
In step 4: final state data information is compressed into the communication protocol being sent to after data packet with recipient by data compressing module
Corresponding interface data transceiver module, then corresponding communication interface is sent to by interface data transceiver module and is forwarded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611255918.6A CN106790618B (en) | 2016-12-30 | 2016-12-30 | Multi-function communication device and its data forwarding method for underwater analogue system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611255918.6A CN106790618B (en) | 2016-12-30 | 2016-12-30 | Multi-function communication device and its data forwarding method for underwater analogue system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106790618A CN106790618A (en) | 2017-05-31 |
CN106790618B true CN106790618B (en) | 2019-06-07 |
Family
ID=58953522
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611255918.6A Expired - Fee Related CN106790618B (en) | 2016-12-30 | 2016-12-30 | Multi-function communication device and its data forwarding method for underwater analogue system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106790618B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109194620A (en) * | 2018-08-06 | 2019-01-11 | 深圳市艾特智能科技有限公司 | Multichannel communication method, intelligent gateway and readable storage medium storing program for executing |
CN209448755U (en) * | 2018-11-26 | 2019-09-27 | 中国人民解放军海军大连舰艇学院 | For the communication interconnection means in Heterogeneous simulation system |
CN110245101A (en) * | 2019-06-13 | 2019-09-17 | 吉林大学 | A kind of more communication interface datas exchange board and its realize system |
CN113611013B (en) * | 2021-06-17 | 2023-06-27 | 珠海汇金科技股份有限公司 | Data transfer method, system and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0863684A2 (en) * | 1997-03-03 | 1998-09-09 | Victor Company Of Japan, Ltd. | Communication system |
CN101163017A (en) * | 2007-08-28 | 2008-04-16 | 东南大学 | Embedded transformer station information integrated server |
CN101383788A (en) * | 2008-10-28 | 2009-03-11 | 上海电力学院 | FlexRay-RS485 communication gateway and implementing method |
-
2016
- 2016-12-30 CN CN201611255918.6A patent/CN106790618B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0863684A2 (en) * | 1997-03-03 | 1998-09-09 | Victor Company Of Japan, Ltd. | Communication system |
CN101163017A (en) * | 2007-08-28 | 2008-04-16 | 东南大学 | Embedded transformer station information integrated server |
CN101383788A (en) * | 2008-10-28 | 2009-03-11 | 上海电力学院 | FlexRay-RS485 communication gateway and implementing method |
Also Published As
Publication number | Publication date |
---|---|
CN106790618A (en) | 2017-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106790618B (en) | Multi-function communication device and its data forwarding method for underwater analogue system | |
CN101136735B (en) | Semi-duplex serial port communication system and method using UART | |
CN109587029A (en) | FC-AE-1553 bus and MIL-STD-1553B bus non-transparent bridge welding system | |
CN106294854A (en) | A kind of man-machine interaction method for intelligent robot and device | |
CN105141552A (en) | Data scheduling and transmitting method supporting time trigger mechanism in FC switch | |
CN105245521B (en) | Protocol format conversion method, device and interface platform | |
CN101317476A (en) | Topological structure scanning method and scanning system | |
MXPA05007368A (en) | Method for controlling devices within a network by dedicated remote control and devices for carrying out said method. | |
CN109710554A (en) | FC-AE-1553 bus and CAN bus non-transparent bridge welding system | |
CN108965293A (en) | Message parsing method and device, electronic equipment | |
CN106254232A (en) | Digital handset gateway | |
CN108040111A (en) | A kind of apparatus and method for supporting natural language interaction | |
EP1481773A1 (en) | Robot system comprising a plurality of robots controlled by a single voice recognition device | |
KR101277329B1 (en) | Method for developing reusable interface software | |
CN102752148A (en) | Management system and management method based on network element adaption subsystem | |
CN100576787C (en) | A kind of method of between maintenance terminal and background devices, carrying out the transmission of big data quantity safety | |
CN104144134B (en) | A kind of array dispatching method and device | |
CN105871993A (en) | Cloud access system and method based on wireless communication module | |
CN106487888A (en) | A kind of dispatching communication based on case file is automatically to point methods | |
CN103001864A (en) | Information forwarding method based on International Electrotechnical Commission (IEC) 61850data set | |
CN101827290A (en) | PCM time slot interchange method capable of directly carrying out voice interchange with voice codec | |
CN109597777A (en) | A kind of MCBSP interface inter-link device and method based on FPGA | |
CN103002245B (en) | Audio and video communication method and audio and video communication system | |
CN209000000U (en) | A kind of serial ports switching network transmitting device | |
CN109194773A (en) | A kind of multiple terminals PLC interactive system and method based on cloud |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190607 Termination date: 20201230 |
|
CF01 | Termination of patent right due to non-payment of annual fee |