A data transmission method, device, apparatus, and storage medium

By converting data into image data and transmitting it via HDMI, combined with transmission schedule information and data protocols, the high cost and low efficiency issues caused by hardware isolation devices are resolved, achieving more efficient and accurate data transmission.

CN117676197BActive Publication Date: 2025-12-05BEIJING JINFENG HUINENG TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211055041.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2025-12-05
Estimated Expiration
2042-08-31

AI Technical Summary

Technical Problem

In high-security network environments, the use of hardware isolation devices leads to high data transmission costs and low efficiency, which existing technologies struggle to address effectively.

Method used

The data to be transmitted is converted into image data and transmitted via the high-definition multimedia interface HDMI. Combined with transmission plan information and data protocol, the accuracy and efficiency of the data are ensured.

Benefits of technology

It reduces hardware costs, improves data transmission efficiency and accuracy, and reduces reliance on the performance of hardware isolation devices and network bandwidth.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117676197B_ABST
    Figure CN117676197B_ABST
Patent Text Reader

Abstract

The application discloses a data transmission method, device and equipment and a storage medium. The method comprises the following steps: a sending device firstly acquires to-be-transmitted data, and then converts the to-be-transmitted data into first picture data, so that the first picture data can be transmitted to a receiving device through a high-definition multimedia interface (HDMI). According to the data transmission method provided in the application, the to-be-transmitted data is converted into picture data, and the transmission is performed through the HDMI, so that the hardware cost can be reduced, and the data transmission efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computers, and in particular to a data transmission method and device, equipment and a storage medium. BACKGROUND

[0002] In some energy fields, such as the power field, in order to ensure the security and privacy of data, a network environment with a high security level is usually provided. In different network environments with different security levels, data transmission between different security zones in a non-network manner is usually realized through a forward / reverse hardware isolation device.

[0003] When using a hardware isolation device for data transmission, a server is usually placed outside the isolation device for caching data to be transmitted, but the hardware cost of the hardware isolation device and the server is relatively high; and the data transmission efficiency is also relatively low due to the influence of the performance of the hardware isolation device, network bandwidth, disk performance, etc. SUMMARY

[0004] Therefore, the embodiments of the present application provide a data transmission method, device, equipment and storage medium to improve the efficiency of data transmission and reduce the cost.

[0005] In a first aspect, the embodiments of the present application provide a data transmission method, which is applied to a sending device, and the method comprises:

[0006] obtaining to-be-transmitted data;

[0007] converting the to-be-transmitted data into first picture data;

[0008] transmitting the first picture data to a receiving device through a high-definition multimedia interface (HDMI).

[0009] In a possible implementation manner, the method further comprises:

[0010] determining transmission plan information between the sending device and the receiving device, the transmission plan information being used to instruct the receiving device to receive the first picture data;

[0011] converting the transmission plan information into second picture data;

[0012] transmitting the second picture data to the receiving device through the HDMI.

[0013] In a possible implementation manner, the transmitting the first picture data through the HDMI comprises:

[0014] determining a transmission data protocol between the sending device and the receiving device;

[0015] The first picture data is transmitted through the HDMI and the transmission data protocol.

[0016] In a possible implementation, the transmission plan information comprises at least one of a plan header, one or more plan file information, and plan padding bits.

[0017] The plan header comprises at least one of a plan valid identifier, a plan ID, a plan page ID, a plan page valid data length, a plan page check code, and a plan header extension field.

[0018] Any plan file information in the one or more plan file information comprises at least one of a file ID, a file length, a file path length, and a file path.

[0019] In a possible implementation, the transmission data protocol comprises at least one of a data header, data content, and data padding bits.

[0020] The data header comprises at least one of a data valid identifier, a data page ID, a data page valid data length, and a data page check code.

[0021] In a second aspect, an embodiment of the present application provides a data transmission method, which is applied to a receiving device, and the method comprises the following steps.

[0022] The first picture data transmitted by the sending device is received through the HDMI, wherein the first picture data is obtained by converting to-be-transmitted data by the sending device.

[0023] The to-be-transmitted data is obtained by analyzing the first picture data.

[0024] In a possible implementation, the method further comprises the following steps.

[0025] The second picture data transmitted by the sending device is received.

[0026] The transmission plan information is obtained by analyzing the second picture data.

[0027] The first picture data is received according to the transmission plan information.

[0028] In a possible implementation, the to-be-transmitted data is obtained by analyzing the first picture data, and the method comprises the following steps.

[0029] The to-be-transmitted data is obtained by analyzing the first picture data according to a transmission data protocol, wherein the transmission data protocol is a protocol pre-determined between the sending device and the receiving device for data transmission.

[0030] In a third aspect, an embodiment of the present application provides a data transmission apparatus, the apparatus being applied to a sending device, the apparatus comprising:

[0031] an obtaining module, configured to obtain to-be-transmitted data;

[0032] a converting module, configured to convert the to-be-transmitted data into first picture data;

[0033] a transmitting module, configured to transmit the first picture data to a receiving device through a high-definition multimedia interface (HDMI).

[0034] In a fourth aspect, an embodiment of the present application provides a data transmission apparatus, the apparatus being applied to a receiving device, the apparatus comprising:

[0035] a receiving module, configured to receive first picture data transmitted by a sending device through an HDMI, the first picture data being obtained by converting to-be-transmitted data by the sending device;

[0036] a parsing module, configured to parse the first picture data to obtain the to-be-transmitted data.

[0037] In a fifth aspect, an embodiment of the present application provides a data transmission device, the device comprising a memory and a processor.

[0038] The memory is configured to store related program codes.

[0039] The processor is configured to invoke the program codes to execute the data transmission method in any one of the implementation manners of the first aspect or the second aspect.

[0040] In a sixth aspect, an embodiment of the present application provides a computer readable storage medium, the computer readable storage medium being configured to store a computer program, the computer program being configured to execute the data transmission method in any one of the implementation manners of the first aspect or the second aspect.

[0041] Therefore, the embodiment of the present application has the following beneficial effects:

[0042] In the implementation manners of the embodiment of the present application, the sending device first obtains to-be-transmitted data, and then converts the to-be-transmitted data into first picture data, so that the first picture data can be transmitted to the receiving device through the HDMI. By converting the to-be-transmitted data into picture data and transmitting the picture data through the HDMI, the data transmission method provided by the embodiment of the present application can reduce hardware cost and improve data transmission efficiency. BRIEF DESCRIPTION OF DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art based on these drawings.

[0044] Figure 1 A flow chart of a data transmission method provided by an embodiment of the present application;

[0045] Figure 2 A schematic diagram of a hardware device provided by an embodiment of the present application;

[0046] Figure 3 A schematic diagram of transmission plan information provided by an embodiment of the present application;

[0047] Figure 4 A schematic diagram of a transmission data protocol provided by an embodiment of the present application;

[0048] Figure 5 A flow chart of another data transmission method provided by an embodiment of the present application;

[0049] Figure 6 A schematic diagram of a data transmission device provided by an embodiment of the present application;

[0050] Figure 7 A schematic diagram of another data transmission device provided by an embodiment of the present application;

[0051] Figure 8 A schematic diagram of a data transmission device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0052] The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application. The described embodiments are only exemplary embodiments of the present application, and not all embodiments. Those skilled in the art can obtain other embodiments without creative labor based on the embodiments of the present application, and these embodiments are also within the protection scope of the present application.

[0053] In order to facilitate understanding of the technical solutions of the present application, the technical background related to the present application is first introduced.

[0054] When transmitting data in a network environment of a higher security level, data transmission can be implemented by using the principle of physical isolation. Physical isolation means that the internal network is not directly or indirectly connected to the public network, which can protect network devices and computer hardware entities and communication links from natural disasters, human sabotage and wiretapping attacks, etc. Specifically, data transmission can be implemented in networks of different security levels by using hardware isolation devices, including forward isolation devices and reverse isolation devices.

[0055] For example, a power system can divide computer systems into I area, II area, III area, etc. according to the requirements of the security level. There is a firewall between the I area and the II area, and the I / II area and the III area are physically isolated. That is, data transmitted from the I / II area to the III area is transmitted through a forward isolation device, and data transmitted from the III area to the I / II area is transmitted through a reverse isolation device.

[0056] When using a hardware isolation device for data transmission, a server is usually placed outside the hardware isolation device to cache data to be transmitted, but the hardware cost of the hardware isolation device and the server is relatively high. Moreover, the data transmission efficiency is also relatively low due to the influence of the performance of the hardware isolation device, network bandwidth, disk performance, etc.

[0057] Therefore, embodiments of the present application provide a data transmission method to reduce hardware cost and improve data transmission efficiency. In specific implementation, a sending device first acquires data to be transmitted, and then converts the data to be transmitted into first picture data, so that the first picture data can be transmitted to a receiving device through a high-definition multimedia interface (HDMI). By converting the data to be transmitted into picture data and transmitting the picture data through the HDMI, the hardware cost can be reduced and the data transmission efficiency can be improved. The high-definition multimedia interface (HDMI) is a fully digital video and sound transmission interface, which can transmit uncompressed audio and video signals.

[0058] The data transmission method provided by the embodiments of the present application will be described below with reference to the accompanying drawings.

[0059] Referring to Figure 1 , Figure 1 The flowchart of the data transmission method provided by the embodiments of the present application is shown in FIG. 1.

[0060] The method can be applied to a sending device, and the method can include the following steps:

[0061] S101: Acquire data to be transmitted.

[0062] When the sending device needs to transmit data to the receiving device, the data to be transmitted needs to be acquired first. The data to be transmitted is the original data to be transmitted.

[0063] S102: convert the data to be transmitted into first picture data.

[0064] After acquiring the data to be transmitted, in order to send the data to be transmitted to the receiving device, the data to be transmitted can be converted into first picture data, so that the first picture data can be transmitted through HDMI.

[0065] In a possible implementation, the data to be transmitted can be converted into picture data with a maximum resolution supported by the receiving device, so as to improve the efficiency of data transmission. Alternatively, the data to be transmitted can be converted into picture data in RGB24 format for storage. The RGB24 format picture occupies 1 byte per element (R / G / B), so each pixel point can store 3 bytes of data. The sending device can play the pictures in the first picture data at a certain frequency and deliver them to the HDMI interface.

[0066] S103: transmit the first picture data to the receiving device through HDMI.

[0067] The sending device can transmit the converted first picture data to the receiving device, that is, the sending device and the receiving device transmit or receive the first picture data through HDMI. When the sending device or the receiving device itself does not have HDMI, the interface of the sending device or the receiving device can be converted into HDMI through a hardware such as an expansion card, so as to realize the transmission of the first picture data. Figure 2 For example, the hardware device shown in the figure, when the sending device is a host 201 with VGA, DVI, DP and HDMI interfaces, the receiving device can be a development board Raspberry Pi 202. Since the Raspberry Pi 202 itself does not have HDMI and has a CSI-2 interface, an HDMI-to-CSI-2 expansion card 203 can be provided for the Raspberry Pi 202, connected to the CSI-2 interface of the Raspberry Pi 202, so that it can be connected to the HDMI of the host 201 through the HDMI of the expansion card 203. Moreover, when the host 203 transmits data through HDMI, it can also be connected to other output devices through other interfaces such as VGA, without affecting the normal use of other functions.

[0068] In order to ensure normal transmission of data between the sending device and the receiving device, and to parse the first picture data into original data to be transmitted after the receiving device receives the first picture data, optionally, the transmission plan information between the sending device and the receiving device can be determined in advance, that is, a transmission plan protocol is used to instruct the receiving device to receive the first picture data. Specifically, the transmission plan information can be converted into second picture data, and then the second picture data is sent to the receiving device by the sending device through HDMI. After the receiving device receives the second picture data, the second picture data is parsed to obtain the transmission plan information, and the first picture data is received according to the transmission plan information.

[0069] In a possible implementation, the transmission plan information can include a plan header, plan file information, plan padding bits, and the like. When the valid data bits of the transmission plan information do not satisfy a preset bit number, the plan padding bits can be used to fill the transmission plan information to the preset bit number, for example, the plan padding bits can be filled with 0. The plan header includes a plan valid identifier, a plan ID, a plan page ID, a plan page valid data length, a plan page check code, and a plan header extension field. It should be noted that the number of bytes occupied by each field in the plan header can be set in combination with an actual application scenario, and the present embodiment does not limit this. For example, 4 bytes of data can be set to represent the plan valid identifier, and 4 bytes of data can be set to represent the plan ID.

[0070] After the transmission plan information is converted into the second picture data, the second picture data can include multiple frames of pictures, the plan valid identifier is used to identify whether the current picture is a valid data frame, the plan ID is used to distinguish different transmission plan information when multiple transmission plan information is transmitted, the plan page ID is used to identify different frames of pictures of the second picture data, the plan page valid data length can be used to limit the reading of the valid length of data when the valid data length of the current frame of picture is less than the maximum data length that can be carried by the current frame of picture, so as to avoid reading invalid bits, and the plan page check code is a 16-byte MD5 code converted from the current frame of picture, which is used to check the validity of the corresponding picture data received by the receiving device. The message digest algorithm MD5 is a widely used cryptographic hash function, which can generate a 128-bit (16-byte) hash value to ensure the integrity of information transmission. The plan length, the plan data length, and the plan check code can be included in the plan header extension field, and the plan check code is used to check the validity of the transmission plan information received by the receiving device. The plan header extension field is set in the plan header, which facilitates the extension of the plan information in the plan header extension field.

[0071] In the transmission plan information, one or more plan file information can be included, which can include file ID, file length, file path length, and file path. The file ID is used to identify different plan file information; the file length is used for file integrity check; the file path length is used to parse indefinite length file path, for example, including sub-file in the file, etc., and the file length can be determined by declaring the length of the parsed file path; the file path describes the relative path of the file before transmission, file name, etc., which is used to indicate the receiving device to restore the file data. Similarly, the embodiment does not limit the number of bytes occupied by each field in the plan file information.

[0072] As shown in Figure 3 FIG. 1 is a schematic diagram of transmission plan information. The transmission plan information includes plan header 301, plan file information 302, and plan padding 303. The plan header 301 includes plan valid identification, plan ID, plan page ID, plan page valid data length, plan page check code, and plan header extension field. The plan file information 302 includes n plan file information, which is plan file information 1, plan file information 2, …, and plan file information n. Each plan file information in the plan file information 302 (taking plan file information 1 as an example) includes file ID, file length, file path length, and file path. The plan header extension field includes plan length, plan data length, and plan check code.

[0073] After the sending device converts the transmission plan information into the second picture data, the sending device can send the second picture data to the receiving device through HDMI, and the receiving device can parse the second picture data to obtain the original transmission plan information, i.e., the receiving device can receive the first picture data according to the transmission plan information.

[0074] Specifically, when the sending device transmits the converted first picture data, the sending device and the receiving device can determine the transmission data protocol in advance, and then transmit the first picture data to the receiving device through HDMI according to the transmission data protocol. After the receiving device receives the first picture data, the receiving device can parse the first picture data according to the transmission data protocol. When parsing the first picture data, the receiving device can also restore the parsed first picture data to the to-be-transmitted data according to the plan file information and other contents in the parsed transmission plan information, including the data content of the to-be-transmitted data, the file path, etc.

[0075] It should be noted that the embodiments of the present application do not limit the order in which the sending device sends the first picture data and the second picture data to the receiving device, that is, the first picture data can be sent first, or the second picture data can be sent first, or the first picture data and the second picture data can be sent simultaneously. However, after receiving the first picture data and the second picture data, the receiving device needs to first parse the second picture data to obtain the transmission plan information, so as to use the transmission plan information to indicate receiving the first picture data, thereby restoring the to-be-transmitted data.

[0076] Optionally, the transmission data protocol can include a data header, data content, and data padding bits, etc. The data content is the content of the to-be-transmitted data, and the data padding bits are used to fill the transmission data protocol to a predetermined number of bits. The data header can include a data valid identifier, a data page ID, a data page valid data length, and a data page check code, etc. After converting the to-be-transmitted data into the first picture data, the first picture data can include multiple frames of pictures, the data valid identifier can be used to identify whether the current frame of picture is a valid data frame; the data page ID can be used to distinguish different frames of pictures of the first picture data; the data page valid data length can be used to limit the reading of the valid length of data when the valid data length of the current frame is less than the maximum data length that can be carried by the current frame of picture, so as to avoid reading invalid bits; and the data page check code is an MD5 code of 16 bytes converted from the current frame of picture, which is used to check the validity of the corresponding picture data received by the receiving device. In addition, in order to ensure that the receiving device can accurately receive and restore the to-be-transmitted data, a plan ID and a file ID can also be set in the data header, which are used to be associated with the plan ID and the file ID in the transmission plan information. As shown in FIG. 4, it is a schematic diagram of a transmission data protocol. The transmission data protocol includes a data header 401, data content 402, and data padding bits 403, wherein the data header 401 includes a data valid identifier, a data page ID, a data page valid data length, a data page check code, a plan ID, and a file ID. Figure 4

[0077] When the receiving device receives the first picture data, it can parse and restore the data content to the to-be-transmitted data according to the transmission data protocol and the association of the data in the plan file information in the transmission plan information.

[0078] ​According to the above embodiment, each element (R / G / B) in the picture in the RGB24 format occupies 1 byte, and each pixel point can store 3 bytes of data. In general, the color gamut standard of RGB has two types of full color gamut Full and limited color gamut Limited. If it is RGB Full, the range of the transmitted RGB value is 0-255; if it is RGB Limited, the range of the transmitted RGB value is 16-235. Because there are different versions of HDMI protocol, the color gamut standard of RGB may not be consistent when the sending device and the receiving device transmit picture data through HDMI. In order to improve the accuracy of data transmission, the embodiment provides a possible implementation manner, which is realized by reducing the valid data bits in the byte. Specifically, the original 3 bytes of data bits in each pixel point are set to store only 4 valid data bits in each byte. The original data corresponding to the first byte in the original pixel point is divided by 16 to obtain a remainder, and the value of the original data minus the remainder is stored in the first byte of the new first pixel point, and the remainder multiplied by 16 is stored in the second byte of the new first pixel point. Similarly, the original data corresponding to the second byte in the original pixel point is divided by 16 to obtain a remainder, and the value of the original data minus the remainder is stored in the third byte of the new first pixel point, and the remainder multiplied by 16 is stored in the first byte of the new second pixel point, and the next data is sequentially stored. For example, the value of a byte of data is 123, and 11 is obtained after 123 is divided by 16, 112 is stored in the new first byte, and 11*16 is stored in the new second byte. The two bytes of data sent by the sending device are 112 and 176, but the receiving device may fluctuate when receiving the data, such as receiving data of 115 and 178. The receiving device can obtain 7 by dividing 115 by 16, and 11 by dividing 178 by 16, and 7*16+11 can obtain the original value 123.

[0079] It should be noted that the above-mentioned data transmission method based on different RGB color gamut standards is only an example of the implementation manner, and is not limited to the above-mentioned implementation manner.

[0080] The data transmission method provided by the embodiment of the application can reduce the hardware cost and improve the efficiency of data transmission by converting the data to be transmitted into picture data and then transmitting the picture data through HDMI. In addition, the accuracy of data transmission can be improved by setting transmission plan information and transmission data protocol.

[0081] In the above embodiment, the process of transmitting data by the sending device through HDMI is introduced, and the principle of receiving data by the receiving device will be introduced below.

[0082] Referring to Figure 5 , Figure 5Another flowchart of a data transmission method is provided in the embodiments of the present application. The method can be applied to a receiving device, and can include the following steps:

[0083] S501: receiving first picture data transmitted by the sending device through HDMI;

[0084] The first picture data is obtained by converting the to-be-transmitted data by the sending device.

[0085] When the sending device transmits the to-be-transmitted data to the receiving device, the to-be-transmitted data is first converted into the first picture data, and then the first picture data is transmitted to the receiving device through HDMI. The receiving device can receive the first picture data through HDMI. The HDMI of the sending device and the HDMI of the receiving device can be connected through corresponding data transmission lines.

[0086] S502: parsing the first picture data to obtain the to-be-transmitted data.

[0087] When the receiving device receives the first picture data, the first picture data is parsed to obtain the to-be-transmitted data. Specifically, the receiving device can parse the first picture data according to a transmission data protocol to obtain the to-be-transmitted data. The transmission data protocol is a protocol previously determined between the sending device and the receiving device for data transmission. The specific implementation of the transmission data protocol can be referred to in the above embodiments, and will not be described here.

[0088] Optionally, in order to ensure normal transmission of data between the sending device and the receiving device, and to parse the first picture data into the original to-be-transmitted data after the receiving device receives the first picture data, transmission plan information between the sending device and the receiving device can be determined in advance, which is used to instruct the receiving device to receive the first picture data. Specifically, the sending device can convert the transmission plan information into second picture data in advance, and then transmit the second picture data to the receiving device through HDMI. After the receiving device receives the second picture data, the second picture data is parsed to obtain the transmission plan information, and the first picture data is received according to the transmission plan information. The specific content of the transmission plan information can be referred to in the above embodiments, and will not be described here.

[0089] Based on the above method embodiments, the embodiments of the present application further provide a data transmission device. Referring to Figure 6 , Figure 6 A schematic diagram of a data transmission device provided in the embodiments of the present application is shown.

[0090] The device 600 can be applied to a sending device, and the device 600 includes an acquisition module 601, a conversion module 602, and a transmission module 603.

[0091] The acquisition module 601 is configured to acquire to-be-transmitted data.

[0092] Conversion module 602 is used to convert the data to be transmitted into first image data;

[0093] The transmission module 603 is used to transmit the first image data to the receiving device via the high-definition multimedia interface HDMI.

[0094] In one possible implementation, the device 600 further includes a determining module; the determining module is configured to determine transmission plan information between the transmitting device and the receiving device, the transmission plan information being used to instruct the receiving device to receive the first image data;

[0095] The conversion module 602 is also used to convert the transmission plan information into second image data;

[0096] The transmission module 603 is also used to transmit the second image data to the receiving device via the HDMI.

[0097] In one possible implementation, the transmission module 603 is specifically used to determine the transmission data protocol between the sending device and the receiving device; and to transmit the first image data through the HDMI and the transmission data protocol.

[0098] In one possible implementation, the transmission plan information includes at least one of: a plan header, one or more plan file information, and plan padding bits;

[0099] The plan header includes at least one of the following: plan validity identifier, plan ID, plan page ID, plan page valid data length, plan page checksum, and plan header extended fields;

[0100] Any of the plan file information in the one or more plan file information includes at least one of: file ID, file length, file path length, and file path.

[0101] In one possible implementation, the data transmission protocol includes at least one of a data header, data content, and data padding bits;

[0102] The data header includes at least one of the following: data validity identifier, data page ID, data page valid data length, and data page checksum.

[0103] In addition, embodiments of this application also provide another data transmission device. See [link to related document]. Figure 7 , Figure 7 This is a schematic diagram of another data transmission device provided in an embodiment of this application.

[0104] The apparatus 700 can be applied to a receiving device, and the apparatus 700 comprises a receiving module 701 and an analyzing module 702.

[0105] The receiving module 701 is configured to receive first picture data transmitted by a sending device through HDMI, wherein the first picture data is obtained by converting data to be transmitted by the sending device.

[0106] The analyzing module 702 is configured to analyze the first picture data to obtain the data to be transmitted.

[0107] In a possible implementation, the receiving module 701 is further configured to receive second picture data transmitted by the sending device.

[0108] The analyzing module 702 is further configured to analyze the second picture data to obtain transmission plan information.

[0109] The receiving module 701 is further configured to receive the first picture data according to the transmission plan information.

[0110] In a possible implementation, the analyzing module 702 is specifically configured to analyze the first picture data to obtain the data to be transmitted according to a transmission data protocol, wherein the transmission data protocol is a protocol predetermined by the sending device and the receiving device for data transmission.

[0111] The data transmission apparatus provided by the embodiment of the present application has the beneficial effects as described above, which will not be repeated here.

[0112] Based on the method embodiment and the apparatus embodiment described above, the embodiment of the present application further provides a data transmission device. Referring to Figure 8 , Figure 8 FIG. 8 is a schematic diagram of a data transmission device provided by the embodiment of the present application.

[0113] The device 800 comprises a memory 801 and a processor 802.

[0114] The memory 801 is configured to store related program codes.

[0115] The processor 802 is configured to invoke the program codes and perform the data transmission method described in the above method embodiment.

[0116] In addition, the embodiment of the present application further provides a computer readable storage medium, which is configured to store a computer program, and the computer program is configured to perform the data transmission method described in the above method embodiment.

[0117] It should be noted that the various embodiments described in the specification can be described with reference to a specific sequence or order. Unless otherwise specified, however, the disclosure includes each and every possible combination of the individual elements and features described in the specification. Embodiments described in the specification are illustrative only and not restrictive; therefore, the scope of the disclosure is not limited to these embodiments. In addition, it should be noted that the steps recited in any method embodiment can be performed in any order possible unless otherwise specified. Those skilled in the art will further appreciate that the functions explained herein can be implemented using software functioning instructions executable by one or more processors. As such, implementations can include a computer program product. The computer program product can be a computer- readable medium storing the instructions that can be executed by one or more processors.

[0118] It should be understood that, in this application, "at least one" means one or more, "multiple" means two or more. "And / or", used to describe the association relationship between the associated objects, means that there can be three kinds of relationships, for example, "A and / or B" can mean: only A, only B, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the front and back associated objects. "At least one of the following" or similar expressions means any combination of these items, including any combination of single or multiple items. For example, at least one of a, b or c, can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0119] It should also be noted that in this paper, relationship terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between the entities or operations. Moreover, the terms "include", "contain" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0120] The steps of a method or algorithm described in connection with the embodiments disclosed herein can be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module can reside in random access memory (RAM), flash memory, read-only memory (ROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such that the processor can read information from, and

[0121] The above description of disclosed embodiments is intended to be illustrative and not restrictive. Many embodiments of the application will be apparent to those of skill in the art upon reviewing the above description. The scope of the application should, therefore, be determined not with reference to the above description, but instead should be given with reference to the appended claims, along with their full scope of equivalents.

Claims

1. A data transmission method, characterized by, The method is applied to a sending device, and the method comprises: obtaining to-be-transmitted data; converting the to-be-transmitted data into first picture data; transmitting the first picture data to a receiving device through a high-definition multimedia interface (HDMI); The method further comprises: determining transmission plan information between the sending device and the receiving device, the transmission plan information being used to instruct the receiving device to receive the first picture data, the transmission plan information comprising a plan header, the plan header comprising at least one of a plan valid identifier or a plan page valid data length, the plan valid identifier being used to identify whether a current picture is a valid data frame, and the plan page valid data length being used to limit reading of data of a valid length when a valid data length of the current picture is less than a maximum data length that can be carried by the current picture; converting the transmission plan information into second picture data; transmitting the second picture data to the receiving device through the HDMI.

2. The method of claim 1, wherein, The transmission of the first picture data through the HDMI comprises: determining a transmission data protocol between the sending device and the receiving device; transmitting the first picture data through the HDMI and the transmission data protocol.

3. The method of claim 1, wherein, The transmission plan information further comprises at least one of one or more plan file information and plan padding bits; The plan header further comprises at least one of a plan ID, a plan page ID, a plan page check code, and a plan header extension field; Any plan file information in the one or more plan file information comprises at least one of a file ID, a file length, a file path length, and a file path.

4. The method of claim 2, wherein, The transmission data protocol comprises at least one of a data header, data content, and data padding bits; The data header comprises at least one of a data valid identifier, a data page ID, a data page valid data length, and a data page check code.

5. A data transmission method, characterized by, The method is applied to a receiving device, and the method comprises: receiving first picture data transmitted by a sending device through an HDMI, the first picture data being obtained by the sending device by converting to-be-transmitted data; parsing the first picture data to obtain the to-be-transmitted data; The method further comprises: receiving second picture data transmitted by the sending device; parsing the second picture data to obtain transmission plan information, the transmission plan information being used to instruct the receiving device to receive the first picture data, the transmission plan information comprising a plan header, the plan header comprising at least one of a plan valid identifier or a plan page valid data length, the plan valid identifier being used to identify whether a current picture is a valid data frame, and the plan page valid data length being used to limit reading of data of a valid length when a valid data length of the current picture is less than a maximum data length that can be carried by the current picture; receiving the first picture data according to the transmission plan information.

6. The method of claim 5, wherein, The parsing of the first picture data to obtain to-be-transmitted data comprises: parsing the first picture data according to a transmission data protocol to obtain to-be-transmitted data, the transmission data protocol being a protocol previously determined between the sending device and the receiving device for data transmission.

7. A data transmission apparatus, characterized by comprising: The device is applied to a sending device, and the device comprises: an acquisition module, configured to acquire to-be-transmitted data; a conversion module, configured to convert the to-be-transmitted data into first picture data; a transmission module, configured to transmit the first picture data to a receiving device through a high-definition multimedia interface (HDMI); the device further comprises a determination module; the determination module is configured to determine transmission plan information between the sending device and the receiving device, the transmission plan information being used to instruct the receiving device to receive the first picture data, and the transmission plan information comprising a plan header, the plan header comprising at least one of a plan validity identifier or a plan page valid data length, the plan validity identifier being used to identify whether a current picture is a valid data frame, and the plan page valid data length being used to limit reading of data of a valid length when a valid data length of the current picture is smaller than a maximum data length that can be carried by the current picture; the conversion module is further configured to convert the transmission plan information into second picture data; the transmission module is further configured to transmit the second picture data to the receiving device through the HDMI.

8. A data transmission apparatus, characterized by comprising: The device is applied to a receiving device, and the device comprises: a receiving module, configured to receive first picture data transmitted by a sending device through an HDMI, the first picture data being obtained by converting to-be-transmitted data by the sending device; an analysis module, configured to analyze the first picture data to obtain the to-be-transmitted data; the receiving module is further configured to receive second picture data transmitted by the sending device; the analysis module is further configured to analyze the second picture data to obtain transmission plan information, the transmission plan information being used to instruct the receiving device to receive the first picture data, and the transmission plan information comprising a plan header, the plan header comprising at least one of a plan validity identifier or a plan page valid data length, the plan validity identifier being used to identify whether a current picture is a valid data frame, and the plan page valid data length being used to limit reading of data of a valid length when a valid data length of the current picture is smaller than a maximum data length that can be carried by the current picture; the receiving module is further configured to receive the first picture data according to the transmission plan information.

9. A data transmission device, characterized by The device comprises a memory and a processor; the memory is configured to store related program codes; the processor is configured to invoke the program codes to execute the data transmission method in any one of claims 1 to 4 or claims 5 and 6.

10. A computer-readable storage medium, characterized in that, The computer readable storage medium is configured to store a computer program, the computer program being configured to, when invoked by a processor, execute the data transmission method in any one of claims 1 to 4 or claims 5 and 6.

Citation Information

Patent Citations

  • Data transmission method and system

    CN106713415A

  • Data transmission method and system, electronic equipment and storage medium

    CN107835243A

  • Equipment data intercommunication method

    CN110784620A