Data transmission method and device, storage medium, electronic equipment and program product
By selecting unoccupied data transmission lines in the chip circuit module for data transmission, the problem of data transmission interruption caused by the occupation of low-order numbered lines is solved, improving the efficiency and adaptability of data transmission lines.
Patent Information
- Application Number
- CN202411146349.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2026-03-03
AI Technical Summary
In chip circuit modules, the data transmission lines with lower-order numbers are often occupied by higher-priority applications, which disrupts the continuous sequence of data transmission lines, preventing normal data transmission. This increases design complexity and limits the efficiency of data transmission line usage.
By identifying the target data transmission line to be used from among multiple unused data transmission lines, and utilizing these lines for data transmission, the continuity and efficiency of data transmission are ensured by avoiding lines occupied by other functions.
It enables normal data transmission even when the continuous sequence of data transmission lines is interrupted, reducing design complexity and improving the efficiency and adaptability of data transmission lines.
Smart Images

Figure CN121597615A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communication technology, and more specifically, to a data transmission method, apparatus, storage medium, electronic device, and program product. Background Technology
[0002] Currently, chip circuit modules with multiple data transmission lines, such as LCD (Liquid Crystal Display) driver interfaces or I2S (Inter-IC Sound) audio interfaces, have n+1 data input lines DI[n:0] and / or n+1 data output lines DO[n:0]. The buffer units in the chip circuit modules, such as FIFO (First Input First Output) buffer units, transmit buffered data starting from the lowest-order data input line DI[0] (or data output line DO[0]) through multiple data transmission lines in parallel.
[0003] To reduce chip packaging costs and simplify PCB (Printed Circuit Board) design, chip data transmission lines need to be designed with different multiplexed functions to accommodate as many application scenarios as possible. However, in practical applications, some low-priority data transmission lines may be occupied by other higher-priority applications, potentially causing data transmission failures in some applications. Summary of the Invention
[0004] The purpose of this disclosure is to provide a data transmission method, apparatus, storage medium, electronic device, and program product to at least solve the problems existing in the related art.
[0005] To achieve the above objectives, the first aspect of this disclosure provides a data transmission method, the method comprising:
[0006] Based on the data to be transmitted, determine the first number of target data transmission lines to be used from among multiple unoccupied data transmission lines;
[0007] The data to be transmitted is transmitted using the first number of target data transmission lines;
[0008] Wherein, the first quantity is the number of data transmission lines required for the data to be transmitted.
[0009] Optionally, determining a first number of target data transmission lines to be used from among multiple unoccupied data transmission lines based on the data to be transmitted includes:
[0010] Based on the data to be transmitted, among multiple data transmission lines, a first number of first target data transmission lines to be used are determined;
[0011] If there are occupied data transmission lines in the first target data transmission line, then a second number of second target data transmission lines are determined from other data transmission lines that are not occupied, excluding the first target data transmission line. The second number is the number of occupied data transmission lines in the first target data transmission line.
[0012] The unused data transmission lines in the first target data transmission line and the second target data transmission line are determined as the first number of target data transmission lines to be used.
[0013] Optionally, determining the first number of target data transmission lines to be used from a plurality of unoccupied data transmission lines based on the data to be transmitted includes:
[0014] Based on the order of the source numbers of the multiple unoccupied data transmission lines, the multiple unoccupied data transmission lines are renumbered to generate mapping numbers, resulting in a set of idle data transmission lines;
[0015] Based on the data to be transmitted, a first number of target data transmission lines to be used are determined from the idle data transmission lines in a preset order, and the mapping numbers of the target data transmission lines are consecutive.
[0016] Optionally, the data to be transmitted includes a first number of data groups; transmitting the data to be transmitted using the first number of target data transmission lines includes:
[0017] For each data group, based on the mapping relationship between the target data transmission line and the data group, the target data transmission line corresponding to the data group is determined from the first number of target data transmission lines, and the data group is transmitted using the target data transmission line corresponding to the data group.
[0018] Optionally, the mapping relationship between the target data transmission line and the data group is determined in the following way:
[0019] Based on the order of the source numbers of the first number of target data transmission lines, the first number of target data transmission lines are consecutively numbered to generate a mapping number.
[0020] For each data group, the target data transmission line with the same mapping number is associated with that data group to generate a mapping relationship between the target data transmission line and the data group.
[0021] A second aspect of this disclosure provides a data transmission apparatus, the apparatus comprising:
[0022] The determination module is used to determine, based on the data to be transmitted, a first number of target data transmission lines to be used from multiple unoccupied data transmission lines;
[0023] The transmission module is used to transmit the data to be transmitted using the first number of target data transmission lines;
[0024] Wherein, the first quantity is the number of data transmission lines required for the data to be transmitted.
[0025] Optionally, the determining module includes:
[0026] The first determining submodule is used to determine, based on the data to be transmitted, a first number of first target data transmission lines to be used among multiple data transmission lines;
[0027] The second determining submodule is used to determine a second number of second target data transmission lines from other data transmission lines that are not occupied, if there are occupied data transmission lines in the first target data transmission lines. The second number is the number of occupied data transmission lines in the first target data transmission lines.
[0028] The third determining submodule is used to determine the unoccupied data transmission lines in the first target data transmission line and the second target data transmission line as a first number of target data transmission lines to be used.
[0029] A third aspect of this disclosure provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the steps of the method described in the first aspect of this disclosure.
[0030] A fourth aspect of this disclosure provides an electronic device, comprising:
[0031] A memory on which computer programs are stored;
[0032] A processor for executing the computer program in the memory to implement the steps of the method described in the first aspect of this disclosure.
[0033] The fifth aspect of this disclosure provides a computer program product including a computer program that, when executed by a processor, implements the steps of the method described in the first aspect of this disclosure.
[0034] By adopting the above technical solution, based on the data to be transmitted, a first number of target data transmission lines are determined from multiple unoccupied data transmission lines. The data to be transmitted is then transmitted using these first number of target data transmission lines, where the first number represents the number of data transmission lines required for the data to be transmitted. In this way, determining the first number of target data transmission lines from multiple unoccupied data transmission lines eliminates the need to consider whether multiple consecutive data transmission lines in a default order will be occupied by other higher-priority functions. This allows for targeted avoidance of data transmission lines occupied by other functions, ensuring normal data transmission, reducing the design difficulty of data transmission line arrangement, and improving the utilization efficiency of data transmission lines.
[0035] Other features and advantages of this disclosure will be described in detail in the following detailed description section. Attached Figure Description
[0036] The accompanying drawings are provided to further illustrate the present disclosure and form part of the specification. They are used together with the following detailed description to explain the present disclosure, but do not constitute a limitation thereof. In the drawings:
[0037] Figure 1 This is a schematic diagram of a data transmission line of a chip circuit module according to an exemplary embodiment.
[0038] Figure 2 This is a flowchart illustrating a data transmission method according to an exemplary embodiment.
[0039] Figure 3 This is a schematic diagram illustrating a data group and a data transmission line according to an exemplary embodiment.
[0040] Figure 4 This is a schematic diagram illustrating another data group and data transmission line according to an exemplary embodiment.
[0041] Figure 5 This is a block diagram illustrating a data transmission apparatus according to an exemplary embodiment.
[0042] Figure 6 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation
[0043] The specific embodiments of this disclosure will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit this disclosure.
[0044] Figure 1 This is a schematic diagram illustrating a data transmission line of a chip circuit module according to an exemplary embodiment. For example... Figure 1 As shown, assuming a certain chip circuit module can support a maximum of 8 data transmission lines, that is, it has 8 data transmission lines D[7:0] (for example, it can be data input line DI[7:0] or data output line DO[7:0]). Depending on the data transmission requirements, it can be flexibly used... Figure 1 Data is transmitted via data transmission lines D0 to D7 as shown.
[0045] According to normal design principles, the data DAT[m:0] cached by the FIFO buffer unit corresponds to the data transmission lines DI[n:0] (or DO[n:0]) of the chip circuit module in a high-to-low or low-to-high order. Where n is greater than or equal to m. For example, assuming the correspondence is in the low-to-high order, the correspondence is as follows: DAT[0]-DI[0], DAT[1]-DI[1], ..., DAT[m]-DI[m], or, DAT[0]-DO[0], DAT[1]-DO[1], ..., DAT[m]-DO[m].
[0046] Reference Figure 1 Suppose an application requires four data transmission lines. Normally, following the default rule of prioritizing the use of lower-priority data transmission lines, data transmission lines D0 to D3 would be used. However, because the lower-priority data transmission lines D1 and D2 are occupied by the higher-priority LCD_CLK and I2C_CLK, the sequential order of data transmission lines D0 to D3 is broken. The unoccupied data transmission lines D4 to D7 cannot replace the occupied lines for data transmission, meaning the application's data transmission requirements cannot be met.
[0047] That is, in related technologies, when the continuous sequence of data transmission lines that need to be used is interrupted, other unused data transmission lines cannot be used for data transmission, resulting in data transmission failure.
[0048] In view of this, the present disclosure provides a data transmission method, apparatus, storage medium, electronic device, and program product that can utilize other unoccupied data transmission lines to transmit data when the preset continuous sequence of the data transmission lines to be used is interrupted, thereby fulfilling data transmission requirements and improving user experience. Since data transmission can be performed using unoccupied data transmission lines, the design difficulty of the data transmission line arrangement sequence is reduced, and the utilization efficiency of the data transmission lines is improved.
[0049] Figure 2 This is a flowchart illustrating a data transmission method according to an exemplary embodiment. For example... Figure 2 As shown, the data transmission method may include the following steps.
[0050] In step S21, based on the data to be transmitted, a first number of target data transmission lines to be used are determined from among the multiple unoccupied data transmission lines.
[0051] In this disclosure, if there is a need to transmit data, the target data transmission line to be used can be determined from multiple unoccupied data transmission lines without considering whether the determined multiple consecutive data transmission lines are occupied by other high-priority applications, and data transmission lines occupied by other applications can be avoided in a targeted manner.
[0052] For example, among multiple unused data transmission lines, a first number of target data transmission lines to be used can be selected in ascending order of their source numbers, or in descending order of their source numbers.
[0053] Furthermore, since the determined target data transmission lines are used to transmit the data to be transmitted, it is necessary to determine a first number of target data transmission lines to be used based on the data to be transmitted. Here, the first number is the number of data transmission lines required for the data to be transmitted. For example, if the data to be transmitted requires m+1 data transmission lines, then the first number is m+1. Here, m+1 is less than or equal to n+1, where n+1 is the number of redundant data transmission lines. For instance, if the data to be transmitted requires 4 data transmission lines, then the determined first number of target data transmission lines to be used is 4.
[0054] In step S22, the data to be transmitted is transmitted using a first number of target data transmission lines.
[0055] By adopting the above technical solution, based on the data to be transmitted, a first number of target data transmission lines are determined from multiple unoccupied data transmission lines. The data to be transmitted is then transmitted using these first number of target data transmission lines, where the first number represents the number of data transmission lines required for the data to be transmitted. In this way, determining the first number of target data transmission lines from multiple unoccupied data transmission lines eliminates the need to consider whether multiple consecutive data transmission lines in a default order will be occupied by other higher-priority functions. This allows for targeted avoidance of data transmission lines occupied by other functions, ensuring normal data transmission, reducing the design difficulty of data transmission line arrangement, and improving the utilization efficiency of data transmission lines.
[0056] To facilitate a better understanding of the data transmission method provided in this disclosure by those skilled in the art, a complete embodiment is described below.
[0057] First of all, Figure 2The specific implementation of step S21, which determines a first number of target data transmission lines to be used from among multiple unoccupied data transmission lines based on the data to be transmitted, will be described.
[0058] In one embodiment, step S21, which determines the first number of target data transmission lines to be used among multiple unoccupied data transmission lines based on the data to be transmitted, can be implemented as follows: according to the order of the source numbers of the multiple unoccupied data transmission lines, the multiple unoccupied data transmission lines are renumbered to generate mapping numbers to obtain a set of idle data transmission lines; based on the data to be transmitted, the first number of target data transmission lines to be used are determined among the idle data transmission lines in a preset order, wherein the mapping numbers of the target data transmission lines are consecutive.
[0059] In this embodiment, firstly, the occupied and unoccupied data transmission lines are identified among the multiple data transmission lines of the chip circuit module. Then, the unoccupied data transmission lines are reordered according to their source numbers to obtain a set of free data transmission lines with consecutive mapping numbers. Finally, the target data transmission lines required for the data to be transmitted are determined from this set of free data transmission lines according to a preset order. This preset order can be either from high to low or from low to high.
[0060] In one implementation of this embodiment, the preset order can be from low to high, following the... Figure 1 Assuming that data transmission lines D1 and D2 are occupied by the higher-priority LCD_CLK and I2C_CLK, the unoccupied data transmission lines D0, D3 to D7 are renumbered to generate mapping numbers, resulting in a set of idle data transmission lines with mapping numbers D0 to D5. If the data to be transmitted requires four data transmission lines, then from the idle data transmission lines with mapping numbers D0 to D5, the data transmission lines with mapping numbers D0 to D3 are selected as the target data transmission lines to be used, in ascending order.
[0061] In another implementation of this embodiment, the preset order can be a descending order, following the... Figure 1Assuming that data transmission lines D1 and D2 are occupied by the higher-priority LCD_CLK and I2C_CLK, the unoccupied data transmission lines D0, D3 to D7 are renumbered to generate mapping numbers, resulting in a set of idle data transmission lines with mapping numbers D0 to D5. If the data to be transmitted requires four data transmission lines, then from the idle data transmission lines with mapping numbers D0 to D5, the data transmission lines with mapping numbers D5 to D2 are selected as the target data transmission lines to be used, in descending order of priority.
[0062] In another embodiment, step S21, which determines the first number of target data transmission lines to be used among multiple unoccupied data transmission lines based on the data to be transmitted, can be implemented as follows: based on the data to be transmitted, determine the first number of first target data transmission lines to be used among multiple data transmission lines; if there are data transmission lines that are already occupied among the first target data transmission lines, determine the second number of second target data transmission lines among the other unoccupied data transmission lines besides the first target data transmission lines, where the second number is the number of data transmission lines that are already occupied among the first target data transmission lines; and determine the unoccupied data transmission lines and the second target data transmission lines among the first target data transmission lines as the first number of target data transmission lines to be used.
[0063] In this embodiment, firstly, based on the data to be transmitted, the number of data transmission lines required to transmit the data is determined, denoted as a first number, and then a first target data transmission line of the first number is determined from among the multiple data transmission lines in the chip circuit module. For example, refer to... Figure 1 If the first quantity is 4, then among the multiple data transmission lines, the data transmission lines numbered D0 to D3 are determined as the first target data transmission lines in ascending order.
[0064] Next, it is determined whether any data transmission lines in the first target data transmission line are already in use. If so, the number of such occupied data transmission lines in the first target data transmission line is determined and recorded as the second number. Then, the second number of second target data transmission lines is determined from other unoccupied data transmission lines besides the first target data transmission line. For example, refer to... Figure 1 If data transmission lines numbered D1 and D2 in the first target data transmission line are already occupied, then two more data transmission lines numbered D4 to D7 are selected. For example, data transmission lines numbered D4 and D5 are selected as the second target data transmission lines in ascending order.
[0065] Finally, the unused data transmission lines in the first target data transmission line and the second target data transmission line are determined as the first number of target data transmission lines to be used. For example, data transmission lines numbered D0, D3, D4, and D5 are determined as target data transmission lines to be used.
[0066] It should be understood that the above selection of data transmission lines is in ascending order. In practical applications, data transmission lines can also be selected in descending order. This disclosure does not impose any specific limitations on this.
[0067] Furthermore, in this embodiment, the specific implementation of step S21, which determines the first number of target data transmission lines to be used among multiple unoccupied data transmission lines based on the data to be transmitted, can also be: if there are no occupied data transmission lines among the first target data transmission lines, then the first target data transmission line is determined as the target data transmission line to be used.
[0068] If there is no occupied data transmission line in the first target data transmission line, the first target data transmission line can be directly identified as the target data transmission line to be used.
[0069] At this point, the target data transmission line to be used can be determined in the manner described above.
[0070] The following is about Figure 2 The specific implementation method of transmitting the data to be transmitted using the first number of target data transmission lines in step S22 will be described.
[0071] In this disclosure, the data to be transmitted may include a first number of data groups, and the number of target data transmission lines to be used is the first number, that is, each target data transmission line transmits one data group.
[0072] In one embodiment, the specific implementation of step S22, which uses a first number of target data transmission lines to transmit data, can be as follows: for each data group, based on the mapping relationship between the target data transmission lines and the data group, determine the target data transmission line corresponding to the data group from the first number of target data transmission lines, and use the target data transmission line corresponding to the data group to transmit the data group.
[0073] In this disclosure, after determining the first number of target data transmission lines to be used, a mapping relationship between the target data transmission lines and data groups is established. Then, for each data group, according to the mapping relationship between the target data transmission lines and data groups, the target data transmission line corresponding to the data group is determined from the first number of target data transmission lines, and the data group is transmitted using the target data transmission line.
[0074] In one embodiment, the mapping relationship between the target data transmission lines and the data groups is determined as follows: According to the magnitude order of the source numbers of the first quantity of target data transmission lines, consecutive numbers are generated for the first quantity of target data transmission lines to generate mapping numbers; for each data group, the target data transmission lines with the same mapping number are corresponding to this data group, so as to generate the mapping relationship between the target data transmission lines and the data groups. For example, the data group numbered i corresponds to the target data transmission line with the mapping number i, and the value range of i is [0, m], where m is the first quantity.
[0075] Thus, to determine the target data transmission line corresponding to this data group among the first quantity of target data transmission lines can be: for each data group, the target data transmission lines with the same number are determined as the target data transmission lines corresponding to this data group. For example, for the data group numbered 2, the target data transmission line with the mapping number 2 is determined as the target data transmission line corresponding to this data group.
[0076] Exemplarily, the mapping numbers of the data transmission lines and the mapping relationship between the data transmission lines and the data groups can be flexibly controlled and adjusted by a register, and it can be individually controlled whether each data transmission line establishes a mapping relationship with the data group in the data to be transmitted.
[0077] Figure 3 is a schematic diagram showing the correspondence between a data group and data transmission lines according to an exemplary embodiment. As Figure 3 shown, assume that the data to be transmitted includes a first quantity of data groups DAT[m:0], where the first quantity is m + 1. If it is determined that the occupied data transmission lines are DI[x], DI[y], DI[z] respectively, where 0 ≤ x < y < z ≤ m, then in accordance with the above method, m + 1 data transmission lines are selected from the unoccupied data transmission lines DI[x - 1:0], DI[y - 1:x + 1], DI[z - 1:y + 1], DI[n:z + 1] and are renumbered as NewDI[m:0]. Among them, the data group DAT0 cached in the FIFO cache unit corresponds to NewDI0, DAT1 corresponds to NewDI1, ……, DATm corresponds to NewDIm.
[0078] In addition, as Figure 3 shown, the data transmission line numbered NewDIx in NewDI[m:0] is the data transmission line with the source number Dx + 1, the data transmission line numbered NewDIy - 2 is the data transmission line with the source number Dy - 1, the data transmission line numbered NewDIy - 1 is the data transmission line with the source number Dy + 1, the data transmission line numbered NewDIz - 3 is the data transmission line with the source number Dz - 1, and the data transmission line numbered NewDIz - 2 is the data transmission line with the source number Dz + 1.
[0079] Figure 4 This is a schematic diagram illustrating another data group and data transmission line according to an exemplary embodiment. For example... Figure 4 As shown, assuming that the LCD display driver circuit of a certain chip supports a maximum of 24 data transmission lines D[23:0], while the number of data transmission lines for the LCD screen is 16, data transmission can usually be performed using data transmission lines numbered LCD_D0 to LCD_D15. Assuming that data transmission lines numbered LCD_D[3], LCD_D[7] and LCD_D
[11] are occupied, such as Figure 4 As shown, data can be transmitted using data transmission lines numbered LCD_D0-LCD_D2, LCD_D4-LCD_D6, LCD_D8-LCD_D10, and LCD_D12-LCD_D18. The correspondence between the LCD screen data transmission lines and the data transmission lines of the LCD display driver circuit is as follows: Figure 4 As shown.
[0080] For example, suppose a chip is designed with four I2S module circuits, each supporting a maximum of eight data transmission lines. However, due to packaging cost considerations, only 10 IO (Input / Output) pins are multiplexed for I2S functionality. In system applications, there is a need for multiple I2S module circuits to simultaneously transmit audio data to multiple external devices, and each I2S module circuit may use 1 to 8 data transmission lines independently. Due to the limitation that data transmission lines must start from a preset low-order transmission line D0, Table 1 shows a possible multiplexing function design strategy implemented in the prior art. Each IO multiplexing function defines as many low-order numbered data transmission lines as possible (D0, D1, etc.) to avoid the I2S module circuit becoming unusable due to the low-order numbered data transmission lines being occupied. However, this design is too complex and makes it difficult to maximize IO pin utilization efficiency.
[0081] Table 1
[0082]
[0083] Suppose an application has four I2S usage requirements. Two of the I2S groups each require 3 data transmission lines, and the other two I2S groups each require 2 data transmission lines.
[0084] In Table 1, the multiplexed function registers of GPIO0, GPIO1, and GPIO2 are all set to function number 1, multiplexed as the first group of I2S0 data transmission lines D0 to D2; the multiplexed function registers of GPIO9, GPIO8, and GPIO7 are all set to function number 4, multiplexed as the second group of I2S1 data transmission lines D0 to D2; the multiplexed function registers of GPIO3 and GPIO4 are set to function numbers 7 and 8 respectively, multiplexed as the third group of I2S2 data transmission lines D0 and D1; and the multiplexed function registers of GPIO5 and GPIO6 are set to function numbers 10 and 11 respectively, multiplexed as the fourth group of I2S3 data transmission lines D0 and D1.
[0085] Table 2 illustrates a multiplexing function design strategy implemented according to the data transmission method provided in this disclosure. As shown in Table 2, each I2S module circuit can start from any numbered data line when transmitting data, without needing to consider various combinational logics, making the I2S function definition for I / O multiplexing simple and efficient.
[0086] Table 2
[0087]
[0088] In Table 2, the multiplexed function registers of GPIO0, GPIO1, and GPIO2 are all set to function number 1, multiplexed as the first group of I2S0 data transmission lines D0 to D2; the multiplexed function registers of GPIO3, GPIO4, and GPIO5 are all set to number 2, multiplexed as the second group of I2S1 data transmission lines D3 to D5; the multiplexed function registers of GPIO6 and GPIO7 are all set to number 3, multiplexed as the third group of I2S2 data transmission lines D4 and D5; and the multiplexed function registers of GPIO8 and GPIO9 are all set to number 4, multiplexed as the fourth group of I2S3 data transmission lines D6 and D7.
[0089] Thus, significant improvements have been made in both the ease of designing the GPIO multiplexing function definition for the chip and the flexibility of user-defined multiplexing functions. This enhances the adaptability of data transmission, improves the efficiency of data transmission lines, and provides high flexibility.
[0090] Based on the same inventive concept, this disclosure also provides a data transmission device. Figure 5 This is a block diagram illustrating a data transmission apparatus according to an exemplary embodiment. Figure 5 As shown, the data transmission device 500 may include:
[0091] The determining module 501 is used to determine, based on the data to be transmitted, a first number of target data transmission lines to be used from multiple unoccupied data transmission lines;
[0092] Transmission module 502 is used to transmit the data to be transmitted using the first number of target data transmission lines;
[0093] Wherein, the first quantity is the number of data transmission lines required for the data to be transmitted.
[0094] Optionally, the determining module 501 may include:
[0095] The first determining submodule is used to determine, based on the data to be transmitted, a first number of first target data transmission lines to be used among multiple data transmission lines;
[0096] The second determining submodule is used to determine a second number of second target data transmission lines from other data transmission lines that are not occupied, if there are occupied data transmission lines in the first target data transmission lines. The second number is the number of occupied data transmission lines in the first target data transmission lines.
[0097] The third determining submodule is used to determine the unoccupied data transmission lines in the first target data transmission line and the second target data transmission line as a first number of target data transmission lines to be used.
[0098] Optionally, the determining module 501 may include:
[0099] The numbering submodule is used to renumber multiple unused data transmission lines according to the order of their source numbers to generate a mapping number, thus obtaining a set of free data transmission lines.
[0100] The fourth determining submodule is used to determine, based on the data to be transmitted, a first number of target data transmission lines to be used from the idle data transmission lines in a preset order, wherein the mapping numbers of the target data transmission lines are consecutive.
[0101] Optionally, the data to be transmitted includes a first number of data groups; the transmission module 502 may include:
[0102] The transmission submodule is used to determine, for each data group, the target data transmission line corresponding to that data group from the first number of target data transmission lines according to the mapping relationship between the target data transmission line and the data group, and to transmit the data group using the target data transmission line corresponding to that data group.
[0103] Optionally, the mapping relationship between the target data transmission line and the data group is determined in the following way:
[0104] Based on the order of the source numbers of the first number of target data transmission lines, the first number of target data transmission lines are consecutively numbered to generate a mapping number.
[0105] For each data group, the target data transmission line with the same mapping number is associated with that data group to generate a mapping relationship between the target data transmission line and the data group.
[0106] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0107] Figure 6 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Figure 6 As shown, the electronic device 700 may include a processor 701 and a memory 702. The electronic device 700 may also include one or more of a multimedia component 703, an input / output (I / O) interface 704, and a communication component 705.
[0108] The processor 701 controls the overall operation of the electronic device 700 to complete all or part of the steps in the data transmission method described above. The memory 702 stores various types of data to support the operation of the electronic device 700. This data may include, for example, instructions for any application or method operating on the electronic device 700, and application-related data such as contact data, sent and received messages, pictures, audio, video, etc. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The multimedia component 703 may include a screen and audio components. The screen may be, for example, a touchscreen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in memory 702 or transmitted via communication component 705. The audio component also includes at least one speaker for outputting audio signals. I / O interface 704 provides an interface between processor 701 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual or physical buttons. Communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless communication may include Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of these. Therefore, the corresponding communication component 705 may include a Wi-Fi module, a Bluetooth module, or an NFC module.
[0109] In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the data transmission method described above.
[0110] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, which, when executed by a processor, implement the steps of the data transmission method described above. For example, the computer-readable storage medium may be the memory 702 including program instructions described above, which may be executed by the processor 701 of the electronic device 700 to complete the data transmission method described above.
[0111] In another exemplary embodiment, a computer program product is also provided, which includes a computer program executable by a processor, which, when executed by the processor, implements the steps of the data transmission method described above.
[0112] In another exemplary embodiment, a computer program product is also provided, which includes a computer program executable by a processor, which, when executed by the processor, implements the steps of the data transmission method described above.
[0113] The preferred embodiments of this disclosure have been described in detail above with reference to the accompanying drawings. However, this disclosure is not limited to the specific details of the above embodiments. Within the scope of the technical concept of this disclosure, various simple modifications can be made to the technical solutions of this disclosure, and these simple modifications all fall within the protection scope of this disclosure.
[0114] It should also be noted that the various specific technical features described in the above embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, this disclosure will not describe the various possible combinations separately.
[0115] Furthermore, various different embodiments of this disclosure can be combined in any way, as long as they do not violate the spirit of this disclosure, they should also be regarded as the content disclosed in this disclosure.
Claims
1. A data transmission method, characterized in that, The method includes: Based on the data to be transmitted, determine the first number of target data transmission lines to be used from among multiple unoccupied data transmission lines; The data to be transmitted is transmitted using the first number of target data transmission lines; Wherein, the first quantity is the number of data transmission lines required for the data to be transmitted.
2. The method according to claim 1, characterized in that, The step of determining a first number of target data transmission lines to be used from multiple unoccupied data transmission lines based on the data to be transmitted includes: Based on the data to be transmitted, among multiple data transmission lines, a first number of first target data transmission lines to be used are determined; If there are occupied data transmission lines in the first target data transmission line, then a second number of second target data transmission lines are determined from other data transmission lines that are not occupied, excluding the first target data transmission line. The second number is the number of occupied data transmission lines in the first target data transmission line. The unused data transmission lines in the first target data transmission line and the second target data transmission line are determined as the first number of target data transmission lines to be used.
3. The method according to claim 1, characterized in that, The step of determining a first number of target data transmission lines to be used from multiple unoccupied data transmission lines based on the data to be transmitted includes: Based on the order of the source numbers of the multiple unoccupied data transmission lines, the multiple unoccupied data transmission lines are renumbered to generate mapping numbers, resulting in a set of idle data transmission lines; Based on the data to be transmitted, a first number of target data transmission lines to be used are determined from the idle data transmission lines in a preset order, and the mapping numbers of the target data transmission lines are consecutive.
4. The method according to claim 1, characterized in that, The data to be transmitted includes a first number of data groups; transmitting the data to be transmitted using the first number of target data transmission lines includes: For each data group, based on the mapping relationship between the target data transmission line and the data group, the target data transmission line corresponding to the data group is determined from the first number of target data transmission lines, and the data group is transmitted using the target data transmission line corresponding to the data group.
5. The method according to claim 4, characterized in that, The mapping relationship between the target data transmission line and the data group is determined in the following way: Based on the order of the source numbers of the first number of target data transmission lines, the first number of target data transmission lines are consecutively numbered to generate a mapping number. For each data group, the target data transmission line with the same mapping number is associated with that data group to generate a mapping relationship between the target data transmission line and the data group.
6. A data transmission device, characterized in that, The device includes: The determination module is used to determine, based on the data to be transmitted, a first number of target data transmission lines to be used from multiple unoccupied data transmission lines; The transmission module is used to transmit the data to be transmitted using the first number of target data transmission lines; Wherein, the first quantity is the number of data transmission lines required for the data to be transmitted.
7. The data transmission device according to claim 6, characterized in that, The determining module includes: The first determining submodule is used to determine, based on the data to be transmitted, a first number of first target data transmission lines to be used among multiple data transmission lines; The second determining submodule is used to determine a second number of second target data transmission lines from other data transmission lines that are not occupied, if there are occupied data transmission lines in the first target data transmission lines. The second number is the number of occupied data transmission lines in the first target data transmission lines. The third determining submodule is used to determine the unoccupied data transmission lines in the first target data transmission line and the second target data transmission line as a first number of target data transmission lines to be used.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps of the method described in any one of claims 1-5.
9. An electronic device, characterized in that, include: A memory on which computer programs are stored; A processor for executing the computer program in the memory to implement the steps of the method according to any one of claims 1-5.
10. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the steps of the method described in any one of claims 1-5.