Device and method for data exchange among multiple systems
Technical Field
The invention relates to the technical field of information communication engineering, in particular to a device and a method for data exchange among multiple systems.
Background
With the emergence of SOA (service oriented technology architecture) in recent years, more and more application systems are beginning to be designed and deployed in a distributed manner. The system is changed from the original single technical architecture into a service-oriented multi-system architecture. In the field of communication, measurement and control, and information acquisition and processing, a hardware structure combining digital signal processing and a programmable gate array is often adopted for data access and exchange.
The prior Chinese patent (publication number: CN205263806U) relates to a data exchange device among multiple systems, which comprises a programmable gate array and a communication bus, wherein the programmable gate array comprises a first communication decoder, a second communication decoder, a control signal controller and an address data decoder, the first communication decoder, the second communication decoder and the control signal controller are all provided with memories, the communication bus comprises an address bus, a data bus and a control bus, the address bus, the data bus and the control bus are connected with the address data decoder, the first communication decoder, the second communication decoder and the control signal controller are all connected with the address data decoder, the first communication decoder is connected with a first communication signal source, the second communication decoder is connected with a second communication signal source, the control signal converter is connected with the control signal source, and a structure of data processing exchange between digital signal processing and the programmable gate array is adopted, data exchange between the systems is realized.
When the existing data exchange device between multiple systems is used, only one exchange mode can be adopted for data exchange, the process is complicated, and the data exchange efficiency is reduced.
Based on this, the present invention provides an apparatus and method for data exchange between multiple systems to solve the above problems.
Disclosure of Invention
The present invention is directed to a device and method for data exchange between multiple systems, so as to solve the problems in the background art.
In order to achieve the purpose, the invention provides the following technical scheme: a device for data exchange among multiple systems comprises a system A, a communication bus and a system B, wherein the system A is connected with the system B through the communication bus, the system A consists of a request module, a first receiving module and a storage module, the system B consists of a feedback module and a processor, the request module is in communication connection with the system B and is provided with a setting module, and the storage module is connected with the processor and is provided with a sharing module;
the feedback module is composed of a first receiving unit and a return unit, the setting module comprises a reading unit, a judging unit, a selecting unit and a setting unit, the reading unit, the judging unit, the selecting unit and the setting unit are sequentially in communication connection, the selecting unit is connected with the feedback module or the processor, the reading unit is connected with the request module, the sharing module is composed of a sending unit, a storage unit and a second receiving unit, the reading unit is used for reading information of data sent by the request module, the setting unit is used for setting the size of the data needing to be met, the judging unit is used for judging the size of the data, and the selecting unit is used for selecting to transmit the request information sent by the request module to the feedback module or the processor.
Preferably, the processor comprises a timing unit, an acquisition unit, a processing unit and a reply unit, and the first receiving module is connected with the return unit and the reply unit.
Preferably, the processor is a programmable gate array and the processing unit comprises a database.
Preferably, the system a further includes an upload module, the upload module is connected to the sharing module, and the upload module is configured to transmit data to be processed to the sharing module.
Preferably, a message middleware is arranged between the system A and the system B.
Preferably, the request module is configured to request data processing, the first receiving module is configured to receive return information of the feedback module and the processor, and the storage module is configured to download a module that has been processed in the sharing module.
Preferably, the feedback module is used for processing the request sent by the system a and making corresponding operation and feedback, and the processor is used for processing the data to be processed.
An operating method for data exchange between multiple systems, comprising the steps of:
s1: uploading data, wherein the data to be processed is uploaded to the sharing module through the uploading module and stored in the storage unit;
s2: requesting feedback, wherein a request module sends a request for processing and information of data to be processed to a setting module, the information comprises the name and the size of the data, the setting module judges whether to perform feedback work according to the information of the data, if so, a feedback module is selected, a signal for responding the request is fed back to a system A, the time for processing the data is reserved, then the processing is performed, and if not, a processor is directly selected, the data is extracted for direct processing, and a signal for completing the processing is fed back to the system A;
s3: and storing the data, and downloading the processed data from the sharing module after the system A receives the processed signal to complete the data exchange among the systems.
Compared with the prior art, the invention has the beneficial effects that: the system B can conveniently judge whether to request feedback through the set setting module, small data needing to be processed are directly processed, the step of requesting feedback is omitted, reserved time is processed for large data, the feedback module informs the system A that the request is received, subsequent data processing is facilitated, the data exchange efficiency is improved, an exchange mode between two systems is realized in one device, and the use performance of the device is improved.
Of course, it is not necessary for any product in which the invention is practiced to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic view of the overall structure of the present invention;
FIG. 2 is a block diagram of a configuration module according to the present invention;
FIG. 3 is a block diagram of a shared module according to the present invention;
FIG. 4 is a block diagram of a processor according to the present invention;
FIG. 5 is a schematic flow chart of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1 to 5, the present invention provides a device and method for data exchange between multiple systems, which comprises: a device for data exchange among multiple systems comprises a system A, a communication bus and a system B, wherein the system A is connected with the system B through the communication bus, the system A consists of a request module, a first receiving module and a storage module, the system B consists of a feedback module and a processor, the request module is in communication connection with the system B and is provided with a setting module, and the storage module is connected with the processor and is provided with a sharing module;
the feedback module is composed of a first receiving unit and a return unit, the setting module comprises a reading unit, a judging unit, a selecting unit and a setting unit, the reading unit, the judging unit, the selecting unit and the setting unit are sequentially in communication connection, the selecting unit is connected with the feedback module or the processor, the reading unit is connected with the request module, the sharing module is composed of a sending unit, a storage unit and a second receiving unit, the reading unit is used for reading information of data sent by the request module, the setting unit is used for setting the size of the data needing to be met, the judging unit is used for judging the size of the data, and the selecting unit is used for selecting to transmit the request information sent by the request module to the feedback module or the processor.
The processor consists of a timing unit, an acquisition unit, a processing unit and a reply unit, and the first receiving module is connected with the return unit and the reply unit.
The processor adopts a programmable gate array, and the processing unit comprises a database.
The system A also comprises an uploading module, the uploading module is connected with the sharing module, and the uploading module is used for transmitting the data to be processed to the sharing module.
Message middleware is arranged between the system A and the system B.
The request module is used for requesting data processing, the first receiving module is used for receiving the return information of the feedback module and the processor, and the storage module is used for downloading the processed modules in the sharing module.
The feedback module is used for processing the request sent by the system A and making corresponding operation and feedback, and the processor is used for processing the data needing to be processed.
A method for data exchange between multiple systems, comprising the steps of:
s1: uploading data, wherein the data to be processed is uploaded to the sharing module through the uploading module and stored in the storage unit;
s2: requesting feedback, wherein a request module sends a request for processing and information of data to be processed to a setting module, the information comprises the name and the size of the data, the setting module judges whether to perform feedback work according to the information of the data, if so, a feedback module is selected, a signal for responding the request is fed back to a system A, the time for processing the data is reserved, then the processing is performed, and if not, a processor is directly selected, the data is extracted for direct processing, and a signal for completing the processing is fed back to the system A;
s3: and storing the data, and downloading the processed data from the sharing module after the system A receives the processed signal to complete the data exchange among the systems.
One specific application of this embodiment is: firstly, data to be processed is uploaded to a sharing module through an uploading module and stored in a storage unit, a request module in a system A sends name information of the data to be processed to a setting module and carries out request processing, a reading unit in the setting module reads corresponding information and reads corresponding data from the storage unit of the sharing module, a judging unit judges whether the size of the data meets a set value or not, if so, a feedback module in a system B is connected through a selecting unit, a first receiving unit receives the information and feeds back processing time to the first receiving module through a returning unit, then a processor in the system B extracts corresponding data from the storage unit through an acquiring unit according to the information of the data sent by the system A and carries out processing according to the time set by a timing unit, and after the processing is finished, the processing condition is fed back to the first receiving module through the replying unit, the system A downloads the processed data from the sharing module through the storage module after receiving the processed signal, if the processed data does not meet the set value, the selecting unit directly selects the processor, the data in the sharing module is processed through the processor, the processing condition is fed back to the first receiving module through the replying unit, the system A downloads the processed data from the sharing module through the storage module after receiving the processed signal, so that the data exchange among the systems is completed, the set module is arranged, the system B can conveniently judge whether to request the feedback, the smaller data needing to be processed is directly processed, the step of requesting the feedback is omitted, the reservation time is processed for the larger data, and the feedback module informs the system A that the request is received, the data exchange efficiency is improved, and the subsequent data processing is facilitated.
In the description herein, references to the description of "one embodiment," "an example," "a specific example" or the like are intended to mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The preferred embodiments of the invention disclosed above are intended to be illustrative only. The preferred embodiments are not intended to be exhaustive or to limit the invention to the precise embodiments disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best utilize the invention. The invention is limited only by the claims and their full scope and equivalents.