CN115664468B - Data transmission method and device of Bluetooth playing equipment, terminal equipment and medium - Google Patents

Data transmission method and device of Bluetooth playing equipment, terminal equipment and medium Download PDF

Info

Publication number
CN115664468B
CN115664468B CN202211152120.4A CN202211152120A CN115664468B CN 115664468 B CN115664468 B CN 115664468B CN 202211152120 A CN202211152120 A CN 202211152120A CN 115664468 B CN115664468 B CN 115664468B
Authority
CN
China
Prior art keywords
data
transmission condition
bluetooth
playing device
bluetooth playing
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
Application number
CN202211152120.4A
Other languages
Chinese (zh)
Other versions
CN115664468A (en
Inventor
刘兆祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Coocaa Network Technology Co Ltd
Original Assignee
Shenzhen Coocaa Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Coocaa Network Technology Co Ltd filed Critical Shenzhen Coocaa Network Technology Co Ltd
Priority to CN202211152120.4A priority Critical patent/CN115664468B/en
Publication of CN115664468A publication Critical patent/CN115664468A/en
Application granted granted Critical
Publication of CN115664468B publication Critical patent/CN115664468B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The application is suitable for the technical field of Bluetooth, and particularly relates to a data transmission method, a device, terminal equipment and a medium of Bluetooth playing equipment. According to the method, after the Bluetooth playing device is connected, the Bluetooth playing device is triggered to restart, the host control interface is used for acquiring feedback information of the Bluetooth playing device after restarting, analyzing the feedback information, determining target transmission conditions of the Bluetooth playing device, modifying data to be transmitted based on the target transmission conditions, sending the modified data to be transmitted to the Bluetooth playing device, determining the transmission conditions according to the feedback information of the Bluetooth playing device when restarting, modifying files to be transmitted according to the transmission conditions, and therefore compatibility of the Bluetooth playing device can be effectively improved, playing blocking and voice interruption are avoided, and Bluetooth development efficiency is improved.

Description

Data transmission method and device of Bluetooth playing equipment, terminal equipment and medium
Technical Field
The application is suitable for the technical field of Bluetooth, and particularly relates to a data transmission method, a device, terminal equipment and a medium of Bluetooth playing equipment.
Background
At present, when researching and developing the equipment with bluetooth function, in order to realize the work such as detection, development to bluetooth transmission function, need research and development equipment and bluetooth playback device's connection, but at bluetooth development's in-process, the circumstances that bluetooth module can not compatible bluetooth playback device can appear, for example, to some audio amplifier, can appear the phenomenon of intermittent or blocking of sound when playing, has influenced research and development in-process to bluetooth function's analysis, probably can lead to analysis effect relatively poor. Therefore, how to improve the compatibility between the bluetooth module and the bluetooth playing device in the development process and reduce the occurrence of the katon and voice interruption situations becomes a problem to be solved.
Disclosure of Invention
In view of this, the embodiments of the present application provide a data transmission method, apparatus, terminal device and medium for a bluetooth playing device, so as to solve the problem of how to improve the compatibility between a bluetooth module and the bluetooth playing device in the research and development process and reduce the occurrence of the blocking and voice interruption situations.
In a first aspect, an embodiment of the present application provides a data transmission method of a bluetooth playing device, where the data transmission method includes:
triggering to restart the Bluetooth playing device after the Bluetooth playing device is connected;
the method comprises the steps of obtaining feedback information after restarting the Bluetooth playing equipment by using a host control interface, analyzing the feedback information, and determining target transmission conditions of the Bluetooth playing equipment;
and modifying the data to be transmitted based on the target transmission condition, and sending the modified data to be transmitted to the Bluetooth playing device.
In an embodiment, the obtaining, using a host control interface, feedback information after restarting the bluetooth playback device includes:
monitoring a reconnection action of the Bluetooth playing device after restarting by using a host control interface;
and taking the process information of the loop action as feedback information.
In an embodiment, the analyzing the feedback information, and determining the target transmission condition of the bluetooth playing device includes:
extracting a target value representing a maximum transmission unit from the process information of the return action;
and taking the target value as a target transmission condition of the Bluetooth playing device.
In an embodiment, modifying the data to be transmitted based on the target transmission condition, and sending the modified data to be transmitted to the bluetooth playing device includes:
sequentially dividing the data to be transmitted according to the size not larger than the target value to obtain sequentially divided data;
and sequentially sending the sequentially segmented data to the Bluetooth playing device according to the segmentation sequence.
In an embodiment, the data transmission method further includes:
acquiring a protocol transmission condition of a protocol of the Bluetooth playing device;
modifying the data to be transmitted based on the target transmission condition includes:
comparing the protocol transmission condition with the target transmission condition to obtain a comparison result;
and modifying the data to be transmitted according to the comparison result.
In an embodiment, according to the comparison result, modifying the data to be transmitted includes:
if the comparison result shows that the target transmission condition belongs to the protocol transmission condition, modifying the data to be transmitted by using the target transmission condition;
and if the comparison result shows that the protocol transmission condition belongs to the target transmission condition, modifying the data to be transmitted by using the protocol transmission condition.
In a second aspect, an embodiment of the present application provides a data transmission apparatus of a bluetooth playing device, where the data transmission apparatus includes:
the triggering restarting module is used for triggering restarting the Bluetooth playing device after the Bluetooth playing device is connected;
the transmission condition determining module is used for acquiring feedback information of the Bluetooth playing device after restarting by using a host control interface, analyzing the feedback information and determining a target transmission condition of the Bluetooth playing device;
and the data transmission module is used for modifying the data to be transmitted based on the target transmission condition and sending the modified data to be transmitted to the Bluetooth playing device.
In a third aspect, an embodiment of the present application provides a terminal device, where the terminal device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, where the processor implements the data transmission method according to the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the data transmission method according to the first aspect.
Compared with the prior art, the embodiment of the application has the beneficial effects that: after the Bluetooth playing device is connected, the Bluetooth playing device is triggered to restart, the host control interface is used for acquiring feedback information after the Bluetooth playing device is restarted, analyzing the feedback information, determining target transmission conditions of the Bluetooth playing device, modifying data to be transmitted based on the target transmission conditions, sending the modified data to be transmitted to the Bluetooth playing device, determining the transmission conditions according to the feedback information when the Bluetooth playing device is restarted, modifying and transmitting files to be transmitted according to the transmission conditions, and therefore compatibility of the Bluetooth playing device can be effectively improved, playing blocking and voice interruption are avoided, and Bluetooth development efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an application environment of a data transmission method of a bluetooth playback device according to a first embodiment of the present application;
fig. 2 is a flow chart of a data transmission method of a bluetooth playing device according to a second embodiment of the present application;
fig. 3 is a flowchart of a data transmission method of a bluetooth playing device according to a third embodiment of the present application;
fig. 4 is a schematic structural diagram of a data transmission device of a bluetooth playing device according to a fourth embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal device according to a fifth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
It should be understood that the sequence numbers of the steps in the following embodiments do not mean the order of execution, and the execution order of the processes should be determined by the functions and the internal logic, and should not be construed as limiting the implementation process of the embodiments of the present application.
In order to illustrate the technical scheme of the application, the following description is made by specific examples.
The data transmission method of the bluetooth playing device provided in the first embodiment of the present application may be applied in an application environment as shown in fig. 1, where a client communicates with a server. The client includes, but is not limited to, a terminal device with bluetooth function and player function, such as a palm computer, a desktop computer, a notebook computer, an ultra-mobile personal computer, a UMPC, a netbook, a cloud terminal device, a personal digital assistant (personal digital assistant, PDA), etc. The server may be implemented by a stand-alone server or a server cluster formed by a plurality of servers.
Fig. 2 is a schematic flow chart of a data transmission method of a bluetooth playing device according to a second embodiment of the present application, where the data transmission method is applied to the server, and the server and a client communicate through bluetooth. As shown in fig. 2, the data transmission method may include the steps of:
step S201, after the Bluetooth playing device is connected, the Bluetooth playing device is triggered to restart.
In the application, the equipment where the data transmission method is located is connected with the Bluetooth playing equipment so as to realize the subsequent data transmission.
A conventionally connected playback device, the sound system of which is as follows: an audio file directly passes through the sound abstraction layer, calls the sound card drive and directly outputs through the loudspeaker. The sound system of the Bluetooth-connected playing device is as follows: through the path of Bluetooth output, the audio file enters a sound service process (audioservice), then enters a blue alsa process, sound is output to a Bluetooth module through a Bluetooth protocol stack, the Bluetooth module sends the audio file to Bluetooth playing equipment, and the Bluetooth playing equipment drives a loudspeaker to output through a sound card.
For example, a television is taken as a service end, and a bluetooth module of the television and a bluetooth sound box are scanned and paired, wherein the pairing refers to a process of establishing keys for encryption and decryption by a Master and a Slave through negotiation, the pairing method mainly comprises two parts, namely a pairing method and a pairing method Secure Connections, if both support a new method, the new method is used for pairing, and otherwise, an old method is used.
The pairing process mainly comprises four steps:
a: pairing feature exchange (Pairing Feature Exchange) for exchanging the requirements of the double-issue related authentication, and how the double-issue has man-machine interaction capabilities, of which IO capabilities exchange is the most important.
B: public key exchange (Public key exchange) is carried out, public keys are exchanged between the two devices, and once the devices receive the Public keys of the opposite end devices, calculation is started, and an encryption algorithm is determined according to the Public keys.
C: authentication (Authentication), the actual pairing operation is performed by SMP (Service Management Protocol) protocol, and three Authentication methods are selectable according to the result of a.
C1, OOB (Out Of Band), is authenticated with the highest priority, and by the two parties of the pairing, additional information, called OOB, is interacted outside the pairing process, and is taken as input for subsequent pairing operations, and the interaction process of the OOB is also called OOB protocol.
C2, MITM (Man In The Middle) authentication, the two devices negotiate to generate 6 numbers by themselves, and display the numbers, and the users confirm after comparing the numbers.
C3 is Just work protocol, no user participation is needed, and two devices negotiate by themselves.
D: DHKey checking (DHKey Checks), once the device completes the authentication process and DHKey calculation has completed, checks the generated DHKey value, and if successful, both devices will complete displaying information about the process to the user, otherwise the controller sends a message to the host informing it to stop displaying the information, and when the pairing process is completed, link Key can be calculated from DHKey and used as input for the subsequent interaction process informing host through hci_link_key_notification.
After the above process, both parties have generated the encryption key, so that an encrypted connection can be established, and some private information can be mutually transferred.
Triggering to restart the bluetooth playing device may mean that the server generates a restart instruction, and sends the restart instruction to the bluetooth playing device, where the bluetooth playing device performs a restart operation after receiving the restart instruction. In an embodiment, the restart instruction may control the bluetooth playing device to play the corresponding content, so as to instruct the user, the developer, etc. to perform the restart operation.
Step S202, the host control interface is used for obtaining feedback information after the Bluetooth playing device is restarted, analyzing the feedback information and determining target transmission conditions of the Bluetooth playing device.
In the application, after the Bluetooth playing device is restarted, information is fed back to the last connected device, namely, the information is fed back to the server side, and the feedback information needs the server side to use a host control interface (Host controller interface, HCI) for data capture, so that the feedback information after the Bluetooth playing device is restarted is obtained.
The feedback information includes device information, processing parameters and the like of the bluetooth playing device, after the feedback information is acquired, the feedback information is parsed to obtain a transmission condition (i.e., a target transmission condition) corresponding to the bluetooth playing device, for example, the feedback information includes a maximum byte number and the like of the received transmission data that can be processed by the bluetooth playing device, and the maximum byte number can be used as the transmission condition.
Optionally, the obtaining, using the host control interface, feedback information after restarting the bluetooth playing device includes:
monitoring a reconnection action of the Bluetooth playing device after restarting by using a host control interface;
and taking the process information of the loop action as feedback information.
After sending the restart instruction, monitoring by using a host control interface to obtain the reconnection action of the bluetooth playing device, wherein the specific monitoring adopts the following commands:
#hcidump-w xxx.cfa &// xxx.cfa is the name of the saved file
#hcidump hci0 reset
The Bluetooth playing device can generate corresponding information in the process of the back connection action, and the information is feedback information.
Optionally, analyzing the feedback information, and determining the target transmission condition of the bluetooth playing device includes:
extracting a target value representing a maximum transmission unit from process information of the back connection action;
and taking the target value as a target transmission condition of the Bluetooth playing device.
The value representing the maximum transmission unit is extracted from the feedback information, and is the target value, and the size of the data unit cannot exceed the target value when the data is transmitted subsequently, so that the effect of combining rapid transmission and high-quality transmission is ensured. That is, the target transmission condition is that the size of the transmission data is not larger than the target value.
Step S203, the data to be transmitted is modified based on the target transmission condition, and the modified data to be transmitted is sent to the Bluetooth playing device.
According to the application, the data to be transmitted is modified based on the target transmission condition, so that the modified data can be better attached to the Bluetooth playing equipment, and the problems of playing clamping and sound interruption are avoided.
The modification is based on the target transmission condition, for example, if the target transmission condition is a defined transmission data size, the data to be transmitted needs to be processed into a data packet smaller than the defined transmission size, and then transmitted, and if the target transmission condition is a defined data format, the data to be transmitted needs to be formatted into its defined data format, and then transmitted.
Since the bluetooth module of the server and the bluetooth module of the bluetooth playing device may negotiate a protocol result that causes a problem in the bluetooth playing device during negotiation, in order to avoid this situation, the protocol is further limited by adopting the above process.
Optionally, modifying the data to be transmitted based on the target transmission condition, and sending the modified data to be transmitted to the bluetooth playing device includes:
sequentially dividing data to be transmitted according to the size not larger than a target value to obtain sequentially divided data;
and sequentially sending the sequentially segmented data to the Bluetooth playing device according to the segmentation sequence.
Wherein, modifying the data to be transmitted using the target value may mean dividing the data to be transmitted, and the size of the divided data is not greater than the target value. For example, if the default value of the maximum transmission unit (Max transport unit, MTU) is 672, if the method of the present application is used to define, the size of the actually transmitted data is not the default MTU value, but the MTU value confirmed by negotiation is generally larger than 672, the voice data is transmitted with the negotiated MTU value, the effect of actual broadcasting is poor, the phenomenon of jamming can occur in the voice, the transmission distance is very short, and almost no longer than 1 meter can be played, and after the method of the present application is used to define, the size of the actually transmitted data is smaller than 672, the playing effect of the actually transmitted data transmitted to the bluetooth playing device is better, no jamming phenomenon can occur, and the transmission distance can reach about 5 meters.
After the Bluetooth playing device is connected, the Bluetooth playing device is triggered to restart, the host control interface is used for acquiring feedback information after the Bluetooth playing device is restarted, analyzing the feedback information, determining target transmission conditions of the Bluetooth playing device, modifying data to be transmitted based on the target transmission conditions, sending the modified data to be transmitted to the Bluetooth playing device, determining the transmission conditions according to the feedback information when the Bluetooth playing device is restarted, modifying and transmitting files to be transmitted according to the transmission conditions, and therefore compatibility of the Bluetooth playing device can be effectively improved, playing clamping and sound interruption conditions are avoided, and Bluetooth development efficiency is improved.
Fig. 3 is a schematic flow chart of a data transmission method of a bluetooth playing device according to a third embodiment of the present application. As shown in fig. 3, the data transmission method may include the steps of:
step S301, after the Bluetooth playing device is connected, the Bluetooth playing device is triggered to restart.
Step S302, the host control interface is used for acquiring feedback information after the Bluetooth playing device is restarted, analyzing the feedback information and determining target transmission conditions of the Bluetooth playing device.
The content of steps S301 to S302 is the same as that of steps S201 to S202, and reference may be made to the descriptions of steps S201 to S202, which are not repeated here.
Step S303, obtain the protocol transmission condition of the protocol with the bluetooth playing device.
In the application, after the service end negotiates with the Bluetooth playing equipment, the corresponding protocol transmission conditions are also provided, and different results are provided for the protocol transmission conditions due to different Bluetooth playing equipment, especially different manufacturers, so that the service end is required to be acquired after the service end and the Bluetooth playing equipment are negotiated. The protocol procedure is described in step S201.
Step S304, comparing the protocol transmission condition with the target transmission condition to obtain a comparison result.
The protocol transmission condition may be the same as or different from the target transmission condition, so that the two conditions are compared to determine the difference of the two conditions in order to be recognized by the server. In the present application, the target transmission condition is principally dominant, and if the target transmission condition is defined, the protocol transmission condition needs to be dominant.
Step S305, the data to be transmitted is modified according to the comparison result.
In the application, the different comparison results determine different ways of modifying the data to be transmitted, if the target transmission condition is more severe, the target transmission condition is dominant, and if the protocol transmission condition is more severe, the protocol transmission condition is dominant.
For example, taking the MTU value as an example, if the target transmission condition is that the MTU value is smaller than 672 and the protocol transmission condition is that the MTU value is smaller than 700, the target transmission condition is more suitable for the bluetooth playing device, so that the data to be transmitted is modified according to the target transmission condition. On the contrary, if the protocol transmission condition is that the MTU value is smaller than 700 and the target transmission condition is that the MTU value is smaller than 800, the data to be transmitted is modified according to the protocol transmission condition, so that the data to be transmitted are more in line with the protocol content, and the data transmission method is beneficial to transmission.
Optionally, modifying the data to be transmitted according to the comparison result includes:
if the comparison result shows that the target transmission condition belongs to the protocol transmission condition, modifying the data to be transmitted by using the target transmission condition;
and if the comparison result shows that the protocol transmission condition belongs to the target transmission condition, modifying the data to be transmitted by using the protocol transmission condition.
The above-mentioned determination may be performed by determining the size of the limited range of the transmission condition, for example, the target transmission condition is an MTU value less than 672, and the protocol transmission condition is an MTU value less than 700, and it is obvious that the target transmission condition belongs to the protocol transmission condition.
Step S306, the modified data to be transmitted is sent to the Bluetooth playing device.
The content of step S306 is the same as that of step S203, and reference may be made to the description of step S203, which is not repeated here.
After the Bluetooth playing device is connected, the Bluetooth playing device is triggered to restart, the feedback information after the Bluetooth playing device is restarted is acquired by using the host control interface, the feedback information is analyzed, the target transmission condition of the Bluetooth playing device is determined, the protocol transmission condition of the protocol of the Bluetooth playing device is acquired, the protocol transmission condition and the target transmission condition are compared, a comparison result is obtained, the data to be transmitted is modified according to the comparison result, the modified data to be transmitted is sent to the Bluetooth playing device, the transmission condition is determined according to the feedback information when the Bluetooth playing device is restarted, the file to be transmitted is modified by the transmission condition, and the compatibility of the Bluetooth playing device can be effectively improved, so that the situation of playing blocking and sound interruption is avoided, and the efficiency of Bluetooth development is improved.
Fig. 4 shows a block diagram of a data transmission device of a bluetooth playing apparatus according to a fourth embodiment of the present application, where the data transmission device is applied to the server, and the server communicates with a client through bluetooth. For convenience of explanation, only portions relevant to the embodiments of the present application are shown.
Referring to fig. 4, the data transmission apparatus includes:
a triggering restarting module 41, configured to trigger restarting the bluetooth playing device after the bluetooth playing device is connected;
the transmission condition determining module 42 is configured to obtain feedback information of the bluetooth playing device after restarting by using the host control interface, analyze the feedback information, and determine a target transmission condition of the bluetooth playing device;
the data transmission module 43 is configured to modify data to be transmitted based on the target transmission condition, and send the modified data to be transmitted to the bluetooth playing device.
In one embodiment, the transmission condition determination module 42 includes:
the monitoring unit is used for monitoring the reconnection action of the Bluetooth playing device after restarting by using the host control interface;
and the feedback information determining unit is used for taking the process information of the feedback action as feedback information.
In one embodiment, the transmission condition determination module 42 includes:
the target value extraction unit is used for extracting a target value representing the maximum transmission unit in the process information of the back connection action;
and the condition determining unit is used for taking the target value as a target transmission condition of the Bluetooth playing device.
In one embodiment, the data transmission module 43 includes:
the data processing unit is used for sequentially dividing the data to be transmitted according to the size not larger than the target value to obtain sequentially divided data;
and the data transmission unit is used for sequentially transmitting the sequentially segmented data to the Bluetooth playing equipment according to the segmentation sequence.
In an embodiment, the data transmission device further includes:
the protocol condition acquisition module is used for acquiring the protocol transmission condition of the protocol of the Bluetooth playing device;
the data transmission module 43 includes:
the condition comparison unit is used for comparing the protocol transmission condition with the target transmission condition to obtain a comparison result;
and the data modification unit is used for modifying the data to be transmitted according to the comparison result.
In one embodiment, the data modification unit includes:
the first modification subunit is configured to modify the data to be transmitted using the target transmission condition if the comparison result indicates that the target transmission condition belongs to the protocol transmission condition;
and the second modification subunit is used for modifying the data to be transmitted by using the protocol transmission condition if the comparison result shows that the protocol transmission condition belongs to the target transmission condition.
It should be noted that, because the content of information interaction and execution process between the modules and the embodiment of the method of the present application are based on the same concept, specific functions and technical effects thereof may be referred to in the method embodiment section, and details thereof are not repeated herein.
Fig. 5 is a schematic structural diagram of a terminal device according to a fifth embodiment of the present application. As shown in fig. 5, the terminal device of this embodiment includes: at least one processor (only one shown in fig. 5), a memory, and a computer program stored in the memory and executable on the at least one processor, the processor executing the computer program to perform the steps of any of the various data transmission method embodiments described above.
The terminal device may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that fig. 5 is merely an example of a terminal device and is not limiting of the terminal device, and that the terminal device may comprise more or less components than shown, or may combine some components, or different components, e.g. may further comprise a network interface, a display screen, an input device, etc.
The processor may be a CPU, but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory includes a readable storage medium, an internal memory, etc., where the internal memory may be a memory of the terminal device, and the internal memory provides an environment for the operation of an operating system and computer readable instructions in the readable storage medium. The readable storage medium may be a hard disk of the terminal device, and in other embodiments may be an external storage device of the terminal device, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), etc. that are provided on the terminal device. Further, the memory may also include both an internal storage unit of the terminal device and an external storage device. The memory is used to store an operating system, application programs, boot loader (BootLoader), data, and other programs such as program codes of computer programs, and the like. The memory may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above device may refer to the corresponding process in the foregoing method embodiment, which is not described herein again. The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above-described embodiment, and may be implemented by a computer program to instruct related hardware, and the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of the method embodiment described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code, a recording medium, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The present application may also be implemented by a computer program product for implementing all or part of the steps of the method embodiments described above, when the computer program product is run on a terminal device, causing the terminal device to execute the steps of the method embodiments described above.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (8)

1. A data transmission method of a bluetooth playback device, the data transmission method comprising:
triggering to restart the Bluetooth playing device after the Bluetooth playing device is connected;
the method comprises the steps of obtaining feedback information after restarting the Bluetooth playing equipment by using a host control interface, analyzing the feedback information, and determining target transmission conditions of the Bluetooth playing equipment;
modifying data to be transmitted based on the target transmission condition, and sending the modified data to be transmitted to the Bluetooth playing device;
the data transmission method further comprises the following steps:
acquiring a protocol transmission condition of a protocol of the Bluetooth playing device;
modifying the data to be transmitted based on the target transmission condition includes:
comparing the protocol transmission condition with the target transmission condition to obtain a comparison result;
if the comparison result shows that the target transmission condition belongs to the protocol transmission condition, modifying the data to be transmitted by using the target transmission condition;
and if the comparison result shows that the protocol transmission condition belongs to the target transmission condition, modifying the data to be transmitted by using the protocol transmission condition.
2. The method according to claim 1, wherein the obtaining feedback information after restarting the bluetooth playback device using a host control interface includes:
monitoring a reconnection action of the Bluetooth playing device after restarting by using a host control interface;
and taking the process information of the loop action as feedback information.
3. The data transmission method according to claim 2, wherein analyzing the feedback information, determining the target transmission condition of the bluetooth playback device includes:
extracting a target value representing a maximum transmission unit from the process information of the return action;
and taking the target value as a target transmission condition of the Bluetooth playing device.
4. The data transmission method according to claim 3, wherein modifying the data to be transmitted based on the target transmission condition, and transmitting the modified data to be transmitted to the bluetooth playback device includes:
sequentially dividing the data to be transmitted according to the size not larger than the target value to obtain sequentially divided data;
and sequentially sending the sequentially segmented data to the Bluetooth playing device according to the segmentation sequence.
5. A data transmission apparatus of a bluetooth playback device, the data transmission apparatus comprising:
the triggering restarting module is used for triggering restarting the Bluetooth playing device after the Bluetooth playing device is connected;
the transmission condition determining module is used for acquiring feedback information of the Bluetooth playing device after restarting by using a host control interface, analyzing the feedback information and determining a target transmission condition of the Bluetooth playing device;
the data transmission module is used for modifying data to be transmitted based on the target transmission condition and sending the modified data to be transmitted to the Bluetooth playing device;
the data transmission device further includes:
a protocol condition acquisition module, configured to acquire a protocol transmission condition of a protocol with the bluetooth playing device;
the data transmission module comprises:
the condition comparison unit is used for comparing the protocol transmission condition with the target transmission condition to obtain a comparison result;
a data modification unit, the data modification unit comprising:
a first modification subunit, configured to modify, if the comparison result indicates that the target transmission condition belongs to the protocol transmission condition, the data to be transmitted using the target transmission condition;
and the second modification subunit is configured to modify the data to be transmitted using the protocol transmission condition if the comparison result indicates that the protocol transmission condition belongs to the target transmission condition.
6. The data transmission apparatus according to claim 5, wherein the transmission condition determination module includes:
the monitoring unit is used for monitoring the reconnection action of the Bluetooth playing device after restarting by using a host control interface;
and the feedback information determining unit is used for taking the process information of the return action as feedback information.
7. A terminal device, characterized in that it comprises a processor, a memory and a computer program stored in the memory and executable on the processor, which processor, when executing the computer program, implements the data transmission method according to any of claims 1 to 4.
8. A computer-readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the data transmission method according to any one of claims 1 to 4.
CN202211152120.4A 2022-09-21 2022-09-21 Data transmission method and device of Bluetooth playing equipment, terminal equipment and medium Active CN115664468B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211152120.4A CN115664468B (en) 2022-09-21 2022-09-21 Data transmission method and device of Bluetooth playing equipment, terminal equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211152120.4A CN115664468B (en) 2022-09-21 2022-09-21 Data transmission method and device of Bluetooth playing equipment, terminal equipment and medium

Publications (2)

Publication Number Publication Date
CN115664468A CN115664468A (en) 2023-01-31
CN115664468B true CN115664468B (en) 2023-11-21

Family

ID=84983308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211152120.4A Active CN115664468B (en) 2022-09-21 2022-09-21 Data transmission method and device of Bluetooth playing equipment, terminal equipment and medium

Country Status (1)

Country Link
CN (1) CN115664468B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135339A (en) * 2014-07-08 2014-11-05 福建联迪商用设备有限公司 Bluetooth low-power-consumption communication method, Bluetooth equipment and system
WO2016160240A1 (en) * 2015-03-31 2016-10-06 Microsoft Technology Licensing, Llc Digital content streaming from digital tv broadcast
CN106255047A (en) * 2016-09-20 2016-12-21 广东乐心医疗电子股份有限公司 Communication method of low-power-consumption Bluetooth self-adaptive intelligent mobile terminal
CN107404705A (en) * 2017-08-14 2017-11-28 拉卡拉支付股份有限公司 Automatically determine the method, equipment and storage medium of Bluetooth communication parameter
CN108777138A (en) * 2018-06-14 2018-11-09 厦门盈趣科技股份有限公司 Audio-frequency information acquisition methods and performance device
CN111654450A (en) * 2020-05-28 2020-09-11 北京小米移动软件有限公司 Data transmission method and device and storage medium
EP3745813A1 (en) * 2019-05-31 2020-12-02 Tap Sound System Method for operating a bluetooth device
CN112055286A (en) * 2020-09-04 2020-12-08 捷开通讯(深圳)有限公司 Control method and system of Bluetooth sound box, storage medium and mobile terminal
CN112382304A (en) * 2020-11-04 2021-02-19 北京小米移动软件有限公司 Bluetooth audio repairing method, device, equipment and medium
CN113727189A (en) * 2021-08-30 2021-11-30 上海哔哩哔哩科技有限公司 Media playing method and system supporting multiple streaming media transmission protocols
CN114666776A (en) * 2022-03-31 2022-06-24 哲库科技(上海)有限公司 Data transmission method, device, equipment and readable storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135339A (en) * 2014-07-08 2014-11-05 福建联迪商用设备有限公司 Bluetooth low-power-consumption communication method, Bluetooth equipment and system
WO2016160240A1 (en) * 2015-03-31 2016-10-06 Microsoft Technology Licensing, Llc Digital content streaming from digital tv broadcast
CN106255047A (en) * 2016-09-20 2016-12-21 广东乐心医疗电子股份有限公司 Communication method of low-power-consumption Bluetooth self-adaptive intelligent mobile terminal
CN107404705A (en) * 2017-08-14 2017-11-28 拉卡拉支付股份有限公司 Automatically determine the method, equipment and storage medium of Bluetooth communication parameter
CN108777138A (en) * 2018-06-14 2018-11-09 厦门盈趣科技股份有限公司 Audio-frequency information acquisition methods and performance device
EP3745813A1 (en) * 2019-05-31 2020-12-02 Tap Sound System Method for operating a bluetooth device
CN111654450A (en) * 2020-05-28 2020-09-11 北京小米移动软件有限公司 Data transmission method and device and storage medium
CN112055286A (en) * 2020-09-04 2020-12-08 捷开通讯(深圳)有限公司 Control method and system of Bluetooth sound box, storage medium and mobile terminal
CN112382304A (en) * 2020-11-04 2021-02-19 北京小米移动软件有限公司 Bluetooth audio repairing method, device, equipment and medium
CN113727189A (en) * 2021-08-30 2021-11-30 上海哔哩哔哩科技有限公司 Media playing method and system supporting multiple streaming media transmission protocols
CN114666776A (en) * 2022-03-31 2022-06-24 哲库科技(上海)有限公司 Data transmission method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN115664468A (en) 2023-01-31

Similar Documents

Publication Publication Date Title
WO2018177124A1 (en) Service processing method and device, data sharing system and storage medium
US20100228982A1 (en) Fast-reconnection of negotiable authentication network clients
CN112823503B (en) Data access method, data access device and mobile terminal
WO2019061630A1 (en) Transaction accounting method, and client
WO2022048318A1 (en) Method for establishing communication channel, and user terminal
CN110266582B (en) Message pushing method, system, server and communication terminal
CN110598429B (en) Data encryption storage and reading method, terminal equipment and storage medium
CN114697879B (en) Bluetooth pairing method, electronic device, chip and storage medium
CN111586021B (en) Remote office business authorization method, terminal and system
CN113225351B (en) Request processing method and device, storage medium and electronic equipment
WO2023116466A1 (en) Privacy computing method and apparatus, and electronic device and computer-readable storage medium
US20170374058A1 (en) Authentication system, communication system, and authentication and authorization method
WO2022062980A1 (en) Communication method and apparatus, and electronic device and storage medium
CN115664468B (en) Data transmission method and device of Bluetooth playing equipment, terminal equipment and medium
CN115567297A (en) Cross-site request data processing method and device
CN115909560A (en) Data encryption method, data decryption method and door lock system
WO2021043162A1 (en) Network connection establishing method and electronic device
US20220174045A1 (en) Reactive secure communications
JP2008541221A (en) Bootstrap message security transmission method and device in device management
CN113506090A (en) Audit data processing method and device, storage medium and electronic equipment
US20120173879A1 (en) Secure transfer of data using a file transfer application over a usb transport layer
CN113873029B (en) Cryptographic service monitoring method, server, cryptographic machine, system, and storage medium
JP2009031882A (en) Device management system, and server and virtual device management program used therefor
CN114928756B (en) Video data protection, encryption and verification method, system and equipment
CN112181676B (en) Method, device, terminal equipment and readable storage medium for sharing recording data

Legal Events

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