CN106790618A - For the multi-function communication device and its data forwarding method of analogue system under water - Google Patents
For the multi-function communication device and its data forwarding method of analogue system under water Download PDFInfo
- Publication number
- CN106790618A CN106790618A CN201611255918.6A CN201611255918A CN106790618A CN 106790618 A CN106790618 A CN 106790618A CN 201611255918 A CN201611255918 A CN 201611255918A CN 106790618 A CN106790618 A CN 106790618A
- Authority
- CN
- China
- Prior art keywords
- module
- data
- communication protocol
- communication
- interrupt
- 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
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 invention provides a kind of multi-function communication device for analogue system under water, the communication interface being correspondingly arranged including central controller, communication Protocol Conversion module and for different type communication protocol, communication interface is used to receive the primary data information for including forwarding request;Each communication interface is all corresponded to and is connected with Interface Controller, and it is recipient's communication protocol that communication Protocol Conversion module is used for generation side's communication Protocol Conversion.A kind of data forwarding method of the multi-function communication device is also provided:Communication interface corresponding to sender's communication protocol receives primary data, being sent to central controller 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 passes sequentially through central controller interface controller corresponding with recipient's communication protocol and communication interface forwarding.The of the invention communication that quick, accurate, stabilization can realize having between the simulation model of different communication protocol in analogue system under water.
Description
Technical field
The present invention relates to a kind of multi-function communication device, in particular for entering between each model in control under water analogue system
Many work(communication modules of row communication.Further relate to a kind of data forwarding method of the communicator.
Background technology
The whole world continues to increase for the demand of the energy, and the development activities in world wide for deep-sea oil gas are increasingly lived
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 gives birth under water
Produce control system.Need to set up corresponding analogue system during Subsea Production Control System is developed, 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 several part using various suitable simulation softwares
And realize that the mutual communication between each several part has weight to simulating whole control system function, the performance studied under its different process
Want meaning.
The content of the invention
For above shortcomings in the prior art, the present invention provides a kind of for the communication of underwater control analogue system
Multifunctional Interface Module, can realize having in underwater control analogue system logical between the simulation model of different communication protocol
Letter.
To achieve the above object, present invention employs following technological means:It is a kind of for the multi-functional of analogue system under water
Communicator, including central controller, communication Protocol Conversion submodule and be correspondingly arranged for different type communication protocol
Communication interface;
The communication interface includes following kind of interface:Analog signal input, AI interfaces, the AO interfaces of output are respectively used to,
Be respectively used to data signal input, output DI interfaces, DO interfaces, TCP/TP interfaces, CANopen interfaces, RS422 interfaces and
RS485 interfaces;
The communication interface is used to receive the primary data information for including forwarding request;Each communication interface is all corresponded to and is connected with
Interface data transceiver module, the primary data that the interface data transceiver module is used to include forwarding request is transmitted to center
Controller;
It is provided with data resolution module and interrupt module in the central controller, the data resolution module is used to turn from including
Data message to be forwarded is parsed in the primary data information for sending out request, and contrasts the communication association for drawing sender and recipient
Protocol conversion relation between view type;The interrupt module is used to contrast the priority of data to be forwarded, and according to priority
Sequence transmits data message, protocol conversion relation to the communication Protocol Conversion submodule;
The communication Protocol Conversion module is used to be closed according to the protocol conversion between sender and the communication protocol type of recipient
System, by data message to be forwarded from sender's communication Protocol Conversion is for recipient's communication protocol and will convert into recipient's communication
Final state data message after agreement passes sequentially through central controller interface data transmitting-receiving mould corresponding with the communication protocol of recipient
Block and communication interface are forwarded.
Preferably, several protocol conversion submodules, each protocol conversion are included in the communication Protocol Conversion submodule
Submodule is used to carry out communication protocol for the protocol conversion relation between a kind of sender and the communication protocol type of recipient
Conversion;Each protocol conversion submodule is designed with corresponding geocoding, is equipped with each protocol conversion submodule for solution
Data message after analysis performs the syntax conversion unit of syntax conversion, semantic conversion and timing conversion, semantic conversion list respectively
Unit and timing conversion unit.
Further, the communication Protocol Conversion submodule includes corresponding to respectively the protocol conversion of following protocol conversion relation
Submodule: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 allows deposit unit and interrupt priority level deposit unit;The interruption
Allowing deposit unit is used for the open or close permission to interrupt requests, and the temporary data for being allowed for including interrupt requests
Information;The interrupt priority level deposit unit is used to read to interrupt allows the data for including interrupt requests in deposit unit to believe
Its priority is ceased and judged, and it is ranked up and kept in from high priority to low priority.
Further, interruption feedback module, Read-write Catrol module and data compression are additionally provided with the central controller
Module, the primary data information that the Read-write Catrol module is used to that according to the order of priority interrupt requests will to be included is sent to
Data resolution module in central controller, or the final state data message of interrupt requests will be included be sent to data compression mould
Block, and instructed to the completion that the interruption feedback module sends expression read-write completion;The interruption feedback module is used to complete
Instruction feedback gives interrupt priority level deposit unit.
Preferably, with some data resolution modules and some data compressing modules.
Turn another object of the present invention is to provide a kind of data of the multi-function communication device for analogue system under water
Forwarding method, specifically includes following steps:
Step 1:Corresponding to sender's communication protocol communication interface receive include forwarding request primary data information it is concurrent
Corresponding interface data transceiver module is given, interface data transceiver module will include the primary data information of forwarding request
It is sent to the interrupt module in central controller;
Step 2:Interrupt module contrasts priority, and the data resolution module being sent in central controller carries out data parsing, and
Therefrom parse data message and the protocol conversion relation between sender and the communication protocol type of recipient to be forwarded
Type, is then forwarded to communications protocol modular converter;
Step 3:Communication Protocol Conversion submodule is according to right between priority and sender and the communication protocol type of recipient
The protocol conversion relation answered, by data message to be forwarded from sender's communication Protocol Conversion is for recipient's communication protocol and will turn
Change the final state data message after recipient's communication protocol into and be sent to central controller;
Step 4:Final state data message is sent to interface data transmitting-receiving corresponding with the communication protocol of recipient by central controller
Module, then corresponding communication interface is sent to by interface data transceiver module is forwarded.
Preferably, several protocol conversion submodules, each protocol conversion are included in the communication Protocol Conversion submodule
Submodule is used to carry out communication protocol for the protocol conversion relation between a kind of sender and the communication protocol type of recipient
Conversion;Each protocol conversion submodule is designed with corresponding geocoding, is equipped with each protocol conversion submodule for solution
Data message after analysis performs the syntax conversion unit of syntax conversion, semantic conversion and timing conversion, semantic conversion list respectively
Unit and timing conversion unit;
In step 2:Central controller parses the communication protocol type of data message to be forwarded and sender and recipient
Between protocol conversion relation after, according to the protocol conversion relation between sender and the communication protocol type of recipient, to treat
One-to-one addressing is encoded therewith for the data message generation of forwarding;The addressing coding represents same protocol conversion for matching
The geocoding of relation;
In step 3:Communication Protocol Conversion submodule is encoded according to addressing coding come match address, so as to be the data letter after parsing
Breath match protocol transform subblock;Syntax conversion unit, semantic conversion unit and timing conversion in protocol conversion submodule
Unit carries out syntax conversion, semantic conversion and timing conversion to the data message after parsing respectively;
Preferably, the interrupt module includes interrupting allows deposit unit and interrupt priority level deposit unit;Described interruption allows
Deposit unit is used to be turned on and off the permission to interrupt requests, and the temporary data letter for being allowed for including interrupt requests
Breath;The interrupt priority level deposit unit is used to read the data message for including interrupt requests for interrupting and allowing in deposit unit
And judge its priority, and it is ranked up and kept in from high priority to low priority;
Interruption feedback module, Read-write Catrol module and data compressing module, the read-write are additionally provided with the central controller
Control module is used for the number that is sent in controller of primary data information that will include interrupt requests according to the order of priority
According to parsing module, or the final state data message of interrupt requests will be included it is sent to data compressing module;The Read-write Catrol
Module is used to be sent to interruption feedback module the completion instruction for representing that read-write is completed;The interruption feedback module is used to complete to refer to
Order feeds back to interrupt priority level deposit unit;
In step 1:First deposit unit is allowed to open the permission to interrupt requests by interruption, then receiving interface data transmit-receive module
The primary data information for including interrupt requests for sending, and the temporary initial number for being allowed for including interrupt requests it is believed that
Breath;Read by interrupt priority level deposit unit again and interrupt the primary data information for including interrupt requests allowed in deposit unit
And judge its priority, and it is ranked up and kept in from high priority to low priority, it is then high according to priority
Low order is sequentially transmitted to Read-write Catrol module, then parses mould to the data in central controller by Read-write Catrol module forwards
Block;Read-write Catrol module often completes once to forward just complete to interrupt priority level deposit unit transmission one by interrupting feedback module
Into instruction, interrupt priority level deposit unit receives the primary data information deletion for completing that forwarding will have just been completed after instructing, and makes
Next primary data information to be forwarded becomes limit priority;;
In step 3:Interrupt allow deposit unit receive and keep in communication Protocol Conversion submodule send include interrupt requests
Final state data message;Afterwards, then by interrupt priority level deposit unit reading interruption permission deposit unit interruption is included
The primary data information and final state data message of request simultaneously judge its priority, and it is entered from high priority to low priority
Row sequence is simultaneously kept in, and is then sequentially transmitted to Read-write Catrol module according to priority sequence, then by Read-write Catrol mould
Block is transmitted to data compressing module or data resolution module in central controller;Read-write Catrol module often completes once to forward
A completion instruction just is sent to interrupt priority level deposit unit by interrupting feedback module, interrupt priority level deposit unit is received
To primary data information or final state the data message deletion for completing will just to have completed after instruction forwarding, make next to be forwarded initial
Data message or final state data message become limit priority;
In step 4:Final state data message is compressed into after packet data compressing module the communication protocol being sent to recipient
Corresponding interface data transceiver module, then corresponding communication interface is sent to by interface data transceiver module is forwarded.
Compared to prior art, the present invention has the advantages that:
1st, the multi-function communication device for analogue system under water of the invention can be received and send different types of communication protocols
View, and sender's communications protocol can be converted into recipient's communication protocol, so as to realize the emulation with different communication protocol
Communication between model.
2nd, for every kind of sender and the communication protocol type of recipient in the communication Protocol Conversion submodule in the present invention
Between protocol conversion relation be equipped with corresponding protocol conversion submodule, can so improve the efficiency of conversion communication protocol with it is accurate
True property.
3rd, the interrupt module in the present invention causes that the reception of data and transmission are according to priority sequentially carried out, so can be effective
Avoid information collision and because of corrupted data caused by information collision.
Brief description of the drawings
Fig. 1 is the structural representation of the multi-function communication device for analogue system under water of this specific embodiment 1;
Fig. 2 is the data forwarding flow chart of this specific embodiment 1;
Fig. 3 is the structural representation of the communication Protocol Conversion submodule in specific embodiment 1;
Fig. 4 is the structural representation of the central controller of specific embodiment 2.
Specific embodiment
Technical scheme is further described with reference to the accompanying drawings and examples.
Specific embodiment 1
As shown in figure 1, a kind of multi-function communication device for analogue system under water, it is characterised in that:Including central controller,
Communication Protocol Conversion submodule and the communication interface being correspondingly arranged for different type communication protocol;
The communication interface includes following kind of interface:Analog signal input, AI interfaces, the AO interfaces of output are respectively used to,
Be respectively used to data signal input, output DI interfaces, DO interfaces, TCP/TP interfaces, CANopen interfaces, RS422 interfaces and
RS485 interfaces;
The communication interface is used to receive the primary data information for including forwarding request;Each communication interface is all corresponded to and is connected with
Interface data transceiver module, the primary data that the interface data transceiver module is used to include forwarding request is transmitted to center
Controller;
It is provided with data resolution module and interrupt module in the central controller, the data resolution module is used to turn from including
Data message to be forwarded is parsed in the primary data information for sending out request, and contrasts the communication association for drawing sender and recipient
Protocol conversion relation between view type;The interrupt module is used to contrast the priority of data to be forwarded, and according to priority
Sequence transmits data message, protocol conversion relation to the communication Protocol Conversion submodule;
The communication Protocol Conversion module is used to be closed according to the protocol conversion between sender and the communication protocol type of recipient
System, by data message to be forwarded from sender's communication Protocol Conversion is for recipient's communication protocol and will convert into recipient's communication
Final state data message after agreement passes sequentially through central controller interface data transmitting-receiving mould corresponding with the communication protocol of recipient
Block and communication interface are forwarded.
In the above-mentioned multi-function communication device for analogue system under water, if being included in the communication Protocol Conversion submodule
Dry protocol conversion submodule, each protocol conversion submodule is used for the communication protocol type with recipient for a kind of sender
Between protocol conversion relation carry out the conversion of communication protocol;Each protocol conversion submodule is designed with corresponding geocoding,
Be equipped with each protocol conversion submodule for the data message after parsing is performed respectively syntax conversion, semantic conversion and
The syntax conversion unit of timing conversion, semantic conversion unit and timing conversion unit.
As shown in figure 3, communication Protocol Conversion submodule includes corresponding to respectively protocol conversion of following protocol conversion relation
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.These protocol conversion submodules can be right
Two kinds of communication protocols in protocol conversion relation carry out bi-directional conversion, such as correspond to the transformational relation of RS422-CANopen, i.e.,
The CANopen as recipient's communication protocol can will be converted into as the RS422 of sender's communication protocol, also can be using as transmission
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 analogue system under water in this specific embodiment according to
Following steps are carried out, as shown in Figure 2:
Step 1:Corresponding to sender's communication protocol communication interface receive include forwarding request primary data information it is concurrent
Corresponding interface data transceiver module is given, interface data transceiver module will include the primary data information of forwarding request
It is sent to the interrupt module in central controller;
Step 2:Interrupt module contrasts priority, and the data resolution module being sent in central controller carries out data parsing, and
Therefrom parse data message and the protocol conversion relation between sender and the communication protocol type of recipient to be forwarded
Type, is then forwarded to communications protocol modular converter.Specifically:Central controller parses data message and sender to be forwarded
After protocol conversion relation and the communication protocol type of recipient between, communication protocol type according to sender and recipient it
Between protocol conversion relation, be data message generation to be forwarded one-to-one addressing coding therewith;The addressing coding is used
The geocoding of same protocol transformational relation is represented in matching.
Step 3:Corresponding association between communication protocol type of the communication Protocol Conversion submodule according to sender with recipient
View transformational relation, from sender's communication Protocol Conversion is that recipient's communication protocol and will convert into connects by data message to be forwarded
Final state data message after debit's communication protocol is sent to central controller.Wherein, protocol conversion submodule is encoded according to addressing
Carry out match address coding, so as to be the data message match protocol transform subblock after parsing;Language in protocol conversion submodule
Method converting unit, semantic conversion unit and timing conversion unit carry out syntax conversion, language to the data message after parsing respectively
Justice conversion and timing conversion.
Step 4:Final state data message 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 is forwarded.
Multi-function communication device of the invention:It is capable of achieving point-to-point(One sender is to a recipient), it is point-to-points
(One 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 protocols, recipient is RS422 communication protocols, data solution
Analysis module parses the data to be forwarded comprising CANopen-RS422 protocol conversion relations and is sent to communication Protocol Conversion module,
Be assigned to for the data message to be forwarded corresponding with CANopen-RS422 protocol conversion relations 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 protocols, recipient is respectively RS422 communication protocols
And RS485 communication protocols, data resolution module is parsed protects two kinds of data to be forwarded of protocol conversion relation:
Be separately dispensed into for the data message to be forwarded by CANopen-RS422 and CANopen-RS485, communication Protocol Conversion module
Carried out with CANopen-RS422, CANopen-RS485 protocol conversions relation respectively corresponding two protocol conversion submodules
Communication Protocol Conversion.
For multi-to-multi, such as sender has two, be respectively CANopen communication protocols, analog signal input agreement, with
Corresponding communication interface be CANopen interfaces, AI interfaces;Recipient is respectively tcp/ip communication agreement, data signal output
Agreement, corresponding communication interface is TCP/IP interfaces, DO interfaces.Interrupt module in central controller judges two transmissions
After the priority of the primary data information of side, issue data resolution module successively according to the priority and processed, it is assumed that
The priority of CANopen communication protocols is input into agreement higher than analog signal, and the protocol conversion relation for parsing is, AI-TCP/
IP, AI-DO, then data resolution module first parses the communication Protocol Conversion relation relevant with CANopen communication protocols, such as
CANopen-TCP/IP, CANopen-DO, are then sent to communications protocol modular converter, and communication Protocol Conversion module is by its point
It is fitted in corresponding TCP/IP-CANopen, CANopen-DO protocol conversion submodules and is processed.Data resolution module solution
After having analysed the protocol conversion relation relevant with CANopen communication protocols, then parse the association relevant with analog signal input agreement
View transformational relation, such as AI-TCP/IP, AI-DO are then sent to communications protocol modular converter, and communication Protocol Conversion module will
It is assigned in corresponding AI-TCP/IP, AI-DO protocol conversion submodules and is processed.
Communication Protocol Conversion module often completes a protocol conversion and 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, such as order sender according to priority from high to low be respectively tcp/ip communication agreement,
CANopen communication protocols and RS422 communication protocols, recipient are RS485 communication protocols, then interrupt module is according to priority
Order corresponding primary data information is sent to data resolution module, then data resolution module sequentially parse TCP/IP-
RS485, CANopen-RS485 and RS42-RS485 protocol conversion types, are then sequentially sent to communications protocol modulus of conversion
Block is processed.
In order to improve the efficiency of data parsing, the quantity of data resolution module can be increased, so can be achieved with to initial
The synchronous parsing of status data, substantially increases data forwarding speed.
Specific embodiment 2
As shown in figure 4, this specific embodiment is filled with the multi-functional communications for analogue system under water in specific embodiment 1
Put except that:The interrupt module includes interrupting allows deposit unit and interrupt priority level deposit unit;Described interruption is permitted
Perhaps deposit unit is used for the open or close permission to interrupt requests, and the temporary data letter for being allowed for including interrupt requests
Breath;The interrupt priority level deposit unit is used to read the data message for including interrupt requests for interrupting and allowing in deposit unit
And judge its priority, and it is ranked up and kept in from high priority to low priority.In the central controller
Interruption feedback module, Read-write Catrol module and data compressing module are additionally provided with, the Read-write Catrol module is used for according to preferential
The order of level will include the data resolution module that the primary data information of interrupt requests is sent in central controller, or will
The final state data message for including interrupt requests is sent to data compressing module, and sends expression reading to the interruption feedback module
The completion instruction for writing complete;The interruption feedback module is used to give interrupt priority level deposit unit by completion instruction feedback.
The data forwarding method of the multi-function communication device for analogue system under water in this specific embodiment and tool
Data forwarding method in body implementation method 2 except that:
In step 1:First deposit unit is allowed to open the permission to interrupt requests by interruption, then receiving interface data transmit-receive module
The primary data information for including interrupt requests for sending, and the temporary initial number for being allowed for including interrupt requests it is believed that
Breath;Read by interrupt priority level deposit unit again and interrupt the primary data information for including interrupt requests allowed in deposit unit
And judge its priority, and it is ranked up and kept in from high priority to low priority, it is then high according to priority
Low order is sequentially transmitted to Read-write Catrol module, then parses mould to the data in central controller by Read-write Catrol module forwards
Block;Read-write Catrol module often completes once to forward just complete to interrupt priority level deposit unit transmission one by interrupting feedback module
Into instruction, interrupt priority level deposit unit receives the primary data information deletion for completing that forwarding will have just been completed after instructing, and makes
Next primary data information to be forwarded becomes limit priority;
In step 3:Interrupt allow deposit unit receive and keep in communication Protocol Conversion submodule send include interrupt requests
Final state data message;Afterwards, then by interrupt priority level deposit unit reading interruption permission deposit unit interruption is included
The primary data information and final state data message of request simultaneously judge its priority, and it is entered from high priority to low priority
Row sequence is simultaneously kept in, and is then sequentially transmitted to Read-write Catrol module according to priority sequence, then by Read-write Catrol mould
Block is transmitted to data compressing module or data resolution module in central controller;Read-write Catrol module often completes once to forward
A completion instruction just is sent to interrupt priority level deposit unit by interrupting feedback module, interrupt priority level deposit unit is received
To primary data information or final state the data message deletion for completing will just to have completed after instruction forwarding, make next to be forwarded initial
Data message or final state data message become limit priority;
In step 4:Final state data message is compressed into after packet data compressing module the communication protocol being sent to recipient
Corresponding interface data transceiver module, then corresponding communication interface is sent to by interface data transceiver module is forwarded.
In order to improve the efficiency of data compression, the quantity of data compressing module can be increased, so can be achieved with to final state
Data message synchronizes compression, substantially increases data forwarding speed.
Finally illustrate, the above embodiments are merely illustrative of the technical solutions of the present invention and it is unrestricted, although with reference to compared with
Good embodiment has been described in detail to the present invention, it will be understood by those within the art that, can be to skill of the invention
Art scheme is modified or equivalent, and without deviating from the objective and scope of technical solution of the present invention, it all should cover at this
In the middle of the right of invention.
Claims (9)
1. a kind of multi-function communication device for analogue system under water, it is characterised in that:Including central controller, communication protocol
Transform subblock and the communication interface being correspondingly arranged for different type communication protocol;
The communication interface includes following kind of interface:Analog signal input, AI interfaces, the AO interfaces of output are respectively used to,
Be respectively used to data signal input, output DI interfaces, DO interfaces, TCP/TP interfaces, CANopen interfaces, RS422 interfaces and
RS485 interfaces;
The communication interface is used to receive the primary data information for including forwarding request;Each communication interface is all corresponded to and is connected with
Interface data transceiver module, the primary data that the interface data transceiver module is used to include forwarding request is transmitted to center
Controller;
It is provided with data resolution module and interrupt module in the central controller, the data resolution module is used to turn from including
Data message to be forwarded is parsed in the primary data information for sending out request, and contrasts the communication association for drawing sender and recipient
Protocol conversion relation between view type;The interrupt module is used to contrast the priority of data to be forwarded, and according to priority
Sequence transmits data message, protocol conversion relation to the communication Protocol Conversion submodule;
The communication Protocol Conversion module is used to be closed according to the protocol conversion between sender and the communication protocol type of recipient
System, by data message to be forwarded from sender's communication Protocol Conversion is for recipient's communication protocol and will convert into recipient's communication
Final state data message after agreement passes sequentially through central controller interface data transmitting-receiving mould corresponding with the communication protocol of recipient
Block and communication interface are forwarded.
2. the multi-function communication device for analogue system under water according to claim 1, it is characterised in that:The communication
Include several protocol conversion submodules in protocol conversion submodule, each protocol conversion submodule be used for for a kind of sender with
Protocol conversion relation between the communication protocol type of recipient carries out the conversion of communication protocol;Each protocol conversion submodule
Corresponding geocoding is provided with, is equipped with each protocol conversion submodule for performing grammer respectively to the data message after parsing
Conversion, the syntax conversion unit of semantic conversion and timing conversion, semantic conversion unit and timing conversion unit.
3. the multi-function communication device for analogue system under water according to claim 2, it is characterised in that:The communication
Protocol conversion submodule includes corresponding to respectively the protocol conversion submodule of following protocol conversion relation: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 for analogue system under water according to claim 1, it is characterised in that:The interruption
Module includes interrupting allows deposit unit and interrupt priority level deposit unit;Described interruption allows deposit unit for opening or closing
Close the permission to interrupt requests, and the temporary data message for being allowed for including interrupt requests;The interrupt priority level deposit
Unit is used to read to interrupt to be allowed the data message for including interrupt requests in deposit unit and judges its priority, and from height
Priority is ranked up and keeps in low priority to it.
5. the multi-function communication device for analogue system under water according to claim 4, it is characterised in that:The center
Interruption feedback module, Read-write Catrol module and data compressing module are additionally provided with controller, the Read-write Catrol module is used for
The data parsing mould that the primary data information that order according to priority will include interrupt requests is sent in central controller
Block, or the final state data message of interrupt requests will be included be sent to data compressing module, and to the interruption feedback module
Send the completion instruction for representing that read-write is completed;The interruption feedback module is used to deposit completion instruction feedback to interrupt priority level
Unit.
6. the multi-function communication device for analogue system under water according to claim 5, it is characterised in that:With some
Data resolution module and some data compressing modules.
7. a kind of as claimed in claim 1 for the data forwarding method of the multi-function communication device of analogue system under water, its
It is characterised by:Comprise the following steps:
Step 1:Corresponding to sender's communication protocol communication interface receive include forwarding request primary data information it is concurrent
Corresponding interface data transceiver module is given, interface data transceiver module will include the primary data information of forwarding request
It is sent to the interrupt module in central controller;
Step 2:Interrupt module contrasts priority, and the data resolution module being sent in central controller carries out data parsing, and
Therefrom parse data message and the protocol conversion relation between sender and the communication protocol type of recipient to be forwarded
Type, is then forwarded to communications protocol modular converter;
Step 3:Communication Protocol Conversion submodule is according to right between priority and sender and the communication protocol type of recipient
The protocol conversion relation answered, by data message to be forwarded from sender's communication Protocol Conversion is for recipient's communication protocol and will turn
Change the final state data message after recipient's communication protocol into and be sent to central controller;
Step 4:Final state data message is sent to interface data transmitting-receiving corresponding with the communication protocol of recipient by central controller
Module, then corresponding communication interface is sent to by interface data transceiver module is forwarded.
8. the data forwarding method of the multi-function communication device for analogue system under water according to claim 7, it is special
Levy and be:Several protocol conversion submodules are included in the communication Protocol Conversion submodule, each protocol conversion submodule is used for
The conversion of communication protocol is carried out for the protocol conversion relation between a kind of sender and the communication protocol type of recipient;Each
Protocol conversion submodule is designed with corresponding geocoding, is equipped with for the data after parsing in each protocol conversion submodule
Information performs syntax conversion unit, semantic conversion unit and the sequential of syntax conversion, semantic conversion and timing conversion respectively
Converting unit;
In step 2:Central controller parses the communication protocol type of data message to be forwarded and sender and recipient
Between protocol conversion relation after, according to the protocol conversion relation between sender and the communication protocol type of recipient, to treat
One-to-one addressing is encoded therewith for the data message generation of forwarding;The addressing coding represents same protocol conversion for matching
The geocoding of relation;
In step 3:Communication Protocol Conversion submodule is encoded according to addressing coding come match address, so as to be the data letter after parsing
Breath match protocol transform subblock;Syntax conversion unit, semantic conversion unit and timing conversion in protocol conversion submodule
Unit carries out syntax conversion, semantic conversion and timing conversion to the data message after parsing respectively.
9. the data forwarding method of the multi-function communication device for analogue system under water according to claim 8, it is special
Levy and be:The interrupt module includes interrupting allows deposit unit and interrupt priority level deposit unit;The interruption allows deposit
Unit is used to be turned on and off the permission to interrupt requests, and the temporary data message for being allowed for including interrupt requests;Institute
State interrupt priority level deposit unit for read interrupt permission deposit unit in the data message for including interrupt requests and sentence
Disconnected its priority, and it is ranked up and kept in from high priority to low priority;
Interruption feedback module, Read-write Catrol module and data compressing module, the read-write are additionally provided with the central controller
Control module is used for the number that is sent in controller of primary data information that will include interrupt requests according to the order of priority
According to parsing module, or the final state data message of interrupt requests will be included it is sent to data compressing module;The Read-write Catrol
Module is used to be sent to interruption feedback module the completion instruction for representing that read-write is completed;The interruption feedback module is used to complete to refer to
Order feeds back to interrupt priority level deposit unit;
In step 1:First deposit unit is allowed to open the permission to interrupt requests by interruption, then receiving interface data transmit-receive module
The primary data information for including interrupt requests for sending, and the temporary initial number for being allowed for including interrupt requests it is believed that
Breath;Read by interrupt priority level deposit unit again and interrupt the primary data information for including interrupt requests allowed in deposit unit
And judge its priority, and it is ranked up and kept in from high priority to low priority, it is then high according to priority
Low order is sequentially transmitted to Read-write Catrol module, then parses mould to the data in central controller by Read-write Catrol module forwards
Block;Read-write Catrol module often completes once to forward just complete to interrupt priority level deposit unit transmission one by interrupting feedback module
Into instruction, interrupt priority level deposit unit receives the primary data information deletion for completing that forwarding will have just been completed after instructing, and makes
Next primary data information to be forwarded becomes limit priority;
In step 3:Interrupt allow deposit unit receive and keep in communication Protocol Conversion submodule send include interrupt requests
Final state data message;Afterwards, then by interrupt priority level deposit unit reading interruption permission deposit unit interruption is included
The primary data information and final state data message of request simultaneously judge its priority, and it is entered from high priority to low priority
Row sequence is simultaneously kept in, and is then sequentially transmitted to Read-write Catrol module according to priority sequence, then by Read-write Catrol mould
Block is transmitted to data compressing module or data resolution module in central controller;Read-write Catrol module often completes once to forward
A completion instruction just is sent to interrupt priority level deposit unit by interrupting feedback module, interrupt priority level deposit unit is received
To primary data information or final state the data message deletion for completing will just to have completed after instruction forwarding, make next to be forwarded initial
Data message or final state data message become limit priority;
In step 4:Final state data message is compressed into after packet data compressing module the communication protocol being sent to recipient
Corresponding interface data transceiver module, then corresponding communication interface is sent to by interface data transceiver module 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 true CN106790618A (en) | 2017-05-31 |
CN106790618B 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) |
Cited By (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 |
CN109547498A (en) * | 2018-11-26 | 2019-03-29 | 中国人民解放军海军大连舰艇学院 | For the communication interconnection means and method 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 |
CN113611013A (en) * | 2021-06-17 | 2021-11-05 | 珠海汇金科技股份有限公司 | 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 |
Cited By (5)
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 |
CN109547498A (en) * | 2018-11-26 | 2019-03-29 | 中国人民解放军海军大连舰艇学院 | For the communication interconnection means and method in Heterogeneous simulation system |
CN109547498B (en) * | 2018-11-26 | 2023-06-13 | 中国人民解放军海军大连舰艇学院 | Communication interconnection device and method for heterogeneous simulation system |
CN110245101A (en) * | 2019-06-13 | 2019-09-17 | 吉林大学 | A kind of more communication interface datas exchange board and its realize system |
CN113611013A (en) * | 2021-06-17 | 2021-11-05 | 珠海汇金科技股份有限公司 | Data transfer method, system and device |
Also Published As
Publication number | Publication date |
---|---|
CN106790618B (en) | 2019-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106790618A (en) | For the multi-function communication device and its data forwarding method of analogue system under water | |
CN100588204C (en) | A kind of real-time viewing platform of communication network simulation tool and its implementation | |
CN101529401A (en) | Method and apparatus for distributing USB hub functions across a network | |
CN103023708B (en) | The method of testing of communication protocol interface and system | |
CN112988495B (en) | Multifunctional test method, device and system for SOC chip multiplex pin | |
CN202453710U (en) | Multi-axis linkage numerical control system | |
US20100211389A1 (en) | System of communication employing both voice and text | |
CN109587029A (en) | FC-AE-1553 bus and MIL-STD-1553B bus non-transparent bridge welding system | |
CN102868743A (en) | Remote control system and method for frequency converter | |
JP2004351533A (en) | Robot system | |
CN106571991A (en) | Method and data for transmitting data | |
CN105353671B (en) | The pressure of nuclear power plant instrument control system variable and release device and method | |
KR101099013B1 (en) | Protocol conversion apparatus for network monitoring | |
CN112379660B (en) | UART for automobile automatic driving domain controller and debugging system and method | |
CN105984406A (en) | Method and device for achieving vehicle-mounted terminal data processing and vehicle-mounted terminal parameter configuration | |
CN105844329A (en) | Method and system for processing thinking data for intelligent robot | |
CN102546582A (en) | Method and system of improving transmission speed of embedded data transmission system | |
CN104144134B (en) | A kind of array dispatching method and device | |
CN101827290A (en) | PCM time slot interchange method capable of directly carrying out voice interchange with voice codec | |
Danthine et al. | An axiomatic description of the transport protocol of Cyclades | |
CN202503578U (en) | Embedded voice exchange system | |
CN110535830B (en) | Communication method for rocket engine test system | |
CN108062032A (en) | A kind of control of electrical distribution formula and analogue system based on communication | |
CN203554485U (en) | CAN bus test equipment | |
CN110177104A (en) | A kind of serial port protocol for Industry Control turns the method and relevant device of usb protocol |
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 |