A data transmission system, method and electronic device

Importing the protocol through plug-in form and using protocol function classification tables and conversion tables, the problem of high R&D costs when adding new protocols is solved, and the flexibility and cost reduction of protocol conversion are achieved.

CN115866094BActive Publication Date: 2025-08-01ZHEJIANG DAHUA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211400402.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-09
Publication Date
2025-08-01
Estimated Expiration
2042-11-09

AI Technical Summary

Technical Problem

In the prior art, when a new video network protocol is added, the original software architecture needs to be updated, resulting in high R&D costs.

Method used

The protocols of the data sending and receiving end are imported through plug-ins, so that when adding a new protocol, there is no need to update the original software architecture. You only need to import the plug-in of the new protocol on the front-end to apply the new protocol. You can use the internal management module to select the protocol access module, and implement protocol conversion through the protocol function classification table and conversion table.

Benefits of technology

Reduces R&D costs, achieves flexible conversion between different protocols, and does not require updates to the original software architecture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115866094B_ABST
    Figure CN115866094B_ABST
Patent Text Reader

Abstract

The present application discloses a data transmission system, method and electronic device. The system includes m protocol access modules in the form of plugins applied to the data sending end, n protocol access modules in the form of plugins applied to the data receiving end, an internal management module, a first protocol conversion module and a second protocol conversion module. The internal management module is configured to select, according to a user instruction, the first protocol access module corresponding to the current data sending end and the second protocol access module corresponding to the current data receiving end. The first protocol conversion module is configured to convert the data stream of the current data sending end into intermediate data. The second protocol conversion module is configured to convert the intermediate data into target data that can be recognized by the current data receiving end. Based on the above system, there is no need to update the original software architecture, and only by importing a plugin of the new protocol at the front end, the new protocol can be applied, thereby reducing the R & D cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of gateways, and particularly to a data transmission system, method, and electronic device. Background Art

[0002] With the maturity and popularization of network technologies, network imaging devices, such as network cameras, have become the new favorites of the era. Currently, in order to access third-party platforms, network cameras generally support multiple standard video network protocols, such as national standard protocols and the Open Network Video Interface Forum (ONVIF) protocol. Integrating these video network protocols will make the programs of network cameras bloated. At the same time, it also has high requirements for the hardware performance of the cameras, resulting in a significant increase in hardware costs and R & D costs. Therefore, in order to enable cameras and third-party platforms to flexibly apply different video network protocols, the prior art mainly uses video surveillance gateways to convert video network protocols, that is, to mutually translate and convert the data streams in network cameras and third-party platforms that use different network protocols.

[0003] However, for the software installed in the above-mentioned video surveillance gateway devices, when a new video network protocol is added, the original software architecture needs to be updated, resulting in high R & D costs. Summary of the Invention

[0004] This application provides a data transmission system, method, and electronic device. The system can solve the problem that in the prior art, when a new video network protocol is added, the original software architecture needs to be updated, resulting in high R & D costs.

[0005] In a first aspect, this application provides a data transmission system, including m protocol access modules in the form of plugins applied to the data sending end, n protocol access modules in the form of plugins applied to the data receiving end, an internal management module, a first protocol conversion module, and a second protocol conversion module. Each protocol access module is respectively connected to the internal management module. The m protocol access modules in the form of plugins are also respectively connected to the first protocol conversion module, and the n protocol access modules in the form of plugins are also respectively connected to the second protocol conversion module, where m and n are both integers greater than or equal to 1;

[0006] The internal management module is configured to select, according to a user instruction, a first protocol access module corresponding to the current data sending end from the m protocol access modules in the form of plugins, and select a second protocol access module corresponding to the current data receiving end from the n protocol access modules in the form of plugins;

[0007] The first protocol conversion module is used to convert the data stream of the current data sender into intermediate data; the second protocol conversion module is used to convert the intermediate data into target data that can be recognized by the current data receiver.

[0008] Based on the above system, the protocols of the data sender and the data receiver are imported in the form of plugins. When a new protocol is added, there is no need to update the original software architecture. Only by importing the plugin of the new protocol at the front end can the new protocol be applied, thus reducing the R & D cost.

[0009] In a possible design, the internal management module is further configured to control the states of the first protocol access module and the second protocol access module according to the user instruction, where the states at least include start, pause, and stop.

[0010] Based on the above system, the user can specify the protocol access modules of the data sender and the data receiver through the internal management module according to actual needs, and can control the protocol access modules.

[0011] In a possible design, the system further includes a protocol function classification table, and the protocol function classification table is respectively connected to the first protocol conversion module and the second protocol conversion module;

[0012] The protocol function classification table is used to classify the functions of each protocol, so that the first protocol conversion module can find the function category corresponding to the first protocol access module in the protocol function classification table, and the second protocol conversion module can find the function category corresponding to the second protocol access module in the protocol function classification table.

[0013] Based on the above system, by configuring and importing the protocol function classification tables of each protocol at the front end, the protocol conversion module can determine the function category corresponding to the protocol access module by querying the protocol function classification table.

[0014] In a possible design, the system further includes a protocol conversion table, where the protocol conversion table is integrated based on the protocol function classification table and is a common information query table for the mutual conversion of two protocols, and the protocol conversion table is respectively connected to the first protocol conversion module and the second protocol conversion module;

[0015] The protocol conversion table is used to convert the data stream into the intermediate data.

[0016] Based on the above system, through the protocol conversion table, the data stream of the data sender can be converted into common data that can be recognized by both the first protocol conversion module and the second protocol conversion module.

[0017] In a possible design, the system further includes a data cache module, and the data cache module is respectively connected to the first protocol conversion module and the second protocol conversion module;

[0018] The data cache module is used to store the intermediate data and establish a subscription service with the second protocol conversion module, so that the second protocol conversion module can discover and extract the intermediate data.

[0019] Based on the above system, the intermediate data is stored in the data cache module. At the same time, the second protocol conversion module establishes a subscription service with the data cache module, so that in the face of a high-concurrency scenario, the second protocol conversion module can discover and extract the intermediate data in a timely manner, improving the efficiency of protocol conversion.

[0020] In a second aspect, based on the above data transmission system, the present application provides a data transmission method, and the method includes:

[0021] According to the user instruction, select the first protocol access module of the current data sender and the second protocol access module of the current data receiver;

[0022] In response to the first protocol access module receiving the data stream of the current data sender, convert the data stream into intermediate data according to the protocol function classification table and the protocol conversion table;

[0023] According to the second protocol access module and the protocol function classification table, convert the intermediate data into target data that can be recognized by the current data receiver;

[0024] Send the target data to the current data receiver.

[0025] In a possible design, the step of converting the data stream into intermediate data according to the protocol function classification table and the protocol conversion table includes:

[0026] In the protocol function classification table, determine the function category of the first protocol access module and the first key data in the data stream, where the first key data corresponds to the function category;

[0027] According to the function category, in the protocol conversion table, determine the conversion table corresponding to the first protocol access module and the second protocol access module;

[0028] In the conversion table, determine the intermediate data corresponding to the first key data.

[0029] In a possible design, converting the intermediate data into target data that can be recognized by the current data receiving end according to the second protocol access module and the protocol function classification table includes:

[0030] Extracting the intermediate data;

[0031] Determining second key data corresponding to the second protocol access module in a conversion table corresponding to the first protocol access module and the second protocol access module;

[0032] Converting the second key data into the target data.

[0033] In a third aspect, the present application provides an electronic device, including:

[0034] A memory for storing a computer program;

[0035] A processor for implementing the steps of the above data transmission method when executing the computer program stored on the memory.

[0036] In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of the above data transmission method are implemented.

[0037] Based on the data transmission method provided by the present application, by importing the protocols of the data sending end and the data receiving end in the form of plugins, when a new protocol is added, there is no need to update the original software architecture. Only by importing the plugin of the new protocol at the front end can the new protocol be applied, thereby reducing the R & D cost. At the same time, through the protocol function classification tables and protocol conversion tables of each protocol imported at the front end, conversion between different protocols can be achieved.

[0038] For the various aspects in the above second aspect to fourth aspect and the possible technical effects that each aspect may achieve, reference may be made to the technical effects that can be achieved by the above first aspect or various possible solutions in the first aspect, and details will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 One of the schematic diagrams of a data transmission system provided by the present application;

[0040] Figure 2 Another schematic diagram of a data transmission system provided by the present application;

[0041] Figure 3 Another schematic diagram of a data transmission system provided by the present application;

[0042] Figure 4The fourth schematic diagram of a data transmission system provided by this application;

[0043] Figure 5 The flowchart of a data transmission method provided by this application;

[0044] Figure 6 The schematic diagram of the structure of an electronic device provided by this application. Detailed implementation manners

[0045] In order to make the objectives, technical solutions and advantages of this application clearer, the following will further describe this application in detail with reference to the accompanying drawings. The specific operation methods in the method embodiments can also be applied to the apparatus embodiments or system embodiments. It should be noted that in the description of this application, "a plurality of" is understood as "at least two". "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist, and B exists alone. The connection between A and B can represent: the direct connection between A and B and the connection between A and B through C. In addition, in the description of this application, terms such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.

[0046] The following will describe the embodiments of this application in detail with reference to the accompanying drawings.

[0047] In order to enable cameras and third-party platforms to flexibly apply different video network protocols, the prior art mainly uses a video surveillance gateway to convert video network protocols, that is, to mutually translate and convert the data streams in network cameras and third-party platforms using different network protocols.

[0048] However, for the software installed in the above-mentioned video surveillance gateway device, when a new video network protocol is added, the original software architecture needs to be updated, resulting in high R & D costs.

[0049] To solve the above problems, a data transmission system provided by the embodiments of this application imports the protocols of the data sending end and the data receiving end in the form of plugins, so that when a new protocol is added, there is no need to update the original software architecture. Only by importing the plugin of the new protocol at the front end can the new protocol be applied, thus reducing the R & D costs. Among them, the methods and devices in the embodiments of this application are based on the same technical concept. Since the principles of the problems solved by the methods and devices are similar, the embodiments of the device and the method can be referred to each other, and the repeated parts will not be described again.

[0050] In order to make the objectives, technical solutions and advantages of this application clearer, the following will further describe this application in detail with reference to the accompanying drawings.

[0051] As shown Figure 1 in the figure, it is a schematic diagram of a data transmission system provided by this application, including m protocol access modules in the form of plugins applied to the data sending end, n protocol access modules in the form of plugins applied to the data receiving end, an internal management module 11, a first protocol conversion module 12, and a second protocol conversion module 13. Each protocol access module is respectively connected to the internal management module 11. The m protocol access modules in the form of plugins are also respectively connected to the first protocol conversion module 12, and the n protocol access modules in the form of plugins are also respectively connected to the second protocol conversion module 13, where both m and n are integers greater than or equal to 1.

[0052] In the embodiment of this application, the m protocol access modules in the form of plugins, the n protocol access modules in the form of plugins, the internal management module 11, the first protocol conversion module 12, and the second protocol conversion module 13 are developed based on a cross-platform underlying library. The cross-platform underlying library supports multiple terminal operating systems, including the Linux system, the Internet of Things operation liteOS system, the windows system, and the macOS system, and the cross-platform underlying library adapts to different central processing units (CPUs), including 32-bit x86 processors, 64-bit x86 processors, 32-bit arm processors, and 64-bit arm processors. Further, the system-level interfaces in the cross-platform underlying library, such as threads, time, network, and memory, are encapsulated according to a unified interface for development use, so that the software has cross-platform characteristics.

[0053] In a possible design, the m protocol access modules in the form of plugins, such as the national standard protocol plugin, the ONVIF protocol plugin, and a private protocol GENETEC protocol plugin, and the n protocol access modules in the form of plugins, such as the national standard protocol plugin, the ONVIF protocol plugin, and the GENET EC protocol plugin, are integrated in the form of dynamic library plugins, that is, as soon as the system starts, each protocol access module is dynamically loaded. At the same time, users can freely load and unload each protocol access module. Therefore, when a new protocol needs to be added, users only need to import the plugin of the new protocol.

[0054] The internal management module 11 is used to select the first protocol access module of the current data sending end from the m protocol access modules in the form of plugins according to the user instruction, and select the second protocol access module of the current data receiving end from the n protocol access modules in the form of plugins. At the same time, since each protocol access module is a separate process, users can control the status of each protocol access module on the interface, where the status at least includes start, pause, and stop;

[0055] The first protocol conversion module 12 is used to convert the data stream of the current data sender into intermediate data;

[0056] The second protocol conversion module 13 is used to convert the intermediate data into target data that can be recognized by the current data receiver.

[0057] Based on the above system, the protocols of the data sender and the data receiver are imported in the form of plugins. When a new protocol is added, there is no need to update the original software architecture. Only by importing the plugin of the new protocol at the front end can the new protocol be applied, thus reducing the R & D cost. At the same time, the user can specify the protocol access modules of the current data sender and the current data receiver through the internal management module, and the user can realize cross-platform use of the software through the cross-platform underlying library.

[0058] In a possible design, as Figure 2 shown, the data transmission system further includes a protocol function classification table 21, and the protocol function classification table 21 is respectively connected to the first protocol conversion module 12 and the second protocol conversion module 13;

[0059] The protocol function classification table 21 is used to classify the functions of each protocol, so that the first protocol conversion module 12 can find out the function category corresponding to the first protocol access module in the protocol function classification table 21, and the second protocol conversion module 13 can find out the function category corresponding to the second protocol access module in the protocol function classification table 21. In the embodiments of the present application, each protocol has a protocol function classification table, and each protocol function classification table has some key fields. For example, the Function field represents the function category, and the Params field represents the parameters in the protocol. In addition, the user can also set some special fields for different protocols according to needs. For example, refer to Table 1:

[0060]

[0061]

[0062] Table 1 National Standard Protocol Function Classification Table

[0063] In Table 1, in addition to the Function field and the Params field, there is also a Session Initiation Protocol Type (SipType) field, which is used to indicate the Sip message type. For example, a request message (Request) from the data receiving end to the data sending end and a response message (Response) from the data sending end to the data receiving end; a CmdType field, which is used to indicate the command type, such as an alarm command. As can be seen from Table 1, for the protocol with the function category of GetAlarmStatusReq (response to obtaining the alarm status), the corresponding Sip message type is "MESSAGE", and the CmdType field in the message carrier is "DeviceStatus". Therefore, the encapsulated data can be expressed as {"SipType": "MESSAGE", "CmdType": "DeviceStatus", "Param": null}, where Table 1 can be imported through front-end configuration.

[0064] Based on the above system, by importing the protocol function classification table of each protocol through front-end configuration, the protocol conversion module can determine the key data in the data stream through the function category in the protocol function classification table.

[0065] In a possible design, as Figure 3 shown, the data transmission system further includes a protocol conversion table 31. Among them, the protocol conversion table 31 is integrated based on the protocol function classification table 21 and is a common information query table for mutual conversion between two protocols. The protocol conversion table 31 is respectively connected to the first protocol conversion module 12 and the second protocol conversion module 13;

[0066] The protocol conversion table 31 is used to convert the data stream of the current data sending end into intermediate data. Among them, there is a specific protocol conversion table between different protocols. For example, refer to Table 2:

[0067]

[0068]

[0069] Table 2 ONVIF Protocol - National Standard Protocol Conversion Table

[0070] In Table 2, "Functions" represents the functional category to which the protocol belongs, and "Nodes" represents the conversion nodes of the data stream, including OnvifServer / Client, MiddleData, and GBServer / Client. Among them, the data format in OnvifServer / Client and GBServer / Client can be a lightweight data exchange format (JavaScript Object Notation, JSON), that is, the data stream is converted into a string, so that the string can be efficiently transmitted over the network, and the string can be restored to the data stream. At the same time, the storage method of MiddleData can be key-value storage. Among them, the value of value is mainly composed of Functions and params, and the value of key is the identifier generated when each protocol accesses the system. It can be seen from Table 2 that the data format of OnvifServer / Client is {"Interface": "interface name", "params": "parameter list"}, and the data format of GBServer / Client is {"SipType": "sip message format", "CmdType": "command type", "params": "parameter list"}.

[0071] In the embodiments of the present application, each protocol corresponds to a single-point function, and the corresponding function can be found in both the two protocols of the conversion. However, there are also special cases. A certain function point can be implemented with only one protocol signaling in a certain protocol, but requires multiple protocols to cooperate in another protocol. At this time, the value in the protocol conversion table should be an array, but the format of the value content is still the same.

[0072] Based on the above system, through the protocol conversion table, the data stream at the data sending end can be converted into common data that can be recognized by both the first protocol conversion module and the second protocol conversion module.

[0073] In a possible design, as Figure 4 shown, the data transmission system further includes a data cache module 41, and the data cache module 41 is respectively connected to the first protocol conversion module 12 and the second protocol conversion module 13;

[0074] The data caching module 41 is used to store intermediate data and establish a subscription service with the second protocol conversion module 13, so that when there is intermediate data in the data caching module 41, the second protocol conversion module 13 can discover and extract the intermediate data in a timely manner. In the embodiment of the present application, the caching method of the data in the data caching module 41 can be a Redis caching of a data structure storage system, which can achieve that when multiple protocol conversion modules establish subscription services with the data caching module 41, as long as there is intermediate data in the data caching module 41, multiple protocol conversion modules can discover and extract the intermediate data in a timely manner.

[0075] Based on the above system, the intermediate data is stored in the data caching module. At the same time, the second protocol conversion module establishes a subscription service with the data caching module, so that in the face of a high-concurrency scenario, the second protocol conversion module can discover and extract the intermediate data in a timely manner, improving the efficiency of protocol conversion.

[0076] Based on the same inventive concept, an embodiment of the present application also provides a data transmission method, and the flow steps of the method are as Figure 5 shown, including:

[0077] S51, according to the user instruction, select the first protocol access module of the current data sender and the second protocol access module of the current data receiver;

[0078] S52, in response to the first protocol access module receiving the data stream of the current data sender, convert the data stream into intermediate data according to the protocol function classification table and the protocol conversion table;

[0079] S53, according to the second protocol access module and the protocol conversion table, convert the intermediate data into target data that can be recognized by the current data receiver;

[0080] S54, send the target data to the current data receiver.

[0081] In the embodiment of the present application, to achieve the conversion of different protocols, first, it is necessary to select the first protocol access module of the current data sender and the second protocol access module of the current data receiver. The specific selection method can be:

[0082] There is an interface in the internal management module that interacts with the user, so that according to the user instruction, the first protocol access module of the current data sender can be selected from the m plug-in protocol access modules applied to the data sender, and the second protocol access module of the current data receiver can be selected from the n plug-in protocol access modules applied to the data receiver. At the same time, since each protocol access module is an independent process, the user can control the status of each protocol access module on the interface, where the status includes start, pause, and stop.

[0083] Furthermore, after the first protocol access module receives the data stream from the current data sender, first, the first protocol conversion module determines the function category of the first protocol access module and the first key data in the data stream in the protocol function classification table. Among them, the first key data corresponds to the function category of the first protocol access module. Then, according to the function category of the first protocol access module, in the protocol conversion table, the conversion table corresponding to the first protocol access module and the second protocol access module is determined. Then, the intermediate data corresponding to the first key data is determined in the conversion table, and the intermediate data is sent to the data cache module for caching.

[0084] Since the data cache module has established a subscription service with the second protocol conversion module, when there is intermediate data in the data cache module, the second protocol conversion module can detect and extract the intermediate data in a timely manner. After obtaining the intermediate data, the second protocol conversion module first determines the second key data corresponding to the second protocol access module in the conversion table corresponding to the first protocol access module and the second protocol access module, and converts the second key data into target data that can be recognized by the current data receiver. Finally, the target data is sent to the current data receiver to complete the protocol conversion.

[0085] For example, the first protocol access module selected by the user is the ONVIF protocol, and the second protocol access module is the national standard protocol. First, the first protocol access module receives the data stream from the current data sender. Then, the first protocol conversion module determines that the function category of the ONVIF protocol is GetAlarmStatusReq in the protocol function classification table, and the first key data of a lightweight data exchange format ( JavaScript Object Notation, JSON) is {"Interface": "tmd:DigitalInputs", "params": null}. Immediately afterwards, according to the above function category GetAlarmStatusReq, in the protocol conversion table, the conversion table corresponding to the ONVIF protocol and the national standard protocol is determined, and the intermediate data corresponding to the first key data in the conversion table is determined to be Key: 1, value: "{\"Functions\":\"GetAlarmStatusReq\",\"params\":null}", and the intermediate data is saved to the data cache module.

[0086] Further, when there is intermediate data in the data cache module, the second protocol conversion module will extract the intermediate data in a timely manner. After obtaining the intermediate data, the second protocol conversion module first determines that the second key data corresponding to the second protocol access module in the conversion table corresponding to the ONVIF protocol and the national standard protocol is {"SipType": "MESSAGE", "CmdType": "DeviceStatus", "Param": null}. Then, according to the GetAlarmStatusReq function, the second key data is converted into target data. Finally, the target data is sent to the current data receiving end to complete the protocol conversion.

[0087] Based on the above data transmission method, the protocols of the data sending end and the data receiving end are imported in the form of plugins. When a new protocol is added, there is no need to update the original software architecture. Only by importing the plugin of the new protocol at the front end can the new protocol be applied, thus reducing the R & D cost. At the same time, through the protocol function classification table and protocol conversion table of each protocol imported at the front end, the conversion between different protocols can be realized.

[0088] Based on the same inventive concept, an electronic device is further provided in an embodiment of the present application. The electronic device can implement the functions of the foregoing data transmission method. Refer to Figure 6 , the electronic device includes:

[0089] At least one processor 61, and a memory 62 connected to at least one processor 61. In the embodiment of the present application, the specific connection medium between the processor 61 and the memory 62 is not limited. Figure 6 In Figure 6 it is taken as an example that the processor 61 and the memory 62 are connected through a bus 60. The bus 60 is represented by a thick line in Figure 6 . The connection manners between other components are only for illustrative purposes and are not limited thereto. The bus 60 can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation,

[0090] In the embodiment of the present application, the memory 62 stores instructions executable by at least one processor 61. By executing the instructions stored in the memory 62, at least one processor 61 can execute the data transmission method described above. The processor 61 can implement Figure 1 the functions of each module in the system shown.

[0091] Among them, the processor 61 is the control center of the device. It can connect various parts of the entire control device through various interfaces and circuits. By running or executing the instructions stored in the memory 62 and calling the data stored in the memory 62, the various functions of the device and process data, thereby monitoring the device as a whole.

[0092] In a possible design, the processor 61 may include one or more processing units. The processor 61 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 61. In some embodiments, the processor 61 and the memory 62 may be implemented on the same chip. In some embodiments, they may also be separately implemented on independent chips.

[0093] The processor 61 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the data transmission method disclosed in combination with the embodiments of the present application may be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

[0094] The memory 62, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The memory 62 can include at least one type of storage medium. For example, it can include flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic memory, magnetic disk, optical disc, etc. The memory 62 is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 62 in the embodiments of the present application can also be a circuit or any other device capable of implementing a storage function, for storing program instructions and / or data.

[0095] By programming the design of the processor 61, the code corresponding to the data transmission method described in the foregoing embodiments can be solidified into the chip, so that the chip can execute Figure 5 the steps of the data transmission method of the illustrated embodiments. How to program the design of the processor 61 is a well-known technology to those skilled in the art and will not be elaborated here.

[0096] Based on the same inventive concept, the embodiments of the present application also provide a storage medium storing computer instructions, which, when run on a computer, cause the computer to execute the data transmission method discussed above.

[0097] In some possible implementation manners, various aspects of the data transmission method provided in the present application can also be implemented in the form of a program product, which includes program code. When the program product runs on a device, the program code is used to cause the control device to execute the steps of the data transmission method according to various exemplary embodiments of the present application described above in this specification.

[0098] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0099] The present application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0100] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing devices to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including instruction means that implement the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0101] These computer program instructions can also be loaded onto a computer or other programmable data processing devices, such that a series of operation steps are executed on the computer or other programmable devices to generate a computer-implemented process, so that the instructions executed on the computer or other programmable devices provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0102] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.

Claims

1. A data transmission system, characterized in that, It includes m protocol access modules in the form of plugins applied to the data sending end, n protocol access modules in the form of plugins applied to the data receiving end, an internal management module, a first protocol conversion module, and a second protocol conversion module. Each protocol access module is respectively connected to the internal management module. The m protocol access modules in the form of plugins are also respectively connected to the first protocol conversion module. The n protocol access modules in the form of plugins are also respectively connected to the second protocol conversion module. Here, both m and n are integers greater than or equal to 1. The internal management module is used to select, according to the user instruction, the first protocol access module corresponding to the current data sending end among the m protocol access modules in the form of plugins, and the second protocol access module corresponding to the current data receiving end among the n protocol access modules in the form of plugins. The first protocol conversion module is used to convert the data stream of the current data sending end into intermediate data. The second protocol conversion module is used to convert the intermediate data into target data that can be recognized by the current data receiving end.

2. The system according to claim 1, wherein The internal management module is further used to control the states of the first protocol access module and the second protocol access module according to the user instruction, where the states at least include start, pause, and stop.

3. The system according to claim 1, wherein The system further includes a protocol function classification table, and the protocol function classification table is respectively connected to the first protocol conversion module and the second protocol conversion module. The protocol function classification table is used to classify the functions of each protocol, so that the first protocol conversion module can find the function category corresponding to the first protocol access module in the protocol function classification table, and the second protocol conversion module can find the function category corresponding to the second protocol access module in the protocol function classification table.

4. The system according to claim 1, wherein The system further includes a protocol conversion table. Here, the protocol conversion table is integrated based on the protocol function classification table and is a common information query table for the mutual conversion of two protocols. The protocol conversion table is respectively connected to the first protocol conversion module and the second protocol conversion module. The protocol conversion table is used to convert the data stream into the intermediate data.

5. The system according to claim 1, characterized in that, The system further includes a data cache module, and the data cache module is respectively connected to the first protocol conversion module and the second protocol conversion module. The data cache module is used to store the intermediate data and establish a subscription service with the second protocol conversion module, so that the second protocol conversion module can discover and extract the intermediate data.

6. A data transmission method, based on any one of claims 1 to 5, characterized in that, The method includes: Selecting the first protocol access module of the current data sending end and the second protocol access module of the current data receiving end according to the user instruction. In response to the first protocol access module receiving the data stream of the current data sending end, converting the data stream into intermediate data according to the protocol function classification table and the protocol conversion table. Converting the intermediate data into target data that can be recognized by the current data receiving end according to the second protocol access module and the protocol conversion table. Send the target data to the current data receiver.

7. The method according to claim 6, wherein Converting the data stream into intermediate data according to the protocol function classification table and the protocol conversion table includes: In the protocol function classification table, determine the function category of the first protocol access module and the first key data in the data stream, where the first key data corresponds to the function category; According to the function category, in the protocol conversion table, determine the conversion table corresponding to the first protocol access module and the second protocol access module; In the conversion table, determine the intermediate data corresponding to the first key data.

8. The method according to claim 6, wherein Converting the intermediate data into target data that can be recognized by the current data receiver according to the second protocol access module and the protocol function classification table includes: Extract the intermediate data; In the conversion table corresponding to the first protocol access module and the second protocol access module, determine the second key data corresponding to the second protocol access module; Convert the second key data into the target data.

9. An electronic device, characterized in that, Including: A memory for storing a computer program; A processor for implementing the method steps according to any one of claims 6-8 when executing the computer program stored on the memory.

10. A computer-readable storage medium, characterized in that, A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps according to any one of claims 6-8 are implemented.

Citation Information

Patent Citations

  • Database data transmission method and device

    CN106649788A

  • Data protocol conversion method and device, data transmission system and electronic equipment

    CN110381093A