HDMI data transmission method, system, terminal and storage medium
By determining whether the data value exceeds the preset value during HDMI data transmission, obtaining bandwidth enlargement instructions, and using the bandwidth adjustment table to adjust bandwidth, the problem of poor transmission speed and bandwidth adjustment flexibility is solved, and flexibility in data transmission is achieved and speed increase.
Patent Information
- Application Number
- CN202211167688.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-23
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-09-23
AI Technical Summary
The transmission speed and bandwidth adjustment flexibility during the existing HDMI data transmission process is poor, resulting in slow transmission of big data and fixed bandwidth occupancy, making it difficult to adapt to the transmission needs of different data volumes.
By determining whether the transmitted data value exceeds the preset value, obtain the bandwidth increase instruction, adjust the bandwidth according to the data difference value and bandwidth adjustment table, flexibly adjust the transmission bandwidth to adapt to the transmission needs of different data volumes.
It improves flexibility and speed during data transmission, reduces system processing pressure, and realizes flexible adjustment of transmission bandwidth to adapt to the transmission needs of different data volumes.
Smart Images

Figure CN115514992B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission, and in particular to an HDMI data transmission method, system, terminal and storage medium. Background Art
[0002] High Definition Multimedia Interface (HDMI) is a fully digital video and sound transmission interface that can send uncompressed audio and video signals.
[0003] In the current process of transmitting HDMI data, the data is usually transmitted at a fixed transmission speed, and the data transmission method is relatively fixed and has poor flexibility. Summary of the invention
[0004] In order to improve the flexibility of the data transmission process, the present application provides an HDMI data transmission method, system, terminal and storage medium.
[0005] In a first aspect, the present application provides an HDMI data transmission method, which adopts the following technical solution:
[0006] An HDMI data transmission method, comprising:
[0007] When data transmission is performed, the transmission data value of the data is obtained;
[0008] Determining whether the transmitted data value exceeds a preset data value;
[0009] When the transmission data value exceeds the preset data value, a bandwidth increase instruction is obtained;
[0010] The transmission bandwidth for transmitting data exceeding the preset data value is increased based on the bandwidth increase instruction.
[0011] By adopting the above technical solution, it is possible to determine whether the data transmission value of the data exceeds the preset data value, and whether the data value is too large. If so, in order to speed up the data transmission, a bandwidth increase instruction is obtained to increase the data transmission bandwidth. Thus, the data transmission speed can be flexibly adjusted, thereby improving the flexibility of the data transmission process.
[0012] Preferably, obtaining the bandwidth increase instruction includes:
[0013] Acquire a data difference value based on the transmitted data value and the preset data value;
[0014] Acquire a bandwidth adjustment table, wherein the bandwidth adjustment table includes bandwidth adjustment values and difference intervals corresponding to the bandwidth adjustment values;
[0015] Matching the data difference with the difference interval and obtaining the corresponding bandwidth adjustment value as the actual adjustment value;
[0016] The bandwidth increase instruction is generated based on the actual adjustment value.
[0017] By adopting the above technical solution, the data difference is matched with the bandwidth adjustment table to obtain the actual adjustment value, and a bandwidth increase instruction is generated according to the actual adjustment value, thereby facilitating the adjustment of the transmission bandwidth.
[0018] Preferably, before acquiring the transmission data value of the data, the method further includes:
[0019] Get the number of data transfers;
[0020] When the transmission quantity is one, the step of obtaining the transmission data value of the data is not performed;
[0021] When the transmission quantity is at least two, proceed to the next step.
[0022] By adopting the above technical solution, whether to obtain the transmission data value of the data is determined according to the transmission quantity, which can reduce the processing pressure of the system on processing the data.
[0023] Preferably, when the number of transmissions is at least two, before obtaining the bandwidth increase instruction, the method further includes:
[0024] Determine the data quantity of the data whose transmission data value exceeds the preset data value;
[0025] When the number of data is one, a bandwidth compression instruction is obtained to compress the transmission bandwidth of the data whose transmission data value does not exceed the preset data value, and a first compression bandwidth is obtained;
[0026] Obtaining the bandwidth increase instruction based on the first compression bandwidth to increase the transmission bandwidth of the data whose transmission data value exceeds the preset data value;
[0027] When the number of the data is at least two, the data whose transmission data value exceeds the preset data value is sorted according to a preset sorting priority to obtain first sorted data;
[0028] Sorting the data whose transmission data value does not exceed the preset data value according to a preset compression priority to obtain second sorted data;
[0029] Obtain the bandwidth compression instruction to compress the second sorted data in sequence according to a preset compression rule, and obtain a second compressed bandwidth;
[0030] The bandwidth increase instruction is obtained based on the second compression bandwidth, and the transmission bandwidth of the first sorted data is increased in sequence according to a preset increase rule.
[0031] By adopting the above technical solution, by determining the number of data whose transmission data value exceeds the preset data value, when the number of data is one, a bandwidth increase instruction is obtained through the first compression bandwidth to increase the transmission bandwidth of the data whose transmission data value exceeds the preset data value. When the number of data is at least two, the first sorted data is obtained, and the second sorted data is compressed to obtain the second compression bandwidth, and finally the bandwidth increase instruction is obtained according to the second compression bandwidth to increase the transmission bandwidth of the first sorted data. Thus, the transmission bandwidth of the data can be better adjusted.
[0032] Preferably, increasing the transmission bandwidth of the first sorted data in sequence according to a preset increasing rule comprises:
[0033] Obtaining an average allocated bandwidth based on the amount of data and the second compressed bandwidth;
[0034] Based on the average allocated bandwidth, sequentially increasing the transmission bandwidth of the first sorted data according to an average rule;
[0035] or,
[0036] Acquire data whose transmission data value exceeds the preset data value as excess data;
[0037] Obtaining a difference between a transmission data value of the excess data and the preset data value as an excess difference;
[0038] Obtaining the total value of all the excess differences as the total excess value;
[0039] Obtaining an excess ratio of the excess difference value to the excess total value;
[0040] Obtaining a proportionally allocated bandwidth based on the excess ratio and the second compressed bandwidth;
[0041] Based on the proportional allocation of bandwidth, the transmission bandwidth of the first sorted data is increased in sequence according to a proportional rule.
[0042] By adopting the above technical solution, the transmission bandwidth of the first sorted data is increased according to an average rule, or the transmission bandwidth of the first sorted data is increased according to a proportional rule, so that the diversity of transmission bandwidth adjustment can be improved.
[0043] As a preference, it also includes:
[0044] When the transmission data value does not exceed the preset data value, obtaining the amount of data to be transmitted as the current amount;
[0045] When the current number is one, the maximum transmission bandwidth is obtained;
[0046] Transmitting data based on the maximum transmission bandwidth;
[0047] When the current number is at least two, obtaining an average bandwidth based on the current number;
[0048] All data is transmitted based on the average bandwidth.
[0049] By adopting the above technical solution, when the transmission data value does not exceed the preset data value, the number of data for data transmission is obtained as the current number. When the current number is one, the data is transmitted according to the maximum bandwidth. When the current number is at least two, the data is transmitted according to the average bandwidth, thereby facilitating data transmission.
[0050] Preferably, when the current number is at least two, the method further comprises:
[0051] Obtaining a data value ratio of all the transmitted data values;
[0052] obtaining a proportional bandwidth based on the data value ratio;
[0053] Corresponding data is transmitted based on the proportional bandwidth.
[0054] By adopting the above technical solution and transmitting data through proportional bandwidth, the diversity of bandwidth adjustment can be further improved.
[0055] In a second aspect, the present application provides an HDMI data transmission system, which adopts the following technical solution:
[0056] An HDMI data transmission system, comprising:
[0057] A data value acquisition module, used to acquire the transmission data value of data when data transmission is performed;
[0058] A data value judgment module, used to judge whether the transmitted data value exceeds a preset data value;
[0059] An instruction acquisition module, used for acquiring a bandwidth increase instruction when the transmission data value exceeds the preset data value;
[0060] The bandwidth adjustment module is used to increase the transmission bandwidth for transmitting data exceeding the preset data value based on the bandwidth increase instruction.
[0061] By adopting the above technical solution, according to the data transmission between each module, by judging whether the data transmission value of the data exceeds the preset data value, it can be judged whether the data value is too large. If so, in order to speed up the data transmission, a bandwidth increase instruction is obtained to increase the data transmission bandwidth. In this way, the data transmission speed can be flexibly adjusted, thereby improving the flexibility in the data transmission process.
[0062] In a third aspect, the present application provides a smart terminal, which adopts the following technical solution:
[0063] An intelligent terminal, comprising:
[0064] A memory for storing computer programs that can be run on the processor;
[0065] The processor, when running the computer program, can execute the steps of any of the above methods.
[0066] By adopting the above technical solution, the memory can store information, and the processor can retrieve the information and issue control instructions to ensure the orderly execution of the program and achieve the effect of the above solution.
[0067] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:
[0068] A computer-readable storage medium stores a computer program that can be loaded by a processor and execute any one of the above methods.
[0069] By adopting the above technical solution, when the computer-readable storage medium is loaded into any computer, any computer can execute an HDMI data transmission method provided by the present application.
[0070] In summary, the present application includes at least one of the following beneficial technical effects:
[0071] 1. By judging whether the data transmission value of the data exceeds the preset data value, it can be judged whether the data value is too large. If so, in order to speed up the data transmission, a bandwidth increase instruction is obtained to increase the data transmission bandwidth. In this way, the data transmission speed can be flexibly adjusted, thereby improving the flexibility of the data transmission process;
[0072] 2. Match the data difference with the bandwidth adjustment table to obtain the actual adjustment value, and generate a bandwidth increase instruction based on the actual adjustment value, thereby facilitating the adjustment of the transmission bandwidth. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1 It is a flowchart of an HDMI data transmission method provided by an embodiment of the present application;
[0074] Figure 2 is a flowchart of step S11 to step S1X in one embodiment of the present application;
[0075] Figure 3 is a flowchart of step S21 to step S2X in one embodiment of the present application;
[0076] Figure 4 is a flowchart of steps S31 to S3X in one embodiment of the present application;
[0077] Figure 5 is a flowchart of steps S41 to S4X in one embodiment of the present application;
[0078] Figure 6 is a flowchart of steps S51 to S5X in one embodiment of the present application;
[0079] Figure 7 is a flowchart of steps S61 to S6X in one embodiment of the present application;
[0080] Figure 8 It is a structural block diagram of an HDMI data transmission system provided in an embodiment of the present application.
[0081] Description of reference numerals:
[0082] 1. Data value acquisition module; 2. Data value judgment module; 3. Instruction acquisition module; 4. Bandwidth adjustment module. DETAILED DESCRIPTION
[0083] The following is combined with Figures 1 to 8 This application is described in further detail.
[0084] The embodiment of the present application discloses an HDMI data transmission method.
[0085] Reference Figure 1 , HDMI data transmission includes:
[0086] S1. When data transmission is performed, the transmission data value of the data is obtained;
[0087] S2. Determine whether the transmitted data value exceeds the preset data value;
[0088] S3. When the transmission data value exceeds the preset data value, the bandwidth increase instruction is obtained;
[0089] S4. Increasing the transmission bandwidth for transmitting data exceeding a preset data value based on the bandwidth increase instruction.
[0090] HDMI data is a commonly used transmission data. However, in the current data transmission process through multiple interfaces, each interface usually transmits at a relatively fixed transmission rate, and in the process of multiple data transmission, the data transmission bandwidth is usually relatively fixed. Therefore, a relatively small data transmission process will also occupy a large transmission bandwidth, which will cause the transmission of large data to be relatively slow. Therefore, the flexibility of adjusting the bandwidth during data transmission is relatively low. Therefore, in order to flexibly adjust the bandwidth, the following operations can be performed:
[0091] Specifically, when transmitting data to different devices, the transmission data value of the data, that is, the size of the data, is first obtained. The size value of the data, that is, the transmission data value, can be obtained by reading the attribute value of the data. Then, it is determined whether the transmission data value exceeds the preset data value. By determining whether the transmission data value exceeds the preset data value, it is determined whether the data transmission bandwidth needs to be adjusted. The preset data value can be set according to the actual situation, for example, it can be 10GB, and of course it can also be other values.
[0092] If the transmission data value does not exceed the preset data value, the data transmission bandwidth may not be adjusted. Of course, in other implementations, appropriate adjustments may also be made. If the transmission data value exceeds the preset data value, it proves that the data being transmitted is large, so it is necessary to appropriately adjust the bandwidth for data transmission to the device, thereby facilitating the improvement of the data transmission speed.
[0093] Therefore, when the transmission data value exceeds the preset data value, a bandwidth increase instruction is obtained, and the transmission bandwidth for transmitting the data exceeding the preset data value is increased according to the bandwidth increase instruction. A specific adjustment method may be that the system reserves a certain allocable transmission bandwidth, and then when the bandwidth increase instruction is obtained, the reserved bandwidth is allocated to the corresponding data to be transmitted, thereby increasing the bandwidth for data transmission. Of course, the adjustment method may also be other methods.
[0094] The above-mentioned method can flexibly adjust the transmission bandwidth of data exceeding the preset data value, thereby flexibly adjusting the data transmission speed, thereby improving the flexibility in the data transmission process.
[0095] Reference Figure 2 In order to better allocate the reserved allocatable transmission bandwidth, in another embodiment, obtaining a bandwidth increase instruction includes:
[0096] S11. Obtaining a data difference based on the transmitted data value and the preset data value;
[0097] S12. Obtain a bandwidth adjustment table, the bandwidth adjustment table including a bandwidth adjustment value and a difference interval corresponding to the bandwidth adjustment value;
[0098] S13. Match the data difference with the difference interval and obtain the corresponding bandwidth adjustment value as the actual adjustment value;
[0099] S14. Generate a bandwidth increase instruction based on the actual adjustment value.
[0100] Specifically, first, a data difference is obtained according to the transmission data value and the preset data value, that is, the value obtained by subtracting the preset data value from the transmission data value is the data difference. Then, a bandwidth adjustment table is obtained, which is a preset data table, and the bandwidth adjustment table includes a bandwidth adjustment value and a difference interval corresponding to the bandwidth adjustment value. Among them, the bandwidth adjustment value is a bandwidth value for allocating the allocable transmission bandwidth to the normally transmitted data. The difference interval is a range value, and when the data difference is after the corresponding difference interval, the corresponding bandwidth adjustment interval can be obtained.
[0101] Therefore, after obtaining the data difference and the bandwidth adjustment table, the data difference is matched with the difference interval in the bandwidth adjustment table to obtain the corresponding bandwidth adjustment value and use it as the actual adjustment value. Finally, a bandwidth increase instruction is generated according to the actual adjustment value, so that the data transmission bandwidth is increased according to the actual adjustment value through the bandwidth increase instruction, thereby being able to better and more reasonably allocate the allocable bandwidth.
[0102] Of course, in one possible implementation of this embodiment, if it is necessary to adjust the transmission bandwidth of data whose transmission data value does not exceed the preset data value, that is, when the data difference is a negative value, the data difference can also be matched with the difference interval. At this time, the matched bandwidth adjustment value is a negative value, and then a bandwidth compression instruction is generated according to the bandwidth adjustment value at this time, and then the transmission bandwidth of the current data is added with the obtained negative value to achieve bandwidth compression.
[0103] That is to say, when the obtained bandwidth adjustment value is a positive value, the obtained instruction is a bandwidth increase instruction, and when the obtained bandwidth adjustment value is a negative value, the obtained instruction is a bandwidth reduction instruction, so as to facilitate the compression of the transmission bandwidth of smaller data, facilitate the increase of the allocatable bandwidth on the basis of the reserved allocatable bandwidth, and facilitate the increase of the transmission bandwidth of more data whose transmission data value exceeds the preset data value, thereby improving the data transmission speed. Thus, better adjustment of the data transmission bandwidth can be achieved.
[0104] Reference Figure 3 In order to reduce the information processing pressure of bandwidth adjustment during data transmission, in another embodiment, before obtaining the transmission data value of the data, it also includes:
[0105] S21. Get the number of data transmissions;
[0106] S22. When the number of transmissions is one, the step of obtaining the transmission data value of the data is not performed;
[0107] S23. When the number of transmissions is at least two, execute step S1.
[0108] Specifically, before executing step S1, ie obtaining the data transmission value of the data, the data transmission quantity is obtained, ie the number of interfaces that the system can read for data transmission, and the number of interfaces is the data transmission quantity.
[0109] When the number of transmissions is one, that is, there is only one data transmission task, step S1 may not be executed at this time, that is, all bandwidths may be directly allocated to the current data transmission task at this time, so there is no need to perform a series of subsequent judgment steps, thereby reducing the data processing pressure.
[0110] When the number of data is at least two, the data transmission bandwidth needs to be adjusted and allocated, so step S1 is executed to obtain the data transmission data value, so as to facilitate the adjustment of the data transmission bandwidth in subsequent steps.
[0111] Reference Figure 4 In order to better adjust the data transmission bandwidth, in another embodiment, when the number of transmissions is at least two, before obtaining the bandwidth increase instruction, it also includes:
[0112] S31. Determine the amount of data transmitted when the data value exceeds the preset data value;
[0113] S32. When the number of data is one, a bandwidth compression instruction is obtained to compress the transmission bandwidth of the data whose transmission data value does not exceed the preset data value, and obtain a first compression bandwidth;
[0114] S33. Based on the first compression bandwidth, a bandwidth increase instruction is obtained to increase the transmission bandwidth of data whose transmission data value exceeds a preset data value;
[0115] S34. When the number of data is at least two, the data whose transmission data value exceeds the preset data value is sorted according to the preset sorting priority to obtain the first sorted data;
[0116] S35. Sort the data whose transmission data value does not exceed the preset data value according to the preset compression priority to obtain the second sorted data;
[0117] S36. Obtain bandwidth compression instructions to compress the second sorted data in sequence according to a preset compression rule, and obtain a second compressed bandwidth;
[0118] S37. Obtain a bandwidth increase instruction based on the second compression bandwidth, and increase the transmission bandwidth of the first sorted data in sequence according to a preset increase rule.
[0119] Specifically, when the number of transmissions is at least two, and before obtaining the bandwidth increase instruction, the number of data whose transmission data value exceeds the preset data value is determined at this time. During the data transmission process at this time, the bandwidth allocation can be adjusted in a manner that does not reserve the allocatable bandwidth, but instead compresses the transmission bandwidth of data whose transmission data value does not exceed the preset data value, and allocates it to the transmission bandwidth of data whose transmission data value exceeds the preset data value.
[0120] Therefore, when the number of data is one, a bandwidth compression instruction is obtained to compress the transmission bandwidth of data whose transmission data value does not exceed the preset data value, and the first compressed bandwidth is obtained. The method of obtaining the bandwidth compression instruction can also be used to obtain the transmission bandwidth of data whose compressed transmission data value does not exceed the preset data value in a manner matching the bandwidth adjustment table, that is, the first compressed bandwidth.
[0121] Then, a bandwidth increase instruction is obtained according to the first compression bandwidth to increase the transmission bandwidth of data whose transmission data value exceeds the preset data value, that is, the transmission bandwidth of data whose transmission data value exceeds the preset data value is increased according to the size of the first compression bandwidth.
[0122] When the number of data is at least two, the data whose transmission data value exceeds the preset data value is sorted according to the preset sorting priority to obtain the first sorted data. Here, the data whose transmission data value exceeds the preset data value is called excess data, wherein the preset sorting priority is the priority from large to small, that is, the excess data is sorted in order from large to small, and the obtained sorted data is the first sorted data.
[0123] The data whose transmission data value does not exceed the preset data value is sorted according to the preset compression priority to obtain the second sorted data. Here, the data whose transmission data value does not exceed the preset data value is called non-excess data, and the preset compression priority is also based on the priority from large to small, that is, the non-excess data is sorted in order from large to small, and the obtained sorted data is the second sorted data.
[0124] Next, the bandwidth compression instruction is obtained to compress the second sorted data in sequence according to the preset compression rule, and obtain the second compressed bandwidth. The preset compression rule may be to compress all the second sorted data to the same bandwidth, or to compress the second sorted data according to a preset ratio. The preset ratio may be to compress each data according to the size of each data in the second sorted data, and then compress each data according to the preset compression ratio. Then, the compressed bandwidths obtained by all compressions are integrated, and the sum of the final compressed bandwidths obtained is the second compressed bandwidth.
[0125] Finally, a bandwidth increase instruction is obtained based on the second compressed bandwidth, and the transmission bandwidth of the first sorted data is increased in sequence according to the preset increase rule, that is, a bandwidth increase instruction is obtained according to the size of the second compressed bandwidth and the second compressed bandwidth is allocated according to the bandwidth increase instruction. The second compressed bandwidth is allocated in accordance with the preset increase rule, and then the allocated bandwidth is increased to the transmission bandwidth of the first sorted data in sequence, thereby increasing the transmission bandwidth. Among them, the preset increase rule can be set according to the actual situation.
[0126] Reference Figure 5 In order to increase the manner of increasing the transmission bandwidth of the first sorted data, in another embodiment, the transmission bandwidth of the first sorted data is increased in sequence according to a preset increase rule, including:
[0127] S41. Obtaining an average bandwidth distribution based on the amount of data and the second compressed bandwidth;
[0128] S42. Based on the average bandwidth allocation, the transmission bandwidth of the first sorted data is increased in sequence according to the average rule;
[0129] or,
[0130] S43. Obtaining data whose transmission value exceeds the preset data value as excess data;
[0131] S44 obtains the difference between the transmission data value of the excess data and the preset data value as the excess difference;
[0132] S45. Obtain the total value of all excess differences as the total excess value;
[0133] S46. Obtaining the excess ratio of the excess difference to the excess total value;
[0134] S47. Obtaining proportional bandwidth based on the excess ratio and the second compressed bandwidth;
[0135] S48. Based on the proportional allocation of bandwidth, increase the transmission bandwidth of the first sorted data in sequence according to the proportional rule.
[0136] Specifically, increasing the transmission bandwidth of the first sorted data in sequence according to the preset increasing rule may be increasing according to an average rule or according to a proportional rule. Increasing according to the average rule specifically includes the following steps:
[0137] First, the average bandwidth is obtained according to the amount of data and the second compression bandwidth, that is, the second compression bandwidth is evenly divided according to the amount of data, that is, the value obtained by dividing the second compression bandwidth by the amount of data is the average bandwidth. Of course, when the second compression bandwidth cannot be divided evenly, the value of the second compression bandwidth can be reduced until it can be divided evenly. For example, the amount of data is 3, and the second compression bandwidth is 100MB / s. At this time, the second compression bandwidth cannot be divided evenly, so the second compression bandwidth is reduced to 99MB / s, which can be divided evenly, that is, it is evenly divided into 33MB / s.
[0138] Then, according to the average allocation of bandwidth, the transmission bandwidth of the first sorted data is increased in sequence according to the average rule, that is, the bandwidth obtained by evenly dividing is added to the corresponding data transmission bandwidth in sequence according to the sorting order of the first excluded data, thereby increasing the transmission bandwidth.
[0139] The specific steps of increasing the size according to the proportional rule are as follows:
[0140] First, data whose transmission data value exceeds the preset data value is obtained as excess data, and then the difference between the transmission data value of the excess data and the preset data value is obtained as the excess difference, that is, the difference between the transmission data value of each excess data and the preset data value is obtained, that is, there are as many excess differences as there are excess data. It should be understood that the excess differences are all positive values.
[0141] Then, the total value of all excess differences is obtained as the excess total value, that is, the sum of all excess differences is obtained. Then, the excess ratio of the excess difference in the excess total value is obtained, that is, the ratio of each excess difference in the excess total value. That is, each excess difference is divided by the excess total value, and the obtained value is the excess ratio.
[0142] Then, the proportional allocation bandwidth is obtained according to the excess ratio and the second compression bandwidth, that is, the value of the compression bandwidth obtained by multiplying the excess ratio of the corresponding excess data by the second compression bandwidth is the proportional allocation bandwidth. That is, each excess data corresponds to a corresponding proportional allocation bandwidth.
[0143] Finally, according to the proportional allocation bandwidth, the transmission bandwidth of the first sorted data is increased in sequence according to the proportional rule. That is, the process of obtaining the proportional allocation bandwidth is to obtain it in sequence according to the sorting order of the first sorted data, so the order of the proportional allocation bandwidth corresponds to the data corresponding to the first sorted data one by one, so at this time, the obtained proportional allocation bandwidth is added to the transmission bandwidth corresponding to the first sorted data in sequence, thereby increasing the transmission bandwidth.
[0144] Therefore, the bandwidth of data transmission can be increased in different ways, the diversity of bandwidth increase can be increased, and the selectivity of the bandwidth increase method can be improved.
[0145] Reference Figure 6 , when it is necessary to adjust the transmission bandwidth of data whose transmission data value does not exceed the preset data value, that is, non-excess data, in another embodiment, when the transmission data value does not exceed the preset data value, it also includes:
[0146] S51. Obtain the amount of data to be transmitted as the current amount;
[0147] S52. When the current number is one, the maximum transmission bandwidth is obtained;
[0148] S53. Transmit data based on the maximum transmission bandwidth;
[0149] S54. When the current number is at least two, the average bandwidth is obtained based on the current number;
[0150] S55. Transmit all data based on the average bandwidth.
[0151] Specifically, the amount of data being transmitted at this time is obtained as the current amount, and the data being transmitted at this time are all non-excess data. Then the value of the current amount is determined, and when the current amount is one, the maximum transmission bandwidth is obtained, that is, the maximum transmission bandwidth allowed by the system at this time. Then the data is transmitted according to the maximum transmission bandwidth, so that the current data can be transmitted at the fastest speed.
[0152] When the current number is at least two, the average bandwidth is obtained based on the current number, that is, the current maximum bandwidth allowed is divided by the current number, and the bandwidth obtained is the average bandwidth. Then all data is transmitted based on the average bandwidth, that is, all non-excess data is transmitted with the same transmission bandwidth. The adjustment method is relatively simple and convenient.
[0153] Reference Figure 7 In order to improve the diversity of the non-excess data bandwidth adjustment options, in another embodiment, when the current number is at least two, it also includes:
[0154] S61. Obtaining the data value ratio of all transmitted data values;
[0155] S62. Obtaining proportional bandwidth based on the data value ratio;
[0156] S63. Transmit corresponding data based on the proportional bandwidth.
[0157] Specifically, when the current number is at least two, the data value ratio of all transmitted data values is obtained, that is, the sum of all transmitted data values is first obtained, and then each transmitted data value is divided by the sum, and the obtained value is the data value ratio of each data.
[0158] Then, the proportional bandwidth is obtained according to the data value ratio. The acquisition method can be to first obtain the maximum transmission bandwidth allowed by the system at this time, and then multiply the maximum transmission bandwidth by the data value ratio. The bandwidth value obtained is the proportional bandwidth of each data. Finally, the corresponding data is transmitted according to the proportional bandwidth, that is, each proportional bandwidth corresponds to a corresponding data, and then the data can be transmitted according to the proportional bandwidth allocated to itself. This can increase the diversity of options for adjusting the transmission bandwidth of non-excess data.
[0159] The implementation principle of an HDMI data transmission method in the embodiment of the present application is: when data transmission is performed, the transmission data value of the data is obtained, and then it is determined whether the transmission data value exceeds the preset data value. When the transmission data value exceeds the preset data value, a bandwidth increase instruction is obtained, so as to increase the transmission bandwidth for transmitting data exceeding the preset data value according to the bandwidth increase instruction. The above method can flexibly adjust the transmission bandwidth of data exceeding the preset data value, so that the data transmission speed can be flexibly adjusted, thereby improving the flexibility of the data transmission process.
[0160] The embodiment of the present application also discloses an HDMI data transmission system.
[0161] Reference Figure 8 , HDMI data transmission system includes:
[0162] A data value acquisition module 1 is used to acquire the transmission data value of data when data transmission is performed;
[0163] The data value judgment module 2 is used to judge whether the transmission data value exceeds the preset data value;
[0164] The instruction acquisition module 3 is used to acquire a bandwidth increase instruction when the transmission data value exceeds a preset data value;
[0165] The bandwidth adjustment module 4 is used to increase the transmission bandwidth for transmitting data exceeding a preset data value based on the bandwidth increase instruction.
[0166] Specifically, when data is transmitted, the data value acquisition module 1 acquires the transmission data value of the data and sends it to the data value judgment module 2 connected thereto. The data value judgment module 2 then judges whether the transmission data value exceeds the preset data value and sends the judgment result to the instruction acquisition module 3 connected thereto.
[0167] When the transmission data value exceeds the preset data value, the instruction acquisition module 3 acquires the bandwidth increase instruction and sends it to the bandwidth adjustment module 4 connected thereto. Finally, the bandwidth adjustment module 4 increases the transmission bandwidth for transmitting the data exceeding the preset data value based on the bandwidth increase instruction. Thus, the data transmission speed can be flexibly adjusted, thereby improving the flexibility in the data transmission process.
[0168] The embodiment of the present application also discloses an intelligent terminal, including a memory and a processor. The memory stores an intelligent computer program. The processor, when running the intelligent computer program, can execute the steps of the above-mentioned HDMI data transmission method. The intelligent computer program can use a known processing program to perform a series of steps such as data transmission, adjustment, and sorting, thereby realizing data query.
[0169] The embodiment of the present application also discloses a computer-readable storage medium, which stores a computer program that can be loaded by a processor and execute the HDMI data transmission method as described above. The computer-readable storage medium includes, for example, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0170] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A HDMI data transmission method, characterized in that: include: When data transmission is performed, the transmission data value of the data is obtained; Determining whether the transmitted data value exceeds a preset data value; When the transmission data value exceeds the preset data value, a bandwidth increase instruction is obtained; increasing the transmission bandwidth for transmitting data exceeding the preset data value based on the bandwidth increase instruction; Obtaining the bandwidth increase instruction includes: Acquire a data difference value based on the transmitted data value and the preset data value; Acquire a bandwidth adjustment table, wherein the bandwidth adjustment table includes bandwidth adjustment values and difference intervals corresponding to the bandwidth adjustment values; Matching the data difference with the difference interval and obtaining the corresponding bandwidth adjustment value as the actual adjustment value; generating the bandwidth increase instruction based on the actual adjustment value; Before the data transmission value of the data is obtained, the method further includes: Get the number of data transfers; When the transmission quantity is one, the step of obtaining the transmission data value of the data is not performed; When the number of transmissions is at least two, proceed to the next step; When the number of transmissions is at least two, before obtaining the bandwidth increase instruction, the method further includes: Determine the data quantity of the data whose transmission data value exceeds the preset data value; When the number of data is one, a bandwidth compression instruction is obtained to compress the transmission bandwidth of the data whose transmission data value does not exceed the preset data value, and a first compression bandwidth is obtained; Obtaining the bandwidth increase instruction based on the first compression bandwidth to increase the transmission bandwidth of the data whose transmission data value exceeds the preset data value; When the number of the data is at least two, the data whose transmission data value exceeds the preset data value is sorted according to a preset sorting priority to obtain first sorted data; Sorting the data whose transmission data value does not exceed the preset data value according to a preset compression priority to obtain second sorted data; Obtain the bandwidth compression instruction to compress the second sorted data in sequence according to a preset compression rule, and obtain a second compressed bandwidth; Obtaining the bandwidth increase instruction based on the second compression bandwidth, and increasing the transmission bandwidth of the first sorted data in sequence according to a preset increase rule; The step of sequentially increasing the transmission bandwidth of the first sorted data according to a preset increasing rule includes: Obtaining an average allocated bandwidth based on the amount of data and the second compressed bandwidth; Based on the average allocated bandwidth, sequentially increasing the transmission bandwidth of the first sorted data according to an average rule; or, Acquire data whose transmission data value exceeds the preset data value as excess data; Obtaining a difference between a transmission data value of the excess data and the preset data value as an excess difference; Obtaining the total value of all the excess differences as the total excess value; Obtaining an excess ratio of the excess difference value to the excess total value; Obtaining a proportionally allocated bandwidth based on the excess ratio and the second compressed bandwidth; Based on the proportional allocation of bandwidth, the transmission bandwidth of the first sorted data is increased in sequence according to a proportional rule.
2. The transmission method according to claim 1, characterized in that: Also includes: When the transmission data value does not exceed the preset data value, obtaining the amount of data to be transmitted as the current amount; When the current number is one, the maximum transmission bandwidth is obtained; Transmitting data based on the maximum transmission bandwidth; When the current number is at least two, obtaining an average bandwidth based on the current number; All data is transmitted based on the average bandwidth.
3. The transmission method according to claim 2, characterized in that: When the current number is at least two, the method further includes: Obtaining a data value ratio of all the transmitted data values; obtaining a proportional bandwidth based on the data value ratio; Corresponding data is transmitted based on the proportional bandwidth.
4. An intelligent terminal, characterized in that: include: A memory for storing computer programs that can be run on the processor; The processor, when running the computer program, is capable of executing the steps of the method according to any one of claims 1 to 3.
5. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the method according to any one of claims 1 to 3.
