Data transmission method, system and device, and storage medium

CN122963995APending Publication Date: 2026-10-23PIPECHINA SOUTH CHINA CO +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510490850.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-18
Publication Date
2026-10-23

AI Technical Summary

Technical Problem

[0004]本申请提供一种数据的传输方法、系统、装置及存储介质,用于解决数据总线的传输资源利用率较低的问题

Benefits of technology

[0019]上述方案中,数据的传输系统、数据的传输装置、计算机设备、计算机存储介质、芯片或者计算机程序产品所能解决的技术问题以及实现的技术效果可以参见上述第一方面所解决的技术问题以及技术效果,在此不再赘述。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122963995A_ABST
    Figure CN122963995A_ABST
Patent Text Reader

Abstract

The application provides a data transmission method, system and device and a storage medium, relates to the technical field of computing devices, and can improve the utilization rate of transmission resources of a data bus. The method comprises the following steps: acquiring transmission priority information of each to-be-communicated device in a plurality of to-be-communicated devices and communication time of each to-be-communicated device, wherein the to-be-communicated device is a peripheral device connected with the data bus; determining transmission timing of the plurality of to-be-communicated devices based on the transmission priority information of each to-be-communicated device and the communication time of the plurality of to-be-communicated devices; and transmitting to-be-transmitted data of each to-be-communicated device through the data bus according to the transmission timing of the plurality of to-be-communicated devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computing device technology, and in particular to a data transmission method, system, apparatus and storage medium. Background Technology

[0002] A bus refers to a standardized way of exchanging data between computer components, providing a common method for data transmission and control logic for each component. When multiple peripheral devices are associated with a data bus, the peripheral devices often use the data bus simply according to a first-come, first-served mechanism. That is, after the communication data of one associated peripheral device is transmitted, the communication data of the next associated peripheral device will be transmitted.

[0003] However, the current upload method is too simple and cannot efficiently utilize the data bus's transmission resources. Summary of the Invention

[0004] This application provides a data transmission method, system, apparatus, and storage medium to solve the problem of low utilization of data bus transmission resources.

[0005] To achieve the above objectives, this application adopts the following technical solution:

[0006] Firstly, this application provides a data transmission method. In this method, transmission priority information and communication time of each of a plurality of devices to be communicated are obtained, where each device is a peripheral device connected to a data bus. Based on the transmission priority information of each device and the communication time of the plurality of devices, a transmission sequence of the plurality of devices is determined. Data to be transmitted from each device is transmitted via the data bus according to the transmission sequence of the plurality of devices.

[0007] Based on the above technical solution, the transmission priority information and communication time of each of the multiple devices to be communicated are obtained. These devices are peripheral devices connected to the data bus. Based on the transmission priority information of each device and the communication times of all devices, the transmission sequence of the multiple devices is determined. According to the transmission sequence of the multiple devices, the data to be transmitted from each device is transmitted through the data bus. In this way, the transmission sequence of the data from the devices can be rationally allocated based on priority and communication time, thereby effectively improving the transmission efficiency of the data bus.

[0008] In one possible design, an initial timing sequence is determined based on the transmission priority information of each device to be communicated with. This initial timing sequence includes: devices with higher priority information are positioned before devices with lower priority information. The initial timing sequence is then adjusted based on the communication times of multiple devices to obtain a transmission timing sequence. This transmission timing sequence includes: devices with higher priority information are positioned before devices with lower priority information; and among devices with the same priority information, devices with earlier communication times are positioned before devices with later communication times.

[0009] In one possible design, the current transmittable capacity of the data bus is obtained, which is the amount of data the data bus can transmit in the current unit of time. The amount of data to be transmitted from the device to be communicated is then obtained. Based on the current transmittable capacity and the amount of data to be transmitted, the data to be transmitted from the device to be communicated is transmitted through the data bus.

[0010] In one possible design, if the amount of data to be transmitted is less than or equal to the currently transmittable amount, the data to be transmitted is transmitted via the data bus. The amount of data that the data bus can transmit in the current unit of time is updated.

[0011] In one possible design, if the amount of data to be transmitted exceeds the current transmittable capacity, the data to be transmitted is divided into multiple sub-data items based on the current transmittable capacity. These multiple sub-data items are then transmitted sequentially via the data bus.

[0012] In one possible design, the receiving device acquires multiple sub-data to be transmitted. Based on the segmentation order information corresponding to each sub-data, the multiple sub-data are concatenated to obtain the target data. If the target data differs from the data to be transmitted, the communicating device is notified to retransmit the data to be transmitted.

[0013] Secondly, this application provides a data transmission system, which includes an acquisition module, a processing module, and a sending module.

[0014] The acquisition module acquires the transmission priority information and communication time of each of the multiple devices to be communicated, where each device is a peripheral device connected to the data bus. The processing module determines the transmission sequence of the multiple devices based on their transmission priority information and communication times. The sending module transmits the data to be transmitted from each device via the data bus according to the transmission sequence of the multiple devices.

[0015] Thirdly, this application provides a data transmission apparatus, the apparatus comprising: a processor and a memory; the processor and the memory being coupled; the memory being used to store one or more programs, the one or more programs including computer device execution instructions, wherein when the data transmission apparatus is running, the processor executes the computer device execution instructions stored in the memory to implement the method as described in the first aspect and any possible implementation thereof.

[0016] Fourthly, this application provides a computer-readable storage medium storing instructions that, when executed on a computer device, cause the computer device to perform the methods described in the first aspect and any possible implementation thereof.

[0017] Fifthly, this application provides a chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run computer programs or instructions to implement the methods described in the first aspect and any possible implementation thereof.

[0018] Sixthly, this application provides a computer program product containing instructions that, when executed by a computer, cause the computer device to perform the methods described in the first aspect and any possible implementation thereof.

[0019] The technical problems that the data transmission system, data transmission device, computer equipment, computer storage medium, chip or computer program product can solve and the technical effects that can be achieved in the above-mentioned first aspect can be referred to, and will not be repeated here. Attached Figure Description

[0020] Figure 1 A flowchart illustrating a data transmission method provided in an embodiment of this application;

[0021] Figure 2 A flowchart illustrating another data transmission method provided in an embodiment of this application;

[0022] Figure 3 This is a schematic diagram of the structure of a data transmission system provided in an embodiment of this application;

[0023] Figure 4 This is a schematic diagram of the structure of a data transmission device provided in an embodiment of this application;

[0024] Figure 5 A conceptual partial view of a computer program product provided for an embodiment of this application. Detailed Implementation

[0025] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0026] The terms “first” and “second” in the specification and claims of this application are used to distinguish different objects, rather than to describe a specific order of objects.

[0027] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the steps or modules listed, but may optionally include other steps or modules not listed, or may optionally include other steps or modules inherent to such process, method, product, or device.

[0028] Furthermore, in the embodiments of this application, the words "exemplary" or "for example" are used to indicate that they are examples, illustrations, or descriptions. Any embodiment or design that is described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design options. Specifically, the use of the words "exemplary" or "for example" is intended to present concepts in a concrete manner.

[0029] A data bus refers to a standardized method for exchanging data between computer components, providing a common way for data transmission and control logic to each component. A data bus can transmit one or more bits of data per unit time. The larger the data bus bandwidth, the higher the transmission performance. The bandwidth of a data bus (i.e., the total amount of data that can be transmitted per unit time) is: Bus bandwidth = Frequency × Width. Computing devices may include peripheral devices coupled to the computing device using one or more communication buses.

[0030] After several peripheral devices are associated with the data bus, when the peripheral devices upload data through the data bus, the data bus is often used simply according to the first-come-first-served mechanism. That is, after the communication data volume of one associated peripheral device is completed, the communication data volume of the next associated peripheral device is transmitted. This kind of data upload method cannot effectively utilize the bandwidth advantage of the data bus and cannot guarantee efficient data transmission.

[0031] To address the aforementioned technical problems, this application provides a data transmission method. In this method, transmission priority information and communication time of each of a plurality of devices to be communicated are obtained. Each device to be communicated is a peripheral device connected to a data bus. Based on the transmission priority information of each device and the communication time of the plurality of devices, a transmission sequence is determined. Data to be transmitted from each device is transmitted via the data bus according to the transmission sequence of the plurality of devices. This allows for the reasonable allocation of the data transmission sequence of the devices based on priority and communication time, thereby effectively improving the transmission efficiency of the data bus.

[0032] like Figure 1 As shown, this application provides a data transmission method, which includes:

[0033] S101. Obtain the transmission priority information of each of the multiple communication devices, as well as the communication time of each communication device.

[0034] The device to be communicated with is a peripheral device connected to the data bus. Multiple peripheral devices are connected to the data bus.

[0035] In this embodiment, device information of all peripheral devices connected to the data bus can be obtained. This device information includes: device identifier and transmission priority information.

[0036] It should be understood that this transmission priority information can be pre-set by the developer or user. For example, the transmission priority information can be "1", "2", or "3".

[0037] In this embodiment of the application, the communication time is the time when the communication device requests the transmission of the data to be transmitted.

[0038] S102. Based on the transmission priority information of each device to be communicated and the communication time of multiple devices to be communicated, determine the transmission sequence of multiple devices to be communicated.

[0039] In one possible implementation, an initial timing sequence is determined based on the transmission priority information of each device to be communicated. This initial timing sequence includes the following: devices with higher priority information are positioned before devices with lower priority information. Subsequently, the initial timing sequence is adjusted based on the communication times of multiple devices to obtain a transmission timing sequence. This transmission timing sequence includes the following: devices with higher priority information are positioned before devices with lower priority information; and among devices with the same priority information, devices with earlier communication times are positioned before devices with later communication times.

[0040] For example, the devices to be communicated include: device a-device g. Devices a-c have a priority of 1, devices d and e have a priority of 2, and devices f and g have a priority of 3. The initial timing sequence is: device a-device b-device c-device d-device e-device f-device g. Since device a's communication time is earlier than device c, device c's is earlier than device b, device e's is earlier than device d, and device f's is earlier than device g, the transmission timing sequence is: device a-device c-device b-device e-device d-device f-device g.

[0041] S103. According to the transmission timing of multiple devices to be communicated, transmit the data to be transmitted for each device through the data bus.

[0042] In one possible implementation, the data to be transmitted for each of the multiple devices to be communicated is transmitted sequentially via a data bus according to the transmission timing of the multiple devices to be communicated.

[0043] In other words, the data bus transmits the data to be transmitted from one device at a time according to the transmission timing.

[0044] In another possible implementation, the data to be transmitted of at least one device is transmitted sequentially via a data bus according to the transmission timing of multiple devices to be communicated.

[0045] For example, suppose the transmission sequence is: device a - device b - device c. The data bus can transmit data from device a and device b simultaneously, and then transmit data from device c.

[0046] In some embodiments, the predicted time for all communication devices to complete communication in the transmission timing can be predicted.

[0047] Understandably, this involves acquiring the transmission priority information and communication time of each of the multiple devices to be communicated with, where each device is a peripheral device connected to the data bus. Based on the transmission priority information of each device and the communication time of all devices, the transmission sequence of the multiple devices is determined. According to the transmission sequence of the multiple devices, the data to be transmitted from each device is transmitted through the data bus. In this way, the transmission sequence of the data from the devices can be rationally allocated based on priority and communication time, thereby effectively improving the transmission efficiency of the data bus.

[0048] like Figure 2 As shown, another data transmission method provided in this application embodiment is described, in which S103 may include:

[0049] S201. Obtain the current transmittable amount of the data bus.

[0050] The currently transmittable amount is the amount of data that the data bus can transmit in the current unit of time.

[0051] For example, the unit of time can be 1 second, 2 seconds, etc.

[0052] In one possible implementation, the bandwidth of the data bus can be obtained. Based on the bandwidth of the data bus, the unit transmission volume is determined, which is the amount of data that the data bus can transmit per unit time. Then, the occupied transmission volume of the data bus is obtained. Based on the unit transmission volume and the occupied transmission volume, the currently transmittable volume is determined, which is the amount of data that the data bus is currently transmitting per unit time.

[0053] In one possible design, when no data is being transmitted on the data bus, the current transmittable amount is the same as the unit transmittable amount.

[0054] In one possible design, the current transmittable amount is less than the unit transmittable amount.

[0055] S202. Obtain the amount of data to be transmitted from the device to be communicated.

[0056] In one possible design, the amount of data to be transmitted is the amount of data that a communication device needs to transmit.

[0057] In another possible design, the amount of data to be transmitted is the sum of the amounts of data that all communicating devices need to transmit.

[0058] S203. Based on the current transmittable amount and the amount of data to be transmitted, transmit the data to be transmitted from the device to be communicated via the data bus.

[0059] In one possible implementation, if the amount of data to be transmitted is less than or equal to the currently transmittable amount, the data to be transmitted is transmitted via the data bus. Afterwards, the amount of data that the data bus can transmit within the current unit of time is updated to obtain the updated available data amount.

[0060] For example, if the current transmittable amount is 10 and the amount of data to be transmitted is 2, then the updated available data amount is 8.

[0061] In another possible implementation, if the amount of data to be transmitted exceeds the current transmittable capacity, the data to be transmitted is divided into multiple sub-data items based on the current transmittable capacity. These sub-data items are then transmitted sequentially via the data bus.

[0062] Optionally, the data to be transmitted can be segmented based on the current transmittable capacity and the unit transmittable capacity to obtain multiple sub-data to be transmitted.

[0063] In one possible design, given that the current transmittable amount and the unit transmittable amount are the same, the amount of data to be transmitted by the device to be communicated is divided by the current transmittable amount to obtain the number of sub-data to be transmitted.

[0064] For example, if the amount of data to be transmitted is 16 and the unit transmission quantity is 5, then the number of sub-data to be transmitted is 4, and the sub-data quantities to be transmitted are 5, 5, 5, and 1 respectively. If the amount of data to be transmitted is 15 and the unit transmission quantity is 5, then the number of sub-data to be transmitted is 3, and the sub-data quantities to be transmitted are 5, 5, and 5 respectively.

[0065] In another possible design, when the current transmittable amount and the unit transmittable amount are not the same, the target transmittable amount is obtained by subtracting the current transmittable amount from the amount of data to be transmitted by the device to be communicated. Then, the target transmittable amount is divided by the current transmittable amount to obtain the initial quantity. This represents the number of sub-data items to be transmitted.

[0066] For example, if the amount of data to be transmitted is 16, the current transmission amount is 3, and the unit transmission amount is 5, then the number of sub-data to be transmitted is 4, and the sub-data amounts to be transmitted are 3, 5, 5, and 3 respectively.

[0067] Optionally, during the process of segmenting the data to be transmitted, segmentation order information can be added to multiple sub-data to be transmitted.

[0068] Optionally, a device identifier of the corresponding communication device and the amount of data to be transmitted can be added to at least one sub-data to be transmitted.

[0069] For example, multiple sub-data to be transmitted can be transmitted sequentially according to the segmentation order information via the data bus, and the amount of data that can be transmitted per unit time of the data bus can be updated.

[0070] It is understandable that segmenting the data to be transmitted can improve the utilization efficiency of the data bus, thereby improving the data transmission efficiency.

[0071] In some embodiments, multiple sub-data to be transmitted received by the receiving device can be acquired. Based on the segmentation order information corresponding to each sub-data to be transmitted, the multiple sub-data to be transmitted are concatenated to obtain the target data. If the target data differs from the data to be transmitted, the communicating device is notified to retransmit the data to be transmitted.

[0072] In one possible implementation, it is determined whether the size of the target data is the same as the size of the data to be transmitted. If the size of the target data is the same as the size of the data to be transmitted, then the target data and the data to be transmitted are determined to be the same. If the size of the target data is different from the size of the data to be transmitted, then the target data and the data to be transmitted are determined to be different.

[0073] In some embodiments, when the amount of target data is the same as the amount of data to be transmitted, the receiving device splices multiple sub-data to be transmitted based on the segmentation order information.

[0074] Understandably, by comparing the amount of data to be transmitted with the current amount of data to be transmitted, and then dividing the data to be transmitted by the current amount of data to be transmitted and the unit amount of data to be transmitted, the resources of the data bus can be fully utilized, thereby ensuring efficient data transmission.

[0075] The foregoing primarily describes the solutions provided by the embodiments of this application from a methodological perspective. It is understood that, in order to achieve the aforementioned functions, the data transmission device includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the data transmission method steps described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0076] This application embodiment can divide the data transmission device into functional modules or functional units according to the above method examples. For example, each function can be divided into a separate functional module or functional unit, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or in software functional modules or functional units. The module or unit division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0077] This application provides a data transmission system. For example... Figure 3 As shown, the data transmission system may include: an acquisition module 301, a processing module 302, and a sending module 303.

[0078] The acquisition module 301 is used to acquire the transmission priority information and communication time of each of the multiple devices to be communicated, where each device is a peripheral device connected to the data bus. The processing module 302 is used to determine the transmission sequence of the multiple devices to be communicated based on the transmission priority information and the communication time of each device. The sending module 303 is used to transmit the data to be transmitted from each device to be communicated via the data bus according to the transmission sequence of the multiple devices.

[0079] In one possible design, processing module 302 is further configured to determine an initial timing sequence based on the transmission priority information of each communication device. The initial timing sequence includes: communication devices with higher priority information are positioned before communication devices with lower priority information. Processing module 302 is also configured to adjust the initial timing sequence based on the communication times of multiple communication devices to obtain a transmission timing sequence. This transmission timing sequence includes: communication devices with higher priority information are positioned before communication devices with lower priority information; and among communication devices with the same priority information, the communication device with an earlier communication time is positioned before the communication device with a later communication time.

[0080] In one possible design, the acquisition module 301 is further configured to acquire the current transmittable amount of the data bus, which is the amount of data the data bus can transmit in the current unit of time. The acquisition module 301 is also configured to acquire the amount of data to be transmitted from the device to be communicated. The transmission module 303 is further configured to transmit the data to be transmitted from the device to be communicated via the data bus based on the current transmittable amount and the amount of data to be transmitted.

[0081] In one possible design, the sending module 303 is further configured to transmit the data to be transmitted via the data bus if the amount of data to be transmitted is less than or equal to the currently transmittable amount. The processing module 302 is further configured to update the amount of data that the data bus can transmit in the current unit of time.

[0082] In one possible design, the processing module 302 is further configured to, if the amount of data to be transmitted is greater than the current transmittable amount, divide the data to be transmitted into multiple sub-data to be transmitted based on the current transmittable amount. The sending module 303 is further configured to sequentially transmit the multiple sub-data to be transmitted via the data bus.

[0083] In one possible design, the acquisition module 301 is further configured to acquire multiple sub-data to be transmitted received by the receiving device. The processing module 302 is further configured to concatenate the multiple sub-data to be transmitted based on the segmentation order information corresponding to each sub-data to obtain the target data. The sending module 303 is further configured to notify the communication device to retransmit the data to be transmitted if the target data is different from the data to be transmitted.

[0084] Figure 4 This is a schematic diagram illustrating the structure of a data transmission apparatus according to an exemplary embodiment. The data transmission apparatus may include a processor 402, which executes application code to implement the data transmission method of this application.

[0085] Processor 402 may be a central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.

[0086] like Figure 4 As shown, the data transmission device may further include a memory 403. The memory 403 stores the application code that executes the scheme of this application, and its execution is controlled by the processor 402.

[0087] Memory 403 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. Memory 403 may exist independently and be connected to processor 402 via bus 404. Memory 403 may also be integrated with processor 402.

[0088] like Figure 4 As shown, the data transmission device may further include a communication interface 401, wherein the communication interface 401, processor 402, and memory 403 may be coupled to each other, for example, through a bus 404. The communication interface 401 is used for information interaction with other devices, for example, supporting information interaction between the data transmission device and other devices.

[0089] It should be pointed out that, Figure 4 The device structure shown does not constitute a limitation on the data transmission device, except Figure 4 In addition to the components shown, the data transmission device may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.

[0090] In actual implementation, the functions implemented by the processing unit can be derived from... Figure 4 The processor 402 shown calls the program code in memory 403 to implement this.

[0091] This application also provides a computer-readable storage medium storing instructions that, when executed by a processor of a computer device, enable the computer device to perform the data transmission method provided in the embodiments described above. For example, the computer-readable storage medium may be a memory 403 including instructions, which may be executed by a processor 402 of the computer device to complete the method. Optionally, the computer-readable storage medium may be a non-transitory computer-readable storage medium, such as a ROM, RAM, CD-ROM, magnetic tape, floppy disk, or optical data storage device.

[0092] Figure 5 A conceptual partial view of a computer program product provided in an embodiment of this application is shown schematically. The computer program product includes a computer program for executing computer processes on a computing device.

[0093] In one embodiment, the computer program product is provided using a signal carrying medium 500. The signal carrying medium 500 may include one or more program instructions that, when executed by one or more processors, can provide the functions or some of the functions described above. Furthermore, Figure 5 The program instructions in the document also describe example instructions.

[0094] In some examples, the signal carrying medium 500 may include a computer-readable medium 501, such as, but not limited to, a hard disk drive, a compact disc (CD), a digital video optical disc (DVD), a digital magnetic tape, a memory, a read-only memory (ROM), or a random access memory (RAM), and so on.

[0095] In some implementations, the signal carrying medium 500 may include a computer recordable medium 502, such as, but not limited to, a memory, a read / write (R / W) CD, a R / W DVD, and so on.

[0096] In some implementations, the signal carrying medium 500 may include a communication medium 503, such as, but not limited to, digital and / or analog communication media (e.g., fiber optic cables, waveguides, wired communication links, wireless communication links, etc.).

[0097] The signal-bearing medium 500 can be transmitted by a wireless communication medium 503. One or more program instructions may be, for example, computer-executable instructions or logical implementation instructions.

[0098] In some examples, the data transmission device may be configured to provide various operations, functions, or actions in response to one or more program instructions in a computer-readable medium 501, a computer-recordable medium 502, and / or a communication medium 503.

[0099] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0100] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0101] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the constituent units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0102] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0103] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, essentially, or the part that contributes to the prior art, or a complete or partial classification of the technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0104] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A data transmission method, characterized in that, The method includes: The transmission priority information of each of the multiple communication devices to be communicated and the communication time of each of the communication devices to be communicated are obtained. The communication devices to be communicated are peripheral devices connected to the data bus. Based on the transmission priority information of each of the communication devices and the communication time of the multiple communication devices, the transmission timing of the multiple communication devices is determined. According to the transmission timing of the multiple communication devices, the data to be transmitted by each of the communication devices is transmitted through the data bus.

2. The method according to claim 1, characterized in that, The step of determining the transmission timing of multiple devices to be communicated based on the transmission priority information of each device to be communicated and the communication time of multiple devices to be communicated includes: Based on the transmission priority information of each of the communication devices, an initial timing sequence is determined, wherein the initial timing sequence includes: the communication device with higher priority information is located before the communication device with lower priority information; The initial timing is adjusted based on the communication time of the plurality of communication devices to obtain the transmission timing, which includes: the communication device with higher priority information is located before the communication device with lower priority information; among the communication devices with the same priority information, the communication device with earlier communication time is located before the communication device with later communication time.

3. The method according to claim 1 or 2, characterized in that, Transmitting the data to be transmitted by each of the communication devices via the data bus includes: Obtain the current transmittable amount of the data bus, where the current transmittable amount is the amount of data that the data bus can transmit in the current unit of time. Obtain the amount of data to be transmitted from the device to be communicated; Based on the current transmittable amount and the amount of data to be transmitted, the data to be transmitted from the communication device is transmitted through the data bus.

4. The method according to claim 3, characterized in that, The step of transmitting the data to be transmitted from the communication device via the data bus based on the current transmittable amount and the amount of data to be transmitted includes: If the amount of data to be transmitted is less than or equal to the current transmittable amount, then the data to be transmitted is transmitted through the data bus. The amount of data that the data bus can transmit in the current unit of time is updated.

5. The method according to claim 3, characterized in that, The step of transmitting the data to be transmitted from the communication device via the data bus based on the current transmittable amount and the amount of data to be transmitted includes: If the amount of data to be transmitted is greater than the current transmittable amount, the data to be transmitted is divided based on the current transmittable amount to obtain multiple sub-data to be transmitted. The plurality of sub-data to be transmitted are transmitted sequentially through the data bus.

6. The method according to claim 5, characterized in that, One of the sub-data to be transmitted corresponds to one segmentation order information; the method further includes: Acquire the plurality of sub-data to be transmitted received by the receiving device; The multiple sub-data to be transmitted are concatenated based on the segmentation order information corresponding to each of the sub-data to be transmitted to obtain the target data; If the target data is different from the data to be transmitted, then the communication device is notified to retransmit the data to be transmitted.

7. A data transmission system, characterized in that, The system includes: The acquisition module is used to acquire the transmission priority information of each of the multiple communication devices and the communication time of each communication device, wherein the communication device is a peripheral device connected to the data bus; The processing module is used to determine the transmission timing of the multiple devices to be communicated based on the transmission priority information of each device to be communicated and the communication time of the multiple devices to be communicated; The transmitting module is used to transmit the data to be transmitted by each of the multiple devices to be communicated via the data bus according to the transmission timing of the multiple devices to be communicated.

8. A data transmission device, characterized in that, include: Processor and memory; The processor and the memory are coupled; The memory is used to store one or more programs, the one or more programs including computer device execution instructions, wherein when the data transmission device is running, the processor executes the computer device execution instructions stored in the memory to cause the data transmission device to perform the method as described in any one of claims 1-6.

9. A computer-readable storage medium storing instructions, characterized in that, When the computer device executes the instruction, the computer device performs the method as described in any one of claims 1-6.

10. A computer program product containing instructions, characterized in that, When the instructions are executed by the computing device, the computing device performs the method as described in any one of claims 1-6.