WO2021129821A1 - 数据传输方法、装置、存储介质及终端设备 - Google Patents

数据传输方法、装置、存储介质及终端设备 Download PDF

Info

Publication number
WO2021129821A1
WO2021129821A1 PCT/CN2020/139537 CN2020139537W WO2021129821A1 WO 2021129821 A1 WO2021129821 A1 WO 2021129821A1 CN 2020139537 W CN2020139537 W CN 2020139537W WO 2021129821 A1 WO2021129821 A1 WO 2021129821A1
Authority
WO
WIPO (PCT)
Prior art keywords
scan
bluetooth
data
data packet
type
Prior art date
Application number
PCT/CN2020/139537
Other languages
English (en)
French (fr)
Inventor
龚金华
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to EP20907629.8A priority Critical patent/EP4080919A4/en
Publication of WO2021129821A1 publication Critical patent/WO2021129821A1/zh
Priority to US17/808,654 priority patent/US20220330000A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/16Vocoder architecture
    • G10L19/18Vocoders using multiple modes
    • G10L19/24Variable rate codecs, e.g. for generating different qualities using a scalable representation such as hierarchical encoding or layered encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • H04L1/0007Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format by modifying the frame length
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0009Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the channel coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • H04W28/22Negotiating communication rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W68/00User notification, e.g. alerting and paging, for incoming communication, change of service or the like
    • H04W68/005Transmission of information for alerting of incoming communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W68/00User notification, e.g. alerting and paging, for incoming communication, change of service or the like
    • H04W68/02Arrangements for increasing efficiency of notification or paging channel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/54Allocation or scheduling criteria for wireless resources based on quality criteria
    • H04W72/543Allocation or scheduling criteria for wireless resources based on quality criteria based on requested quality, e.g. QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/14Spectrum sharing arrangements between different networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • This application relates to the field of computer technology, and in particular to a data transmission method, device, storage medium and terminal equipment.
  • terminal devices such as mobile phones support simultaneous connection of multiple Bluetooth devices, which requires the mobile phone to keep the query scan and page scan always turned on so that other Bluetooth devices can discover and connect to the terminal device.
  • the scan type with a wider scan window is usually used for scanning.
  • the terminal device When the terminal device has been connected to a Bluetooth device and is performing a scanning operation during data transmission, it is difficult for the terminal device to transmit data in the corresponding scanning window. Therefore, if the transmission signal is not good, etc., it is difficult for the terminal device to transmit data. Data transmission is more unstable, which leads to stuttering and other phenomena.
  • the scan parameters of the Bluetooth scan are often default factory settings, which makes it difficult to meet the different requirements of users for connection speed and transmission stability in different usage scenarios.
  • the embodiments of the present application provide a data transmission method, device, storage medium, and terminal device, which can adjust the scanning parameters of the Bluetooth scan to meet the different needs of users for data transmission stability and Bluetooth connection speed in different usage scenarios.
  • the technical solution is as follows:
  • an embodiment of the present application provides a data transmission method, and the method includes:
  • Bluetooth Based on the scan parameter or/and the data packet, Bluetooth transmits data to the target Bluetooth device.
  • an embodiment of the present application provides a data transmission device, the device including:
  • the parameter adjustment module is used to adjust the scanning parameters of Bluetooth or/and adjust the data packet of the transmission data when it is determined that the preset condition is satisfied;
  • the data transmission module is used for Bluetooth transmission of data to the target Bluetooth device based on the scan parameter or/and the data packet.
  • an embodiment of the present application provides a computer storage medium that stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above method steps.
  • an embodiment of the present application provides a terminal device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is adapted to be loaded by the processor and execute the above method steps .
  • a terminal device which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is adapted to be loaded by the processor and execute the above method steps .
  • the scanning parameters of the Bluetooth or/and the data packet of the transmission data are adjusted, and based on the scanning parameters or/and the data packet, the Bluetooth transmission is performed to the target Bluetooth device data.
  • the scan parameters of Bluetooth you only need to wait for a shorter scan time to complete the data transmission, and the transmission interval between two adjacent data packets is closer.
  • the data packet of the transmitted data the transmission code The rate is lower, the transmission time interval between two adjacent data packets is shorter, and the frequency of packet transmission is higher. Or combining the two aspects can more obviously improve the stability of data transmission and reduce the packet loss rate.
  • the scanning parameters of the Bluetooth scan can be adjusted to meet the different needs of users for data transmission stability and Bluetooth connection speed in different usage scenarios. On the target Bluetooth device side, the retransmitted data can also be read quickly to avoid jams.
  • FIG. 1 is a schematic flowchart of a data transmission method provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a data transmission method provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a data transmission system provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of an example of a scanning window provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an example of data packet transmission provided by an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of a data transmission method provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of the principle of Bluetooth state transition provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of comparison before and after adjustment of scanning parameters according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of transmission before adjustment of scanning parameters according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of transmission after adjusting scan parameters according to an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a data transmission device provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a data transmission device provided by an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • the data transmission method provided by the embodiment of the present application will be described in detail with reference to FIG. 1 to FIG. 10.
  • the method can be implemented by relying on a computer program, and can be run on a data transmission device based on the von Neumann system.
  • the computer program can be integrated in the application or run as an independent tool application.
  • the task distribution device in the embodiment of the present application may be a terminal device.
  • the terminal device includes but is not limited to: a smart phone, a personal computer, a tablet computer, a handheld device, a vehicle-mounted device, a wearable device, a computing device, or a wireless connection. Other processing equipment of the modem, etc.
  • FIG. 1 is a schematic flowchart of a data transmission method provided by an embodiment of this application. Taking the adjustment of scanning parameters as an example for description, as shown in FIG. 1, the method of the embodiment of the present application may include the following steps:
  • the preset condition can be set according to the user's requirements for the stability of data transmission and the realization of Bluetooth connection speed by other devices in actual application scenarios.
  • the Bluetooth signal is greatly interfered by the environment.
  • it can be described by the environmental interference value.
  • the environmental interference value can be reflected by the signal strength RSSI value, or it can be reflected by the packet loss situation.
  • determining that the environmental interference value of the terminal device transmitting data to the target Bluetooth device meets the threshold condition includes: judging the terminal The number of packet loss when the device uses Bluetooth to transmit data to the target Bluetooth device; when it is determined that the terminal device uses Bluetooth to transmit data to the target Bluetooth device, the number of packet loss is greater than the preset value, and the preset value is greater than or An integer equal to 1, it is considered that the environmental interference value meets the threshold condition.
  • the signal strength RSSI value of the transmitted data is less than a certain preset value, it is considered that the environmental interference value meets the threshold condition, and the adjustment step may be performed.
  • the stability of the data transmission is required to be higher. Therefore, a feasible implementation manner is to determine that the terminal device needs to be When multimedia data is transmitted to the target Bluetooth device, the adjustment step is executed. Further, the preset conditions can also be determined according to the importance of the transmission data, real-time performance, etc., and even the solution can be manually triggered for adjustment when the user feels a freeze.
  • Bluetooth connection speed may be adjusted according to corresponding needs. For example, after multimedia data transmission is over, adjust back to the default Bluetooth scanning parameters.
  • the default Bluetooth scanning parameters can be set to the commonly used methods in the prior art at the factory, or the default Bluetooth scanning parameters can be set at the factory to be the method disclosed in the invention that is conducive to the stability of data transmission. , And then adjust according to the use scenario (preset conditions) in the actual use process, and the above methods are all included in the protection scope of this application.
  • Adjustment step adjust the scan parameters of the Bluetooth scan
  • the scan parameters include some or all of the following: the duration of the scan window (such as scan type), the start time of the first scan window corresponding to the query scan, and the start time of the second scan window corresponding to the paging scan. It is understandable that the scanning parameters of the Bluetooth scanning can be adjusted when the Bluetooth module of the terminal device is turned on, so that the Bluetooth module can perform Bluetooth scanning according to the adjusted scanning parameters.
  • adjusting the scan window duration of the Bluetooth scan includes:
  • the scan time becomes shorter, so that the time during which data can be transmitted is correspondingly increased, making data transmission more stable.
  • adjusting the start time of the first scan window of the query scan and the second scan window of the paging scan includes:
  • the start time of the first scan window of the inquiry scan and the second scan window of the paging scan is set to be the same or to be separated by a first preset time threshold.
  • the start time of the scanning windows of the two can be the same or different, in order to ensure the stability of data transmission, especially in multimedia data transmission.
  • a preferred way is to set the start time of the first scan window and the start time of the second scan window to be the same, especially when the duration of the two scan windows is the same, so that the two completely overlap Furthermore, if the length of the scanning window is also shortened, then the time occupied by scanning will be further reduced, thereby leaving more time for data transmission and ensuring the stability of the transmission; a feasible way is to start the two
  • the time is set to the first preset time threshold of the interval.
  • the first preset time threshold can make the two scanning windows do not overlap. For example, the start time of the second scanning window ends at the first scanning window duration and passes through the second preset time threshold. Start after the time threshold.
  • the second preset time threshold plus the first scan window duration is greater than or equal to the time for the audio terminal to pack an audio data packet and transmit it to the Bluetooth transceiver module for buffering. It can ensure that after Bluetooth sends a packet of data, if there is enough time to buffer the data packet immediately after Bluetooth scanning, and make the gap between the two scanning windows (the end of the first scanning window to the beginning of the second scanning window) sufficient for Bluetooth to send at least One packet of data, for example, the second preset time threshold is greater than or equal to the sending time of one data packet, so as to ensure that at least one packet of data can be sent between two scanning windows, thereby avoiding data that cannot be sent for a long time. Caton phenomenon.
  • the Bluetooth module performs Bluetooth scanning according to the adjusted scanning parameters, and transmits data to the target Bluetooth device during the rest time of the Bluetooth scanning window. Since the Bluetooth scanning parameters can be adjusted according to the usage scenario (preset conditions), it can satisfy users in different usage scenarios. The following requirements, especially when there is important data transmission, can guarantee the stability of data transmission.
  • the data packet of the transmitted data may also be adjusted, and the data packet includes: a payload and/or a data code rate. It is better to combine the scanning parameters and data packets to adjust, and to fully consider the comprehensive influence of scanning parameters, payload, and data transmission code rate on the stability of data transmission. For example, set a reasonable payload value during the scan window, so that when data cannot be transmitted, a data packet matching the payload value is generated and waited for transmission, so that the packet can be sent immediately after the end of the scan window without waiting, and further This saves the packet sending time interval between two adjacent data packets, which can effectively guarantee the stability of data transmission.
  • the scanning parameters of the Bluetooth are adjusted, and data is transmitted to the target Bluetooth device Bluetooth based on the scanning parameters.
  • the scanning parameters of the Bluetooth scan can be adjusted to meet the different needs of users for data transmission stability and Bluetooth connection speed in different usage scenarios.
  • FIG. 2 is a schematic flowchart of a data transmission method provided by an embodiment of this application. Taking the preset condition as the environmental interference value, adjusting the scanning parameter or/and the data packet of the transmitted data as an example for description, as shown in FIG. 2, the method of the embodiment of the present application may include the following steps:
  • the Bluetooth is used to transmit data between the terminal device and the target Bluetooth device.
  • the corresponding system architecture is shown in Figure 3.
  • the system architecture 100 may include a terminal device 101, a Bluetooth network, and one or more of Bluetooth devices 102, 103, and 104.
  • the Bluetooth network is used to provide a medium for communication links between the terminal device 101 and the Bluetooth devices 102, 103, and 104.
  • Bluetooth is a radio technology that supports short-distance communication (generally within 10m) of devices, and can exchange wireless information among many devices including mobile phones, PDAs, wireless headsets, notebook computers, and related peripherals.
  • the use of Bluetooth technology can effectively simplify the communication between terminal devices, and also successfully simplify the communication between the device and the Internet, so that data transmission becomes more rapid and efficient, and broadens the way for wireless communication.
  • the Bluetooth device 102 may be a Bluetooth device cluster composed of multiple Bluetooth devices or multiple independent Bluetooth devices within a certain distance.
  • the user can use the terminal device 101 to interact with the Bluetooth devices 102, 103, 104 through the Bluetooth network to receive or send messages, and so on.
  • the terminal device 101 can be various electronic devices with a display screen, including but not limited to smart phones, tablet computers, portable computers, desktop computers, Bluetooth headsets, Bluetooth cars, Bluetooth headsets, Bluetooth MP3, Bluetooth flash drives, Bluetooth adapters, Bluetooth Gateway, Bluetooth CF card, etc.
  • the Bluetooth device may include, but is not limited to, a smart phone, a tablet computer, a portable computer, a desktop computer, a Bluetooth headset, a Bluetooth car, a Bluetooth headset, a Bluetooth MP3, a Bluetooth flash disk, a Bluetooth adapter, a Bluetooth gateway, a Bluetooth CF card, and so on.
  • the terminal device 101 transmits data to the Bluetooth device 102 as an example.
  • the data may be audio data, which is transmitted in the form of data packets.
  • the data packet is transmitted in the default ACL data packet (such as 2-DH5).
  • Each data packet specifies a different payload and transmission code rate.
  • the Bluetooth scanning function includes inquiry scan and page scan.
  • Inquiry scan means that the Bluetooth device is in a discoverable state. In this state, the Bluetooth device scans for inquiry requests from other Bluetooth devices, allowing other devices to discover the device and obtain information such as the Bluetooth name.
  • Page scan means that the Bluetooth is in a connectable state. In this state, the Bluetooth device obtains connection requests from other devices by scanning.
  • Each scan of Bluetooth lasts for a period of time, that is, each scan corresponds to a scan window.
  • the scan window is the time width of a scan, which is divided into inquiry scan window and page scan window.
  • data transmission cannot be performed during the operation of the scan window .
  • the time difference between the start times of two consecutive scan windows is the scan interval, as shown in Fig. 4, including the scan rest time and the scan progress time.
  • both include standard scan and interlaced scan.
  • the actual scan window of interlaced scan is twice the scan window of standard scan.
  • the terminal device uses Bluetooth to transmit data to the target Bluetooth device is greater than a preset value, and the preset value is an integer greater than or equal to 1. If yes, it indicates that the probability of packet loss during data transmission is high or has been Packet loss occurred. If the packet is lost, the data packet needs to be retransmitted.
  • the Bluetooth of the terminal device If the Bluetooth of the terminal device is turned on, adjust the Bluetooth scan type from the interlaced scan type to the standard scan type to reduce the scan time; or set the first scan window of the inquiry scan and the second scan window of the page scan to not part Overlap, that is, the start time of the first scan window of the inquiry scan and the second scan window of the paging scan are set to the same or a preset time threshold to prevent the first scan window from partially overlapping or adjacent to the second scan window Increase the time that data cannot be transmitted, thereby increasing the data transmission interval; or adjust the scan type of Bluetooth scan from interlaced scan type to standard scan type, and set the first scan window of inquiry scan and the second scan window of page scan The start time is set to the same or interval preset time threshold.
  • the data packet of the transmission data can be adjusted from the first data packet to the second data packet, and the first payload corresponding to the first data packet is larger than that corresponding to the second data packet. And/or, the first data code rate corresponding to the first data packet is greater than the second data code rate corresponding to the second data packet, so that the effective loading and transmission code rate can be reduced, and thus Make the packet sending interval between adjacent data packets short, and increase the packet frequency.
  • you are not limited to the agreement of the standard Bluetooth protocol, you can also adjust the scan window duration according to other custom rules. The specific adjustment can be carried out according to actual needs to weigh the stability of data transmission and allow other Bluetooth connections.
  • the scan type, scan period, and data grouping can also be adjusted at the same time, and various methods can be combined to coordinate adjustments.
  • the target Bluetooth device includes a storage space.
  • the target Bluetooth device reads and plays each data packet in turn.
  • the terminal device continues to send the data packets to the target.
  • the Bluetooth device sends the remaining packets.
  • the Bluetooth device can buffer 3 data packets. After the terminal device sends 3 data packets to the Bluetooth device, the Bluetooth device starts to read the first data packet, and at the same time, the terminal device continues to the Bluetooth headset Send the fourth data packet.
  • Bluetooth Based on the scan parameter or/and the data packet, Bluetooth transmits data to the target Bluetooth device.
  • the standard scanning type is used to scan for Bluetooth devices, and the first data packet is used to transmit data to the target Bluetooth device; or the interlaced scanning type is used to scan for Bluetooth devices, and the second data packet is used to transmit data to the target Bluetooth device.
  • the target Bluetooth device transmits data; or the standard scan type is used to scan the Bluetooth device, and the second data packet is used to transmit data to the target Bluetooth device.
  • any of the above methods can reduce the scanning time or increase the frequency of packet sending, so that the target Bluetooth device can receive the data packet and play it faster, the time interval between adjacent data packets is more uniform, and the data packet transmission is more stable. Caton.
  • the scanning parameters of Bluetooth or/and the data packet of the transmission data are adjusted, and based on the scanning The parameters or/and the data packet are used to transmit data to the target Bluetooth device.
  • the scan parameters of the Bluetooth scan you only need to wait for a shorter scan time to complete the data retransmission, and the transmission interval between two adjacent data packets is closer.
  • the data packets of the transmitted data The transmission code rate is lower, the transmission time interval between two adjacent data packets is shorter, and the packet transmission frequency is higher. Or combining the two aspects can more obviously improve the stability of data transmission.
  • the retransmitted data can also be read quickly to avoid jams.
  • FIG. 6 is a schematic flowchart of a data transmission method provided by an embodiment of this application.
  • the embodiment of the present application takes the simultaneous adjustment of scanning parameters and data grouping as an example for detailed description.
  • the data transmission method may include the following steps:
  • S201 Obtain the number of packet loss occurrences in data transmitted by the terminal device using Bluetooth to the target Bluetooth device;
  • the data transmitted by the terminal device to the Bluetooth device may be audio data, and the audio data is sent in the form of data packets.
  • environmental interference and low signal-to-noise ratio may cause packet loss, making the data packet unsuccessful to reach the destination.
  • Bluetooth is a radio technology that supports short-distance communication (generally within 10m) of devices. It can exchange information wirelessly among many devices including mobile phones, PDAs, wireless headsets, notebook computers, and related peripherals.
  • the use of Bluetooth technology can effectively simplify the communication between terminal devices, and also successfully simplify the communication between the device and the Internet, so that data transmission becomes more rapid and efficient, and broadens the way for wireless communication.
  • the target Bluetooth device each time the terminal device sends a data packet to the target Bluetooth device, the target Bluetooth device will feedback a response message to the terminal device after successfully receiving it, indicating that the data packet has been sent successfully. If no response message is received within the time period, it indicates that packet loss has occurred. Furthermore, if it can be detected once, the number of packet loss increases by one accordingly.
  • S202 Determine that the number of packet loss occurrences when the terminal device uses Bluetooth to transmit data to the target Bluetooth device is greater than a preset value
  • the preset value is an integer greater than or equal to 1, that is, as long as packet loss is detected, the scan parameters and data packets can be adjusted.
  • S203 Adjust the scan type of the query scan from the interlace scan type to the standard scan type, and adjust the scan type of the page scan from the interlace scan type to the standard scan type;
  • terminal devices support simultaneous connection of multiple Bluetooth devices (for example, when a mobile phone is connected to a Bluetooth headset to play games, a Bluetooth gamepad can also be connected to a mobile phone), this requires the terminal device to keep inquiry scan and page scan always on to allow other Bluetooth The device can be discovered and connected.
  • the terminal device searches for nearby Bluetooth devices by query.
  • the terminal device (the query device) selects a new frequency every 312.5 microseconds to send the query, and the Bluetooth device (the queried device) selects a new listening frequency every 1.28s .
  • the inquiring and inquired devices use the universal inquiry access code as the inquiry address.
  • the terminal device calls other devices to join its piconet through paging.
  • the paging device (terminal device) selects a new frequency to send paging every 312.5 microseconds.
  • the paged device Select a new monitoring frequency every 1.28s.
  • Figure 7 is a Bluetooth state transition diagram, in which the STANDBY state is the default state of the terminal device. In this mode, the device is in a low power consumption state.
  • the CONNECTION state is the connection state of the terminal device.
  • Page This sub-state is usually called connection (paging), and the operation of connecting/activating the corresponding slave is called page. It means that the device that initiates the connection (the master device) knows the address of the device to be connected. So you can paging directly.
  • Page scan This sub-state corresponds to Page, which is the state of the slave waiting to be Paged. If you want to be paged, you must be in the page scan state.
  • Inquiry In the scanning state, the device in this state is to scan the surrounding devices. It doesn't know what equipment is around, and it needs to inquire about it through broadcasting. The device under Inquiry Scan can respond to this query.
  • Inquiry scan It is a device that is usually seen and can be discovered. Reflected in the upper layer, we click on the device in the android system to be discovered by surrounding devices, and the device is in such a state.
  • Slave response This is in the process of Page. Slave receives the Page msg from the Master, and it responds to the corresponding Page response msg, and at the same time it enters the slave response state.
  • Master response After the master receives the msg of the slave response, it will enter the master response state and will send an FHS packet at the same time.
  • Inquiry response After the Inquiry scan device receives the Inquiry msg, it will send the Inquiry response msg, and then it will enter the Inquiry response state.
  • the Inquiry scan and Page scan are turned on simultaneously for other Bluetooth devices to discover and connect.
  • the terminal device when the packet loss is confirmed, the data packet needs to be retransmitted, and the data cannot be transmitted during the scanning window. In fact, each Bluetooth scan will last for a period of time.
  • the terminal device usually uses the interlaced scan type to scan by default, as shown in Figure 8, and the scan time of the interlaced scan is the standard scan.
  • the scan type of the inquiry scan is adjusted from the interlaced scan type to the standard scan type
  • the scan type of the page scan is adjusted from the interlaced scan type to the standard scan type.
  • the scan window duration can be carried out according to actual needs to weigh the stability of data transmission and allow other Bluetooth connections.
  • S204 Set the start time of the first scan window of the inquiry scan and the second scan window of the paging scan to be the same or to be separated by a preset time threshold;
  • the first preset time threshold may be such that the two scanning windows do not partially overlap, that is, they completely overlap or are not connected.
  • the inquiry scan is adjacent to the page scan, as shown in Figure 8, then the scan duration in one cycle is T1.
  • T2 1/4T1
  • T3 1/4T1
  • the transmission data can reach the target after the inquiry scan ends.
  • the duration that cannot be transmitted between two data packets is 1/4T1.
  • the transmission time interval between the data packets is changed, and then the packet sending frequency is changed.
  • the ACL data packet list which defines multiple types of data packets.
  • the corresponding first effective load is 0-679bytes, and the first data code rate is 869.1kb/s.
  • the corresponding second effective load is 0-367bytes, and the second data code rate is 782.9kb/s, which can reduce the effective load and transmission code rate, thereby shortening the interval between data packets and increasing the frequency of sending packets.
  • the payload is the part of the data that records the information.
  • the original data should be transmitted in batches, and certain auxiliary information should be added to the beginning and end of each batch of data, such as the size of the batch of data, and the checksum. This is equivalent to adding some coats to the batched original data. These coats play a role in marking and make the original data not easy to lose.
  • a batch of data plus its "jacket" forms the basic transmission unit in the transmission channel, called a data frame or a data packet.
  • the original data of the recorded information in these data frames is the payload.
  • the body of the message is the jacket. That is, auxiliary information such as the size of the original data is marked.
  • S206 Scan for Bluetooth devices using the standard scan type, and use the second data packet to transmit data to the target Bluetooth device via Bluetooth.
  • using the standard scanning type to scan for Bluetooth devices and using the second data packet to transmit data to the target Bluetooth device can reduce the scanning time and increase the frequency of packet sending, thereby enabling the target Bluetooth device to receive faster The data packets are played, the time interval between adjacent data packets is more even, and the data packet transmission is more stable.
  • inquiry scan or page scan can be turned off completely, so that the stability of data transmission is better.
  • the scanning parameters of the Bluetooth scan and the data packet of the transmission data may be adjusted, and based on The scan type and the data packet are used for Bluetooth transmission of data to the target Bluetooth device.
  • the scanning parameters of the Bluetooth scan you only need to wait for a short scanning time to complete the data retransmission, and the transmission interval between two adjacent data packets is closer, which can improve the stability of data transmission; on the other hand, according to Environmental interference adjusts the data packet of the transmitted data, so that the transmission code rate is lower, the transmission time interval between two adjacent data packets is shorter, and the packet transmission frequency is higher. Optimizing the stability of data transmission from multiple angles can optimize the delay of the entire path. In addition, there is no need to seek help from the Bluetooth chip manufacturer, the implementation is relatively simple, and the versatility is relatively good. On the target Bluetooth device side, the retransmitted data can also be read quickly to avoid jams.
  • the following describes the embodiments of the present application by taking the mobile phone transmitting audio and video data to the Bluetooth device and turning on inquiry scan and page scan as an example.
  • the mobile phone inquiry scan and page scan are both turned on, and usually their scan interval) and the scan window are set to the same.
  • the execution time of the scan windows of the two are adjacent, so in a certain interference environment, It is easy to happen that the peer Bluetooth device cannot receive Bluetooth audio and video data for more than 40ms.
  • the Bluetooth audio and video data can be transmitted more evenly.
  • the mobile phone transmits two adjacent ones.
  • the maximum time interval of data packets is about 15ms, which is obviously more uniform than the current technology data transmission, that is, the stability is better.
  • FIG. 11 shows a schematic structural diagram of a data transmission apparatus provided by an exemplary embodiment of the present application.
  • the task distribution device can be implemented as all or a part of the terminal device through software, hardware or a combination of the two.
  • the device 1 includes a parameter adjustment module 10 and a data transmission module 20.
  • the parameter adjustment module 10 is used to adjust the scan parameters of the Bluetooth scan or/and adjust the data packet of the transmission data when it is determined that the preset condition is satisfied;
  • the data transmission module 20 is configured to transmit data to the target Bluetooth device Bluetooth based on the scan parameter or/and the data packet.
  • parameter adjustment module 10 is specifically used for:
  • Adjust the duration of the Bluetooth scan window and/or adjust the start time of the first scan window and the second scan window of the Bluetooth scan, wherein,
  • the adjusting the scanning window duration of the Bluetooth is specifically used for:
  • the adjusting the start time of the first scanning window and the second scanning window of the Bluetooth is specifically used for:
  • the start time of the first scan window of the query scan and the second scan window of the page scan is set to be the same or a preset time threshold value apart.
  • parameter adjustment module 10 is specifically used for:
  • the Bluetooth scan includes an inquiry scan, and the scan type of the inquiry scan is adjusted from an interlaced scan type to a standard scan type; or,
  • the Bluetooth scan includes a page scan, and the scan type of the page scan is adjusted from an interlaced scan type to a standard scan type; or,
  • the Bluetooth scan includes an inquiry scan and a page scan.
  • the scan type of the inquiry scan is adjusted from an interlaced scan type to a standard scan type
  • the scan type of the page scan is adjusted from an interlaced scan type to a standard scan type.
  • the data packet includes a payload and/or a data code rate
  • the parameter adjustment module 10 is specifically configured to:
  • the data transmission module 20 is specifically configured to:
  • the standard scan type is used to scan for Bluetooth devices, and the second data packet is used to transmit data to the target Bluetooth device via Bluetooth.
  • parameter adjustment module 10 is specifically used for:
  • the device further includes:
  • a packet loss frequency acquisition module 30 configured to acquire the number of packet loss occurrences in data transmitted by the terminal device using Bluetooth to the target Bluetooth device;
  • the parameter adjustment module 10 is specifically used for:
  • the number of packet loss occurrences when the terminal device uses Bluetooth to transmit data to the target Bluetooth device is greater than a preset value, and the preset value is an integer greater than or equal to 1.
  • the data transmission device provided in the above embodiment executes the data transmission method
  • only the division of the above functional modules is used as an example.
  • the above functions can be allocated by different functional modules according to needs.
  • the data transmission device and the data transmission method embodiment provided by the foregoing embodiment belong to the same concept, and the implementation process is detailed in the method embodiment, which will not be repeated here.
  • the scan parameters of the Bluetooth scan and/or the data packet of the transmission data are adjusted, and based on the scan type and/or the data packet, the The target Bluetooth device Bluetooth transmits data.
  • the scan window length is reduced and/or the scan window does not partially overlap, so that the transmission interval between two adjacent data packets is closer, which can improve the stability of data transmission; on the other hand,
  • it is possible to adjust the data packet of the transmission data to make the transmission code rate lower, the transmission time interval between two adjacent data packets is shorter, and the packet transmission frequency is higher. Optimizing the stability of data transmission from multiple angles can optimize the delay of the entire path.
  • the scanning parameters of the Bluetooth scan can be adjusted to meet the different needs of users for data transmission stability and Bluetooth connection speed in different usage scenarios.
  • the implementation is relatively simple and the versatility is better.
  • the retransmitted data can also be read quickly to avoid jams.
  • the embodiment of the present application also provides a computer storage medium.
  • the computer storage medium may store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps of the embodiments shown in FIGS. 1 to 10 above.
  • the specific execution process please refer to the specific descriptions of the embodiments shown in FIG. 1 to FIG. 10, which will not be repeated here.
  • the terminal device 1000 may include: at least one processor 1001, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002.
  • the communication bus 1002 is used to implement connection and communication between these components.
  • the user interface 1003 may include a display screen (Display) and a camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
  • Display display screen
  • Camera Camera
  • the optional user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
  • the processor 1001 may include one or more processing cores.
  • the processor 1001 uses various excuses and lines to connect various parts of the entire terminal device 1000, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1005, and calling data stored in the memory 1005.
  • Various functions and processing data of the terminal device 1000 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 1001 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like.
  • the CPU mainly processes the operating system, user interface, and application programs; the GPU is used to render and draw the content that the display needs to display; the modem is used to process wireless communication. It is understandable that the above-mentioned modem may not be integrated into the processor 1001, but may be implemented by a chip alone.
  • the memory 1005 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory).
  • the memory 1005 includes a non-transitory computer-readable storage medium.
  • the memory 1005 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 1005 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing the operating system and instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), Instructions and the like used to implement the above method embodiments; the storage data area can store the data and the like involved in the above method embodiments.
  • the memory 1005 may also be at least one storage device located far away from the foregoing processor 1001. As shown in FIG. 13, the memory 1005, which is a computer storage medium, may include an operating system, a network communication module, a user interface module, and a data transmission application program.
  • the user interface 1003 is mainly used to provide an input interface for the user to obtain data input by the user; and the processor 1001 can be used to call the data transmission application stored in the memory 1005, and specifically Do the following:
  • Bluetooth Based on the scan parameter or/and the data packet, Bluetooth transmits data to the target Bluetooth device.
  • the processor 1001 specifically performs the following operations when performing adjustment of Bluetooth scanning parameters:
  • Adjust the duration of the Bluetooth scan window and/or adjust the start time of the first scan window and the second scan window of the Bluetooth scan, wherein,
  • the adjusting the scanning window duration of the Bluetooth includes:
  • the adjusting the start time of the first scanning window and the second scanning window of the Bluetooth includes:
  • the processor 1001 when the processor 1001 adjusts the scan type of the Bluetooth scan from the interlaced scan type to the standard scan type, the processor 1001 specifically performs the following operations:
  • the Bluetooth scan includes an inquiry scan, and the scan type of the inquiry scan is adjusted from an interlaced scan type to a standard scan type; or,
  • the Bluetooth scan includes a page scan, and the scan type of the page scan is adjusted from an interlaced scan type to a standard scan type; or,
  • the Bluetooth scan includes an inquiry scan and a page scan.
  • the scan type of the inquiry scan is adjusted from an interlaced scan type to a standard scan type
  • the scan type of the page scan is adjusted from an interlaced scan type to a standard scan type.
  • the data packet includes a payload and/or a data code rate
  • the processor 1001 specifically performs the following operations when adjusting the data packet for transmitting data:
  • the processor 1001 when the processor 1001 executes Bluetooth transmission of data to the target Bluetooth device based on the scan type or/and the data packet, it specifically executes the following operations:
  • the standard scan type is used to scan for Bluetooth devices, and the second data packet is used to transmit data to the target Bluetooth device via Bluetooth.
  • the processor 1001 when the processor 1001 determines that the preset condition is satisfied, the processor 1001 specifically executes the following operations:
  • the processor 1001 further performs the following operations before determining that the environmental interference value of the terminal device transmitting data to the target Bluetooth device meets the threshold condition:
  • the processor 1001 When determining that the environmental interference value of the terminal device using Bluetooth to transmit data to the target Bluetooth device meets the threshold condition, the processor 1001 specifically performs the following operations:
  • the number of packet loss occurrences when the terminal device uses Bluetooth to transmit data to the target Bluetooth device is greater than a preset value, and the preset value is an integer greater than or equal to 1.
  • the scan parameters of the Bluetooth scan and/or the data packet of the transmission data are adjusted, and based on the scan type and/or the data packet, the The target Bluetooth device Bluetooth transmits data.
  • the scan window length is reduced and/or the scan window does not partially overlap, so that the transmission interval between two adjacent data packets is closer, which can improve the stability of data transmission; on the other hand,
  • it is possible to adjust the data packet of the transmission data to make the transmission code rate lower, the transmission time interval between two adjacent data packets is shorter, and the packet transmission frequency is higher. Optimizing the stability of data transmission from multiple angles can optimize the delay of the entire path.
  • the scanning parameters of the Bluetooth scan can be adjusted to meet the different needs of users for data transmission stability and Bluetooth connection speed in different usage scenarios.
  • the implementation is relatively simple and the versatility is better.
  • the retransmitted data can also be read quickly to avoid jams.
  • the program can be stored in a computer readable storage medium, and the program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments.
  • the storage medium can be a magnetic disk, an optical disc, a read-only storage memory, or a random storage memory, etc.

Abstract

本申请实施例公开了一种数据传输方法、装置、存储介质及终端设备,方法包括:当确定满足预设条件时,调整蓝牙的扫描参数或/和调整传输数据的数据分组;基于所述扫描参数或/和所述数据分组,向目标蓝牙设备蓝牙传输数据。因此,采用本申请实施例,可以通过调整蓝牙扫描的扫描参数等满足用户在不同使用场景下对数据传输稳定性和蓝牙连接速度的不同需求。

Description

数据传输方法、装置、存储介质及终端设备 技术领域
本申请涉及计算机技术领域,尤其涉及一种数据传输方法、装置、存储介质及终端设备。
背景技术
目前手机等终端设备都支持同时连接多个蓝牙设备,这就要求手机保持查询扫描和寻呼扫描一直处于打开状态,让其他蓝牙设备可以发现并连接终端设备。为了让发现和连接速度更快,通常选用扫描窗口较宽的扫描类型进行扫描。
而当该终端设备已经连接上某一蓝牙设备并在进行数据传输的过程中执行扫描操作时,在对应的扫描窗口内终端设备是难以传输数据的,从而在传输信号不好等情况下,使得数据传输更不稳定,从而导致卡顿等现象。而现有技术中蓝牙扫描的扫描参数采用的往往是默认出厂设置,从而难以满足用户在不同使用场景下,对连接速度和传输稳定性的不同需求。
发明内容
本申请实施例提供了一种数据传输方法、装置、存储介质及终端设备,可以通过调整蓝牙扫描的扫描参数等满足用户在不同使用场景下对数据传输稳定性和蓝牙连接速度的不同需求。所述技术方案如下:
第一方面,本申请实施例提供了一种数据传输方法,所述方法包括:
当确定满足预设条件时,调整蓝牙的扫描参数或/和调整传输数据的数据分组;
基于所述扫描参数或/和所述数据分组,向目标蓝牙设备蓝牙传输数据。
第二方面,本申请实施例提供了一种数据传输装置,所述装置包括:
参数调整模块,用于当确定满足预设条件时,调整蓝牙的扫描参数或/和调整传输数据的数据分组;
数据传输模块,用于基于所述扫描参数或/和所述数据分组,向所述目标蓝牙设备蓝牙传输数据。
第三方面,本申请实施例提供一种计算机存储介质,所述计算机存储介质存储有多条指令,所述指令适于由处理器加载并执行上述的方法步骤。
第四方面,本申请实施例提供一种终端设备,可包括:处理器和存储器;其中,所述存储器存储有计算机程序,所述计算机程序适于由所述处理器加载并执行上述的方法步骤。本申请一些实施例提供的技术方案带来的有益效果至少包括:
在本申请实施例中,当确定满足预设条件时,调整蓝牙的扫描参数或/和调整传输数据的数据分组,并基于所述扫描参数或/和所述数据分组,向目标蓝牙设备蓝牙传输数据。一方面,通过调整蓝牙的扫描参数,只需要等待较短的扫描时间完成数据传输,相邻两数据包之间的传输间隔更接近,另一方面,通过调整传输数据的数据分组,使得传输码率更低,两相邻数据包的传输时间间隔更短,发包频率更高。或者将两方面结合,可以更明显的提高数据传输的稳定性,降低丢包率。可以通过调整蓝牙扫描的扫描参数等满足用户在不同使用场景下对数据传输稳定性和蓝牙连接速度的不同需求。在目标蓝牙设备端也可以较快读取到重传数据而避免卡顿。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一种数据传输方法的流程示意图;
图2是本申请实施例提供的一种数据传输方法的流程示意图;
图3是本申请实施例提供的一种数据传输系统的结构示意图;
图4是本申请实施例提供的一种扫描窗口的举例示意图;
图5是本申请实施例提供的一种数据包传输的举例示意图;
图6是本申请实施例提供的一种数据传输方法的流程示意图;
图7是本申请实施例提供的一种蓝牙状态转换的原理示意图;
图8是本申请实施例提供的一种扫描参数调整前后的对比示意图;
图9是本申请实施例提供的一种扫描参数调整前的传输示意图;
图10是本申请实施例提供的一种扫描参数调整后的传输示意图;
图11是本申请实施例提供的一种数据传输装置的结构示意图;
图12是本申请实施例提供的一种数据传输装置的结构示意图;
图13是本申请实施例提供的一种终端设备的结构示意图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施例方式作进一步地详细描述。
下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。
在本申请的描述中,需要理解的是,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。此外,在本申请的描述中,除非另有说明,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。下面将结合附图1-附图10,对本申请实施例提供的数据传输方法进行详细介绍。该方法可依赖于计算机程序实现,可运行于基于冯诺依曼体系的数据传输装置上。该计算机程序可集成在应用中,也可作为独立的工具类应用运行。其中,本申请实施例中的任务分配装置可以为终端设备,所述终端设备包括但不限于:智能手机、个人电脑、平板电脑、手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其它处理设备等。
请参见图1,为本申请实施例提供的一种数据传输方法的流程示意图。以调节扫描参数为例进行说明,如图1所示,本申请实施例的所述方法可以包括以下步骤:
S10.确定步骤:当确定满足预设条件时,执行调整步骤;
该预设条件可以根据用户在实际应用场景中对数据传输稳定性和被其他设备发现实现蓝牙连接速度的需求来设置。
一种情况下,例如受wifi等蓝牙同频段信号干扰、或者传输距离、或者传输阻挡等 影响,使得蓝牙信号受环境干扰大,这种情况下可以通过环境干扰值来描述,在环境干扰值较大时,会影响蓝牙信号,从而影响蓝牙数据传输,所以可以通过调整步骤来改善数据的传输稳定性。一种可行的实施方式,当确定所述终端设备向所述目标蓝牙设备传输数据的环境干扰值符合阈值条件,则执行所述调节步骤。该环境干扰值可以通过信号强度RSSI值来反映,也可以通过丢包情况来反映,例如,确定所述终端设备向目标蓝牙设备传输数据的环境干扰值符合阈值条件之前,包括:判断所述终端设备采用蓝牙向所述目标蓝牙设备传输的数据发生丢包的次数;当确定终端设备采用蓝牙向所述目标蓝牙设备传输数据发生丢包的次数大于预设值,所述预设值为大于或等于1的整数,则认为该环境干扰值符合阈值条件。当然,只要发生丢包就认为该环境干扰值符合阈值条件的情况也包含在上述实施方式中。又例如,当传输数据的信号强度RSSI值小于某个预设值时,则认为环境干扰值符合阈值条件,则可以执行调整步骤。
另一种情况下,当需要传输视频、音频等多媒体数据时,由于要保障传输的实时性,对数据传输的稳定性要求更高,从而,一种可行的实施方式,确定所述终端设备需向所述目标蓝牙设备传输多媒体数据,则执行所述调节步骤。进一步的,还可以根据传输数据的重要性、实时性等来确定预设条件,甚至可以当用户感受到卡顿时手动触发本方案进行调节。
上述是保障传输稳定性的场景,有的场景下用户可能更倾向于蓝牙连接速度,因此也可根据对应需求进行调整,例如,多媒体数据传输结束后,调整回默认的蓝牙扫描参数。
需要说明的是,可以在出厂时将默认的蓝牙扫描参数设置成现有技术中常用的方式,也可以在出厂时将默认的蓝牙扫描参数设置成本发明中公开的有利于数据传输稳定性的方式,然后在实际使用过程中根据使用场景(预设条件)进行调整,上述方式均包含在本申请的保护范围内。
S20.调整步骤:调整蓝牙扫描的扫描参数;
其中,扫描参数包括以下部分或全部:扫描窗口的时长(如扫描类型)、查询扫描对应的第一扫描窗口的起始时间和寻呼扫描对应的第二扫描窗口的起始时间。可以理解的是,在终端设备蓝牙模块开启时可以对蓝牙扫描的扫描参数进行调整,从而使得蓝牙模块可以按照调整后的扫描参数进行蓝牙扫描。
一种可行的实施方式,调整所述蓝牙扫描的扫描窗口时长,包括:
将蓝牙扫描的扫描类型从隔行扫描类型调整为标准扫描类型。
需要说明的是,当所述扫描窗口时长被调低时,使得扫描时间变短,从而可以传输数据的时间相应增加,使得数据传输更稳定。例如,将蓝牙扫描的扫描类型从隔行扫描类型调整为标准扫描类型,从而减少一半的扫描时间,当然如果不限于标准蓝牙协议的约定,也可以按照自定义的其他规则调低扫描窗口时长,具体调节为多少,可以根据实际需求权衡数据传输稳定性和允许其他蓝牙连接二者的需要进行。
一种可行的实施方式,调整所述查询扫描的第一扫描窗口与寻呼扫描的第二扫描窗口的起始时间,包括:
将查询扫描的第一扫描窗口与寻呼扫描的第二扫描窗口的起始时间设置为相同或间隔第一预设时间阈值。
该实施方式中,鉴于查询扫描和寻呼扫描可以同时进行,也可以错开进行,即二者扫描窗口的起始时间可以相同也可以不同,为了保障数据传输的稳定性,特别是在多媒体数据传输时,降低或避免出现查询扫描的扫描窗口(第一扫描窗口)与寻呼扫描的扫描窗口(第二扫描窗口)发生重叠或连续的概率,导致间隔过长时间无法传输数据,引起卡顿等问题,为此,一种优选的方式是将第一扫描窗口的起始时间与第二扫描窗口的起始时间设置为相同,特别是当两个扫描窗口的时长相同时,使得二者完全重叠,进一步的,如果扫 描窗口的时长也被调短,那么扫描占用的时间会进一步降低,从而为数据传输留更多时间,保障传输的稳定;一种可行的方式,是将二者的起始时间设置为间隔第一预设时间阈值,该第一预设时间阈值可以使得两个扫描窗口不重叠,例如,第二扫描窗口的起始时间在第一扫描窗口时长结束并经过第二预设时间阈值后开始,例如,该第二预设时间阈值加上第一扫描窗口时长(即第一预设时间阈值)大于或等于音频端打包一个音频数据包传输给蓝牙收发模块缓存的时间,这样可以保障在蓝牙发送完一包数据后,若紧接蓝牙扫描时,有足够的时间缓存数据包,并使得两个扫描窗口间隙(第一扫描窗口结束至第二扫描窗口开始)足以蓝牙发送至少一包数据,又例如,该第二预设时间阈值大于或等于一个数据包的发送时间,从而保障至少一包数据可以在两次扫描窗口之间被发送,从而避免过长时间不能发送数据导致卡顿现象。
在环境干扰较大等原因而导致数据传输发生丢包,就需要等待较长的扫描时间才能重传,在扫描结束后完成重传,该重传数据包与上一数据包之间的时间间隔较长,再继续传输下一数据包时,不需要等待扫描,该下一数据包与重传数据包之间的时间间隔变短,在整个传输过程中,相邻两数据包之间的传输间隔时短时长,进而降低了数据传输的稳定性。通过上述实施方式,可以解决上述数据传输不稳定的问题。
S30.传输步骤:基于所述扫描参数,向目标蓝牙设备传输数据。
蓝牙模块按照调整后的扫描参数进行蓝牙扫描,并在蓝牙扫描窗口的休息时间向目标蓝牙设备传输数据,由于可以根据使用场景(预设条件)调节蓝牙扫描参数,从而可以满足用户在不同使用场景下的需求,特别是在有重要数据传输时可保障数据传输的稳定性。
为了进一步保障数据传输的稳定性,还可以调整传输数据的数据分组,所述数据分组包括:有效载荷和/或数据码率。更优的是结合扫描参数和数据分组一起进行调节,充分考虑扫描参数、有效载荷、数据传输码率对数据传输稳定性的综合影响进行调节。例如,在扫描窗口期内设置合理的有效载荷值,以使得在不能传输数据期间,生成与有效载荷值相匹配的数据包并等待传输,以在扫描窗口结束后无需等待即可立即发包,进一步节省了相邻两数据包之间的发包时间间隔,可有效保障数据传输的稳定性。
在本申请实施例中,当确定满足预设条件时,调整蓝牙的扫描参数,并基于所述扫描参数向目标蓝牙设备蓝牙传输数据。通过调整蓝牙的扫描参数,只需要等待较短的扫描时间完成数据传输,相邻两数据包之间的传输间隔更接近,可以提高数据传输的稳定性,减少卡顿问题。可以通过调整蓝牙扫描的扫描参数等满足用户在不同使用场景下对数据传输稳定性和蓝牙连接速度的不同需求。
请参见图2,为本申请实施例提供的一种数据传输方法的流程示意图。以预设条件为环境干扰值,调整扫描参数或/和传输数据的数据分组为例进行说明,如图2所示,本申请实施例的所述方法可以包括以下步骤:
S101,当确定终端设备采用蓝牙向目标蓝牙设备传输数据的环境干扰值符合阈值条件时,调整蓝牙的扫描参数或/和调整所述传输数据的数据分组;
终端设备与目标蓝牙设备之间采用蓝牙传输数据,所对应的系统架构如图3所示,系统架构100可以包括终端设备101,蓝牙网络和蓝牙设备102、103、104中的一种或多种。蓝牙网络用以在终端设备101和蓝牙设备102、103、104之间提供通信链路的介质。
其中,蓝牙是一种支持设备短距离通信(一般10m内)的无线电技术,能在包括移动电话、PDA、无线耳机、笔记本电脑、相关外设等众多设备之间进行无线信息交换。利用蓝牙技术,能够有效地简化终端设备之间的通信,也能够成功地简化设备与因特网Internet之间的通信,从而使得数据传输变得更加迅速高效,为无线通信拓宽道路。
应该理解,图3中的终端设备和蓝牙设备的数目仅仅是示意性的。根据实现需要,可 以具有任意数目的电子设备和蓝牙设备。比如蓝牙设备102可以是多个蓝牙设备组成的蓝牙设备集群或多个独立的在一定距离范围内的蓝牙设备等。
用户可以使用终端设备101通过蓝牙网络与蓝牙设备102、103、104交互,以接收或发送消息等。终端设备101可以是具有显示屏的各种电子设备,包括但不限于智能手机、平板电脑、便携式计算机、台式计算机、蓝牙耳机、蓝牙车载、蓝牙耳机、蓝牙MP3、蓝牙闪存盘、蓝牙适配器、蓝牙网关、蓝牙CF卡等等。所述蓝牙设备可以包括但不限于智能手机、平板电脑、便携式计算机、台式计算机、蓝牙耳机、蓝牙车载、蓝牙耳机、蓝牙MP3、蓝牙闪存盘、蓝牙适配器、蓝牙网关、蓝牙CF卡等等。
在本申请实施例中,以终端设备101向蓝牙设备102传输数据为例。所述数据可以为音频数据,以数据包的形式传输。
其中,数据包以默认的ACL数据分组(如2-DH5)进行传输。每种数据分组规定了不同的有效载荷以及传输码率。
需要说明的是,在传输数据的同时,终端设备还同步开启蓝牙扫描功能。所述蓝牙扫描功能包括查询扫描(inquiry scan)和寻呼扫描(page scan)。
inquiry scan表示蓝牙设备处于可发现的状态,此状态下蓝牙设备扫描其他蓝牙设备的查询请求,可供其他设备发现此设备,获取蓝牙名等信息。
page scan表示蓝牙处于可连接状态,此状态下蓝牙设备通过扫描获取其他设备的连接请求。
蓝牙每次扫描会持续一段时间,即每次扫描对应一扫描窗口,该扫描窗口为一次扫描进行的时间宽度,分为inquiry scan window和page scan window,然而,在扫描窗口工作期间无法进行数据传输。两个连续的扫描窗口的起始时间之间的时间差为扫描间隔,如图4所示,包括扫描休息的时间和扫描进行的时间。
无论是查询扫描还是寻呼扫描,均包括标准扫描和隔行扫描两种类型,其中隔行扫描实际执行的扫描窗口是标准扫描的扫描窗口的两倍。
具体的,获取终端设备采用蓝牙向目标蓝牙设备传输数据发生丢包的次数是否大于预设值,所述预设值为大于或等于1的整数,若是,表明传输数据时丢包概率大或者已经发生丢包。若丢包,则需要进行数据包重传。若终端设备的蓝牙开启,则将蓝牙的扫描类型从隔行扫描类型调整为标准扫描类型以减小扫描时间;或将查询扫描的第一扫描窗口与寻呼扫描的第二扫描窗口设置为不部分重叠,也就是将查询扫描的第一扫描窗口与寻呼扫描的第二扫描窗口的起始时间设置为相同或间隔预设时间阈值,避免第一扫描窗口与第二扫描窗口部分重叠或相邻而增加无法传输数据的时间,进而增加数据传输的间隔;或将蓝牙扫描的扫描类型从隔行扫描类型调整为标准扫描类型,并将查询扫描的第一扫描窗口与寻呼扫描的第二扫描窗口的起始时间设置为相同或间隔预设时间阈值。若终端设备的蓝牙扫描未开启,可将所述传输数据的数据分组从第一数据分组调整至第二数据分组,所述第一数据分组对应的第一有效载荷大于所述第二数据分组对应的第二有效载荷,和/或,所述第一数据分组对应的第一数据码率大于所述第二数据分组对应的第二数据码率,从而可以减小有效装载和传输码率,进而使得相邻数据包之间的发包间隔时间短,提高发包频率。当然如果不限于标准蓝牙协议的约定,也可以按照自定义的其他规则调低扫描窗口时长,具体调节为多少,可以根据实际需求权衡数据传输稳定性和允许其他蓝牙连接二者的需要进行。当然,也可同时调整扫描类型、扫描周期和数据分组,综合各种方式,相互配合调整。
需要说明的是,目标蓝牙设备包括一存储空间,当终端设备向目标蓝牙设备发送的数据包存满该存储空间时,目标蓝牙设备依次读取各数据包并播放,同时,终端设备继续向目标蓝牙设备发送剩余的包。
例如,如图5所示,蓝牙设备可以缓存3个数据包,在终端设备向蓝牙设备发送完3个数据包后,蓝牙设备开始读取第1个数据包,同时,终端设备向蓝牙耳机继续发第4个数据包。
S102,基于所述扫描参数或/和所述数据分组,向所述目标蓝牙设备蓝牙传输数据。
具体的,采用所述标准扫描类型扫描蓝牙设备,并采用所述第一数据分组向所述目标蓝牙设备传输数据;或采用所述隔行扫描类型扫描蓝牙设备,并采用所述第二数据分组向所述目标蓝牙设备传输数据;或采用所述标准扫描类型扫描蓝牙设备,并采用所述第二数据分组向所述目标蓝牙设备传输数据。
采用上述任一种方式均可以减少扫描时间,或增加发包频率,进而使得目标蓝牙设备可以更快的接收到数据包进行播放,相邻数据包的时间间隔更均匀,数据包传输更稳定,避免卡顿。
在本申请实施例中,当确定终端设备采用蓝牙向目标蓝牙设备传输数据的环境干扰值符合阈值条件时,调整蓝牙的扫描参数或/和调整所述传输数据的数据分组,并基于所述扫描参数或/和所述数据分组,向所述目标蓝牙设备传输数据。一方面,通过调整蓝牙扫描的扫描参数,只需要等待较短的扫描时间完成数据重传,相邻两数据包之间的传输间隔更接近,另一方面,通过调整传输数据的数据分组,使得传输码率更低,两相邻数据包的传输时间间隔更短,发包频率更高。或者将两方面结合,可以更明显的提高数据传输的稳定性。在目标蓝牙设备端也可以较快读取到重传数据而避免卡顿。
请参见图6,为本申请实施例提供的一种数据传输方法的流程示意图。本申请实施例以同时调整扫描参数和数据分组为例进行详细说明,该数据传输方法可以包括以下步骤:
S201,获取终端设备采用蓝牙向目标蓝牙设备传输的数据发生丢包的次数;
终端设备向蓝牙设备传输的数据可以为音频数据,该音频数据以数据包的形式发送。
而在数据包传输过程中,可能因环境干扰、信噪比小而造成丢包,使得数据包未成功到达目的地。
其中,音频数据通过蓝牙传输。蓝牙是一种支持设备短距离通信(一般10m内)的无线电技术,能在包括移动电话、PDA、无线耳机、笔记本电脑、相关外设等众多设备之间进行无线信息交换。利用蓝牙技术,能够有效地简化终端设备之间的通信,也能够成功地简化设备与因特网Internet之间的通信,从而使得数据传输变得更加迅速高效,为无线通信拓宽道路。
在一种可行的实现方式中,终端设备每向目标蓝牙设备发送一个数据包,目标蓝牙设备在成功接收到后就会向终端设备反馈响应消息,表明该数据包发送成功,若在发包后预设时长内未接收到响应消息,表明发生丢包。进一步的,可以检测到一次,则丢包次数相应加1。
S202,确定终端设备采用蓝牙向所述目标蓝牙设备传输数据发生丢包的次数大于预设值;
所述预设值为大于或等于1的整数,也就是说,可以只要检测到发生丢包,就进行扫描参数和数据分组的调节。
S203,将查询扫描的扫描类型从隔行扫描类型调整为标准扫描类型,并将寻呼扫描的扫描类型从隔行扫描类型调整为标准扫描类型;
目前终端设备都支持同时连接多个蓝牙设备(比如手机在连接蓝牙耳机打游戏时,蓝牙游戏手柄也可以连接手机),这就要求终端设备保持inquiry scan和page scan一直处于打开状态,让其他蓝牙设备可以发现并连接。
终端设备通过查询来寻找其周围邻近的蓝牙设备,终端设备(查询设备)每隔312.5 微秒选择一个新的频率来发送查询,蓝牙设备(被查询设备)每隔1.28s选择一次新的监听频率。查询和被查询设备使用通用查询接入码作为查询地址。
终端设备通过寻呼来呼叫其它的设备加入其所在的微微网,寻呼设备(终端设备)每隔312.5微秒选择一个新的频率来发送寻呼,在寻呼扫描时,被寻呼设备每隔1.28s选择一个新的监听频率。
如图7是蓝牙状态转换图,其中,STANDBY状态是终端设备的默认状态。此模式下设备处于低功耗状态。CONNECTION状态是终端设备的连接状态。
Page:这个子状态就是通常所称的连接(寻呼),进行连接/激活对应的slave的操作就称为page。它是指发起连接的设备(主设备)知道要连接设备的地址。所以可以直接传呼。
Page scan:这个子状态和Page对应,是等待被Page的slave所处的状态。若想被Page到,就要处于Page scan的状态。
Inquiry:为扫描状态,这个状态的设备就是去扫描周围的设备。它是不知道周围有什么设备,要去查询,通过广播的方式。处于Inquiry Scan的设备可以回应这个查询。
此处需要说明的是,Inquiry之后,不需要进入Page就可以连接上设备。
Inquiry scan:是通常看到的可被发现的设备。体现在上层就是我们在android系统中点击设备可被周围设备发现,那设备就处于这样的状态。
Slave response:这个是在Page的过程中,Slave收到了Master的Page msg,它会回应对应的Page response msg,同时自己就进入到了slave response的状态。
Master response:Master收到Slave response的msg后,就会进入到Master response的状态,同时会发送一个FHS的packet。
Inquiry response:就是在Inquiry scan的设备在收到Inquiry的msg后,就会发送Inquiry response的msg,在这之后就会进入到了Inquiry response的状态了。
在终端设备向目标蓝牙设备传输音频数据的过程中,同步开启Inquiry scan和Page scan,供其他蓝牙设备发现和连接。
具体的,当确认丢包时,就需要重新传输数据包,而在扫描窗口工作期间无法进行数据传输。事实上,蓝牙每次扫描会持续一段时间,为了让发现和连接速度更快,终端设备通常默认采用隔行扫描类型interlaced scan type进行扫描,如图8所示,而隔行扫描的扫描时间是标准扫描的两倍,在查询扫描和寻呼扫描均采用隔行扫描时,在一个扫描周期内就会有较长的时间无法传输数据。为了减少蓝牙扫描时间,则将查询扫描的扫描类型从隔行扫描类型调整为标准扫描类型,并将寻呼扫描的扫描类型从隔行扫描类型调整为标准扫描类型。当然如果不限于标准蓝牙协议的约定,也可以按照自定义的其他规则调低扫描窗口时长,具体调节为多少,可以根据实际需求权衡数据传输稳定性和允许其他蓝牙连接二者的需要进行。
S204,将查询扫描的第一扫描窗口与寻呼扫描的第二扫描窗口的起始时间设置为相同或间隔预设时间阈值;
将第一扫描窗口的起始时间与第二扫描窗口的起始时间设置为相同,特别是当两个扫描窗口的时长相同时,使得二者完全重叠,进一步的,如果扫描窗口的时长也被调短,那么扫描占用的时间会进一步降低,从而为数据传输留更多时间,保障传输的稳定;一种可行的方式,是将二者的起始时间设置为间隔第一预设时间阈值,该第一预设时间阈值可以使得两个扫描窗口不部分重叠,即完全重叠或不相连接。
通常,查询扫描与寻呼扫描相邻,如图8所示,那么,在一个周期内的扫描时长为T1。将查询扫描的第一扫描窗口与寻呼扫描的第二扫描窗口错开后T2=1/4T1,T3=1/4T1,而在寻呼扫描还没开始,查询扫描结束后传输数据就可到达目标蓝牙设备,那么两数据包 之间不能传输的时长为1/4T1。
S205,将所述传输数据的数据分组从第一数据分组调整至第二数据分组,所述第一数据分组对应的第一有效载荷大于所述第二数据分组对应的第二有效载荷,和/或,所述第一数据分组对应的第一数据码率大于所述第二数据分组对应的第二数据码率;
此外,通过调整传输数据的数据分组,改变数据包之间的传输时间间隔,进而改变发包频率。
例如,如表1所示为ACL数据分组列表,其中定义了多种类型的数据分组。在调整数据分组前,若默认采用2-DH5数据分组传输数据,其对应的第一有效装载为0-679bytes,第一数据码率为869.1kb/s,将数据分组调整到2-DH5后,其对应的第二有效装载为0-367bytes,第二数据码率为782.9kb/s,从而可以减小有效装载和传输码率,进而使得数据包之间的间隔时间短,提高发包频率。
其中,有效载荷为记载着信息的那部分数据。通常在传输数据时,为了使数据传输更可靠,要把原始数据分批传输,并且在每一批数据的头和尾都加上一定的辅助信息,比如这一批数据量的大小,校验位等,这样就相当于给已经分批原始数据加一些外套,这些外套起到标示作用,使得原始数据不易丢失。一批数据加上它的“外套”,就形成了传输通道中基本的传输单元,叫做数据帧或者数据包。这些数据帧中的记录信息的原始数据就是有效载荷。而消息体就是外套。即标记着原始数据的大小等的辅助信息。
表1
Figure PCTCN2020139537-appb-000001
S206,采用所述标准扫描类型扫描蓝牙设备,并采用所述第二数据分组向所述目标蓝牙设备蓝牙传输数据。
具体的,采用所述标准扫描类型扫描蓝牙设备,并采用所述第二数据分组向所述目标蓝牙设备传输数据,可以减少扫描时间和增加发包频率,进而使得目标蓝牙设备可以更快的接收到数据包进行播放,相邻数据包的时间间隔更均匀,数据包传输更稳定。
可选的,如果终端设备已经连接目标蓝牙设备在播放音视频,且不允许其他蓝牙设备再来发现或者连接,那么就可以把inquiry scan或者page scan完全关掉,进而数据传 输的稳定性更优。
在本申请实施例中,通过确定终端设备采用蓝牙向目标蓝牙设备传输数据发生丢包的次数大于预设值时,可以通过调整蓝牙扫描的扫描参数和调整所述传输数据的数据分组,并基于所述扫描类型和所述数据分组,向所述目标蓝牙设备蓝牙传输数据。一方面,通过调整蓝牙扫描的扫描参数,只需要等待较短的扫描时间完成数据重传,相邻两数据包之间的传输间隔更接近,可以提高数据传输的稳定性;另一方面,根据环境干扰调整传输数据的数据分组,使得传输码率更低,两相邻数据包的传输时间间隔更短,发包频率更高。从多个角度对数据传输稳定性进行优化,可以优化整个通路的延迟。此外,不需要求助蓝牙芯片厂,实现比较简单,通用性比较好。在目标蓝牙设备端也可以较快读取到重传数据而避免卡顿。
下面以手机向蓝牙设备传输音视频数据并开启inquiry scan和page scan为例,对本申请实施例进行描述。
为了让发现和连接速度更快,手机通常选用interlaced scan type进行扫描。但是当手机在传输音视频数据的过程中执行scan操作时,在对应的扫描窗口内手机是无法传输音视频数据的,如图9所示,当扫描间隔设置为默认值1.28s,扫描窗口设置为默认值11.25ms,扫描类型为interlaced时,每隔1.28s大约有24ms的时间段手机是无法传输音视频数据的。
同时,手机inquiry scan和page scan都是打开的,而且通常它们的扫描间隔)和扫描窗口被设置成相同的,两者的扫描窗口的执行时间是相邻的,所以在一定的干扰环境下,很容易出现对端蓝牙设备大于40ms都收不到蓝牙音视频数据。
采用本方案,通过修改手机数据分组(从2-DH5切换到2-DH3)和扫描类型修改为standard等实现蓝牙音视频数据能够更均匀地传输,如图10所示,手机传输相邻两个数据包的最大时间间隔大约在15ms左右,明显比现在技术数据传输更均匀一些,即稳定性更好。
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。
请参见图11,其示出了本申请一个示例性实施例提供的数据传输装置的结构示意图。该任务分配装置可以通过软件、硬件或者两者的结合实现成为终端设备的全部或一部分。该装置1包括参数调整模块10和数据传输模块20。
参数调整模块10,用于当确定满足预设条件时,调整蓝牙扫描的扫描参数或/和调整传输数据的数据分组;
数据传输模块20,用于基于所述扫描参数或/和所述数据分组,向目标蓝牙设备蓝牙传输数据。
可选的,所述参数调整模块10,具体用于:
调整所述蓝牙的扫描窗口时长,和/或,调整所述蓝牙扫描的第一扫描窗口与第二扫描窗口的起始时间,其中,
所述调整所述蓝牙的扫描窗口时长,具体用于:
将蓝牙扫描的扫描类型从隔行扫描类型调整为标准扫描类型;
所述调整所述蓝牙的第一扫描窗口与第二扫描窗口的起始时间,具体用于:
将查询扫描的第一扫描窗口与寻呼扫描的第二扫描窗口的起始时间设置为相同或间隔预设时间阈值。
可选的,所述参数调整模块10,具体用于:
所述蓝牙扫描包括查询扫描,将所述查询扫描的扫描类型从隔行扫描类型调整为标准扫描类型;或,
所述蓝牙扫描包括寻呼扫描,将所述寻呼扫描的扫描类型从隔行扫描类型调整为标准扫描类型;或,
所述蓝牙扫描包括查询扫描和寻呼扫描,将所述查询扫描的扫描类型从隔行扫描类型调整为标准扫描类型,并将所述寻呼扫描的扫描类型从隔行扫描类型调整为标准扫描类型。
可选的,所述数据分组包括有效载荷和/或数据码率,所述参数调整模块10,具体用于:
将所述传输数据的数据分组从第一数据分组调整至第二数据分组,其中,所述第一数据分组对应的第一有效载荷大于所述第二数据分组对应的第二有效载荷,和/或,所述第一数据分组对应的第一数据码率大于所述第二数据分组对应的第二数据码率。
可选的,所述数据传输模块20,具体用于:
采用所述标准扫描类型扫描蓝牙设备,并采用所述第一数据分组向所述目标蓝牙设备蓝牙传输数据;或,
采用所述隔行扫描类型扫描蓝牙设备,并采用所述第二数据分组向所述目标蓝牙设备蓝牙传输数据;或,
采用所述标准扫描类型扫描蓝牙设备,并采用所述第二数据分组向所述目标蓝牙设备蓝牙传输数据。
可选的,所述参数调整模块10,具体用于:
当确定所述终端设备采用蓝牙向所述目标蓝牙设备传输数据的环境干扰值符合阈值条件时,或,当确定所述终端设备需采用蓝牙向所述目标蓝牙设备传输多媒体数据时。
可选的,如图12所示,所述装置还包括:
丢包次数获取模块30,用于获取所述终端设备采用蓝牙向所述目标蓝牙设备传输的数据发生丢包的次数;
所述参数调整模块10,具体用于:
确定终端设备采用蓝牙向所述目标蓝牙设备传输数据发生丢包的次数大于预设值,所述预设值为大于或等于1的整数。
需要说明的是,上述实施例提供的数据传输装置在执行数据传输方法时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的数据传输装置与数据传输方法实施例属于同一构思,其体现实现过程详见方法实施例,这里不再赘述。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
在本申请实施例中,通过当确定满足预设条件时,调整蓝牙扫描的扫描参数和/或调整所述传输数据的数据分组,并基于所述扫描类型和/或所述数据分组,向所述目标蓝牙设备蓝牙传输数据。一方面,通过调整蓝牙扫描的扫描参数,使得扫描窗口时长减少和/或扫描窗口不部分重叠,从而使得相邻两数据包之间的传输间隔更接近,可以提高数据传输的稳定性;另一方面,可以通过调整传输数据的数据分组,使得传输码率更低,两相邻数据包的传输时间间隔更短,发包频率更高。从多个角度对数据传输稳定性进行优化,可以优化整个通路的延迟。可以通过调整蓝牙扫描的扫描参数等满足用户在不同使用场景下对数据传输稳定性和蓝牙连接速度的不同需求。此外,实现比较简单,通用性比较好。在目标蓝牙设备端也可以较快读取到重传数据而避免卡顿。
本申请实施例还提供了一种计算机存储介质,所述计算机存储介质可以存储有多条指令,所述指令适于由处理器加载并执行如上述图1-图10所示实施例的方法步骤,具体执行过程可以参见图1-图10所示实施例的具体说明,在此不进行赘述。
请参见图13,为本申请实施例提供的一种终端设备的结构示意图。如图13所示,所述终端设备1000可以包括:至少一个处理器1001,至少一个网络接口1004,用户接口1003,存储器1005,至少一个通信总线1002。
其中,通信总线1002用于实现这些组件之间的连接通信。
其中,用户接口1003可以包括显示屏(Display)、摄像头(Camera),可选用户接口1003还可以包括标准的有线接口、无线接口。
其中,网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。
其中,处理器1001可以包括一个或者多个处理核心。处理器1001利用各种借口和线路连接整个终端设备1000内的各个部分,通过运行或执行存储在存储器1005内的指令、程序、代码集或指令集,以及调用存储在存储器1005内的数据,执行终端设备1000的各种功能和处理数据。可选的,处理器1001可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1001可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示屏所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1001中,单独通过一块芯片进行实现。
其中,存储器1005可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。可选的,该存储器1005包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1005可用于存储指令、程序、代码、代码集或指令集。存储器1005可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等;存储数据区可存储上面各个方法实施例中涉及到的数据等。存储器1005可选的还可以是至少一个位于远离前述处理器1001的存储装置。如图13所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及数据传输应用程序。
在图13所示的终端设备1000中,用户接口1003主要用于为用户提供输入的接口,获取用户输入的数据;而处理器1001可以用于调用存储器1005中存储的数据传输应用程序,并具体执行以下操作:
当确定满足预设条件时,调整蓝牙的扫描参数或/和调整传输数据的数据分组;
基于所述扫描参数或/和所述数据分组,向目标蓝牙设备蓝牙传输数据。
在一个实施例中,所述处理器1001在执行调整蓝牙的扫描参数时,具体执行以下操作:
调整所述蓝牙的扫描窗口时长,和/或,调整所述蓝牙扫描的第一扫描窗口与第二扫描窗口的起始时间,其中,
所述调整所述蓝牙的扫描窗口时长,包括:
将蓝牙扫描的扫描类型从隔行扫描类型调整为标准扫描类型;
所述调整所述蓝牙的第一扫描窗口与第二扫描窗口的起始时间,包括:
将查询扫描的第一扫描窗口与寻呼扫描的第二扫描窗口的起始时间设置为相同或间 隔预设时间阈值。
在一个实施例中,所述处理器1001在执行将蓝牙扫描的扫描类型从隔行扫描类型调整为标准扫描类型时,具体执行以下操作:
所述蓝牙扫描包括查询扫描,将所述查询扫描的扫描类型从隔行扫描类型调整为标准扫描类型;或,
所述蓝牙扫描包括寻呼扫描,将所述寻呼扫描的扫描类型从隔行扫描类型调整为标准扫描类型;或,
所述蓝牙扫描包括查询扫描和寻呼扫描,将所述查询扫描的扫描类型从隔行扫描类型调整为标准扫描类型,并将所述寻呼扫描的扫描类型从隔行扫描类型调整为标准扫描类型。
在一个实施例中,所述数据分组包括有效载荷和/或数据码率,所述处理器1001在执行调整传输数据的数据分组时,具体执行以下操作:
将所述传输数据的数据分组从第一数据分组调整至第二数据分组,其中,所述第一数据分组对应的第一有效载荷大于所述第二数据分组对应的第二有效载荷,和/或,所述第一数据分组对应的第一数据码率大于所述第二数据分组对应的第二数据码率。
在一个实施例中,所述处理器1001在执行基于所述扫描类型或/和所述数据分组,向所述目标蓝牙设备蓝牙传输数据时,具体执行以下操作:
采用所述标准扫描类型扫描蓝牙设备,并采用所述第一数据分组向所述目标蓝牙设备蓝牙传输数据;或,
采用所述隔行扫描类型扫描蓝牙设备,并采用所述第二数据分组向所述目标蓝牙设备蓝牙传输数据;或,
采用所述标准扫描类型扫描蓝牙设备,并采用所述第二数据分组向所述目标蓝牙设备蓝牙传输数据。
在一个实施例中,所述处理器1001在执行当确定满足预设条件时,具体执行以下操作:
当确定所述终端设备采用蓝牙向所述目标蓝牙设备传输数据的环境干扰值符合阈值条件时,或,当确定所述终端设备需采用蓝牙向所述目标蓝牙设备传输多媒体数据时。
在一个实施例中,所述处理器1001在执行确定所述终端设备向所述目标蓝牙设备传输数据的环境干扰值符合阈值条件之前,还执行以下操作:
获取所述终端设备采用蓝牙向所述目标蓝牙设备传输的数据发生丢包的次数;
所述处理器1001在执行确定所述终端设备采用蓝牙向所述目标蓝牙设备传输数据的环境干扰值符合阈值条件时,具体执行以下操作:
确定终端设备采用蓝牙向所述目标蓝牙设备传输数据发生丢包的次数大于预设值,所述预设值为大于或等于1的整数。
在本申请实施例中,通过当确定满足预设条件时,调整蓝牙扫描的扫描参数和/或调整所述传输数据的数据分组,并基于所述扫描类型和/或所述数据分组,向所述目标蓝牙设备蓝牙传输数据。一方面,通过调整蓝牙扫描的扫描参数,使得扫描窗口时长减少和/或扫描窗口不部分重叠,从而使得相邻两数据包之间的传输间隔更接近,可以提高数据传输的稳定性;另一方面,可以通过调整传输数据的数据分组,使得传输码率更低,两相邻数据包的传输时间间隔更短,发包频率更高。从多个角度对数据传输稳定性进行优化,可以优化整个通路的延迟。可以通过调整蓝牙扫描的扫描参数等满足用户在不同使用场景下对数据传输稳定性和蓝牙连接速度的不同需求。此外,实现比较简单,通用性比较好。在目标蓝牙设备端也可以较快读取到重传数据而避免卡顿。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过 计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体或随机存储记忆体等。
以上所揭露的仅为本申请较佳实施例而已,当然不能以此来限定本申请之权利范围,因此依本申请权利要求所作的等同变化,仍属本申请所涵盖的范围。

Claims (31)

  1. 一种数据传输方法,应用于终端设备,其特征在于,所述方法包括:
    当确定满足预设条件时,调整蓝牙的扫描参数或/和调整传输数据的数据分组;
    基于所述扫描参数或/和所述数据分组,向目标蓝牙设备蓝牙传输数据。
  2. 根据权利要求1所述的方法,其特征在于,所述调整蓝牙的扫描参数,包括:
    调整所述蓝牙的扫描窗口时长,和/或,调整所述蓝牙扫描的第一扫描窗口与第二扫描窗口的起始时间,其中,
    所述调整所述蓝牙的扫描窗口时长,包括:
    将蓝牙扫描的扫描类型从隔行扫描类型调整为标准扫描类型;
    所述调整所述蓝牙的第一扫描窗口与第二扫描窗口的起始时间,包括:
    将查询扫描的第一扫描窗口与寻呼扫描的第二扫描窗口的起始时间设置为相同或间隔预设时间阈值。
  3. 根据权利要求2所述的方法,其特征在于,所述将蓝牙扫描的扫描类型从隔行扫描类型调整为标准扫描类型,包括:
    所述蓝牙扫描包括查询扫描,将所述查询扫描的扫描类型从隔行扫描类型调整为标准扫描类型;或,
    所述蓝牙扫描包括寻呼扫描,将所述寻呼扫描的扫描类型从隔行扫描类型调整为标准扫描类型;或,
    所述蓝牙扫描包括查询扫描和寻呼扫描,将所述查询扫描的扫描类型从隔行扫描类型调整为标准扫描类型,并将所述寻呼扫描的扫描类型从隔行扫描类型调整为标准扫描类型。
  4. 根据权利要求1所述的方法,其特征在于,所述数据分组包括有效载荷和/或数据码率,所述调整传输数据的数据分组,包括:
    将所述传输数据的数据分组从第一数据分组调整至第二数据分组,其中,所述第一数据分组对应的第一有效载荷大于所述第二数据分组对应的第二有效载荷,和/或,所述第一数据分组对应的第一数据码率大于所述第二数据分组对应的第二数据码率。
  5. 根据权利要求4所述的方法,其特征在于,所述基于所述扫描参数或/和所述数据分组,向所述目标蓝牙设备蓝牙传输数据,包括:
    采用所述标准扫描类型扫描蓝牙设备,并采用所述第一数据分组向所述目标蓝牙设备蓝牙传输数据;或,
    采用所述隔行扫描类型扫描蓝牙设备,并采用所述第二数据分组向所述目标蓝牙设备蓝牙传输数据;或,
    采用所述标准扫描类型扫描蓝牙设备,并采用所述第二数据分组向所述目标蓝牙设备蓝牙传输数据。
  6. 根据权利要求1所述的方法,其特征在于,所述当确定满足预设条件时,包括:
    当确定所述终端设备采用蓝牙向所述目标蓝牙设备传输数据的环境干扰值符合阈值条件时,或,当确定所述终端设备需采用蓝牙向所述目标蓝牙设备传输多媒体数据时。
  7. 根据权利要求6所述的方法,其特征在于,所述确定所述终端设备向所述目标蓝牙设备传输数据的环境干扰值符合阈值条件之前,还包括:
    获取所述终端设备采用蓝牙向所述目标蓝牙设备传输的数据发生丢包的次数;
    所述确定所述终端设备采用蓝牙向所述目标蓝牙设备传输数据的环境干扰值符合阈值条件,包括:
    确定终端设备采用蓝牙向所述目标蓝牙设备传输数据发生丢包的次数大于预设值,所述预设值为大于或等于1的整数。
  8. 一种数据传输方法,应用于终端设备,其特征在于,所述方法包括:
    当确定满足预设条件时,调整蓝牙扫描的扫描参数或/和调整传输数据的数据分组;
    基于所述扫描参数或/和所述数据分组,向目标蓝牙设备蓝牙传输数据。
  9. 根据权利要求8所述的方法,其特征在于,所述调整蓝牙扫描的扫描参数,包括:
    调整所述蓝牙扫描的扫描窗口时长。
  10. 根据权利要求9所述的方法,其特征在于,所述调整所述蓝牙扫描的扫描窗口时长,包括:
    将蓝牙扫描的扫描类型从隔行扫描类型调整为标准扫描类型。
  11. 根据权利要求8所述的方法,其特征在于,所述调整蓝牙扫描的扫描参数,包括:
    将第一扫描窗口的起始时间与第二扫描窗口的起始时间设置为相同或设置为间隔第一预设时间阈值。
  12. 根据权利要求11所述的方法,其特征在于,所述第一扫描窗口为查询扫描的扫描窗口;所述第二扫描窗口为寻呼扫描的扫描窗口。
  13. 根据权利要求8所述的方法,其特征在于,所述调整蓝牙扫描的扫描参数,包括:
    将所述第一扫描窗口和所述第二扫描窗口设置为完全重叠或不相连接。
  14. 根据权利要求11所述的方法,其特征在于,所述第二扫描窗口的起始时间在所述第一扫描窗口时长结束并经过第二预设时间阈值后开始。
  15. 根据权利要求14所述的方法,其特征在于,所述第一预设时间阈值为所述第二预设时间阈值加上所述第一扫描窗口的时长;所述第一预设时间阈值大于或等于音频端打包一个音频数据包传输给蓝牙收发模块缓存的时间;或,所述第二预设时间阈值大于或等于一个数据包的发送时间。
  16. 根据权利要求10所述的方法,其特征在于,所述将蓝牙扫描的扫描类型从隔行扫描类型调整为标准扫描类型,包括:
    所述蓝牙扫描包括查询扫描,将所述查询扫描的扫描类型从隔行扫描类型调整为标准扫描类型;或,
    所述蓝牙扫描包括寻呼扫描,将所述寻呼扫描的扫描类型从隔行扫描类型调整为标准 扫描类型;或,
    所述蓝牙扫描包括查询扫描和寻呼扫描,将所述查询扫描的扫描类型从隔行扫描类型调整为标准扫描类型,并将所述寻呼扫描的扫描类型从隔行扫描类型调整为标准扫描类型。
  17. 根据权利要求8所述的方法,其特征在于,所述数据分组包括有效载荷和/或数据码率,所述调整传输数据的数据分组,包括:
    将所述传输数据的数据分组从第一数据分组调整至第二数据分组,其中,所述第一数据分组对应的第一有效载荷大于所述第二数据分组对应的第二有效载荷,和/或,所述第一数据分组对应的第一数据码率大于所述第二数据分组对应的第二数据码率。
  18. 根据权利要求17所述的方法,其特征在于,所述基于所述扫描参数或/和所述数据分组,向所述目标蓝牙设备蓝牙传输数据,包括:
    采用所述标准扫描类型扫描蓝牙设备,并采用所述第一数据分组向所述目标蓝牙设备蓝牙传输数据;或,
    采用所述隔行扫描类型扫描蓝牙设备,并采用所述第二数据分组向所述目标蓝牙设备蓝牙传输数据;或,
    采用所述标准扫描类型扫描蓝牙设备,并采用所述第二数据分组向所述目标蓝牙设备蓝牙传输数据。
  19. 根据权利要求8所述的方法,其特征在于,所述当确定满足预设条件时,包括:
    当确定所述终端设备采用蓝牙向所述目标蓝牙设备传输数据的环境干扰值符合阈值条件时,或,当确定所述终端设备需采用蓝牙向所述目标蓝牙设备传输多媒体数据时。
  20. 根据权利要求19所述的方法,其特征在于,所述确定所述终端设备向所述目标蓝牙设备传输数据的环境干扰值符合阈值条件之前,还包括:
    获取所述终端设备采用蓝牙向所述目标蓝牙设备传输的数据发生丢包的次数;
    所述确定所述终端设备采用蓝牙向所述目标蓝牙设备传输数据的环境干扰值符合阈值条件,包括:
    确定终端设备采用蓝牙向所述目标蓝牙设备传输数据发生丢包的次数大于预设值,所述预设值为大于或等于1的整数。
  21. 根据权利要求8所述的方法,其特征在于,所述方法还包括:
    若所述终端设备已经连接所述目标蓝牙设备在播放音视频,且不允许其他蓝牙设备发现或者连接,则完全关掉查询扫描或者寻呼扫描。
  22. 根据权利要求8所述的方法,其特征在于,所述方法还包括:
    多媒体数据传输结束后,调整回默认的蓝牙扫描参数。
  23. 一种数据传输装置,应用于终端设备,其特征在于,所述装置包括:
    参数调整模块,用于当确定满足预设条件时,调整蓝牙的扫描参数或/和调整传输数据的数据分组;
    数据传输模块,用于基于所述扫描参数或/和所述数据分组,向所述目标蓝牙设备蓝 牙传输数据。
  24. 根据权利要求23所述的装置,其特征在于,所述参数调整模块,具体用于:
    调整所述蓝牙的扫描窗口时长,和/或,调整所述蓝牙扫描的第一扫描窗口与第二扫描窗口的起始时间,其中,
    所述调整所述蓝牙的扫描窗口时长,具体用于:
    将蓝牙扫描的扫描类型从隔行扫描类型调整为标准扫描类型;
    所述调整所述蓝牙的第一扫描窗口与第二扫描窗口的起始时间,具体用于:
    将查询扫描的第一扫描窗口与寻呼扫描的第二扫描窗口的起始时间设置为相同或间隔预设时间阈值。
  25. 根据权利要求24所述的装置,其特征在于,所述参数调整模块,具体用于:
    所述蓝牙扫描包括查询扫描,将所述查询扫描的扫描类型从隔行扫描类型调整为标准扫描类型;或,
    所述蓝牙扫描包括寻呼扫描,将所述寻呼扫描的扫描类型从隔行扫描类型调整为标准扫描类型;或,
    所述蓝牙扫描包括查询扫描和寻呼扫描,将所述查询扫描的扫描类型从隔行扫描类型调整为标准扫描类型,并将所述寻呼扫描的扫描类型从隔行扫描类型调整为标准扫描类型。
  26. 根据权利要求23所述的装置,其特征在于,所述数据分组包括有效载荷和/或数据码率,所述参数调整模块,具体用于:
    将所述传输数据的数据分组从第一数据分组调整至第二数据分组,其中,所述第一数据分组对应的第一有效载荷大于所述第二数据分组对应的第二有效载荷,和/或,所述第一数据分组对应的第一数据码率大于所述第二数据分组对应的第二数据码率。
  27. 根据权利要求26所述的装置,其特征在于,所述数据传输模块,具体用于:
    采用所述标准扫描类型扫描蓝牙设备,并采用所述第一数据分组向所述目标蓝牙设备蓝牙传输数据;或,
    采用所述隔行扫描类型扫描蓝牙设备,并采用所述第二数据分组向所述目标蓝牙设备蓝牙传输数据;或,
    采用所述标准扫描类型扫描蓝牙设备,并采用所述第二数据分组向所述目标蓝牙设备蓝牙传输数据。
  28. 根据权利要求23所述的装置,其特征在于,所述参数调整模块,具体用于:
    当确定所述终端设备采用蓝牙向所述目标蓝牙设备传输数据的环境干扰值符合阈值条件时,或,当确定所述终端设备需采用蓝牙向所述目标蓝牙设备传输多媒体数据时。
  29. 根据权利要求28所述的装置,其特征在于,所述装置还包括:
    丢包次数获取模块,用于获取所述终端设备采用蓝牙向所述目标蓝牙设备传输的数据发生丢包的次数;
    所述参数调整模块,具体用于:
    确定终端设备采用蓝牙向所述目标蓝牙设备传输数据发生丢包的次数大于预设值,所述预设值为大于或等于1的整数。
  30. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有多条指令,所述指令适于由处理器加载并执行如权利要求1~7或8~22任意一项的方法步骤。
  31. 一种终端设备,其特征在于,包括:处理器和存储器;其中,所述存储器存储有计算机程序,所述计算机程序适于由所述处理器加载并执行如权利要求1~7或8~22任意一项的方法步骤。
PCT/CN2020/139537 2019-12-25 2020-12-25 数据传输方法、装置、存储介质及终端设备 WO2021129821A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20907629.8A EP4080919A4 (en) 2019-12-25 2020-12-25 DATA TRANSFER METHOD AND EQUIPMENT, STORAGE MEDIUM AND TERMINAL DEVICE
US17/808,654 US20220330000A1 (en) 2019-12-25 2022-06-24 Data transmission method and apparatus, storage medium, and terminal device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911361284.6 2019-12-25
CN201911361284.6A CN113038437B (zh) 2019-12-25 2019-12-25 数据传输方法、装置、存储介质及终端设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/808,654 Continuation US20220330000A1 (en) 2019-12-25 2022-06-24 Data transmission method and apparatus, storage medium, and terminal device

Publications (1)

Publication Number Publication Date
WO2021129821A1 true WO2021129821A1 (zh) 2021-07-01

Family

ID=76458474

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/139537 WO2021129821A1 (zh) 2019-12-25 2020-12-25 数据传输方法、装置、存储介质及终端设备

Country Status (4)

Country Link
US (1) US20220330000A1 (zh)
EP (1) EP4080919A4 (zh)
CN (2) CN116437329A (zh)
WO (1) WO2021129821A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114423036A (zh) * 2022-02-22 2022-04-29 Oppo广东移动通信有限公司 无线摄像头的检测方法、装置、终端设备及存储介质
CN116056051B (zh) * 2022-06-06 2023-10-27 荣耀终端有限公司 蓝牙连接控制方法、系统和设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120238205A1 (en) * 2011-03-16 2012-09-20 Nokia Corporation method, apparatus and a computer program for out-of-band short-range communication carrier transport switching
US8737917B2 (en) * 2009-07-24 2014-05-27 Broadcom Corporation Method and system for a dual-mode bluetooth low energy device
CN109041024A (zh) * 2018-08-14 2018-12-18 Oppo广东移动通信有限公司 码率优化方法、装置、电子设备以及存储介质
CN110072011A (zh) * 2019-04-24 2019-07-30 Oppo广东移动通信有限公司 调整码率方法及相关产品
CN110324810A (zh) * 2019-06-20 2019-10-11 上海华虹集成电路有限责任公司 一种低功耗蓝牙数据包扫描窗口自动调整的方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070047506A1 (en) * 2005-08-31 2007-03-01 Froehling Timothy P Methods and devices for dynamically adjusting page scan intervals of bluetooth enabled devices
US20120256726A1 (en) * 2011-04-07 2012-10-11 Nokia Corporation Method, apparatus, and computer program product for special dedicated inquiry and inquiry response process for dedicated device search
CN104488348B (zh) * 2012-06-01 2018-04-24 诺基亚技术有限公司 用于无线网络中的自适应设备发现的方法、装置和计算机程序产品
CN110601971B (zh) * 2019-09-17 2021-10-26 南京林业大学 一种数据传输方法、装置、电子设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8737917B2 (en) * 2009-07-24 2014-05-27 Broadcom Corporation Method and system for a dual-mode bluetooth low energy device
US20120238205A1 (en) * 2011-03-16 2012-09-20 Nokia Corporation method, apparatus and a computer program for out-of-band short-range communication carrier transport switching
CN109041024A (zh) * 2018-08-14 2018-12-18 Oppo广东移动通信有限公司 码率优化方法、装置、电子设备以及存储介质
CN110072011A (zh) * 2019-04-24 2019-07-30 Oppo广东移动通信有限公司 调整码率方法及相关产品
CN110324810A (zh) * 2019-06-20 2019-10-11 上海华虹集成电路有限责任公司 一种低功耗蓝牙数据包扫描窗口自动调整的方法

Also Published As

Publication number Publication date
EP4080919A4 (en) 2022-12-21
CN116437329A (zh) 2023-07-14
US20220330000A1 (en) 2022-10-13
CN113038437A (zh) 2021-06-25
EP4080919A1 (en) 2022-10-26
CN113038437B (zh) 2023-06-09

Similar Documents

Publication Publication Date Title
US11102581B2 (en) Bluetooth earphone connecting method, electronic device and storage medium
US11432262B2 (en) Communication method for implementing dual card, dual standby and dual pass connections in a terminal
EP3629562B1 (en) Data transmitting method and system
WO2020164520A1 (zh) 数据包分流方法、装置、移动终端及存储介质
TWI526089B (zh) 用於同級間通信的方法、裝置與無線器件
KR101877123B1 (ko) 시간에 민감한 애플리케이션들을 위한 단거리 무선 패킷들의 우선순위화
US11856498B2 (en) Bluetooth device connection method and device
WO2020134720A1 (zh) 数据传输控制方法及相关产品
WO2020164349A1 (zh) 数据传输控制方法及相关产品
US10979990B2 (en) Seamless link transfers between primary and secondary devices
US20220330000A1 (en) Data transmission method and apparatus, storage medium, and terminal device
US10779210B2 (en) Handover of extended synchronous connection-oriented logical transport channel
WO2021022720A1 (zh) 基于蓝牙的数据传输方法、存储介质及终端
WO2021036881A1 (zh) WiFi漫游方法、装置、移动终端及存储介质
CN108307485B (zh) 无线网络扫描方法、装置、终端设备及存储介质
JPWO2015173929A1 (ja) 無線通信装置
JP7042351B2 (ja) ローミングハンドオフ方法、中央制御デバイス、及びステーション
US20200275318A1 (en) Coexistence configuration switching for mesh networks
CN108337715B (zh) 无线网络连接方法、装置、终端设备及存储介质
WO2021239032A1 (zh) 蓝牙协议连接方法、装置、存储介质及相关设备
WO2019010777A1 (zh) 频点选取方法及相关产品
CN112866966B (zh) 一种无线通信及信息处理方法、系统、设备及存储介质
WO2021072772A1 (zh) 无线通信方法、装置、电子设备以及存储介质
WO2015089825A1 (zh) 一种辅载波变更的方法、终端、网络设备及系统
WO2023061453A1 (zh) 能力变更方法、终端及网络侧设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20907629

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2020907629

Country of ref document: EP

Effective date: 20220721