CN114158018A - Data transmission method and device, Bluetooth slave device and Bluetooth master device - Google Patents

Data transmission method and device, Bluetooth slave device and Bluetooth master device Download PDF

Info

Publication number
CN114158018A
CN114158018A CN202111300678.8A CN202111300678A CN114158018A CN 114158018 A CN114158018 A CN 114158018A CN 202111300678 A CN202111300678 A CN 202111300678A CN 114158018 A CN114158018 A CN 114158018A
Authority
CN
China
Prior art keywords
data transmission
bluetooth
slave device
connection parameter
connection
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111300678.8A
Other languages
Chinese (zh)
Inventor
谭康喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Beijing Xiaomi Pinecone Electronic Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Beijing Xiaomi Pinecone Electronic Co Ltd
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 Beijing Xiaomi Mobile Software Co Ltd, Beijing Xiaomi Pinecone Electronic Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202111300678.8A priority Critical patent/CN114158018A/en
Publication of CN114158018A publication Critical patent/CN114158018A/en
Pending legal-status Critical Current

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • 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

Abstract

The disclosure relates to a data transmission method, which is applied to Bluetooth slave equipment and comprises the following steps: in response to detecting that the Bluetooth slave device is in a first data transmission state, configuring connection parameters of the Bluetooth slave device as first connection parameters; sending indication information to a Bluetooth master device connected with the Bluetooth slave device, wherein the indication information is used for indicating the Bluetooth master device to configure the connection parameter as the first connection parameter; and responding to the received Bluetooth data transmission instruction, and performing data transmission with the Bluetooth slave equipment based on the first connection parameters. Therefore, the negotiation session for the connection parameters between the Bluetooth slave device and the Bluetooth master device is not needed, and meanwhile, the effective session for the connection parameters is not needed to wait, so that the connection parameters are updated more timely and quickly, and the power saving and data transmission speed are considered. The disclosure also discloses a data transmission device, Bluetooth slave equipment and Bluetooth master equipment.

Description

Data transmission method and device, Bluetooth slave device and Bluetooth master device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a data transmission method and apparatus, a bluetooth slave device, and a bluetooth master device.
Background
Bluetooth Low Energy (BLE) technology is a Low-cost, short-range, interoperable, robust wireless technology. With the continuous development of bluetooth technology, three connection parameters for communication between bluetooth devices are specified in the bluetooth 4.0 protocol: the connection interval, device delay or device latency, and timeout time or supervision timeout determine the power consumption and data transmission capability of the bluetooth slave device.
In order to save power, the bluetooth connection device switches the connection parameter to a connection parameter with low power consumption when data transmission is not required, and switches the connection parameter to a connection parameter with high power consumption when data transmission is required. However, a certain time is required for switching the connection parameters, which may result in that when a large amount of data needs to be transmitted, the connection parameters cannot be updated in time, so that a large amount of data cannot be transmitted in time, and the data transmission speed is affected. Therefore, how to simultaneously save power and increase data transmission speed is an urgent technical problem to be solved.
Disclosure of Invention
According to a first aspect of the embodiments of the present disclosure, there is provided a data transmission method applied to a bluetooth slave device, including:
in response to detecting that the Bluetooth slave device is in a first data transmission state, configuring connection parameters of the Bluetooth slave device as first connection parameters; sending an indication to a bluetooth master device connected with the bluetooth slave device, wherein the indication information is used for indicating the bluetooth master device to configure the connection parameter as the first connection parameter;
and responding to the received Bluetooth data transmission indication, and performing data parameter with the Bluetooth master device based on the first connection parameter.
In some embodiments, the configuring the connection parameters of the bluetooth slave device to first connection parameters in response to detecting that the bluetooth slave device is in a first data transfer state; sending indication information to a Bluetooth master device connected with the Bluetooth slave device, including:
updating connection parameters of the Bluetooth slave device from second connection parameters to the first connection parameters in response to detecting that the Bluetooth slave device changes from a second data transmission state to the first data transmission state; sending first indication information to a bluetooth master device connected with the bluetooth slave device, wherein the first indication information is used for indicating the connection parameters acquired by the bluetooth master device in the second data transmission state, the data transmission speed in the first data transmission state is greater than the data transmission speed in the second data transmission state, the power consumption of the bluetooth slave device in the first connection parameter is greater than the power consumption in the second connection parameter, and the third connection parameter is the connection parameter adopted by the bluetooth master device before receiving the first indication information.
In some embodiments, the method further comprises:
receiving a configuration result based on the first connection parameter returned by the Bluetooth master device;
the data transmission with the bluetooth master device based on the first connection parameter includes:
responding to the configuration result indicating that the configuration is successful, and performing with the Bluetooth master device based on the first connection parameter.
In some embodiments, the method further comprises:
determining a current data transmission speed of the Bluetooth slave device;
determining that the Bluetooth slave device is in the first data transmission state in response to the current data transmission speed being greater than a transmission speed threshold.
In some embodiments, the method further comprises:
determining a data transmission level of the current data transmission speed in response to the current data transmission speed being greater than a transmission speed threshold;
and determining a fourth connection parameter corresponding to the data transmission grade as the first connection parameter according to the data transmission grade.
In some embodiments, the method further comprises:
determining the data transmission quantity indicated by the Bluetooth data transmission instruction;
determining that the Bluetooth slave device is in the first data transmission state in response to the data transmission amount being greater than a transmission amount threshold.
In some embodiments, the method further comprises:
determining a transmission capacity level of the current data transmission capacity in response to the data transmission capacity being greater than a transmission capacity threshold;
and determining a fifth connection parameter corresponding to the data transmission quantity grade as the first connection parameter according to the transmission quantity grade.
According to a second aspect of the embodiments of the present disclosure, there is provided a data transmission method applied to a bluetooth master device, including:
receiving indication information sent by the Bluetooth slave device, wherein the indication information is used for indicating that the Bluetooth master device configures connection parameters as first connection parameters, and the first indication information is sent by the Bluetooth slave device in a first data transmission state;
and carrying out data transmission with the Bluetooth slave equipment based on the first connection parameter.
In some embodiments, the method further comprises:
configuring the first connection parameter for the Bluetooth master device based on the indication information to generate a configuration result;
returning the configuration result to the Bluetooth slave device;
the data transmission with the Bluetooth slave device based on the first connection parameter comprises:
and in response to the configuration result indicating that the configuration is successful, performing data transmission with the Bluetooth slave device based on the first connection parameter.
According to a third aspect of the embodiments of the present disclosure, there is provided a data transmission apparatus, applied to a bluetooth slave device, including:
the processing module is used for responding to the detection that the Bluetooth slave device is in a first data transmission state, and configuring the connection parameters of the Bluetooth slave device into first connection parameters; sending indication information to a Bluetooth master device connected with the Bluetooth slave device, wherein the indication information is used for indicating the Bluetooth master device to configure the connection parameter as the first connection parameter;
and the first data transmission module is used for responding to the received Bluetooth data transmission instruction and performing data transmission with the Bluetooth master device based on the first connection parameter.
In some embodiments, the processing module is further configured to:
updating connection parameters of the Bluetooth slave device from second connection parameters to the first connection parameters in response to detecting that the Bluetooth slave device changes from a second data transmission state to the first data transmission state; sending first indication information to a Bluetooth master device connected with the Bluetooth slave device, wherein the first indication information is used for indicating the Bluetooth master device to update a third connection parameter into the first connection parameter; the second connection parameter is a data transmission speed of the bluetooth slave device in the second data transmission state, the power consumption of the bluetooth slave device in the first connection parameter is greater than the power consumption of the bluetooth slave device in the second connection parameter, and the third connection parameter is the connection parameter acquired by the bluetooth master device before the bluetooth master device receives the first indication information.
In some embodiments, the apparatus further comprises:
the first receiving module is used for receiving a configuration result based on the first connection parameter returned by the Bluetooth master device;
the first data transmission module is further configured to:
and responding to the configuration result indicating that the configuration is successful, and performing data transmission with the Bluetooth master device based on the first connection parameters.
In some embodiments, the apparatus further comprises:
the first determining module is used for determining the current data transmission speed of the Bluetooth slave equipment;
a second determining module, configured to determine that the bluetooth slave device is in the first data transmission state in response to the current data transmission speed being greater than a transmission speed threshold.
In some embodiments, the apparatus further comprises:
a third determining module, configured to determine a data transmission level of the current data transmission speed in response to the current data transmission speed being greater than a transmission speed threshold;
and the fourth determining module is used for determining a fourth connection parameter corresponding to the data transmission grade as the first connection parameter according to the data transmission grade.
In some embodiments, the apparatus further comprises:
a fifth determining module, configured to determine a data transmission amount indicated by the bluetooth data transmission instruction;
a sixth determining module, configured to determine that the bluetooth slave device is in the first data transmission state in response to the data transmission amount being greater than a transmission amount threshold.
In some embodiments, the apparatus further comprises:
a seventh determining module, configured to determine a transmission amount level of the current data transmission amount in response to the data transmission amount being greater than a transmission amount threshold;
and the eighth determining module is used for determining a fifth connection parameter corresponding to the data transmission quantity grade as the first connection parameter according to the transmission quantity grade.
According to a fourth aspect of the embodiments of the present disclosure, the bluetooth master device includes:
a second receiving module, configured to receive indication information sent by the bluetooth slave device, where the indication information is used to indicate that the bluetooth master device configures a connection parameter as a first connection parameter, and the first indication information is sent by the bluetooth slave device in a first data transmission state;
and the second data transmission module is used for carrying out data transmission with the Bluetooth slave equipment based on the first connection parameters.
In some embodiments, the apparatus further comprises:
the configuration module is used for configuring the first connection parameter for the Bluetooth master device based on the indication information so as to generate a configuration result;
a returning module, configured to return the configuration result to the bluetooth slave device;
the second data transmission module is further configured to:
and in response to the configuration result indicating that the configuration is successful, performing data transmission with the Bluetooth slave device based on the first connection parameter.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a bluetooth slave device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: when the executable instructions are executed, the data transmission method applied to the bluetooth slave device is implemented.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a bluetooth master device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: when the executable instruction is executed, the data transmission method applied to the bluetooth master device is implemented.
According to a seventh aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having stored thereon a computer program which is executed by a processor to implement any of the above-described data processing methods applied to a bluetooth slave device, or to implement any of the above-described data processing methods applied to a bluetooth master device.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
when the embodiment of the disclosure is applied to the Bluetooth slave device, in response to detecting that the Bluetooth slave device is in a first data transmission state, configuring the connection parameter of the Bluetooth slave device as a first connection parameter; sending indication information to a Bluetooth master device connected with a Bluetooth slave device, wherein the indication information is used for indicating the Bluetooth master device to configure the connection parameter as the first connection parameter; and responding to the received Bluetooth data transmission instruction, and performing data transmission with the Bluetooth master device based on the first connection parameters. Thus, compared with the cumbersome operations of negotiating a session for connection parameters between the bluetooth slave device and the bluetooth master device, waiting for the bluetooth master device to take effect after the negotiation session, and the like in the related art, the embodiment of the disclosure can automatically configure the local connection parameters of the bluetooth slave device as the first connection parameters and indicate that the connection parameters of the bluetooth master device are also configured as the first connection parameters under the condition that the bluetooth slave device is in the first data transmission state, and can directly adopt the first connection parameters to perform data transmission when performing data transmission. Therefore, when the Bluetooth slave device is in the first data transmission state, the data transmission can be performed in time by using the first connection parameter, and the influence on the data transmission in the first data transmission state caused by the fact that the first connection parameter required by the first data transmission state is not configured in time is reduced. Meanwhile, the embodiment of the disclosure also implicitly discloses that when the bluetooth slave device is not in the first data transmission state, the connection parameters of the bluetooth slave device and the bluetooth master device may not be configured to be the first connection parameters adapted to the first data transmission state, so that the electric quantity to the bluetooth slave device and the bluetooth master device can be reduced. Therefore, the embodiment of the disclosure can take into account both the power saving and the data transmission efficiency of the bluetooth slave device.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart illustrating a method of data transmission according to an exemplary embodiment;
FIG. 2 is another flow chart illustrating a method of data transmission according to an exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of data transmission according to another exemplary embodiment;
FIG. 4 is yet another flow chart illustrating a method of data transmission in accordance with another exemplary embodiment;
FIG. 5 is a block diagram illustrating a data transmission apparatus according to an example embodiment;
FIG. 6 is a block diagram illustrating a data transmission apparatus according to another exemplary embodiment;
FIG. 7 is a block diagram illustrating a Bluetooth slave device in accordance with an exemplary embodiment;
fig. 8 is a block diagram illustrating a bluetooth master device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
For convenience of understanding, the embodiment of the disclosure is applied to a scenario that the bluetooth slave device is in communication connection with the bluetooth master device in a bluetooth connection manner. The bluetooth slave device may send its data to the bluetooth master device in a bluetooth connection manner, for example, the bluetooth slave device may send voice information or key information to the bluetooth master device, so that the bluetooth master device performs a response operation based on the voice information or the key information. In practical applications, the bluetooth slave device may include: bluetooth remote controller, and smart mobile phone, panel computer etc. this bluetooth master device can include: bluetooth master devices such as intelligent televisions, intelligent bedside lamps and intelligent refrigerators. Of course, in other embodiments, the bluetooth master device may also be a smart phone, a tablet computer, a notebook computer, or a desktop computer. The present disclosure is not limited in this regard.
Fig. 1 is a flow chart illustrating a data transmission method according to an exemplary embodiment, which is applied to a bluetooth remote control device, as shown in fig. 1, and includes the following steps:
step 11: in response to detecting that the Bluetooth slave device is in a first data transmission state, configuring connection parameters of the Bluetooth slave device as first connection parameters; sending indication information to a Bluetooth master device connected with the Bluetooth slave device, wherein the indication information is used for indicating the Bluetooth master device to configure the connection parameter as the first connection parameter;
step 12: and responding to the received Bluetooth data transmission instruction, and performing data transmission with the Bluetooth master device based on the first connection parameters.
It should be noted that, after the bluetooth slave device and the bluetooth master device establish a connection, all data communication is performed in a connection event. And the connection event and the sleep time occur alternately. In practice, most of the time between the bluetooth slave and the bluetooth master is in sleep time, in which case the power consumption is relatively low, while in connection events the power consumption is relatively high. This is one of the reasons for power saving in bluetooth communication.
Based on this, the connection parameters of bluetooth include, but are not limited to, the following three parameters:
connection Interval (Connection Interval), a frequency hopping mechanism is used in Connection of two devices connected for bluetooth communication. Two devices transmit and receive data using a particular channel and then use the new channel after a period of time. The two devices send and receive data at the switch signal as a connection event. Although no application data is sent and received, the two devices still exchange link layer data, i.e., send null packets to maintain the connection. Here, the connection interval refers to a time interval from the start of one connection event to the start of the next connection event.
Device Latency or device Latency (Latency), which allows the bluetooth master and/or the bluetooth slave to skip a certain number of connection events without data to be sent, in which connection events there is no need to reply, i.e. reply to the other party's data packet, which can save more power. For example, if Latency is 0, a packet, including an empty packet or a data packet, needs to be replied to every connection interval of communication, and if Latency is 5, a packet needs to be replied to every connection interval of six communication, so that the connection between the bluetooth slave device and the bluetooth master device can be maintained.
A Timeout or Supervision Timeout (Supervision Timeout) parameter that sets a Timeout that will automatically disconnect if no communication occurs in the bluetooth device during this time.
It can be appreciated that the Connection Interval is shortened, the bluetooth slave device communicates with the bluetooth master device more frequently, the data throughput speed is increased, the data transmission time is shortened, and the power consumption of the device can be increased. The connection Interval increases, the communication frequency decreases, the data throughput speed decreases, the data transmission time increases, and the device can reduce power consumption. Latency is reduced or set to 0, packets of the bluetooth slave device need to be replied in each connection event, power consumption is increased, and data transmission speed is increased. Latency is lengthened, power consumption is reduced, and data transmission speed is reduced.
In order to save power consumption of the bluetooth device, for example, Connection Interval is shortened or Latency is reduced when data transmission is required, and for example, Connection Interval is increased or Latency is lengthened when data transmission is not required. In the related art, during the switching process of the connection parameters, two parties needing bluetooth connection may perform real-time negotiation interaction for the connection parameters, for example, the bluetooth slave device needs to send an update request of the connection parameters to the bluetooth master device first, the bluetooth master device indicates new connection parameters and effective time thereof to the bluetooth slave device after making a decision based on the update request, the effective time to be generated arrives, and the bluetooth slave device and the bluetooth master device can communicate based on the new bluetooth connection parameters, so obviously, the problem that the connection parameters are not switched in time, which causes unnecessary power waste or low efficiency of data transmission, and the like may be obviously caused.
The first data transmission state here corresponds to the first connection parameter. The first data transmission state may be a data transmission state when data transmission is required. It can be understood that, if the first data transmission state is a data transmission state when data transmission is required, the first Connection parameter herein corresponds to a Connection parameter with higher power consumption, for example, Latency in the first Connection parameter is set to a smaller value, or Connection Interval is set to a shorter time Interval, so that data transmission in the current first data transmission state can be facilitated. For example, the first data transmission state may be a data transmission state when the data transmission speed is greater than the transmission speed threshold; for example, the first data transmission state may be a data transmission state in which the data transmission amount is greater than the transmission amount threshold.
In the embodiment of the disclosure, in response to detecting that the bluetooth slave device is in the first data transmission state, the connection parameter of the bluetooth slave device is directly configured as the first connection parameter, and the indication information for indicating that the connection parameter configured by the bluetooth master device is the first connection parameter is directly sent to the bluetooth master device connected to the bluetooth slave device, so that processes such as negotiation interaction and the like between the bluetooth slave device and the bluetooth master device during connection parameter switching can be omitted, so that the bluetooth slave device and the bluetooth master device can communicate by using the first connection parameter as soon as possible, that is, the bluetooth slave device is switched to the connection parameter with higher power consumption from the low-power-consumption connection parameter without data transmission as soon as possible, so that the bluetooth slave device can perform data transmission based on the connection parameter with higher transmission speed, and thus the efficiency of data transmission is ensured. Meanwhile, the embodiment of the disclosure can switch from the low-power-consumption connection parameters which do not need data transmission to the connection parameters with high power consumption as soon as possible, so that the low-power-consumption connection parameters can still be used for saving power for the parameters of the bluetooth slave device when the data transmission is not needed. Therefore, in the embodiment of the disclosure, at least the bluetooth slave device can have both power saving and data transmission efficiency.
In some embodiments, the method further comprises:
sending data transmission request information to the Bluetooth master device;
receiving request result information replied by the Bluetooth master device based on the data transmission request information;
and generating the Bluetooth data transmission instruction in response to the request result information indicating that the request is allowed.
Here, before data transmission with the bluetooth master device, data transmission request information is sent to the bluetooth master device in advance to request the bluetooth master device to perform data transmission. In this embodiment, because the connection parameters of the bluetooth master device and the bluetooth slave device are configured as the first connection parameters, during the process of replying the permission request communication to the bluetooth slave device, the bluetooth master device and the bluetooth master device can quickly enter a transmission state suitable for the first data transmission state due to the adopted first connection parameters, for example, the bluetooth slave device can be replied by using a lower Latency parameter, so that the bluetooth slave device can quickly enter a transmission state with higher data transmission efficiency, and thus, the bluetooth slave device can further take into account both power saving and data transmission efficiency.
In some embodiments, the step 11 is to configure the connection parameter of the bluetooth slave device as the first connection parameter in response to detecting that the bluetooth slave device is in the first data transmission state; sending indication information to a Bluetooth master device connected with the Bluetooth slave device, including:
updating connection parameters of the Bluetooth slave device from second connection parameters to the first connection parameters in response to detecting that the Bluetooth slave device changes from a second data transmission state to the first data transmission state; sending first indication information to a Bluetooth master device connected with the Bluetooth slave device, wherein the first indication information is used for indicating the Bluetooth slave device to update a third connection parameter to the first connection parameter; the second connection parameter is the connection parameter adopted by the bluetooth slave device in the second data transmission state, the data transmission speed in the first data transmission state is greater than the data transmission speed in the second data transmission state, the power consumption of the bluetooth slave device in the first connection parameter is greater than the power consumption in the second connection parameter, and the third connection parameter is the connection parameter adopted by the bluetooth master device before receiving the first indication information.
Here, the second data transmission state is a different data transmission state from the first data transmission state. It will be appreciated that the second data transfer state may be a data transfer state having a lower transmission speed requirement than the first data transfer state. Illustratively, if the data transfer rate corresponding to the first data transfer state is greater than the transfer rate threshold, the data transfer rate corresponding to the second data transfer state is less than or equal to the transfer rate threshold. Illustratively, if the data transfer amount corresponding to the first data transfer state is greater than the transfer amount threshold, the data transfer rate corresponding to the second data transfer state is less than or equal to the transfer rate threshold.
The third connection parameter is the connection parameter collected by the bluetooth master device before receiving the first indication information. In some embodiments, the third connection parameter may be the same as the second connection parameter. Namely, the connection parameters used by the bluetooth master device in the second data transmission state with the bluetooth slave device before receiving the first indication information. In other embodiments, the third connection parameter may be different from the second connection parameter, that is, a default connection parameter used by the bluetooth master device or a connection parameter used by the bluetooth master device and another bluetooth device before the bluetooth master device receives the first indication information.
In this embodiment, by detecting that the bluetooth slave device changes from the second data transmission state to the first data transmission state as the timing for configuring the first connection parameter, the connection parameter can be updated quickly at the timing for updating the data transmission state of the bluetooth slave device, thereby facilitating the efficiency of data transmission.
In some embodiments, referring to fig. 2, fig. 2 is another flow chart illustrating a data transmission method according to an exemplary embodiment, as shown in fig. 2, the method further includes:
step 21: receiving a configuration result based on the first connection parameter returned by the Bluetooth master device;
step 12, that is, the data transmission with the bluetooth master device based on the first connection parameter includes:
step 121: and responding to the configuration result indicating that the configuration is successful, and performing data transmission with the Bluetooth master device based on the first connection parameters.
It can be understood that, after receiving the indication information, the bluetooth master configures the first connection parameter for itself based on the indication of the indication information, but due to the connection status of the bluetooth master, the communication status of the bluetooth master, or the performance of the bluetooth master, the configuration may be unsuccessful. In this embodiment, the success rate of data transmission between the two bluetooth devices can be determined by receiving the configuration result that the bluetooth master device determines that the configuration is successful and then performing data transmission with the bluetooth master device based on the first connection parameter.
In some embodiments, the method further comprises:
determining the transmission speed of the current data of the Bluetooth slave device;
determining that the Bluetooth slave device is in the first data transmission state in response to the current data transmission speed being greater than a transmission speed threshold.
For example, the determining the transmission speed of the current data of the bluetooth slave device may include:
and determining the transmission speed of the current data of the Bluetooth slave equipment according to the preset time periodicity.
It is understood that the preset time period may be a preset fixed preset time period. In some embodiments, the preset time period may be set to be short so as to be able to determine the transmission speed of the current data of the bluetooth slave device in time, for example, may be set to 1 second; of course, in other embodiments, to save power, the preset time period may be set longer to save power for the bluetooth slave device, for example, 10 seconds.
In other embodiments, the predetermined time period may also be dynamically variable. For example, the preset time period may be determined from historical usage information of the device by bluetooth. For example, a bluetooth slave device, such as a bluetooth remote controller, is usually used between 7 pm and 9 pm, and the preset time period of the time period may be set to be shorter, so as to timely increase the detected transmission speed of the current data to determine whether the bluetooth slave device is in the first data transmission state, and thus timely update the connection parameter to the first connection parameter in the first data transmission state, so as to improve the efficiency of data transmission of the bluetooth slave device. For another example, at times other than 7 pm to 9 pm, the preset time period for this period may be set longer, typically to save power for the bluetooth slave device.
According to the embodiment of the disclosure, under the condition that it is detected that the current data transmission speed is greater than the transmission speed threshold, it can be determined that the bluetooth slave device is in the first data transmission state, so that a favorable guarantee can be provided for updating the connection parameters of the bluetooth slave device and the bluetooth master device to the first connection parameters based on the first data transmission state subsequently, so as to ensure the validity of data transmission between two bluetooth devices.
It should be noted that, in the embodiment of the present disclosure, taking the connection parameter as Latency as an example, when the bluetooth slave device is in the first data transmission state, the connection parameter of the bluetooth slave device will be automatically configured to have Latency of 1, that is, the bluetooth master device replies 1 packet at an interval between two communication connection events. However, in order to be able to adapt to a plurality of different data transmission speeds, the first connection parameters may actually also be dynamically configured.
In some embodiments, the method further comprises:
determining a data transmission level of the current data transmission speed in response to the current data transmission speed being greater than a transmission speed threshold;
and determining a fourth connection parameter corresponding to the data transmission grade as the first connection parameter according to the data transmission grade.
It is understood that the larger the current data transmission speed is, the higher the corresponding data transmission level is, and the smaller the corresponding first connection parameter, for example, Latency is.
Illustratively, the data transmission level is divided into three levels, where a data transmission level 1 is configured with Latency of 2, a data transmission level 2 is configured with Latency of 1, and a data transmission level 3 is configured with Latency of 0.
In the embodiment of the disclosure, the data transmission grades of different grades are divided according to different data transmission speeds in the first data transmission state, so that the connection parameters suitable for the current data transmission speed are configured more finely, and thus, the data transmission efficiency of the bluetooth slave device can be further improved.
In other embodiments, the method further comprises:
determining the data transmission quantity indicated by the Bluetooth data transmission instruction;
determining that the Bluetooth slave device is in the first data transmission state in response to the data transmission amount being greater than a transmission amount threshold.
It can be understood that the corresponding data transmission amount is different under different data transmission scenes. And the data transmission scenes indicated by different data transmission instruction instructions are different. For example, if the multimedia file is transmitted between the tablet and the tablet, the data transmission quantity is obviously larger than that of the remote control instruction transmitted between the Bluetooth remote controller and the television.
According to the embodiment of the disclosure, under the condition that the current data transmission amount is detected to be larger than the transmission amount threshold, the bluetooth slave device can be determined to be in the first data transmission state, so that the connection parameters of the bluetooth slave device and the bluetooth master device can be updated to the first connection parameters based on the first data transmission state subsequently, and a favorable guarantee is provided for ensuring the validity of data transmission between two bluetooth devices.
It should be noted that, in the embodiment of the present disclosure, taking the connection parameter as Latency as an example, when the bluetooth slave device is in the first data transmission state, the connection parameter of the bluetooth slave device will be automatically configured to have Latency of 1, that is, the bluetooth master device replies 1 packet at an interval between two communication connection events. However, in order to be able to adapt to a plurality of different data transmission speeds, the first connection parameters may actually also be dynamically configured.
In other embodiments, the method further comprises:
determining a transmission capacity level of the current data transmission capacity in response to the data transmission capacity being greater than a transmission capacity threshold;
and determining a fifth connection parameter corresponding to the data transmission quantity grade as the first connection parameter according to the transmission quantity grade.
It is understood that the larger the data transmission amount, the higher the corresponding transmission amount level, and the smaller the corresponding first connection parameter, for example, Latency.
Illustratively, the transmission capacity level is divided into three levels, where the transmission capacity level 1 is allocated with Latency of 2, the transmission capacity level 2 is allocated with Latency of 1, and the transmission capacity level 3 is allocated with Latency of 0.
In the embodiment of the disclosure, the transmission quantity grades of different grades are divided according to different transmission quantities in the first data transmission state, so that the connection parameters suitable for the current data transmission quantity are configured more finely, and thus, the data transmission efficiency of the bluetooth slave device can be further improved.
The embodiment of the present invention further discloses a data transmission method, and the following data transmission method is applied to the bluetooth master device, which is similar to the data transmission method applied to the bluetooth slave device, and for technical details which are not disclosed in the data transmission method embodiment executed by the bluetooth master device, please refer to the description of the data transmission method example executed by the bluetooth slave device, and a detailed description is not provided herein.
Fig. 3 is a flowchart illustrating a data transmission method according to another exemplary embodiment, which is applied to a bluetooth master device, as shown in fig. 3, and includes the following steps:
step 31: receiving indication information sent by the Bluetooth slave device, wherein the indication information is used for indicating that the Bluetooth master device configures connection parameters as first connection parameters, and the first indication information is sent by the Bluetooth slave device in a first data transmission state;
step 32: and carrying out data transmission with the Bluetooth slave equipment based on the first connection parameter.
When the embodiment of the disclosure is applied to the bluetooth master device, the indication information sent by the bluetooth slave device is received, and the configured first connection parameter is indicated to perform data transmission with the bluetooth slave device based on the indication information. In the embodiment of the disclosure, negotiation interaction such as a change request for the connection parameter between the bluetooth slave device and the bluetooth master device is not required, so that timely change of the connection parameter when the bluetooth slave device needs to perform data transmission in the first data transmission state can be reduced, and the efficiency of data transmission is facilitated. Meanwhile, before the bluetooth master device does not receive the indication information, that is, when the bluetooth slave device is not in the first data transmission state, the connection parameter may not be configured as the first connection parameter adapted to the first data transmission state, so that the power of the bluetooth master device can be reduced. Therefore, the embodiment of the disclosure can also take into account the power saving and data transmission efficiency of the bluetooth master device.
In some embodiments, the method further comprises:
receiving data transmission request information sent by Bluetooth master equipment;
replying request result information to the Bluetooth slave equipment based on the data transmission request information, wherein the request result information is used for generating the Bluetooth data transmission instruction for the Bluetooth slave equipment based on the request result information indicating permission request.
In this embodiment, because the connection parameters of the bluetooth master device and the bluetooth slave device are configured as the first connection parameters, during the process of replying the permission request communication to the bluetooth slave device, the bluetooth master device and the bluetooth master device can quickly enter a transmission state suitable for the first data transmission state due to the adopted first connection parameters, for example, the bluetooth slave device can be replied by using a lower Latency parameter, so that the bluetooth slave device can quickly enter a transmission state with higher data transmission efficiency, and thus, the bluetooth slave device can further take into account both power saving and data transmission efficiency.
In some embodiments, referring to fig. 4, fig. 4 is a further flowchart illustrating a data transmission method according to another exemplary embodiment, as shown in fig. 4, the method further comprising:
step 41: configuring the first connection parameter for the Bluetooth master device based on the indication information to generate a configuration result;
step 42: returning the configuration result to the Bluetooth slave device;
step 32: namely, the data transmission with the bluetooth slave device based on the first connection parameter includes:
and in response to the configuration result indicating that the configuration is successful, performing data transmission with the Bluetooth slave device based on the first connection parameter.
In this embodiment, the success rate of data transmission between the two bluetooth devices can be determined by receiving the configuration result that the bluetooth master device determines that the configuration is successful and then performing data transmission with the bluetooth master device based on the first connection parameter.
Further, the embodiments of the present disclosure provide a specific embodiment to further understand the data transmission method provided by the embodiments of the present disclosure.
It should be noted that, a bluetooth device, such as a bluetooth remote controller, a bluetooth watch, or a bluetooth bracelet, uses a bluetooth chip, and in general, in order to save power, the bluetooth device requests a host device connected to the bluetooth device to update connection parameters, so that the bluetooth device needs to communicate with a host, such as a television or a mobile phone. That is, the bluetooth device can maintain connection with the host by using non-aggressive connection parameters, and when communication with the host is needed, the bluetooth device can request the host to update the aggressive connection parameters, so that the device can quickly interact with the host. It is understood that the bluetooth device is the bluetooth slave device in the above embodiments, and the host device is the bluetooth master device in the above embodiments.
In the related art, a certain process is required for switching connection parameters between the bluetooth device and the host device, the effective time for switching the bluetooth chip of the host device may be required, and interaction such as a request for changing the connection parameters between the bluetooth device and the host device is also required. These factors will inevitably cause the connection parameters to be changed in time, thereby affecting the data transmission speed of the bluetooth device.
Illustratively, one of the connection parameters is called Latency, which is intended to control the frequency with which a bluetooth device sends packets back to the host device in order to maintain a connection. If Latency is 0, the Bluetooth device needs to return a packet to the host device every 1 connection event, and if Latency is 5, the Bluetooth device needs to return a packet to the host device every 6 connection events. Therefore, when the bluetooth device wants to save power, it needs to request the host to change the connection parameters, and increase Latency, and when the bluetooth wants to transmit a large amount of data, it requests the host to decrease Latency, but this request interaction and so on all need a certain time, resulting in the Latency being not updated in time.
In the embodiment of the disclosure, the two devices may negotiate the first connection parameter in advance, and when the bluetooth device needs to perform data transmission, the connection parameter is automatically changed into the first connection parameter, and the host device is instructed to also change the first connection parameter, so that the two devices can perform data transmission in time based on the first connection parameter.
The embodiment of the disclosure can save power for the equipment and update the connection parameters in time during high-capacity data transmission so as to ensure the data transmission speed.
Fig. 5 is a block diagram illustrating a data transmission apparatus according to an example embodiment. Referring to fig. 5, the apparatus is applied to a bluetooth slave device, and includes:
a processing module 51, configured to configure a connection parameter of the bluetooth slave device as a first connection parameter in response to detecting that the bluetooth slave device is in a first data transmission state; sending indication information to a Bluetooth master device connected with the Bluetooth slave device, wherein the indication information is used for indicating the Bluetooth master device to configure the connection parameter as the first connection parameter;
and a first data transmission module 52, configured to perform data transmission with the bluetooth master device based on the first connection parameter in response to receiving a bluetooth data transmission instruction.
In an optional embodiment, the processing module 51 is further configured to:
updating connection parameters of the Bluetooth slave device from second connection parameters to the first connection parameters in response to detecting that the Bluetooth slave device changes from a second data transmission state to the first data transmission state; sending first indication information to a Bluetooth master device connected with the Bluetooth slave device, wherein the first indication information is used for indicating the Bluetooth master device to update a third connection parameter into the first connection parameter; the second connection parameter is the connection parameter adopted by the bluetooth slave device in the second data transmission state, the data transmission speed in the first data transmission state is greater than the data transmission speed in the second data transmission state, the power consumption of the bluetooth slave device in the first connection parameter is greater than the power consumption in the second connection parameter, and the third connection parameter is the connection parameter adopted by the bluetooth master device before receiving the first indication information.
In an optional embodiment, the apparatus further comprises:
the first receiving module is used for receiving a configuration result based on the first connection parameter returned by the Bluetooth master device;
the first data transmission module 52 is further configured to:
and responding to the configuration result indicating that the configuration is successful, and performing data transmission with the Bluetooth master device based on the first connection parameters.
In an optional embodiment, the apparatus further comprises:
the first determining module is used for determining the current data transmission speed of the Bluetooth slave equipment;
a second determining module, configured to determine that the bluetooth slave device is in the first data transmission state in response to the current data transmission speed being greater than a transmission speed threshold.
In an optional embodiment, the apparatus further comprises:
a third determining module, configured to determine a data transmission level of the current data transmission speed in response to the current data transmission speed being greater than a transmission speed threshold;
and the fourth determining module is used for determining a fourth connection parameter corresponding to the data transmission grade as the first connection parameter according to the data transmission grade.
In an optional embodiment, the apparatus further comprises:
a fifth determining module, configured to determine a data transmission amount indicated by the bluetooth data transmission instruction;
a sixth determining module, configured to determine that the bluetooth slave device is in the first data transmission state in response to the data transmission amount being greater than a transmission amount threshold.
In an optional embodiment, the apparatus further comprises:
a seventh determining module, configured to determine a transmission amount level of the current data transmission amount in response to the data transmission amount being greater than a transmission amount threshold;
and the eighth determining module is used for determining a fifth connection parameter corresponding to the data transmission quantity grade as the first connection parameter according to the transmission quantity grade.
Fig. 6 is a block diagram illustrating a data transmission apparatus according to an example embodiment. Referring to fig. 6, the apparatus is applied to a bluetooth master device, and includes:
a second receiving module 61, configured to receive indication information sent by the bluetooth slave device, where the indication information is used to indicate that the bluetooth master device configures a connection parameter as a first connection parameter, and the first indication information is sent by the bluetooth slave device in a first data transmission state;
and a second data transmission module 62, configured to perform data transmission with the bluetooth slave device based on the first connection parameter.
In an optional embodiment, the apparatus further comprises:
the configuration module is used for configuring the first connection parameter for the Bluetooth master device based on the indication information so as to generate a configuration result;
a returning module, configured to return the configuration result to the bluetooth slave device;
the second data transmission module 62 is further configured to:
and in response to the configuration result indicating that the configuration is successful, performing data transmission with the Bluetooth slave device based on the first connection parameter.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating a bluetooth slave device 700, according to an example embodiment. For example, the bluetooth slave device 700 may be provided as a server. Referring to fig. 7, bluetooth slave device 700 includes a processing component 722 that further includes one or more processors, and memory resources, represented by memory 732, for storing instructions, such as applications, that are executable by processing component 722. The application programs stored in memory 732 may include one or more modules that each correspond to a set of instructions. Further, the processing component 722 is configured to execute instructions to perform the data transmission method applied to the bluetooth slave device as described in the various embodiments of the method described above.
The bluetooth slave device 700 may also include a power component 726 configured to perform power management of the bluetooth slave device 700, a wired or wireless network interface 750 configured to connect the bluetooth slave device 700 to a network, and an input output (I/O) interface 758. The Bluetooth slave device 700 may operate based on an operating system stored in memory 732, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Fig. 8 is a block diagram illustrating a bluetooth master device 800 in accordance with an example embodiment. For example, the bluetooth master device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, the bluetooth master device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operations of the bluetooth master device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the bluetooth master device 800. Examples of such data include instructions for any application or method operating on the bluetooth master device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 806 provides power to the various components of the bluetooth master device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the bluetooth master device 800.
The multimedia component 808 includes a screen that provides an output interface between the bluetooth master device 800 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. When the bluetooth master device 800 is in an operation mode, such as a photographing mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the bluetooth master device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state evaluation for the bluetooth master device 800. For example, the sensor assembly 814 may detect the on/off status of the bluetooth master device 800, the relative positioning of the components, such as the display and keypad of the bluetooth master device 800, the sensor assembly 814 may also detect a change in the position of the bluetooth master device 800 or a component of the bluetooth master device 800, the presence or absence of user contact with the bluetooth master device 800, the orientation or acceleration/deceleration of the bluetooth master device 800, and a change in the temperature of the bluetooth master device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the bluetooth master device 800 and other devices. The bluetooth master device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the bluetooth master device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the bluetooth master device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of a bluetooth master device, enable the bluetooth master device to perform the data transmission method according to the above embodiments.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (21)

1. A data transmission method is applied to Bluetooth slave equipment and comprises the following steps:
in response to detecting that the Bluetooth slave device is in a first data transmission state, configuring connection parameters of the Bluetooth slave device as first connection parameters; sending indication information to a Bluetooth master device connected with the Bluetooth slave device, wherein the indication information is used for indicating the Bluetooth master device to configure the connection parameter as the first connection parameter;
and responding to the received Bluetooth data transmission instruction, and performing data transmission with the Bluetooth master device based on the first connection parameters.
2. The method of claim 1, wherein in response to detecting that the Bluetooth slave device is in a first data transfer state, configuring connection parameters of the Bluetooth slave device to first connection parameters; sending indication information to a Bluetooth master device connected with the Bluetooth slave device, including:
updating connection parameters of the Bluetooth slave device from second connection parameters to the first connection parameters in response to detecting that the Bluetooth slave device changes from a second data transmission state to the first data transmission state; sending first indication information to a Bluetooth master device connected with the Bluetooth slave device, wherein the first indication information is used for indicating the Bluetooth master device to update a third connection parameter into the first connection parameter; the second connection parameter is the connection parameter adopted by the bluetooth slave device in the second data transmission state, the data transmission speed in the first data transmission state is greater than the data transmission speed in the second data transmission state, the power consumption of the bluetooth slave device in the first connection parameter is greater than the power consumption in the second connection parameter, and the third connection parameter is the connection parameter adopted by the bluetooth master device before receiving the first indication information.
3. The method of claim 1, further comprising:
receiving a configuration result based on the first connection parameter returned by the Bluetooth master device;
the data transmission with the bluetooth master device based on the first connection parameter includes:
and responding to the configuration result indicating that the configuration is successful, and performing data transmission with the Bluetooth master device based on the first connection parameters.
4. The method according to any one of claims 1 to 3, further comprising:
determining a current data transmission speed of the Bluetooth slave device;
determining that the Bluetooth slave device is in the first data transmission state in response to the current data transmission speed being greater than a transmission speed threshold.
5. The method of claim 3, further comprising:
determining a data transmission level of the current data transmission speed in response to the current data transmission speed being greater than a transmission speed threshold;
and determining a fourth connection parameter corresponding to the data transmission grade as the first connection parameter according to the data transmission grade.
6. The method according to any one of claims 1 to 3, further comprising:
determining the data transmission quantity indicated by the Bluetooth data transmission instruction;
determining that the Bluetooth slave device is in the first data transmission state in response to the data transmission amount being greater than a transmission amount threshold.
7. The method of claim 6, further comprising:
determining a transmission capacity level of the current data transmission capacity in response to the data transmission capacity being greater than a transmission capacity threshold;
and determining a fifth connection parameter corresponding to the data transmission quantity grade as the first connection parameter according to the transmission quantity grade.
8. A data transmission method is applied to a Bluetooth master device and comprises the following steps:
receiving indication information sent by the Bluetooth slave device, wherein the indication information is used for indicating that the Bluetooth master device configures connection parameters as first connection parameters, and the first indication information is sent by the Bluetooth slave device in a first data transmission state;
and carrying out data transmission with the Bluetooth slave equipment based on the first connection parameter.
9. The method of claim 8, further comprising:
configuring the first connection parameter for the Bluetooth master device based on the indication information to generate a configuration result;
returning the configuration result to the Bluetooth slave device;
the data transmission with the Bluetooth slave device based on the first connection parameter comprises:
and in response to the configuration result indicating that the configuration is successful, performing data transmission with the Bluetooth slave device based on the first connection parameter.
10. A data transmission device, which is applied to a Bluetooth slave device, comprises:
the processing module is used for responding to the detection that the Bluetooth slave device is in a first data transmission state, and configuring the connection parameters of the Bluetooth slave device into first connection parameters; sending indication information to a Bluetooth master device connected with the Bluetooth slave device, wherein the indication information is used for indicating the Bluetooth master device to configure the connection parameter as the first connection parameter;
and the first data transmission module is used for responding to the received Bluetooth data transmission instruction and performing data transmission with the Bluetooth master device based on the first connection parameter.
11. The apparatus of claim 10, wherein the processing module is further configured to:
updating connection parameters of the Bluetooth slave device from second connection parameters to the first connection parameters in response to detecting that the Bluetooth slave device changes from a second data transmission state to the first data transmission state; sending first indication information to a Bluetooth master device connected with the Bluetooth slave device, wherein the first indication information is used for indicating the Bluetooth master device to update a third connection parameter into the first connection parameter; the second connection parameter is the connection parameter adopted by the bluetooth slave device in the second data transmission state, the data transmission speed in the first data transmission state is greater than the data transmission speed in the second data transmission state, the power consumption of the bluetooth slave device in the first connection parameter is greater than the power consumption in the second connection parameter, and the third connection parameter is the connection parameter adopted by the bluetooth master device before receiving the first indication information.
12. The apparatus of claim 9, further comprising:
the first receiving module is used for receiving a configuration result based on the first connection parameter returned by the Bluetooth master device;
the first data transmission module is further configured to:
and responding to the configuration result indicating that the configuration is successful, and performing data transmission with the Bluetooth master device based on the first connection parameters.
13. The apparatus of any one of claims 9 to 12, further comprising:
the first determining module is used for determining the current data transmission speed of the Bluetooth slave equipment;
a second determining module, configured to determine that the bluetooth slave device is in the first data transmission state in response to the current data transmission speed being greater than a transmission speed threshold.
14. The apparatus of claim 13, further comprising:
a third determining module, configured to determine a data transmission level of the current data transmission speed in response to the current data transmission speed being greater than a transmission speed threshold;
and the fourth determining module is used for determining a fourth connection parameter corresponding to the data transmission grade as the first connection parameter according to the data transmission grade.
15. The apparatus of any one of claims 9 to 12, further comprising:
a fifth determining module, configured to determine a data transmission amount indicated by the bluetooth data transmission instruction;
a sixth determining module, configured to determine that the bluetooth slave device is in the first data transmission state in response to the data transmission amount being greater than a transmission amount threshold.
16. The apparatus of claim 15, further comprising:
a seventh determining module, configured to determine a transmission amount level of the current data transmission amount in response to the data transmission amount being greater than a transmission amount threshold;
and the eighth determining module is used for determining a fifth connection parameter corresponding to the data transmission quantity grade as the first connection parameter according to the transmission quantity grade.
17. A data transmission device is characterized in that the data transmission device is applied to a Bluetooth main device and comprises:
a second receiving module, configured to receive indication information sent by the bluetooth slave device, where the indication information is used to indicate that the bluetooth master device configures a connection parameter as a first connection parameter, and the first indication information is sent by the bluetooth slave device in a first data transmission state;
and the second data transmission module is used for carrying out data transmission with the Bluetooth slave equipment based on the first connection parameters.
18. The apparatus of claim 17, further comprising:
the configuration module is used for configuring the first connection parameter for the Bluetooth master device based on the indication information so as to generate a configuration result;
a returning module, configured to return the configuration result to the bluetooth slave device;
the second data transmission module is further configured to:
and in response to the configuration result indicating that the configuration is successful, performing data transmission with the Bluetooth slave device based on the first connection parameter.
19. A bluetooth slave device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: when the executable instructions are executed, the data transmission method of any one of claims 1 to 7 is realized.
20. A bluetooth master device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: for implementing the data transmission method of claim 8 or 9 when executing the executable instructions.
21. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the program is executed by a processor to implement the data transmission method according to any one of claims 1 to 7, or the data transmission method according to claim 8 or 9.
CN202111300678.8A 2021-11-04 2021-11-04 Data transmission method and device, Bluetooth slave device and Bluetooth master device Pending CN114158018A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111300678.8A CN114158018A (en) 2021-11-04 2021-11-04 Data transmission method and device, Bluetooth slave device and Bluetooth master device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111300678.8A CN114158018A (en) 2021-11-04 2021-11-04 Data transmission method and device, Bluetooth slave device and Bluetooth master device

Publications (1)

Publication Number Publication Date
CN114158018A true CN114158018A (en) 2022-03-08

Family

ID=80459252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111300678.8A Pending CN114158018A (en) 2021-11-04 2021-11-04 Data transmission method and device, Bluetooth slave device and Bluetooth master device

Country Status (1)

Country Link
CN (1) CN114158018A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114578977A (en) * 2022-05-07 2022-06-03 深圳市研川科技有限公司 Wireless keyboard intelligent control method for special computer and wireless keyboard
CN115002885A (en) * 2022-06-28 2022-09-02 厦门汉印电子技术有限公司 Label data acquisition method and device, electronic equipment and storage medium
CN115002885B (en) * 2022-06-28 2024-04-26 厦门汉印电子技术有限公司 Label data acquisition method and device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114578977A (en) * 2022-05-07 2022-06-03 深圳市研川科技有限公司 Wireless keyboard intelligent control method for special computer and wireless keyboard
CN115002885A (en) * 2022-06-28 2022-09-02 厦门汉印电子技术有限公司 Label data acquisition method and device, electronic equipment and storage medium
CN115002885B (en) * 2022-06-28 2024-04-26 厦门汉印电子技术有限公司 Label data acquisition method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US11924869B2 (en) Method and device for configuration and adjusting search space parameter
CN106604376B (en) Channel monitoring control method, device and user terminal
US10031575B2 (en) Method and device for waking up MCU chip
EP3771261B1 (en) Paging synchronization indication method and device, paging synchronization method, and device and base station
JP2017535085A (en) Method and apparatus for initiating an energy saving mode
US20230292269A1 (en) Method and apparatus for determining offset indication, and method and apparatus for determining offset
CN112037787A (en) Wake-up control method, device and computer readable storage medium
CN105246135A (en) Wireless network accessing method and device, and mobile terminal
CN110262692B (en) Touch screen scanning method, device and medium
CN110730954A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN105978663B (en) Data transmission method and device
US20220046519A1 (en) System message transmission method and device, and system message reception method and device
CN109863813B (en) Random access method and device
CN105578391B (en) Information processing method, device and system and terminal equipment
CN108702708B (en) Downlink control signaling detection method, device and storage medium
CN108347718B (en) Method, device and storage medium for monitoring communication packet
WO2022151280A1 (en) Communication method and apparatus, and storage medium
CN106507505B (en) Disconnection method and device for low-power-consumption Bluetooth connection
CN114158018A (en) Data transmission method and device, Bluetooth slave device and Bluetooth master device
EP4149182A1 (en) Method and apparatus for receiving and sending system information, user equipment and base station
WO2019000191A1 (en) System message receiving method and system message receiving device
EP3934293A1 (en) Communication method and apparatus, and storage medium
US20230379892A1 (en) Time segment request method and apparatus, time segment configuration method and apparatus
US11910422B2 (en) Methods and apparatuses for self-interference processing
CN112187326A (en) Antenna control method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination