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

By identifying the information characteristics of the information to be transmitted, dividing the processing level, and determining the communication method according to the processing level, the problem of timeout of the information to be transmitted is solved, and the effect of reducing the time spent on the communication bus and improving communication efficiency is achieved.

CN117294779BActive Publication Date: 2025-06-20深圳腾信百纳科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311250740.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-26
Publication Date
2025-06-20
Estimated Expiration
2043-09-26

AI Technical Summary

Technical Problem

During the communication process between devices, if the communication method to be transmitted is determined based on whether the communication bus is idle, it may increase the time occupied by the communication bus, resulting in the time when the information to be transmitted may not be transmitted, which will affect the communication between devices.

Method used

By identifying the information characteristics of the information to be transmitted, the processing level is divided, and the communication method is determined based on the processing level. If the communication bus is busy, determine whether the timeout will occur based on the working information of the communication bus, and determine the final communication form if it is determined that the timeout will not occur.

Benefits of technology

The usage time of the communication bus is reduced, the probability of timeout of the information to be transmitted is reduced, and the communication efficiency and reliability between devices is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117294779B_ABST
    Figure CN117294779B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of communication data processing, and in particular, to a communication data transmission method, apparatus, electronic device, and storage medium. The method includes obtaining information to be transmitted and identifying information features in the information to be transmitted; determining a processing level of the information to be transmitted according to the information features, and determining a processing duration according to the processing level; determining an initial communication form corresponding to the processing level of the information to be transmitted according to a preset correspondence between the processing level and the communication form; when the initial communication form is synchronous communication, obtaining working information of the communication bus, where the working information includes the working state of the communication bus and the bus transmission rate; if the working state is non-idle, determining the transmission duration of the information to be transmitted based on the working information of the communication bus; determining whether the transmission duration is higher than the processing duration, and if not, determining the initial communication form as the final communication form. The present application can reduce the probability of timeout during information transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of communication data processing, and in particular, to a communication data transmission method, apparatus, electronic device, and storage medium. Background Art

[0002] Communication between devices is to transfer information between devices. According to the content of the transferred information and the urgency corresponding to the transferred information, different communication methods can be selected for transfer. The communication methods include synchronous communication and asynchronous communication. Among them, synchronous communication requires the sender and receiver to have synchronous clock signals with the same frequency and phase to keep the sender and receiver synchronized, so as to achieve high-speed and large-capacity data transmission; asynchronous communication does not require the sender and receiver to be synchronized, and the sender can send information to the receiver at any time.

[0003] In the related art, generally, by determining whether the communication bus is idle, it is determined whether synchronous communication is used in the process of transferring the information to be transmitted. However, if only based on whether the communication bus is idle to determine the communication method of the information to be transmitted, it may cause the occupation time of the communication bus to increase. If there is information to be transmitted that needs to be processed quickly and the communication bus is occupied, the communication method of the information to be transmitted can only be determined as asynchronous communication, or wait until the communication bus is idle and then use the communication bus to complete synchronous communication. However, since the information to be transmitted cannot be transmitted in time, the information to be transmitted may time out and not be transmitted, which may affect the communication between devices. Summary of the Invention

[0004] In order to reduce the probability of timeout during information transmission, the present application provides a communication data transmission method, apparatus, electronic device, and storage medium.

[0005] In a first aspect, the present application provides a communication data transmission method, adopting the following technical solution:

[0006] A communication data transmission method includes:

[0007] Obtain the information to be transmitted, and identify the information characteristics in the information to be transmitted, where the information to be transmitted is sent by a sending-end device;

[0008] Determine the processing level of the information to be transmitted according to the information characteristics, and determine the corresponding processing deadline duration according to the processing level. The processing level is in a proportional relationship with the urgency, and the processing level corresponds to the processing deadline duration one by one;

[0009] Determine the initial communication form corresponding to the processing level of the information to be transmitted according to the preset correspondence between the processing level and the communication form. The initial communication form includes synchronous communication and asynchronous communication;

[0010] When the initial communication form is synchronous communication, obtain the working information of the communication bus, where the working information includes the working state of the communication bus and the bus transmission rate, and the working state includes idle and non-idle;

[0011] If the working state is non-idle, based on the working information of the communication bus, determine the waiting duration of the information to be transmitted and the sending duration of the information to be transmitted. The waiting duration and the sending duration of the transmitted information constitute the transmission duration of the transmitted information, and the sending duration is the duration for the information to be transmitted to be transmitted on the communication bus;

[0012] Judge whether the transmission duration is higher than the processing deadline duration. If not, determine the initial communication form as the final communication form of the information to be transmitted.

[0013] By adopting the above technical solution, by identifying the information characteristics of the information to be transmitted to classify the processing levels of the information to be transmitted, rather than uniformly processing all the information to be transmitted, it is convenient to process the information to be transmitted with a higher processing level in a timely manner, and determine the corresponding communication method for the information to be transmitted according to the processing level of the information to be transmitted, rather than only determining whether to use synchronous communication for the information to be transmitted by judging whether the communication bus is idle. Determine whether to occupy the communication bus through the processing level, which is convenient for reducing the usage duration of the communication bus. When it is determined that synchronous communication needs to be used to transmit the information to be transmitted and the communication bus is busy, judge whether the information to be transmitted will time out according to the working information of the communication bus, and when it is determined that the information to be transmitted will not time out, determine the final communication form of the information to be transmitted. According to the processing level of the information to be transmitted and whether it will time out, determine whether to use synchronous communication for transmission. By increasing the conditions for occupying the communication bus, the occupancy duration of the communication bus during the information transmission process is reduced, and the probability of timeout during the information transmission process due to the busy communication bus is reduced.

[0014] In a possible implementation manner, the method further includes:

[0015] When the transmission duration of the information to be transmitted is higher than the processing deadline duration, determine the corresponding key information based on the information characteristics of the information to be transmitted;

[0016] Based on the key information and the working information of the communication bus, determine the transmission duration of the key information;

[0017] Determine whether the transmission duration of the key information is higher than the processing deadline duration. If not, transmit the key information in the form of synchronous communication, and determine the retransmission time of the information to be transmitted based on the working information of the communication bus.

[0018] By adopting the above technical solution, when the waiting duration for the communication bus to be idle and the duration required to transfer the information to be transmitted to the receiving device for the information to be transmitted with a higher processing level exceed the processing deadline of the information to be transmitted, it may cause the information to be transmitted to time out, which may affect the communication between the sending device and the receiving device. Determine the key information of the information to be transmitted based on the information characteristics of the information to be transmitted, reduce the amount of information to be transmitted to shorten the duration of uploading the information to be transmitted to the communication bus, thereby reducing the probability of the information to be transmitted timing out. First, transmit the key information, and then transmit the complete information to be transmitted, which is convenient for reducing the impact on the communication between the sending device and the receiving device caused by the inability to transmit the information in time.

[0019] In a possible implementation manner, the method further includes:

[0020] When there are multiple pieces of information to be transmitted within a preset time period, determine the processing level of each piece of information to be transmitted and the sending duration of each piece of information to be transmitted;

[0021] According to the processing deadline duration and the transmission duration of each piece of information to be transmitted, determine the optimal sending sequence of each piece of information to be transmitted, so as to transmit multiple pieces of information to be transmitted according to the optimal sending sequence.

[0022] By adopting the above technical solution, through unified analysis of the transmission durations and the corresponding processing deadline durations of multiple pieces of information to be transmitted within a preset time period, determine the optimal sending time corresponding to each piece of information to be transmitted, rather than determining the sending time of each piece of information to be transmitted separately, which is convenient for ensuring that multiple pieces of information to be transmitted within the preset time period can all be transmitted within their respective processing deadlines, thereby facilitating reducing the probability of the situation of timeout and non-transmission occurring during the information transmission process.

[0023] In a possible implementation manner, after determining the optimal sending sequence of each piece of information to be transmitted, it further includes:

[0024] Identify the information to be transmitted, and determine whether there is supplementary information in the information to be transmitted according to the identification result;

[0025] When there is supplementary information for the information to be transmitted, predict the estimated transmission time period of the supplementary information according to the waiting time period and the transmission time period of the information to be transmitted, determine the estimated transmission time period as the idle reservation time period of the communication bus, and update the optimal transmission sequence according to the idle reservation time period. The idle reservation time period is used for transmitting the supplementary information.

[0026] By adopting the above technical solution, when it is detected that there is supplementary information for the information to be transmitted, predict the estimated transmission time period of the supplementary information according to the waiting time period and the transmission time period of the information to be transmitted, and adjust the idle time period of the communication bus based on the estimated transmission time period of the supplementary information, so that the supplementary information can be transmitted in a timely manner. There is no need to perform information feature recognition and processing level determination on the supplementary information of the information to be transmitted, but directly process the supplementary information according to the communication form of the information to be transmitted, reducing the operations of feature recognition and processing level determination, facilitating the reduction of the computing pressure of the computer, thereby facilitating the improvement of the processing rate, and updating the optimal transmission sequence in a timely manner according to the idle reservation time period, facilitating the timely adjustment of the transmission order of the information to be transmitted and avoiding transmission anomalies.

[0027] In a possible implementation manner, the updating the optimal transmission sequence according to the idle reservation time period includes:

[0028] Determine the optimal transmission time period of each piece of information to be transmitted according to the optimal transmission time moment and the transmission time period corresponding to each piece of information to be transmitted in the transmission sequence;

[0029] Compare the optimal transmission time period of each piece of transmission information with the idle reservation time period to determine the affected information. The affected information is the information to be transmitted whose optimal transmission time period has an intersection with the idle reservation time period;

[0030] Update the optimal transmission time moment of the affected information according to the idle reservation time period, and determine whether the transmission time period corresponding to the updated optimal time moment is higher than the processing deadline time period corresponding to the affected information. If not, complete the update of the optimal transmission sequence.

[0031] By adopting the above technical solution, the optimal transmission time of the information to be transmitted in the optimal transmission sequence affected by the idle reservation duration is adjusted, that is, the transmission time period of the information is updated to update the optimal transmission sequence, rather than adjusting the transmission time of each piece of information to be transmitted in the optimal transmission sequence. Therefore, the number of data comparison and processing times is reduced, which is convenient for reducing the working pressure of the computer. And after updating the transmission time of the information, it is determined again whether the information will time out, and when it is determined that the information will not time out, the update of the optimal transmission sequence is completed, which is convenient for reducing the probability of timeout in the information transmission process.

[0032] In a possible implementation manner, the method further includes:

[0033] If a request control signal is detected within the idle reservation duration, determine the processing level of the waiting information, where the request control signal is used to indicate that there is waiting information that needs to perform synchronous communication;

[0034] Compare the processing level of the waiting information with the processing level of the supplementary information, and determine the transmission time of the waiting information according to the comparison result.

[0035] By adopting the above technical solution, by comparing the processing levels of the supplementary information and the waiting information, the processing priorities of the supplementary information and the waiting information within the idle reservation duration of the communication bus are determined, and the information to be transmitted is transmitted according to the processing priorities. And the transmission times of multiple pieces of information to be transmitted are re-determined through the processing levels, which is convenient for improving the standardization during the transmission process.

[0036] In a possible implementation manner, the method further includes:

[0037] According to each piece of information to be transmitted within a preset period and the requested transmission time of each piece of information to be transmitted, determine whether there is stable transmission information, and the interval periods corresponding to the stable transmission information are the same;

[0038] If there is stable transmission information, determine the reserved idle duration of the communication bus according to the transmission time of the stable transmission information, where the reserved idle duration is used to transmit the stable transmission information.

[0039] By adopting the above technical solution, it is determined whether the information to be transmitted is stable through the interval period of the transmitted information, and when there is stable transmission information, the idle duration of the communication bus is reserved for the stable transmission information to ensure the normal transmission of the stable transmission information, without determining the processing level and transmission time of the stable transmission information each time, which is convenient for reducing the working pressure of the computer and thus convenient for improving the transmission rate.

[0040] In a second aspect, the present application provides a communication data transmission device, adopting the following technical solution:

[0041] A communication data transmission device includes:

[0042] An information acquisition module, configured to acquire information to be transmitted and identify information features in the information to be transmitted, where the information to be transmitted is sent by a sending-end device;

[0043] A processing level determination module, configured to determine the processing level of the information to be transmitted according to the information features, and determine the corresponding processing duration according to the processing level, where the processing level is in a direct proportional relationship with the urgency level, and the processing level corresponds one-to-one with the processing duration;

[0044] An initial communication form determination module, configured to determine the initial communication form corresponding to the processing level of the information to be transmitted according to the preset correspondence between the processing level and the communication form, where the initial communication form includes synchronous communication and asynchronous communication;

[0045] A bus information acquisition module, configured to acquire the working information of the communication bus when the initial communication form is synchronous communication, where the working information includes the working state and the bus transmission rate of the communication bus, and the working state includes idle and non-idle;

[0046] A waiting duration determination module, configured to, if the working state is non-idle, determine the waiting duration of the information to be transmitted and the sending duration of the information to be transmitted based on the working information of the communication bus, where the waiting duration and the sending duration of the transmission information constitute the transmission duration of the transmission information, and the sending duration is the duration for the information to be transmitted to be transmitted on the communication bus;

[0047] A final communication form determination module, configured to determine whether the transmission duration is higher than the processing duration, and if not, determine the initial communication form as the final communication form of the information to be transmitted.

[0048] By adopting the above technical solution, the information characteristics of the information to be transmitted are identified to classify the processing levels of the information to be transmitted, rather than uniformly processing all the information to be transmitted, which facilitates the timely processing of the information to be transmitted with a higher processing level. And the communication method corresponding to the information to be transmitted is determined according to the processing level of the information to be transmitted, rather than only determining whether to use synchronous communication for the information to be transmitted by judging whether the communication bus is idle. The occupation of the communication bus is determined according to the processing level, which is convenient for reducing the usage duration of the communication bus. When it is determined that synchronous communication is needed to transmit the information to be transmitted and the communication bus is busy, it is judged whether the information to be transmitted will time out according to the working information of the communication bus. And when it is determined that the information to be transmitted will not time out, the final communication form of the information to be transmitted is determined. Whether to use synchronous communication for transmission is determined according to the processing level of the information to be transmitted and whether it will time out. By increasing the conditions for occupying the communication bus, the occupation duration of the communication bus during the information transmission process is reduced, and the probability of timeout during the information transmission process due to the busy communication bus is reduced.

[0049] In a possible implementation manner, the apparatus further includes:

[0050] A key information determination module, configured to determine corresponding key information based on the information characteristics of the information to be transmitted when the transmission duration of the information to be transmitted is higher than the processing deadline duration;

[0051] A transmission duration determination module, configured to determine the transmission duration of the key information based on the key information and the working information of the communication bus;

[0052] A retransmission time determination module, configured to judge whether the transmission duration of the key information is higher than the processing deadline duration. If not, the key information is transmitted in the form of synchronous communication, and based on the working information of the communication bus, determine the retransmission time of the information to be transmitted.

[0053] In a possible implementation manner, the apparatus further includes:

[0054] A processing level determination module, configured to determine the processing level of each piece of information to be transmitted and the sending duration of each piece of information to be transmitted when there are multiple pieces of information to be transmitted within a preset time period;

[0055] An optimal sending sequence determination module, configured to determine the optimal sending sequence of each piece of information to be transmitted according to the processing deadline duration and the transmission duration of each piece of information to be transmitted, so as to transmit multiple pieces of information to be transmitted according to the optimal sending sequence.

[0056] In a possible implementation manner, the apparatus further includes:

[0057] An identification information module for identifying the information to be transmitted and determining whether there is supplementary information in the information to be transmitted according to the identification result;

[0058] An update sequence module for, when there is supplementary information in the information to be transmitted, predicting the estimated transmission time period of the supplementary information according to the waiting time and the sending time of the information to be transmitted, determining the estimated transmission time period as the idle reservation time of the communication bus, and updating the optimal sending sequence according to the idle reservation time, where the idle reservation time is used for transmitting the supplementary information.

[0059] In a possible implementation manner, when the update sequence module updates the optimal sending sequence according to the idle reservation time, it specifically is used for:

[0060] Determining the optimal sending time period of each piece of information to be transmitted according to the optimal sending moment and the sending time corresponding to each piece of information to be transmitted in the optimal sending sequence;

[0061] Comparing the optimal sending time period of each piece of transmission information with the idle reservation time to determine the affected information, where the affected information is the information to be transmitted whose optimal sending time period intersects with the idle reservation time;

[0062] Updating the optimal sending moment of the affected information according to the idle reservation time, and determining whether the transmission time corresponding to the updated optimal moment is higher than the processing deadline time corresponding to the affected information. If not, the update of the optimal sending sequence is completed.

[0063] In a possible implementation manner, the device further includes:

[0064] If a request control signal is detected within the idle reservation time, determining the processing level of the waiting information, where the request control signal is used to indicate that there is waiting information that needs to perform synchronous communication;

[0065] Comparing the processing level of the waiting information with the processing level of the supplementary information, and determining the sending moment of the waiting information according to the comparison result.

[0066] In a possible implementation manner, the device further includes:

[0067] A judgment module for judging whether there is stable sending information according to each piece of information to be transmitted within a preset period and the requested sending moment of each piece of information to be transmitted, where the interval periods corresponding to the stable sending information are the same;

[0068] A reserved idle duration determination module, configured to, if there is stable transmission information, determine the reserved idle duration of the communication bus according to the transmission time of the stable transmission information, where the reserved idle duration is used to transmit the stable transmission information.

[0069] In a third aspect, the present application provides an electronic device, adopting the following technical solution:

[0070] An electronic device, which includes:

[0071] At least one processor;

[0072] A memory;

[0073] At least one application program, where the at least one application program is stored in the memory and is configured to be executed by the at least one processor, and the at least one application program is configured to: execute the above communication data transmission method.

[0074] In a fourth aspect, the present application provides a computer-readable storage medium, adopting the following technical solution:

[0075] A computer-readable storage medium, including: a computer program stored that can be loaded and executed by a processor to execute the above communication data transmission method.

[0076] In summary, the present application includes at least one of the following beneficial technical effects:

[0077] By identifying the information characteristics of the information to be transmitted to classify the processing levels of the information to be transmitted, rather than uniformly processing all the information to be transmitted, it is convenient to process the information to be transmitted with a higher processing level in a timely manner, and determine the corresponding communication method for the information to be transmitted according to the processing level of the information to be transmitted, rather than only determining whether to use synchronous communication for the information to be transmitted by judging whether the communication bus is idle. Determining whether to occupy the communication bus through the processing level is convenient for reducing the usage duration of the communication bus. When it is determined that synchronous communication is needed to transmit the information to be transmitted and the communication bus is busy, judge whether the information to be transmitted will time out according to the working information of the communication bus, and when it is determined that the information to be transmitted will not time out, determine the final communication form of the information to be transmitted. According to the processing level of the information to be transmitted and whether it will time out, determine whether to use synchronous communication for transmission. By increasing the conditions for occupying the communication bus, the occupation duration of the communication bus during the information transmission process is reduced, and the probability of timeout during the information transmission process due to the communication bus being busy is reduced.

[0078] When the waiting duration for a communication bus to become idle and the duration required to transfer the information to be transmitted to the receiving device for higher-level information to be transmitted exceed the processing deadline of the information to be transmitted, it may cause the information to be transmitted to time out, which may affect the communication between the sending device and the receiving device. Determine the key information of the information to be transmitted based on the information characteristics of the information to be transmitted, reduce the amount of information to be transmitted to shorten the duration of uploading the information to be transmitted to the communication bus, thereby reducing the probability of the information to be transmitted timing out. First, transmit the key information, and then transmit the complete information to be transmitted, which helps to reduce the impact on the communication between the sending device and the receiving device caused by the inability to transmit the information in time. Description of the Drawings

[0079] Figure 1 It is a schematic flowchart of a communication data transmission method in an embodiment of the present application;

[0080] Figure 2 It is a schematic structural diagram of a communication data transmission device in an embodiment of the present application;

[0081] Figure 3 It is a schematic structural diagram of an electronic device in an embodiment of the present application. Embodiment

[0082] The following will further describe the present application in detail with reference to the attached Figures 1-3 drawings.

[0083] Those skilled in the art can make modifications to this embodiment without creative contributions according to their needs after reading this specification, but as long as they are within the scope of the claims of the present application, they are protected by the patent law.

[0084] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without making creative efforts fall within the scope of protection of the present application.

[0085] Specifically, the embodiment of the present application provides a communication data transmission method, which is executed by an electronic device. The electronic device can be a server or a terminal device. Among them, the server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The terminal device can be a smart phone, a tablet computer, a notebook computer, a desktop computer, etc., but is not limited thereto. The terminal device and the server can be directly or indirectly connected through wired or wireless communication methods, and the embodiment of the present application does not limit this here.

[0086] Reference Figure 1 , Figure 1 is a schematic flowchart of a communication data transmission method in the embodiment of the present application. The method includes steps S110, S120, S130, S140, S150 and S160, where:

[0087] Step S110: Obtain the information to be transmitted and identify the information features in the information to be transmitted. The information to be transmitted is sent by the sending device.

[0088] Specifically, semantic recognition is performed on the information to be transmitted, that is, the information to be transmitted is segmented into sentences and words, and semantic recognition of the information to be transmitted is realized by parsing the words in the text of the information to be transmitted. The information to be transmitted is the information waiting to be transmitted, generally sent by the sending device and transmitted to the receiving device via the communication bus.

[0089] Step S120: Determine the processing level of the information to be transmitted according to the information features, and determine the corresponding processing deadline duration according to the processing level. The processing level is in a proportional relationship with the urgency degree, and the processing level corresponds to the processing deadline duration one by one.

[0090] Specifically, different information to be transmitted corresponds to different processing levels, that is, different information to be transmitted corresponds to different processing urgency degrees. When determining the processing level of the information to be transmitted according to the information features, it can be determined through the mapping relationship table between the information features and the processing levels. For example, when the information to be transmitted includes both information feature 1 and information feature 2 at the same time, it is determined that the processing level of the information to be transmitted is the first-level processing level; when the information to be transmitted includes information feature 1, information feature 2 and information feature 3 at the same time, it is determined that the processing level of the information to be transmitted is the second-level processing level. In addition, it can also be determined by the sending device and the receiving device of the information to be transmitted. If the sending device and the receiving device of the information to be transmitted are devices in the preset important device list, the processing level of the information to be transmitted is determined according to the processing level corresponding to the devices in the preset important device list. The higher the processing level, the higher the corresponding emergency processing degree.

[0091] The processing period duration is the duration during which there will be no timeout in transmission. The processing period corresponding to the information to be transmitted with a higher processing level is shorter. Different processing levels correspond to different processing period durations. For example, the processing period duration corresponding to the first-level processing level is 3 minutes, the processing period duration corresponding to the second-level processing level is 13 minutes, and the processing period duration corresponding to the third-level processing level is 23 minutes. The specific correspondence between the processing level and the processing period duration can be input by the user and is not specifically limited in the embodiments of the present application.

[0092] Step S130: Determine the initial communication form corresponding to the processing level of the information to be transmitted according to the preset correspondence between the processing level and the communication form. The initial communication form includes synchronous communication and asynchronous communication.

[0093] Specifically, for synchronous communication, the clock frequencies of the receiving device and the sending device need to be the same, and transmission can only start after the receiving device responds. For asynchronous communication, it is not required that the clock frequencies of the receiving device and the sending device be synchronized, and information transmission can be carried out at any time. However, since synchronous communication can transmit a large amount of information at one time, while asynchronous communication needs to be transmitted in the form of characters, and during the transmission process, it is usually necessary to input a start symbol in front of the transmitted characters and an end symbol behind the transmitted characters, the efficiency of synchronous communication is higher than that of asynchronous communication.

[0094] Step S140: When the initial communication form is synchronous communication, obtain the working information of the communication bus. The working information includes the working state of the communication bus and the bus transmission rate, and the working state includes idle and non-idle.

[0095] Specifically, the communication bus is a common communication trunk line for transmitting information between various functional devices of a computer. It is composed of wires and is used to realize information transmission between devices. The communication bus is an internal structure and is a common channel for the CPU, memory, input, and output devices to transmit information. Each functional device of the computer is connected through the communication bus, and external devices are connected to the communication bus through the corresponding interface circuits, thus forming the computer hardware system. The working information of the communication bus can be retrieved from the work log. The working information of the communication bus includes the working information corresponding to the transmission of information by the communication bus. Among them, the working information of the communication bus includes the working information of the communication bus corresponding to the transmission of the information being transmitted and the working information of the communication bus corresponding to the information transmission process that has been completed.

[0096] The bus transmission rate of a communication bus represents the quantity of information transmitted by the communication bus per unit time. Since, during synchronous communication, the control right of the communication bus needs to be acquired so that during the transmission of information to be transmitted, it is not allowed for the communication bus to transmit other information. When the working state of the communication bus is idle, it indicates that the communication bus is not being controlled. When the working state of the communication bus is non-idle, it indicates that the communication bus is being controlled, that is, information to be transmitted is being transmitted in the form of synchronous communication.

[0097] Step S150: If the working state is non-idle, then based on the working information of the communication bus, determine the waiting duration of the information to be transmitted and the sending duration of the information to be transmitted. The waiting duration and the sending duration of the information to be transmitted constitute the transmission duration of the information to be transmitted. The sending duration is the duration for the information to be transmitted to be transmitted on the communication bus.

[0098] Specifically, since the working state of the communication bus being non-idle indicates that the communication bus is in the process of information transmission, at this time, the waiting duration of the information to be transmitted represents the duration required for the communication bus to complete the transmission of the information being transmitted. For example, if the transmission rate of the communication bus is 100 megabit streams per second and there are 800 megabit streams remaining in the information being transmitted, then it takes 8 seconds to complete the transmission of the information being transmitted, that is, the waiting duration of the information to be transmitted is 8 seconds. The sending duration of the information to be transmitted is the duration required to upload the information to be transmitted to the communication bus and for it to be received by the receiving-end device. Among them, in the embodiments of the present application, it is defaulted that the rate of uploading the device to be transmitted to the communication bus is the same as the transmission rate of the communication bus. The sending duration of the information to be transmitted can be calculated based on the transmission rate of the communication bus and the quantity of the information to be transmitted, and can also be calculated through the sending moment of the device to be transmitted and the receiving moment returned by the receiving-end device. The transmission duration of the information to be transmitted consists of two parts. For example, if it is determined that the waiting duration of the information to be transmitted is 8 seconds and the sending duration of the information to be transmitted is 15 seconds, then the transmission duration of the information to be transmitted is 8 + 15 = 23 seconds.

[0099] Step S160: Determine whether the transmission duration is higher than the processing deadline duration. If not, then determine the initial communication form as the final communication form of the information to be transmitted.

[0100] Specifically, compare the processing duration with the transmission duration to determine whether the transmission duration is higher than the processing duration. If the transmission duration of the information to be transmitted is higher than the processing duration, it indicates that the information to be transmitted may time out during the transmission in the form of synchronous communication; if the transmission duration of the information to be transmitted is not higher than the processing duration, it indicates that the information to be transmitted can be transmitted within the processing duration, that is, no timeout will occur during the transmission in the form of synchronous communication. In the case of no timeout, determine the final communication form of the information to be transmitted.

[0101] For the embodiments of the present application, by identifying the information characteristics of the information to be transmitted, the processing levels of the information to be transmitted are classified, rather than uniformly processing all the information to be transmitted, which is convenient for timely processing of the information to be transmitted with a higher processing level. And determine the communication method corresponding to the information to be transmitted according to the processing level of the information to be transmitted, rather than only determining whether to use synchronous communication for the information to be transmitted by judging whether the communication bus is idle. Determine whether to occupy the communication bus according to the processing level, which is convenient for reducing the usage duration of the communication bus. When it is determined that synchronous communication is needed to transmit the information to be transmitted and the communication bus is busy, judge whether the information to be transmitted will time out according to the working information of the communication bus, and when it is determined that the information to be transmitted will not time out, determine the final communication form of the information to be transmitted. According to the processing level of the information to be transmitted and whether it will time out, determine whether to use synchronous communication for transmission. By increasing the conditions for occupying the communication bus, the occupation duration of the communication bus during the information transmission process is reduced, and the probability of timeout during the information transmission process due to the busy communication bus is reduced.

[0102] To reduce the impact on the communication between devices caused by the failure to transmit information in time, the embodiments of the present application provide a communication data transmission method, which further includes step Sa1 (not shown in the drawings), step Sa2 (not shown in the drawings), and step Sa3 (not shown in the drawings), where:

[0103] Step Sa1: When the transmission duration of the information to be transmitted is higher than the processing duration, determine the corresponding key information based on the information characteristics of the information to be transmitted.

[0104] Specifically, the transmission duration of the information to be transmitted is longer than the processing deadline duration, indicating that the information to be transmitted has not been completed within the corresponding processing deadline duration, that is, it indicates that the information to be transmitted may time out. By counting the number of occurrences of each information feature and recording the position where each information feature appears, the important information features in the information to be transmitted are determined. The number of occurrences of the important information features is higher than the preset threshold, and the positions of the important information features in the information to be transmitted are relatively uniform, that is, they appear at the beginning, end, and middle of the information to be transmitted. According to the preset weight, the number of occurrences of each information feature, and the position of each information feature in the transmitted information, the importance value of each information feature is determined. The information features with importance values higher than the preset importance value are determined as important information features. Specifically, the preset threshold, preset weight, and preset importance value can be input by the user and are not specifically limited in the embodiments of the present application. The key information is composed of important information features.

[0105] Step Sa2: Based on the key information and the working information of the communication bus, determine the waiting duration of the key information.

[0106] Specifically, the transmission duration of the key information includes the waiting duration and the sending duration of the key information. Since the key information is composed of important information features, the time required for the key information to be transmitted on the communication bus is shorter than the time required for all the information to be transmitted to be completed. The calculation method of the waiting duration of the key information can refer to the above calculation method of the waiting duration of the information to be transmitted and will not be elaborated here.

[0107] Step Sa3: Determine whether the transmission duration of the key information is longer than the processing deadline duration. If not, transmit the key information in the form of synchronous communication and determine the retransmission time of the information to be transmitted based on the working information of the communication bus.

[0108] Specifically, compare the transmission duration of key information with the processing deadline duration of the information to be transmitted corresponding to the key information to determine whether the transmission duration of the key information is higher than the processing deadline duration. When the transmission duration of the key information is not higher than the corresponding processing deadline duration, transmit the key information in the form of synchronous communication. For example, the sending duration of the information to be transmitted that needs to be transmitted by synchronous communication is 20s, and the corresponding processing deadline duration is 30s. However, based on the transmission rate of the communication bus, the waiting duration of the information to be transmitted is determined to be 15s. Then, the transmission duration of the information to be transmitted = sending duration + waiting duration = 20 + 15 = 35s. Since the transmission duration of the information to be transmitted is higher than the corresponding processing deadline duration, it indicates that the information to be transmitted may time out. At this time, the sending duration of the key information determined based on the important information feature of the information to be transmitted is 5s. Since the processing level of the information to be transmitted is the same as that of the key information, when transmitting the key information, the waiting duration of the information to be transmitted is the same as the waiting duration of the key information. At this time, the transmission duration of the key information = sending duration of the key information + waiting duration of the key information = 5 + 20 = 25s. At this time, the transmission duration of the key information is not higher than the processing deadline duration of the information to be transmitted. Therefore, transmit the key information in the form of synchronous communication. The retransmission time of the information to be transmitted needs to be determined according to the working information of the communication bus to transmit the complete information to be transmitted.

[0109] For the embodiments of the present application, when the waiting duration for the communication bus to be idle and the duration required to transfer the information to be transmitted to the receiving end device of the information to be transmitted with a higher processing level exceed the processing deadline of the information to be transmitted, it may cause the information to be transmitted to time out, which may affect the communication between the sending end device and the receiving end device. Determine the key information of the information to be transmitted through the information feature of the information to be transmitted, reduce the amount of information to be transmitted to shorten the duration of uploading the information to be transmitted to the communication bus, thereby reducing the probability of the information to be transmitted timing out. First, transmit the key information, and then transmit the complete information to be transmitted, which is convenient for reducing the impact on the communication between the sending end device and the receiving end device caused by the inability to transmit the information in time.

[0110] To reduce the probability of timeout during information transmission, the method further includes step Sb1 (not shown in the drawings) and step Sb2 (not shown in the drawings), where:

[0111] Step Sb1: When there are multiple pieces of information to be transmitted within a preset time period, determine the processing level of each piece of information to be transmitted and the sending duration of each piece of information to be transmitted.

[0112] Specifically, the preset time period can be 3 minutes or 5 minutes. The specific preset time period can be determined by the user's input and is not specifically limited in the embodiments of the present application. Unified planning of multiple pieces of information to be transmitted within the preset time period facilitates improving the information transmission rate and reducing the probability of timeout during the transmission process.

[0113] Step Sb2: Determine the optimal sending sequence for each piece of information to be transmitted according to the processing deadline duration and the transmission duration of each piece of information to be transmitted, so as to transmit the multiple pieces of information to be transmitted according to the optimal sending sequence.

[0114] Specifically, for example, there are three pieces of information to be transmitted within the preset time period, namely information to be transmitted 1, information to be transmitted 2, and information to be transmitted 3. Among them, the processing deadline duration corresponding to information to be transmitted 1 is 50s, and the transmission duration is 15s; the processing deadline duration corresponding to information to be transmitted 2 is 10s, and the transmission duration is 6s; the processing deadline duration corresponding to information to be transmitted 3 is 28s, and the transmission duration is 20s. If the information to be transmitted is transmitted in the order of information to be transmitted 1, information to be transmitted 2, and information to be transmitted 3, since the transmission duration of information to be transmitted 1 is longer than the processing deadline duration of information to be transmitted 2, and the sum of the transmission durations of information to be transmitted 1 and information to be transmitted 2 is longer than the processing deadline duration of information to be transmitted 3, when transmitting in the order of information to be transmitted 1, information to be transmitted 2, and information to be transmitted 3, timeouts will occur for information to be transmitted 2 and information to be transmitted 3. The optimal sending sequence for each piece of information to be transmitted is the sending sequence corresponding to transmitting multiple pieces of information to be transmitted within the preset time period without timeout.

[0115] For example, when the sending sequence is information to be transmitted 2, information to be transmitted 3, and information to be transmitted 1, after information to be transmitted 2 is transmitted, it does not exceed the processing deadline duration of information to be transmitted 3, and after information to be transmitted 2 and information to be transmitted 3 are transmitted, it does not exceed the processing deadline duration of information to be transmitted 1. Therefore, the sending sequence of information to be transmitted 2, information to be transmitted 3, and information to be transmitted 1 is determined as the optimal sending sequence.

[0116] When determining the optimal sending sequence, multiple pieces of information to be transmitted within the preset time period can be arranged first to obtain multiple sending sequences, and calculate whether the information to be transmitted within the preset time period will time out when transmitted according to the order of the multiple sending sequences. The first sending sequence without timeout is determined as the optimal sending sequence, and it is not necessary to determine whether each sending sequence has a timeout situation, which facilitates reducing the number of data comparisons and operations, and thus reduces the working pressure of the computer.

[0117] For the embodiments of the present application, by uniformly analyzing the transmission durations of multiple to-be-transmitted messages and the corresponding processing deadline durations within a preset time period, the optimal sending moments corresponding to the multiple to-be-transmitted messages are determined, rather than determining the sending moments of the to-be-transmitted messages individually, which facilitates ensuring that the multiple to-be-transmitted messages within the preset time period can all be transmitted within their respective corresponding processing deadlines, thereby facilitating reducing the probability of the situation of timeout during information transmission.

[0118] To improve the accuracy during information transmission according to the optimal sending sequence, the above method provided by the embodiments of the present application further includes step Sc1 (not shown in the drawings) and step Sc2 (not shown in the drawings), where:

[0119] Step Sc1: Identify the to-be-transmitted message and determine whether there is supplementary information in the to-be-transmitted message according to the identification result.

[0120] Specifically, the way to identify the to-be-transmitted message can be to perform semantic recognition on the to-be-transmitted message to determine whether there is a preset keyword vector in the to-be-transmitted message. Among them, word2vec can be used to convert the preset keyword into a keyword vector, that is, similar words to the preset keyword can be predicted through the preset keyword. By determining whether there is a preset keyword vector in the to-be-transmitted message, it is convenient to improve the accuracy of identifying the to-be-transmitted message. The preset keyword is a keyword that may have supplementary information in the to-be-transmitted message. When there is a preset keyword vector in the to-be-transmitted message, it is determined that there is supplementary information in the to-be-transmitted message. For example, the preset keyword with supplementary information is a. After word vector conversion, the words similar to the preset keyword a are determined to include a1, a2, and a3. Therefore, when it is detected that the to-be-transmitted message contains a1 or a2 or a3, it is determined that there is supplementary information in the to-be-transmitted message. When determining the preset keyword of the to-be-transmitted information, it can be determined according to the keyword corresponding to the historical supplementary information of the to-be-transmitted message during the historical transmission process, or the user can input the preset keyword, which is not specifically limited in the embodiments of the present application.

[0121] Step Sc2: When there is supplementary information in the to-be-transmitted message, predict the expected sending time period of the supplementary information according to the waiting duration and sending duration of the to-be-transmitted message, determine the expected sending time period as the idle reservation duration of the communication bus, and update the optimal sending sequence according to the idle reservation duration.

[0122] Among them, the idle reservation duration is used to transmit supplementary information.

[0123] Specifically, when determining the transmission duration corresponding to the supplementary information, the historical supplementary information corresponding to the historical transmission process of the information to be transmitted can be determined according to the historical transmission information, and the transmission duration corresponding to the historical supplementary information can be determined as the transmission duration of the supplementary information. For example, the current time is 10:02:30, the waiting duration of the information to be transmitted is 3 minutes, the sending duration of the information to be transmitted is 20 seconds, and the transmission duration of the supplementary information is 15 seconds. Then, the period from 10:05:30 to 10:05:45 is determined as the predicted sending period of the supplementary information. In the embodiments of the present application, it is default that there is no delay between the information to be transmitted and the supplementary information. Updating the optimal sending sequence is to add the supplementary information to the sending sequence and adjust the sending order of each piece of information to be transmitted in the optimal sending sequence according to the predicted sending period of the supplementary information.

[0124] For the embodiments of the present application, when it is detected that there is supplementary information for the information to be transmitted, the predicted sending period of the supplementary information is predicted according to the waiting duration and the sending duration of the information to be transmitted, and the idle duration of the communication bus is adjusted based on the predicted sending period of the supplementary information, so that the supplementary information can be transmitted in time. There is no need to perform information feature recognition and processing level determination on the supplementary information of the information to be transmitted, but directly process the supplementary information in the communication form of the information to be transmitted, reducing the operations of feature recognition and processing level determination, facilitating the reduction of the computing pressure of the computer, thereby facilitating the improvement of the processing rate, updating the optimal sending sequence in time according to the idle reservation duration, facilitating the timely adjustment of the sending order of the information to be transmitted, and avoiding transmission anomalies.

[0125] Further, updating the optimal sending sequence according to the idle reservation duration in step Sc2 includes step Sc21 (not shown in the figure), step Sc22 (not shown in the figure), and step Sc23 (not shown in the figure), where:

[0126] Step Sc21: Determine the sending period of each piece of information to be transmitted according to the optimal sending moment and the sending duration corresponding to each piece of information to be transmitted in the optimal sending sequence.

[0127] Step Sc22: Compare the optimal sending period of each piece of transmission information with the idle reservation duration to determine the affected information, and the affected information is the information to be transmitted whose optimal sending period intersects with the idle reservation duration.

[0128] Specifically, for example, the optimal transmission time of the information a to be transmitted is 10:05:30, and the transmission duration is 15 seconds. Then, the optimal transmission time period of the information a to be transmitted is from 10:05:30 to 10:05:45. If the idle reservation duration at this time is from 10:05:30 to 10:05:35, there is an intersection between the optimal transmission time period of the information a to be transmitted and the idle reservation duration. At this time, the information a to be transmitted is determined as the influencing information.

[0129] Step Sc23: Update the optimal transmission time of the influencing information according to the idle reservation duration, and determine whether the transmission duration corresponding to the updated optimal time is higher than the processing deadline duration corresponding to the influencing information. If not, the update of the optimal transmission sequence is completed.

[0130] Specifically, when updating the optimal transmission time of the influencing information according to the idle reservation duration, the transmission time of the influencing information can be shifted backward so that there is no intersection between the optimal transmission time period corresponding to the influencing information and the idle reservation duration. However, after shifting the optimal transmission time of the influencing information backward, it may cause the influencing information to time out. Therefore, it is necessary to determine whether the influencing information will time out after updating the optimal transmission time.

[0131] If the influencing information does not time out after updating the optimal transmission time, the update is completed; if the influencing information times out after updating the optimal transmission time, compare the processing levels of the influencing information and the supplementary information corresponding to the idle reservation duration, and preferentially update the optimal transmission sequence according to the transmission time period corresponding to the information with a higher processing level.

[0132] For the embodiments of the present application, by adjusting the optimal transmission time of the information to be transmitted in the transmission sequence that is affected by the idle reservation duration, that is, updating the transmission time period of the influencing information to update the optimal transmission sequence, rather than adjusting the transmission time of each information to be transmitted in the transmission sequence, the number of data comparison and processing times is reduced, thereby facilitating the reduction of the working pressure of the computer. And after updating the transmission time of the influencing information, it is determined again whether the influencing information will time out, and when it is determined that the influencing information will not time out, the update of the optimal transmission sequence is completed, which is convenient for reducing the probability of timeout and non - transmission during the information transmission process.

[0133] To improve the standardization during the transmission process, the method further includes step Sd1 (not shown in the drawings) and step Sd2 (not shown in the drawings), where:

[0134] Step Sd1: If a request control signal is detected within the idle reservation duration, determine the processing level of the waiting information, where the request control signal is used to indicate the existence of waiting information that needs to perform synchronous communication.

[0135] Step Sd2: Compare the processing level of the waiting information with that of the supplementary information, and determine the sending time of the waiting information according to the comparison result.

[0136] Specifically, the request control signal is sent by the sending-end device. If the communication bus is transmitting other information after the sending-end device sends the request control signal, it is determined that the communication bus is busy at this time, and the transmission information that needs to perform synchronous communication detected during the busy period of the communication bus is called waiting information. The determination method of the processing level of the waiting information can refer to the above-mentioned determination method of the processing level of the information to be transmitted, and the specific determination process will not be elaborated here.

[0137] Since the idle reservation duration of the communication bus is used to transmit the supplementary information, the supplementary information can be compared with the processing level of the waiting information to determine the transmission content of the communication bus during the idle reservation duration. If the processing level of the supplementary information is higher than that of the waiting information, the idle reservation duration of the communication bus is continued to be used to transmit the supplementary information, and the sending time of the waiting information needs to be determined after the supplementary information is transmitted; if the processing level of the supplementary information is not higher than that of the waiting information, the idle reservation duration of the communication bus is used to transmit the waiting information, and the sending time of the waiting information is determined according to the time corresponding to the idle reservation duration of the communication bus.

[0138] For the embodiments of the present application, by comparing the processing levels of the supplementary information and the waiting information, the processing priorities of the supplementary information and the waiting information within the idle reservation duration of the communication bus are determined, the information to be transmitted is transmitted according to the processing priorities, and the sending times of multiple pieces of information to be transmitted are re-determined through the processing levels, which is convenient for improving the standardization during the transmission process.

[0139] To improve the transmission rate, a communication data transmission method provided by the embodiments of the present application further includes Step Se1 (not shown in the drawings) and Step Se2 (not shown in the drawings), where:

[0140] Step Se1: According to each piece of information to be transmitted within a preset period and the request sending time of each piece of information to be transmitted, determine whether there is stable sending information, and the interval periods corresponding to the stable sending information are the same.

[0141] Specifically, the preset period can be 2 days, 3 days or 5 days, and there is no specific limitation in the embodiments of the present application, as long as the preset period is greater than 48 hours. The request sending time of the information to be transmitted is the time when the sending device corresponding to the information to be transmitted requests to access the communication bus, that is, the time when the sending device requests the control right of the communication bus. The request sending time of the information stably sent appears multiple times within the preset period, and the time of each appearance is the same. For example, when the preset period is 3 days, the request sending time of the information to be transmitted 1 within the preset period is 8:00 am on the first day, 8:00 am on the second day, and 8:00 am on the third day; the request sending time of the information to be transmitted 2 is 9:00 am on the second day and 18:00 pm on the third day; the request sending time of the information to be transmitted 3 is 15:00 pm and 19:00 pm on the third day. Since the time interval between two adjacent sending requests of the information to be transmitted 1 is the same, both being 24 hours, the information to be transmitted 1 is stable sending information.

[0142] Step Se2: If there is stable sending information, determine the reserved idle duration of the communication bus according to the sending time of the stable sending information, and the reserved idle duration is used to transmit the stable sending information.

[0143] Specifically, determine the request sending time of the stable sending information as the sending time of the stable sending information, and then determine the transmission time period of the stable sending information based on the transmission duration of the stable sending information, that is, determine the preset idle duration of the communication bus. For example, the sending time of the stable sending information is 15:02:03, and the transmission duration of the stable sending information is 20 seconds, then the time period from 15:02:03 to 15:02:33 is determined as the transmission time period of the stable sending information, that is, control the communication bus to remain idle within the time period from 15:02:03 to 15:02:33. The way for the communication bus to remain idle is not to send a response message to the sending device when receiving the access request of the sending device to the communication bus.

[0144] For the embodiments of the present application, determine whether the information to be transmitted is stable through the interval period of the sent information, and when there is stable sending information, reserve the idle duration of the communication bus for the stable sending information to ensure the normal transmission of the stable sending information, without the need to determine the processing level and sending time of the stable sending information each time, thereby facilitating the reduction of the working pressure of the computer and further facilitating the improvement of the transmission rate.

[0145] The above embodiments introduce a communication data transmission method from the perspective of the method flow. The following embodiments introduce a communication data transmission device from the perspective of virtual modules or virtual units. For details, see the following embodiments.

[0146] The embodiments of the present application provide a communication data transmission device, such as Figure 2As shown in the figure, the device may specifically include an information acquisition module 210, a processing level determination module 220, an initial communication form determination module 230, a bus information acquisition module 240, a waiting duration determination module 250, and a final communication form determination module 260, where:

[0147] The information acquisition module 210 is used to acquire the information to be transmitted and identify the information characteristics in the information to be transmitted. The information to be transmitted is sent by the sending device.

[0148] The processing level determination module 220 is used to determine the processing level of the information to be transmitted according to the information characteristics, and determine the corresponding processing deadline duration according to the processing level. The processing level is in a direct proportional relationship with the urgency level, and the processing level corresponds one-to-one with the processing deadline duration.

[0149] The initial communication form determination module 230 is used to determine the initial communication form corresponding to the processing level of the information to be transmitted according to the preset correspondence between the processing level and the communication form. The initial communication form includes synchronous communication and asynchronous communication.

[0150] The bus information acquisition module 240 is used to acquire the working information of the communication bus when the initial communication form is synchronous communication. The working information includes the working state of the communication bus and the bus transmission rate. The working state includes idle and non-idle.

[0151] The waiting duration determination module 250 is used to determine the waiting duration of the information to be transmitted and the sending duration of the information to be transmitted based on the working information of the communication bus when the working state is non-idle. The waiting duration and the sending duration of the transmitted information constitute the transmission duration of the transmitted information. The sending duration is the duration for the information to be transmitted to be transmitted on the communication bus.

[0152] The final communication form determination module 260 is used to determine whether the transmission duration is higher than the processing deadline duration. If not, the initial communication form is determined as the final communication form of the information to be transmitted.

[0153] In a possible implementation manner, the device further includes:

[0154] The key information determination module is used to determine the corresponding key information based on the information characteristics of the information to be transmitted when the transmission duration of the information to be transmitted is higher than the processing deadline duration.

[0155] The transmission duration determination module is used to determine the transmission duration of the key information based on the key information and the working information of the communication bus.

[0156] A retransmission time determination module, configured to determine whether the transmission duration of key information is longer than the processing deadline duration. If not, the key information is transmitted in the form of synchronous communication, and based on the working information of the communication bus, the retransmission time of the information to be transmitted is determined.

[0157] In a possible implementation manner, the apparatus further includes:

[0158] A processing level determination module, configured to determine the processing level of each piece of information to be transmitted and the sending duration of each piece of information to be transmitted when there are multiple pieces of information to be transmitted within a preset time period;

[0159] An optimal sending sequence determination module, configured to determine the optimal sending sequence of each piece of information to be transmitted according to the processing deadline duration and the transmission duration of each piece of information to be transmitted, so as to transmit multiple pieces of information to be transmitted according to the optimal sending sequence.

[0160] In a possible implementation manner, the apparatus further includes:

[0161] An information recognition module, configured to recognize the information to be transmitted and determine whether there is supplementary information in the information to be transmitted according to the recognition result;

[0162] An update sequence module, configured to, when there is supplementary information in the information to be transmitted, predict the expected transmission time period of the supplementary information according to the waiting duration and the sending duration of the information to be transmitted, determine the expected transmission time period as the idle reservation duration of the communication bus, and update the optimal sending sequence according to the idle reservation duration, where the idle reservation duration is used to transmit the supplementary information.

[0163] In a possible implementation manner, when updating the optimal sending sequence according to the idle reservation duration, the update sequence module is specifically configured to:

[0164] Determine the optimal sending time period of each piece of information to be transmitted according to the optimal sending time and the sending duration corresponding to each piece of information to be transmitted in the optimal sending sequence;

[0165] Compare the optimal sending time period of each piece of transmitted information with the idle reservation duration to determine the affected information, where the affected information is the information to be transmitted whose optimal sending time period and idle reservation duration have an intersection;

[0166] Update the optimal sending time of the affected information according to the idle reservation duration, and determine whether the transmission duration corresponding to the updated optimal time is longer than the processing deadline duration corresponding to the affected information. If not, the update of the optimal sending sequence is completed.

[0167] In a possible implementation manner, the apparatus further includes:

[0168] If a request control signal is detected within the idle reservation duration, determine the processing level of the waiting information, where the request control signal is used to indicate the existence of waiting information that requires synchronous communication;

[0169] Compare the processing level of the waiting information with the processing level of the supplementary information, and determine the sending moment of the waiting information according to the comparison result.

[0170] In a possible implementation manner, the apparatus further includes:

[0171] A judgment module, configured to judge whether there is stable transmission information according to each piece of information to be transmitted within a preset period and the requested transmission moment of each piece of information to be transmitted, where the interval periods corresponding to the stable transmission information are the same;

[0172] A module for determining the reserved idle duration, configured to determine the reserved idle duration of the communication bus according to the transmission moment of the stable transmission information if there is stable transmission information, where the reserved idle duration is used to transmit the stable transmission information.

[0173] In an embodiment of the present application, an electronic device is provided, as Figure 3 shown, Figure 3 The electronic device 300 shown includes: a processor 301 and a memory 303. Among them, the processor 301 and the memory 303 are connected, such as connected through a bus 302. Optionally, the electronic device 300 may further include a transceiver 304. It should be noted that in practical applications, the transceiver 304 is not limited to one, and the structure of the electronic device 300 does not constitute a limitation to the embodiments of the present application.

[0174] The processor 301 may be a CPU (Central Processing Unit, central processor), a general-purpose processor, a DSP (Digital Signal Processor, data signal processor), an ASIC (Application Specific Integrated Circuit, application-specific integrated circuit), an FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logical blocks, modules and circuits described in combination with the disclosure of the present application. The processor 301 may also be a combination that realizes a computing function, such as a combination including one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0175] The bus 302 may include a path for transmitting information among the above components. The bus 302 can be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 302 can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 3 it is only represented by a thick line in Figure 3 , but it does not mean that there is only one bus or one type of bus.

[0176] The memory 303 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or it can also be an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory), or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0177] The memory 303 is used to store the application program code for executing the solution of this application, and is controlled by the processor 301 to execute. The processor 301 is used to execute the application program code stored in the memory 303 to implement the content shown in the foregoing method embodiments.

[0178] Among them, the electronic device includes but is not limited to: mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. It can also be a server, etc. Figure 3 The electronic device shown is only an example and should not impose any limitations on the functions and usage scope of the embodiments of this application.

[0179] The embodiments of this application provide a computer-readable storage medium on which a computer program is stored. When it runs on a computer, it enables the computer to execute the corresponding content in the foregoing method embodiments.

[0180] It should be understood that although the steps in the flowchart of the accompanying drawings are shown sequentially according to the indication of the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear indication in this document, there is no strict order restriction for the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same moment, but can be executed at different moments, and their execution order is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.

[0181] The above are only some embodiments of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.

Claims

1. A communication data transmission method, characterized in that, Including: Obtain the information to be transmitted, and identify the information characteristics in the information to be transmitted, where the information to be transmitted is sent by a sending-end device; Determine the processing level of the information to be transmitted according to the information characteristics, and determine the corresponding processing deadline duration according to the processing level. The processing level is in a proportional relationship with the urgency level, and the processing level corresponds one-to-one with the processing deadline duration; Determine the initial communication form corresponding to the processing level of the information to be transmitted according to the preset corresponding relationship between the processing level and the communication form. The initial communication form includes synchronous communication and asynchronous communication; When the initial communication form is synchronous communication, obtain the working information of the communication bus. The working information includes the working state and the bus transmission rate of the communication bus. The working state includes idle and non-idle; If the working state is non-idle, then based on the working information of the communication bus, determine the waiting duration of the information to be transmitted and the sending duration of the information to be transmitted. The waiting duration and the sending duration of the transmitted information constitute the transmission duration of the transmitted information. The sending duration is the duration for the information to be transmitted to be transmitted on the communication bus; Judge whether the transmission duration is higher than the processing deadline duration. If not, then determine the initial communication form as the final communication form of the information to be transmitted.

2. The communication data transmission method according to claim 1, characterized in that, Also including: When the transmission duration of the information to be transmitted is higher than the processing deadline duration, determine the corresponding key information based on the information characteristics of the information to be transmitted; Based on the key information and the working information of the communication bus, determine the transmission duration of the key information; Judge whether the transmission duration of the key information is higher than the processing deadline duration. If not, then transmit the key information in the form of synchronous communication, and based on the working information of the communication bus, determine the retransmission time of the information to be transmitted.

3. The communication data transmission method according to claim 1, characterized in that, Also including: When there are multiple pieces of information to be transmitted within a preset time period, determine the processing level of each piece of information to be transmitted and the sending duration of each piece of information to be transmitted; According to the processing deadline duration and the transmission duration of each piece of information to be transmitted, determine the optimal sending sequence of each piece of information to be transmitted, so as to transmit multiple pieces of information to be transmitted according to the optimal sending sequence.

4. The communication data transmission method according to claim 3, characterized in that, After determining the optimal sending sequence of each piece of information to be transmitted, it further includes: Identify the information to be transmitted, and judge whether there is supplementary information in the information to be transmitted according to the identification result; When the information to be transmitted has supplementary information, predict the expected sending time period of the supplementary information according to the waiting duration and the sending duration of the information to be transmitted, determine the expected sending time period as the idle reservation duration of the communication bus, and update the optimal sending sequence according to the idle reservation duration. The idle reservation duration is used to transmit the supplementary information.

5. The communication data transmission method according to claim 4, characterized in that, The updating the optimal sending sequence according to the idle reservation duration includes: According to the optimal sending time and the sending duration corresponding to each piece of information to be transmitted in the optimal sending sequence, determine the optimal sending time period of each piece of information to be transmitted; Compare the optimal transmission time period of each piece of transmission information with the idle reservation duration to determine the affected information, where the affected information is the information to be transmitted for which there is an intersection between the optimal transmission time period and the idle reservation duration; Update the optimal transmission time of the affected information according to the idle reservation duration, and determine whether the transmission duration corresponding to the updated optimal time is higher than the processing deadline duration corresponding to the affected information. If not, complete the update of the optimal transmission sequence.

6. The communication data transmission method according to claim 4, characterized in that, It further includes: If a request control signal is detected within the idle reservation duration, determine the processing level of the waiting information, where the request control signal is used to indicate that there is waiting information that needs to perform synchronous communication; Compare the processing level of the waiting information with the processing level of the supplementary information, and determine the transmission time of the waiting information according to the comparison result.

7. The communication data transmission method according to claim 1, characterized in that, It further includes: Based on each piece of information to be transmitted within a preset period and the requested transmission time of each piece of information to be transmitted, determine whether there is stable transmission information, where the interval periods corresponding to the stable transmission information are the same; If there is stable transmission information, determine the reserved idle duration of the communication bus according to the transmission time of the stable transmission information, where the reserved idle duration is used to transmit the stable transmission information.

8. A communication data transmission device, characterized in that, It includes: An information acquisition module, configured to acquire information to be transmitted and identify the information characteristics in the information to be transmitted, where the information to be transmitted is sent by a sending-end device; A processing level determination module, configured to determine the processing level of the information to be transmitted according to the information characteristics, and determine the corresponding processing deadline duration according to the processing level, where the processing level is in a direct proportional relationship with the urgency level, and the processing level corresponds to the processing deadline duration one by one; An initial communication form determination module, configured to determine the initial communication form corresponding to the processing level of the information to be transmitted according to the preset correspondence between the processing level and the communication form, where the initial communication form includes synchronous communication and asynchronous communication; A bus information acquisition module, configured to acquire the working information of the communication bus when the initial communication form is synchronous communication, where the working information includes the working state and the bus transmission rate of the communication bus, and the working state includes idle and non-idle; A waiting duration determination module, configured to, if the working state is non-idle, determine the waiting duration of the information to be transmitted and the transmission duration of the information to be transmitted based on the working information of the communication bus, where the waiting duration and the transmission duration of the transmission information constitute the transmission duration of the transmission information, and the transmission duration is the duration for the information to be transmitted to be transmitted on the communication bus; A final communication form determination module, configured to determine whether the transmission duration is higher than the processing deadline duration. If not, determine the initial communication form as the final communication form of the information to be transmitted.

9. An electronic device, characterized in that, This electronic device includes: At least one processor; A memory; At least one application program, wherein the at least one application program is stored in a memory and configured to be executed by at least one processor, and the at least one application program is configured to: execute the method for communicating data transmission according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, Including: A computer program stored that can be loaded and executed by a processor to perform the method for communicating data transmission according to any one of claims 1-7.

Citation Information

Patent Citations

  • Cross-floor object transmission method and device, electronic equipment and readable medium

    CN112897258A

  • Traffic transmission method and device, computer equipment and storage medium

    CN116744363A