Method and device for adjusting data transmission parameters, equipment and computer program product

By obtaining the transmission quality information and transmission environment information of Bluetooth connections and adjusting data transmission parameters, the problem of inflexible adjustment in the prior art is solved and a better user experience is achieved.

CN120050635APending Publication Date: 2025-05-27GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510134953.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-06
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

The adjustment method of data transmission parameters in existing Bluetooth technology is inflexible and cannot achieve appropriate adjustments under different transmission quality information and/or transmission environment information, resulting in poor user experience.

Method used

By obtaining the transmission quality information connected to Bluetooth and the transmission environment information of electronic devices, adjusting the current data transmission parameters to match them with the transmission quality information and/or transmission environment information, flexible data transmission parameter adjustment is achieved.

Benefits of technology

It improves the flexibility of adjusting data transmission parameters, can achieve appropriate adjustments under different transmission quality information and/or transmission environment information, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120050635A_ABST
    Figure CN120050635A_ABST
Patent Text Reader

Abstract

The invention provides a data transmission parameter adjustment method and device, equipment and a computer program product, which are applied to electronic equipment, realize different adjustment effects on data transmission parameters under different transmission quality information and / or transmission environment information, improve the adjustment flexibility of the data transmission parameters, and have good user experience. The method comprises the steps that under the condition that data are transmitted through Bluetooth connection, transmission quality information of the Bluetooth connection and transmission environment information of the electronic equipment are acquired, and the transmission environment information comprises other information except the Bluetooth connection; and adjusting the current data transmission parameter of the Bluetooth connection to a target data transmission parameter matched with transmission quality information and / or transmission environment information, wherein the target information comprises at least one of the transmission quality information and the transmission environment information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Bluetooth technology, and in particular, to a method and device, equipment, and computer program product for adjusting data transmission parameters. Background Art

[0002] Bluetooth technology is a special short-range wireless technology connection that builds a communication environment between electronic devices based on low-cost short-range wireless connections. It has currently been widely used in people's daily lives and work. For example, data (such as music) can be transmitted between electronic devices through Bluetooth connections, and during the process of transmitting data through Bluetooth connections, different data transmission effects can also be achieved by adjusting data transmission parameters. However, the above method for adjusting data transmission parameters is not flexible, resulting in the inability to achieve different adjustment effects on data transmission parameters under different transmission quality information and / or transmission environment information, and the user experience is not good. Summary of the Invention

[0003] This application provides a method and device, equipment, and computer program product for adjusting data transmission parameters, which achieves different adjustment effects on data transmission parameters under different transmission quality information and / or transmission environment information, improves the flexibility of adjusting data transmission parameters, and has a good user experience.

[0004] In a first aspect, a method for adjusting data transmission parameters is provided, which is applied to an electronic device. The method includes: when transmitting data through a Bluetooth connection, obtaining the transmission quality information of the Bluetooth connection and the transmission environment information of the electronic device, where the transmission environment information includes other information except the above Bluetooth connection; adjusting the current data transmission parameters of the Bluetooth connection to target data transmission parameters that match the transmission quality information and / or the transmission environment information, where the target information includes at least one of the transmission quality information and the transmission environment information.

[0005] In this application, the electronic device can obtain the transmission quality information of the Bluetooth connection and the transmission environment information of the electronic device when transmitting data through the Bluetooth connection, where the transmission environment information includes other information except the above Bluetooth connection; and adjust the current data transmission parameters of the Bluetooth connection to target data transmission parameters that match the transmission quality information and / or the transmission environment information. In other words, the electronic device in this application can adjust the data transmission parameters through the transmission quality information and / or the transmission environment information, so as to transmit data through data transmission parameters that match the transmission quality information of the Bluetooth connection and / or the transmission environment information of the electronic device, achieving different adjustment effects on data transmission parameters under different transmission quality information and / or transmission environment information, improving the flexibility of adjusting data transmission parameters, and having a good user experience.

[0006] Second aspect, a device for adjusting data transmission parameters is provided, which is applied to an electronic device. The device for adjusting data transmission parameters includes: an acquisition module and a processing module. Among them, the acquisition module is used to obtain the transmission quality information of the Bluetooth connection and the transmission environment information of the electronic device when transmitting data through the Bluetooth connection. The transmission environment information includes other information except the above Bluetooth connection; the processing module is used to adjust the current data transmission parameters of the Bluetooth connection to target data transmission parameters that match the transmission quality information and / or the transmission environment information. The target information includes at least one of the transmission quality information and the transmission environment information.

[0007] Third aspect, an electronic device is provided, including a processor, which is coupled to a memory and can be used to execute instructions in the memory to implement the method in any possible implementation manner of the first aspect above. Optionally, the electronic device further includes a memory. Optionally, the electronic device further includes a communication interface, and the processor is coupled to the communication interface.

[0008] Fourth aspect, a processor is provided, including: an input circuit, an output circuit, and a processing circuit. The processing circuit is used to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the method in any possible implementation manner of the first aspect above.

[0009] In a specific implementation process, the above processor may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be transistors, gate circuits, flip-flops, and various logic circuits, etc. The input signal received by the input circuit may be received and input by, for example, but not limited to, a receiver. The signal output by the output circuit may be output to, for example, but not limited to, a transmitter and transmitted by the transmitter, and the input circuit and the output circuit may be the same circuit, which is used as the input circuit and the output circuit at different times respectively. The embodiments of the present application do not limit the specific implementation manners of the processor and various circuits.

[0010] Fifth aspect, a processing device is provided, including a processor and a memory. The processor is used to read the instructions stored in the memory, and can receive a signal through a receiver and transmit a signal through a transmitter to execute the method in any possible implementation manner of the first aspect above.

[0011] Optionally, the processor is one or more, and the memory is one or more.

[0012] Optionally, the memory may be integrated with the processor, or the memory and the processor are separately arranged.

[0013] In a specific implementation process, the memory can be a non-transitory memory, such as a read only memory (ROM), which can be integrated with the processor on the same chip or can be separately provided on different chips. The embodiments of the present application do not limit the type of the memory and the setting manner of the memory and the processor.

[0014] It should be understood that relevant data interaction processes, such as sending indication information, can be a process of outputting indication information from the processor, and receiving capability information can be a process of the processor receiving input capability information. Specifically, the processed output data can be output to a transmitter, and the input data received by the processor can come from a receiver. Among them, the transmitter and the receiver can be collectively referred to as a transceiver.

[0015] The processing device in the fifth aspect above can be a chip. The processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor, which is implemented by reading software code stored in the memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.

[0016] In a sixth aspect, there is provided a computer program product, which includes: a computer program (which can also be referred to as code or instruction). When the computer program is run, it causes the computer to execute the method in any possible implementation manner in the first aspect above.

[0017] In a seventh aspect, there is provided a computer-readable storage medium, which stores a computer program (which can also be referred to as code or instruction). When it runs on a computer, it causes the computer to execute the method in any possible implementation manner in the first aspect above. Description of the Drawings

[0018] Figure 1 is a schematic diagram of an application scenario provided by an embodiment of the present application;

[0019] Figure 2 is a schematic diagram of the system architecture of an electronic device provided by an embodiment of the present application;

[0020] Figure 3 is a schematic flowchart of a method for adjusting data transmission parameters provided by an embodiment of the present application;

[0021] Figure 4 is a schematic flowchart of a first specific example of the method for adjusting data transmission parameters provided by an embodiment of the present application;

[0022] Figure 5It is a schematic flowchart of the second specific example of the method for adjusting data transmission parameters provided by an embodiment of the present application;

[0023] Figure 6 It is a schematic flowchart of the third specific example of the method for adjusting data transmission parameters provided by an embodiment of the present application;

[0024] Figure 7 It is a schematic flowchart of the fourth specific example of the method for adjusting data transmission parameters provided by an embodiment of the present application;

[0025] Figure 8 It is a schematic block diagram of an apparatus for adjusting data transmission parameters provided by an embodiment of the present application;

[0026] Figure 9 It is a schematic block diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0027] Next, the technical solutions in the present application will be described with reference to the accompanying drawings.

[0028] For the convenience of clearly describing the technical solutions of the embodiments of the present application, in the embodiments of the present application, terms such as "first" and "second" are used to distinguish the same items or similar items with basically the same functions and roles. Those skilled in the art can understand that the terms "first" and "second" do not limit the quantity and execution order, and the terms "first" and "second" do not necessarily mean different.

[0029] It should be noted that in the present application, words such as "exemplarily" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplarily" or "for example" in the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly speaking, using words such as "exemplarily" or "for example" aims to present relevant concepts in a specific manner.

[0030] In addition, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects and indicates that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after. "At least one (item)" or its similar expression below refers to any combination of these items, including any combination of single item (item) or plural items (items). For example, at least one (item) of a, b, and c can represent: a, or b, or c, or a and b, or a and c, or b and c, or a, b, and c, where a, b, and c can be single or multiple.

[0031] In order to make the objectives and technical solutions of this application clearer and more intuitive, the following will, in conjunction with the accompanying drawings and embodiments, elaborate in detail on the method, apparatus, device, and computer program product for adjusting data transmission parameters provided by the embodiments of this application. It should be understood that the specific embodiments described herein are only used to explain this application and are not used to limit this application.

[0032] Figure 1 It is a schematic diagram of application scenario 100 provided by the embodiments of this application. As Figure 1 shown, this application scenario 100 includes an electronic device 101 and a second electronic device 102. Among them, the first electronic device 101 and the second electronic device 102 can establish a Bluetooth connection and achieve data transmission through this Bluetooth connection. For example, the first electronic device 101 can transmit audio data to the second electronic device 102 through the Bluetooth connection. Correspondingly, the second electronic device 102 can receive the audio data from the first electronic device 101 through this Bluetooth connection and even play the audio data.

[0033] However, during the data transmission process, the above data transmission may be stuck due to device failures and / or environmental interferences that occur.

[0034] Currently, for the stuck caused by device failures, users usually try to recover by restoring device settings, reducing device load, etc. For the stuck caused by environmental interferences, users usually can only pause the use of the device or change the usage environment, which is cumbersome and has average effects. Or, the electronic device can also adjust the data transmission parameters to achieve the effect of alleviating or solving the stuck. However, the information referred to for the above data transmission parameter adjustment is relatively single, resulting in the inability to achieve different adjustment effects of data transmission parameters under different transmission quality information and / or transmission environment information. The flexibility of adjusting data transmission parameters is not high, and the user experience is not good.

[0035] The embodiments of this application provide a method, apparatus, device, and computer program product for adjusting data transmission parameters. When the electronic device transmits data through a Bluetooth connection, it can obtain the transmission quality information of the Bluetooth connection and the transmission environment information of the electronic device, where the transmission environment information includes other information except the above Bluetooth connection; and adjust the current data transmission parameters of the above Bluetooth connection to target data transmission parameters that match the transmission quality information and / or transmission environment information. In other words, the electronic device in this application can adjust the data transmission parameters through the transmission quality information and / or transmission environment information, and transmit data with data transmission parameters that match the transmission quality information of the Bluetooth connection and / or the transmission environment information of the electronic device, achieving different adjustment effects of data transmission parameters under different transmission quality information and / or transmission environment information, improving the flexibility of adjusting data transmission parameters, and having a good user experience.

[0036] The electronic device involved in the embodiments of the present application may be a mobile phone, a watch, a laptop computer, a palmtop computer, a mobile internet device (MID), a personal computer (PC), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in self-driving, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, a personal digital assistant (PDA), etc. The embodiments of the present application do not limit this.

[0037] Exemplarily, Figure 2 FIG. is a schematic diagram of the system architecture of an electronic device provided by an embodiment of the present application.

[0038] As Figure 2 shown, the electronic device includes a processor 210 and a transceiver 220.

[0039] Optionally, the electronic device may further include a memory 230. The processor 210, the transceiver 220, and the memory 230 can communicate with each other through an internal connection path to transfer data. The memory 230 is used to store a computer program, and the processor 210 is used to call and run the computer program from the memory 230. The above-mentioned processor 210 and the memory 230 may be integrated into a processing device, and more commonly, they are independent components. The processor 210 is used to execute the program code stored in the memory 230 to implement the above functions. Specifically, the memory 230 may also be integrated in the processor 210, or independent of the processor 210.

[0040] In addition, in order to make the functions of the electronic device more complete, the electronic device may further include one or more of an input unit 260 and a sensor 201, etc.

[0041] Optionally, the above-mentioned electronic device may further include a power supply 250 for supplying power to various components or circuits in the electronic device.

[0042] It can be understood that Figure 2The operations and / or functions of the various modules in the electronic device shown are respectively for implementing the corresponding processes in the following method embodiments. For details, please refer to the descriptions in the following method embodiments. To avoid repetition, the detailed descriptions are appropriately omitted here.

[0043] It can be understood that Figure 2 The processor 210 in the electronic device shown may include one or more processing units. For example, the processor 210 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0044] A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. This memory can save the instructions or data that the processor 210 has just used or recycled. If the processor 210 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

[0045] It can be understood that Figure 2The power supply 250 shown is used to supply power to the processor 210, the memory 230, the input unit 260, the transceiver 220, etc. The transceiver 220 can provide wireless communication solutions applied to electronic devices, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The transceiver 220 can be one or more devices integrating at least one communication processing module. The memory 230 can be used to store computer-executable program code, and the executable program code includes instructions. The memory 230 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function, etc. The data storage area can store data created during the use of the electronic device, etc. In addition, the memory 230 can include high-speed random access memory, and can also include non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 210 executes various functional applications and data processing of the electronic device by running the instructions stored in the memory 230, and / or the instructions stored in the memory provided in the processor.

[0046] Figure 3 It is a schematic flowchart of a method 300 for adjusting data transmission parameters provided by an embodiment of the present application. The method 300 can be applicable to Figure 1 the application scenario 100 shown. In addition, the method 300 can also be applicable to other application scenarios, which are not limited in the present application. As Figure 3 shown, the method 300 can include the following steps:

[0047] S301, in the case of transmitting data through a Bluetooth connection, obtain the transmission quality information of the Bluetooth connection and the transmission environment information of the electronic device, where the transmission environment information includes other information except the above Bluetooth connection.

[0048] The transmission quality information is information that can characterize the transmission link quality during the process of transmitting data through the above Bluetooth connection.

[0049] Exemplarily, the transmission quality information may include at least one of received signal strength indicator (RSSI) information, buffer information, and preset event information.

[0050] The transmission environment information is information that can characterize the environment where the above-mentioned electronic device is located during the process of transmitting data via Bluetooth connection.

[0051] Exemplarily, the transmission environment information may include at least one of wireless fidelity (WiFi) information, global positioning system (GPS) information, and ultrasonic information.

[0052] It should be understood that the above-mentioned shown transmission environment information and transmission quality information are only exemplary, and the present application does not limit this.

[0053] In some embodiments, the electronic device may, in response to a preset operation performed by the user, obtain the transmission quality information and the transmission environment information during the process of transmitting data via Bluetooth connection.

[0054] In some embodiments, the electronic device may also obtain the transmission quality parameters and the transmission environment information when transmitting preset type of data via Bluetooth connection.

[0055] In a possible case, the preset type of data may be data that is prone to jamming during transmission. To avoid jamming of this type of data during transmission and affecting the user experience, the electronic device may, when detecting the transmission of the preset type of data, obtain the transmission quality information and the transmission environment information, so as to learn about the transmission status of the preset type of data based on the transmission environment information and the transmission quality information, and timely adjust the data transmission parameters based on the transmission status, alleviate the transmission jamming of the preset type of data, or reduce the probability of the preset type of data having transmission jamming.

[0056] In some embodiments, the electronic device may periodically obtain the above-mentioned transmission quality information and transmission environment information during the process of transmitting data via Bluetooth connection.

[0057] In a possible case, the electronic device may obtain the above-mentioned transmission quality information and transmission environment information simultaneously.

[0058] Exemplarily, the electronic device may, while obtaining the transmission quality information, synchronously obtain the transmission environment information, so as to jointly judge the data transmission status based on the synchronously obtained transmission quality information and transmission environment information, timely adjust the data transmission parameters, achieve better data transmission performance, and improve the user experience.

[0059] In another possible case, the electronic device may also not obtain the above-mentioned transmission quality and transmission environment information simultaneously.

[0060] Exemplarily, the electronic device may first obtain the transmission environment information, and after adjusting the data transmission parameters based on the transmission environment information, obtain the above-mentioned transmission quality information, so as to learn about the adjustment effect of the data transmission parameters based on the transmission quality information, and determine whether to adjust the data transmission parameters again based on the adjustment effect of the data transmission parameters. For example, when the transmission quality information indicates that the transmission link quality is poor, the electronic device may further adjust the current data transmission parameters. Or, when the above-mentioned transmission quality information indicates that the transmission link quality is relatively good, the electronic device may not perform the operation of adjusting the data transmission parameters.

[0061] Exemplarily, the electronic device may also first obtain the transmission quality information, and after adjusting the data transmission parameters based on the transmission environment quality information, obtain the above-mentioned transmission environment information, so as to determine whether to adjust the data transmission parameters again based on the transmission environment information. For example, when the transmission environment information indicates that the electronic device is currently in a high-interference area, in order to reduce the probability of data transmission jamming caused by the high-interference area, the electronic device may further adjust the current data transmission parameters. Or, when the above-mentioned transmission environment information indicates that it is currently in a low-interference area, the electronic device may not perform the operation of adjusting the data transmission parameters.

[0062] S302. Adjust the current data transmission parameters of the above Bluetooth connection to target data transmission parameters that match the transmission quality information and / or the transmission environment information.

[0063] In some embodiments, when the electronic device determines that the current data transmission parameters do not match the obtained transmission quality information and / or transmission environment information, the electronic device may adjust the current data transmission parameters to target data transmission parameters that match the transmission quality information and / or the transmission environment information.

[0064] The mismatch here may indicate that transmission jamming occurs during the data transmission process using the current data transmission parameters, or the probability of transmission jamming is relatively high. Therefore, the electronic device may adjust the current data transmission parameters to target data transmission parameters that match the transmission environment information and / or the transmission quality information, so as to perform data transmission through the target data transmission parameters, relieve the occurring transmission jamming, or reduce the probability of transmission jamming.

[0065] In some embodiments, the electronic device may adjust the current data transmission parameters of the above Bluetooth connection to target data transmission parameters that match the transmission environment information and the transmission quality information.

[0066] In some embodiments, the electronic device may adjust the current data transmission parameters of the above Bluetooth connection to first target data transmission parameters that match the transmission environment information. Alternatively, the electronic device may adjust the current data transmission parameters of the above Bluetooth connection to second target data transmission parameters that match the transmission quality information. In other words, the above first target data transmission parameters are different from the second target data transmission parameters, and the degree of adjustment of the current data transmission parameters is different under different information (such as transmission environment information or transmission quality information).

[0067] Optionally, the target data transmission parameters that match the transmission quality information and the transmission environment information may be the same as or different from the above first target data transmission parameters or the second target data transmission parameters.

[0068] In a possible case, the higher the priority of the information, the greater the degree of adjustment of the current data transmission parameters. In other words, the greater the difference between the target data transmission parameters that match the information with the higher priority among the above transmission environment information and transmission quality information and the above current data transmission parameters.

[0069] Exemplarily, when the priority of the above transmission quality information is higher than that of the transmission environment information, the difference between the above second target data transmission parameters and the above current data transmission parameters is greater than the difference between the above first target data transmission and the above current data transmission.

[0070] In some embodiments, the current data transmission parameters of the above Bluetooth connection may include at least one of buffer capacity, data transmission power, data transmission coding method, and data transmission code rate. The electronic device may adjust at least one of the current buffer capacity, current data transmission power, current data transmission coding method, and current data transmission code rate of the Bluetooth connection to target data transmission parameters that match the transmission quality information and / or the transmission environment information based on the device power consumption and / or device battery level; wherein, when the device power consumption is smaller and / or the device battery level is larger, more of the current data transmission parameters of the Bluetooth connection adjusted to the target data transmission parameters that match the transmission quality information and / or the transmission environment information, so as to avoid problems such as deterioration of device performance caused by excessive data parameter adjustment operations and / or shutdown when the device power consumption of the electronic device is too large and / or the device battery level is too low, affecting the user experience.

[0071] Exemplarily, when it is determined that the current data transmission parameters do not match the obtained transmission environment information, the electronic device may adjust the current buffer capacity, the current data transmission power, the current data transmission coding method, and the current data transmission code rate to a first target buffer capacity, a first target data transmission power, a first target data transmission coding method, and a first target data transmission code rate that match the transmission environment information. Alternatively, when it is determined that the current data transmission parameters do not match the obtained transmission quality information, the electronic device may adjust the current buffer capacity, the current data transmission power, the current data transmission coding method, and the current data transmission code rate to a second target buffer capacity, a second target data transmission power, a second target data transmission coding method, and a second target data transmission code rate that match the transmission quality information.

[0072] It should be understood that to alleviate and / or reduce data transmission jitter, the above-mentioned first target buffer capacity and second target buffer capacity are both greater than the above-mentioned current buffer capacity, the above-mentioned first target data transmission power and second target data transmission power are both greater than the above-mentioned current data transmission power, the coding efficiencies corresponding to the above-mentioned first target data transmission coding method and second target data transmission coding method are both lower than the coding efficiency of the above-mentioned current data transmission coding, and the above-mentioned first target data transmission code rate and second target data transmission code rate are both lower than the above-mentioned current data transmission code rate. And when the priority of the above-mentioned transmission quality information is higher than the priority of the transmission environment information, the above-mentioned first target buffer capacity may be less than the second target buffer capacity, the above-mentioned first target data transmission power may be less than the second target data transmission power, the coding efficiency corresponding to the above-mentioned first target data transmission coding method may be greater than the coding efficiency corresponding to the second target data transmission coding method, and the above-mentioned first target data transmission code rate may be greater than the second target data transmission code rate.

[0073] In some embodiments, the electronic device may also adjust the current data transmission parameters to target data transmission parameters that match the transmission quality information and / or the transmission environment information when it is determined that the current data transmission parameters do not match the obtained transmission quality information and transmission environment information.

[0074] In a possible scenario, the electronic device may adjust the current data transmission parameters to target data transmission parameters that match the transmission quality information and the transmission environment information when it is determined that the current data transmission parameters do not match both the transmission quality information and the transmission environment information.

[0075] In a possible scenario, when the electronic device determines that the current data transmission parameters do not match both the transmission quality information and the transmission environment information, it can adjust the current data transmission parameters to a first target data transmission parameter that matches the transmission quality information or a second target data transmission parameter that matches the transmission environment information.

[0076] In this application, when transmitting data through a Bluetooth connection, obtain the transmission quality information of the Bluetooth connection and the transmission environment information of the electronic device. The transmission environment information includes other information except the above Bluetooth connection; adjust the current data transmission parameters of the Bluetooth connection to target data transmission parameters that match the transmission quality information and / or the transmission environment information. In other words, the electronic device in this application can adjust the data transmission parameters through the transmission quality information and / or the transmission environment information, and transmit data through data transmission parameters that match the transmission quality information of the Bluetooth connection and / or the transmission environment information of the electronic device, achieving different adjustment effects on the data transmission parameters under different transmission quality information and / or transmission environment information, improving the adjustment flexibility of the data transmission parameters, and providing a good user experience.

[0077] In some embodiments, the electronic device can determine whether the current data transmission is stuck or the probability of transmission stuck is relatively high by determining whether the above transmission environment information and / or transmission quality information meet the conditions, and determine whether the current data transmission parameters match the transmission environment information and / or the transmission quality information when the conditions are met. By adjusting the current data transmission parameters to template data transmission parameters that match the above transmission environment information and / or transmission quality information, the transmission stuck can be alleviated or the probability of transmission stuck can be reduced.

[0078] Figure 4 It is a schematic flowchart of a method 400 for adjusting data transmission parameters provided by an embodiment of this application. As Figure 4 shown, the method 400 may include the following steps:

[0079] S401, when transmitting data through a Bluetooth connection, obtain the transmission quality information of the Bluetooth connection and the transmission environment information of the electronic device. The transmission environment information includes other information except the above Bluetooth connection.

[0080] S402, determine whether the transmission environment information and / or the transmission quality information meet the conditions, where the conditions are the conditions indicating that the data transmission through the Bluetooth connection is stuck.

[0081] In some embodiments, different information may correspond to different conditions. In other words, the electronic device may determine whether the transmission environment information meets the first condition and / or whether the transmission quality information meets the second condition. The first condition may be that the transmission environment information indicates the condition of data transmission lag through the Bluetooth connection, and the second condition may be that the transmission quality information indicates the condition of data transmission lag through the Bluetooth connection.

[0082] When the above-mentioned transmission environment information may include at least one of wireless fidelity (WiFi) information, global positioning system (GPS) information, and ultrasonic information, the first condition here may include at least one of the following:

[0083] The WiFi information indicates that the space where the electronic device is currently located has changed;

[0084] The GPS information indicates that the electronic device is currently in a high-interference scenario;

[0085] The ultrasonic information indicates that the device distance between the electronic device and the opposite electronic device receiving data is greater than the distance threshold.

[0086] When the above-mentioned transmission quality information may include at least one of received signal strength indication (RSSI) information, buffer information, and preset event information, the second condition includes at least one of the following:

[0087] The RSSI information indicates that the device distance between the electronic device and the opposite electronic device receiving data is greater than the distance threshold;

[0088] The buffer information indicates that the amount of data in the current buffer is greater than the data volume threshold;

[0089] The preset event information indicates the existence of a lag event.

[0090] S403. When the transmission environment information and / or the transmission quality information meet the conditions, adjust the current data transmission parameters of the Bluetooth connection to target data transmission parameters that match the transmission environment information and / or the transmission quality information.

[0091] Figure 5 This is a schematic diagram of a method for adjusting data transmission parameters provided by the present application. As Figure 5 shown, when the above-mentioned transmission environment information includes wireless fidelity (WiFi) information, global positioning system (GPS) information, and ultrasonic information:

[0092] The electronic device can obtain the Channel State Information (CSI) through the WiFi information, and determine whether the space where the electronic device is located has changed based on the CSI. The CSI can record physical phenomena such as signal scattering on the user's body to characterize the spatial change of the electronic device with the user, that is, it can be determined that the WiFi information indicates a change in the space where the electronic device is currently located.

[0093] The electronic device can obtain the location information of the electronic device through the GPS information, and determine whether it is currently in a high-interference area based on the location information.

[0094] Exemplarily, the high-interference area can include a vehicle area, an airport area, a shopping mall area, etc. The electronic device can compare the above location information with the location information of the multiple high-interference areas, and determine that the GPS information indicates that the electronic device is currently in a high-interference scenario when it is determined that the location information is the same as the location information of at least one of the above high-interference areas.

[0095] The electronic device can obtain the distance information between the electronic device and the opposite-side electronic device that receives data through the ultrasonic information, and determine whether the current distance has become larger based on the distance information.

[0096] Exemplarily, the electronic device can compare the above distance information with a distance threshold, and determine that the distance has become larger when the distance information is greater than the distance threshold, that is, it is determined that the ultrasonic information indicates that the device distance between the electronic device and the opposite-side electronic device that receives data is greater than the distance threshold.

[0097] As Figure 5 shown, the electronic device can determine that the transmission environment information meets the first condition when it is determined that the WiFi information indicates a change in the space where the electronic device is currently located, the GPS information indicates that the electronic device is currently in a high-interference scenario, and the ultrasonic information indicates that the device distance between the electronic device and the opposite-side electronic device that receives data is greater than the distance threshold.

[0098] Figure 6 This is a schematic diagram of a method for adjusting data transmission parameters provided by this application. As Figure 6 shown, when the above transmission quality information includes RSSI information, buffer information, and preset event information:

[0099] The electronic device can obtain the distance information between the electronic device and the opposite-side electronic device that receives data through the RSSI information, and determine whether the current distance has become larger based on the distance information.

[0100] Exemplarily, the electronic device may compare the above distance information with a distance threshold, and in the case where the distance information is greater than the distance threshold, determine that the distance has increased, that is, determine that the RSSI information indicates that the device distance between the electronic device and the opposite electronic device receiving data is greater than the distance threshold.

[0101] The electronic device may obtain the data volume information of the buffer through the buffer information, and based on this data volume information, judge the data volume situation of the buffer.

[0102] Exemplarily, the electronic device may compare the above data volume information with a data volume threshold to determine that the buffer information indicates that the data volume in the current buffer is greater than the data volume threshold.

[0103] As Figure 6 shown, in the case where the above transmission quality information includes received signal strength indication (RSSI) information, buffer information, and preset event information, the electronic device may determine that the transmission quality information meets the second condition when it determines that the RSSI information indicates that the device distance between the electronic device and the opposite electronic device receiving data is greater than the distance threshold, the buffer information indicates that the data volume in the current buffer is greater than the data volume threshold, and the preset event information indicates the existence of a stuttering event.

[0104] The electronic device may adjust the current data transmission parameters of the Bluetooth connection to target data transmission parameters matching the transmission environment information and / or the transmission quality information when the transmission environment information meets the first condition and / or the transmission quality information meets the second condition.

[0105] In the case where the current data transmission parameters of the Bluetooth connection include at least one of buffer capacity, data transmission power, data transmission coding method, data transmission code rate, and transmission role, the electronic device may adjust at least one of the current buffer capacity, current data transmission power, current data transmission coding method, current data transmission code rate, and current transmission role to target data transmission parameters matching the transmission quality information and / or the transmission environment information when the transmission environment information meets the first condition and / or the transmission quality information meets the second condition.

[0106] Exemplarily, the electronic device may adjust the current buffer capacity of the Bluetooth connection to a target buffer capacity, and the target buffer capacity is greater than the current buffer capacity.

[0107] Optionally, the electronic device may also send indication information for adjusting the buffer capacity to the opposite electronic device, so that the opposite electronic device can increase the current buffer capacity based on this indication information.

[0108] Exemplarily, the electronic device may adjust the current data transmission power of the Bluetooth connection to a target data transmission power, where the target data transmission power is greater than the current data transmission power.

[0109] Exemplarily, the electronic device may adjust the current data transmission coding mode of the Bluetooth connection to a target data transmission coding mode, where the coding efficiency of the target data transmission coding mode is lower than the coding efficiency of the current data transmission coding mode.

[0110] Exemplarily, the electronic device may adjust the current data transmission code rate of the Bluetooth connection to a target data transmission code rate, where the target data transmission code rate is less than the current data transmission code rate.

[0111] Exemplarily, the electronic device may adjust the current device role of the Bluetooth connection to a target device role to exchange device roles with the opposite electronic device that receives data and then perform data transmission. The target device role is the current device role of the opposite electronic device, and the device role includes a master electronic device role and a slave electronic device role.

[0112] The electronic device may adjust the current data transmission parameters of the Bluetooth connection to first target data transmission parameters that match the transmission environment information when the transmission environment information meets the first condition.

[0113] Exemplarily, when the transmission environment information meets the first condition, the electronic device may adjust the buffer capacity and / or the data transmission power in the current data transmission parameters of the Bluetooth connection to first target data transmission parameters that match the transmission environment information. For example, adjust the current buffer capacity of the Bluetooth connection to a first target buffer capacity, where the first target buffer capacity is greater than the current buffer capacity, and / or adjust the current data transmission power of the Bluetooth connection to a first target data transmission power, where the first target data transmission power is greater than the current data transmission power.

[0114] The electronic device may adjust the current data transmission parameters of the Bluetooth connection to second target data transmission parameters that match the transmission quality information when the transmission quality information meets the second condition.

[0115] Exemplarily, when the transmission environment information meets the second condition, the electronic device may adjust at least one of the data transmission coding method, data transmission code rate, and transmission role of the current data transmission parameters of the Bluetooth connection to a second target data transmission parameter that matches the transmission quality information. For example, the current data transmission coding method of the Bluetooth connection is adjusted to a second target data transmission coding method, and the coding efficiency of the second target data transmission coding method is lower than that of the current data transmission coding method. The current data transmission code rate of the Bluetooth connection is adjusted to a second target data transmission code rate, and the second target data transmission code rate is less than the current data transmission code rate. The current device role of the Bluetooth connection is adjusted to a target device role, and after swapping the device roles with the opposite electronic device that receives the data, data transmission is performed. The target device role is the current device role of the opposite electronic device, and the device role includes the main electronic device role and the slave electronic device role.

[0116] Optionally, upon receiving S402, when it is determined that the transmission environment information and the transmission quality information do not meet the conditions, it can be determined that the current Bluetooth connection does not experience data jamming or the probability of data jamming is relatively low, and the current data transmission parameters can be maintained to continue data transmission. Therefore, the electronic device can not perform any operation, that is, it does not adjust the data transmission parameters.

[0117] In some embodiments, the electronic device may also display prompt information for indicating the transmission quality information and / or the transmission environment information, and for adjusting the current data transmission parameters of the Bluetooth connection to target data transmission parameters that match the transmission quality information and / or the transmission environment information, so that the user can learn about the current data transmission status and the adjustment of the data transmission parameters.

[0118] Below, taking the above-mentioned electronic device as a mobile phone and the opposite electronic device as an audio playback device, such as a headset, as an example, a detailed description of the method for adjusting the data transmission parameters adopted in this application is given.

[0119] Figure 7 It is a schematic flowchart of a method 700 for adjusting data transmission parameters provided by an embodiment of this application. As Figure 7 shown, the method 700 may include the following steps:

[0120] S701, when the mobile phone is Bluetooth-connected to the headset, it transmits data to the headset through the current data transmission parameters. Correspondingly, the headset receives data from the mobile phone.

[0121] S702, the mobile phone obtains the transmission quality information of the Bluetooth connection and the transmission environment information of the mobile phone, and the transmission environment information includes other information except the above-mentioned Bluetooth connection.

[0122] Similarly, the transmission quality information may be information that can characterize the transmission link quality during the process of the above Bluetooth connection for data transmission. Exemplarily, the transmission quality information may include at least one of received signal strength indicator (RSSI) information, buffer information, and preset event information.

[0123] The transmission environment information may be information that can characterize the environment where the mobile phone is located during the process of the Bluetooth connection for data transmission. Exemplarily, the transmission environment information may include at least one of wireless fidelity (WiFi) information, global positioning system (GPS) information, and ultrasonic information.

[0124] It should be understood that the above-exemplified transmission environment information and transmission quality information are merely exemplary, and the present application makes no limitation thereto.

[0125] S703, when the transmission environment information and / or the transmission quality information meet the conditions, the mobile phone adjusts the current data transmission parameters of the Bluetooth connection to target data transmission parameters that match the transmission environment information and / or the transmission quality information.

[0126] Exemplarily, as Figure 5 shown, the mobile phone may determine that the transmission environment information meets the first condition when it determines that the WiFi information indicates a change in the space where the mobile phone is currently located, the GPS information indicates that the mobile phone is currently in a high-interference scenario, and the ultrasonic information indicates that the device distance between the mobile phone and the earphone receiving data is greater than the distance threshold.

[0127] Exemplarily, as Figure 6 shown, when the above transmission quality information includes RSSI information, buffer information, and preset event information, the mobile phone may determine that the transmission quality information meets the second condition when it determines that the RSSI information indicates that the device distance between the mobile phone and the earphone receiving data is greater than the distance threshold, the buffer information indicates that the amount of data in the current buffer is greater than the data volume threshold, and the preset event information indicates the existence of a lag event.

[0128] The mobile phone may adjust the current data transmission parameters of the Bluetooth connection to target data transmission parameters that match the transmission environment information and / or the transmission quality information when the transmission environment information meets the first condition and / or the transmission quality information meets the second condition.

[0129] When at least one of the current data transmission parameters of the Bluetooth connection includes buffer capacity, data transmission power, data transmission coding method, data transmission code rate, and transmission role, the mobile phone can adjust at least one of the current buffer capacity, current data transmission power, current data transmission coding method, current data transmission code rate, and current transmission role to target data transmission parameters that match the transmission quality information and / or transmission environment information when the transmission environment information meets the first condition and / or the transmission quality information meets the second condition.

[0130] Exemplarily, the mobile phone can adjust the current buffer capacity of the Bluetooth connection to a target buffer capacity, which is greater than the current buffer capacity.

[0131] Optionally, the mobile phone can also send indication information for adjusting the buffer capacity to the earphone so that the earphone can increase the current buffer capacity based on the indication information.

[0132] Exemplarily, the mobile phone can adjust the current data transmission power of the Bluetooth connection to a target data transmission power, which is greater than the current data transmission power.

[0133] Exemplarily, the mobile phone can adjust the current data transmission coding method of the Bluetooth connection to a target data transmission coding method, and the coding efficiency of the target data transmission coding method is lower than that of the current data transmission coding method.

[0134] Exemplarily, the mobile phone can adjust the current data transmission code rate of the Bluetooth connection to a target data transmission code rate, which is less than the current data transmission code rate.

[0135] Exemplarily, the mobile phone can adjust the current device role of the Bluetooth connection to a target device role to perform data transmission after swapping device roles with the earphone that receives data. The target device role is the current device role of the earphone, and the device role includes the main mobile phone role and the slave device role.

[0136] When the transmission environment information meets the first condition, the mobile phone can adjust the current data transmission parameters of the Bluetooth connection to first target data transmission parameters that match the transmission environment information.

[0137] Exemplarily, when the transmission environment information meets the first condition, the mobile phone can adjust the buffer capacity and / or data transmission power in the current data transmission parameters of the Bluetooth connection to the first target data transmission parameters that match the transmission environment information. For example, adjust the current buffer capacity of the Bluetooth connection to the first target buffer capacity, where the first target buffer capacity is greater than the current buffer capacity, and / or adjust the current data transmission power of the Bluetooth connection to the first target data transmission power, where the first target data transmission power is greater than the current data transmission power.

[0138] When the transmission quality information meets the second condition, the mobile phone can adjust the current data transmission parameters of the Bluetooth connection to the second target data transmission parameters that match the transmission quality information.

[0139] Exemplarily, when the transmission environment information meets the second condition, the mobile phone can adjust at least one of the data transmission coding method, data transmission code rate, and transmission role in the current data transmission parameters of the Bluetooth connection to the second target data transmission parameters that match the transmission quality information. For example, adjust the current data transmission coding method of the Bluetooth connection to the second target data transmission coding method, where the coding efficiency of the second target data transmission coding method is lower than that of the current data transmission coding method, adjust the current data transmission code rate of the Bluetooth connection to the second target data transmission code rate, where the second target data transmission code rate is less than the current data transmission code rate, and adjust the current device role of the Bluetooth connection to the target device role to exchange the device role with the headset receiving the data, where the target device role is the current device role of the headset, and the device role includes the main mobile phone role and the slave device role.

[0140] S704, transmit data to the headset through the target data transmission parameters. Correspondingly, the headset receives data from the mobile phone.

[0141] Optionally, upon receiving S703 above, when it is determined that the transmission environment information and the transmission quality information do not meet the conditions, it can be determined that there is no lag or a low probability of lag in the current Bluetooth connection for data transmission, and the current data transmission parameters can be maintained to continue data transmission. Therefore, the mobile phone can not perform any operation, that is, not adjust the data transmission parameters.

[0142] It should be understood that the above embodiments can also be coupled to each other, and this application does not make any limitations in this regard. Also, the magnitudes of the serial numbers of the above processes do not mean the order of execution is prior or posterior, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of this application.

[0143] In the above text, in combination with Figures 1 to 7, which details the method for adjusting the data transmission parameters in the embodiments of the present application. Next, the apparatus for adjusting the data transmission parameters in the embodiments of the present application will be described in detail in conjunction with Figure 8 and Figure 9 .

[0144] Figure 8 Fig. 800 shows an apparatus 800 for adjusting data transmission parameters provided in the embodiments of the present application. The apparatus 800 for adjusting data transmission parameters includes: an acquisition module 801 and a processing module 802. Among them, the acquisition module 801 is configured to: when transmitting data through a Bluetooth connection, acquire the transmission quality information of the Bluetooth connection and the transmission environment information of the electronic device, where the transmission environment information includes other information except the above Bluetooth connection; the processing module 802 is configured to: adjust the current data transmission parameters of the above Bluetooth connection to target data transmission parameters that match the transmission quality information and / or the transmission environment information, and the target information includes at least one of the above transmission quality information and the above transmission environment information.

[0145] Optionally, the processing module 802 is configured to: adjust the current data transmission parameters of the above Bluetooth connection to first target data transmission parameters that match the above transmission environment information; or, adjust the current data transmission parameters of the above Bluetooth connection to second target data transmission parameters that match the above transmission quality information.

[0146] Optionally, the processing module 802 is configured to: adjust the current transmission parameters of the above Bluetooth connection to third target data transmission parameters that match the above transmission environment information and the above transmission quality information, and the third target data transmission parameters at least include the first target data transmission parameters that match the above transmission environment information and the second target data transmission parameters that match the above transmission quality information.

[0147] Optionally, the current data transmission parameters of the above Bluetooth connection include buffer capacity and / or data transmission power; the processing module 802 is configured to: adjust the current buffer capacity of the above Bluetooth connection to a target buffer capacity, and the target buffer capacity is greater than the current buffer capacity; adjust the current data transmission power of the above Bluetooth connection to a target data transmission power, and the target data transmission power is greater than the current data transmission power.

[0148] Optionally, the current data transmission parameters of the above Bluetooth connection include at least one of a data transmission encoding method, a data transmission code rate, and a transmission role; the processing module 802 is configured to: adjust the current data transmission encoding method of the above Bluetooth connection to a target data transmission encoding method, where the encoding efficiency of the target data transmission encoding method is lower than that of the current data transmission encoding method; adjust the current data transmission code rate of the above Bluetooth connection to a target data transmission code rate, where the target data transmission code rate is less than the current data transmission code rate; adjust the current device role of the above Bluetooth connection to a target device role, and perform data transmission after swapping device roles with the opposite electronic device that receives data, where the target device role is the current device role of the opposite electronic device, and the device role includes a master electronic device role and a slave device role.

[0149] Optionally, the processing module 802 is configured to: when the above transmission environment information meets the first condition and / or the above transmission quality information meets the second condition, adjust the current data transmission parameters of the above Bluetooth connection to target data transmission parameters that match the above transmission environment information and / or the above transmission quality information; where the first condition is the condition that the above transmission environment information indicates that data transmission through the Bluetooth connection is stuck, and the second condition is the condition that the above transmission quality information indicates that data transmission through the Bluetooth connection is stuck.

[0150] Optionally, the above transmission environment information includes at least one of Wi-Fi (Wireless Fidelity) information, GPS (Global Positioning System) information, and ultrasonic information; the first condition includes at least one of the following: the Wi-Fi information indicates that the space where the electronic device is currently located has changed; the GPS information indicates that the electronic device is currently in a high-interference scenario; the ultrasonic information indicates that the device distance between the electronic device and the opposite electronic device that receives data is greater than a distance threshold.

[0151] Optionally, the above transmission quality information includes at least one of RSSI (Received Signal Strength Indicator) information, buffer information, and preset event information; the second condition includes at least one of the following: the RSSI information indicates that the device distance between the electronic device and the opposite electronic device that receives data is greater than a distance threshold; the buffer information indicates that the amount of data in the current buffer is greater than a data amount threshold; the preset event information indicates that there is a stuck event.

[0152] Optionally, the processing module 802 is configured to: adjust the current data transmission parameter of the Bluetooth connection to a target data transmission parameter that matches the transmission quality information and / or the transmission environment information based on the device power consumption and / or the device battery level; wherein, when the device power consumption is smaller and / or the device battery level is larger, more of the current data transmission parameters of the Bluetooth connection that are adjusted to the target data transmission parameter that matches the transmission quality information and / or the transmission environment information.

[0153] Optionally, the processing module 802 is configured to: display a prompt message for indicating the transmission quality information and / or the transmission environment information, and for adjusting the current data transmission parameter of the Bluetooth connection to a target data transmission parameter that matches the transmission quality information and / or the transmission environment information.

[0154] It should be understood that the device 800 for adjusting the data transmission parameter is embodied in the form of a functional module. The term "module" herein may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group of processors, etc.) for executing one or more software or firmware programs, a memory, a combined logic circuit, and / or other suitable components that support the described functions. In an optional example, those skilled in the art can understand that the device 800 for adjusting the data transmission parameter may specifically be the electronic device in the above embodiment, or the functions of the electronic device in the above embodiment may be integrated in the device 800 for adjusting the data transmission parameter. The device 800 for adjusting the data transmission parameter may be used to execute each process and / or step corresponding to the electronic device in the above method embodiment. To avoid repetition, it will not be elaborated herein. The device 800 for adjusting the data transmission parameter has the function of implementing the corresponding steps executed by the electronic device in the above method; the above function may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. In the embodiments of the present application, Figure 8 the device 800 for adjusting the data transmission parameter may also be a chip or a chip system, such as: a system on chip (SoC).

[0155] Figure 9 FIG. shows an electronic device 900 provided in an embodiment of the present application. The electronic device 900 includes: a processor 901, a memory 902, a communication interface 903, and a bus 904. Among them, the memory 902 is used to store instructions, and the processor 901 is used to execute the instructions stored in the memory 902. The processor 901, the memory 902, and the communication interface 903 are communicatively connected to each other through the bus 904.

[0156] Among them, the processor 901 is configured to: when transmitting data through a Bluetooth connection, obtain the transmission quality information of the Bluetooth connection and the transmission environment information of the electronic device, where the transmission environment information includes other information except the above Bluetooth connection; adjust the current data transmission parameters of the above Bluetooth connection to target data transmission parameters that match the transmission quality information and / or the transmission environment information, and the target information includes at least one of the above transmission quality information and the above transmission environment information.

[0157] It should be understood that the electronic device 900 may specifically be the electronic device in the above embodiments, or the functions of the electronic device in the above embodiments may be integrated in the electronic device 900. The electronic device 900 may be used to execute the respective steps and / or processes corresponding to the electronic device in the above method embodiments. Optionally, the memory 902 may include a read-only memory and a random access memory, and provide instructions and data to the processor 901. A part of the memory 902 may further include a non-volatile random access memory. For example, the memory 902 may also store information about the device type. The processor 901 may be used to execute the instructions stored in the memory, and when the processor executes the instructions, the processor 901 may execute the respective steps and / or processes corresponding to the electronic device in the above method embodiments. It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. In the implementation process, the respective steps of the above method may be completed by the integrated logic circuit in the hardware of the processor or the instructions in the form of software. The steps of the method disclosed in combination with the embodiments of the present application may be directly embodied as being executed and completed by the hardware processor, or executed and completed by a combination of the hardware and software modules in the processor. The software module may be located in a mature storage medium in the art such as a random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register, etc. The storage medium is located in the memory, and the processor executes the instructions in the memory and combines its hardware to complete the steps of the above method. To avoid repetition, it will not be described in detail here. Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. A professional person may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above may refer to the corresponding processes in the foregoing method embodiments, and will not be repeated here. In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways.For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the couplings or direct couplings or communication connections shown or discussed with each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical or other forms. The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in each embodiment of the present application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or a part of this technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks or optical discs and other various media that can store program codes. As described above, this is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, and all should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for adjusting data transmission parameters, characterized in that: Used in electronic equipment, including: In the case of transmitting data via a Bluetooth connection, obtaining transmission quality information of the Bluetooth connection and transmission environment information of the electronic device, wherein the transmission environment information includes other information in addition to the Bluetooth connection; The current data transmission parameters of the Bluetooth connection are adjusted to target data transmission parameters that match the transmission quality information and / or the transmission environment information.

2. The method according to claim 1, characterized in that The adjusting the current data transmission parameter of the Bluetooth connection to a target data transmission parameter matching the transmission quality information and / or the transmission environment information includes: adjusting the current data transmission parameter of the Bluetooth connection to a first target data transmission parameter that matches the transmission environment information; or, The current data transmission parameter of the Bluetooth connection is adjusted to a second target data transmission parameter that matches the transmission quality information.

3. The method according to claim 1, characterized in that The adjusting the current data transmission parameter of the Bluetooth connection to a target data transmission parameter matching the transmission quality information and / or the transmission environment information includes: Adjust the current transmission parameters of the Bluetooth connection to third target data transmission parameters that match the transmission environment information and the transmission quality information, wherein the third target data transmission parameters at least include first target data transmission parameters that match the transmission environment information and second target data transmission parameters that match the transmission quality information.

4. The method according to claim 2, characterized in that: The current data transmission parameter of the Bluetooth connection includes a buffer capacity and / or a data transmission power; and adjusting the current data transmission parameter of the Bluetooth connection to a first target data transmission parameter matching the transmission environment information includes: adjusting a current buffer capacity of the Bluetooth connection to a target buffer capacity, the target buffer capacity being greater than the current buffer capacity; and / or The current data transmission power of the Bluetooth connection is adjusted to a target data transmission power, where the target data transmission power is greater than the current data transmission power.

5. The method according to claim 2, characterized in that: The current data transmission parameter of the Bluetooth connection includes at least one of a data transmission coding mode, a data transmission code rate, and a transmission role; and adjusting the current data transmission parameter of the Bluetooth connection to a second target data transmission parameter matching the transmission quality information includes: Adjusting the current data transmission coding mode of the Bluetooth connection to a target data transmission coding mode, wherein the coding efficiency of the target data transmission coding mode is lower than the coding efficiency of the current data transmission coding mode; Adjusting the current data transmission code rate of the Bluetooth connection to a target data transmission code rate, wherein the target data transmission code rate is less than the current data transmission code rate; The current device role of the Bluetooth connection is adjusted to a target device role, so as to exchange device roles with the opposite electronic device receiving data and then perform data transmission. The target device role is the current device role of the opposite electronic device, and the device roles include a master electronic device role and a slave device role.

6. The method according to claim 1, characterized in that The adjusting the current data transmission parameter of the Bluetooth connection to a target data transmission parameter matching the transmission quality information and / or the transmission environment information includes: When the transmission environment information satisfies a first condition and / or the transmission quality information satisfies a second condition, adjusting a current data transmission parameter of the Bluetooth connection to a target data transmission parameter that matches the transmission environment information and / or the transmission quality information; The first condition is that the transmission environment information indicates a condition that data transmission via the Bluetooth connection is jammed, and the second condition is that the transmission quality information indicates a condition that data transmission via the Bluetooth connection is jammed.

7. The method according to claim 6, characterized in that The transmission environment information includes at least one of wireless fidelity WiFi information, global positioning system GPS information and ultrasonic information; the first condition includes at least one of the following: The WiFi information indicates that the space where the electronic device is currently located has changed; The GPS information indicates that the electronic device is currently in a high interference scenario; The ultrasonic information indicates that a device distance between the electronic device and an opposite electronic device receiving data is greater than a distance threshold.

8. The method according to claim 6, characterized in that The transmission quality information includes at least one of received signal strength indication RSSI information, buffer information, and preset event information; and the second condition includes at least one of the following: The RSSI information indicates that the device distance between the electronic device and the opposite electronic device receiving the data is greater than a distance threshold; The buffer information indicates that the amount of data in the current buffer is greater than a data amount threshold; The preset event information indicates that a freeze event occurs.

9. The method according to claim 1, characterized in that: The adjusting the current data transmission parameter of the Bluetooth connection to a target data transmission parameter matching the transmission quality information and / or the transmission environment information includes: Based on device power consumption and / or device power, adjusting a current data transmission parameter of the Bluetooth connection to a target data transmission parameter that matches the transmission quality information and / or the transmission environment information; The more current data transmission parameters of the Bluetooth connection are adjusted to target data transmission parameters that match the transmission quality information and / or the transmission environment information, the lower the power consumption of the device and / or the greater the power of the device.

10. The method according to claim 1, characterized in that The method further comprises: Prompt information for indicating the transmission quality information and / or the transmission environment information and adjusting the current data transmission parameters of the Bluetooth connection to target data transmission parameters matching the transmission quality information and / or the transmission environment information is displayed.

11. A data transmission parameter adjustment device, applied to electronic equipment, characterized in that: The data transmission parameter adjustment device comprises: an acquisition module, configured to acquire, when data is transmitted via a Bluetooth connection, transmission quality information of the Bluetooth connection and transmission environment information of the electronic device, wherein the transmission environment information includes other information in addition to the Bluetooth connection; A processing module is used to adjust the current data transmission parameters of the Bluetooth connection to target data transmission parameters that match the transmission quality information and / or the transmission environment information, wherein the target information includes at least one of the transmission quality information and the transmission environment information.

12. An electronic device, characterized in that: The system comprises a processor and a memory, wherein the memory is used to store code instructions; the processor is used to run the code instructions to execute the method according to any one of claims 1 to 10.

13. A computer program product, comprising computer program code, characterized in that: When the computer program code is executed on a computer, the computer is caused to implement the method according to any one of claims 1 to 10.

Citation Information

Cited By

  • Data transmission method and device based on communication protocol, equipment and medium

    CN121603924A