Data transmission method and device, equipment, storage medium and product
By automatically determining the data transmission template and configuration parameters of the data recipient, the problem of inconsistent version of the data transmission protocol of partners in the financial technology field is solved, efficient and stable data transmission is achieved and cost reduction.
Patent Information
- Application Number
- CN202411861269.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-11
AI Technical Summary
In the current financial technology field, due to the inconsistent version of the data transmission protocol of partners, data transmission instability and cost increase. The existing technology requires human intervention in protocol matching and configuration adjustment, which affects efficiency.
By obtaining data transmission instructions and analyzing the receiver identification information and target transmission data, determining the data receiver and its target data transmission templates and configuration parameters, and automatically realizing data transmission protocol matching and configuration adjustment.
Real-time automation of data transmission is realized, the efficiency and stability of data transmission is improved, and the cost of data transmission is reduced.
Smart Images

Figure CN119814764A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of financial technology, and in particular to a data transmission method, device, equipment, storage medium and product. Background Art
[0002] Since there are many partners at present, and the data transmission protocol versions of each partner are not unified, difficult to manage, and the code adaptation is poor, the instability and transmission cost of data transmission between partners are greatly increased. For example, taking securities companies as an example, there are hundreds of securities companies to connect with, and the versions of data transmission protocols of each securities company are endless, and file transfer anomalies and script incompatibility problems often occur. When file transfer anomalies occur, the existing technology usually requires human intervention to match the data transmission protocol version of the partner, and adjust the data transmission configuration parameters according to the matched data transmission protocol version, which greatly affects the efficiency of data transmission and increases the cost of data transmission.
[0003] Therefore, developing a data transmission template that can automatically select the transmission protocol corresponding to the partner's data in real time, improve the efficiency and stability of data transmission with partners, and reduce the cost of data transmission has become an urgent problem to be solved. Summary of the invention
[0004] The present invention provides a data transmission method, device, equipment, storage medium and product to improve the efficiency and stability of data transmission and reduce the cost of data transmission.
[0005] According to one aspect of the present invention, there is provided a data transmission method, comprising:
[0006] Obtaining a data transmission instruction initiated by a data transmission party, and parsing the data transmission instruction to obtain identification information of a receiving party and target transmission data;
[0007] Determine the data recipient according to the recipient identification information, and determine the target data transmission template of the data recipient and its corresponding data transmission configuration parameters;
[0008] According to the data transmission instruction and based on the data transmission configuration parameters, the target transmission data is transmitted to the data receiving party, so that the data receiving party receives the target transmission data, and a transmission result of the target transmission data is generated and fed back;
[0009] According to the transmission result, a transmission detection is performed on the target transmission data to determine whether the target transmission data is successfully transmitted, and a determination result is obtained.
[0010] According to another aspect of the present invention, there is provided a data transmission device, comprising:
[0011] Obtaining a data transmission instruction initiated by a data transmission party, and parsing the data transmission instruction to obtain identification information of a receiving party and target transmission data;
[0012] Determine the data recipient according to the recipient identification information, and determine the target data transmission template of the data recipient and its corresponding data transmission configuration parameters;
[0013] According to the data transmission instruction and based on the data transmission configuration parameters, the target transmission data is transmitted to the data receiving party, so that the data receiving party receives the target transmission data, and a transmission result of the target transmission data is generated and fed back;
[0014] According to the transmission result, a transmission detection is performed on the target transmission data to determine whether the target transmission data is successfully transmitted, and a determination result is obtained.
[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0016] at least one processor; and
[0017] a memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data transmission method described in any embodiment of the present invention.
[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data transmission method described in any embodiment of the present invention when executed.
[0020] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the data transmission method according to any embodiment of the present invention is implemented.
[0021] The technical solution of the embodiment of the present invention obtains the data transmission instruction initiated by the data transmission party, and parses the data transmission instruction to obtain the receiver identification information and the target transmission data; determines the data receiver according to the receiver identification information, and determines the target data transmission template of the data receiver and its corresponding data transmission configuration parameters; transmits the target transmission data to the data receiver according to the data transmission instruction and based on the data transmission configuration parameters, so that the data receiver receives the target transmission data, generates and feeds back the transmission result of the target transmission data; performs transmission detection on the target transmission data according to the transmission result, determines whether the target transmission data is successfully transmitted, and obtains the judgment result. The technical solution can determine the corresponding data transmission configuration parameters according to the target data transmission template of the data receiver, and can automatically match the data transmission protocol with the data receiver in real time, thereby improving the efficiency and stability of data transmission and reducing the cost of data transmission.
[0022] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 is a flowchart of a data transmission method provided according to Embodiment 1 of the present invention;
[0025] Figure 2 is a flowchart of a data transmission method provided according to Embodiment 2 of the present invention;
[0026] Figure 3 is a structural schematic diagram of a data transmission device provided according to Embodiment 3 of the present invention;
[0027] Figure 4 It is a structural schematic diagram of an electronic device for implementing the data transmission method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Embodiment 1
[0031] Figure 1 A flowchart of a data transmission method is provided for the first embodiment of the present invention. This embodiment is applicable to the case where data transmission is performed with multiple data receivers under different data transmission protocol versions. The method can be performed by a data transmission device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0032] S110: Acquire a data transmission instruction initiated by a data transmission party, and parse the data transmission instruction to obtain identification information of a receiving party and target transmission data.
[0033] Among them, the data transmission instruction can be a transaction request instruction initiated by the data transmission party to perform data transmission to the data receiving party, which can specifically include the identification information of the data receiving party and the target transmission data; the receiving party identification information can be the only data content used to indicate the identity information of the data receiving party.
[0034] Specifically, when data needs to be transmitted to a partner, the data transmission party initiates a transmission request for the target data, and then determines the corresponding receiver identifier and the data content of the target transmission data according to the transmission request for the target data.
[0035] S120: Determine the data receiver according to the receiver identification information, and determine the target data transmission template of the data receiver and its corresponding data transmission configuration parameters.
[0036] Among them, the data transmission template can be a parameter configuration content used to describe and standardize the transmission process of transmitting data from a data transmission party to a data receiving party, and may include a data transmission protocol, a data transmission format, and data transmission configuration parameters, etc., and can be specifically pre-selected and generated based on the data transmission protocol of the data receiving party.
[0037] Among them, the data transmission configuration parameters may refer to various parameters set according to the data transmission protocol during the data transmission process for managing the data transmission process, which may specifically include the data transmission protocol type, such as FTP (File Transfer Protocol), SFTP (Secure Shell File Transfer Protocol), etc., data transmission mode, such as synchronous transmission or asynchronous transmission, transmission data format and encryption authentication method, etc.
[0038] Specifically, after determining the data recipient based on the recipient identification information, the data receiving template and data transmission configuration parameters corresponding to the data recipient are determined. Exemplarily, the data transmission template corresponding to the data recipient may include a data transmission protocol such as the FTP protocol, an XML (eXtensible Markup Language) file format, and an asynchronous transmission file transmission method.
[0039] S130. According to the data transmission instruction and based on the data transmission configuration parameters, the target transmission data is transmitted to the data receiving party, so that the data receiving party receives the target transmission data, and a transmission result of the target transmission data is generated and fed back.
[0040] Optionally, generating and feeding back the transmission result of the target transmission data may be to set the data reception waiting time of the data receiver. If the data reception waiting time is exceeded and the target transmission data is not received, it can be considered that the target data transmission is completed, and the transmission result indicating the completion of the target transmission data transmission is generated and fed back. The reception waiting time may be pre-set by the technician based on experience, such as waiting for 5S or 10S when the transmission data is not received. If the transmission data is not received within the reception waiting time, it can be considered that the transmission is completed. This embodiment does not impose any specific restrictions on this.
[0041] Specifically, after determining the data recipient according to the data transmission instruction, the target transmission data may be transmitted to the data recipient according to the data transmission protocol of the data recipient and the corresponding data transmission configuration parameters. The data recipient is enabled to generate and feedback the transmission result of the target transmission data according to the received target transmission data. Exemplarily, continuing the above example, if the data transmission template corresponding to the data recipient is the FTP transmission protocol, the file format is an XML file and asynchronous file transmission, then the data transmission party may be configured for corresponding data transmission according to the data transmission target, so that the target transmission data is transmitted to the data recipient through the FTP protocol in the XML file format through asynchronous transmission. The data recipient generates and feedbacks the transmission result of the target transmission data according to the received target transmission data.
[0042] S140. According to the transmission result, a transmission detection is performed on the target transmission data to determine whether the target transmission data is successfully transmitted and obtain a determination result.
[0043] The transmission detection of the target transmission data may specifically be detecting whether the data content of the target transmission data transmitted to the data receiving party is complete and accurate.
[0044] Specifically, after the target transmission data is transmitted, the data content of the target transmission data can be judged for integrity and accuracy to obtain a judgment result on whether the target transmission data has been transmitted. Exemplarily, the data content of the target transmission data received by the data receiver can be compared with the data content of the target transmission data transmitted by the data transmission party to obtain a comparison result of the data content. Then, based on the comparison result of the data content, the target transmission data is judged for integrity and accuracy to determine whether the target transmission data has been transmitted; it can also be that a parameter used to identify whether the transmission data has been transmitted is obtained in the pre-set target transmission data, and based on the obtained parameter information, it is determined whether the target transmission data has been transmitted and a judgment result is obtained. This embodiment does not impose specific restrictions on this.
[0045] Optionally, based on the transmission result, a transmission detection is performed on the target transmission data to determine whether the target transmission data is successfully transmitted, and a judgment result is obtained, including: based on the transmission result, obtaining a transmission record of the target transmission data; based on the transmission record, parsing to obtain a first number of data items and a first data content of the target transmission data; obtaining a second number of data items and a second data content of the target transmission data received by a data recipient; determining a data item number comparison result between the first number of data items and the second number of data items, and determining a data content comparison result between the first data content and the second data content; and determining a judgment result based on the data item number comparison result and the data content comparison result.
[0046] The transmission record may be data content used to record detailed information of target transmission data in the data transmission party, wherein the detailed information may include the number of data items, data content and data format of the target transmission data.
[0047] Among them, the first number of data items and the first data content may refer to the number of data items and the data content of the target transmission data transmitted by the data transmission party; the second number of data items and the second data content may refer to the number of data items and the data content of the target transmission data received by the data receiving party.
[0048] Specifically, according to the data transmission result fed back by the data receiving party, the first data number and the first data content of the target transmission data recorded in the data transmitting party can be obtained, and the second data number and the second data content of the target transmission data received by the receiving party can be obtained, and the first data number and the second data content can be compared to obtain the data number comparison result, and the integrity of the target transmission data can be judged; the first data content and the second data content can be compared to obtain the data content comparison result, and the accuracy of the target transmission data can be judged. Then, according to the obtained data number comparison result and the data content comparison result, the integrity and accuracy of the target transmission data are determined. Exemplarily, if the first data number of the target transmission data obtained according to the transmission record is 100, and the first data content is a, and the second data number obtained is 100, and the second data content is a, then it can be considered that the target transmission data transmission is completed, and the target transmission data received by the data receiving party is accurate and complete; if the second data number does not meet 100 and / or the second data content is not a, then it can be considered that the target transmission data transmission has failed.
[0049] This solution realizes data interaction through data transmission templates, and can further compare the number of data items and data content of the data transmitted by the data transmission party with the data received by the data receiving party, which can ensure the stability of data transmission while improving the efficiency of data transmission.
[0050] The technical solution of the embodiment of the present invention obtains the data transmission instruction initiated by the data transmission party, and parses the data transmission instruction to obtain the receiver identification information and the target transmission data; determines the data receiver according to the receiver identification information, and determines the target data transmission template of the data receiver and its corresponding data transmission configuration parameters; transmits the target transmission data to the data receiver according to the data transmission instruction and based on the data transmission configuration parameters, so that the data receiver receives the target transmission data, generates and feeds back the transmission result of the target transmission data; performs transmission detection on the target transmission data according to the transmission result, determines whether the target transmission data is successfully transmitted, and obtains the judgment result. The technical solution can determine the corresponding data transmission configuration parameters according to the target data transmission template of the data receiver, can automatically realize the matching of the data transmission protocol with the data receiver and the setting of the data transmission configuration parameters, can improve the efficiency and stability of data transmission, and reduce the cost of data transmission.
[0051] Embodiment 2
[0052] Figure 2 A flowchart of a data transmission method provided in Embodiment 2 of the present invention is provided. Figure 2 This is a flow chart of a data transmission method provided in Embodiment 2 of the present invention. Based on the above embodiments, this embodiment further optimizes the above data transmission method.
[0053] Furthermore, before the step of "determining the data recipient according to the recipient identification information, and determining the target data transmission template of the data recipient and its corresponding data transmission configuration parameters", add the step of "determining the data transmission protocol of the data recipient, and obtaining the data transmission configuration parameters corresponding to the data transmission protocol; combining the data transmission configuration parameters to generate at least one data transmission template; selecting the target data transmission template from the data transmission templates" to improve the generation method of the target data transmission template. Figure 2 As shown, the method includes:
[0054] S210: Determine the data transmission protocol of the data receiver, and obtain various data transmission configuration parameters corresponding to the data transmission protocol.
[0055] Specifically, when obtaining the data transmission protocol of the data recipient, various parameter configurations for executing data transmission under the data transmission protocol can be obtained. For example, if the data transmission protocol is the FTP protocol, the corresponding transmission configuration parameters may include data encryption algorithm, receiving waiting time and maximum number of requests.
[0056] S220: Combine the data transmission configuration parameters to generate at least one data transmission template.
[0057] Specifically, different configuration parameters can be combined directly according to the data transmission configuration parameters existing in the data transmission protocol to generate multiple standard processes for controlling data transmission. Exemplarily, continuing the above example, if the data communication protocol of the data receiver is FTP, the transmission configuration parameters receiving waiting time and the maximum number of requests can be set, such as the receiving waiting time can be 5S, the maximum number of requests can be 3 times, and the data transmission template can be generated accordingly.
[0058] Optionally, each data transmission configuration parameter is combined to generate multiple data transmission templates, including: determining the parameter type of each data transmission configuration parameter; combining each data transmission configuration parameter according to the parameter type of each data transmission configuration parameter to generate multiple data transmission templates; the parameter type includes a switch parameter type and a threshold parameter type.
[0059] Among them, the parameter type can refer to configuration parameters with different functions in the transmission configuration parameters, such as the maximum number of requests, which is used to configure the maximum number of retries when data transmission fails, that is, the threshold parameter type; it can also be a data encryption algorithm, which is used to enable data encryption during data transmission and whether to specify the encryption algorithm, that is, the switch parameter type.
[0060] Specifically, different data transmission configuration parameters can be combined according to the parameter type of each data transmission configuration parameter to generate multiple different data transmission templates. Exemplarily, multiple different data transmission templates may include template A, template B, and template C, wherein template A may only include the threshold parameter type, and the data transmission configuration parameters set in template A may include the maximum number of requests and the receiving waiting time; template B may include the threshold parameter type and the switch parameter type, and the data transmission configuration parameters set in template B may include the maximum number of requests and the encryption algorithm; template C may also include the threshold parameter type and the switch parameter type, and the data transmission configuration parameters set in template C may include the maximum number of requests, the receiving waiting time, and the encryption algorithm, thereby generating multiple different data transmission templates, and this example does not impose specific restrictions on this.
[0061] This solution can utilize the corresponding data transmission configuration parameters in different data transmission protocols to automatically generate a data transmission template adapted to the data receiver, which can greatly improve the efficiency of data transmission and the data transmission performance of the data transmission protocol.
[0062] S230: Select a target data transmission template from each data transmission template.
[0063] Specifically, a template data transmission template suitable for the data recipient can be obtained based on the generated multiple data transmission templates. For example, continuing with the above example, data transmission tests can be performed with the data recipient based on the generated data transmission templates A, B, and C, and data transmission test results of different data transmission templates can be obtained. Specifically, if the data transmission duration and transmission effect in the data transmission test results obtained based on data transmission template A are better than template B and template C, then data transmission template A can be selected as the target data transmission template for the data recipient.
[0064] Optionally, a target data transmission template is selected from each data transmission template, including: using each data transmission template to perform a data transmission test on a data receiver in turn to obtain a data transmission test result; selecting a candidate data transmission template from each data transmission template based on the data transmission test result; and selecting a target data transmission template from the candidate data transmission templates.
[0065] The candidate data transmission template may be a data transmission template that can execute data transmission between a data transmission party and a data reception party.
[0066] Specifically, data transmission tests can be performed to the data receiver in turn according to the generated multiple data transmission templates, and feedback results from the data receiver according to the data transmission template can be obtained. If the feedback result is that the data transmission is successful, the template state of the data transmission template can be identified as successful, and the template can be determined as a candidate data transmission template; if the feedback result is that the data transmission fails, the template state of the data transmission template can be identified as failed. Furthermore, a target data transmission template can also be selected based on the determined candidate data transmission template. Exemplarily, if the generated data transmission template can also include template D, template E and template F, data transmission tests are performed with the data receiver in turn through template D, template E and template F. Furthermore, the result of the transmission test can be that template E passes the data transmission test, then template E can be determined as a candidate data transmission template, and template E can be selected as the template data transmission template. This example does not impose specific restrictions on this.
[0067] This solution can perform data transmission tests with a data recipient based on multiple generated data transmission templates, and then select candidate data transmission templates that can be used for data transmission with the data recipient, and determine a target data transmission template, thereby realizing automatic selection of data transmission templates and ensuring the efficiency and stability of data transmission between the data transmission party and the data recipient.
[0068] Optionally, selecting a target data transmission template from candidate data transmission templates includes: using the candidate data transmission template to perform data transmission with a data receiver and performing a probe test to obtain a probe test result; and selecting a target data transmission template from the candidate data transmission templates based on the probe test result.
[0069] The probe test may be used to test the data transmission performance of the candidate data transmission templates, and specifically may be used to obtain the rate and time of data transmission, so as to obtain the data transmission performance of different candidate data transmission templates.
[0070] Specifically, the candidate data transmission template can be used to perform a data transmission test with the data receiving party, and through a probe test, a data transmission template with better data transmission performance among the candidate data transmission templates can be obtained and used as a template data transmission template. Exemplarily, continuing the above example, the result of the transmission test may be that template E and template F have passed the data transmission test, then template E and template F can be determined as candidate data transmission templates. Furthermore, data transmission is performed to the data receiving party in turn through template E and template F, and a probe test is performed. If the data transmission efficiency of template E is 30M / S and the data transmission time is 10S; the data efficiency of template F is 15M / S and the data transmission time is 25S, then candidate data transmission template E can be selected as the template data transmission template.
[0071] This solution can select the target data transmission template by performing probe tests on the data transmission templates according to the principle of optimization, which not only improves the efficiency of data transmission, but also enhances the performance of the data transmission protocol of the data receiver and ensures the stability of data transmission.
[0072] S240: Acquire a data transmission instruction initiated by the data transmission party, and parse the data transmission instruction to obtain the recipient identification information and the target transmission data.
[0073] S250: Determine the data receiver according to the receiver identification information, and determine the target data transmission template of the data receiver and its corresponding data transmission configuration parameters.
[0074] S260. According to the data transmission instruction and based on the data transmission configuration parameters, the target transmission data is transmitted to the data receiving party, so that the data receiving party receives the target transmission data, and a transmission result of the target transmission data is generated and fed back.
[0075] S270. According to the transmission result, a transmission detection is performed on the target transmission data to determine whether the target transmission data is successfully transmitted, and a determination result is obtained.
[0076] The technical solution of the embodiment of the present invention determines the data transmission protocol of the data receiver, obtains the corresponding data transmission configuration parameters, combines the data transmission configuration parameters, generates at least one data transmission template, and selects the target data transmission template from the data transmission templates. Furthermore, when the data transmission instruction initiated by the data transmission party is obtained, the data transmission instruction is parsed to obtain the identification information of the receiving party and the target transmission data. According to the identification information of the receiving party, the target data transmission template of the data receiver and its corresponding data transmission configuration parameters are determined; according to the data transmission instruction, based on the data transmission configuration parameters, the target transmission data is transmitted to the data receiver for the data receiver to receive the target transmission data, generate and feedback the transmission result of the target transmission data, and judge whether the target transmission data is successfully transmitted to obtain the judgment result. This technical solution can generate at least one data transmission template according to the data transmission protocol of the data receiver and the corresponding data transmission configuration parameters, and automatically select the target data transmission template, which solves the problem of abnormal data transmission caused by the transmission protocol version change; further, the corresponding data transmission configuration parameters can also be determined according to the target data transmission template, which can automatically realize the matching of the data transmission protocol between the data transmission party and the data receiver, improve the efficiency and stability of data transmission, and reduce the cost of data transmission.
[0077] Embodiment 3
[0078] Figure 3 A schematic diagram of the structure of a data transmission device provided in Embodiment 3 of the present invention. A data transmission device provided in an embodiment of the present invention can be used to perform data transmission with multiple data receiving parties under different data transmission protocol versions. The data transmission device can be implemented in the form of hardware and / or software, such as Figure 3 As shown, it specifically includes: a data transmission instruction acquisition module 310, a data recipient determination module 320, a target data transmission module 330 and a target transmission data judgment module 340. Among them,
[0079] The data transmission instruction acquisition module 310 is used to acquire the data transmission instruction initiated by the data transmission party, and perform instruction parsing on the data transmission instruction to obtain the recipient identification information and the target transmission data.
[0080] The data recipient determination module 320 is used to determine the data recipient according to the recipient identification information, and determine the target data transmission template of the data recipient and its corresponding data transmission configuration parameters.
[0081] The target data transmission module 330 is used to transmit the target transmission data to the data receiver according to the data transmission instruction and based on the data transmission configuration parameters, so that the data receiver can receive the target transmission data, and generate and feedback the transmission result of the target transmission data.
[0082] The target transmission data judgment module 340 is used to perform transmission detection on the target transmission data according to the transmission result, judge whether the target transmission data is successfully transmitted, and obtain a judgment result.
[0083] The technical solution obtains the data transmission instruction initiated by the data transmission party, and parses the data transmission instruction to obtain the receiver identification information and the target transmission data; determines the data receiver according to the receiver identification information, and determines the target data transmission template of the data receiver and its corresponding data transmission configuration parameters; transmits the target transmission data to the data receiver according to the data transmission instruction and based on the data transmission configuration parameters, so that the data receiver receives the target transmission data, generates and feeds back the transmission result of the target transmission data; performs transmission detection on the target transmission data according to the transmission result, determines whether the target transmission data is successfully transmitted, and obtains the judgment result. The technical solution can determine the corresponding data transmission configuration parameters according to the target data transmission template of the data receiver, and can automatically match the data transmission protocol with the data receiver in real time, thereby improving the efficiency and stability of data transmission and reducing the cost of data transmission.
[0084] Optionally, the device further comprises:
[0085] The configuration parameter acquisition module is used to determine the data transmission protocol of the data recipient and obtain the data transmission configuration parameters corresponding to the data transmission protocol before determining the data recipient according to the recipient identification information and determining the target data transmission template of the data recipient and its corresponding data transmission configuration parameters.
[0086] The data transmission template generation module is used to combine the data transmission configuration parameters to generate at least one data transmission template.
[0087] The target template selection module is used to select a target data transmission template from each of the data transmission templates.
[0088] Optionally, a data transmission template generation module is used to:
[0089] Determining a parameter type of each of the data transmission configuration parameters;
[0090] According to the parameter type of each of the data transmission configuration parameters, the data transmission configuration parameters are combined to generate a plurality of data transmission templates; the parameter type includes a switch parameter type and a threshold parameter type.
[0091] Optional, target template selection module, specifically used for:
[0092] Using each of the data transmission templates to perform data transmission tests on the data receiving party in turn to obtain data transmission test results;
[0093] Selecting a candidate data transmission template from each of the data transmission templates according to the data transmission test result;
[0094] A target data transmission template is selected from the candidate data transmission templates.
[0095] Optional, target template selection module, specifically used for:
[0096] Using the candidate data transmission template to perform data transmission with the data receiving party and perform a probe test to obtain a probe test result;
[0097] A target data transmission template is selected from the candidate data transmission templates according to the probe test result.
[0098] Optionally, the target transmission data determination module 340 is specifically configured to:
[0099] According to the transmission result, obtaining the transmission record of the target transmission data;
[0100] According to the transmission record, the first data number and the first data content of the target transmission data are obtained by parsing;
[0101] Acquire the number of second data items and second data content of the target transmission data received by the data recipient;
[0102] Determine a data item number comparison result between the first data item number and the second data item number, and determine a data content result between the first data content and the second data content;
[0103] A judgment result is determined based on the comparison result of the number of data items and the comparison result of the data content.
[0104] The data transmission device provided in the embodiment of the present invention can execute the data transmission method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0105] Embodiment 4
[0106] Figure 4A schematic diagram of the structure of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0107] like Figure 4 As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0108] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0109] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 41 performs the various methods and processes described above, such as a data transmission method.
[0110] In some embodiments, the data transmission method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the data transmission method described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to perform the data transmission method in any other appropriate manner (e.g., by means of firmware).
[0111] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0112] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0113] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0114] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may 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 input, voice input, or tactile input).
[0115] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0116] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0117] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0118] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A data transmission method, characterized in that: include: Obtaining a data transmission instruction initiated by a data transmission party, and parsing the data transmission instruction to obtain identification information of a receiving party and target transmission data; Determine the data recipient according to the recipient identification information, and determine the target data transmission template of the data recipient and its corresponding data transmission configuration parameters; According to the data transmission instruction and based on the data transmission configuration parameters, the target transmission data is transmitted to the data receiving party, so that the data receiving party receives the target transmission data, and a transmission result of the target transmission data is generated and fed back; According to the transmission result, a transmission detection is performed on the target transmission data to determine whether the target transmission data is successfully transmitted, and a determination result is obtained.
2. The method according to claim 1, characterized in that Before determining the data recipient according to the recipient identification information and determining the target data transmission template of the data recipient and its corresponding data transmission configuration parameters, the method further includes: Determine the data transmission protocol of the data recipient, and obtain various data transmission configuration parameters corresponding to the data transmission protocol; Combining the data transmission configuration parameters to generate at least one data transmission template; A target data transmission template is selected from the data transmission templates.
3. The method according to claim 2, characterized in that The combining of the data transmission configuration parameters to generate a plurality of data transmission templates includes: Determining a parameter type of each of the data transmission configuration parameters; According to the parameter type of each of the data transmission configuration parameters, the data transmission configuration parameters are combined to generate a plurality of data transmission templates; the parameter type includes a switch parameter type and a threshold parameter type.
4. The method according to claim 2, characterized in that: The selecting a target data transmission template from each of the data transmission templates includes: Using each of the data transmission templates to perform data transmission tests on the data receiving party in turn to obtain data transmission test results; Selecting a candidate data transmission template from each of the data transmission templates according to the data transmission test result; A target data transmission template is selected from the candidate data transmission templates.
5. The method according to claim 2, characterized in that: The selecting a target data transmission template from the candidate data transmission templates includes: Using the candidate data transmission template to perform data transmission with the data receiving party and perform a probe test to obtain a probe test result; A target data transmission template is selected from the candidate data transmission templates according to the probe test result.
6. The method according to claim 1, characterized in that According to the transmission result, a transmission detection is performed on the target transmission data to determine whether the target transmission data is successfully transmitted, and a determination result is obtained, including: According to the transmission result, obtaining the transmission record of the target transmission data; According to the transmission record, the first data number and the first data content of the target transmission data are obtained by parsing; Acquire the number of second data items and second data content of the target transmission data received by the data recipient; Determine a data item number comparison result between the first data item number and the second data item number, and determine a data content result between the first data content and the second data content; A judgment result is determined based on the comparison result of the number of data items and the comparison result of the data content.
7. A data transmission device, characterized in that: include: A data transmission instruction acquisition module is used to acquire the data transmission instruction initiated by the data transmission party, and perform instruction parsing on the data transmission instruction to obtain the recipient identification information and the target transmission data; A data recipient determination module, used to determine the data recipient according to the recipient identification information, and determine the target data transmission template of the data recipient and its corresponding data transmission configuration parameters; a target data transmission module, configured to transmit the target transmission data to the data receiving party according to the data transmission instruction and based on the data transmission configuration parameters, so that the data receiving party can receive the target transmission data, and to generate and feed back a transmission result of the target transmission data; The target transmission data judgment module is used to perform transmission detection on the target transmission data according to the transmission result, judge whether the target transmission data is successfully transmitted, and obtain a judgment result.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data transmission method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data transmission method according to any one of claims 1 to 6 when executed.
10. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by a processor, implements the data transmission method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Data transmission method, device and equipment and readable storage medium
CN115202906A
Data transmission method and system, electronic equipment and storage medium
CN115604343A
Data transmission method and device based on TCP, storage medium and electronic equipment
CN117255086A
Data transmission method and device, equipment and storage medium
CN117294773A
Data transmission processing method and device, intelligent household electrical appliance and computer storage medium
CN118573722A