CN115454443A - Multi-system data interaction method and device and electronic equipment - Google Patents

Multi-system data interaction method and device and electronic equipment Download PDF

Info

Publication number
CN115454443A
CN115454443A CN202211134320.7A CN202211134320A CN115454443A CN 115454443 A CN115454443 A CN 115454443A CN 202211134320 A CN202211134320 A CN 202211134320A CN 115454443 A CN115454443 A CN 115454443A
Authority
CN
China
Prior art keywords
target
character string
information
target character
systems
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.)
Pending
Application number
CN202211134320.7A
Other languages
Chinese (zh)
Inventor
唐洪祥
王柏生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Apollo Intelligent Technology Beijing Co Ltd
Original Assignee
Apollo Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Apollo Intelligent Technology Beijing Co Ltd filed Critical Apollo Intelligent Technology Beijing Co Ltd
Priority to CN202211134320.7A priority Critical patent/CN115454443A/en
Publication of CN115454443A publication Critical patent/CN115454443A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • G06F9/441Multiboot arrangements, i.e. selecting an operating system to be loaded

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The utility model provides a multi-system data interaction method, a device and an electronic device, which relate to the field of data processing such as data conversion and are suitable for a first system, wherein the method comprises the steps of obtaining the description information of a multi-dimensional array and generating a source code carrying the description information of the multi-dimensional array, wherein the description information of the multi-dimensional array comprises the data type information of a plurality of systems; acquiring a target conversion relation between data types used by the first system and the second system respectively based on the source code; acquiring target information to be sent of a first system, and generating a target character string corresponding to the target information according to a target conversion relation; and sending the target character string to the second system. According to the data interaction method and device, data interaction among the systems using different data types is achieved, the data interaction efficiency among the systems using different data types is improved, and the data interaction method among the systems using different data types is optimized.

Description

Multi-system data interaction method and device and electronic equipment
Technical Field
The disclosure relates to the field of information interaction, in particular to the field of data processing such as data conversion and the like, and is suitable for a multi-system interaction scene.
Background
With the development of technologies, information interaction between systems is increasingly important, and in implementation, there may be differences between data types used by the systems, and in this scenario, there may be a situation where normal information interaction cannot be performed between multiple systems due to differences in data types used by the systems.
In the related art, the information of interaction among a plurality of systems using different data types can be converted through a third-party terminal, and the efficiency is low.
Disclosure of Invention
The disclosure provides a multi-system data interaction method and device and electronic equipment.
According to a first aspect of the present disclosure, a multi-system data interaction method is provided, which is applicable to a first system, and the method includes: acquiring description information of a multidimensional array, and generating a source code carrying the description information of the multidimensional array, wherein the description information of the multidimensional array comprises data type information of a plurality of systems; acquiring a target conversion relation between data types used by the first system and the second system respectively based on the source code; acquiring target information to be sent by the first system, and generating a target character string corresponding to the target information according to the target conversion relation; and sending the target character string to the second system.
According to a second aspect of the present disclosure, a multi-system data interaction method is further provided, which is applicable to a second system, and the method includes: receiving a target character string sent by a first system, wherein the target character string is generated based on a first target conversion relation between data types used by the first system and a second system respectively; and analyzing the target character string to acquire target information sent by the first system from the target character string.
According to a third aspect of the present disclosure, a method for data interaction of multiple systems is further provided, which is applicable to a monitoring end, and the method includes: monitoring a target character string sent by a first system to a second system, wherein the target character string is generated based on a first target conversion relation between data types used by the first system and the second system respectively; analyzing the target character string and determining the analysis state of the target character string; monitoring whether the target character string is normal or not according to the analysis state; and returning the monitoring result of the target character string to the first system.
According to a fourth aspect of the present disclosure, a multi-system data interaction apparatus is provided, which is suitable for a second system, and includes: the generating module is used for acquiring the description information of the multidimensional array and generating a source code carrying the description information of the multidimensional array, wherein the description information of the multidimensional array comprises data type information of a plurality of systems; the acquisition module is used for acquiring a target conversion relation between data types used by the first system and the second system respectively based on the source code; the conversion module is used for acquiring target information to be sent by the first system and generating a target character string corresponding to the target information according to the target conversion relation; and the sending module is used for sending the target character string to the second system.
According to a fifth aspect of the present disclosure, a multi-system data interaction device is further provided, which is applicable to a second system, and the device includes: the system comprises a receiving module, a sending module and a sending module, wherein the receiving module is used for receiving a target character string sent by a first system, and the target character string is generated based on a first target conversion relation between data types used by the first system and a second system respectively; and the first analysis module is used for analyzing the target character string so as to obtain the target information sent by the first system from the target character string.
According to the sixth aspect of the present disclosure, a multi-system data interaction device is further provided, which is suitable for a monitoring end, and the device includes: the monitoring module is used for monitoring a target character string sent by a first system to a second system, wherein the target character string is generated based on a first target conversion relation between data types used by the first system and the second system respectively; the second analysis module is used for analyzing the target character string and determining the analysis state of the target character string; the judging module is used for monitoring whether the target character string is normal or not according to the analysis state; and the returning module is used for returning the monitoring result of the target character string to the first system.
According to a seventh aspect of the present disclosure, there is provided an electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method of multi-system data interaction of any one of the first, second and third aspects.
According to an eighth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, in which computer instructions are stored, wherein the computer instructions are configured to cause the computer to execute the multi-system data interaction method according to any one of the first, second and third aspects.
According to a ninth aspect of the present disclosure, a computer program product is presented, comprising a computer program which, when executed by a processor, implements the method for multi-system data interaction of any of the above first, second and third aspects.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic flow chart of a multi-system data interaction method according to an embodiment of the present disclosure;
FIG. 2 is a flow chart illustrating a method for multi-system data interaction according to another embodiment of the disclosure;
FIG. 3 is a flow chart illustrating a method for multi-system data interaction according to another embodiment of the disclosure;
FIG. 4 is a flow chart of a method of data interaction for multiple systems according to another embodiment of the disclosure;
FIG. 5 is a flow chart illustrating a method for multi-system data interaction according to another embodiment of the disclosure;
FIG. 6 is a flow chart of a method of data interaction for multiple systems according to another embodiment of the disclosure;
FIG. 7 is a flow chart illustrating a method of data interaction for multiple systems according to another embodiment of the present disclosure;
FIG. 8 is a schematic structural diagram of a multi-system data interaction device according to an embodiment of the present disclosure;
FIG. 9 is a schematic structural diagram of a multi-system data interaction device according to another embodiment of the disclosure;
FIG. 10 is a schematic structural diagram of a multi-system data interaction device according to another embodiment of the disclosure;
fig. 11 is a schematic block diagram of an electronic device of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Data processing (data processing) is a basic link of system engineering and automatic control. Data processing is throughout various fields of social production and social life. Data is a form of expression for facts, concepts, or instructions that may be processed by human or automated means. Data becomes information after being interpreted and given a certain meaning. The data processing is the collection, storage, retrieval, processing, transformation and transmission of data. The method comprises the steps of data acquisition, data conversion, data grouping, data organization, data calculation, data storage, data retrieval and data sequencing.
Information interaction refers to a process of sending and receiving information, and the information interaction process generally consists of 6 parts: information sources, information, channels or networks over which information is communicated, recipients, feedback, noise, etc., feedback being a means of verifying the quality of the communication of information. The information interaction refers to the transmission and communication activities of information, data and technical knowledge in all aspects of nature and society, and from the perspective of information theory, the anlogue collects various information data in a certain region, and is a tangible character information carrier.
Fig. 1 is a schematic flowchart of a multi-system data interaction method according to an embodiment of the present disclosure, where the method is applied to a first system, and as shown in fig. 1, the method includes:
s101, obtaining the description information of the multidimensional array, and generating a source code carrying the description information of the multidimensional array, wherein the description information of the multidimensional array comprises data type information of a plurality of systems.
In the implementation, when data interaction is performed between systems using different data types, there is a possibility that the received information cannot be analyzed due to different data types used by the systems, so that data interaction between multiple systems using different data types cannot be implemented.
In the embodiment of the present disclosure, each system that needs to perform data interaction may perform data processing on the sent information by acquiring the data type used by other systems, which are not the own system, in the multiple systems and comparing the data type with the data type used by the own system, to acquire the association relationship between the data type used by the own system and the data type used by other systems, so that the system that receives the information can perform normal analysis on the received information, and thus, information interaction between the systems that use different data types in the multiple systems is achieved.
Optionally, the data type information of each of the multiple systems may be acquired, so as to obtain a set of all the data type information used by the multiple systems, and acquire a multidimensional array corresponding to the set of all the data type information.
The multidimensional array carries all data type information used in the multiple systems, so that each system in the multiple systems can acquire the data type information of other systems except the system based on the multidimensional array.
In some implementations, the code compiling may be performed on the multidimensional data to obtain code information corresponding to the multidimensional array, where the code generated based on the multidimensional array may be determined as a source code of the multidimensional array carrying data type information of multiple systems.
Optionally, description information of the multidimensional array may be extracted from metadata of the multidimensional array, where the description information may include specific information of data types used by each of the systems in the multidimensional array.
The description information may include detailed information related to data types, such as a data dimension of a multidimensional array of data type information of each of the systems, a name of the data type, whether the multidimensional array is a fixed-length array, whether the multidimensional array is a variable-length array, and the like, and is not limited herein.
Furthermore, the source code carrying the description information of the multidimensional array is generated by compiling the description information.
As shown in fig. 2, the multidimensional array may be compiled by an IDL compiler, so as to generate a source code carrying description information of the multidimensional array, wherein the description information of the multidimensional array may be extracted by a front end of the IDL compiler, and the extracted description information of the multidimensional array may be compiled by a back end of the IDL compiler.
Optionally, the description information of the multidimensional array includes data type information used by each of the multiple systems, and in this scenario, the multidimensional array is compiled based on the IDL compiler shown in fig. 2, so as to obtain a source code of the multidimensional array that carries the data type information of the multiple systems.
S102, acquiring a target conversion relation between data types used by the first system and the second system respectively based on the source code.
In the embodiment of the present disclosure, after the multidimensional array is generated based on all the data type information used by the multiple systems, the source code carrying all the data type information used by the multiple systems may be generated according to the description information of the multidimensional array.
Optionally, the source code may be sent to each of a plurality of systems, and each system acquires data type information of other systems except for itself based on the received source code, thereby implementing data interaction between systems using different data types.
The system that transmits information during data interaction between the systems may be identified as a first system of the multiple systems, and the system that receives information transmitted by the first system may be identified as a second system of the multiple systems.
In some implementations, the first system may obtain the data type information of the second system from the received source code, thereby obtaining the association relationship between the data type used by the first system and the data type used by the second system.
For example, the data type used by the first system is set to be a floating point number type, and the data type used by the second system is set to be a character type.
Further, according to the association relationship, a conversion relationship between the data type used by the first system and the data type used by the second system is obtained, and the conversion relationship is determined as a target conversion relationship between the data type used by the first system and the data type used by the second system.
S103, acquiring target information to be sent by the first system, and generating a target character string corresponding to the target information according to the target conversion relation.
In the embodiment of the disclosure, the first system may generate information that needs to be interacted with the second system based on the data interaction requirement of the first system, and determine the information as target information to be sent by the first system.
Optionally, after the target information to be sent by the first system is obtained, data processing is performed on the target information to be sent by the first system according to the obtained target conversion relationship between the data type used by the first system and the data type used by the second system.
The target information expressed based on the data type used by the first system can be converted into the information expressed based on the data used by the second system according to the target conversion relation, so that the second system receiving the target information can perform normal analysis.
In some implementations, the target information may be converted into a data type used by the second system, a character string that can be analyzed by the second system is generated, and the character string is determined as a target character string obtained by the first system processing the target information according to the target conversion relationship.
And S104, sending the target character string to a second system.
In the embodiment of the present disclosure, after the target character string generates the target information to be sent for the first system, the target information is obtained by performing data type conversion on the target information based on the target conversion relationship between the data type used by the first system and the data type used by the second system.
In some implementations, a communication link may exist between the first system and the second system, and after the first system generates the target string, the target string may be transmitted to the second system based on the communication link.
In other implementations, the first system and the second system may implement transmission and reception of information based on a communication protocol in the related art, and in this scenario, the first system may acquire a communication address of the second system and transmit the target character string to the second system based on the communication address.
The multi-system data interaction method comprises the steps of obtaining a multi-dimensional array carrying data type information of a plurality of systems, generating source codes of the data type information of the plurality of systems according to description information of the multi-dimensional data, obtaining a target conversion relation between the data types used by a first system and a second system respectively according to the source codes, generating corresponding target character strings of target information to be sent of the first system according to the target conversion relation, and transmitting the target character strings to the second system. According to the method, the first system obtains a target conversion relation between data types used by the first system and the second system respectively according to a received source code, the first system can generate target character strings which can be analyzed by the second system from target information to be sent based on the target conversion relation, data interaction between a plurality of systems using different data types is achieved, the target conversion relation is obtained before data interaction between the systems is carried out, the data interaction efficiency between the systems using different data types is improved, conversion processing is carried out on the target information according to the target conversion relation, the system receiving the information can directly analyze the received target character strings without other processing, the processing steps of the system receiving the information on the received target character strings are simplified, and a data interaction method between the systems using different data types is optimized.
In the foregoing embodiment, regarding the obtaining of the target conversion relationship between the first system and the second system, as can be further understood with reference to fig. 3, fig. 3 is a schematic flowchart of a multi-system data interaction method according to another embodiment of the present disclosure, where the method is applied to the first system, and as shown in fig. 3, the method includes:
s301, obtaining the running result of the source code.
In the embodiment of the present disclosure, the source code may be generated based on the description information of the multidimensional array carrying the data type information of the multiple systems, and in this scenario, the source code carries the data type information used by each of the multiple systems.
Optionally, the first system may implement parsing of the source code based on the running of the source code, so as to obtain data type information used by each system of the multiple systems carried in the source code.
In some implementations, the source code may be encapsulated to generate a binary file carrying the source code, and the binary file may be transmitted to each of the plurality of systems.
In this scenario, the first system may run the received binary file with the source code in a running environment provided for the binary file in the first system, and obtain a running result of the source code in the binary file according to the running result of the binary file.
S302, according to the operation result, a conversion relation set between the data types used by the first system and the rest systems, which are not the first system, in the plurality of systems is obtained.
In the embodiment of the present disclosure, the first system may acquire all data type information used by the plurality of systems carried in the source code based on the operation result of the source code.
As shown in fig. 2, the plurality of systems shown in fig. 2 include system 1, system 2, \8230 \ 8230 @, and system N, and system 1 of the plurality of systems shown in fig. 2 is set as a first system, and system 2 is set as a second system.
After the system 1 obtains the operation result of the source code, the data type information of the rest systems, including the systems 2, \8230, 8230, and the system N, which are not the system 1 and are included in the systems, can be obtained from the operation result.
In this scenario, the first system may obtain, based on the execution result of the source code, a set of conversion relationships between the first system and data types respectively used by remaining systems, which are not the first system, of the plurality of systems.
Optionally, a first data type characteristic of a data type used by each of remaining ones of the plurality of systems other than the first system may be identified from the results of the running.
In the embodiment of the present disclosure, after the first system acquires the data type information of each of the remaining systems, which are not the first system, in the plurality of systems according to the operation result of the source code, feature extraction may be performed based on the acquired data type information of each of the remaining systems, which are not the first system.
The data type information of the remaining systems of the non-first system is subjected to algorithm processing based on a feature extraction algorithm in the related art, and the data type features carried in the data type information of the remaining systems of the non-first system are obtained based on the result obtained by the algorithm processing and are identified as the first data type features.
Optionally, a set of associated features between the second data type features of the data type used by the first system and the first data type features of the data types respectively used by the remaining systems is obtained.
In this embodiment of the present disclosure, in order to implement data interaction between systems using different data types, the first system may obtain, based on the obtained first data type feature, an association feature between a data type used by the first system itself and a data type used by each of the remaining systems, which are not the first system, in the multiple systems.
The first system can perform feature extraction on the data types used by the first system, and identify the extracted data type features as second data type features. And performing algorithm processing on the second data type characteristic and the first data type characteristic based on an acquisition algorithm of the association characteristics among the characteristics in the related technology, and acquiring the association characteristics between the first data type characteristic and the second data type characteristic according to the result of the algorithm processing.
It should be noted that the number of systems included in the remaining systems other than the first system among the plurality of systems may be at least one, and when the number of systems included in the remaining systems other than the first system is plural, the number of the first data type feature may be plural.
In this scenario, the association features between each first data type feature and each second data type feature may be obtained, and an association feature set between the second data type feature of the data type used by the first system and the first data type features of the data types used by the remaining systems respectively may be generated according to all the obtained association features.
Optionally, a set of conversion relationships between the first system and data types respectively used by remaining systems, which are not the first system, of the plurality of systems is obtained according to the associated feature set.
In the embodiment of the present disclosure, the systems corresponding to each associated feature in the associated feature set, which are not the remaining systems in the first system, may be acquired one by one, each associated feature is subjected to algorithm processing according to an acquisition algorithm of a conversion relationship in the related art, and a conversion relationship between the first system and each associated feature in the data types used by the respective systems corresponding to the remaining systems in the non-first system is acquired according to a result of the algorithm processing.
Further, according to all the obtained conversion relations, a conversion relation set between the first system and the data types used by the rest systems, which are not the first system, in the plurality of systems is obtained.
S303, acquiring the target conversion relation from the conversion relation set according to the first system and the second system.
Optionally, the identification information of the two systems associated with each conversion relationship in the conversion relationship set may be obtained according to the identification information of the second system, and the identification information may be compared with the identification information of the two systems associated with each conversion relationship in the conversion relationship set.
And identifying the conversion relation of the data types used by the first system and the second system from the conversion relation set according to the comparison result, and identifying the conversion relation as a target association relation.
S304, acquiring target information to be sent of the first system, and generating a target character string corresponding to the target information according to the target conversion relation.
In the embodiment of the disclosure, the target conversion relationship between the data types used by the first system and the second system respectively is obtained, and the data interacted between the first system and the second system can be normally analyzed and read by the second system according to the target conversion relationship.
Optionally, target information to be sent by the first system may be acquired, and a candidate character string corresponding to the target information may be generated.
In the implementation, the target information to be sent by the first system may not be the final sent information of the first system, and in this scenario, the target information to be sent may be processed according to the data type used by the information sent by the first system.
The target information may be converted into a corresponding character string based on the data type used by the first system and identified as a candidate character string to be sent to the second system.
Optionally, the candidate character strings are converted into corresponding target character strings under the data type used by the second system according to the target conversion relationship.
The data type corresponding to the candidate character string obtained by processing the target information by the first system is the data type used by the first system, and the candidate character string may not be analyzed and read by the second system.
In this scenario, the data type of the candidate character string may be converted according to a target conversion relationship between data types used by the first system and the second system, the candidate character string may be converted into a character string corresponding to the data type used by the second system, and the character string may be identified as a target character string to be sent by the first system to the second system.
According to the multi-system data interaction method, after the operation result of the source code is obtained, the conversion relation set between the data types used by the first system and the rest systems, which are not the first system, in the plurality of systems is obtained according to the operation result, and then the target conversion relation between the data types used by the first system and the second system is obtained. And further, acquiring a target character string corresponding to target information to be sent of the first system according to the target conversion relation. According to the method, the first system learns the target conversion relationship between the data types used by the first system and the second system respectively according to the received source codes, and based on the target conversion relationship, the first system can generate the target information to be sent into the target character string which can be analyzed by the second system, so that data interaction between a plurality of systems using different data types is realized, through pre-learning of the target conversion relationship, the data interaction efficiency between the systems using different data types is improved, and the data interaction method between the systems using different data types is optimized.
In an embodiment of the present disclosure, a first system may implement data interaction with a second system, where, regarding a process in which the second system receives and parses a target character string sent by the first system, it can be understood with reference to fig. 4, fig. 4 is a schematic flow diagram of a multi-system data interaction method according to another embodiment of the present disclosure, where the method is applicable to the second system, and as shown in fig. 4, the method includes:
s401, receiving a target character string sent by a first system, wherein the target character string is generated based on a first target conversion relation between data types used by the first system and a second system respectively.
In the embodiment of the disclosure, the first system may obtain a conversion relationship between data types used by the second system, and identify the conversion relationship as the first target conversion relationship.
And the first system performs data type conversion on the target information which needs to be sent to the second system based on the first target conversion relation, so as to obtain a target character string which can be received and analyzed and read by the second system.
Optionally, the second system may receive the target character string sent by the first system based on a preset data receiving port.
As shown in fig. 2, if the system 1 is set as a first system and the system 2 is set as a second system, the system 2 can receive the target character string sent by the system 1 through a preset data receiving port thereof.
S402, analyzing the target character string to obtain the target information sent by the first system from the target character string.
In the embodiment of the present disclosure, the target character string is a character string that is generated by the first system based on the first target conversion relationship and is resolvable by the second system.
In this scenario, the second system may perform parsing processing on the received target character string based on its own character string parsing algorithm, and obtain the target information sent by the first system from the target character string according to a processing result.
As shown in fig. 2, the system 1 is still set as the first system, and the system 2 is set as the second system, where after receiving the target character string sent by the system 1, the system 2 may process the target character string according to an analysis algorithm of the character string configured by the system 2, so as to analyze and read the target character string, and obtain the target information sent by the system 1.
According to the multi-system data interaction method, after the target character string sent by the first system is received, the target character string is analyzed, and therefore target information sent by the first system is obtained. According to the data interaction method and device, the second system can directly analyze the received target character string and read target information carried in the target character string without other processing, the processing steps of the data receiving system on the received data are simplified in the data interaction process among the systems using different data types, the data interaction efficiency among the systems using different data types is improved, and the data interaction method among the systems using different data types is optimized.
In the foregoing embodiment, after receiving the target character string sent by the first system, the second system may generate corresponding response information, and return the response information to the first system, which can be further understood with reference to fig. 5, where fig. 5 is a multi-system data interaction method according to another embodiment of the present disclosure, and as shown in fig. 5, the method includes:
s501, acquiring a second target conversion relation between the data types respectively used by the second system and the first system.
In order to implement data interaction between the first system and the second system, the first system needs to acquire a first target conversion relationship between data types used by the first system and the second system, so that the first system can send target information to be sent to the second system based on the first target conversion relationship.
Correspondingly, in a scene that the second system needs to respond to the received target information, the second system needs to acquire a conversion relation between the data types used by the second system and the first system, so that the response information generated by the second system based on the target information can be received, analyzed and read by the first system.
Wherein, the conversion relation between the data types respectively used by the second system and the first system can be determined as the second target conversion relation.
Optionally, the second system may obtain a source code carrying data type information of multiple systems, and obtain, based on the received source code, a second target conversion relationship between data types used by the second system and the first system, respectively.
The receiving of the source code carrying the data type information of the multiple systems can be realized based on a data receiving port which is configured by the second system and can receive the source code.
Optionally, the source code is executed to obtain a second target translation relationship between the data types used by the second system and the first system, respectively.
In some implementations, the source code may be received by the second system based on a form of a binary file, and in this scenario, the second system may provide an operating environment for the binary file, and obtain an operating result of the source code carrying data type information of multiple systems based on the operating result of the binary file.
Optionally, the second system may obtain, according to the running result of the source code, a set of conversion relationships between the second system and data types used by each of the remaining systems, which are not the second system, of the multiple systems, and obtain, from the obtained set of conversion relationships, a second target conversion relationship between the second system and a data type used by each of the first system.
S502, response information of the target information obtained by analyzing the target character string is obtained, and a response character string corresponding to the response information is generated according to the second target conversion relation.
In the embodiment of the present disclosure, the second system may analyze the target character string based on an analysis algorithm in the configured related art, so as to obtain target information that is carried in the target character string and is sent to the second system by the first system.
In this scenario, the second system may respond based on the target information obtained by the analysis, and further generate corresponding response information.
Optionally, according to a second target conversion relationship between the data types used by the second system and the first system respectively, which is obtained by the second system, the data type conversion processing may be performed on the response information of the target information generated by the second system, so as to obtain a character string which carries the response information generated by the second system and can be analyzed and read by the first system.
Wherein the character string may be determined as a response character string to be sent by the second system.
S503, returning the response string to the first system.
Optionally, the second system may return a response string carrying response information generated by the second system according to the target information to the first system based on a communication path with the first system.
As shown in fig. 2, the first system is set as system 1, and the second system is set as system 2, wherein system 2 receives the target character string of system 1, analyzes the target character string to obtain the target information sent by system 1 to system 2, system 2 generates corresponding response information according to the target information, generates corresponding response character string, and returns the response character string to system 1 based on the communication path between system 2 and system 1.
According to the multi-system data interaction method, after the source code is obtained, according to the running result of the source code, a second target conversion relation between data types used by a second system and a first system respectively is obtained, data type conversion processing is carried out on response information corresponding to the generated target information according to the second target conversion relation, and a corresponding response character string is generated and returned to the first system. According to the method, the second system learns a second target conversion relation between the data types used by the second system and the first system respectively according to the received source codes, and based on the second target conversion relation, the second system can generate the response information to be sent into the resolvable response character string of the first system, so that data interaction between a plurality of systems using different data types is realized, through pre-learning the target conversion relation, the data interaction efficiency between the systems using different data types is improved, and the data interaction method between the systems using different data types is optimized.
In the process of data interaction between the first system and the second system, the interactive character string between the first system and the second system may be monitored, which can be understood with reference to fig. 6, where fig. 6 is a schematic flow diagram of a multi-system data interaction method according to another embodiment of the present disclosure, and the method is applicable to a monitoring end, as shown in fig. 6, the method includes:
s601, monitoring a target character string sent by the first system to the second system, wherein the target character string is generated based on a first target conversion relation between data types used by the first system and the second system respectively.
In implementation, the first system may generate a target character string of the target information according to the obtained target conversion relationship between the data types used by the first system and the second system, and send the target character string to the second system, thereby implementing data interaction between the first system and the second system using different data types.
In this scenario, in the process of converting the data type of the target information by the first system, there may be an abnormal situation, which may result in that the target character string generated by the first system based on the target conversion relationship cannot be normally analyzed and read by the second system.
Optionally, the interactive character string between the first system and the second system may be monitored through the monitoring end, and the monitored character string is analyzed, so as to identify whether the interactive character string between the first system and the second system is abnormal.
In a scenario where the first system sends the target character string to the second system, the monitoring end may monitor the target character string sent by the first system to the second system from a data transmission path between the first system and the second system.
As shown in fig. 2, the first system is set as system 1, and the second system is set as system 2, so that the monitoring end can monitor the target character string sent from system 1 to system 2 through the data transmission path between systems 1 and 2.
S602, analyzing the target character string and determining the analysis state of the target character string.
In the embodiment of the present disclosure, the target character string is a character string that can be parsed and read by the second system and is generated by the first system based on the target conversion relationship between the data types used by the first system and the second system respectively.
In the scene, the monitoring end can analyze the monitored target character string and identify whether the target character string is abnormal or not according to the analysis result of the target character string.
The process of analyzing the target character string by the monitoring end can be monitored, so that the analysis state of the target character string is realized.
S603, monitoring whether the target character string is normal or not according to the analysis state.
In the embodiment of the present disclosure, there is corresponding indication information in the parsing state of the target character string, and the indication information has mapping information in the state information of the target character string.
In this scenario, indication information of the analysis state of the target character string may be obtained, and whether the monitored target character string is normal or not may be determined according to mapping information of the indication information.
For example, if the mapping information of the indication information of the parsing status in the status information of the target character string is normal, it may be determined that the monitored target character string is normal.
Accordingly, if the mapping information of the indication information of the analysis state in the state information of the target character string is abnormal, it can be determined that the monitored target character string is abnormal.
And S604, returning the monitoring result of the target character string to the first system.
In the embodiment of the disclosure, when the monitoring end analyzes the monitored target character string, whether the monitored target character string is abnormal or not can be identified according to the analysis state of the target character string.
The result of whether the identified monitored target character string is abnormal or not can be determined as the monitoring result of the target character string by the monitoring end.
In this scenario, the monitoring end may return a monitoring result of the monitored target character string to the first system that generates the target character string, and after receiving the monitoring result returned by the monitoring end, the first system may determine a corresponding processing policy according to specific information in the monitoring result.
Optionally, when the specific information in the monitoring result is that the target character string is abnormal, the first system may execute a corresponding processing measure according to the specific information that the target character string carried in the monitoring result is abnormal, and regenerate a new target character string without abnormality and send the new target character string to the second system.
According to the multi-system data interaction method, the monitoring end can monitor the target character string sent to the second system by the first system, and analyze the monitored target character string to obtain the analysis state of the target character string. And further, monitoring whether the target character string sent to the second system by the first system is normal or not according to the analysis state of the target character string, and returning a corresponding monitoring result to the first system. According to the method and the device, whether the target character string sent to the second system by the first system is abnormal or not is monitored through the monitoring end, the monitored result is returned to the first system sending the target character string, effective identification of the target character string in an abnormal state is achieved based on monitoring and analysis of the monitoring end, and the accuracy degree of data interaction between multiple systems using different data types is improved.
In the foregoing embodiment, regarding acquisition of the parsing state of the target character string, it can be further understood with reference to fig. 7, fig. 7 is a schematic flowchart of a multi-system data interaction method according to another embodiment of the present disclosure, where the method is applied to a listening end, and as shown in fig. 7, the method includes:
s701, sending a request for acquiring the description information of the multidimensional array to the first system, and receiving the description information returned by the first system.
In the embodiment of the present disclosure, the monitoring end may analyze a target character string sent by the monitored first system to the second system, where the target character string is generated by the first system based on a target conversion relationship between data types used by the first system and the second system respectively.
Optionally, the first system may obtain a target translation relationship between data types used by the first system and the second system, respectively, according to the received source code generated based on the description information of the multidimensional array of data type information of the plurality of systems.
In this scenario, the monitoring end may obtain, from the first system that generates and transmits the target character string, description information of a multidimensional array of data type information of multiple systems received by the first system, and analyze the target character string according to the description information.
Optionally, the listening end may send an acquisition request of the description information to the first system.
Accordingly, the first system may receive an acquisition request of the description information sent by the listening end.
The first system can receive an acquisition request of the description information of the multidimensional array of the data type information of the multiple systems sent by the monitoring end according to a request receiving port configured by the first system.
Furthermore, the description information of the multidimensional arrays of all data types used by each system in the multiple systems is obtained from the source code, and the description information is returned to the monitoring end.
The first system acquires the description information of the multidimensional arrays of all data types used by each system in the multiple systems required by the monitoring end from the received source codes according to the received acquisition request, and returns the description information to the monitoring end based on a data transmission path between the first system and the monitoring end.
In the embodiment of the present disclosure, the source code is generated based on the description information corresponding to the multidimensional array carrying the data type information of the multiple systems, and in this scenario, the description information of the multidimensional array of all data types used by each of the multiple systems may be obtained based on the source code.
Optionally, the first system may provide an operating environment for the source code, extract, based on the operation of the source code, the description information of the multidimensional arrays of all data types corresponding to all data type information used by the multiple systems carried in the source code, and further send the extracted description information to the monitoring end.
It should be noted that the monitoring end may send an acquisition request of the description information to the first system before monitoring the target character string, or may send an acquisition request of the description information to the first system after determining that the monitored target character string cannot be analyzed, which is not specifically limited herein.
And S702, analyzing the target character string to obtain an analysis character corresponding to the data type information carried in the target character string.
Optionally, the listener parses the target string sent by the first system to the second system based on the received description information.
In some implementations, the first system generates the target character string based on a target conversion relationship between data types used by the first system and the second system, and the target character string can be received, analyzed and read by the second system.
It can be understood that, if there is a difference between the data type of the target character string and the data type used by the second system when the first system generates the target character string, it may be determined that the target character string cannot be parsed and read by the second system, and it may be further determined that data interaction between the first system and the second system is abnormal.
In the embodiment of the present disclosure, the monitoring end may analyze the obtained description information to obtain the relevant information of the data type of the target character string, so as to implement monitoring on whether the target character string is abnormal or not in the dimension of the data type.
The relevant character information of the data type obtained by analyzing the target character string by the monitoring end based on the description information can be determined as the analyzed character of the target character string obtained by analyzing by the monitoring end.
And S703, determining the analysis state of the target character string according to the acquisition state of the analysis character.
In some implementations, the listening end may store the parsed characters obtained by parsing in a corresponding storage space, where the storage space may be a storage container for building the parsed characters.
Alternatively, a storage container of the parsed characters may be constructed and the parsed characters may be filled into the storage container.
In the embodiment of the present disclosure, the monitoring end may construct a storage container for the parsed characters, and fill the parsed characters into the storage container.
For example, in a scenario where a source code generated by the description information of the multidimensional array received by the first system is set as a C + + code, the listener may construct a container of std: < unknown type > type, and store the parsed character of the target character string obtained by parsing in the container.
The UnknowType is a set (union) that enumerates all data types used by the plurality of systems in the embodiment of the present disclosure.
In this scenario, the parse character may be filled into std:vector < UnknowType >.
Further, the analytical characters in the storage container are serialized to obtain an analytical character string.
As shown in fig. 2, after the monitoring end analyzes the target character string to obtain the analysis character, the analysis character in the storage container of the analysis character may be serialized, so as to obtain the analysis character string obtained by analyzing the target character string by the monitoring end.
It should be noted that the parsing character string parsed by the monitoring end may be a multidimensional array, where in response to the parsing character string being a multidimensional array, a character in a first dimension in the parsing character string is a pointer of a character in a next dimension adjacent to the character in the parsing character string, where the first dimension is a remaining dimension in the parsing character string that is not a last dimension.
For example, the parsing character string is set as a multidimensional array of three dimensions, wherein the first dimension, the second dimension and the third dimension are sequentially arranged from outside to inside.
In this scenario, the analytic character belonging to the first dimension is a pointer of the analytic character in the second dimension, and correspondingly, the analytic character belonging to the second dimension is a pointer of the analytic character in the third dimension, and only the analytic character in the third dimension carries the related information of the data type of the target character string.
Optionally, the parsed string is sent to each of a plurality of systems.
In some implementations, the listening end may send the obtained parsing string to each of the plurality of systems based on the received instruction.
As shown in fig. 2, after the monitoring end receives the corresponding instruction, the monitoring end may obtain a data transmission path between the storage container for analyzing the character and each of the systems, and send the obtained analysis character string to each of the systems through the data transmission path between the storage container for analyzing the character and each of the systems based on the received instruction.
In the embodiment of the present disclosure, the monitoring end may analyze the relevant information of the data type of the target character string according to the acquired description information, and determine the analysis state of the target character string according to the acquisition state of the analysis character.
And responding to the normal acquisition state of the analysis character, and determining that the analysis state of the target character string is normal.
It can be understood that, if the target character string is analyzed based on the description information, the target character string can be normally analyzed to obtain an analysis character, and the analysis state of the target character string can be determined to be normal.
Accordingly, in response to the acquisition state of the parsed character being abnormal, the parsing state of the target character string is determined to be abnormal.
It can be understood that, when the target character string is analyzed based on the description information, the monitoring end cannot obtain the analysis character of the target character string through analysis due to the fact that the target character string cannot be analyzed normally, the state can be determined as an abnormal acquisition state of the analysis character, and thus, the abnormal analysis state of the character string monitored by the monitoring end can be determined.
And S704, monitoring whether the target character string is normal or not according to the analysis state.
Optionally, in response to the parsing status of the target character string being normal, the monitoring result of the target character string is normal.
In the embodiment of the present disclosure, the monitoring end analyzes and reads the target character string through the description information of the multidimensional array carrying the data type information of the multiple systems, which is returned by the first system.
In this scenario, when the analysis state of the target character string is normal, it may be determined that there is no difference between the related information of the data type of the target character string acquired by the monitoring end and the description information acquired by the monitoring end, and there is no abnormality in the data type of the target character string, and it may be further determined that the target character string monitored by the monitoring end is normal.
Optionally, in response to the parsing status of the target character string being abnormal, the monitoring result of the target character string is abnormal.
Correspondingly, when the analysis state of the target character string is abnormal, it can be determined that the data type of the target character string obtained by the monitoring end is abnormal due to the difference between the related information of the data type of the target character string obtained by the monitoring end and the description information obtained by the monitoring end.
S705, the monitoring result of the target character string is returned to the first system.
Optionally, the monitoring end may generate a corresponding monitoring result based on whether the monitored target character string is abnormal.
Monitoring abnormal information corresponding to the target character string with the abnormal monitoring result can be obtained, and the monitoring abnormal information is returned to the first system sending the target character string.
It can be understood that the monitoring end can identify the related abnormal information of the target character string with abnormal analysis state in the analysis process, and further acquire the monitoring abnormal information of the target character string.
Further, the monitoring abnormal information is returned to the first system sending the target character string based on a data transmission path between the monitoring end and the first system, so that effective monitoring of the data type of the target character string generated by the first system is realized.
The method for interacting the data of the multiple systems comprises the steps that a monitored target character string sent by the first system to the second system is analyzed through description information of a multidimensional array carrying data type information of the multiple systems, returned by an acquisition request sent by a monitoring end, of the first system to obtain an analysis character, whether the target character string is abnormal or not is identified according to the acquisition state of the analysis character, and a monitoring result is returned to the first system sending the target character string. According to the method and the device, the target character string is analyzed based on the description information returned by the first system, the accuracy of analyzing the target character string by the monitoring end is improved, whether the target character string sent to the second system by the first system is monitored abnormally or not is monitored by the monitoring end, the monitored result is returned to the first system sending the target character string, effective identification of the target character string in an abnormal state is achieved based on monitoring and analyzing of the monitoring end, and the accuracy of data interaction between multiple systems using different data types is improved.
Corresponding to the multi-system data interaction methods provided in the foregoing embodiments, an embodiment of the present disclosure also provides a multi-system data interaction apparatus, and since the multi-system data interaction apparatus provided in the embodiment of the present disclosure corresponds to the multi-system data interaction methods provided in the foregoing embodiments, the implementation manner of the multi-system data interaction method is also applicable to the multi-system data interaction apparatus provided in the embodiment of the present disclosure, and will not be described in detail in the following embodiments.
Fig. 8 is a schematic structural diagram of a multi-system data interaction apparatus according to an embodiment of the present disclosure, as shown in fig. 8, the multi-system data interaction apparatus 800 is suitable for a first system, and includes a generating module 81, an obtaining module 82, a converting module 83, and a sending module 84, where:
the generating module 81 is configured to obtain description information of a multidimensional array, and generate a source code carrying the description information of the multidimensional array, where the description information of the multidimensional array includes data type information of multiple systems;
an obtaining module 82, configured to obtain, based on the source code, a target conversion relationship between data types used by the first system and the second system, respectively;
the conversion module 83 is configured to obtain target information to be sent by the first system, and generate a target character string corresponding to the target information according to a target conversion relationship;
a sending module 84, configured to send the target character string to the second system.
In an embodiment of the present disclosure, the obtaining module 82 is further configured to: acquiring a running result of the source code; acquiring a conversion relation set between the data types used by the first system and the rest systems in the plurality of systems, which are not the first system, according to the operation result; and acquiring the target conversion relation from the conversion relation set according to the first system and the second system.
In an embodiment of the present disclosure, the obtaining module 82 is further configured to: identifying, from the run results, first data type characteristics of data types used by each of remaining ones of the plurality of systems other than the first system; acquiring an association feature set between a second data type feature of the data type used by the first system and a first data type feature of the data type used by each of the rest systems; and acquiring a conversion relation set between the first system and the data types respectively used by the rest systems, which are not the first system, in the plurality of systems according to the association feature set.
In the embodiment of the present disclosure, the conversion module 83 is further configured to: acquiring target information to be sent of a first system, and generating a candidate character string corresponding to the target information; and converting the candidate character strings into corresponding target character strings under the data type used by the second system according to the target conversion relation.
In an embodiment of the present disclosure, the sending module 84 is further configured to: receiving an acquisition request of description information sent by a monitoring end; and obtaining the description information of the multidimensional arrays of all data types used by each system in the plurality of systems from the source codes, and returning the description information to the monitoring end.
The multi-system data interaction device provided by the disclosure acquires a multi-dimensional array carrying data type information used by a plurality of systems, generates source codes of the data type information used by the plurality of systems according to description information of the multi-dimensional data, acquires a target conversion relation between the data types used by a first system and a second system respectively according to the source codes, generates corresponding target character strings according to the target conversion relation from target information to be sent of the first system, and transmits the target character strings to the second system. According to the method, the first system obtains a target conversion relation between data types used by the first system and the second system respectively according to a received source code, the first system can generate target character strings which can be analyzed by the second system from target information to be sent based on the target conversion relation, data interaction between a plurality of systems using different data types is achieved, the target conversion relation is obtained before data interaction between the systems is carried out, the data interaction efficiency between the systems using different data types is improved, conversion processing is carried out on the target information according to the target conversion relation, the system receiving the information can directly analyze the received target character strings without other processing, the processing steps of the system receiving the information on the received target character strings are simplified, and a data interaction method between the systems using different data types is optimized.
The embodiment of the multi-system data interaction method provided by the embodiment of the disclosure is also applicable to the multi-system data interaction device provided by the embodiment of the disclosure, and the detailed description is not repeated in the following embodiments.
Fig. 9 is a schematic structural diagram of a multi-system data interaction apparatus according to an embodiment of the present disclosure, and as shown in fig. 9, the multi-system data interaction apparatus 900 is suitable for a second system, and includes a receiving module 91, a first parsing module 92, and a response module 93, where:
a receiving module 91, configured to receive a target character string sent by a first system, where the target character string is generated based on a first target conversion relationship between data types used by the first system and a second system respectively;
and the first parsing module 92 is configured to parse the target character string to obtain the target information sent by the first system from the target character string.
In the disclosed embodiment, the apparatus further includes a response module 93, configured to: acquiring a second target conversion relation between data types used by a second system and a first system respectively; acquiring response information of the target information obtained by analyzing the target character string, and generating a response character string corresponding to the response information according to the second target conversion relation; the response string is returned to the first system.
In the embodiment of the present disclosure, the response module 93 is further configured to: acquiring a source code carrying data type information of a plurality of systems; and running the source code to acquire a second target conversion relation between the data types respectively used by the second system and the first system.
According to the multi-system data interaction device, after the target character string sent by the first system is received, the target character string is analyzed, and therefore target information sent by the first system is obtained. According to the data interaction method and device, the second system can directly analyze the received target character string and read target information carried in the target character string without other processing, the processing steps of the data receiving system on the received data are simplified in the data interaction process among the systems using different data types, the data interaction efficiency among the systems using different data types is improved, and the data interaction method among the systems using different data types is optimized.
The embodiment of the multi-system data interaction method provided by the embodiment of the disclosure is also applicable to the multi-system data interaction device provided by the embodiment of the disclosure, and the detailed description is not repeated in the following embodiments.
Fig. 10 is a schematic structural diagram of a multi-system data interaction apparatus according to an embodiment of the present disclosure, as shown in fig. 10, the multi-system data interaction apparatus 1000 is suitable for a listening end, and includes a listening module 11, a second parsing module 12, a determining module 13, and a returning module 14, where:
the monitoring module 11 is configured to monitor a target character string sent by a first system to a second system, where the target character string is generated based on a first target conversion relationship between data types used by the first system and the second system;
the second analysis module 12 is configured to analyze the target character string and determine an analysis state of the target character string;
the judging module 13 is used for monitoring whether the target character string is normal or not according to the analysis state;
and a returning module 14, configured to return a monitoring result of the target character string to the first system.
In this embodiment of the present disclosure, the second parsing module 12 is further configured to: sending a request for acquiring the description information of the multidimensional array to the first system, and receiving the description information returned by the first system; analyzing the target character string to obtain an analysis character corresponding to the data type information carried in the target character string; and determining the analysis state of the target character string according to the acquisition state of the analysis character.
In this embodiment of the present disclosure, the second parsing module 12 is further configured to: responding to the normal acquisition state of the analysis character, and determining that the analysis state of the target character string is normal; and determining the analysis state of the target character string as abnormal in response to the abnormal acquisition state of the analysis character.
In the embodiment of the present disclosure, the determining module 13 is further configured to: responding to the analysis state of the target character string being normal, and the monitoring result of the target character string being normal; and responding to the analysis state of the target character string as abnormal, wherein the monitoring result of the target character string is abnormal.
In an embodiment of the present disclosure, the returning module 14 is further configured to: and acquiring monitoring abnormal information corresponding to the target character string with the abnormal monitoring result, and returning the monitoring abnormal information to the first system for sending the target character string.
In this embodiment of the present disclosure, the second parsing module 12 is further configured to: constructing a storage container for analyzing characters, and filling the analyzed characters into the storage container; carrying out serialization processing on the analytic characters in the storage container to obtain an analytic character string; the parsed string is sent to each of a plurality of systems.
In this embodiment of the present disclosure, the second parsing module 12 is further configured to: in response to parsing the string into the multi-dimensional array, the character in a first dimension of the string is parsed into a pointer to the character in a next dimension adjacent to the character in the first dimension, wherein the first dimension is a remaining dimension of the string that is not a last dimension of the parsed string.
According to the multi-system data interaction device, the monitoring end can monitor the target character string sent to the second system by the first system, and analyze the monitored target character string to obtain the analysis state of the target character string. And further, monitoring whether the target character string sent to the second system by the first system is normal or not according to the analysis state of the target character string, and returning a corresponding monitoring result to the first system. According to the method and the device, whether the target character string sent to the second system by the first system is abnormal or not is monitored through the monitoring end, the monitored result is returned to the first system sending the target character string, effective identification of the target character string in an abnormal state is achieved based on monitoring and analysis of the monitoring end, and the accuracy degree of data interaction between multiple systems using different data types is improved.
According to an embodiment of the present disclosure, the present disclosure also proposes an electronic device, a readable storage medium, and a computer program product.
FIG. 11 shows a schematic block diagram of an example electronic device 1100 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 11, the device 1100 comprises a computing unit 1101, which may perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 1102 or a computer program loaded from a storage unit 1108 into a Random Access Memory (RAM) 1103. In the RAM 1103, various programs and data necessary for the operation of the device 1100 may also be stored. The calculation unit 1101, the ROM 1102, and the RAM 1103 are connected to each other by a bus 1104. An input/output (I/O) interface 1105 is also connected to bus 1104.
A number of components in device 1100 connect to I/O interface 1105, including: an input unit 1106 such as a keyboard, mouse, or the like; an output unit 1106 such as various types of displays, speakers, and the like; a storage unit 1108 such as a magnetic disk, optical disk, or the like; and a communication unit 1109 such as a network card, a modem, a wireless communication transceiver, and the like. The communication unit 1109 allows the device 1100 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 1101 can be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 1101 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and the like. The computing unit 1101 performs the various methods and processes described above, such as a multi-system data interaction method. For example, in some embodiments, the multi-system data interaction method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 1108. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 1100 via ROM 1102 and/or communication unit 1109. When loaded into RAM 1103 and executed by computing unit 1101, may perform one or more of the steps of the multi-system data interaction method described above. Alternatively, in other embodiments, the computing unit 1101 may be configured to perform a multi-system data interaction method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be presented to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To present interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to propose interactions with the user; for example, feedback presented to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the protection scope of the present disclosure.

Claims (33)

1. A multi-system data interaction method is applicable to a first system, wherein the method comprises the following steps:
acquiring description information of a multidimensional array, and generating a source code carrying the description information of the multidimensional array, wherein the description information of the multidimensional array comprises data type information of a plurality of systems;
acquiring a target conversion relation between data types used by the first system and the second system respectively based on the source code;
acquiring target information to be sent by the first system, and generating a target character string corresponding to the target information according to the target conversion relation;
and sending the target character string to the second system.
2. The method of claim 1, wherein the obtaining, based on the source code, a target translation relationship between data types used by each of the first system and the second system comprises:
acquiring an operation result of the source code;
acquiring a conversion relation set between the data types used by the first system and the rest systems in the plurality of systems, which are not the first system, according to the operation result;
and acquiring the target conversion relation from the conversion relation set according to the first system and the second system.
3. The method of claim 2, wherein the obtaining a set of conversion relationships between the first system and data types respectively used by remaining ones of the plurality of systems other than the first system according to the operation result comprises:
identifying, from the operational results, a first data type characteristic of a data type used by each of the remaining ones of the plurality of systems other than the first system;
acquiring an association feature set between a second data type feature of the data type used by the first system and the first data type feature of the data type used by each of the rest systems;
and acquiring a conversion relation set between the first system and the data types used by the rest systems in the plurality of systems, which are not the first system, according to the association feature set.
4. The method according to claim 1, wherein the obtaining target information to be sent by the first system and generating a target character string corresponding to the target information according to the target conversion relationship includes:
acquiring target information to be sent of the first system, and generating a candidate character string corresponding to the target information;
and converting the candidate character strings into corresponding target character strings under the data type used by the second system according to the target conversion relation.
5. The method of any of claims 1-4, wherein the method further comprises:
receiving an acquisition request of description information sent by a monitoring end;
and acquiring the description information of the multidimensional arrays of all data types used by each system in the plurality of systems from the source code, and returning the description information to the monitoring end.
6. A multi-system data interaction method is applicable to a second system, and comprises the following steps:
receiving a target character string sent by a first system, wherein the target character string is generated based on a first target conversion relation between data types used by the first system and a second system respectively;
and analyzing the target character string to acquire target information sent by the first system from the target character string.
7. The method of claim 6, wherein after parsing the target string to obtain target information from the target string, the method comprises:
acquiring a second target conversion relation between data types used by a second system and a first system respectively;
acquiring response information of the target information obtained by analyzing the target character string, and generating a response character string corresponding to the response information according to the second target conversion relation;
returning the response string to the first system.
8. The method of claim 7, wherein obtaining a second target translation relationship between data types used by each of the second system and the first system comprises:
acquiring a source code carrying data type information of a plurality of systems;
and running the source code to acquire the second target conversion relation between the data types used by the second system and the first system respectively.
9. A multi-system data interaction method is suitable for a monitoring end, wherein the method comprises the following steps:
monitoring a target character string sent to a second system by a first system, wherein the target character string is generated based on a first target conversion relation between data types used by the first system and the second system respectively;
analyzing the target character string and determining the analysis state of the target character string;
monitoring whether the target character string is normal or not according to the analysis state;
and returning the monitoring result of the target character string to the first system.
10. The method of claim 9, wherein the obtaining description information of the multidimensional array, parsing the target string according to the description information, and determining a parsing status of the target string comprises:
sending a request for acquiring the description information of the multidimensional array to the first system, and receiving the description information returned by the first system;
analyzing the target character string to obtain an analyzed character corresponding to the data type information carried in the target character string;
and determining the analysis state of the target character string according to the acquisition state of the analysis character.
11. The method of claim 10, wherein the determining the parsing status of the target string from the retrieval status of the parsing character comprises:
responding to the normal acquisition state of the analysis character, and determining that the analysis state of the target character string is normal;
and determining that the analysis state of the target character string is abnormal in response to the abnormal acquisition state of the analysis character.
12. The method of claim 9, wherein the listening whether the target string is normal according to the parsing status comprises:
responding to the analysis state of the target character string being normal, wherein the monitoring result of the target character string is normal;
and responding to the analysis state of the target character string as abnormal, wherein the monitoring result of the target character string is abnormal.
13. The method of claim 12, wherein the returning the snoop results of the target string to the first system comprises:
and acquiring monitoring abnormal information corresponding to the target character string with an abnormal monitoring result, and returning the monitoring abnormal information to the first system sending the target character string.
14. The method according to any one of claims 9-13, wherein the method further comprises:
constructing a storage container for analyzing characters, and filling the analyzed characters into the storage container;
serializing the analytic characters in the storage container to obtain analytic character strings;
and sending the analysis character string to each system in the plurality of systems.
15. The method of claim 14, wherein the method further comprises:
and responding to the analysis character string being a multi-dimensional array, wherein the character in the first dimension in the analysis character string is a pointer of the character in the next adjacent dimension, and the first dimension is the remaining dimension which is not the last dimension in the analysis character string.
16. A multi-system data interaction apparatus, the apparatus being adapted for use in a first system, wherein the apparatus comprises:
the generating module is used for acquiring the description information of the multidimensional array and generating a source code carrying the description information of the multidimensional array, wherein the description information of the multidimensional array comprises data type information of a plurality of systems;
the acquisition module is used for acquiring a target conversion relation between data types used by the first system and the second system respectively based on the source code;
the conversion module is used for acquiring target information to be sent by the first system and generating a target character string corresponding to the target information according to the target conversion relation;
and the sending module is used for sending the target character string to the second system.
17. The apparatus of claim 16, wherein the means for obtaining is further configured to:
acquiring an operation result of the source code;
acquiring a conversion relation set between the first system and data types used by the rest systems, which are not the first system, in the plurality of systems according to the operation result;
and acquiring the target conversion relation from the conversion relation set according to the first system and the second system.
18. The apparatus of claim 17, wherein the means for obtaining is further configured to:
identifying, from the operational results, a first data type characteristic of a data type used by each of the remaining ones of the plurality of systems other than the first system;
acquiring an association feature set between a second data type feature of the data type used by the first system and the first data type feature of the data type used by the rest systems respectively;
and acquiring a conversion relation set between the first system and the data types used by the rest systems in the plurality of systems, which are not the first system, according to the association feature set.
19. The apparatus of claim 16, wherein the conversion module is further configured to:
acquiring target information to be sent of the first system, and generating a candidate character string corresponding to the target information;
and converting the candidate character strings into corresponding target character strings under the data type used by the second system according to the target conversion relation.
20. The apparatus of any one of claims 16-19, wherein the means for transmitting is further configured to:
receiving an acquisition request of description information sent by a monitoring end;
and acquiring the description information of the multidimensional arrays of all data types used by each system in the plurality of systems from the source code, and returning the description information to the monitoring end.
21. A multi-system data interaction device, which is suitable for a second system, wherein the device comprises:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a target character string sent by a first system, and the target character string is generated based on a first target conversion relation between data types used by the first system and a second system respectively;
and the first analysis module is used for analyzing the target character string so as to obtain the target information sent by the first system from the target character string.
22. The apparatus of claim 21, wherein the apparatus further comprises a response module to:
acquiring a second target conversion relation between data types used by a second system and a first system respectively;
acquiring response information of the target information obtained by analyzing the target character string, and generating a response character string corresponding to the response information according to the second target conversion relation;
returning the response string to the first system.
23. The apparatus of claim 22, wherein the response module is further configured to:
acquiring a source code carrying data type information of a plurality of systems;
and running the source code to acquire the second target conversion relation between the data types respectively used by the second system and the first system.
24. A multi-system data interaction device, which is suitable for a listening end, wherein the device comprises:
the monitoring module is used for monitoring a target character string sent by a first system to a second system, wherein the target character string is generated based on a first target conversion relation between data types used by the first system and the second system respectively;
the second analysis module is used for analyzing the target character string and determining the analysis state of the target character string;
the judging module is used for monitoring whether the target character string is normal or not according to the analysis state;
and the return module is used for returning the monitoring result of the target character string to the first system.
25. The apparatus of claim 24, wherein the second parsing module is further configured to:
sending an acquisition request of the description information of the multidimensional array to the first system, and receiving the description information returned by the first system;
analyzing the target character string to obtain an analyzed character corresponding to the data type information carried in the target character string;
and determining the analysis state of the target character string according to the acquisition state of the analysis character.
26. The apparatus of claim 25, wherein the second parsing module is further configured to:
responding to the normal acquisition state of the analysis character, and determining that the analysis state of the target character string is normal;
and responding to the abnormal acquisition state of the analysis character, and determining that the analysis state of the target character string is abnormal.
27. The apparatus of claim 25, wherein the means for determining is further configured to:
responding to the analysis state of the target character string being normal, and the monitoring result of the target character string being normal;
and responding to the analysis state of the target character string as abnormal, wherein the monitoring result of the target character string is abnormal.
28. The apparatus of claim 27, wherein the return module is further configured to:
and acquiring monitoring abnormal information corresponding to the target character string with an abnormal monitoring result, and returning the monitoring abnormal information to the first system which sends the target character string.
29. The apparatus of any of claims 24-28, wherein the second parsing module is further configured to:
constructing a storage container for analyzing characters, and filling the analyzed characters into the storage container;
serializing the analysis characters in the storage container to obtain an analysis character string;
and sending the analysis character string to each system in the plurality of systems.
30. The apparatus of claim 29, wherein the second parsing module is further configured to:
and responding to the analysis character string being a multi-dimensional array, wherein the character in the first dimension in the analysis character string is a pointer of the character in the next adjacent dimension, and the first dimension is the remaining dimension which is not the last dimension in the analysis character string.
31. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5, 6-8, and 9-15.
32. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any of claims 1-5, 6-8, and 9-15.
33. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-5, 6-8 and 9-15.
CN202211134320.7A 2022-09-16 2022-09-16 Multi-system data interaction method and device and electronic equipment Pending CN115454443A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211134320.7A CN115454443A (en) 2022-09-16 2022-09-16 Multi-system data interaction method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211134320.7A CN115454443A (en) 2022-09-16 2022-09-16 Multi-system data interaction method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN115454443A true CN115454443A (en) 2022-12-09

Family

ID=84305071

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211134320.7A Pending CN115454443A (en) 2022-09-16 2022-09-16 Multi-system data interaction method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN115454443A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117453964A (en) * 2023-10-08 2024-01-26 北京融和云链科技有限公司 Template-based data structure acquisition and target template generation method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117453964A (en) * 2023-10-08 2024-01-26 北京融和云链科技有限公司 Template-based data structure acquisition and target template generation method and device
CN117453964B (en) * 2023-10-08 2024-04-30 北京融和云链科技有限公司 Template-based data structure acquisition and target template generation method and device

Similar Documents

Publication Publication Date Title
CN108984388B (en) Method and terminal equipment for generating automatic test case
EP2933726B1 (en) Apparatus, system and method for application log data processing
CN114389969B (en) Method and device for testing client, electronic equipment and storage medium
CN115757483A (en) Automatic testing method and device, electronic equipment and storage medium
CN113590403A (en) Pressure testing method, device, system, electronic equipment, storage medium and product
CN115454443A (en) Multi-system data interaction method and device and electronic equipment
CN114997329A (en) Method, apparatus, device, medium and product for generating a model
CN114742000A (en) SoC chip verification system, verification method and device based on FPGA cluster
CN117520195A (en) Method, apparatus, device, storage medium and program product for testing interface
CN113052325A (en) Method, device, equipment, storage medium and program product for optimizing online model
CN110728118B (en) Cross-data-platform data processing method, device, equipment and storage medium
CN115687406A (en) Sampling method, device and equipment of call chain data and storage medium
CN115269431A (en) Interface testing method and device, electronic equipment and storage medium
CN115348320A (en) Communication data conversion method and device and electronic equipment
CN114238335A (en) Buried point data generation method and related equipment thereof
CN114374745A (en) Protocol format processing method and system
CN114218313A (en) Data management method, device, electronic equipment, storage medium and product
CN113691403A (en) Topological node configuration method, related device and computer program product
CN115361290B (en) Configuration comparison method, device, electronic equipment and storage medium
CN113900915B (en) Method and device for determining service performance state, storage medium and electronic equipment
CN114936379A (en) File scanning method and device, electronic equipment and storage medium
CN114048096A (en) Data processing method and related equipment thereof
CN115391517A (en) Method and apparatus for determining device status
CN115858921A (en) Model processing method, device, equipment and storage medium
CN114218285A (en) Data detection method and device, electronic equipment and storage medium

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