CN105978663B - Data transmission method and device - Google Patents
Data transmission method and device Download PDFInfo
- Publication number
- CN105978663B CN105978663B CN201610312559.7A CN201610312559A CN105978663B CN 105978663 B CN105978663 B CN 105978663B CN 201610312559 A CN201610312559 A CN 201610312559A CN 105978663 B CN105978663 B CN 105978663B
- Authority
- CN
- China
- Prior art keywords
- remote control
- connection event
- bluetooth remote
- parameter
- prompt message
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0023—Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the signalling
- H04L1/0025—Transmission of mode-switching indication
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Signal Processing (AREA)
- Selective Calling Equipment (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The disclosure relates to a data transmission method and a device, wherein the data transmission method is applied to a Bluetooth remote control device, the Bluetooth remote control device is in communication connection with a controlled device, and the method comprises the following steps: when detecting that the Bluetooth remote control equipment is switched to a voice remote control mode, sending a first prompt message to the controlled equipment, so that the controlled equipment updates the preset parameters according to the first prompt message, and sending the updated preset parameters to the Bluetooth remote control equipment; receiving the updated preset parameters; and when the updated preset parameters take effect, transmitting the voice data according to the updated preset parameters. According to the embodiment of the disclosure, when it is detected that the Bluetooth remote control device is switched to the voice remote control mode, the first prompt message is sent to the controlled device, so that the controlled device updates the preset parameter according to the first prompt message, and the updated preset parameter increases the time slot for continuously transmitting the voice data, thereby improving the transmission rate of the voice data.
Description
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a data transmission method and apparatus.
Background
Bluetooth Low Energy (BLE) technology is a Low-cost, short-range, interoperable, robust wireless technology that was designed from the outset as Ultra Low Power (ULP) wireless technology. The bandwidth resources required by the BLE device may be variable, for example, when the BLE bluetooth remote control transmits the key information, smaller bandwidth resources are required; but if voice data is to be transmitted, then larger bandwidth resources are required. Therefore, how to increase the transmission rate is one of the technical problems that needs to be solved urgently at present.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a data transmission method and apparatus.
According to a first aspect of the embodiments of the present disclosure, there is provided a data transmission method applied to a bluetooth remote control device, where the bluetooth remote control device is in communication connection with a controlled device, the method including:
when the Bluetooth remote control equipment is detected to be switched to a voice remote control mode, sending a first prompt message to the controlled equipment, so that the controlled equipment updates preset parameters according to the first prompt message, and sending the updated preset parameters to the Bluetooth remote control equipment;
receiving the updated preset parameters;
and when the updated preset parameters take effect, transmitting voice data according to the updated preset parameters.
In an embodiment, the method further comprises:
when the Bluetooth remote control equipment is detected to be switched to a key remote control mode, sending a second prompt message to the controlled equipment, so that the controlled equipment restores the preset parameters to initial values according to the second prompt message, and sending the restored preset parameters to the Bluetooth remote control equipment;
receiving the restored preset parameters;
and when the recovered preset parameters take effect, transmitting data according to the recovered preset parameters.
In an embodiment, the preset parameter is determined according to a connection event length parameter, and the connection event length parameter includes a minimum connection event length and a maximum connection event length.
According to a second aspect of the embodiments of the present disclosure, there is provided a data transmission method applied to a controlled device, where the controlled device is in communication connection with a bluetooth remote control device, the method including:
receiving a first prompt message sent by the Bluetooth remote control equipment when the Bluetooth remote control equipment is switched to a voice remote control mode, and updating a preset parameter according to the first prompt message;
and sending the updated preset parameters to the Bluetooth remote control equipment so that the Bluetooth remote control equipment transmits voice data according to the updated preset parameters when the received updated preset parameters take effect.
In an embodiment, the method further comprises:
receiving a second prompt message sent by the Bluetooth remote control equipment when the Bluetooth remote control equipment is switched to a key remote control mode, and restoring the preset parameters to initial values according to the second prompt message;
and sending the recovered preset parameters to the Bluetooth remote control equipment so that the Bluetooth remote control equipment transmits data according to the recovered preset parameters when the received recovered preset parameters take effect.
In an embodiment, the updating the preset parameter according to the first prompt message includes:
increasing connection event length parameters according to the first prompt message, wherein the connection event length parameters comprise a minimum connection event length and a maximum connection event length;
and updating the transmission window offset information according to the increased connection event length parameter.
In an embodiment, the restoring the preset parameter to the initial value according to the second prompt message includes:
restoring the length parameter of the connection event to an initial value according to the second prompt message, wherein the length parameter of the connection event comprises the minimum length of the connection event and the maximum length of the connection event;
and updating the transmission window offset information according to the recovered connection event length parameter.
According to a third aspect of the embodiments of the present disclosure, there is provided a data transmission method applied to a bluetooth remote control device, where the bluetooth remote control device is in communication connection with a controlled device, the method including:
when the Bluetooth remote control equipment is detected to be switched to a voice remote control mode, sending a first prompt message to the controlled equipment, so that the controlled equipment sends a transmission command to the Bluetooth remote control equipment when determining that preset parameters are not changed according to the first prompt message;
and receiving the transmission command, and transmitting voice data according to the transmission command and the preset parameters.
In an embodiment, the preset parameter is determined according to a connection event length parameter, and the connection event length parameter includes a minimum connection event length and a maximum connection event length.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a data transmission method applied to a controlled device, where the controlled device is in communication connection with a bluetooth remote control device, the method including:
receiving a first prompt message sent by the Bluetooth remote control equipment when the Bluetooth remote control equipment is switched to a voice remote control mode;
and if the preset parameters are determined not to be changed according to the first prompt message, sending a transmission command to the Bluetooth remote control equipment so that the Bluetooth remote control equipment transmits voice data according to the received transmission command and the preset parameters.
In an embodiment, the determining that the preset parameter is not changed according to the first prompt message includes:
increasing connection event length parameters according to the first prompt message, wherein the connection event length parameters comprise a minimum connection event length and a maximum connection event length;
and determining transmission window offset information according to the increased connection event length parameter, and if the currently determined transmission window offset information is the same as the initial transmission window offset information, determining that the preset parameter is not changed.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a data transmission apparatus, applied to a bluetooth remote control device, where the bluetooth remote control device is in communication connection with a controlled device, the apparatus including:
the detection sending module is configured to send a first prompt message to the controlled device when the Bluetooth remote control device is detected to be switched to a voice remote control mode, so that the controlled device updates preset parameters according to the first prompt message, and sends the updated preset parameters to the Bluetooth remote control device;
a receiving module configured to receive the updated preset parameter sent by the controlled device after receiving the first prompt message sent by the detection sending module;
a transmission module configured to transmit voice data according to the updated preset parameter when the updated preset parameter received by the reception module becomes effective.
In an embodiment, the detection sending module is further configured to send a second prompt message to the controlled device when it is detected that the bluetooth remote control device is switched to a key remote control mode, so that the controlled device restores the preset parameter to an initial value according to the second prompt message, and sends the restored preset parameter to the bluetooth remote control device;
the receiving module is further configured to receive the restored preset parameters;
the transmission module is further configured to transmit data according to the restored preset parameters when the restored preset parameters received by the reception module take effect.
In an embodiment, the preset parameter is determined according to a connection event length parameter, and the connection event length parameter includes a minimum connection event length and a maximum connection event length.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a data transmission apparatus, applied to a controlled device, where the controlled device and a bluetooth remote control device are in communication connection, the apparatus including:
the receiving and updating module is configured to receive a first prompt message sent by the Bluetooth remote control equipment when the Bluetooth remote control equipment is switched to a voice remote control mode, and update preset parameters according to the first prompt message;
the first sending module is configured to send the preset parameters updated by the receiving updating module to the Bluetooth remote control device, so that the Bluetooth remote control device transmits voice data according to the updated preset parameters when the received updated preset parameters take effect.
In one embodiment, the apparatus further comprises:
the receiving and recovering module is configured to receive a second prompt message sent by the Bluetooth remote control device when the Bluetooth remote control device is switched to a key remote control mode, and recover the preset parameters to initial values according to the second prompt message;
the second sending module is further configured to send the preset parameters recovered by the receiving recovery module to the bluetooth remote control device, so that the bluetooth remote control device transmits data according to the recovered preset parameters when the received recovered preset parameters take effect.
In one embodiment, the receiving update module comprises:
a connection event length parameter configured to be a minimum connection event length and a maximum connection event length;
an updating submodule configured to update the transmission window offset information according to the connection event length parameter increased by the increasing submodule.
In one embodiment, the reception recovery module includes:
a recovery submodule configured to recover a connection event length parameter to an initial value according to the second prompt message, the connection event length parameter including a minimum connection event length and a maximum connection event length;
an updating submodule configured to update transmission window offset information according to the connection event length parameter restored by the restoring submodule.
According to a seventh aspect of the embodiments of the present disclosure, there is provided a data transmission apparatus, applied to a bluetooth remote control device, where the bluetooth remote control device is in communication connection with a controlled device, the apparatus including:
the detection sending module is configured to send a first prompt message to the controlled device when the Bluetooth remote control device is detected to be switched to a voice remote control mode, so that the controlled device sends a transmission command to the Bluetooth remote control device when the controlled device determines that preset parameters are not changed according to the first prompt message;
and the receiving transmission module is configured to receive the transmission command sent by the controlled device after receiving the first prompt message sent by the detection sending module, and transmit voice data according to the transmission command and the preset parameters.
In an embodiment, the preset parameter is determined according to a connection event length parameter, and the connection event length parameter includes a minimum connection event length and a maximum connection event length.
According to an eighth aspect of the embodiments of the present disclosure, there is provided a data transmission apparatus, applied to a controlled device, where the controlled device is in communication connection with a bluetooth remote control device, the apparatus including:
the receiving module is configured to receive a first prompt message sent by the Bluetooth remote control device when the Bluetooth remote control device is switched to a voice remote control mode;
and the determining and sending module is configured to send a transmission command to the Bluetooth remote control device if the preset parameter is determined not to be changed according to the first prompt message received by the receiving module, so that the Bluetooth remote control device transmits voice data according to the received transmission command and the preset parameter.
In one embodiment, the determining and sending module includes:
a connection event length parameter configured to be a minimum connection event length and a maximum connection event length;
and the determining submodule is configured to determine transmission window offset information according to the connection event length parameter after the increase submodule increases, and if the currently determined transmission window offset information is the same as the initial transmission window offset information, it is determined that the preset parameter is not changed.
According to a ninth aspect of the embodiments of the present disclosure, there is provided a data transmission apparatus applied to a bluetooth remote control device, where the bluetooth remote control device is in communication connection with a controlled device, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the Bluetooth remote control equipment is detected to be switched to a voice remote control mode, sending a first prompt message to the controlled equipment, so that the controlled equipment updates preset parameters according to the first prompt message, and sending the updated preset parameters to the Bluetooth remote control equipment;
receiving the updated preset parameters;
and when the updated preset parameters take effect, transmitting voice data according to the updated preset parameters.
According to a tenth aspect of the embodiments of the present disclosure, there is provided a data transmission apparatus, applied to a controlled device, where the controlled device and a bluetooth remote control device are in communication connection, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a first prompt message sent by the Bluetooth remote control equipment when the Bluetooth remote control equipment is switched to a voice remote control mode, and updating a preset parameter according to the first prompt message;
and sending the updated preset parameters to the Bluetooth remote control equipment so that the Bluetooth remote control equipment transmits voice data according to the updated preset parameters when the received updated preset parameters take effect.
According to an eleventh aspect of the embodiments of the present disclosure, there is provided a data transmission apparatus, applied to a bluetooth remote control device, where the bluetooth remote control device is in communication connection with a controlled device, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the Bluetooth remote control equipment is detected to be switched to a voice remote control mode, sending a first prompt message to the controlled equipment, so that the controlled equipment sends a transmission command to the Bluetooth remote control equipment when determining that preset parameters are not changed according to the first prompt message;
and receiving the transmission command, and transmitting voice data according to the transmission command and the preset parameters.
According to a twelfth aspect of the embodiments of the present disclosure, there is provided a data transmission apparatus, applied to a controlled device, where the controlled device and a bluetooth remote control device are in communication connection, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a first prompt message sent by the Bluetooth remote control equipment when the Bluetooth remote control equipment is switched to a voice remote control mode;
and if the preset parameters are determined not to be changed according to the first prompt message, sending a transmission command to the Bluetooth remote control equipment so that the Bluetooth remote control equipment transmits voice data according to the received transmission command and the preset parameters.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when the Bluetooth remote control device is detected to be switched to the voice remote control mode, the first prompt message is sent to the controlled device, so that the controlled device updates the preset parameters according to the first prompt message, and transmits voice data according to the updated preset parameters when the updated preset parameters take effect.
The second prompt message is sent to the controlled device when the Bluetooth remote control device is detected to be switched to the key remote control mode, so that the controlled device recovers the preset parameters according to the second prompt message, and transmits data according to the recovered preset parameters when the recovered preset parameters take effect.
The scheme is clearer by describing that the preset parameters are determined according to the connection event length parameters.
The method comprises the steps of receiving a first prompt message sent by the Bluetooth remote control device when the Bluetooth remote control device is switched to the voice remote control mode, updating the preset parameter according to the first prompt message, and then sending the updated preset parameter to the Bluetooth remote control device, so that the controlled device transmits voice data according to the updated preset parameter.
The second prompt message sent by the Bluetooth remote control equipment when the Bluetooth remote control equipment is switched to the key remote control mode is received, the preset parameter is restored to the initial value according to the second prompt message, and then the restored preset parameter is sent to the Bluetooth remote control equipment, so that the Bluetooth remote control equipment can transmit data according to the restored preset parameter.
By updating the transmission window offset information according to the increased connection event length parameter, the implementation mode is simple.
The transmission window offset information is updated according to the recovered connection event length parameter, so that the implementation mode is simple.
When the Bluetooth remote control equipment is detected to be switched to the voice remote control mode, the first prompt message is sent to the controlled equipment, so that the controlled equipment sends a transmission command to the Bluetooth remote control equipment when the preset parameter is determined not to change according to the first prompt message, and the Bluetooth remote control equipment can transmit voice data according to the received transmission command and the preset parameter, so that the purpose of transmitting the voice data as soon as possible is achieved.
The scheme is clearer by describing that the preset parameters are determined according to the connection event length parameters.
The Bluetooth remote control equipment can transmit voice data according to the received transmission command and the preset parameters by sending the transmission command to the Bluetooth remote control equipment, so that the aim of transmitting the voice data as soon as possible is fulfilled.
The transmission window offset information is determined according to the increased connection event length parameter, and if the currently determined transmission window offset information is the same as the initial transmission window offset information, the preset parameter is determined not to be changed, so that the implementation mode is simple.
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. 1A is a flow chart illustrating a method of data transmission according to an example embodiment.
Fig. 1B is a flow chart illustrating another method of data transmission according to an example embodiment.
Fig. 2A is a flow chart illustrating a method of data transmission according to an example embodiment.
Fig. 2B is a flow chart illustrating another method of data transmission according to an example embodiment.
Fig. 2C is a diagram illustrating a data transmission method according to an example embodiment.
Fig. 3 is a flow chart illustrating a method of data transmission according to an example embodiment.
Fig. 4 is a flow chart illustrating a method of data transmission according to an example 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 an example embodiment.
Fig. 7 is a block diagram illustrating another data transmission apparatus according to an example embodiment.
Fig. 8A is a block diagram illustrating another data transmission device according to an example embodiment.
Fig. 8B is a block diagram illustrating another data transmission device according to an example embodiment.
Fig. 9 is a block diagram illustrating a data transmission apparatus according to an example embodiment.
Fig. 10 is a block diagram illustrating a data transmission apparatus according to an example embodiment.
Fig. 11 is a block diagram illustrating another data transmission apparatus according to an example embodiment.
Fig. 12 is a block diagram illustrating a suitable data transmission arrangement according to 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.
Fig. 1A is a flowchart illustrating a data transmission method according to an exemplary embodiment, where as shown in fig. 1A, the data transmission method is applied to a bluetooth remote control device, and the bluetooth remote control device is communicatively connected to a controlled device, and the method includes the following steps S101 to S103:
in step S101, when it is detected that the bluetooth remote control device is switched to the voice remote control mode, a first prompt message is sent to the controlled device, so that the controlled device updates the preset parameter according to the first prompt message, and sends the updated preset parameter to the bluetooth remote control device.
The bluetooth remote control device may include, but is not limited to, BLE bluetooth remote control, and may include a voice remote control mode and a key remote control mode.
In this embodiment, when the bluetooth remote control device detects that the bluetooth remote control device switches to the voice remote control mode, the bluetooth remote control device sends a first prompt message to a controlled device, for example, a television, and after receiving the first prompt message, the controlled device may increase a connection event length parameter (connection event length) according to the first prompt message, and update a preset parameter, that is, transmission window offset information, according to the increased connection event length parameter, so that a larger time slot for continuously transmitting voice data may be allocated to the bluetooth remote control device.
The connection event length is a connection parameter defined in the BLE protocol specification, and has two parameters, namely a minimum connection event length (min _ ce _ len) and a maximum connection event length (max _ ce _ len). The meaning of these two parameters is the minimum and maximum number of time slots that the controlled device can allocate to the bluetooth remote control device each time the bluetooth remote control device communicates with the controlled device.
In step S102, updated preset parameters are received.
In this embodiment, the bluetooth remote control device may receive a preset parameter, i.e., transmission window offset information, sent by the controlled device.
In step S103, when the updated preset parameter becomes effective, the voice data is transmitted according to the updated preset parameter.
In this embodiment, when the transmission window offset information is validated, the bluetooth remote control device may transmit voice data according to the transmission window offset information, thereby increasing the transmission rate.
According to the data transmission method embodiment, when the Bluetooth remote control device is detected to be switched to the voice remote control mode, the first prompt message is sent to the controlled device, so that the controlled device updates the preset parameters according to the first prompt message, and when the updated preset parameters take effect, the voice data is transmitted according to the updated preset parameters.
Fig. 1B is a flowchart illustrating another data transmission method according to an exemplary embodiment, and as shown in fig. 1B, after the step S101, the method may further include the following steps:
in step S104, when it is detected that the bluetooth remote control device is switched to the key remote control mode, a second prompt message is sent to the controlled device, so that the controlled device restores the preset parameter to the initial value according to the second prompt message, and sends the restored preset parameter to the bluetooth remote control device.
In this embodiment, when the user switches the bluetooth remote control device from the voice remote control mode to the key remote control mode, the bluetooth remote control device may send a second prompt message to the controlled device, and after receiving the second prompt message, the controlled device may restore min _ ce _ len and max _ ce _ len to the initial values according to the second prompt message, so as to restore the preset parameters, that is, the transmission window offset information, to the initial values, and send the restored preset parameters to the bluetooth remote control device.
In step S105, the restored preset parameters are received.
In step S106, when the restored preset parameters become effective, data is transmitted according to the restored preset parameters.
In this embodiment, when the restored transmission window offset information is validated, data may be transmitted according to the restored transmission window offset information. The transmission window offset information is restored to the initial level, so that the Bluetooth remote control equipment can obtain the required time slot and the time slot resource is not wasted.
According to the embodiment of the data transmission method, when the Bluetooth remote control device is detected to be switched to the key remote control mode, the second prompt message is sent to the controlled device, so that the controlled device recovers the preset parameters according to the second prompt message, and when the recovered preset parameters take effect, the data is transmitted according to the recovered preset parameters.
Fig. 2A is a flowchart illustrating a data transmission method according to an exemplary embodiment, where as shown in fig. 2A, the data transmission method is applied to a controlled device, and the controlled device is communicatively connected to a bluetooth remote control device, and the method includes the following steps:
in step S201, a first prompt message sent by the bluetooth remote control device when switching to the voice remote control mode is received, and the preset parameter is updated according to the first prompt message.
In this embodiment, when the bluetooth remote control device detects that the bluetooth remote control device switches to the voice remote control mode, the bluetooth remote control device sends a first prompt message to the controlled device, for example, a television, and after receiving the first prompt message, the controlled device may increase the connection event length according to the first prompt message, and update the preset parameter, that is, the transmission window offset information according to the increased connection event length, so that a larger time slot for continuously transmitting voice data may be allocated to the bluetooth remote control device.
It should be noted that, the BLE protocol specification includes, in addition to the connection event length, connection parameters such as a connection interval (connection interval), a connection delay (connection latency), and a connection timeout (connection timeout), but in this embodiment, the controlled device only increases the connection event length after receiving the first prompt message, and keeps the three parameters of the connection interval, the connection delay, and the connection timeout unchanged. Keeping the connection interval and connection latency unchanged can effectively reduce the power consumption of the Bluetooth remote control.
For example, in the transmission process of voice data, if the CPU of the controlled device is dead due to some reasons or the communication bus of the controlled device and the bluetooth chip thereof has a problem, the bluetooth chip of the controlled device can also work normally, the buffer memory of the bluetooth chip of the controlled device can be filled with the voice data and cannot be transmitted to the controlled device, the bluetooth remote control cannot transmit the voice data to the bluetooth chip of the controlled device, the bluetooth remote control finds that the data cannot be transmitted, and the voice collection is stopped after a period of time. At this time, the bluetooth remote control only needs the time of interval delay to reply the empty packet to the bluetooth chip of the controlled device (in order to maintain the connection), and the power consumption of the bluetooth remote control is less because the product value of interval delay is larger.
For another example, after the user upgrades the controlled device, for example, the television system, the television is turned on, if there is a new bluetooth remote control firmware (firmware) for the television to be updated, during the updating process, if the user presses the switch (power) key to make the television blank, the updating is continued, if the updating cannot be continued due to an accident, it is assumed that the connection parameter interval is reduced, so that the remote control may be in a power-consuming mode all the time, and if the user does not turn on the television for a long time, the remote control may consume light from the battery. In the present embodiment, the interval delay remains unchanged, so that the above-mentioned remote control battery is prevented from being consumed.
In this embodiment, updating the preset parameter, that is, the transmission window offset information according to the increased connection event length parameter is a preferred way to update the preset parameter, and in practical application, the transmission window offset information may also be updated by adjusting other connection parameters.
In step S202, the updated preset parameters are sent to the bluetooth remote control device, so that the bluetooth remote control device transmits the voice data according to the updated preset parameters when the received updated preset parameters become effective.
The controlled device can send the updated preset parameter to the bluetooth remote control device after updating the preset parameter, namely the transmission window offset information, according to the increased connection event length, and the bluetooth remote control device can transmit the voice data according to the updated preset parameter when the received updated preset parameter takes effect, so that the transmission rate is improved.
According to the embodiment of the data transmission method, the first prompt message sent by the Bluetooth remote control device when the Bluetooth remote control device is switched to the voice remote control mode is received, the preset parameter is updated according to the first prompt message, and the updated preset parameter is sent to the Bluetooth remote control device, so that the controlled device transmits the voice data according to the updated preset parameter.
Fig. 2B is a flowchart illustrating another data transmission method according to an exemplary embodiment, and as shown in fig. 2B, after the step S201, the method may further include the following steps:
in step S203, a second prompt message sent by the bluetooth remote control device when switching to the key remote control mode is received, and the preset parameter is restored to the initial value according to the second prompt message.
In this embodiment, when the user switches the bluetooth remote control device from the voice remote control mode to the key remote control mode, the bluetooth remote control device may send a second prompt message to the controlled device, and after receiving the second prompt message, the controlled device may restore min _ ce _ len and max _ ce _ len to the initial values according to the second prompt message, so as to restore the preset parameters, that is, the transmission window offset information, to the initial values.
In step S204, the recovered preset parameters are sent to the bluetooth remote control device, so that the bluetooth remote control device transmits data according to the recovered preset parameters when the received recovered preset parameters become effective.
In this embodiment, the controlled device may send the recovered transmission window offset information to the bluetooth remote control device, so that the bluetooth remote control device may transmit data according to the recovered transmission window offset information when the recovered transmission window offset information is valid. The transmission window offset information is restored to the initial level, so that the Bluetooth remote control equipment can obtain the required time slot and the time slot resource is not wasted.
According to the embodiment of the data transmission method, the second prompt message sent by the Bluetooth remote control device when the Bluetooth remote control device is switched to the key remote control mode is received, the preset parameter is restored to the initial value according to the second prompt message, and then the restored preset parameter is sent to the Bluetooth remote control device, so that the Bluetooth remote control device can transmit data according to the restored preset parameter.
As shown in fig. 2C, bluetooth remote controls 21 to 23 are all in communication connection with controlled device 24, when a voice key of bluetooth remote control 21 is pressed by a user, bluetooth remote control 21 detects that bluetooth remote control 21 switches to a voice remote control mode, and then sends a first prompt message to controlled device 24, after receiving the first prompt message, controlled device 24 increases min _ ce _ len and max _ ce _ len according to the first prompt message, and updates transmission window offset information according to increased min _ ce _ len and max _ ce _ len, so that a larger time slot for continuously transmitting voice data can be allocated to bluetooth remote control 21, and the rate of transmitting voice data by bluetooth remote control 21 is increased.
Fig. 3 is a flowchart illustrating a data transmission method according to an exemplary embodiment, where the data transmission method is applied to a bluetooth remote control device, and the bluetooth remote control device is communicatively connected to a controlled device, as shown in fig. 3, and the method includes the following steps:
in step S301, when it is detected that the bluetooth remote control device is switched to the voice remote control mode, a first prompt message is sent to the controlled device, so that the controlled device sends a transmission command to the bluetooth remote control device when it is determined that the preset parameter is not changed according to the first prompt message.
In this embodiment, when the bluetooth remote control device detects that the bluetooth remote control device switches to the voice remote control mode, the bluetooth remote control device sends a first prompt message to a controlled device, for example, a television, and after receiving the first prompt message, the controlled device may increase a connection event length parameter according to the first prompt message, and update a preset parameter, that is, transmission window offset information, according to the increased connection event length parameter, and if the preset parameter is not changed, send a transmission command to the bluetooth remote control device.
It should be noted that the embodiment is different from the embodiment shown in fig. 1A in that: the updated default parameters in the embodiment shown in fig. 1A are changed, but not changed in the embodiment. In this embodiment, the reason why the preset parameter is not changed is as follows: enough time for the Bluetooth remote control device to transmit voice data is not allocated to other Bluetooth remote control devices after the current communication time point of the Bluetooth remote control device, so that the communication time with the Bluetooth remote control device can be prolonged and increased.
In step S302, a transmission command is received, and voice data is transmitted according to the transmission command and preset parameters.
In this embodiment, since the preset parameter, that is, the transmission window offset information, is not changed, the bluetooth remote control device receives the transmission command, and transmits the voice data according to the transmission command and the preset parameter. In general, there is a time difference between the bluetooth remote control device transmitting the voice data according to the preset parameters, but in order to transmit the voice data as soon as possible, the embodiment transmits a transmission command to the bluetooth remote control device, so that the bluetooth remote control device can transmit the voice data after receiving the transmission command.
According to the data transmission method embodiment, when the Bluetooth remote control device is detected to be switched to the voice remote control mode, the first prompt message is sent to the controlled device, so that the controlled device sends the transmission command to the Bluetooth remote control device when the preset parameter is determined not to be changed according to the first prompt message, and therefore the Bluetooth remote control device can transmit voice data according to the received transmission command and the preset parameter, and the purpose of transmitting the voice data as soon as possible is achieved.
Fig. 4 is a flowchart illustrating a data transmission method according to an exemplary embodiment, where the data transmission method is applied to a controlled device, and the controlled device is communicatively connected to a bluetooth remote control device, as shown in fig. 4, and the method includes the following steps:
in step S401, a first prompt message sent by the bluetooth remote control device when switching to the voice remote control mode is received.
In this embodiment, when the bluetooth remote control device detects that it switches to the voice remote control mode, a first prompt message may be sent to a controlled device, such as a television.
In step S402, if it is determined that the preset parameter has not changed according to the first prompt message, a transmission command is sent to the bluetooth remote control device, so that the bluetooth remote control device transmits voice data according to the received transmission command and the preset parameter.
After receiving the first prompt message, the controlled device may increase the connection event length parameter according to the first prompt message, update the preset parameter, that is, the transmission window offset information, according to the increased connection event length parameter, and send a transmission command to the bluetooth remote control device if the preset parameter is not changed.
Wherein the connection event length parameter includes a minimum connection event length and a maximum connection event length.
According to the embodiment of the data transmission method, the transmission command is sent to the Bluetooth remote control equipment, so that the Bluetooth remote control equipment can transmit the voice data according to the received transmission command and the preset parameters, and the purpose of transmitting the voice data as soon as possible is achieved.
Corresponding to the data transmission method embodiment, the disclosure also provides a data transmission device embodiment.
Fig. 5 is a block diagram illustrating a data transmission apparatus according to an exemplary embodiment, where the data transmission apparatus is applied to a bluetooth remote control device, and the bluetooth remote control device is communicatively connected to a controlled device, as shown in fig. 5, and the apparatus includes: a detection sending module 51, a receiving module 52 and a transmission module 53.
The detection sending module 51 is configured to send a first prompt message to the controlled device when detecting that the bluetooth remote control device is switched to the voice remote control mode, so that the controlled device updates the preset parameters according to the first prompt message, and sends the updated preset parameters to the bluetooth remote control device.
The bluetooth remote control device may include, but is not limited to, BLE bluetooth remote control, and may include a voice remote control mode and a key remote control mode.
In this embodiment, when the bluetooth remote control device detects that the bluetooth remote control device switches to the voice remote control mode, the bluetooth remote control device sends a first prompt message to a controlled device, for example, a television, and after receiving the first prompt message, the controlled device may increase a connection event length parameter (connection event length) according to the first prompt message, and update a preset parameter, that is, transmission window offset information, according to the increased connection event length parameter, so that a larger time slot for continuously transmitting voice data may be allocated to the bluetooth remote control device.
The connection event length is a connection parameter defined in the BLE protocol specification, and has two parameters, namely a minimum connection event length (min _ ce _ len) and a maximum connection event length (max _ ce _ len). The meaning of these two parameters is the minimum and maximum number of time slots that the controlled device can allocate to the bluetooth remote control device each time the bluetooth remote control device communicates with the controlled device.
The receiving module 52 is configured to receive the updated preset parameters sent by the controlled device after receiving the first prompting message sent by the detection sending module 51.
A transmission module 53 configured to transmit the voice data according to the updated preset parameter when the updated preset parameter received by the reception module 52 is in effect.
In this embodiment, when the transmission window offset information is validated, the bluetooth remote control device may transmit voice data according to the transmission window offset information, thereby increasing the transmission rate.
In addition, the detection sending module 51 may be further configured to send a second prompt message to the controlled device when detecting that the bluetooth remote control device switches to the key remote control mode, so that the controlled device restores the preset parameters to the initial values according to the second prompt message, and sends the restored preset parameters to the bluetooth remote control device.
In this embodiment, when the user switches the bluetooth remote control device from the voice remote control mode to the key remote control mode, the bluetooth remote control device may send a second prompt message to the controlled device, and after receiving the second prompt message, the controlled device may restore min _ ce _ len and max _ ce _ len to the initial values according to the second prompt message, so as to restore the preset parameters, that is, the transmission window offset information, to the initial values, and send the restored preset parameters to the bluetooth remote control device.
The receiving module 52 may be further configured to receive the restored preset parameters.
The transmission module 53 may be further configured to transmit data according to the restored preset parameters when the restored preset parameters received by the reception module 52 are effective.
In this embodiment, when the restored transmission window offset information is validated, data may be transmitted according to the restored transmission window offset information. The transmission window offset information is restored to the initial level, so that the Bluetooth remote control equipment can obtain the required time slot and the time slot resource is not wasted.
The apparatus shown in fig. 5 is used for implementing the method flows shown in fig. 1A-1B, and related contents are described the same, which are not described herein again.
According to the embodiment of the data transmission device, when the Bluetooth remote control equipment is detected to be switched to the voice remote control mode, the first prompt message is sent to the controlled equipment, so that the controlled equipment updates the preset parameters according to the first prompt message, and when the updated preset parameters take effect, the voice data is transmitted according to the updated preset parameters.
Fig. 6 is a block diagram illustrating a data transmission apparatus according to an exemplary embodiment, where as shown in fig. 6, the data transmission apparatus is applied to a controlled device, and the controlled device is communicatively connected to a bluetooth remote control device, and the apparatus includes: a reception update module 61 and a first transmission module 62.
The receiving and updating module 61 is configured to receive a first prompt message sent by the bluetooth remote control device when switching to the voice remote control mode, and update the preset parameters according to the first prompt message.
In this embodiment, when the bluetooth remote control device detects that the bluetooth remote control device switches to the voice remote control mode, the bluetooth remote control device sends a first prompt message to the controlled device, for example, a television, and after receiving the first prompt message, the controlled device may increase the connection event length according to the first prompt message, and update the preset parameter, that is, the transmission window offset information according to the increased connection event length, so that a larger time slot for continuously transmitting voice data may be allocated to the bluetooth remote control device.
It should be noted that, the BLE protocol specification includes, in addition to the connection event length, connection parameters such as a connection interval (connection interval), a connection delay (connection latency), and a connection timeout (connection timeout), but in this embodiment, the controlled device only increases the connection event length after receiving the first prompt message, and keeps the three parameters of the connection interval, the connection delay, and the connection timeout unchanged. Keeping the connection interval and connection latency unchanged can effectively reduce the power consumption of the Bluetooth remote control.
For example, in the transmission process of voice data, if the CPU of the controlled device is dead due to some reasons or the communication bus of the controlled device and the bluetooth chip thereof has a problem, the bluetooth chip of the controlled device can also work normally, the buffer memory of the bluetooth chip of the controlled device can be filled with the voice data and cannot be transmitted to the controlled device, the bluetooth remote control cannot transmit the voice data to the bluetooth chip of the controlled device, the bluetooth remote control finds that the data cannot be transmitted, and the voice collection is stopped after a period of time. At this time, the bluetooth remote control only needs the time of interval delay to reply the empty packet to the bluetooth chip of the controlled device (in order to maintain the connection), and the power consumption of the bluetooth remote control is less because the product value of interval delay is larger.
For another example, after the user upgrades the controlled device, for example, the television system, the television is turned on, if there is a new bluetooth remote control firmware (firmware) for the television to be updated, during the updating process, if the user presses the switch (power) key to make the television blank, the updating is continued, if the updating cannot be continued due to an accident, it is assumed that the connection parameter interval is reduced, so that the remote control may be in a power-consuming mode all the time, and if the user does not turn on the television for a long time, the remote control may consume light from the battery. In the present embodiment, the interval delay remains unchanged, so that the above-mentioned remote control battery is prevented from being consumed.
In this embodiment, updating the preset parameter, that is, the transmission window offset information according to the increased connection event length parameter is a preferred way to update the preset parameter, and in practical application, the transmission window offset information may also be updated by adjusting other connection parameters.
The first sending module 62 is configured to send the updated preset parameters of the update module 61 to the bluetooth remote control device, so that the bluetooth remote control device transmits voice data according to the updated preset parameters when the received updated preset parameters become effective.
The controlled device can send the updated preset parameter to the bluetooth remote control device after updating the preset parameter, namely the transmission window offset information, according to the increased connection event length, and the bluetooth remote control device can transmit the voice data according to the updated preset parameter when the received updated preset parameter takes effect, so that the transmission rate is improved.
The apparatus shown in fig. 6 is used to implement the method flow shown in fig. 2A, and related contents are described the same, which is not described herein again.
According to the embodiment of the data transmission device, the first prompt message sent by the Bluetooth remote control equipment when the Bluetooth remote control equipment is switched to the voice remote control mode is received, the preset parameter is updated according to the first prompt message, and the updated preset parameter is sent to the Bluetooth remote control equipment, so that the controlled equipment transmits the voice data according to the updated preset parameter.
Fig. 7 is a block diagram of another data transmission apparatus according to an exemplary embodiment, and as shown in fig. 7, on the basis of the above embodiment shown in fig. 6, the apparatus may further include: a reception recovery module 63 and a second transmission module 64.
The receiving and recovering module 63 is configured to receive a second prompt message sent by the bluetooth remote control device when switching to the key remote control mode, and recover the preset parameter to the initial value according to the second prompt message.
In this embodiment, when the user switches the bluetooth remote control device from the voice remote control mode to the key remote control mode, the bluetooth remote control device may send a second prompt message to the controlled device, and after receiving the second prompt message, the controlled device may restore min _ ce _ len and max _ ce _ len to the initial values according to the second prompt message, so as to restore the preset parameters, that is, the transmission window offset information, to the initial values.
The second sending module 64 is further configured to send the preset parameters recovered by the receiving recovery module 63 to the bluetooth remote control device, so that the bluetooth remote control device transmits data according to the recovered preset parameters when the received recovered preset parameters take effect.
In this embodiment, the controlled device may send the recovered transmission window offset information to the bluetooth remote control device, so that the bluetooth remote control device may transmit data according to the recovered transmission window offset information when the recovered transmission window offset information is valid. The transmission window offset information is restored to the initial level, so that the Bluetooth remote control equipment can obtain the required time slot and the time slot resource is not wasted.
The apparatus shown in fig. 7 is used to implement the method flow shown in fig. 2B, and related contents are described the same, which is not described herein again.
According to the embodiment of the data transmission device, the second prompt message sent by the Bluetooth remote control equipment when the Bluetooth remote control equipment is switched to the key remote control mode is received, the preset parameter is restored to the initial value according to the second prompt message, and the restored preset parameter is sent to the Bluetooth remote control equipment, so that the Bluetooth remote control equipment can transmit data according to the restored preset parameter.
Fig. 8A is a block diagram of another data transmission apparatus according to an exemplary embodiment, and as shown in fig. 8A, on the basis of the embodiment shown in fig. 6, the receiving and updating module 61 may include: an increment sub-module 611 and an update sub-module 612.
The increasing submodule 611 is configured to increase a connection event length parameter according to the first prompting message, the connection event length parameter comprising a minimum connection event length and a maximum connection event length.
The update sub-module 612 is configured to update the transmission window offset information according to the connection event length parameter increased by the increase sub-module 611.
The apparatus shown in fig. 8A is used to implement the method flow shown in fig. 2A, and related contents are described the same, which are not described herein again.
In the above embodiment, the connection event length parameter may be increased according to the first prompt message, and the preset parameter, that is, the transmission window offset information, may be updated according to the increased connection event length parameter, so that a larger time slot for continuously transmitting voice data may be allocated to the bluetooth remote control device.
Fig. 8B is a block diagram illustrating another data transmission apparatus according to an exemplary embodiment, and as shown in fig. 8B, based on the embodiment shown in fig. 7, the receiving recovery module 63 may include: a restore submodule 631 and an update submodule 632.
The recovery sub-module 631 is configured to recover the connection event length parameter to the initial value according to the second prompt message, the connection event length parameter including a minimum connection event length and a maximum connection event length.
The update submodule 632 is configured to update the transmission window offset information according to the connection event length parameter restored by the restoration submodule 631.
The apparatus shown in fig. 8B is used to implement the method flow shown in fig. 2B, and related contents are described the same, which are not described herein again.
The above embodiment enables the bluetooth remote control device to obtain the required time slot by restoring the transmission window offset information to the initial level, and does not waste the time slot resources.
Fig. 9 is a block diagram illustrating a data transmission apparatus according to an exemplary embodiment, where the data transmission apparatus is applied to a bluetooth remote control device, and the bluetooth remote control device is communicatively connected to a controlled device, as shown in fig. 9, and the apparatus includes: a detection sending module 91 and a receiving transmission module 92.
The detection sending module 91 is configured to send a first prompt message to the controlled device when detecting that the bluetooth remote control device is switched to the voice remote control mode, so that the controlled device sends a transmission command to the bluetooth remote control device when determining that the preset parameter is not changed according to the first prompt message.
In this embodiment, when the bluetooth remote control device detects that the bluetooth remote control device switches to the voice remote control mode, the bluetooth remote control device sends a first prompt message to a controlled device, for example, a television, and after receiving the first prompt message, the controlled device may increase a connection event length parameter according to the first prompt message, and update a preset parameter, that is, transmission window offset information, according to the increased connection event length parameter, and if the preset parameter is not changed, send a transmission command to the bluetooth remote control device.
In this embodiment, the reason why the preset parameter is not changed is as follows: enough time for the Bluetooth remote control device to transmit voice data is not allocated to other Bluetooth remote control devices after the current communication time point of the Bluetooth remote control device, so that the communication time with the Bluetooth remote control device can be prolonged and increased.
The receiving and transmitting module 92 is configured to receive a transmission command sent by the controlled device after receiving the first prompting message sent by the detection and sending module 91, and transmit voice data according to the transmission command and preset parameters.
In this embodiment, since the preset parameter, that is, the transmission window offset information, is not changed, the bluetooth remote control device receives the transmission command, and transmits the voice data according to the transmission command and the preset parameter. In general, there is a time difference between the bluetooth remote control device transmitting the voice data according to the preset parameters, but in order to transmit the voice data as soon as possible, the embodiment transmits a transmission command to the bluetooth remote control device, so that the bluetooth remote control device can transmit the voice data as soon as receiving the transmission command.
The apparatus shown in fig. 9 is used to implement the method flow shown in fig. 3, and related contents are described the same, which are not described herein again.
According to the embodiment of the data transmission device, when the Bluetooth remote control equipment is detected to be switched to the voice remote control mode, the first prompt message is sent to the controlled equipment, so that the controlled equipment sends the transmission command to the Bluetooth remote control equipment when the preset parameter is determined not to be changed according to the first prompt message, and therefore the Bluetooth remote control equipment can transmit the voice data according to the received transmission command and the preset parameter, and the purpose of transmitting the voice data as soon as possible is achieved.
Fig. 10 is a block diagram illustrating a data transmission apparatus according to an exemplary embodiment, where as shown in fig. 10, the data transmission apparatus is applied to a controlled device, and the controlled device is communicatively connected to a bluetooth remote control device, and the apparatus includes: a receiving module 93 and a determining and sending module 94.
The receiving module 93 is configured to receive a first prompt message sent by the bluetooth remote control device when switching to the voice remote control mode.
In this embodiment, when the bluetooth remote control device detects that it switches to the voice remote control mode, a first prompt message may be sent to a controlled device, such as a television.
The determining and sending module 94 is configured to send a transmission command to the bluetooth remote control device if it is determined that the preset parameter is not changed according to the first prompt message received by the receiving module 93, so that the bluetooth remote control device transmits voice data according to the received transmission command and the preset parameter.
After receiving the first prompt message, the controlled device may increase the connection event length parameter according to the first prompt message, update the preset parameter, that is, the transmission window offset information, according to the increased connection event length parameter, and send a transmission command to the bluetooth remote control device if the preset parameter is not changed.
Wherein the connection event length parameter includes a minimum connection event length and a maximum connection event length.
The apparatus shown in fig. 10 is used to implement the method flow shown in fig. 4, and related contents are described the same, which are not described herein again.
According to the embodiment of the data transmission device, the transmission command is sent to the Bluetooth remote control equipment, so that the Bluetooth remote control equipment can transmit the voice data according to the received transmission command and the preset parameters, and the purpose of transmitting the voice data as soon as possible is achieved.
Fig. 11 is a block diagram of another data transmission apparatus according to an exemplary embodiment, and as shown in fig. 11, on the basis of the embodiment shown in fig. 10, the determining and sending module 94 may include: an increment sub-module 941 and a determination sub-module 942.
The increasing submodule 941 is configured to increase a connection event length parameter according to the first prompt message, and the connection event length parameter may include a minimum connection event length and a maximum connection event length.
The determining sub-module 942 is configured to determine transmission window offset information according to the connection event length parameter after the increasing sub-module 941 increases, and if the currently determined transmission window offset information is the same as the initial transmission window offset information, determine that the preset parameter has not changed.
The apparatus shown in fig. 11 is used to implement the method flow shown in fig. 4, and related contents are described the same, which are not described herein again.
According to the embodiment of the data transmission device, the transmission window offset information is determined according to the increased connection event length parameter, and if the currently determined transmission window offset information is the same as the initial transmission window offset information, the preset parameter is determined not to be changed, so that the implementation mode is simple.
With regard to the apparatus in the above embodiment, the specific manner in which each module and sub-module performs operations has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 12 is a block diagram illustrating a suitable data transmission arrangement according to an example embodiment. For example, the apparatus 1200 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, a bluetooth remote control device, a controlled device, and the like.
Referring to fig. 12, the apparatus 1200 may include one or more of the following components: processing component 1202, memory 1204, power component 1206, multimedia component 1208, audio component 1210, input/output (I/O) interface 1212, sensor component 1214, and communications component 1216.
The processing component 1202 generally controls overall operation of the apparatus 1200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 1202 may include one or more processors 1220 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 1202 can include one or more modules that facilitate interaction between the processing component 1202 and other components. For example, the processing component 1202 can include a multimedia module to facilitate interaction between the multimedia component 1208 and the processing component 1202.
The memory 1204 is configured to store various types of data to support operation at the device 1200. Examples of such data include instructions for any application or method operating on the device 1200, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1204 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.
A power component 1206 provides power to the various components of the device 1200. Power components 1206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for apparatus 1200.
The multimedia components 1208 include a screen that provides an output interface between the device 1200 and a 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 1208 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1200 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The I/O interface 1212 provides an interface between the processing component 1202 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 1214 includes one or more sensors for providing various aspects of state assessment for the apparatus 1200. For example, the sensor assembly 1214 may detect an open/closed state of the device 1200, the relative positioning of the components, such as a display and keypad of the apparatus 1200, the sensor assembly 1214 may also detect a change in the position of the apparatus 1200 or a component of the apparatus 1200, the presence or absence of user contact with the apparatus 1200, an orientation or acceleration/deceleration of the apparatus 1200, and a change in the temperature of the apparatus 1200. The sensor assembly 1214 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 1214 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 1214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communications component 1216 is configured to facilitate communications between the apparatus 1200 and other devices in a wired or wireless manner. The apparatus 1200 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 1216 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1216 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 apparatus 1200 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 memory 1204 comprising instructions, executable by processor 1220 of apparatus 1200 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.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure 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 present disclosure is limited only by the appended claims.
Claims (22)
1. A data transmission method is applied to a Bluetooth remote control device, wherein the Bluetooth remote control device is in communication connection with a controlled device, and the method comprises the following steps:
when the Bluetooth remote control equipment is detected to be switched to a voice remote control mode, sending a first prompt message to the controlled equipment, so that the controlled equipment increases the length parameter of the connection event according to the first prompt message under the condition of keeping the connection interval unchanged, updates the preset parameter according to the increased length parameter of the connection event, and sends the updated preset parameter to the Bluetooth remote control equipment; the preset parameters are determined according to connection event length parameters, and the connection event length parameters comprise a minimum connection event length and a maximum connection event length;
receiving the updated preset parameters;
and when the updated preset parameters take effect, transmitting voice data according to the updated preset parameters.
2. The data transmission method of claim 1, further comprising:
when the Bluetooth remote control equipment is detected to be switched to a key remote control mode, sending a second prompt message to the controlled equipment, so that the controlled equipment restores the preset parameters to initial values according to the second prompt message, and sending the restored preset parameters to the Bluetooth remote control equipment;
receiving the restored preset parameters;
and when the recovered preset parameters take effect, transmitting data according to the recovered preset parameters.
3. A data transmission method is applied to a controlled device, wherein the controlled device is in communication connection with a Bluetooth remote control device, and the method comprises the following steps:
receiving a first prompt message sent by the Bluetooth remote control equipment when the Bluetooth remote control equipment is switched to a voice remote control mode, increasing a connection event length parameter according to the first prompt message under the condition of keeping a connection interval unchanged, and updating a preset parameter according to the increased connection event length parameter; the preset parameters are determined according to connection event length parameters, and the connection event length parameters comprise a minimum connection event length and a maximum connection event length;
and sending the updated preset parameters to the Bluetooth remote control equipment so that the Bluetooth remote control equipment transmits voice data according to the updated preset parameters when the received updated preset parameters take effect.
4. The data transmission method of claim 3, further comprising:
receiving a second prompt message sent by the Bluetooth remote control equipment when the Bluetooth remote control equipment is switched to a key remote control mode, and restoring the preset parameters to initial values according to the second prompt message;
and sending the recovered preset parameters to the Bluetooth remote control equipment so that the Bluetooth remote control equipment transmits data according to the recovered preset parameters when the received recovered preset parameters take effect.
5. The data transmission method according to claim 3, wherein the updating the preset parameter according to the increased connection event length parameter includes:
and updating the transmission window offset information according to the increased connection event length parameter.
6. The data transmission method according to claim 4, wherein the restoring the preset parameter to an initial value according to the second prompt message comprises:
restoring the length parameter of the connection event to an initial value according to the second prompt message;
and updating the transmission window offset information according to the recovered connection event length parameter.
7. A data transmission method is applied to a Bluetooth remote control device, wherein the Bluetooth remote control device is in communication connection with a controlled device, and the method comprises the following steps:
when the Bluetooth remote control equipment is detected to be switched to a voice remote control mode, sending a first prompt message to the controlled equipment, so that the controlled equipment increases the length parameter of a connection event according to the first prompt message under the condition that the connection interval is kept unchanged, updates a preset parameter according to the increased length parameter of the connection event, and sends a transmission command to the Bluetooth remote control equipment when the updated preset parameter is determined not to be changed; the preset parameters are determined according to connection event length parameters, and the connection event length parameters comprise a minimum connection event length and a maximum connection event length;
and receiving the transmission command, and transmitting voice data according to the transmission command and the preset parameters.
8. A data transmission method is applied to a controlled device, wherein the controlled device is in communication connection with a Bluetooth remote control device, and the method comprises the following steps:
receiving a first prompt message sent by the Bluetooth remote control equipment when the Bluetooth remote control equipment is switched to a voice remote control mode;
if the connection event length parameter is increased according to the first prompt message under the condition that the connection interval is kept unchanged, updating a preset parameter according to the increased connection event length parameter, and determining that the updated preset parameter is not changed, sending a transmission command to the Bluetooth remote control equipment so that the Bluetooth remote control equipment transmits voice data according to the received transmission command and the preset parameter; the preset parameters are determined according to connection event length parameters, and the connection event length parameters comprise a minimum connection event length and a maximum connection event length.
9. The data transmission method according to claim 8, wherein the updating the preset parameter according to the increased connection event length parameter and determining that the updated preset parameter is unchanged includes:
and determining transmission window offset information according to the increased connection event length parameter, and if the currently determined transmission window offset information is the same as the initial transmission window offset information, determining that the preset parameter is not changed.
10. A data transmission device is applied to Bluetooth remote control equipment, the Bluetooth remote control equipment is in communication connection with controlled equipment, and the device comprises:
the detection sending module is configured to send a first prompt message to the controlled device when the Bluetooth remote control device is detected to be switched to a voice remote control mode, so that the controlled device increases the connection event length parameter according to the first prompt message under the condition that the connection interval is kept unchanged, updates the preset parameter according to the increased connection event length parameter, and sends the updated preset parameter to the Bluetooth remote control device; the preset parameters are determined according to connection event length parameters, and the connection event length parameters comprise a minimum connection event length and a maximum connection event length;
a receiving module configured to receive the updated preset parameter sent by the controlled device after receiving the first prompt message sent by the detection sending module;
a transmission module configured to transmit voice data according to the updated preset parameter when the updated preset parameter received by the reception module becomes effective.
11. The data transmission apparatus according to claim 10, wherein the detection sending module is further configured to send a second prompt message to the controlled device when detecting that the bluetooth remote control device switches to a key remote control mode, so that the controlled device restores the preset parameter to an initial value according to the second prompt message, and sends the restored preset parameter to the bluetooth remote control device;
the receiving module is further configured to receive the restored preset parameters;
the transmission module is further configured to transmit data according to the restored preset parameters when the restored preset parameters received by the reception module take effect.
12. A data transmission device is applied to a controlled device, the controlled device is in communication connection with a Bluetooth remote control device, and the device comprises:
the receiving and updating module is configured to receive a first prompt message sent by the Bluetooth remote control equipment when the Bluetooth remote control equipment is switched to a voice remote control mode, increase a connection event length parameter according to the first prompt message under the condition that a connection interval is kept unchanged, and update a preset parameter according to the increased connection event length parameter; the preset parameters are determined according to connection event length parameters, and the connection event length parameters comprise a minimum connection event length and a maximum connection event length;
the first sending module is configured to send the preset parameters updated by the receiving updating module to the Bluetooth remote control device, so that the Bluetooth remote control device transmits voice data according to the updated preset parameters when the received updated preset parameters take effect.
13. The data transmission apparatus of claim 12, wherein the apparatus further comprises:
the receiving and recovering module is configured to receive a second prompt message sent by the Bluetooth remote control device when the Bluetooth remote control device is switched to a key remote control mode, and recover the preset parameters to initial values according to the second prompt message;
the second sending module is further configured to send the preset parameters recovered by the receiving recovery module to the bluetooth remote control device, so that the bluetooth remote control device transmits data according to the recovered preset parameters when the received recovered preset parameters take effect.
14. The data transmission apparatus of claim 12, wherein the reception update module comprises:
an increase submodule configured to increase a connection event length parameter in accordance with the first prompt message;
an updating submodule configured to update the transmission window offset information according to the connection event length parameter increased by the increasing submodule.
15. The data transmission apparatus of claim 13, wherein the reception recovery module comprises:
a restoring submodule configured to restore the connection event length parameter to an initial value according to the second prompt message;
an updating submodule configured to update transmission window offset information according to the connection event length parameter restored by the restoring submodule.
16. A data transmission device is applied to Bluetooth remote control equipment, the Bluetooth remote control equipment is in communication connection with controlled equipment, and the device comprises:
the detection sending module is configured to send a first prompt message to the controlled device when the Bluetooth remote control device is detected to be switched to a voice remote control mode, so that the controlled device increases a connection event length parameter according to the first prompt message under the condition that a connection interval is kept unchanged, updates a preset parameter according to the increased connection event length parameter, and sends a transmission command to the Bluetooth remote control device when the updated preset parameter is determined not to be changed; the preset parameters are determined according to connection event length parameters, and the connection event length parameters comprise a minimum connection event length and a maximum connection event length;
and the receiving transmission module is configured to receive the transmission command sent by the controlled device after receiving the first prompt message sent by the detection sending module, and transmit voice data according to the transmission command and the preset parameters.
17. A data transmission device is applied to a controlled device, the controlled device is in communication connection with a Bluetooth remote control device, and the device comprises:
the receiving module is configured to receive a first prompt message sent by the Bluetooth remote control device when the Bluetooth remote control device is switched to a voice remote control mode;
a determining and sending module configured to, if the connection interval is kept unchanged, increase a connection event length parameter according to the first prompt message received by the receiving module, update a preset parameter according to the increased connection event length parameter, and determine that the updated preset parameter does not change, send a transmission command to the bluetooth remote control device, so that the bluetooth remote control device transmits voice data according to the received transmission command and the preset parameter; the preset parameters are determined according to connection event length parameters, and the connection event length parameters comprise a minimum connection event length and a maximum connection event length.
18. The data transmission apparatus of claim 17, wherein the determining and sending module comprises:
an increase submodule configured to increase a connection event length parameter in accordance with the first prompt message;
and the determining submodule is configured to determine transmission window offset information according to the connection event length parameter after the increase submodule increases, and if the currently determined transmission window offset information is the same as the initial transmission window offset information, it is determined that the preset parameter is not changed.
19. A data transmission device is applied to Bluetooth remote control equipment, the Bluetooth remote control equipment is in communication connection with controlled equipment, and the device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the Bluetooth remote control equipment is detected to be switched to a voice remote control mode, sending a first prompt message to the controlled equipment, so that the controlled equipment increases the length parameter of the connection event according to the first prompt message under the condition of keeping the connection interval unchanged, updates the preset parameter according to the increased length parameter of the connection event, and sends the updated preset parameter to the Bluetooth remote control equipment; the preset parameters are determined according to connection event length parameters, and the connection event length parameters comprise a minimum connection event length and a maximum connection event length;
receiving the updated preset parameters;
and when the updated preset parameters take effect, transmitting voice data according to the updated preset parameters.
20. A data transmission device is applied to a controlled device, the controlled device is in communication connection with a Bluetooth remote control device, and the device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a first prompt message sent by the Bluetooth remote control equipment when the Bluetooth remote control equipment is switched to a voice remote control mode, increasing a connection event length parameter according to the first prompt message under the condition of keeping a connection interval unchanged, and updating a preset parameter according to the increased connection event length parameter; the preset parameters are determined according to connection event length parameters, and the connection event length parameters comprise a minimum connection event length and a maximum connection event length;
and sending the updated preset parameters to the Bluetooth remote control equipment so that the Bluetooth remote control equipment transmits voice data according to the updated preset parameters when the received updated preset parameters take effect.
21. A data transmission device is applied to Bluetooth remote control equipment, the Bluetooth remote control equipment is in communication connection with controlled equipment, and the device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the Bluetooth remote control equipment is detected to be switched to a voice remote control mode, sending a first prompt message to the controlled equipment, so that the controlled equipment increases the length parameter of a connection event according to the first prompt message under the condition that the connection interval is kept unchanged, updates a preset parameter according to the increased length parameter of the connection event, and sends a transmission command to the Bluetooth remote control equipment when the updated preset parameter is determined not to be changed; the preset parameters are determined according to connection event length parameters, and the connection event length parameters comprise a minimum connection event length and a maximum connection event length;
and receiving the transmission command, and transmitting voice data according to the transmission command and the preset parameters.
22. A data transmission device is applied to a controlled device, the controlled device is in communication connection with a Bluetooth remote control device, and the data transmission device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a first prompt message sent by the Bluetooth remote control equipment when the Bluetooth remote control equipment is switched to a voice remote control mode;
if the connection event length parameter is increased according to the first prompt message under the condition that the connection interval is kept unchanged, updating a preset parameter according to the increased connection event length parameter, and determining that the updated preset parameter is not changed, sending a transmission command to the Bluetooth remote control equipment so that the Bluetooth remote control equipment transmits voice data according to the received transmission command and the preset parameter; the preset parameters are determined according to connection event length parameters, and the connection event length parameters comprise a minimum connection event length and a maximum connection event length.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610312559.7A CN105978663B (en) | 2016-05-11 | 2016-05-11 | Data transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610312559.7A CN105978663B (en) | 2016-05-11 | 2016-05-11 | Data transmission method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105978663A CN105978663A (en) | 2016-09-28 |
CN105978663B true CN105978663B (en) | 2020-10-16 |
Family
ID=56991633
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610312559.7A Active CN105978663B (en) | 2016-05-11 | 2016-05-11 | Data transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105978663B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111328059B (en) * | 2020-02-25 | 2023-01-06 | Oppo广东移动通信有限公司 | Data transmission method, data transmission device and electronic equipment |
CN114339693A (en) * | 2020-09-27 | 2022-04-12 | 华为技术有限公司 | Multi-device Bluetooth pairing communication method and system |
EP4373156A4 (en) * | 2021-08-20 | 2024-08-21 | Huawei Tech Co Ltd | Receiving/sending switching control method, management node and terminal node |
CN117202143B (en) * | 2022-12-20 | 2024-08-16 | 荣耀终端有限公司 | Connection parameter updating method, bluetooth device and readable storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104205853A (en) * | 2012-04-05 | 2014-12-10 | 诺基亚公司 | Method, apparatus, and computer program product for data distribution in wireless networks |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120196534A1 (en) * | 2011-02-01 | 2012-08-02 | Nokia Corporation | Method, apparatus, and computer program product for broadcasting in short-range communication |
KR102092063B1 (en) * | 2013-04-26 | 2020-03-23 | 삼성전자 주식회사 | Method And Apparatus For Performing Communication Service |
CN105243819A (en) * | 2015-11-04 | 2016-01-13 | 程瀚 | Bluetooth remote controller for control of automobile head-up display system |
CN105451369B (en) * | 2015-12-04 | 2018-10-19 | 小米科技有限责任公司 | The Connecting quantity update method and device of low-power consumption bluetooth equipment |
-
2016
- 2016-05-11 CN CN201610312559.7A patent/CN105978663B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104205853A (en) * | 2012-04-05 | 2014-12-10 | 诺基亚公司 | Method, apparatus, and computer program product for data distribution in wireless networks |
Also Published As
Publication number | Publication date |
---|---|
CN105978663A (en) | 2016-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3745790B1 (en) | Information configuration method and device, method and device for determining time-frequency location, and base station | |
EP3177042A1 (en) | Method and apparatus for updating connection parameter of low-power bluetooth device | |
CN108564947B (en) | Method, apparatus and storage medium for far-field voice wake-up | |
US11832279B2 (en) | Signal transmission method, signal transmission apparatus, electronic device and computer-readable storage medium | |
RU2637470C2 (en) | Method and device for detecting intelligent device | |
CN104182173A (en) | Camera switching method and device | |
EP3076745B1 (en) | Methods and apparatuses for controlling wireless access point | |
CN105099526B (en) | Polling data packet transmission method and device | |
CN105978663B (en) | Data transmission method and device | |
CN112037787A (en) | Wake-up control method, device and computer readable storage medium | |
US20180091328A1 (en) | Prompting method, prompting device and prompting system | |
CN111654354B (en) | Method and device for detecting maximum transmission unit MTU and storage medium | |
EP3618302A1 (en) | Wireless communication device and method for switching antenna | |
CN105163290B (en) | roaming prompting method and device | |
US11184941B2 (en) | Method and apparatus for protecting user equipment, user equipment and base station | |
CN111262941B (en) | Method for reconnecting cloud server and electronic equipment | |
CN109922465B (en) | Network configuration method and device | |
CN108347718B (en) | Method, device and storage medium for monitoring communication packet | |
US11800435B2 (en) | System message transmission method and device, and system message reception method and device | |
CN105227426B (en) | Application interface switching method and device and terminal equipment | |
CN114158018A (en) | Data transmission method and device, Bluetooth slave device and Bluetooth master device | |
CN106507505B (en) | Disconnection method and device for low-power-consumption Bluetooth connection | |
CN106254402A (en) | The synchronous method of intelligent terminal's configuration information and device | |
CN113361305A (en) | Fingerprint acquisition method, electronic device and computer-readable storage medium | |
CN107959974B (en) | Communication processing method, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |