CN113821467A - Data transmission method and device and electronic equipment - Google Patents

Data transmission method and device and electronic equipment Download PDF

Info

Publication number
CN113821467A
CN113821467A CN202111152127.1A CN202111152127A CN113821467A CN 113821467 A CN113821467 A CN 113821467A CN 202111152127 A CN202111152127 A CN 202111152127A CN 113821467 A CN113821467 A CN 113821467A
Authority
CN
China
Prior art keywords
data
application program
program interface
target
source
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
CN202111152127.1A
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.)
Glodon Co Ltd
Original Assignee
Glodon 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 Glodon Co Ltd filed Critical Glodon Co Ltd
Priority to CN202111152127.1A priority Critical patent/CN113821467A/en
Publication of CN113821467A publication Critical patent/CN113821467A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4009Coupling between buses with data restructuring
    • G06F13/4018Coupling between buses with data restructuring with data-width conversion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Abstract

The invention relates to the technical field of data transmission, in particular to a data transmission method, a data transmission device and electronic equipment, wherein the method comprises the steps of acquiring an identifier of a data receiver and source data; matching a corresponding application program interface based on the identification; converting the source data according to the application program interface to determine target data; and pushing the target data to the data receiving party. By integrating a plurality of application program interfaces, when source data are transmitted, the source data are converted by using the corresponding application program interfaces, and target data which can be accurately received by data receivers can be obtained.

Description

Data transmission method and device and electronic equipment
Technical Field
The invention relates to the technical field of data transmission, in particular to a data transmission method and device and electronic equipment.
Background
In the building field, it is often necessary to push the same data to different data platforms. For example, the elevator data is pushed to the central office, the constructor, and the contractor, among others. Because different data platforms provide different transmission protocols, data formats, and the like, before data transmission, data needs to be converted so as to be accurately transmitted to the corresponding data platforms.
The existing data transmission method is to write corresponding codes for different data platforms respectively to perform data conversion. If the same data is to be transmitted to 3 different data platforms, 3 different sets of codes need to be written. This necessarily results in inefficient data transmission.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data transmission method, an apparatus, and an electronic device, so as to solve the problem of low data transmission efficiency.
According to a first aspect, an embodiment of the present invention provides a data transmission method, including:
acquiring an identifier of a data receiver and source data;
matching a corresponding application program interface based on the identification;
converting the source data according to the application program interface to determine target data;
and pushing the target data to the data receiving party.
According to the data transmission method provided by the embodiment of the invention, the plurality of application program interfaces are integrated, and the corresponding application program interfaces are used for converting the source data during source data transmission, so that the target data which can be accurately received by the data receiver can be obtained.
With reference to the first aspect, in a first implementation manner of the first aspect, the converting the source data according to the application program interface to determine target data includes:
determining a corresponding target structure based on the application program interface, wherein the target structure comprises keywords;
and extracting corresponding data from the source data based on the keywords, and filling the extracted data into corresponding positions of the keywords to determine the target data.
According to the data transmission method provided by the embodiment of the invention, the target structure body corresponding to the application program interface is used for converting the source data, the keywords in the target structure body are used for extracting corresponding data from the source data, and the corresponding positions of the keywords are filled in, so that the conversion of the source data is realized, and the data conversion efficiency is improved by using the target structure body.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the determining the target data by extracting corresponding data from the source data based on the keyword and filling the extracted data into corresponding positions of the keyword, where the placeholder corresponds to the keyword, includes:
calculating the source data based on the application program interface to obtain the calculation result of each data entry in the source data;
matching each data item by using the keywords to determine a target data item;
and extracting the operation result of the target data entry, and replacing the placeholder with the operation result to determine the target data.
According to the data transmission method provided by the embodiment of the invention, the source data is firstly operated, then the operation results of all the data entries are matched by using the keywords, and after the operation results are matched, the placeholders in the target structure body are replaced by the operation results of the target data entries, namely, the operation is firstly performed and then the data filling is performed, so that the accuracy of the target data is improved.
With reference to the first implementation manner of the first aspect, in a third implementation manner of the first aspect, the converting the source data according to the application program interface to determine target data includes:
acquiring the dependency relationship of the application program interface;
and based on the dependency relationship, transmitting a conversion result corresponding to the front application program interface as a data source to the rear application program interface so as to determine the target data.
According to the data transmission method provided by the embodiment of the invention, more complex data conversion can be realized by utilizing the dependency relationship of the application program interface, and the application scene of data transmission is enlarged.
With reference to the third implementation manner of the first aspect, in a fourth implementation manner of the first aspect, the obtaining a dependency relationship of the application program interface includes:
acquiring an interface document of the data receiver;
determining dependencies of the application program interfaces based on the interface document.
The data transmission method provided by the embodiment of the invention determines the dependency relationship of the application program interface by using the interface document of the data receiver, and can ensure the reliability of the dependency relationship.
With reference to the first aspect, in a fifth implementation manner of the first aspect, the obtaining an identifier of a data receiver includes:
and acquiring the company name, the data type and the configuration result of the project information of the data receiver to determine the identification of the data receiver.
With reference to the first aspect, in a sixth implementation manner of the first aspect, the converting the source data according to the application program interface to determine target data includes:
acquiring a data pushing template, wherein the data pushing template comprises a request address and a filling position of converted data;
and filling the request address of the data receiver and the converted data into the corresponding position of the data pushing template, and determining the target data.
According to the data transmission method provided by the embodiment of the invention, the target data is pushed through the data pushing template, so that the data pushing mode is standardized, and the data can be uniformly managed.
According to a second aspect, an embodiment of the present invention further provides a data transmission apparatus, including:
the acquisition module is used for acquiring the identifier of the data receiver and the source data;
the matching module is used for matching a corresponding application program interface based on the identification;
the conversion module is used for converting the source data according to the application program interface and determining target data;
and the sending module is used for pushing the target data to the data receiving party.
According to the data transmission device provided by the embodiment of the invention, the plurality of application program interfaces are integrated, and the corresponding application program interfaces are used for converting the source data during source data transmission, so that the target data which can be accurately received by the data receiver can be obtained.
According to a third aspect, an embodiment of the present invention provides an electronic device, including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing therein computer instructions, and the processor executing the computer instructions to perform the data transmission method according to the first aspect or any one of the embodiments of the first aspect.
According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores computer instructions for causing a computer to execute the data transmission method described in the first aspect or any one implementation manner of the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flow chart of a data transmission method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of data transmission according to an embodiment of the present invention;
3 a-3 b are schematic diagrams of data conversion according to embodiments of the invention;
FIG. 4 is a flow chart of a method of data transmission according to an embodiment of the present invention;
fig. 5 is a block diagram of a data transmission apparatus according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The data transmission method provided by the embodiment of the invention can push the same source data to a plurality of data platforms without independently compiling codes. In the data transmission process, the corresponding application program interface (namely, API interface) is matched by using the identifier of the data receiver, and the target data can be obtained by converting the source data by using the API interface, so that the same source data can be converted into different target data, and the different target data can be pushed to the corresponding data receiver. The data transmission method pushes the same source data to a plurality of data receiving sides (such as data platforms) through different protocols, data pushing can be achieved only by acquiring the identification of the data receiving sides, and the data receiving sides which are connected with third-party interfaces rapidly are achieved through 0 codes.
Further, the data transmission method provided by the embodiment of the present invention is structured in an abstract interface manner, that is, an application program interface. By adopting the strategy mode to match with the corresponding application program interface, repeated coding can be avoided, and the use of a multi-condition (if-else) statement is avoided.
In accordance with an embodiment of the present invention, there is provided a data transmission method embodiment, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
In this embodiment, a data transmission method is provided, which can be used in an electronic device, such as a computer, a tablet computer, and the like, and fig. 1 is a flowchart of the data transmission method according to an embodiment of the present invention, as shown in fig. 1, the flowchart includes the following steps:
and S11, acquiring the identification of the data receiver and the source data.
The identifier of the data receiving party may be a unique identifier of the data receiving party, or an identifier of the data receiving party for different data types of different items, and may be specifically set according to actual requirements, which is not limited herein. For example, the same data receiver needs to receive data of different data types of different items, and the identifier set for the data receiver in the electronic device needs to include the data receiver, the item information, and the data type.
The source data is data to be transmitted, such as monitored elevator data, tower crane measurement data, floor schedule data, and the like. The acquisition of the source data may be that the source data is collected by a third party and then sent to the electronic device, or may be stored in the electronic device, and so on. The manner and timing of acquiring the source data are not limited herein.
And S12, matching the corresponding application program interface based on the identification.
The electronic equipment is preset with application program interfaces corresponding to all data receiving sides, and source data can be converted into target data which can be received by the data receiving sides through the application program interfaces. The application program interface is set based on an interface document of a data receiver, and when the data receiver is added or deleted, the corresponding addition or deletion of the application program interface in the electronic equipment is required.
And after the electronic equipment acquires the identifier of the data receiver, the acquired identifier is used for matching the application program interface, so that the application program interface corresponding to the data receiver is determined. The application program interface may be understood as a packaged program module in which a data structure and a data format corresponding to a data receiving party are provided.
And S13, converting the source data according to the application program interface to determine the target data.
After determining the application program interface, the electronic device converts the source data based on the application program interface, that is, converts the source data into a data structure and a data format corresponding to the data receiver. As described above, the data structure and the data format corresponding to the data receiving party are built in the application program interface, and after the application program interface is determined, the corresponding data can be processed from the source data based on the corresponding data structure and data format, so as to determine the target data.
Details about this step will be described later.
And S14, pushing the target data to the data receiver.
After the target data is determined by the electronic equipment, the target data is pushed to the data receiving party based on a communication protocol corresponding to the data receiving party. That is, through underlying protocol abstraction, multiple protocols can be supported, such as: http, https, mqtt, tcp, udp, and the like. For example, http, https requests are performed via okhttp, mqtt requests are performed via Fusetsource mqtt-client, and tcp requests are performed via netty. The communication protocol may be set according to actual requirements, and is not limited herein.
As a specific application example of this embodiment, the electronic device is provided with a data platform, the data platform configures the identifier of the data receiving party, and after the configuration is completed, the data platform automatically matches a corresponding application program interface, and then converts the source data by using the application program interface; and finally, pushing the target data obtained after conversion to a data receiving party based on the corresponding communication protocol.
According to the data transmission method provided by the embodiment, the plurality of application program interfaces are integrated, and the corresponding application program interfaces are used for converting the source data during source data transmission, so that target data which can be accurately received by data receivers can be obtained.
In this embodiment, a data transmission method is provided, which can be used in an electronic device, such as a computer, a tablet computer, and the like, fig. 2 is a flowchart of the data transmission method according to the embodiment of the present invention, and as shown in fig. 2, the flowchart includes the following steps:
and S21, acquiring the identification of the data receiver and the source data.
The identification comprises a company name, a data type and a configuration result of the project information of the data receiver, and accordingly, the electronic equipment acquires the company name, the data type and the configuration result of the project information of the data receiver. The API maintains the relationship between the company and the data source, the project management maintains the relationship between the project and the company, and the company can comprehensively establish the relationship between the company, the data source and the project management, so that the unique application program interface can be accurately determined.
And S22, matching the corresponding application program interface based on the identification.
Please refer to S12 in fig. 1, which is not described herein again.
And S23, converting the source data according to the application program interface to determine the target data.
Specifically, S23 includes:
and S231, determining the corresponding target structure body based on the application program interface.
The target structure may be understood as a data structure that can be processed by a data receiver, and includes a keyword.
As described above, the electronic device can identify the corresponding target structure by using the application program interface. For example, fig. 3a shows one form of the target structure. Wherein, the 'appid', 'timemap', 'data' and 'sign' are keywords in the target structure.
S232, extracting corresponding data from the source data based on the keywords, and filling the extracted data into corresponding positions of the keywords to determine target data.
The storage of each data in the source data is also distinguished by the keywords, so that the electronic device can match the source data by using the keywords in the target structure body, and can determine the data corresponding to the keywords. After the data is determined, the data is filled into the target structure, i.e., into the target structure at the corresponding location of the key. And respectively matching each keyword to determine the target data.
In some optional implementations of this embodiment, the target structure further includes a placeholder corresponding to the keyword, for example, "$ { }" shown in fig. 3 a. Based on this, the above S232 may include:
(1) and calculating the source data based on the application program interface to obtain the calculation result of each data entry in the source data.
The electronic equipment carries out corresponding operation on the source data based on the requirement of the data receiving party. The operation can be most operation signs such as addition, subtraction, multiplication and division, large integer and precision operation, function calling and self-defining functions, built-in operation supporting regular expression matching, automatic type conversion, operation supporting incoming variables, operation sets and arrays and the like. For example, if the weight unit in the source data is g and the weight unit in the data receiving side is kg, the weight unit in the source data needs to be divided by 1000 to convert the weight unit into kg; for another example, in the source data, the steel bar and the cement are weighted according to types, and the data receiving mode needs to be based on the total weight, so that the weights of the steel bar and the cement need to be summed to obtain the total weight, and the like.
As shown in fig. 3b, the source data after the operation includes a plurality of data entries, each of which includes a key, a data type, and a specific value of the data.
(2) And matching each data entry by using the keywords to determine a target data entry.
As shown in fig. 3a, the electronic device matches each data entry in fig. 3b using the keyword "data" in the target structure, and identifies the target data entry corresponding to "data".
(3) And extracting the operation result of the target data entry, and replacing the placeholder with the operation result to determine the target data.
And after the electronic equipment is matched with the target data entry, extracting an operation result in the target data entry. And replacing the placeholders corresponding to the keywords shown in fig. 3a with the extracted operation results, thereby determining the target data.
The source data are operated, the operation results of the data entries are matched by using the keywords, and after the operation results are matched, the placeholders in the target structure body are replaced by the operation results of the target data entries, namely, the operation is performed first and then the data filling is performed, so that the accuracy of the target data is improved.
Alternatively, the conversion of the source data may rely on a regular expression, a jsonnpath expression, or an Aviator expression.
In some optional implementations of this embodiment, before the source data is converted, authentication may also be performed. For example, data messages are required to be sent to company a, which typically issues some authorization information, but the authorization information cannot directly access their service interface, and the authorization information needs to be acquired to a variable and short-term token through their authentication interface, mainly considering security.
The token can be encrypted by using the Appkey and secret, but there are other ways, for example, jwt md5 encryption and so on, and the scenario of the Appkey secret is many. The identity authentication before the source data conversion is mainly a safety problem, because interfaces are generally not open, authentication and authorization can be performed, and the authorization modes of each manufacturer platform are inconsistent, so that various scenes need to be supported.
And S24, pushing the target data to the data receiver.
Please refer to S14 in fig. 1, which is not described herein again.
In the data transmission method provided by this embodiment, the target structure corresponding to the application program interface is used to convert the source data, the keyword in the target structure is used to extract corresponding data from the source data, and the corresponding position of the keyword is filled with the data, so that conversion of the source data is realized, and the data conversion efficiency is improved by using the target structure.
In some optional implementations of this embodiment, the electronic device further performs log monitoring for each data transmission. That is, each process is monitored and recorded in the database, and finally, the execution result is fed back to the user through the mail or other communication methods.
As an optional implementation manner of this embodiment, the step S23 may further include:
(1) and acquiring the dependency relationship of the application program interface.
Different apis can be interdependent, and the pre-dependent interface will serve as a data source to all the following interfaces in the configuration. For some complex application scenarios, (1) adapting complex services, data push of a single interface is not enough to satisfy the services of the client, for example: the hardware needs to register and then push data; (2) authentication permission adaptation exists, and the permission exists in a complex verification scene, for example, client authorization information is exchanged for an interface token, and communication with a client needs to be carried out for many times.
Wherein the dependency may be configured based on the interface document. Alternatively, the step (1) of S23 may include:
1.1) obtaining an interface document of a data receiver.
1.2) determining the dependency relationship of the application program interface based on the interface document.
The interface document is obtained from a corresponding data receiver when the electronic device configures the data receiver. The interface document may determine an application program interface, a communication protocol, and the like corresponding to the data receiver.
The dependency relationship of the application program interface is determined by using the interface document of the data receiver, so that the reliability of the dependency relationship can be ensured.
(2) And based on the dependency relationship, transmitting a conversion result corresponding to the front application program interface as a data source to the rear application program interface so as to determine target data.
And when the electronic equipment converts the source data, sequentially converting the source data according to the dependency relationship until the final target data is determined.
The more complex data conversion can be realized by utilizing the dependency relationship of the application program interface, and the application scene of data transmission is enlarged.
In this embodiment, a data transmission method is provided, which can be used in an electronic device, such as a computer, a tablet computer, and the like, fig. 4 is a flowchart of the data transmission method according to the embodiment of the present invention, as shown in fig. 4, the flowchart includes the following steps:
and S31, acquiring the identification of the data receiver and the source data.
Please refer to S21 in fig. 2 for details, which are not described herein.
And S32, matching the corresponding application program interface based on the identification.
Please refer to S22 in fig. 2 for details, which are not described herein.
And S33, converting the source data according to the application program interface to determine the target data.
Specifically, S33 includes:
and S331, acquiring a data pushing template.
Wherein the data push template comprises a request address and a filling position of the converted data.
The data push template is a template for transmitting data to each data receiver by the electronic equipment, and the electronic equipment adopts the uniform data push template to carry out data push.
S332, filling the request address of the data receiver and the converted data into the corresponding position of the data pushing template, and determining the target data.
And the electronic equipment fills the data converted from the source data into the data filling position of the data pushing template, and then fills the request address of the data receiver, so that the target data can be obtained.
And S34, pushing the target data to the data receiver.
Please refer to S24 in fig. 2 for details, which are not described herein.
According to the data transmission method provided by the embodiment, the target data is pushed through the data pushing template, a data pushing mode is standardized, and unified management can be performed on the data pushing mode.
In this embodiment, a data transmission device is further provided, and the data transmission device is used to implement the foregoing embodiments and preferred embodiments, which have already been described and are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
The present embodiment provides a data transmission apparatus, as shown in fig. 5, including:
an obtaining module 41, configured to obtain an identifier of a data receiver and source data;
a matching module 42 for matching a corresponding application program interface based on the identification;
a conversion module 43, configured to convert the source data according to the application program interface, and determine target data;
a sending module 44, configured to push the target data to the data receiving side.
The data transmission device provided by this embodiment integrates a plurality of application program interfaces, and converts the source data by using the corresponding application program interface when transmitting the source data, so as to obtain the target data that can be accurately received by the data receiver.
The data transmission means in this embodiment is presented in the form of functional units, where a unit refers to an ASIC circuit, a processor and a memory executing one or more software or fixed programs, and/or other devices that may provide the above-described functionality.
Further functional descriptions of the modules are the same as those of the corresponding embodiments, and are not repeated herein.
An embodiment of the present invention further provides an electronic device, which has the data transmission apparatus shown in fig. 5.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an alternative embodiment of the present invention, and as shown in fig. 6, the electronic device may include: at least one processor 51, such as a CPU (Central Processing Unit), at least one communication interface 53, memory 54, at least one communication bus 52. Wherein a communication bus 52 is used to enable the connection communication between these components. The communication interface 53 may include a Display (Display) and a Keyboard (Keyboard), and the optional communication interface 53 may also include a standard wired interface and a standard wireless interface. The Memory 54 may be a high-speed RAM Memory (volatile Random Access Memory) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The memory 54 may alternatively be at least one memory device located remotely from the processor 51. Wherein the processor 51 may be in connection with the apparatus described in fig. 5, the memory 54 stores an application program, and the processor 51 calls the program code stored in the memory 54 for performing any of the above-mentioned method steps.
The communication bus 52 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 52 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 6, but this is not intended to represent only one bus or type of bus.
The memory 54 may include a volatile memory (RAM), such as a random-access memory (RAM); the memory may also include a non-volatile memory (english: non-volatile memory), such as a flash memory (english: flash memory), a hard disk (english: hard disk drive, abbreviated: HDD) or a solid-state drive (english: SSD); the memory 54 may also comprise a combination of the above types of memories.
The processor 51 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP.
The processor 51 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
Optionally, the memory 54 is also used to store program instructions. The processor 51 may call program instructions to implement the data transfer method as shown in the embodiments of fig. 1, 2 or 4 of the present application.
An embodiment of the present invention further provides a non-transitory computer storage medium, where the computer storage medium stores computer-executable instructions, and the computer-executable instructions may execute the data transmission method in any of the above method embodiments. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A method of data transmission, comprising:
acquiring an identifier of a data receiver and source data;
matching a corresponding application program interface based on the identification;
converting the source data according to the application program interface to determine target data;
and pushing the target data to the data receiving party.
2. The method of claim 1, wherein transforming the source data to determine target data according to the application program interface comprises:
determining a corresponding target structure based on the application program interface, wherein the target structure comprises keywords;
and extracting corresponding data from the source data based on the keywords, and filling the extracted data into corresponding positions of the keywords to determine the target data.
3. The method of claim 2, wherein the target structure further comprises a placeholder corresponding to the keyword, and wherein extracting corresponding data from the source data based on the keyword and filling the extracted data into a corresponding position of the keyword to determine the target data comprises:
calculating the source data based on the application program interface to obtain the calculation result of each data entry in the source data;
matching each data item by using the keywords to determine a target data item;
and extracting the operation result of the target data entry, and replacing the placeholder with the operation result to determine the target data.
4. The method of claim 2, wherein transforming the source data to determine target data according to the application program interface comprises:
acquiring the dependency relationship of the application program interface;
and based on the dependency relationship, transmitting a conversion result corresponding to the front application program interface as a data source to the rear application program interface so as to determine the target data.
5. The method of claim 4, wherein obtaining the dependency relationship of the application program interface comprises:
acquiring an interface document of the data receiver;
determining dependencies of the application program interfaces based on the interface document.
6. The method of claim 1, wherein obtaining the identity of the recipient of the data comprises:
and acquiring the company name, the data type and the configuration result of the project information of the data receiver to determine the identification of the data receiver.
7. The method of claim 1, wherein transforming the source data to determine target data according to the application program interface comprises:
acquiring a data pushing template, wherein the data pushing template comprises a request address and a filling position of converted data;
and filling the request address of the data receiver and the converted data into the corresponding position of the data pushing template, and determining the target data.
8. A data transmission apparatus, comprising:
the acquisition module is used for acquiring the identifier of the data receiver and the source data;
the matching module is used for matching a corresponding application program interface based on the identification;
the conversion module is used for converting the source data according to the application program interface and determining target data;
and the sending module is used for pushing the target data to the data receiving party.
9. An electronic device, comprising:
a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the data transmission method of any one of claims 1 to 7.
10. A computer-readable storage medium storing computer instructions for causing a computer to perform the data transmission method of any one of claims 1 to 7.
CN202111152127.1A 2021-09-29 2021-09-29 Data transmission method and device and electronic equipment Pending CN113821467A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111152127.1A CN113821467A (en) 2021-09-29 2021-09-29 Data transmission method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111152127.1A CN113821467A (en) 2021-09-29 2021-09-29 Data transmission method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113821467A true CN113821467A (en) 2021-12-21

Family

ID=78921611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111152127.1A Pending CN113821467A (en) 2021-09-29 2021-09-29 Data transmission method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113821467A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050223047A1 (en) * 2003-08-21 2005-10-06 Microsoft Corporation Systems and methods for synchronizing computer systems through an intermediary file system share or device
CN105794173A (en) * 2013-12-03 2016-07-20 亚马逊技术有限公司 Data transfer optimizations
WO2017084348A1 (en) * 2015-11-20 2017-05-26 华为技术有限公司 Management method and apparatus for ip hard disk
CN109639782A (en) * 2018-11-30 2019-04-16 中体彩科技发展有限公司 Message sends platform, method
CN111405059A (en) * 2020-03-26 2020-07-10 北京自如信息科技有限公司 Data transmission method of cloud equipment, electronic equipment and Internet of things system
CN111737334A (en) * 2020-06-24 2020-10-02 深圳前海微众银行股份有限公司 Data reporting method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050223047A1 (en) * 2003-08-21 2005-10-06 Microsoft Corporation Systems and methods for synchronizing computer systems through an intermediary file system share or device
CN105794173A (en) * 2013-12-03 2016-07-20 亚马逊技术有限公司 Data transfer optimizations
WO2017084348A1 (en) * 2015-11-20 2017-05-26 华为技术有限公司 Management method and apparatus for ip hard disk
CN109639782A (en) * 2018-11-30 2019-04-16 中体彩科技发展有限公司 Message sends platform, method
CN111405059A (en) * 2020-03-26 2020-07-10 北京自如信息科技有限公司 Data transmission method of cloud equipment, electronic equipment and Internet of things system
CN111737334A (en) * 2020-06-24 2020-10-02 深圳前海微众银行股份有限公司 Data reporting method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107493310B (en) Cloud resource processing method and cloud management platform
KR101488268B1 (en) Push message service system and method thereof
CN111182525B (en) Method and device for storing data
CN110601896B (en) Data processing method and equipment based on block chain nodes
CN111683066A (en) Heterogeneous system integration method and device, computer equipment and storage medium
CN113015165A (en) Internet of things platform device access method, device and system
CN111259217A (en) Invoice archiving method and device and computer readable storage medium
CN113190513A (en) Data integration system and method
CN113220640B (en) Arbitration method and device based on block chain
CN111176685A (en) Upgrading method and device
CN113626512A (en) Data processing method, device, equipment and readable storage medium
CN112966308A (en) Software delivery method, processing device and storage medium
CN111443976A (en) Application program generation method and device, electronic equipment and storage medium
CN108881320B (en) Authentication processing method for user login, server and client
CN113821467A (en) Data transmission method and device and electronic equipment
CN109348472B (en) OTA (over the air) upgrading method and system based on single-point pushing
US11496487B2 (en) Computing network for using a cloud computing server to verify data received from an operating system
CN111324645A (en) Data processing method and device for block chain
WO2013097610A1 (en) Method and device for implementing plugin upgrade based on instant messaging software
CN111262705B (en) Method for checking trusted starting of blockchain
CN109358875B (en) Ubuntu system-based hardware wallet offline upgrading device and method
CN112559546A (en) Database synchronization method and device, computer equipment and readable storage medium
CN108668306B (en) Data acquisition system with built-in mobile operating system
CN110647757A (en) Data processing method based on intelligent contract and related device
CN111198721A (en) Application program running method and device

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