CN115514992A - HDMI data transmission method, system, terminal and storage medium - Google Patents

HDMI data transmission method, system, terminal and storage medium Download PDF

Info

Publication number
CN115514992A
CN115514992A CN202211167688.3A CN202211167688A CN115514992A CN 115514992 A CN115514992 A CN 115514992A CN 202211167688 A CN202211167688 A CN 202211167688A CN 115514992 A CN115514992 A CN 115514992A
Authority
CN
China
Prior art keywords
data
bandwidth
transmission
value
data value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211167688.3A
Other languages
Chinese (zh)
Inventor
梁树坤
郭梓涵
唐厚成
梁柠
丁帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Innotrik Technology Co ltd
Original Assignee
Shenzhen Innotrik Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Innotrik Technology Co ltd filed Critical Shenzhen Innotrik Technology Co ltd
Priority to CN202211167688.3A priority Critical patent/CN115514992A/en
Publication of CN115514992A publication Critical patent/CN115514992A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2385Channel allocation; Bandwidth allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • H04N21/26216Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints involving the channel capacity, e.g. network bandwidth
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/015High-definition television systems

Abstract

The application relates to an HDMI data transmission method, a system, a terminal and a storage medium, belonging to the technical field of data transmission, wherein the method comprises the following steps: when data transmission is carried out, a transmission data value of the data is obtained; judging whether the transmission data value exceeds a preset data value or not; when the transmission data value exceeds a preset data value, acquiring a bandwidth increasing instruction; and increasing the transmission bandwidth for transmitting the data exceeding the preset data value based on the bandwidth increasing instruction. The method and the device have the effect of improving the flexibility in the data transmission process.

Description

HDMI data transmission method, system, terminal and storage medium
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a method, a system, a terminal, and a storage medium for HDMI data transmission.
Background
A High Definition Multimedia Interface (HDMI) is a fully digital video and audio transmission Interface, and can transmit uncompressed audio and video signals.
In the process of transmitting the HDMI data, the data is generally transmitted at a fixed transmission speed, the data transmission mode is fixed, and the flexibility is poor.
Disclosure of Invention
In order to improve flexibility in the data transmission process, the application provides an HDMI data transmission method, a system, a terminal and a storage medium.
In a first aspect, the present application provides a method for HDMI data transmission, which adopts the following technical solutions:
an HDMI data transmission method, comprising:
when data transmission is carried out, a transmission data value of the data is obtained;
judging whether the transmission data value exceeds a preset data value or not;
when the transmission data value exceeds the preset data value, acquiring a bandwidth increasing instruction;
and increasing the transmission bandwidth for transmitting the data exceeding the preset data value based on the bandwidth increasing instruction.
By adopting the technical scheme, whether the data transmission value of the data exceeds the preset data value or not can be judged, whether the data value is too large or not can be judged, and if yes, in order to accelerate the data transmission, the bandwidth increasing instruction is obtained at the moment so as to improve the data transmission bandwidth. Therefore, the data transmission speed can be flexibly adjusted, and the flexibility in the data transmission process can be improved.
Preferably, the acquiring the bandwidth increase instruction includes:
acquiring a data difference value based on the transmission data value and the preset data value;
acquiring a bandwidth adjustment table, wherein the bandwidth adjustment table comprises a bandwidth adjustment value and a difference interval corresponding to the bandwidth adjustment value;
matching the data difference value with the difference value interval and obtaining a corresponding bandwidth adjustment value as an actual adjustment value;
generating the bandwidth increase instruction based on the actual adjustment value.
By adopting the technical scheme, the data difference value is matched with the bandwidth adjustment table, so that an actual adjustment value is obtained, and a bandwidth increasing instruction is generated according to the actual adjustment value, so that the transmission bandwidth is conveniently adjusted.
Preferably, before the obtaining the transmission data value of the data, the method further includes:
acquiring the transmission quantity of data;
when the transmission number is one, the step of acquiring the transmission data value of the data is not executed;
and when the transmission number is at least two, carrying out the next step.
By adopting the technical scheme, whether the transmission data value of the data is acquired or not is determined according to the transmission quantity, so that the processing pressure of the system for processing the data can be reduced.
Preferably, when the number of transmissions is at least two, before acquiring the bandwidth increase instruction, the method further includes:
determining the data quantity of the data with the transmission data value exceeding the preset data value;
when the number of the data is one, acquiring a bandwidth compression instruction to compress the transmission bandwidth of the data of which the transmission data value does not exceed the preset data value, and acquiring a first compression bandwidth;
obtaining the bandwidth increase instruction based on the first compression bandwidth to increase the transmission bandwidth of the data of which the transmission data value exceeds the preset data value;
when the number of the data is at least two, sorting the data of which the transmission data value exceeds the preset data value according to a preset sorting priority to obtain first sorting data;
sorting the data of which the transmission data value does not exceed the preset data value according to a preset compression priority to obtain second sorted data;
the bandwidth compression instruction is obtained, and the second sequencing data are sequentially compressed according to a preset compression rule, and a second compression bandwidth is obtained;
and obtaining the bandwidth increasing instruction based on the second compressed bandwidth, and sequentially increasing the transmission bandwidth of the first sequencing data according to a preset increasing rule.
By adopting the technical scheme, the data quantity of the data with the transmission data value exceeding the preset data value is determined, and when the data quantity is one, the bandwidth increasing instruction is obtained through the first compressed bandwidth so as to increase the transmission bandwidth of the data with the transmission data value exceeding the preset data value. And when the number of the data is at least two, obtaining a second compressed bandwidth by obtaining the first sequencing data and compressing the second sequencing data, and finally, obtaining a bandwidth increasing instruction according to the second compressed bandwidth to increase the transmission bandwidth of the first sequencing data. Therefore, the transmission bandwidth of the data can be better adjusted.
Preferably, the sequentially increasing the transmission bandwidth of the first sorted data according to a preset increase rule includes:
obtaining an average allocated bandwidth based on the amount of data and the second compressed bandwidth;
sequentially increasing the transmission bandwidth of the first sequencing data according to an average rule based on the average distribution bandwidth;
or the like, or, alternatively,
acquiring data of which the transmission data value exceeds the preset data value as excess data;
acquiring a difference value between a transmission data value of excess data and the preset data value as an excess difference value;
acquiring the total value of all the excess difference values as an excess total value;
acquiring an excess ratio of the excess difference value in the excess total value;
obtaining a proportional allocation bandwidth based on the excess ratio and the second compressed bandwidth;
and sequentially increasing the transmission bandwidth of the first sequencing data according to a proportion rule based on the proportion distribution bandwidth.
By adopting the technical scheme, the transmission bandwidth of the first sequencing data is increased according to the average rule, or the transmission bandwidth of the first sequencing data is increased according to the proportional rule, so that the diversity of transmission bandwidth adjustment can be improved.
Preferably, the method further comprises the following steps:
when the transmission data value does not exceed the preset data value, acquiring the quantity of data for data transmission as the current quantity;
when the current number is one, acquiring the maximum transmission bandwidth;
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;
transmitting all data based on the average bandwidth.
By adopting the technical scheme, when the transmission data value does not exceed the preset data value, the quantity of the data for data transmission is obtained and is used as the current quantity, when the current quantity is one, the data is transmitted according to the maximum bandwidth, and when the current quantity is at least two, the data is transmitted according to the average bandwidth, so that the data is conveniently transmitted.
Preferably, when the current number is at least two, the method further comprises:
acquiring data value proportions of all the transmission data values;
obtaining a proportional bandwidth based on the data value proportion;
and transmitting corresponding data based on the proportional bandwidth.
By adopting the technical scheme, the data is transmitted through the proportional bandwidth, and the diversity of bandwidth adjustment can be further improved.
In a second aspect, the present application provides an HDMI data transmission system, which adopts the following technical solutions:
an HDMI data transmission system comprising:
the data value acquisition module is used for acquiring a transmission data value of data when data transmission is carried out;
the data value judging module is used for judging whether the transmission data value exceeds a preset data value or not;
the instruction acquisition module is used for acquiring a bandwidth increase instruction when the transmission data value exceeds the preset data value;
and the bandwidth adjusting module is used for increasing the transmission bandwidth for transmitting the data exceeding the preset data value based on the bandwidth increasing instruction.
By adopting the technical scheme, according to the data transmission among the modules, whether the data value is too large can be judged by judging whether the data transmission value of the data exceeds the preset data value, and if so, in order to accelerate the data transmission, the bandwidth increasing instruction is acquired at the moment so as to improve the transmission bandwidth of the data. Therefore, the data transmission speed can be flexibly adjusted, and the flexibility in the data transmission process can be improved.
In a third aspect, the present application provides an intelligent terminal, which adopts the following technical scheme:
an intelligent terminal, comprising:
a memory for storing a computer program capable of running on the processor;
the processor, when executing the computer program, is capable of performing the steps of any of the above described methods.
By adopting the technical scheme, the memory can store information, and the processor can call the information and send out a control instruction, so that the ordered execution of the program is ensured, and the effect of the scheme is realized.
In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:
a computer readable storage medium storing a computer program that can be loaded by a processor and executed to perform any of the methods described above.
By adopting the technical scheme, after the computer readable storage medium is loaded into any computer, any computer can execute the HDMI data transmission method provided by the application.
In summary, the present application includes at least one of the following beneficial technical effects:
1. whether the data value is too large can be judged by judging whether the data transmission value of the data exceeds a preset data value, and if so, a bandwidth increasing instruction is obtained to improve the transmission bandwidth of the data in order to accelerate the transmission of the data. Therefore, the transmission speed of the data can be flexibly adjusted, and the flexibility in the data transmission process can be further improved;
2. and matching the data difference value with a bandwidth adjustment table to obtain an actual adjustment value, and generating a bandwidth increasing instruction according to the actual adjustment value so as to conveniently adjust the transmission bandwidth.
Drawings
Fig. 1 is a schematic flowchart of an HDMI data transmission method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of steps S11 to S1X in one embodiment of the present application;
FIG. 3 is a schematic flow chart of steps S21 to S2X in one embodiment of the present application;
FIG. 4 is a schematic flow chart illustrating steps S31 to S3X according to an embodiment of the present application;
FIG. 5 is a schematic flow chart of steps S41 to S4X in one embodiment of the present application;
FIG. 6 is a schematic flow chart of steps S51 to S5X in one embodiment of the present application;
FIG. 7 is a schematic flow chart illustrating steps S61 to S6X according to an embodiment of the present application;
fig. 8 is a block diagram of an HDMI data transmission system according to an embodiment of the present application.
Description of reference numerals:
1. a data value acquisition module; 2. a data value judgment module; 3. an instruction acquisition module; 4. and a bandwidth adjusting module.
Detailed Description
The present application is described in further detail below with reference to figures 1 to 8.
The embodiment of the application discloses an HDMI data transmission method.
Referring to fig. 1, the hdmi data transmission includes:
s1, acquiring a transmission data value of data when data transmission is carried out;
s2, judging whether the transmission data value exceeds a preset data value or not;
s3, when the transmission data value exceeds a preset data value, acquiring a bandwidth increasing instruction;
and S4, increasing the transmission bandwidth for transmitting the data exceeding the preset data value based on the bandwidth increasing instruction.
HDMI data is currently common transmission data, but in the current process of transmitting data through multiple interfaces, each interface generally transmits at a relatively fixed transmission rate, and in the process of transmitting multiple data, the bandwidth of data transmission is generally relatively fixed, so that a relatively large transmission bandwidth is also occupied in the process of transmitting relatively small data, which results in a relatively slow process of transmitting large data, and therefore the flexibility of adjusting the bandwidth in the process of transmitting data is relatively low. Therefore, in order to flexibly adjust the bandwidth, the following operations can be performed:
specifically, when data is transmitted to different devices, a transmission data value of the data, that is, the size of the data, is obtained first, and the size value of the data, that is, the transmission data value, can be obtained by reading an attribute value of the data. And then, judging whether the transmission data value exceeds a preset data value, and determining whether the transmission bandwidth of the data needs to be adjusted by judging whether the transmission data value exceeds the preset data value, wherein the preset data value can be set according to an actual situation, for example, can be 10GB, and certainly can be other values.
If the transmission data value does not exceed the preset data value, the transmission bandwidth of the data may not be adjusted, and in other embodiments, the transmission bandwidth may be appropriately adjusted. If the transmission data value exceeds the preset data value, the data to be transmitted is proved to be larger, so that the bandwidth for transmitting the data to the equipment needs to be properly adjusted, and the data transmission speed is conveniently improved.
Therefore, when the transmission data value exceeds the preset data value, the bandwidth increasing instruction is obtained, and the transmission bandwidth for transmitting the data exceeding the preset data value is increased according to the bandwidth increasing instruction. The specific adjustment mode may be that the system reserves a certain allocable transmission bandwidth, and then after the bandwidth increase instruction is obtained, allocates the reserved bandwidth to the corresponding data to be transmitted, so as to increase the bandwidth for data transmission, which may be other modes.
By means of the method, the transmission bandwidth of the data exceeding the preset data value can be flexibly adjusted, so that the transmission speed of the data can be flexibly adjusted, and the flexibility in the data transmission process can be improved.
Referring to fig. 2, in order to better allocate the reserved allocable transmission bandwidth, in another embodiment, the obtaining a bandwidth increase instruction includes:
s11, acquiring a data difference value based on the transmission data value and a preset data value;
s12, acquiring a bandwidth adjustment table, wherein the bandwidth adjustment table comprises a bandwidth adjustment value and a difference value interval corresponding to the bandwidth adjustment value;
s13, matching the data difference value with the difference value interval and obtaining a corresponding bandwidth adjustment value as an actual adjustment value;
and S14, generating a bandwidth increasing instruction based on the actual adjusting value.
Specifically, a data difference value is first obtained according to the transmission data value and the preset data value, that is, a value obtained by subtracting the preset data value from the transmission data value is a data difference value. And then acquiring a bandwidth adjustment table, wherein the bandwidth adjustment table is a preset data table and comprises a bandwidth adjustment value and a difference value interval corresponding to the bandwidth adjustment value. 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 value is located in the corresponding difference interval, the corresponding bandwidth adjustment interval can be obtained.
Therefore, after the data difference value and the bandwidth adjustment table are obtained, the data difference value is matched with the difference value interval in the bandwidth adjustment table, so that a corresponding bandwidth adjustment value is obtained and is used as an actual adjustment value. And finally, generating a bandwidth increasing instruction according to the actual adjustment value, so that the transmission bandwidth of the data is increased according to the size of the actual adjustment value through the bandwidth increasing instruction, and the allocable bandwidth can be better and more reasonably allocated.
Of course, in an implementation manner of this embodiment, if it is necessary to adjust the transmission bandwidth of the data whose transmission data value does not exceed the preset data value, that is, when the data difference value is a negative value, the data difference value may also be matched with the difference interval, where 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 the obtained negative value is added to the transmission bandwidth of the current data, so that the bandwidth compression may be implemented.
That is to say, when the obtained bandwidth adjustment value is a positive value, the obtained instruction is a bandwidth increasing instruction, and when the obtained bandwidth adjustment value is a negative value, the obtained instruction is a bandwidth decreasing instruction, so that the transmission bandwidth of smaller data is conveniently compressed, the allocable bandwidth is conveniently increased on the basis of reserving the allocable bandwidth, the transmission bandwidth of more data with the transmission data value exceeding the preset data value is conveniently increased, and the transmission speed of the data is improved. And further, the transmission bandwidth of the data can be better adjusted.
Referring to fig. 3, in order to reduce the information processing pressure on bandwidth adjustment during data transmission, in another embodiment, before acquiring a transmission data value of data, the method further includes:
s21, acquiring the transmission quantity of data;
s22, when the transmission quantity is one, the step of acquiring the transmission data value of the data is not executed;
s23, when the transmission quantity is at least two, executing the step S1.
Specifically, before step S1, that is, acquiring a transmission data value of data, acquiring a transmission number of the data, that is, the number of interfaces through which the system can read to perform data transmission, where the number of interfaces is the transmission number of the data.
When the transmission number is one, that is, there is only one data transmission task, step S1 may not be executed, that is, all the bandwidths may be directly allocated to the current data transmission task, so that a subsequent series of determination steps are not required, and thus the processing pressure of the data may be reduced.
When the number of the data is at least two, the transmission bandwidth of the data needs to be adjusted and allocated, so that the step S1 is executed to obtain the transmission data value of the data, thereby facilitating the adjustment of the transmission bandwidth of the data in the subsequent steps.
Referring to fig. 4, in order to better adjust the transmission bandwidth of the data, in another embodiment, when the number of transmissions is at least two, before acquiring the bandwidth increase instruction, the method further includes:
s31, determining the data quantity of data with the transmission data value exceeding a preset data value;
s32, when the number of the data is one, acquiring a bandwidth compression instruction to compress the transmission bandwidth of the data of which the transmission data value does not exceed the preset data value, and acquiring a first compression bandwidth;
s33, acquiring a bandwidth increasing instruction based on the first compressed bandwidth to increase the transmission bandwidth of the data with the transmission data value exceeding the preset data value;
s34, when the number of the data is at least two, sorting the data with the transmission data value exceeding the preset data value according to the preset sorting priority to obtain first sorted data;
s35, sorting the data of which the transmission data value does not exceed the preset data value according to a preset compression priority to obtain second sorted data;
s36, acquiring a bandwidth compression instruction, sequentially compressing second sequencing data according to a preset compression rule, and acquiring a second compression bandwidth;
and S37, acquiring a bandwidth increasing instruction based on the second compressed bandwidth, and sequentially increasing the transmission bandwidth of the first sequencing data according to a preset increasing rule.
Specifically, when the number of transmissions is at least two and before the bandwidth increase instruction is obtained, the data number of the data whose transmission data value exceeds the preset data value is determined, and in the data transmission process, the allocation of the bandwidth may be adjusted in a manner that an allocable bandwidth is not reserved, but in a manner that the transmission bandwidth of the data whose transmission data value does not exceed the preset data value is compressed and the transmission bandwidth of the data whose transmission data value exceeds the preset data value is allocated.
Therefore, when the number of data is one, the 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 the first compression bandwidth is obtained, and the manner of obtaining the bandwidth compression instruction may also be the manner of matching the bandwidth adjustment table to obtain the transmission bandwidth of the data whose compressed transmission data value does not exceed the preset data value, that is, the first compression bandwidth.
Then, a bandwidth increase instruction is obtained according to the first compression bandwidth to increase the transmission bandwidth of the data with the transmission data value exceeding the preset data value, namely, the transmission bandwidth of the data with the transmission data value exceeding the preset data value is increased according to the size of the first compression bandwidth.
When the number of the data is at least two, sorting the data with the transmission data value exceeding the preset data value according to a preset sorting priority to obtain first sorting data, wherein the data with the transmission data value exceeding the preset data value is called excess data, the preset sorting priority is a priority from large to small, namely the excess data is sorted in a sequence from large to small, and the obtained sorting data is the first sorting data.
And sorting the data of which the transmission data value does not exceed the preset data value according to a preset compression priority to obtain second sorted data, wherein the data of which the transmission data value does not exceed the preset data value is called non-excess data, the preset compression priority is also the priority from large to small, namely the non-excess data is sorted according to the sequence from large to small, and the obtained sorted data is the second sorted data.
And then, acquiring a bandwidth compression instruction, sequentially compressing the second sequencing data according to a preset compression rule, and acquiring a second compression bandwidth. The preset compression rule may compress all the second sorted data by the same bandwidth, or compress the second sorted data according to a preset proportion, where the preset proportion may be the size of each data in the second sorted data, and then compress each data according to the preset compression proportion. And then integrating all compressed bandwidths obtained by compression, wherein the sum of the obtained final compressed bandwidths is the second compressed bandwidth.
And finally, acquiring a bandwidth increasing instruction based on the second compressed bandwidth, and sequentially increasing the transmission bandwidth of the first sequencing data according to a preset increasing rule, namely acquiring a bandwidth increasing instruction according to the size of the second compressed bandwidth and distributing the second compressed bandwidth according to the bandwidth increasing instruction. The second compressed bandwidth is allocated according to a preset increasing rule, and then the allocated bandwidth is sequentially increased to the transmission bandwidth of the first sequencing data, so that the transmission bandwidth is increased. The preset increasing rule can be set according to actual conditions.
Referring to fig. 5, in order to increase the manner of increasing the transmission bandwidth of the first sorted data, in another embodiment, sequentially increasing the transmission bandwidth of the first sorted data according to a preset increase rule includes:
s41, obtaining average distribution bandwidth based on the data quantity and the second compression bandwidth;
s42, sequentially increasing the transmission bandwidth of the first sequencing data according to an average rule based on the average distribution bandwidth;
or the like, or, alternatively,
s43, acquiring data with a transmission data value exceeding a preset data value as excess data;
s44, acquiring a difference value between a transmission data value of the excess data and a preset data value as an excess difference value;
s45, acquiring the total value of all the excess difference values as an excess total value;
s46, acquiring an excess ratio of the excess difference value in the excess total value;
s47, obtaining a proportional allocation bandwidth based on the excess ratio and the second compressed bandwidth;
and S48, sequentially increasing the transmission bandwidth of the first sequencing data according to a proportion rule based on the proportion distribution bandwidth.
Specifically, the sequentially increasing the transmission bandwidth of the first-ranked data according to a preset increasing rule may be increasing according to an average rule, or increasing according to a proportional rule. Wherein, the increasing according to the average rule specifically comprises the following steps:
firstly, the average allocated bandwidth is obtained according to the data quantity and the second compressed bandwidth, that is, the second compressed bandwidth is averaged according to the data quantity, that is, a value obtained by dividing the second compressed bandwidth by the data quantity is the average allocated bandwidth, and when the second compressed bandwidth cannot be evenly divided, the value of the second compressed bandwidth can be reduced until the second compressed bandwidth can be evenly divided and is unknown. For example, the amount of data is 3, the second compressed bandwidth is 100MB/s, and the second compressed bandwidth cannot be divided equally, so the second compressed bandwidth is reduced to 99MB/s, and can be divided equally, i.e. divided equally by 33MB/s.
And then, sequentially increasing the transmission bandwidth of the first sorted data according to the average distribution bandwidth and the average rule, namely, sequentially increasing the equally-distributed bandwidth to the corresponding data transmission bandwidth according to the sorting sequence of the first excluded data, and further increasing the transmission bandwidth.
And the increasing according to the proportion rule specifically comprises the following steps:
firstly, data with a transmission data value exceeding a preset data value is obtained as excess data, then the difference value between the transmission data value of the excess data and the preset data value is obtained as an excess difference value, namely the difference value between the transmission data value of each excess data and the preset data value is obtained, namely, several excess difference values exist in several excess data. It is to be understood that the excess difference is positive.
And then acquiring the total value of all excess difference values as the excess total value, namely acquiring the sum of all excess difference values. Then, the excess ratio of the excess difference values in the excess total value, namely the proportion of each excess difference value in the excess total value, is obtained. That is, each excess difference value is divided by the total excess value, and the obtained value is the excess ratio.
And then obtaining the proportional allocation bandwidth according to the excess ratio and the second compression bandwidth, namely multiplying the value of the compression bandwidth obtained by multiplying the excess ratio of the corresponding excess data by the second compression bandwidth, namely obtaining the proportional allocation bandwidth. That is, each excess data corresponds to a corresponding allocated proportion of bandwidth.
And finally, sequentially increasing the transmission bandwidth of the first sequencing data according to the proportion rule according to the proportion distribution bandwidth. That is, the process of obtaining the proportional allocation bandwidth is sequentially obtained according to the sorting order of the first sorting data, so that the order of the proportional allocation bandwidth corresponds to the data corresponding to the first sorting data one by one, and at this time, the obtained proportional allocation bandwidth is sequentially added to the transmission bandwidth corresponding to the first sorting data according to the order, so as to increase the transmission bandwidth.
Accordingly, the bandwidth of data transmission can be increased in different ways, the diversity of bandwidth increase can be increased, and the selectivity of the way of bandwidth increase can be improved.
Referring to fig. 6, when the transmission bandwidth adjustment needs to be performed on data whose transmission data value does not exceed the preset data value, that is, non-excessive data, in another embodiment, when the transmission data value does not exceed the preset data value, the method further includes:
s51, acquiring the quantity of data for data transmission as the current quantity;
s52, when the current number is one, acquiring the maximum transmission bandwidth;
s53, transmitting data based on the maximum transmission bandwidth;
s54, when the current number is at least two, obtaining an average bandwidth based on the current number;
and S55, transmitting all data based on the average bandwidth.
Specifically, the number of data to be transmitted at this time is acquired as the current number, and all the data to be transmitted at this time are non-excessive data. Then, the value of the current quantity is determined, and when the current quantity is one, the maximum transmission bandwidth, that is, the maximum transmission bandwidth allowed by the system at the moment, is obtained. And then the data is transmitted according to the maximum transmission bandwidth, so that the data can be transmitted at the fastest speed at present.
When the current number is at least two, the average bandwidth is obtained according to the current number, that is, the current allowed maximum bandwidth is divided by the current number, the obtained bandwidth is the average bandwidth, and then all data are transmitted according to the average bandwidth, that is, all non-excess data are transmitted by the same transmission bandwidth, so that the adjustment mode is simple and convenient.
Referring to fig. 7, in order to increase the diversity of the non-oversubscribed data bandwidth adjustment options, in another embodiment, when the current number is at least two, the method further includes:
s61, acquiring data value proportions of all transmission data values;
s62, acquiring a proportional bandwidth based on the data value proportion;
and S63, transmitting corresponding data based on the proportional bandwidth.
Specifically, when the current number is at least two, the data value ratios of all the transmission data values are obtained, that is, the sum of all the transmission data values is obtained first, and then each transmission data value is divided by the sum, so that the obtained value is the data value ratio of each data.
Then, the proportional bandwidth is obtained according to the data value ratio, and the obtaining mode may be to obtain the maximum transmission bandwidth allowed by the system at this time, and then multiply the data value ratio by the maximum transmission bandwidth, and the obtained bandwidth value is the proportional bandwidth of each data. And finally, transmitting corresponding data according to the proportional bandwidths, namely, each proportional bandwidth corresponds to one corresponding data, and then transmitting the data according to the proportional bandwidth allocated to the data. And the diversity of the selection for adjusting the transmission bandwidth of the non-excessive data can be improved.
The implementation principle of the HDMI data transmission method in the embodiment of the present application is as follows: when data transmission is carried out, a transmission data value of the data is obtained, whether the transmission data value exceeds a preset data value or not is judged, and when the transmission data value exceeds the preset data value, a bandwidth increasing instruction is obtained, so that the transmission bandwidth for transmitting the data exceeding the preset data value is increased according to the bandwidth increasing instruction. By the method, the transmission bandwidth of the data exceeding the preset data value can be flexibly adjusted, so that the transmission speed of the data can be flexibly adjusted, and the flexibility in the data transmission process can be improved
The embodiment of the application also discloses an HDMI data transmission system.
Referring to fig. 8, the hdmi data transmission system includes:
the data value acquisition module 1 is used for acquiring a transmission data value of data when data transmission is carried out;
the data value judging module 2 is used for judging whether the transmission data value exceeds a preset data value or not;
the instruction acquisition module 3 is used for acquiring a bandwidth increase instruction when the transmission data value exceeds a preset data value;
and the bandwidth adjusting module 4 is configured to increase a transmission bandwidth for transmitting data exceeding a preset data value based on the bandwidth increasing instruction.
Specifically, when data transmission is performed, the data value obtaining module 1 obtains a transmission data value of the data, and sends the transmission data value to the data value determining module 2 connected to the data value obtaining module, and then the data value determining module 2 determines whether the transmission data value exceeds a preset data value, and sends a determination result to the instruction obtaining module 3 connected to the data value determining module.
When the transmission data value exceeds the preset data value, the instruction obtaining module 3 obtains a bandwidth increasing instruction and sends the bandwidth increasing instruction to the bandwidth adjusting module 4 connected with the bandwidth increasing instruction, and finally, the bandwidth adjusting module 4 increases the transmission bandwidth for transmitting the data exceeding the preset data value based on the bandwidth increasing instruction. Therefore, the transmission speed of the data can be flexibly adjusted, and the flexibility in the data transmission process can be improved.
The embodiment of the application also discloses an intelligent terminal which comprises a memory and a processor. A memory storing an intelligent computer program. The processor, when running the smart computer program, is capable of performing the steps of the above-described HDMI data transmission method. The intelligent computer program can adopt a known processing program to carry out a series of steps such as transmission, adjustment, sequencing and the like on data, thereby realizing the query on the data.
An embodiment of the present application further discloses a computer-readable storage medium, which stores a computer program that can be loaded by a processor and executes the HDMI data transmission method as described above, and the computer-readable storage medium includes, for example: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above embodiments are preferred embodiments of the present application, and the protection scope of the present application is not limited by the above embodiments, so: all equivalent changes made according to the structure, shape and principle of the present application shall be covered by the protection scope of the present application.

Claims (10)

1. An HDMI data transmission method, comprising:
when data transmission is carried out, a transmission data value of the data is obtained;
judging whether the transmission data value exceeds a preset data value or not;
when the transmission data value exceeds the preset data value, acquiring a bandwidth increasing instruction;
and increasing the transmission bandwidth for transmitting the data exceeding the preset data value based on the bandwidth increasing instruction.
2. The transmission method according to claim 1, wherein obtaining the bandwidth increase instruction comprises:
acquiring a data difference value based on the transmission data value and the preset data value;
acquiring a bandwidth adjustment table, wherein the bandwidth adjustment table comprises a bandwidth adjustment value and a difference interval corresponding to the bandwidth adjustment value;
matching the data difference value with the difference value interval and obtaining a corresponding bandwidth adjustment value as an actual adjustment value;
generating the bandwidth increase instruction based on the actual adjustment value.
3. The method of claim 1, further comprising, prior to the obtaining the transmitted data value of the data:
acquiring the transmission quantity of data;
when the transmission number is one, the step of acquiring the transmission data value of the data is not executed;
and when the transmission number is at least two, carrying out the next step.
4. The transmission method according to claim 3, wherein when the number of transmissions is at least two, before acquiring the bandwidth increase instruction, further comprising:
determining the data quantity of the data of which the transmission data value exceeds the preset data value;
when the number of the data is one, acquiring a bandwidth compression instruction to compress the transmission bandwidth of the data of which the transmission data value does not exceed the preset data value, and acquiring a first compression bandwidth;
obtaining the bandwidth increasing instruction based on the first compression bandwidth to increase the transmission bandwidth of the data of which the transmission data value exceeds the preset data value;
when the number of the data is at least two, sorting the data of which the transmission data value exceeds the preset data value according to a preset sorting priority to obtain first sorting data;
sorting the data of which the transmission data value does not exceed the preset data value according to a preset compression priority to obtain second sorted data;
the bandwidth compression instruction is obtained, and the second sequencing data are sequentially compressed according to a preset compression rule, and a second compression bandwidth is obtained;
and acquiring the bandwidth increasing instruction based on the second compressed bandwidth, and sequentially increasing the transmission bandwidth of the first sequencing data according to a preset increasing rule.
5. The transmission method according to claim 4, wherein the sequentially increasing the transmission bandwidth of the first sorted data according to a preset increase rule comprises:
obtaining an average allocated bandwidth based on the amount of data and the second compressed bandwidth;
sequentially increasing the transmission bandwidth of the first sequencing data according to an average rule based on the average distribution bandwidth;
or the like, or, alternatively,
acquiring data of which the transmission data value exceeds the preset data value as excess data;
acquiring a difference value between a transmission data value of excess data and the preset data value as an excess difference value;
acquiring the total value of all the excess difference values as an excess total value;
acquiring an excess ratio of the excess difference value in the excess total value;
obtaining a proportional allocation bandwidth based on the excess ratio and the second compressed bandwidth;
and sequentially increasing the transmission bandwidth of the first sequencing data according to a proportion rule based on the proportion distribution bandwidth.
6. The transmission method according to claim 1, further comprising:
when the transmission data value does not exceed the preset data value, acquiring the quantity of data for data transmission as the current quantity;
when the current number is one, acquiring the maximum transmission bandwidth;
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;
transmitting all data based on the average bandwidth.
7. The transmission method according to claim 6, wherein when the current number is at least two, further comprising:
acquiring the data value proportion of all the transmission data values;
obtaining a proportional bandwidth based on the data value proportion;
and transmitting corresponding data based on the proportional bandwidth.
8. An HDMI data transmission system, comprising:
the data value acquisition module (1) is used for acquiring a transmission data value of data when data transmission is carried out;
the data value judging module (2) is used for judging whether the transmission data value exceeds a preset data value or not;
the instruction acquisition module (3) is used for acquiring a bandwidth increase instruction when the transmission data value exceeds the preset data value;
and the bandwidth adjusting module (4) is used for increasing the transmission bandwidth for transmitting the data exceeding the preset data value based on the bandwidth increasing instruction.
9. An intelligent terminal, comprising:
a memory for storing a computer program capable of running on the processor;
the processor, when executing the computer program, is capable of performing the steps of the method according to any of claims 1 to 7.
10. A computer-readable storage medium characterized by: a computer program which can be loaded by a processor and which performs the method according to any one of claims 1 to 7.
CN202211167688.3A 2022-09-23 2022-09-23 HDMI data transmission method, system, terminal and storage medium Pending CN115514992A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211167688.3A CN115514992A (en) 2022-09-23 2022-09-23 HDMI data transmission method, system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211167688.3A CN115514992A (en) 2022-09-23 2022-09-23 HDMI data transmission method, system, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN115514992A true CN115514992A (en) 2022-12-23

Family

ID=84505214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211167688.3A Pending CN115514992A (en) 2022-09-23 2022-09-23 HDMI data transmission method, system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN115514992A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116170770A (en) * 2023-04-25 2023-05-26 杭州镭湖科技有限公司 Automatic sensing method and device for realizing sensor based on Internet of things

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505244A (en) * 2009-03-27 2009-08-12 北京星网锐捷网络技术有限公司 Bandwidth measurement method and apparatus
US20160359968A1 (en) * 2015-06-05 2016-12-08 International Business Machines Corporation Storage mirroring over wide area network circuits with dynamic on-demand capacity
CN110674942A (en) * 2019-09-26 2020-01-10 深圳前海达闼云端智能科技有限公司 Bandwidth management method and device, electronic equipment and readable storage medium
CN113965493A (en) * 2021-10-19 2022-01-21 重庆传音通讯技术有限公司 Information prompting method, intelligent terminal and storage medium
CN114006820A (en) * 2020-07-28 2022-02-01 中移(苏州)软件技术有限公司 Transmission bandwidth adjusting method and device and computer readable storage medium
WO2022104754A1 (en) * 2020-11-20 2022-05-27 达闼机器人股份有限公司 Network resource management method, management apparatus, electronic device, and storage medium
WO2022105731A1 (en) * 2020-11-20 2022-05-27 武汉绿色网络信息服务有限责任公司 Data packet transmission port refresh method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505244A (en) * 2009-03-27 2009-08-12 北京星网锐捷网络技术有限公司 Bandwidth measurement method and apparatus
US20160359968A1 (en) * 2015-06-05 2016-12-08 International Business Machines Corporation Storage mirroring over wide area network circuits with dynamic on-demand capacity
CN110674942A (en) * 2019-09-26 2020-01-10 深圳前海达闼云端智能科技有限公司 Bandwidth management method and device, electronic equipment and readable storage medium
CN114006820A (en) * 2020-07-28 2022-02-01 中移(苏州)软件技术有限公司 Transmission bandwidth adjusting method and device and computer readable storage medium
WO2022104754A1 (en) * 2020-11-20 2022-05-27 达闼机器人股份有限公司 Network resource management method, management apparatus, electronic device, and storage medium
WO2022105731A1 (en) * 2020-11-20 2022-05-27 武汉绿色网络信息服务有限责任公司 Data packet transmission port refresh method and device
CN113965493A (en) * 2021-10-19 2022-01-21 重庆传音通讯技术有限公司 Information prompting method, intelligent terminal and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116170770A (en) * 2023-04-25 2023-05-26 杭州镭湖科技有限公司 Automatic sensing method and device for realizing sensor based on Internet of things
CN116170770B (en) * 2023-04-25 2024-04-12 杭州镭湖科技有限公司 Automatic sensing method and device for realizing sensor based on Internet of things

Similar Documents

Publication Publication Date Title
US5034993A (en) Method for allocating communication resources among RF communications systems
US10595345B2 (en) Method for allocating random access resources, base station, readable storage medium and electronic device
CN108279974B (en) Cloud resource allocation method and device
CN1347206A (en) Method for allocation of radio resource, radio apparatus and radio communication system
CN115514992A (en) HDMI data transmission method, system, terminal and storage medium
CN110661654B (en) Network bandwidth resource allocation method, device, equipment and readable storage medium
CN111694663A (en) Load balancing method, device and system for server cluster
EP2871847A1 (en) Apparatus and method for image processing
CN110007867B (en) Cache space allocation method, device, equipment and storage medium
CN115103450B (en) Multi-service time slot allocation method and equipment
CN111930498A (en) Efficient GPU resource allocation optimization method and system
CN109788325B (en) Video task allocation method and server
CN111539613A (en) Case distribution method and device
CN107659415B (en) Media resource management method and device for cloud conference
EP3627930A1 (en) Resource indication method, user equipment, network device and computer storage medium
CN108599299A (en) Powerful charge control method, charging system and control unit
CN113891447A (en) Method and device for allocating uplink resources
CN114860449B (en) Data processing method, device, equipment and storage medium
CN107491352B (en) Resource scheduling method and device
CN110049350A (en) Video code conversion processing method, device, computer equipment and storage medium
CN111984416B (en) Performance improvement method and system based on module competition
CN113419863B (en) Data distribution processing method and device based on node capacity
CN115495288B (en) Data backup method, device and equipment and computer readable storage medium
CN113453233B (en) Method and system for connecting multi-link host computer with antenna single network card
CN111582774B (en) Task data processing method and device, readable storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination