Data communication method, device and storage medium

By building a centralized data conversion platform, the communication formats of the data sender and receiver are dynamically identified and matched, solving the resource waste and management problems of traditional data converter deployment methods and achieving efficient and reliable data communication.

CN122437885APending Publication Date: 2026-07-21GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGZHOU SHIYUAN ELECTRONICS CO LTD
Filing Date
2025-01-21
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

Traditional data converters are deployed in a one-to-one manner, which leads to redundant deployment work, waste of resources, increased management difficulty, and affects the efficiency and quality of data communication.

Method used

A centralized data conversion platform is built, with multiple communication format conversion programs pre-set to dynamically identify and match the formats of the data sender and receiver, thereby realizing data format conversion.

Benefits of technology

It simplifies the deployment process, reduces resource consumption, improves the efficiency and reliability of data communication, and has good scalability and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122437885A_ABST
    Figure CN122437885A_ABST
Patent Text Reader

Abstract

The application relates to a data communication method, device and storage medium. The method can dynamically select a communication format conversion program for data conversion according to needs by constructing a data conversion platform, so that data communication between a data sending end and a data receiving end in different data communication formats is realized. Specifically, after receiving data, the platform identifies the data communication format of the sending end and the data communication format of the receiving end, obtains a matched communication format conversion program for data conversion, and then sends the converted data to the receiving end. Therefore, unified management and flexible scheduling of data conversion are realized, and repeated deployment and resource waste are avoided. Meanwhile, through the centralized data conversion platform, fast and accurate conversion between different data communication formats is realized, and the efficiency and reliability of data communication are improved. In addition, the method has strong scalability and can cope with new data communication formats that may appear in the future, thereby providing technical support for data exchange and sharing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data communication technology, and in particular to a data communication method, device and storage medium. Background Technology

[0002] In today's information society, data exchange and sharing have become an indispensable part of all industries. External organizations and schools often need to transmit data with their own data centers. However, because the data communication formats used by different data senders and receivers are not entirely the same, data converters are needed to convert the data formats to ensure that the data is delivered to the target system accurately. However, traditional data converter deployment methods have many shortcomings. Specifically, existing solutions often deploy a separate data converter service for each specific pair of data senders and receivers. This "one-to-one" deployment model not only leads to a large amount of repetitive deployment work but also wastes a great deal of computing resources and storage space. As the number of data converters continues to increase, maintenance costs rise sharply, and management difficulty also increases, seriously affecting the efficiency and quality of data communication. Summary of the Invention

[0003] Based on this, the purpose of this application is to provide a data communication method that enables flexible and efficient conversion between different data communication formats, thereby simplifying the deployment process and reducing resource consumption.

[0004] A first aspect of this application provides a data communication method applied to a data conversion platform, wherein the data conversion platform has a preset communication format conversion program between several communication formats; the method includes the following steps:

[0005] When the first data sent from the data sender to the data receiver is received, a communication format conversion program between the first data communication format of the data sender and the second data communication format of the data receiver is obtained; the first data is communication data using the first data communication format; the first data communication format is a data communication format supported by the data sender;

[0006] The first data is converted into second data by the communication format conversion program; the second data is communication data using the second data communication format; the second data communication format is a data communication format supported by the data receiving end;

[0007] The second data is sent to the data receiving end.

[0008] A second aspect of this application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed, it controls the device on which the computer-readable storage medium is located to implement the method described in any one of the embodiments of this application.

[0009] A third aspect of this application provides an electronic device including a processor, a memory, and a computer-readable program stored in the memory, wherein the computer-readable program, when executed by the processor, implements the steps of the method described in any one of the embodiments of this application.

[0010] This application constructs a data conversion platform. This platform has pre-set conversion programs for several communication formats, enabling it to dynamically select and apply the appropriate conversion program based on the data communication formats of the data sender and receiver. Specifically, when first data is received from the data sender, the platform first identifies the first data communication format used by the data and determines the second data communication format supported by the data receiver. Then, the platform retrieves a conversion program from a conversion program library that matches these two formats and uses this program to convert the first data into the second data. Finally, the platform sends the converted second data to the data receiver, completing the entire data communication process. This application achieves unified management and flexible scheduling of data conversion services, effectively avoiding the problems of redundant deployment and resource waste in traditional solutions. Simultaneously, through a centralized data conversion platform, it achieves fast and accurate conversion between different data communication formats, improving the efficiency and reliability of data communication. Furthermore, this application has good scalability and flexibility, easily handling new data communication formats that may emerge in the future, providing strong technical support for data exchange and sharing.

[0011] To better understand and implement this application, the following detailed description is provided in conjunction with the accompanying drawings. Attached Figure Description

[0012] Figure 1 This is a schematic diagram illustrating an application scenario of the data communication method according to an embodiment of this application;

[0013] Figure 2 This is a flowchart illustrating the data communication method according to an embodiment of this application;

[0014] Figure 3 This is a schematic diagram illustrating the steps of determining the data communication format based on the first data and determining the communication format conversion procedure in an embodiment of this application;

[0015] Figure 4 This is a schematic diagram illustrating the steps of determining the communication format conversion procedure based on a preset time period in an embodiment of this application;

[0016] Figure 5 This is a schematic diagram illustrating the steps of determining the communication format conversion procedure in different ways according to different current processing modes in the embodiments of this application;

[0017] Figure 6 This is a schematic diagram illustrating the steps in this application embodiment to determine whether the communication format conversion program is being executed at the current time;

[0018] Figure 7 This is a schematic diagram illustrating the steps of obtaining the communication format conversion program from the target data server in an embodiment of this application;

[0019] Figure 8 This is a schematic diagram illustrating the steps of merging the target task code into the communication format conversion program in an embodiment of this application;

[0020] Figure 9 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0021] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings. Wherein, when the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements.

[0022] It should be understood that the embodiments described below do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of this application.

[0023] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application are also intended to include the plural forms unless the context clearly indicates otherwise. Furthermore, in the description of this application, unless otherwise stated, “a plurality” means two or more. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more associated listed items, for example, A and / or B, which can represent: A alone, A and B together, and B alone; the character “ / ” generally indicates that the preceding and following objects are in an “or” relationship.

[0024] It should be understood that although the terms first, second, third, etc., may be used in this application to describe various information, this information should not be limited to these terms, and these terms are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances. Depending on the context, the word "if" as used in this application can be interpreted as "when," "when," or "in response to determination."

[0025] This application relates to the field of data communication technology. In today's information society, data exchange and sharing have become an indispensable part of all industries. External organizations, schools, and other entities often need to transmit data with their own data centers. However, because the data communication formats used by different data senders and receivers are not entirely the same, data converters are needed to convert the data formats to ensure that the data is delivered to the target system accurately. However, traditional data converter deployment methods have many shortcomings. Specifically, existing solutions often deploy a separate data converter service for each specific pair of data senders and receivers. This "one-to-one" deployment model not only leads to a large amount of repetitive deployment work but also wastes a great deal of computing resources and storage space. As the number of data converters continues to increase, maintenance costs rise sharply, and management difficulty also increases, seriously affecting the efficiency and quality of data communication.

[0026] To address the aforementioned issues, the technical concept of this application is to construct a centralized and flexible data conversion platform, and to pre-define the communication format conversion programs that may be used. Thus, when the data conversion platform receives data sent from the data sender to the data receiver, it can dynamically identify and match the communication format conversion programs between the data sender and the data receiver, and automatically complete the data format conversion work through the communication format conversion programs. This avoids the one-to-one converter deployment method in traditional solutions, simplifies the deployment process, reduces resource consumption, and significantly improves the efficiency and flexibility of data communication.

[0027] Please refer to Figure 1 , Figure 1 The application scenario of the data communication method in this application embodiment includes a data sending end 101, a data receiving end 102, and a data conversion platform 103. The data conversion platform 103 is located between the data sending end 101 and the data receiving end 102, establishing data communication between them.

[0028] In addition, the application scenarios of this application embodiment may also include a management platform 104, through which users can configure the data conversion platform 103. Please refer to the following description of the embodiments for details.

[0029] Please refer to Figure 2 This application provides a data communication method applied to a data conversion platform, wherein the data conversion platform has a pre-set communication format conversion program between several communication formats; the method includes the following steps:

[0030] S101: When first data is received from the data sender to the data receiver, a communication format conversion program is obtained between the first data communication format of the data sender and the second data communication format of the data receiver; the first data is communication data using the first data communication format; the first data communication format is a data communication format supported by the data sender;

[0031] S102: The first data is converted into second data by the communication format conversion program; the second data is communication data using the second data communication format; the second data communication format is a data communication format supported by the data receiving end;

[0032] S103: Send the second data to the data receiving end.

[0033] This application constructs a data conversion platform. This platform has pre-set conversion programs for several communication formats, enabling it to dynamically select and apply the appropriate conversion program based on the data communication formats of the data sender and receiver. Specifically, when first data is received from the data sender, the platform first identifies the first data communication format used by the data and determines the second data communication format supported by the data receiver. Then, the platform retrieves a conversion program from a conversion program library that matches these two formats and uses this program to convert the first data into the second data. Finally, the platform sends the converted second data to the data receiver, completing the entire data communication process. This application achieves unified management and flexible scheduling of data conversion services, effectively avoiding the problems of redundant deployment and resource waste in traditional solutions. Simultaneously, through a centralized data conversion platform, it achieves fast and accurate conversion between different data communication formats, improving the efficiency and reliability of data communication. Furthermore, this application has good scalability and flexibility, easily handling new data communication formats that may emerge in the future, providing strong technical support for data exchange and sharing.

[0034] The data communication method in this application embodiment uses a data conversion platform as the execution entity. The data conversion platform is essentially a computer device. The following provides a detailed description of each step.

[0035] For step S101, when the first data sent by the data sender to the data receiver is received, a communication format conversion program between the first data communication format of the data sender and the second data communication format of the data receiver is obtained; the first data is communication data using the first data communication format; the first data communication format is a data communication format supported by the data sender.

[0036] In this step, when the data conversion platform receives the first data from the data sender, it first needs to identify the first data communication format of the data sender and the second data communication format of the data receiver, and then retrieve the corresponding communication format conversion program from the communication format conversion program library. This communication format conversion program can support format conversion between these two data communication formats. The communication format conversion program library is a collection of various communication format conversion programs, capable of supporting conversion between multiple different data formats. The communication format conversion program library can be built into the data conversion platform; alternatively, it can be stored on the target data server, and the data conversion platform downloads the required communication format conversion program by accessing the target data server.

[0037] Please refer to Figure 3 In one embodiment, step S101, which involves obtaining a communication format conversion program between the first data communication format of the data sender and the second data communication format of the data receiver when the first data sent from the data sender to the data receiver is received, includes:

[0038] Step S1011: When the first data sent by the data sender to the data receiver is received, the first data communication format of the data sender and the second data communication format of the data receiver are determined based on the first data.

[0039] Step S1012: Based on the first data communication format and the second data communication format, obtain a communication format conversion program between the first data communication format and the second data communication format.

[0040] In step S1011, upon receiving the first data sent from the data sender to the data receiver, the data conversion platform first parses the header information or metadata of the data packet to identify the first data communication format used by the data. This step typically involves parsing and identifying information such as the format, encoding, and fields of the data packet to ensure accurate acquisition of the communication format used by the data sender. Simultaneously, the data conversion platform also determines the second data communication format of the data receiver based on the receiver's identification information or pre-set configuration. This step may involve querying and matching information such as the data receiver's type, version, and protocol to ensure accurate acquisition of the communication formats supported by the data receiver.

[0041] In step S1012, after determining the data communication formats used by the data sender and receiver, the data conversion platform further retrieves conversion programs that match these two formats from the communication format conversion program library. This step typically involves searching and matching the conversion program library to find a conversion program that supports conversion between the two formats. Specifically, the data conversion platform searches the conversion program library based on the combination of the first and second data communication formats. Once a matching conversion program is found, the data conversion platform loads it into memory and prepares to perform the data format conversion operation.

[0042] This embodiment's data conversion platform can automatically identify different data communication formats between the data sender and receiver based on the first data, and perform data format conversion by obtaining the corresponding communication format conversion program from the communication format conversion program library. This technical solution significantly simplifies the deployment and maintenance of the data converter, reduces resource consumption, and improves the efficiency and reliability of data communication. Furthermore, this embodiment's technical solution also has good scalability and flexibility, easily handling new data communication formats that may emerge in the future. By continuously updating and improving the preset communication format conversion program library, it can be ensured that the data conversion platform always supports the latest data communication formats, thereby meeting ever-changing data communication needs.

[0043] In one embodiment, the first data includes a first data communication format identifier of the data sending end and a second data communication format identifier of the data receiving end; step S1011, which involves determining the first data communication format of the data sending end and the second data communication format of the data receiving end based on the first data, includes:

[0044] Step S10111: Based on the first data communication format identifier and the second data communication format identifier in the first data, determine the first data communication format of the data sending end and the second data communication format of the data receiving end, respectively.

[0045] In this embodiment, when the first data sent from the data sender to the data receiver is received, the data packet already contains the first data communication format identifier of the data sender and the second data communication format identifier of the data receiver. This design allows the data conversion platform to directly determine the data communication format used by the data sender and the data receiver by parsing the identifier information in the data packet. Specifically, when the data conversion platform receives the first data, it first parses the header or specific fields of the data packet to find the first and second data communication format identifiers. These identifiers are usually in the form of specific codes or strings, and can uniquely identify a data communication format. Once these identifiers are obtained, the data conversion platform matches them with a built-in data communication format database. This database contains various known data communication formats and their corresponding identifier information. Through comparison and matching, the data conversion platform can quickly determine the first data communication format used by the data sender and the second data communication format that the data receiver expects to receive.

[0046] In summary, this embodiment provides an efficient and intuitive method for identifying data communication formats. Since the data packet directly contains the data communication format identifiers of the data sender and receiver, the data conversion platform can quickly determine the data communication format used by both parties without performing complex format parsing and identification operations. This technical solution not only simplifies the data conversion process and reduces processing complexity but also improves the efficiency and accuracy of data communication.

[0047] In one embodiment, the first data includes a first device identifier of the data sending end and a second device identifier of the data receiving end; step S1011, which involves determining the first data communication format of the data sending end and the second data communication format of the data receiving end based on the first data, includes:

[0048] Step S10112: Based on the first device identifier and the second device identifier in the first data, obtain the data communication format bound to the first device identifier as the first data communication format of the data sending end, and obtain the data communication format bound to the second device identifier as the second data communication format of the data receiving end.

[0049] In this embodiment, the first data sent from the data sender to the data receiver includes a first device identifier of the data sender and a second device identifier of the data receiver. The device identifier uniquely identifies a device, and thus the data communication format associated with that device can also be uniquely determined.

[0050] In step S10112, when the data conversion platform receives the first data containing device identifiers, it first parses out the first device identifier and the second device identifier. These identifiers typically exist in the form of specific codes, serial numbers, or MAC addresses, and can uniquely identify a device. Subsequently, the data conversion platform matches these device identifiers with information pre-stored in a device-format mapping database. This database contains the identification information of multiple devices and the data communication formats they each use. Through comparison and matching, the data conversion platform can accurately obtain the data communication format bound to the first device identifier as the first data communication format of the data sender; simultaneously, it can also obtain the data communication format bound to the second device identifier as the second data communication format of the data receiver.

[0051] In summary, this embodiment determines the data communication format of the data sender and receiver by using the device identifier in the first data. By directly obtaining the data communication format bound to the device identifier, the data conversion platform can avoid format recognition errors, thereby improving the accuracy and reliability of data communication.

[0052] Please refer to Figure 4 In one embodiment, step S101, which involves obtaining a communication format conversion program between the first data communication format of the data sender and the second data communication format of the data receiver when the first data sent from the data sender to the data receiver is received, includes:

[0053] Step S1013: When the first data sent from the data sender to the data receiver is received, determine whether the current time is within a preset time period;

[0054] Step S1014: When the current time is within a preset time period, obtain the communication format conversion program specified within the preset time period; when the specified communication format conversion program is a communication format conversion program between the first data communication format and the second data communication format, determine that the specified communication format conversion program is a communication format conversion program between the first data communication format and the second data communication format.

[0055] In step S1013, when the first data sent from the data sender to the data receiver is received, it is first determined whether the current time is within a preset time period. This determination aims to identify whether the data is within a specific time window, which is related to the specific needs of data communication. For example, in some cases, a specific communication format conversion program is used within a specific time period to adapt to the data communication needs within that period.

[0056] In step S1014, once it is determined that the current time is indeed within a preset time period, the specified communication format conversion program for that preset time period is retrieved. This step can be done by accessing a schedule or configuration information stored in the system or device to retrieve the communication format conversion program for the corresponding time period. Further, it is checked whether the specified communication format conversion program is precisely the required communication format conversion program between the first and second data communication formats. If a match is found, meaning the specified communication format conversion program can complete the conversion from the first data communication format to the second data communication format, then the specified communication format conversion program is determined to be the required communication format conversion program.

[0057] In summary, this embodiment achieves intelligent selection and determination of a communication format conversion program suitable for the current environment based on the current time and a preset time period when the first data is received from the data sender. This method not only improves the flexibility and adaptability of data communication but also ensures that the most suitable communication format conversion program is used within a specific time window, thereby optimizing the efficiency, security, and stability of data transmission. Furthermore, this embodiment allows for fine-grained management of the data communication process through the setting of preset time periods and specified communication format conversion programs, helping to meet communication needs in different scenarios.

[0058] In one embodiment, after step S1014, which involves obtaining a communication format conversion program specified within a preset time period when the current time falls within that time period, the method further includes the following step:

[0059] Step S10141: When the specified communication format conversion program is not a communication format conversion program between the first data communication format and the second data communication format, the first data is not processed.

[0060] In this embodiment, after executing step S1014, i.e., successfully obtaining the communication format conversion program specified within the preset time period, it is further determined whether the specified communication format conversion program is specifically used for the conversion between the first data communication format of the data sender and the second data communication format of the data receiver. If the determination result shows that the specified communication format conversion program is used for the conversion between these two data formats, the first data will continue to be processed according to the established process, i.e., the first data will be converted from the first data communication format to the second data communication format, or vice versa, to meet the subsequent data transmission or processing requirements. However, if the determination result shows that the specified communication format conversion program is not used for the conversion between these two data formats (it may be used for the conversion between other data formats), then according to the instruction of step S10141, no processing will be performed on the first data. This means that the first data will not be erroneously attempted to be converted through a mismatched communication format conversion program, thereby avoiding possible data corruption or transmission errors.

[0061] In summary, this embodiment further enhances the accuracy and security of data processing based on the original technical solution. It ensures that the first data is processed only when a correctly matching communication format conversion program is obtained, effectively avoiding potential problems caused by using an incorrect conversion program. This design not only improves the efficiency of data processing but also reduces the risk of errors caused by data format mismatches, providing a strong guarantee for accurate data transmission and efficient processing.

[0062] Please refer to Figure 5 In one embodiment, step S101, which involves obtaining a communication format conversion program between the first data communication format of the data sender and the second data communication format of the data receiver when the first data sent from the data sender to the data receiver is received, includes:

[0063] Step S1015: When the first data sent from the data sender to the data receiver is received, the current processing mode of the data conversion platform is obtained.

[0064] Step S1016: When the current processing mode is parsing mode, determine the first data communication format of the data sending end and the second data communication format of the data receiving end based on the first data; according to the first data communication format and the second data communication format, obtain the communication format conversion program between the first data communication format and the second data communication format;

[0065] Step S1017: When the current processing mode is automatic mode, determine whether the current time is within a preset time period; when the current time is within the preset time period, obtain the communication format conversion program specified within the preset time period; when the specified communication format conversion program is a communication format conversion program between the first data communication format and the second data communication format, determine that the specified communication format conversion program is a communication format conversion program between the first data communication format and the second data communication format.

[0066] In step S1015, when the data sender sends the first data to the data receiver, the current processing mode of the data conversion platform is first obtained. The processing mode here refers to the working mode adopted by the data conversion platform when performing data format conversion tasks, and can be set according to different application scenarios or user needs.

[0067] In step S1016, if the current processing mode is set to parsing mode, in this mode, as in the above embodiment, based on the received first data, the first data communication format used by the data sender and the second data communication format of the data receiver are determined by parsing its specific identifier or metadata. Once these two data communication formats are determined, a communication format conversion program matching these two formats is obtained based on this information.

[0068] In step S1017, if the current processing mode is set to automatic mode, the data format conversion task is executed according to preset rules and logic, such as obtaining a specified communication format conversion program according to a preset time period in the above embodiment. Specifically, it is first determined whether the current time is within a preset time period. This time period can be set by the user, and can be set according to the peak period of historical data conversion tasks, user habits, or specific business needs. If the current time is exactly within this time period, the specified communication format conversion program within that time period is obtained. Furthermore, it is determined whether this specified communication format conversion program is used for the conversion between the first data communication format and the second data communication format. If the determination result is yes, this program is used to execute the data format conversion task.

[0069] In summary, this embodiment introduces two processing modes (parsing mode and automatic mode) for the data conversion platform. These two different processing modes correspond to the communication format conversion program determined based on the first data and the communication format conversion program determined based on a preset time period, respectively, as described in the previous embodiment. Users can set the processing mode to implement different working logics of the data conversion platform to adapt to the needs of different application scenarios.

[0070] In one embodiment, before step S1015, which involves obtaining the current processing mode of the data conversion platform when the first data sent from the data sender to the data receiver is received, the method further includes the following step:

[0071] Step S10151: Determine if there is a communication format conversion program that needs to be executed at the current time; if yes, set the current processing mode to automatic mode; if no, set the current processing mode to parsing mode.

[0072] In step S10151, before the data conversion platform receives the first data sent from the data sender to the data receiver, a preliminary judgment step is first performed to determine whether there is a communication format conversion program that needs to be executed at the current time. This judgment can be based on various factors, such as a preset task plan, a user-defined time window, or internal system optimization strategies.

[0073] If a communication format conversion program needs to be executed at the current time, it indicates a potentially high demand for data conversion or an upcoming specific conversion task. To quickly respond to these demands and optimize processing efficiency, the current processing mode is automatically set to "Automatic Mode." In Automatic Mode, the specified communication format conversion program will be retrieved and executed to perform the data communication format conversion. This application scenario typically involves the user specifying in advance which two data communication formats will need to be converted within a preset time period.

[0074] If it is determined that there is no communication format conversion program that needs to be executed at the current time, the current processing mode is set to "parsing mode". In parsing mode, the data communication format of the data sender and receiver will be determined in real time based on the first received data, and the corresponding communication format conversion program will be selected and executed.

[0075] In summary, this embodiment intelligently determines whether a communication format conversion program needs to be executed and sets the processing mode accordingly. After receiving the first data, the data conversion platform executes the corresponding data format conversion task according to the previously set processing mode (automatic mode or parsing mode). This process improves the efficiency and accuracy of data conversion and can more flexibly respond to different data conversion needs.

[0076] Please refer to Figure 6 In one embodiment, step S10151, which involves determining whether a communication format conversion procedure needs to be executed at the current time, includes:

[0077] Step S101511: When an execution instruction carrying a target communication format identifier is received from the management platform, it is determined that the communication format conversion program corresponding to the target communication format identifier needs to be executed at the current time.

[0078] Step S101512: When a termination execution instruction carrying a target communication format identifier is received from the management platform, it is determined that the communication format conversion program corresponding to the target communication format identifier does not need to be executed at the current time.

[0079] In step S101511, when the data conversion platform receives an execution instruction from the management platform (this instruction carries a specific target communication format identifier, which is used to uniquely identify a specific communication format conversion program), the data conversion platform parses the execution instruction and checks the target communication format identifier carried within it. Once it is confirmed that the identifier matches a communication format conversion program registered in the platform, the data conversion platform determines that the communication format conversion program needs to be executed at the current time, thereby setting the current processing mode to automatic mode.

[0080] In step S101512, the opposite of step S101511, when the data conversion platform receives a termination instruction from the management platform (this instruction also carries a target communication format identifier), the data conversion platform parses the instruction and checks the identifier it carries. Once it confirms that the identifier matches a communication format conversion program that is currently executing or about to be executed, the data conversion platform determines that the communication format conversion program does not need to be executed at the current time, stops or cancels the execution of the program, and sets the current processing mode to parsing mode.

[0081] In summary, in this embodiment, the data conversion platform can intelligently determine the communication format conversion program that needs to be executed based on the instructions sent by the management platform, and promptly respond to the termination instruction, thereby ensuring that the data conversion platform completes the data conversion task in the correct processing mode. This technical solution enhances the system's flexibility and reliability, and can better adapt to the data conversion needs of different application scenarios. Simultaneously, through close collaboration with the management platform, the data conversion platform can receive and execute conversion tasks in real time, further improving the overall data processing capabilities and user experience.

[0082] In one embodiment, the management platform, in response to a time parameter set by a user for the communication format conversion program, records the communication format conversion relationship and the time parameter; the time parameter is used to determine the running time period of the communication format conversion program.

[0083] Based on the recorded time parameters of the communication format conversion program, when the management platform determines that the communication format conversion program needs to be executed at the current time, it obtains the target communication format identifier corresponding to the communication format conversion program and sends an execution instruction carrying the target communication format identifier to the data conversion platform; when it determines that the communication format conversion program does not need to be executed at the current time, it obtains the target communication format identifier corresponding to the communication format conversion program and sends a termination execution instruction carrying the target communication format identifier to the data conversion platform.

[0084] This embodiment explains how the management platform records the communication format conversion relationship and its running time period according to the time parameters set by the user, and sends execution or termination instructions to the data conversion platform accordingly.

[0085] Specifically, the management platform provides a user-friendly interface that allows users to set time parameters for specific communication format conversion programs. These time parameters define the operating time period of the communication format conversion program, such as specific time periods each day, specific days of the week, or specific date ranges. After the user completes the settings, the management platform records these communication format conversion relationships and their corresponding time parameters. This step ensures that the management platform can accurately know when to start or stop a specific communication format conversion program.

[0086] Furthermore, the management platform incorporates a time-based mechanism that periodically checks if the current time matches the recorded time parameters of the communication format conversion programs. When it determines that a communication format conversion program needs to be executed at the current time, the management platform retrieves the target communication format identifier for that program and generates an execution instruction carrying that identifier. The management platform then sends this execution instruction to the data conversion platform, instructing it to begin executing the corresponding communication format conversion task. Conversely, when it determines that a communication format conversion program does not need to be executed at the current time, the management platform also retrieves the target communication format identifier for that program, but this time generates a termination instruction carrying that identifier. The management platform sends this termination instruction to the data conversion platform, instructing it to stop executing the corresponding communication format conversion task.

[0087] In summary, this embodiment, by introducing user-defined time parameters and combining them with the management platform's time judgment mechanism, enables the management platform to accurately start or stop the communication format conversion program based on these parameters, thus ensuring that the data conversion task executes within the correct time period. Users can set the running time period of the communication format conversion program according to their actual needs, thereby avoiding unnecessary resource consumption and erroneous execution. Furthermore, the close collaboration between the management platform and the data conversion platform further enhances the overall data processing capabilities and user experience.

[0088] Please refer to Figure 7 In one embodiment, before step S101, which involves obtaining a communication format conversion procedure between the first data communication format of the data sender and the second data communication format of the data receiver when the first data sent by the data sender to the data receiver is received, the method further includes the following step:

[0089] Step S201: In response to the data conversion setting instruction sent by the management platform for the first data communication format of the data sending end and the second data communication format of the data receiving end, determine the target data server based on the data conversion setting instruction;

[0090] Step S202: Obtain a communication format conversion program between the first data communication format and the second data communication format from the target data server; wherein the communication format conversion program is sent by the user to the management platform and stored on the data server through the management platform.

[0091] In step S201, when the management platform receives a data conversion setting instruction from a user for a specific data sender and receiver, this instruction includes a first data communication format for the data sender and a second data communication format for the data receiver. Based on this information and internally stored data server configuration information, the management platform determines one or more target data servers. These target data servers store programs related to the specified communication format conversion. The management platform then notifies the data conversion platform of this decision, informing it where to obtain the required communication format conversion program.

[0092] In step S202, after receiving a notification from the management platform, the data conversion platform connects to the designated target data server. Then, based on information provided by the management platform (such as the name and version number of the communication format conversion program), it searches for and retrieves the required communication format conversion program from the target data server. It is worth noting that these communication format conversion programs were previously sent to the management platform by the user and are stored on the data server by the management platform. This step ensures that the data conversion platform can obtain the correct and up-to-date communication format conversion program to perform subsequent data conversion tasks.

[0093] In summary, this embodiment enables the management platform to intelligently determine the target data server storing the communication format conversion program based on the user's data conversion settings and notify the data conversion platform to retrieve it. This mechanism not only improves the accuracy and efficiency of data conversion but also enhances the system's flexibility and scalability. Users can easily add or update the communication format conversion program without modifying the data conversion platform's internal logic. Furthermore, through close collaboration between the management platform and the data conversion platform, the entire data conversion process becomes more automated and intelligent, further improving user experience and system performance.

[0094] For step S102, the first data is converted into second data by the communication format conversion program; the second data is communication data using the second data communication format; the second data communication format is a data communication format supported by the data receiving end.

[0095] After obtaining the corresponding communication format conversion program in step S101, the data conversion platform immediately executes the program to convert the received first data into second data. During the conversion process, the data conversion platform strictly follows the logic of the conversion program, converting each field, structure, or encoding of the first data one by one to ensure that the converted second data fully meets the format requirements of the data receiving end. After the conversion is completed, the data conversion platform verifies and validates the second data to ensure its integrity and accuracy. This step is crucial for improving the reliability of data communication.

[0096] Please refer to Figure 8 In one embodiment, before step S102, which involves converting the first data into second data in the second data communication format using the communication format conversion program, the method further includes the step of:

[0097] Step S1021: Obtain the target task code and task processing instructions sent by the management platform; the target task code is used to execute the target task.

[0098] Step S1022: In response to the task processing instruction, the target task code is merged into the communication format conversion program so that the communication format conversion program executes the target task code during runtime.

[0099] In step S1021, before the data conversion platform prepares to perform the communication format conversion, the management platform can generate target task code based on current processing needs, or receive target task code written by the user. This code contains the logic and instructions required to perform a specific target task, such as preprocessing data, performing specific data verification, or performing log monitoring. The management platform will send this target task code along with the corresponding task processing instructions to the data conversion platform. The task processing instructions are directives telling the data conversion platform how to process the target task code, such as whether it needs to be executed as part of the communication format conversion program.

[0100] In step S1022, after receiving the target task code and task processing instructions sent by the management platform, the data conversion platform merges the target task code into the communication format conversion program according to the requirements of the task processing instructions. This merging process can be achieved by modifying the source code of the communication format conversion program, dynamically loading the target task code as a plugin, or embedding the target task code into the execution flow of the communication format conversion program using a scripting language. Regardless of the method used, the merged communication format conversion program will execute the logic and instructions in the target task code during runtime to meet specific data conversion requirements.

[0101] In summary, this embodiment achieves a more flexible and scalable data conversion process based on the original technical solution. The management platform can generate target task code as needed and guide the data conversion platform to merge it into the communication format conversion program through task processing instructions. This mechanism not only improves the flexibility and customization of data conversion but also enables the data conversion platform to handle more complex and diverse data conversion needs. Users can dynamically add or modify target task code according to actual conditions to meet specific business requirements. Furthermore, since the target task code is sent through the management platform, the entire data conversion process becomes more controllable and manageable, contributing to improved accuracy and efficiency.

[0102] In one embodiment, the target task code includes log monitoring code, data encryption code, and / or data decryption code; wherein, the log monitoring code is used to control the data conversion platform to record communication logs between the data sender and the data receiver; the data encryption code is used to control the data conversion platform to encrypt the data undergoing communication format conversion; and the data decryption code is used to control the data conversion platform to decrypt the data undergoing communication format conversion.

[0103] This embodiment specifically defines the target task code as log monitoring code, data encryption code, or data decryption code, and explains their roles in the data conversion process. Specifically, the log monitoring code is designed to control the data conversion platform to record communication logs between the data sender and receiver. By embedding this code, the data conversion platform can record and store key information during the communication process, such as communication time, communication data volume, and communication status, in real time or periodically, while performing communication format conversion. This information is crucial for subsequent data analysis, troubleshooting, and performance optimization.

[0104] In addition, to ensure the security of data transmission, the target task code can also be data encryption code. This part of the code is responsible for encrypting the data that is about to undergo communication format conversion on the data conversion platform. By employing advanced encryption algorithms and key management mechanisms, the data conversion platform can ensure that data is not illegally stolen or tampered with during transmission, thereby effectively preventing the risk of data leakage and damage. Corresponding to the data encryption code, the target task code can also be data decryption code. The role of this part of the code is to decrypt the encrypted data after the data conversion platform receives it, so as to restore the readability and usability of the original data. By embedding data decryption code, the data conversion platform can ensure that the encrypted data can be correctly decrypted and used for subsequent business processing after arriving at its destination.

[0105] In practical applications, these specific functions in the target task code can be flexibly selected and combined according to the user's actual needs. For example, when a user needs to implement both data encryption and log monitoring simultaneously, the data encryption code and log monitoring code can be embedded into the target task code at the same time. When the user only needs to implement one of the functions, only the corresponding code needs to be embedded.

[0106] In summary, this embodiment achieves more comprehensive and powerful data transformation and processing capabilities by introducing target task code that includes log monitoring code, data encryption code, and / or data decryption code. The embedding of this target task code not only enhances the security and reliability of the data transformation platform but also enables it to better meet diverse user data transformation needs. Furthermore, because this target task code is dynamically configured and managed through the management platform, the entire data transformation process becomes more flexible and controllable. Users can adjust the content and configuration of the target task code at any time according to actual needs to adapt to constantly changing business requirements and data environments.

[0107] For step S103, the second data is sent to the data receiving end.

[0108] In this step, the data conversion platform sends the converted second data to the data receiving end. Before sending, the platform selects an appropriate transmission channel and method based on the receiving end's address information or communication protocol. Then, the platform encapsulates the second data into messages or data packets conforming to the communication protocol and sends them to the receiving end through the selected transmission channel. Upon receiving the second data, the receiving end performs unpacking and parsing operations to reconstruct the original business data. At this point, the entire data communication process is complete.

[0109] In one embodiment, the data communication method described in this application further includes the step of:

[0110] Step S104: In response to the log query instruction sent by the management platform, obtain the communication logs of each of the data sending ends and the data receiving ends, and send the communication logs to the management platform.

[0111] In this embodiment, the data conversion platform can record communication logs between each data sender and receiver in real time or periodically, and provide this log information to the management platform when needed. This not only helps the management platform to comprehensively monitor and analyze the data communication process, but also enables it to promptly identify and resolve problems that arise during communication, thereby improving the reliability and stability of data communication. Furthermore, since the acquisition and transmission of communication logs are achieved through automated interaction between the management platform and the data conversion platform, the entire process becomes more efficient and convenient. Users do not need to manually search for and extract communication logs; they can obtain the required information simply by sending a query command on the management platform, thus greatly improving work efficiency and user experience.

[0112] Please refer to Figure 9 This application also provides an electronic device 301, including: a processor 302, a memory 303, and a computer program 304 stored in the memory 303 and executable on the processor 302. When the processor 302 executes the computer program 304, it implements the steps of the method as described in any one of the embodiments of this application.

[0113] The processor 302 may include one or more processing cores. The processor 302 connects to various parts within the electronic device 301 via various interfaces and lines. It executes various functions and processes data of the electronic device 301 by running or executing instructions, programs, code sets, or instruction sets stored in the memory 303, and by calling data from the memory 303. Optionally, the processor 302 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 302 may integrate one or more of the following: a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), and a modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required to be displayed on the touch screen; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor 302.

[0114] The memory 303 may include random access memory (RAM) or read-only memory. Optionally, the memory 303 may include a non-transitory computer-readable storage medium. The memory 303 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 303 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch instructions), instructions for implementing the various method embodiments described above, etc.; the data storage area may store data involved in the various method embodiments described above, etc. Optionally, the memory 303 may also be at least one storage device located remotely from the aforementioned processor 302.

[0115] This application also provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the steps of the method described in any one of the embodiments of this application. That is, those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The computer program may include computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The aforementioned storage medium includes: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content contained in computer-readable media may be appropriately added to or subtracted from the requirements of legislation and patent practice in a jurisdiction. For example, in some jurisdictions, computer-readable media may not include electrical carrier signals and telecommunication signals, in accordance with legislation and patent practice.

[0116] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of this application, and this application also intends to include these modifications and variations.

Claims

1. A data communication method, characterized in that, The method is applied to a data conversion platform, which has pre-defined programs for converting communication formats between several communication formats; the method includes the following steps: When the first data sent from the data sender to the data receiver is received, a communication format conversion program between the first data communication format of the data sender and the second data communication format of the data receiver is obtained; the first data is communication data using the first data communication format; the first data communication format is a data communication format supported by the data sender; The first data is converted into second data by the communication format conversion program; the second data is communication data using the second data communication format; the second data communication format is a data communication format supported by the data receiving end; The second data is sent to the data receiving end.

2. The data communication method according to claim 1, characterized in that, The step of obtaining a communication format conversion program between the first data communication format of the data sender and the second data communication format of the data receiver when the first data sent by the data sender is received includes: When the first data sent from the data sender to the data receiver is received, the first data communication format of the data sender and the second data communication format of the data receiver are determined based on the first data. Based on the first data communication format and the second data communication format, obtain a communication format conversion program between the first data communication format and the second data communication format.

3. The data communication method according to claim 2, characterized in that, The first data includes a first data communication format identifier of the data sending end and a second data communication format identifier of the data receiving end; The step of determining the first data communication format of the data sending end and the second data communication format of the data receiving end based on the first data includes: Based on the first data communication format identifier and the second data communication format identifier in the first data, the first data communication format of the data sending end and the second data communication format of the data receiving end are determined respectively.

4. The data communication method according to claim 2, characterized in that, The first data includes a first device identifier of the data sending end and a second device identifier of the data receiving end; the step of determining the first data communication format of the data sending end and the second data communication format of the data receiving end based on the first data includes: Based on the first device identifier and the second device identifier in the first data, the data communication format bound to the first device identifier is obtained as the first data communication format of the data sending end, and the data communication format bound to the second device identifier is obtained as the second data communication format of the data receiving end.

5. The data communication method according to claim 1, characterized in that, The step of obtaining a communication format conversion program between the first data communication format of the data sender and the second data communication format of the data receiver when the first data sent by the data sender is received includes: When the first data sent from the data sender to the data receiver is received, it is determined whether the current time is within the preset time period; When the current time is within a preset time period, obtain the communication format conversion program specified within the preset time period; when the specified communication format conversion program is a communication format conversion program between the first data communication format and the second data communication format, determine that the specified communication format conversion program is a communication format conversion program between the first data communication format and the second data communication format.

6. The data communication method according to claim 5, characterized in that, After the step of obtaining the communication format conversion program specified within the preset time period when the current time is within the preset time period, the method further includes the following step: When the specified communication format conversion program is not a communication format conversion program between the first data communication format and the second data communication format, the first data is not processed.

7. The data communication method according to any one of claims 1 to 6, characterized in that, The step of obtaining a communication format conversion program between the first data communication format of the data sender and the second data communication format of the data receiver when the first data sent by the data sender is received includes: When the first data sent from the data sender to the data receiver is received, the current processing mode of the data conversion platform is obtained. When the current processing mode is parsing mode, the first data communication format of the data sending end and the second data communication format of the data receiving end are determined based on the first data; according to the first data communication format and the second data communication format, a communication format conversion program between the first data communication format and the second data communication format is obtained; When the current processing mode is automatic mode, determine whether the current time is within a preset time period; when the current time is within the preset time period, obtain the communication format conversion program specified within the preset time period; when the specified communication format conversion program is a communication format conversion program between the first data communication format and the second data communication format, determine that the specified communication format conversion program is a communication format conversion program between the first data communication format and the second data communication format.

8. The data communication method according to claim 7, characterized in that, Before the step of obtaining the current processing mode of the data conversion platform when the first data sent from the data sender to the data receiver is received, the following step is also included: Determine if there is a communication format conversion program that needs to be executed at the current time; if yes, set the current processing mode to automatic mode; otherwise, set the current processing mode to parsing mode.

9. The data communication method according to claim 8, characterized in that, The step of determining whether a communication format conversion program needs to be executed at the current time includes: When an execution instruction carrying a target communication format identifier is received from the management platform, it is determined that the communication format conversion program corresponding to the target communication format identifier needs to be executed at the current time; When a termination instruction carrying a target communication format identifier is received from the management platform, it is determined that the communication format conversion program corresponding to the target communication format identifier does not need to be executed at the current time.

10. The data communication method according to claim 9, characterized in that, The management platform responds to the time parameters set by the user for the communication format conversion program, and records the communication format conversion relationship and the time parameters; the time parameters are used to determine the running time period of the communication format conversion program; Based on the recorded time parameters of the communication format conversion program, when the management platform determines that the communication format conversion program needs to be executed at the current time, it obtains the target communication format identifier corresponding to the communication format conversion program and sends an execution instruction carrying the target communication format identifier to the data conversion platform; when it determines that the communication format conversion program does not need to be executed at the current time, it obtains the target communication format identifier corresponding to the communication format conversion program and sends a termination execution instruction carrying the target communication format identifier to the data conversion platform.

11. The data communication method according to claim 1, characterized in that, Before the step of obtaining the communication format conversion program between the first data communication format of the data sender and the second data communication format of the data receiver when the first data sent by the data sender is received, the method further includes the following step: In response to a data conversion setting instruction sent by the management platform for the first data communication format of the data sending end and the second data communication format of the data receiving end, a target data server is determined based on the data conversion setting instruction. Obtain a communication format conversion program between the first data communication format and the second data communication format from the target data server; wherein, the communication format conversion program is sent by the user to the management platform and stored on the data server through the management platform.

12. The data communication method according to claim 1, characterized in that, Before the step of converting the first data into second data in the second data communication format through the communication format conversion program, the method further includes the following step: Obtain the target task code and task processing instructions sent by the management platform; The target task code is used to execute the target task; In response to the task processing instruction, the target task code is merged into the communication format conversion program so that the communication format conversion program executes the target task code during runtime.

13. The data communication method according to claim 12, characterized in that, The target task code includes log monitoring code, data encryption code, and / or data decryption code; wherein, the log monitoring code is used to control the data conversion platform to record the communication logs between the data sender and the data receiver; the data encryption code is used to control the data conversion platform to encrypt the data undergoing communication format conversion; and the data decryption code is used to control the data conversion platform to decrypt the data undergoing communication format conversion.

14. The data communication method according to claim 12, characterized in that, The target task code includes log monitoring code; the log monitoring code is used to control the data conversion platform to record the communication logs between the data sender and the data receiver. The method further includes the following steps: In response to a log query command sent by the management platform, the system retrieves the communication logs between each of the data sending ends and the data receiving ends, and sends the communication logs to the management platform.

15. A computer-readable storage medium, characterized in that, It stores a computer program thereon, which, when executed, controls the device containing the computer-readable storage medium to implement the method as described in any one of claims 1 to 14.

16. An electronic device, characterized in that, It includes a processor, a memory, and a computer-readable program stored in the memory, which, when executed by the processor, implements the steps of the method as described in any one of claims 1 to 14.