Data transmission method and apparatus, device, and storage medium
Patent Information
- Application Number
- CN202510550599.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-28
- Publication Date
- 2026-10-30
AI Technical Summary
[0006]本申请的主要目的在于提供一种数据传输方法、装置、设备及存储介质,旨在解决现有分体式AR眼镜的无线传输方式会产生功耗浪费,影响AR眼镜的续航时间的技术问题
[0035]本申请提出的一个或多个技术方案,至少具有以下技术效果:通过在进行数据传输时,确定待传输数据所属的业务内容;根据所述业务内容对所述待传输数据进行分类,分类结果用于指示所述待传输数据的优先级;根据所述分类结果,将所述待传输数据直接传输至目标设备,或根据预设传输策略将所述待传输数据传输至目标设备。通过上述方式,在设备传输数据时,确定待传输数据的优先级,根据确定结果将待传输数据直接传输至目标设备或根据预设传输策略传输数据,从而实现在数据传输过程中降低传输频率,减少协议自带的额外数据传输,有效减少功耗浪费从而提升设备续航时间。
Smart Images

Figure CN123020537A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data transmission, and in particular to data transmission methods, apparatus, devices and storage media. Background Technology
[0002] In recent years, with the development of Augmented Reality (AR) technology, people are increasingly using AR glasses in their daily lives.
[0003] Currently, most mainstream split-type AR glasses require data to be transmitted to other devices such as mobile phones during use, and most of them do not support data transmission via Universal Serial Bus (USB) and can only transmit data wirelessly.
[0004] However, due to the size of the battery, the wireless transmission method of split AR glasses needs to be optimized as much as possible; otherwise, power consumption will be wasted, affecting the battery life of the AR glasses.
[0005] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention
[0006] The main objective of this application is to provide a data transmission method, apparatus, device, and storage medium, which aims to solve the technical problem that the existing wireless transmission method of split AR glasses will result in power consumption waste and affect the battery life of AR glasses.
[0007] To achieve the above objectives, this application proposes a data transmission method applied to a split-type head-mounted device, the method comprising:
[0008] When transmitting data, determine the service content to which the data to be transmitted belongs;
[0009] The data to be transmitted is classified according to the business content, and the classification result is used to indicate the priority of the data to be transmitted.
[0010] Based on the classification results, the data to be transmitted is directly transmitted to the target device, or the data to be transmitted is transmitted to the target device according to a preset transmission strategy.
[0011] In one embodiment, the step of classifying the data to be transmitted according to the service content includes:
[0012] The importance of the business content is determined based on the business scenario corresponding to the business content.
[0013] Based on the importance of the business content and / or the data type of the data to be transmitted, the data to be transmitted is divided into high-priority data and low-priority data.
[0014] In one embodiment, the step of directly transmitting the data to be transmitted to the target device according to the classification result, or transmitting the data to be transmitted to the target device according to a preset data transmission strategy, includes:
[0015] The high-priority data is directly transmitted to the target device;
[0016] The low-priority data is transmitted to the target device according to the preset transmission strategy.
[0017] In one embodiment, before the step of transmitting the data to be transmitted to the target device according to a preset transmission strategy, the method further includes:
[0018] Determine the current load of the system and confirm that the current load is greater than a preset value;
[0019] Otherwise, the data to be transmitted will be directly transmitted to the target device.
[0020] In one embodiment, the step of transmitting the data to be transmitted to the target device according to a preset transmission strategy includes:
[0021] Set the length of the data buffer;
[0022] The data to be transmitted is arranged sequentially in the data buffer, concatenated, and then awaits transmission.
[0023] When the waiting time reaches the preset timeout period, the data to be transmitted in the data buffer is transmitted to the target device.
[0024] In one embodiment, the step of transmitting the data to be transmitted to the target device according to a preset transmission strategy includes:
[0025] If the preset timeout period has not been reached, and the data buffer has been completely occupied by the data to be transmitted, the data to be transmitted in the data buffer will be transmitted to the target device.
[0026] In one embodiment, the step of transmitting the data to be transmitted to the target device according to a preset transmission strategy includes:
[0027] Monitor the amount of data to be transmitted that enters the data buffer within a preset time period;
[0028] The length of the data buffer and the timeout period are dynamically adjusted based on the amount of data.
[0029] Furthermore, to achieve the above objectives, this application also proposes a data transmission device, which includes:
[0030] The determination module is used to determine the business content to which the data to be transmitted belongs during data transmission.
[0031] The classification module is used to classify the data to be transmitted according to the business content, and the classification result is used to indicate the priority of the data to be transmitted.
[0032] The transmission module is used to directly transmit the data to be transmitted to the target device according to the classification result, or to transmit the data to be transmitted to the target device according to a preset transmission strategy.
[0033] In addition, to achieve the above objectives, this application also proposes a data transmission device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the data transmission method as described above.
[0034] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and which, when executed by a processor, implements the steps of the data transmission method described above.
[0035] One or more technical solutions proposed in this application have at least the following technical effects: During data transmission, the service content to which the data to be transmitted belongs is determined; the data to be transmitted is classified according to the service content, and the classification result is used to indicate the priority of the data to be transmitted; based on the classification result, the data to be transmitted is directly transmitted to the target device, or the data to be transmitted is transmitted to the target device according to a preset transmission strategy. Through the above method, when the device transmits data, the priority of the data to be transmitted is determined, and the data to be transmitted is directly transmitted to the target device or transmitted according to a preset transmission strategy based on the determination result. This reduces the transmission frequency during data transmission, reduces the additional data transmission inherent in the protocol, effectively reduces power consumption waste, and thus improves the device's battery life. Attached Figure Description
[0036] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0037] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 A flowchart illustrating an embodiment of the data transmission method of this application;
[0039] Figure 2 This is a schematic diagram of the module structure of the data transmission device according to an embodiment of this application;
[0040] Figure 3 This is a schematic diagram of the device structure of the hardware operating environment involved in the data transmission method in the embodiments of this application.
[0041] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0042] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or data transmission device capable of performing the above functions. The following description uses a data transmission device as an example to illustrate this embodiment and the subsequent embodiments.
[0043] Based on this, embodiments of this application provide a data transmission method applied to split-type head-mounted devices (such as split-type AR glasses), referring to... Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the data transmission method of this application.
[0044] In this embodiment, the data transmission method includes steps S10 to S30:
[0045] Step S10: When transmitting data, determine the service content to which the data to be transmitted belongs.
[0046] It is understandable that the data to be transmitted is extensive and diverse, including but not limited to audio data, video data, gesture and motion data, control commands, etc., and this data may be transmitted concurrently.
[0047] It should be understood that the business content may involve multiple fields such as real-time communication, multimedia transmission, human-computer interaction, and remote control, depending on the application scenario.
[0048] It should be noted that the relationship between the data to be transmitted and the service content can be determined based on the data source or data type. For example, data originating from voice input can be identified as belonging to voice control or real-time communication service content; application update data originating from a server can be identified as belonging to version upgrade service content; data of video format can be identified as belonging to multimedia transmission service content, and so on.
[0049] Step S20: Classify the data to be transmitted according to the service content, and use the classification result to indicate the priority of the data to be transmitted.
[0050] Understandably, when classifying data to be transmitted according to business content, it is necessary to comprehensively consider multiple factors such as the importance of the business content, the data type of the data to be transmitted, real-time requirements, and system resource allocation to determine whether the data to be transmitted needs to be transmitted in real time, so as to prioritize the data to be transmitted and achieve intelligent and efficient management of data transmission. This can optimize transmission strategies and ensure efficient use of resources.
[0051] For example, gesture and motion data in human-computer interaction, because it directly relates to the smoothness of the user experience and the real-time nature of the interaction, requires low transmission latency. Therefore, this type of data should be clearly categorized and marked as high-priority data to ensure its priority transmission and processing. Conversely, background commands or version upgrade data, because they typically have lower real-time requirements and allow for some latency, should be categorized and marked as low-priority data.
[0052] Further, step S20 includes: determining the importance of the business content based on the business scenario corresponding to the business content; and classifying the data to be transmitted into high-priority data and low-priority data based on the importance of the business content and / or the data type of the data to be transmitted.
[0053] It should be understood that the importance assessment of business content covers multiple key dimensions, including but not limited to the real-time requirements of data, data sources, the complexity of data processing, and the degree of impact on business decisions.
[0054] Understandably, data to be transmitted can be categorized based on its data type. For example, audio data, due to its high real-time transmission requirements, can be classified as high-priority data.
[0055] It should be noted that high-priority data refers to data that is determined to need to be transmitted directly based on the importance of the business content and / or the data type, while low-priority data refers to data that is determined not to need to be transmitted directly based on the importance of the business content and / or the data type.
[0056] In one possible implementation, the classification result of the data to be transmitted is not static, but may change according to the real-time load of the system, the availability of network bandwidth, and dynamic changes in business needs. For example, when the real-time load of the system is high and the system is busy, the data to be transmitted in the form of background instructions can be classified as low-priority data. When the real-time load of the system is low and system resources are sufficient, the data to be transmitted in the form of background instructions can be classified as high-priority data.
[0057] Step S30: Based on the classification result, the data to be transmitted is directly transmitted to the target device, or the data to be transmitted is transmitted to the target device according to a preset transmission strategy.
[0058] It should be understood that the target device to which the data to be transmitted is sent includes, but is not limited to, smartphones, tablets, personal computers, cloud computing servers, smartwatches or other wearable devices, IoT devices, dedicated controllers or terminal devices, etc.
[0059] It should be noted that data to be transmitted directly to the target device has high real-time requirements, and data transmission latency has a significant impact on the user experience. Other data may not be transmitted directly, but rather according to a preset transmission strategy to reduce the transmission frequency. The preset transmission strategy refers to the rules for transmitting data, which can stipulate that data will only be transmitted after meeting certain time and storage requirements.
[0060] Further, step S30 includes: directly transmitting the high-priority data to the target device; and transmitting the low-priority data to the target device according to a preset transmission strategy.
[0061] It should be understood that the transmission strategy design based on data priority differentiation can not only effectively optimize resource allocation, but also achieve a balance between user experience and power consumption control during transmission.
[0062] Before step S30, the method further includes: determining the current load of the system and confirming that the current load is greater than a preset value; otherwise, directly transmitting the data to be transmitted to the target device.
[0063] It should be noted that the current system load is a comprehensive indicator with multiple dimensions, including but not limited to the utilization of key resources such as CPU utilization, memory utilization, network bandwidth utilization, and disk I / O performance. These indicators collectively reflect the current operating status and workload of the system, providing an important basis for judging whether system resources are sufficient.
[0064] When the load exceeds the preset value, it indicates that the system is currently busy and resource utilization is high. In this case, the data to be transmitted can be transmitted according to the preset transmission strategy, reducing the transmission frequency and thus reducing power consumption. Conversely, when the load is less than the preset value, it indicates that the system is currently idle and resource utilization is low. In this case, if system resources are sufficient, the preset transmission strategy can be disregarded, and the data to be transmitted can be directly transmitted to the target device to reduce latency.
[0065] In addition, the preset load values are empirical values derived from long-term operation and maintenance experience and historical data analysis and optimization. They can be set according to needs, and this application does not impose any restrictions on them.
[0066] Further, step S30 includes: setting the length of the data buffer; arranging the data to be transmitted sequentially in the data buffer, splicing them together and waiting for transmission; when the waiting time reaches a preset timeout, transmitting the data to be transmitted in the data buffer to the target device.
[0067] It should be noted that a data buffer is a memory area used to temporarily store data to be transmitted. It is used to store data that does not need to be transmitted directly. The length of the data buffer is optimized and is usually larger than the length of a single packet of data to be transmitted. This design can effectively reduce the frequency of data transmission within the data buffer, thereby reducing the system's transmission power consumption.
[0068] In addition, the capacity and timeout settings of the data buffer are not fixed, but are dynamically adjusted based on long-term operation and maintenance experience, historical data analysis and actual business needs.
[0069] Understandably, the timeout period refers to the set time interval for transmitting data. When this time interval is reached, the data to be transmitted in the current data buffer will be transmitted regardless of whether there is still space remaining in the data buffer.
[0070] Further, step S30 includes: when the preset timeout period has not been reached, and the data buffer has been completely occupied by the data to be transmitted, transmitting the data to be transmitted in the data buffer to the target device.
[0071] Understandably, when the data buffer is completely occupied by the data to be transmitted but the preset timeout period has not yet been reached, in order to ensure that the subsequent data to be transmitted can enter the buffer smoothly and avoid transmission delays caused by data backlog, the data in the current data buffer needs to be transmitted to the target device in a timely manner.
[0072] It should be noted that when the remaining length of the data buffer is insufficient to store the next packet of data to be transmitted, even if the current data buffer is not fully occupied, the data to be transmitted in the current data buffer must be transmitted to the target device before the next packet of data to be transmitted is stored in the data buffer.
[0073] Further, step S30 includes: monitoring the amount of data to be transmitted entering the data buffer within a preset time period; and dynamically adjusting the length of the data buffer and the timeout period according to the amount of data.
[0074] It should be noted that when the amount of data entering the data buffer to be transmitted within a preset time period exceeds a preset value, it indicates that the system is currently busy, requiring an increase in the length of the data buffer and the timeout period to reduce data transmission frequency and power consumption. Conversely, when the amount of data entering the data buffer to be transmitted within a preset time period is less than a preset value, it indicates that the system is currently idle, requiring a decrease in the length of the data buffer and the timeout period to reduce data transmission latency and ensure business continuity. By dynamically adjusting the length of the data buffer and the timeout period, the frequency of data transmission can be effectively reduced while ensuring business continuity, thereby lowering overall power consumption.
[0075] Understandably, the length of the preset monitoring period is derived from long-term operation and maintenance experience and historical data analysis and optimization.
[0076] This embodiment determines the service content to which the data to be transmitted belongs during data transmission; classifies the data to be transmitted according to the service content, and the classification result indicates the priority of the data to be transmitted; based on the classification result, the data to be transmitted is directly transmitted to the target device, or transmitted to the target device according to a preset transmission strategy. Through this method, the priority of the data to be transmitted is determined during data transmission, and the data is directly transmitted to the target device or transmitted according to a preset transmission strategy based on the determination result. This reduces the transmission frequency during data transmission, reduces the extra data transmission inherent in the protocol, effectively reduces power consumption waste, and thus improves device battery life.
[0077] This application also provides a data transmission device; please refer to... Figure 2 The data transmission device includes:
[0078] The determination module 10 is used to determine the service content to which the data to be transmitted belongs.
[0079] The classification module 20 is used to classify the data to be transmitted according to the business content, and the classification result is used to indicate the priority of the data to be transmitted.
[0080] The transmission module 30 is used to directly transmit the data to be transmitted to the target device according to the classification result, or to transmit the data to be transmitted to the target device according to a preset transmission strategy.
[0081] This embodiment determines the service content to which the data to be transmitted belongs during data transmission; classifies the data to be transmitted according to the service content, and the classification result indicates the priority of the data to be transmitted; based on the classification result, the data to be transmitted is directly transmitted to the target device, or transmitted to the target device according to a preset transmission strategy. Through this method, the priority of the data to be transmitted is determined during data transmission, and the data is directly transmitted to the target device or transmitted according to a preset transmission strategy based on the determination result. This reduces the transmission frequency during data transmission, reduces the extra data transmission inherent in the protocol, effectively reduces power consumption waste, and thus improves device battery life.
[0082] The data transmission device provided in this application, employing the data transmission method described in the above embodiments, can solve the technical problem that existing wireless transmission methods for split-type AR glasses result in wasted power consumption, affecting the battery life of AR glasses. Compared with the prior art, the beneficial effects of the data transmission device provided in this application are the same as those of the data transmission method provided in the above embodiments, and other technical features in the data transmission device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0083] This application provides a data transmission device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the data transmission method in the above embodiments.
[0084] The following is for reference. Figure 3 The diagram illustrates a structural schematic of a data transmission device suitable for implementing embodiments of this application. The data transmission device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 3 The data transmission device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0085] like Figure 3 As shown, the data transmission device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in ROM (Read Only Memory) 1002 or a program loaded from storage device 1003 into RAM (Random Access Memory) 1004. RAM 1004 also stores various programs and data required for the operation of the data transmission device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via bus 1005. Input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touch screens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the data transmission device to communicate wirelessly or wiredly with other devices to exchange data. Although data transmission devices with various systems are shown in the figures, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.
[0086] Specifically, according to the embodiments disclosed in this application, the process described above with reference to the flowcharts can be implemented as a computer software program. This computer program includes program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0087] The data transmission device provided in this application, employing the data transmission method described in the above embodiments, can solve the technical problem that the wireless transmission method of existing split-type AR glasses results in wasted power consumption, affecting the battery life of AR glasses. Compared with the prior art, the beneficial effects of the data transmission device provided in this application are the same as those of the data transmission method provided in the above embodiments, and other technical features of this data transmission device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0088] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0089] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0090] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the data transmission method in the above embodiments.
[0091] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0092] The aforementioned computer-readable storage medium may be included in a data transmission device or may exist independently without being assembled into a data transmission device.
[0093] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0094] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems and methods according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0095] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0096] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described data transmission method. This solves the technical problem that existing wireless transmission methods for split-type AR glasses result in wasted power consumption, affecting the battery life of the AR glasses. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the data transmission method provided in the above embodiments, and will not be repeated here.
[0097] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A data transmission method, characterized in that, Applied to a split-type head-mounted device, the method includes: When transmitting data, determine the service content to which the data to be transmitted belongs; The data to be transmitted is classified according to the business content, and the classification result is used to indicate the priority of the data to be transmitted. Based on the classification results, the data to be transmitted is directly transmitted to the target device, or the data to be transmitted is transmitted to the target device according to a preset transmission strategy.
2. The method as described in claim 1, characterized in that, The step of classifying the data to be transmitted according to the service content includes: The importance of the business content is determined based on the business scenario corresponding to the business content. Based on the importance of the business content and / or the data type of the data to be transmitted, the data to be transmitted is divided into high-priority data and low-priority data.
3. The method as described in claim 2, characterized in that, The step of directly transmitting the data to be transmitted to the target device according to the classification result, or transmitting the data to be transmitted to the target device according to a preset transmission strategy, includes: The high-priority data is directly transmitted to the target device; The low-priority data is transmitted to the target device according to the preset transmission strategy.
4. The method as described in claim 1, characterized in that, Before the step of transmitting the data to be transmitted to the target device according to the preset transmission strategy, the method further includes: Determine the current load of the system and confirm that the current load is greater than a preset value; Otherwise, the data to be transmitted will be directly transmitted to the target device.
5. The method as described in claim 4, characterized in that, The step of transmitting the data to be transmitted to the target device according to a preset transmission strategy includes: Set the length of the data buffer; The data to be transmitted is arranged sequentially in the data buffer, concatenated, and then awaits transmission. When the waiting time reaches the preset timeout period, the data to be transmitted in the data buffer is transmitted to the target device.
6. The method as described in claim 5, characterized in that, The step of transmitting the data to be transmitted to the target device according to a preset transmission strategy includes: If the preset timeout period has not been reached, and the data buffer has been completely occupied by the data to be transmitted, the data to be transmitted in the data buffer will be transmitted to the target device.
7. The method as described in claim 5, characterized in that, The step of transmitting the data to be transmitted to the target device according to a preset transmission strategy includes: Monitor the amount of data to be transmitted that enters the data buffer within a preset time period; The length of the data buffer and the timeout period are dynamically adjusted based on the amount of data.
8. A data transmission device, characterized in that, The device includes: The determination module is used to determine the business content to which the data to be transmitted belongs during data transmission. The classification module is used to classify the data to be transmitted according to the business content, and the classification result is used to indicate the priority of the data to be transmitted. The transmission module is used to directly transmit the data to be transmitted to the target device according to the classification result, or to transmit the data to be transmitted to the target device according to a preset transmission strategy.
9. A data transmission device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the data transmission method as described in any one of claims 1 to 7.
10. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the data transmission method as described in any one of claims 1 to 7.
