CN112333678B - Bluetooth-based data transmission method, intelligent system and storage medium - Google Patents
Bluetooth-based data transmission method, intelligent system and storage medium Download PDFInfo
- Publication number
- CN112333678B CN112333678B CN202010945084.1A CN202010945084A CN112333678B CN 112333678 B CN112333678 B CN 112333678B CN 202010945084 A CN202010945084 A CN 202010945084A CN 112333678 B CN112333678 B CN 112333678B
- Authority
- CN
- China
- Prior art keywords
- data
- bluetooth
- bluetooth device
- data transmission
- intelligent system
- 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
- 230000005540 biological transmission Effects 0.000 title claims abstract description 166
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000012546 transfer Methods 0.000 claims description 15
- 230000003139 buffering effect Effects 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 8
- 238000004590 computer program Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000004075 alteration Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/02—Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
- H04W8/08—Mobility data transfer
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application discloses a data transmission method based on Bluetooth, an intelligent system and a computer readable storage medium, wherein the method comprises the following steps: when at least three Bluetooth devices are detected, connection is respectively established with the at least three Bluetooth devices, and the type of each Bluetooth device is obtained; establishing indirect connection between every two Bluetooth devices in at least three Bluetooth devices, and determining a data transmission mode between any two Bluetooth devices according to the type of each Bluetooth device; when data transmission is carried out between the Bluetooth device A and the Bluetooth device B, acquiring data related information of the Bluetooth device A, and calculating the maximum transmission time of the data transmission between the Bluetooth device B and the intelligent system according to the data related information; and receiving data from the Bluetooth device A, and starting to send the received data to the Bluetooth device B when the received data reach a preset size. The application realizes the quick data transmission between every two of a plurality of Bluetooth devices.
Description
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a bluetooth-based data transmission method, an intelligent system, and a computer readable storage medium.
Background
Bluetooth is a radio technology supporting short-range communication of devices, and can perform wireless data communication among a plurality of devices including mobile terminals, wireless headphones, notebook computers, related peripherals and the like. As a small-range wireless connection technology, bluetooth can realize convenient, quick, flexible, safe, low-cost and low-power-consumption data communication among devices. In conventional bluetooth technology, data transmission between bluetooth devices may be achieved by establishing a piconet between a plurality of bluetooth devices. In a piconet, a bluetooth device is either a master or a slave, and there is only one master in the same piconet, and the other bluetooth devices are all slaves. However, a slave device in the piconet can only perform data transmission with the master device, but cannot perform data transmission with other slave devices.
Disclosure of Invention
The embodiment of the application solves the problem that data transmission cannot be carried out among slave devices in the prior art by providing the data transmission method based on Bluetooth, the intelligent system and the computer readable storage medium, and realizes the rapid data transmission among a plurality of Bluetooth devices.
The embodiment of the application provides a data transmission method based on Bluetooth, which is applied to an intelligent system and comprises the following steps:
when at least three Bluetooth devices are detected, connection is respectively established with the at least three Bluetooth devices, and the type of each Bluetooth device is obtained;
establishing indirect connection between every two Bluetooth devices in at least three Bluetooth devices, and determining a data transmission mode between any two Bluetooth devices according to the type of each Bluetooth device;
when data transmission is carried out between the Bluetooth device A and the Bluetooth device B, acquiring data related information of the Bluetooth device A, and calculating the maximum transmission time of the data transmission between the Bluetooth device B and the intelligent system according to the data related information; the Bluetooth device A and the Bluetooth device B are any one of at least three Bluetooth devices, the Bluetooth device A is a source device, and the Bluetooth device B is a receiving device;
receiving data from the Bluetooth device A, and starting to send the received data to the Bluetooth device B when the received data reach a preset size; wherein the time to send the received data to bluetooth device B should be less than or equal to the maximum transmission time.
The embodiment of the application provides an intelligent system, which comprises a processor, a memory and a data transmission program stored on the memory and capable of running on the processor, wherein the data transmission program realizes the steps of the Bluetooth-based data transmission method when being executed by the processor.
The embodiment of the application provides a computer readable storage medium, wherein a data transmission program is stored on the computer readable storage medium, and the data transmission program realizes the steps of the Bluetooth-based data transmission method when being executed by a processor.
The technical scheme of the Bluetooth-based data transmission method, the intelligent system and the computer-readable storage medium provided by the embodiment of the application has at least the following technical effects:
the intelligent system is used as a main device of the Bluetooth connection network, a plurality of Bluetooth devices needing to carry out data transmission are used as slave devices of the Bluetooth connection network, and then the intelligent system is used as a transfer station of data transmission to realize the data transmission between every two of the plurality of Bluetooth devices. Therefore, the problem that data transmission cannot be carried out among slave devices in the traditional technology is effectively solved, and quick data transmission among a plurality of Bluetooth devices is realized.
Drawings
FIG. 1 is a schematic diagram of an intelligent system according to an embodiment of the present application;
fig. 2 is a flowchart of a first embodiment of a bluetooth-based data transmission method according to the present application;
fig. 3 is a flowchart of a second embodiment of a bluetooth-based data transmission method according to the present application;
fig. 4 is a flowchart of a third embodiment of a data transmission method based on bluetooth according to the present application.
Detailed Description
The application aims to solve the problem that data transmission cannot be carried out among slave devices in the prior art, adopts the technical scheme that an intelligent system is used as a master device of a Bluetooth connection network, a plurality of Bluetooth devices needing to carry out data transmission are used as slave devices of the Bluetooth connection network, and then the intelligent system is used as a transfer station of data transmission to realize data transmission among the plurality of Bluetooth devices. The quick data transmission between every two of the plurality of Bluetooth devices is realized.
In order to better understand the above technical solution, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the application to those skilled in the art.
Referring to fig. 1, which is a schematic diagram of a hardware structure of an intelligent system according to various embodiments of the present application, the intelligent system may include: processor 101, memory 102, bluetooth module 103, image display module 104, audio playback module 105, etc. Those skilled in the art will appreciate that the hardware architecture of the intelligent system shown in fig. 1 is not limiting of the intelligent system, and that the intelligent system may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the various components of the intelligent system in detail with reference to fig. 1:
the processor 101 is a control center of the intelligent system, connects various parts of the entire intelligent system, and performs various functions of the intelligent system or processes data by running or executing programs stored in the memory 102 and calling data stored in the memory 102, thereby performing overall monitoring of the intelligent system.
The memory 102 may be used to store various programs and various data for the intelligent system. The memory 102 mainly includes a stored program area and a stored data area, wherein the stored program area stores at least programs required for data transmission; the storage data area may store various data of the intelligent system. In addition, the memory 102 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
Bluetooth module 103 may be used to communicate data with other bluetooth devices.
The image display module 104 may be configured to display received video, picture, etc.
The audio playing module 105 may be used to play the received audio data.
In an embodiment of the present application, the processor 101 may be configured to call a data transmission program stored in the memory 102 and perform the following operations:
when at least three Bluetooth devices are detected, connection is respectively established with the at least three Bluetooth devices, and the type of each Bluetooth device is obtained;
establishing indirect connection between every two Bluetooth devices in at least three Bluetooth devices, and determining a data transmission mode between any two Bluetooth devices according to the type of each Bluetooth device;
when data transmission is carried out between the Bluetooth device A and the Bluetooth device B, acquiring data related information of the Bluetooth device A, and calculating the maximum transmission time of the data transmission between the Bluetooth device B and the intelligent system according to the data related information; the Bluetooth device A and the Bluetooth device B are any one of at least three Bluetooth devices, the Bluetooth device A is a source device, and the Bluetooth device B is a receiving device;
receiving data from the Bluetooth device A, and starting to send the received data to the Bluetooth device B when the received data reach a preset size; wherein the time to send the received data to bluetooth device B should be less than or equal to the maximum transmission time.
In one embodiment, the processor 101 may be configured to invoke a data transfer program stored in the memory 102 and perform the following operations:
and acquiring the name and the unique identity of each Bluetooth device.
In an embodiment, the data transfer mode is a video data transfer mode or a picture data transfer mode or an audio data transfer mode.
In one embodiment, the processor 101 may be configured to invoke a data transfer program stored in the memory 102 and perform the following operations:
if the data transmission mode is a video data transmission mode, acquiring the size, resolution and frame rate of video data to be transmitted between the Bluetooth device A and the Bluetooth device B, and setting the data stream of the video data according to the size, resolution and frame rate of the video data; or,
if the data transmission mode is a picture data transmission mode, acquiring the size of picture data to be transmitted between the Bluetooth device A and the Bluetooth device B, and setting the data stream of the picture data according to the size of the picture data; or,
if the data transmission mode is the audio data transmission mode, the size of audio data to be transmitted between the Bluetooth device A and the Bluetooth device B is obtained, and the data stream of the audio data is set according to the size of the audio data.
In an embodiment, the data-related information includes a picture format or a video resolution or an audio format.
In one embodiment, the processor 101 may be configured to invoke a data transfer program stored in the memory 102 and perform the following operations:
and obtaining the data transmission rate between the Bluetooth device B and the intelligent system according to the data related information, and dividing the data maximum buffer capacity of the Bluetooth device B by the data transmission rate to obtain the maximum transmission time for data transmission between the Bluetooth device B and the intelligent system.
In one embodiment, the processor 101 may be configured to invoke a data transfer program stored in the memory 102 and perform the following operations:
and reading the data which is transmitted, and displaying the data which is transmitted.
In an embodiment, the bluetooth device includes a smart television, a mobile terminal, a bluetooth headset, and a bluetooth speaker.
According to the technical scheme, the intelligent system is used as a main device of the Bluetooth connection network, a plurality of Bluetooth devices needing to perform data transmission are used as slave devices of the Bluetooth connection network, and then the intelligent system is used as a transfer station of data transmission to realize the technical means of data transmission between every two of the plurality of Bluetooth devices. Therefore, the problem that data transmission cannot be carried out among slave devices in the traditional technology is effectively solved, and quick data transmission among a plurality of Bluetooth devices is realized.
In order to better understand the above technical solutions, the following detailed description will refer to the accompanying drawings and specific embodiments.
Referring to fig. 2, in a first embodiment of the present application, the bluetooth-based data transmission method of the present application is applied to an intelligent system, and specifically includes the following steps:
in step S110, when at least three bluetooth devices are detected, connection is established with at least three bluetooth devices, respectively, and the type of each bluetooth device is obtained.
In this embodiment, the smart system may be a system composed of at least part of hardware structures of a smart tv or other bluetooth devices, and may be used to implement fast data transmission between two bluetooth devices. The Bluetooth device can be a device with Bluetooth function and data transmission requirement, such as a smart television, a mobile terminal, a Bluetooth headset, a Bluetooth sound box and the like.
When only two Bluetooth devices need to perform data transmission, only one of the Bluetooth devices is required to be used as a main device, and then connection is established between the two Bluetooth devices, so that the data transmission between the two Bluetooth devices can be realized. However, when there are at least three bluetooth devices that need to perform data transmission between two bluetooth devices, no matter which bluetooth device is used as the master device to establish a connection network between bluetooth devices, only data transmission between two bluetooth devices can be partially implemented. Therefore, the application selects the intelligent system as the main equipment of the Bluetooth equipment connection network, takes other Bluetooth equipment needing to carry out data transmission between every two as the auxiliary equipment, and then takes the intelligent system as the transfer station to realize the data transmission between every two of the Bluetooth equipment.
When at least three bluetooth devices are detected, namely when at least three bluetooth devices need to perform data transmission between every two, the intelligent system needs to be respectively connected with at least three bluetooth devices, namely a bluetooth device connection network taking the intelligent system as a master device and at least three bluetooth devices as slave devices is established. After establishing a connection with at least three bluetooth devices, the type of each bluetooth device also needs to be acquired in order to determine the data type of the data that may need to be transmitted between each bluetooth device according to the type of each bluetooth device.
And step S120, establishing indirect connection between every two Bluetooth devices in at least three Bluetooth devices, and determining a data transmission mode between any two Bluetooth devices according to the type of each Bluetooth device.
In this embodiment, after the connection is established with at least three bluetooth devices, the intelligent system may establish indirect connection between two bluetooth devices. For example, if at least three bluetooth devices include bluetooth device a, bluetooth device B, and bluetooth device C, indirect connections between bluetooth device a and bluetooth device B, bluetooth device a and bluetooth device C, and bluetooth device B and bluetooth device C need to be established. The indirect connection is a connection relationship between Bluetooth devices taking the intelligent system as an intermediate node.
The data transfer mode may be a video data transfer mode or a picture data transfer mode or an audio data transfer mode. And the data transmission mode can be other data transmission modes according to the data type of the data which the Bluetooth device needs to transmit in the actual situation. After establishing the indirect connection between every two of the at least three bluetooth devices, the intelligent system can determine a data transmission mode between the bluetooth devices establishing the indirect connection according to the device type of each bluetooth device. For example, if the bluetooth device for establishing the indirect connection is a smart phone or a bluetooth headset, it may be known that data to be transmitted between the bluetooth devices for establishing the indirect connection is audio data, so that it may be determined that a data transmission mode between the bluetooth devices for establishing the indirect connection is an audio data transmission mode; if the bluetooth device for establishing the indirect connection is a smart phone or a tablet computer, it can be known that the data to be transmitted between the bluetooth devices for establishing the indirect connection may be video data or audio data or picture data, so that it can be determined that the data transmission mode between the bluetooth devices for establishing the indirect connection is a video data transmission mode or an audio data transmission mode or a picture data transmission mode.
In step S130, when data transmission is performed between the bluetooth device a and the bluetooth device B, data related information of the bluetooth device a is obtained, and a maximum transmission time for data transmission between the bluetooth device B and the intelligent system is calculated according to the data related information.
In this embodiment, when data transmission is performed between the bluetooth device a and the bluetooth device B, the intelligent system needs to acquire data related information of the bluetooth device a so as to determine a data transmission rate between the bluetooth device B and the intelligent system, thereby further calculating a maximum transmission time for data transmission between the bluetooth device B and the intelligent system. The Bluetooth device A and the Bluetooth device B are any one of at least three Bluetooth devices, the Bluetooth device A is a source device, and the Bluetooth device B is a receiving device. And the data-related information may include a picture format or video resolution or audio format. By calculating the maximum transmission time of data transmission between the Bluetooth device B and the intelligent system, the intelligent system can be prevented from transmitting data exceeding the maximum buffer capacity of the data of the Bluetooth device B when transmitting the data to the Bluetooth device B, so that the data loss caused by overflow of the transmitted data is avoided.
In step S140, data is received from the bluetooth device a, and the received data is sent to the bluetooth device B when the received data reaches a preset size.
In this embodiment, when data transmission is performed between the bluetooth device a and the bluetooth device B, the intelligent system first needs to receive data from the bluetooth device a, and then sends the received data to the bluetooth device B. The time for sending the received data to the bluetooth device B should be less than or equal to the maximum transmission time, so as to avoid sending data exceeding the maximum buffer capacity of the data of the bluetooth device B, thereby avoiding the loss of the transmitted data caused by overflow of the transmitted data. Further, the step of transmitting the received data to the bluetooth device B may be set such that the transmission is started when the received data reaches a preset size. The preset size is set according to actual needs, for example, may be set as a data amount of corresponding data that can be sent by the intelligent system in one second.
The method has the beneficial effects that the intelligent system is used as the main equipment of the Bluetooth connection network, a plurality of Bluetooth equipment needing to carry out data transmission is used as the auxiliary equipment of the Bluetooth connection network, and then the intelligent system is used as the transfer station of the data transmission to realize the technical scheme of data transmission between every two of the plurality of Bluetooth equipment. Therefore, the problem that data transmission cannot be carried out among slave devices in the traditional technology is effectively solved, and quick data transmission among a plurality of Bluetooth devices is realized.
Referring to fig. 3, in a second embodiment of the present application, the bluetooth-based data transmission method of the present application is applied to an intelligent system, and specifically includes the following steps:
in step S210, when at least three bluetooth devices are detected, connection is established with at least three bluetooth devices, respectively, and the type of each bluetooth device is obtained.
Step S211, obtain the name and unique identity of each bluetooth device.
In this embodiment, the name and unique identity of each bluetooth device are used to uniquely identify each bluetooth device. By acquiring the name and the unique identity of each Bluetooth device, a plurality of Bluetooth devices can be better distinguished, so that indirect connection between every two Bluetooth devices can be better established.
In step S220, indirect connection between every two bluetooth devices is established, and a data transmission mode between any two bluetooth devices is determined according to the type of each bluetooth device.
In step S231, when data transmission is performed between the bluetooth device a and the bluetooth device B, data related information of the bluetooth device a is obtained.
Step S232, obtaining the data transmission rate between the Bluetooth device B and the intelligent system according to the data related information, and dividing the data transmission rate by the maximum buffer capacity of the Bluetooth device B to obtain the maximum transmission time for data transmission between the Bluetooth device B and the intelligent system.
In this embodiment, the data transmission rate between the bluetooth device B and the intelligent system may be obtained according to the data related information, and then the maximum data transmission time between the bluetooth device B and the intelligent system may be obtained by obtaining the maximum data buffer capacity of the bluetooth device B and dividing the maximum data buffer capacity of the bluetooth device B by the data transmission rate between the bluetooth device B and the intelligent system. The transmission time of data transmission between the Bluetooth device B and the intelligent system is controlled within the maximum transmission time, so that the intelligent system can be prevented from sending data exceeding the maximum buffer capacity of the data of the Bluetooth device B to the Bluetooth device B, and the data loss caused by overflow of the transmitted data can be avoided.
In step S233, if the data transmission mode is the video data transmission mode, the size, resolution and frame rate of the video data to be transmitted between the bluetooth device a and the bluetooth device B are obtained, and the data stream of the video data is set according to the size, resolution and frame rate of the video data.
In this embodiment, if the determined data transmission mode is the video data transmission mode, it means that the data to be transmitted between the bluetooth device a and the bluetooth device B is video data, and at this time, the size, resolution and frame rate of the video data to be transmitted need to be acquired, and the data stream of the video data is set by using the size, resolution and frame rate of the video data.
In step S234, if the data transmission mode is the picture data transmission mode, the size of the picture data to be transmitted between the bluetooth device a and the bluetooth device B is obtained, and the data stream of the picture data is set according to the size of the picture data.
In this embodiment, if the determined data transmission mode is the picture data transmission mode, it means that the data to be transmitted between the bluetooth device a and the bluetooth device B is the picture data, and at this time, the size of the picture data to be transmitted needs to be acquired, and the data stream of the picture data is set by using the size of the picture data.
In step S235, if the data transmission mode is the audio data transmission mode, the size of the audio data to be transmitted between the bluetooth device a and the bluetooth device B is obtained, and the data stream of the audio data is set according to the size of the audio data.
In this embodiment, if the determined data transmission mode is the audio data transmission mode, it means that the data to be transmitted between the bluetooth device a and the bluetooth device B is audio data, and at this time, the size of the audio data to be transmitted needs to be obtained, and the data stream of the audio data is set by using the size of the audio data.
In step S240, data is received from the bluetooth device a, and the received data starts to be transmitted to the bluetooth device B when the received data reaches a preset size.
The method has the advantages that the step of acquiring the unique identifier of the Bluetooth device and the step of setting the data stream are added on the basis of the first embodiment, and the step of calculating the maximum transmission time is thinned. Therefore, the problem that data transmission cannot be carried out among slave devices in the traditional technology is further effectively solved, and quick data transmission among a plurality of Bluetooth devices is realized.
Referring to fig. 4, in a third embodiment of the present application, the bluetooth-based data transmission method of the present application is applied to an intelligent system, and specifically includes the following steps:
in step S310, when at least three bluetooth devices are detected, connection is established with at least three bluetooth devices, respectively, and the type of each bluetooth device is obtained.
In step S320, indirect connection between every two bluetooth devices is established, and a data transfer mode between any two bluetooth devices is determined according to the type of each bluetooth device.
In step S330, when data transmission is performed between the bluetooth device a and the bluetooth device B, data related information of the bluetooth device a is obtained, and a maximum transmission time for data transmission between the bluetooth device B and the intelligent system is calculated according to the data related information.
In step S340, data is received from the bluetooth device a, and the received data is started to be transmitted to the bluetooth device B when the received data reaches a preset size.
Step S350, the data that has been transmitted is read, and the data that has been transmitted is displayed.
In this embodiment, after transmitting the data received from the bluetooth device a to the bluetooth device B, the intelligent system may flag the state of the data that has been transmitted, that is, flag it as the transmitted state. For example, the identification of data that has been transmitted may be set to 1, and conversely, the identification of data that has not been transmitted may be set to 0 by default. After marking the state of the data which has been transmitted, the intelligent system can detect the data received by itself, thereby being able to acquire the data which has been transmitted and display the data which has been transmitted. For example, if the intelligent system detects that the data received by the intelligent system includes video data a and video data B, wherein the identifier of the video data a is 1 and the identifier of the video data B is 0, the intelligent system reads the video data a and plays the video data a. The intelligent system detects the state of the data in the self memory in real time and displays the state of the data as the transmitted data, so that the effect of rapidly displaying the transmitted data while carrying out data transmission among Bluetooth devices can be realized.
The method has the beneficial effects that the step of displaying the sent data is added on the basis of the first embodiment. Therefore, the problem that data transmission cannot be carried out among slave devices in the prior art is effectively solved, rapid data transmission among a plurality of Bluetooth devices is realized, and the effect of rapidly displaying the transmitted data is achieved.
Based on the same inventive concept, the embodiment of the application also provides an intelligent system, which comprises a processor, a memory and a data transmission program stored on the memory and capable of running on the processor, wherein the data transmission program realizes the processes of the Bluetooth-based data transmission method embodiment when being executed by the processor, and can achieve the same technical effect, and the repetition is avoided, so that the description is omitted.
Because the intelligent system provided by the embodiment of the application is an intelligent system adopted for implementing the method of the embodiment of the application, based on the method introduced by the embodiment of the application, a person skilled in the art can know the specific structure and the deformation of the intelligent system, and therefore, the detailed description is omitted herein. All intelligent systems adopted by the method of the embodiment of the application belong to the scope of protection of the application.
Based on the same inventive concept, the embodiment of the present application further provides a computer readable storage medium, where a data transmission program is stored, and when the data transmission program is executed by a processor, the processes of the above-mentioned embodiment of the data transmission method based on bluetooth are implemented, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
Because the computer readable storage medium provided by the embodiment of the present application is a computer readable storage medium used for implementing the method of the embodiment of the present application, based on the method described by the embodiment of the present application, a person skilled in the art can understand the specific structure and the modification of the computer readable storage medium, and therefore, the detailed description thereof is omitted herein. All computer readable storage media used in the method of the embodiment of the application are within the scope of the application.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
Claims (9)
1. A bluetooth-based data transmission method, characterized in that it is applied to an intelligent system, said method comprising:
when at least three Bluetooth devices are detected, connection is respectively established with the at least three Bluetooth devices, and the type of each Bluetooth device is obtained;
establishing indirect connection between every two Bluetooth devices in the at least three Bluetooth devices, and determining a data transmission mode between any two Bluetooth devices according to the type of each Bluetooth device, wherein the data transmission mode is a video data transmission mode or a picture data transmission mode or an audio data transmission mode;
when data transmission is carried out between a Bluetooth device A and a Bluetooth device B, acquiring data related information of the Bluetooth device A, and calculating the maximum transmission time for carrying out data transmission between the Bluetooth device B and an intelligent system according to the data related information; the Bluetooth device A and the Bluetooth device B are any one of the at least three Bluetooth devices, the Bluetooth device A is a source device, and the Bluetooth device B is a receiving device;
receiving data from the Bluetooth device A, and starting to send the received data to the Bluetooth device B when the received data reach a preset size; wherein the time for transmitting the received data to the bluetooth device B should be less than or equal to the maximum transmission time.
2. The method of claim 1, wherein after the establishing of the connection with the at least three bluetooth devices, respectively, the method further comprises:
and acquiring the name and the unique identity of each Bluetooth device.
3. The method of claim 1, wherein when data is transmitted between bluetooth device a and bluetooth device B, the method further comprises:
if the data transmission mode is a video data transmission mode, acquiring the size, resolution and frame rate of video data to be transmitted between the Bluetooth device A and the Bluetooth device B, and setting the data stream of the video data according to the size, resolution and frame rate of the video data; or,
if the data transmission mode is a picture data transmission mode, acquiring the size of picture data to be transmitted between the Bluetooth device A and the Bluetooth device B, and setting the data stream of the picture data according to the size of the picture data; or,
and if the data transmission mode is an audio data transmission mode, acquiring the size of audio data to be transmitted between the Bluetooth device A and the Bluetooth device B, and setting the data stream of the audio data according to the size of the audio data.
4. A method as claimed in claim 3, wherein the data-related information comprises a picture format or a video resolution or an audio format.
5. The method according to any one of claims 1-4, wherein calculating a maximum transmission time for data transmission between the bluetooth device B and an intelligent system according to the data-related information comprises:
and obtaining the data transmission rate between the Bluetooth equipment B and the intelligent system according to the data related information, and dividing the data transmission rate by the maximum data buffering capacity of the Bluetooth equipment B to obtain the maximum transmission time for data transmission between the Bluetooth equipment B and the intelligent system.
6. The method of claim 5, wherein after the received data starts to be transmitted to the bluetooth device B when the received data reaches a preset size, the method further comprises:
and reading the data which are already transmitted, and displaying the data which are already transmitted.
7. The method of claim 6, wherein the bluetooth device comprises a smart television, a mobile terminal, a bluetooth headset, a bluetooth speaker.
8. A smart system comprising a processor, a memory and a data transfer program stored on the memory and executable on the processor, the data transfer program when executed by the processor implementing the steps of the bluetooth based data transfer method according to any of claims 1 to 7.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a data transmission program which, when executed by a processor, implements the steps of the bluetooth-based data transmission method according to any one of claims 1 to 7.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010945084.1A CN112333678B (en) | 2020-09-09 | 2020-09-09 | Bluetooth-based data transmission method, intelligent system and storage medium |
PCT/CN2021/111699 WO2022052711A1 (en) | 2020-09-09 | 2021-08-10 | Bluetooth-based data transmission method and intelligent system, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010945084.1A CN112333678B (en) | 2020-09-09 | 2020-09-09 | Bluetooth-based data transmission method, intelligent system and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112333678A CN112333678A (en) | 2021-02-05 |
CN112333678B true CN112333678B (en) | 2023-10-13 |
Family
ID=74303044
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010945084.1A Active CN112333678B (en) | 2020-09-09 | 2020-09-09 | Bluetooth-based data transmission method, intelligent system and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112333678B (en) |
WO (1) | WO2022052711A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112333678B (en) * | 2020-09-09 | 2023-10-13 | 深圳Tcl新技术有限公司 | Bluetooth-based data transmission method, intelligent system and storage medium |
CN113079496A (en) * | 2021-04-06 | 2021-07-06 | 深圳市鼎浩丰科技有限公司 | Bluetooth transmission rate control method and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104980190A (en) * | 2014-04-14 | 2015-10-14 | 创杰科技股份有限公司 | Data transmission system and transmission method of Bluetooth interface |
CN105050033A (en) * | 2015-07-01 | 2015-11-11 | 惠州Tcl移动通信有限公司 | Piconet networking interconnection method and system based on low-power-dissipation Bluetooth and traditional Bluetooth |
CN105187878A (en) * | 2015-09-07 | 2015-12-23 | 深圳Tcl数字技术有限公司 | Television Bluetooth connection method and device |
CN105208511A (en) * | 2015-08-28 | 2015-12-30 | 深圳市冠旭电子有限公司 | Intelligent Bluetooth earphone-based music sharing method, system and intelligent Bluetooth earphone |
CN106686528A (en) * | 2016-12-21 | 2017-05-17 | 上海斐讯数据通信技术有限公司 | Data transmission method and system as well as master device and slave device |
WO2018000290A1 (en) * | 2016-06-30 | 2018-01-04 | 华为技术有限公司 | Method for managing bluetooth connection, bluetooth main device and apparatus |
CN107911871A (en) * | 2017-12-12 | 2018-04-13 | 腾讯科技(深圳)有限公司 | Control method, device and control device, the storage medium of bluetooth connection |
EP3629561A1 (en) * | 2018-09-30 | 2020-04-01 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Data transmission method and system, and bluetooth headphone |
WO2020077658A1 (en) * | 2018-10-15 | 2020-04-23 | 北京轩辕联科技有限公司 | Extended connection method and extended connection system for bluetooth devices |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20110064528A (en) * | 2009-12-08 | 2011-06-15 | 삼성전자주식회사 | Method and device for data transmission of a Bluetooth device |
EP2693652B1 (en) * | 2011-04-26 | 2015-09-30 | Huawei Device Co., Ltd. | Bluetooth device and method for connecting bluetooth devices |
US20150304833A1 (en) * | 2014-04-18 | 2015-10-22 | Laird Technologies, Inc. | Bluetooth attribute repeater and aggregator |
CN106878920B (en) * | 2016-12-29 | 2017-12-22 | 建荣半导体(深圳)有限公司 | Data forwarding method, its device, bluetooth equipment and audio frequency transmission method |
CN107135256A (en) * | 2017-04-27 | 2017-09-05 | 建荣半导体(深圳)有限公司 | Bluetooth communication method, communicator, communication system and electronic equipment |
CN108881990A (en) * | 2018-06-25 | 2018-11-23 | 努比亚技术有限公司 | Audio frequency playing method, terminal and computer storage medium |
CN112333678B (en) * | 2020-09-09 | 2023-10-13 | 深圳Tcl新技术有限公司 | Bluetooth-based data transmission method, intelligent system and storage medium |
-
2020
- 2020-09-09 CN CN202010945084.1A patent/CN112333678B/en active Active
-
2021
- 2021-08-10 WO PCT/CN2021/111699 patent/WO2022052711A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104980190A (en) * | 2014-04-14 | 2015-10-14 | 创杰科技股份有限公司 | Data transmission system and transmission method of Bluetooth interface |
CN105050033A (en) * | 2015-07-01 | 2015-11-11 | 惠州Tcl移动通信有限公司 | Piconet networking interconnection method and system based on low-power-dissipation Bluetooth and traditional Bluetooth |
CN105208511A (en) * | 2015-08-28 | 2015-12-30 | 深圳市冠旭电子有限公司 | Intelligent Bluetooth earphone-based music sharing method, system and intelligent Bluetooth earphone |
CN105187878A (en) * | 2015-09-07 | 2015-12-23 | 深圳Tcl数字技术有限公司 | Television Bluetooth connection method and device |
WO2018000290A1 (en) * | 2016-06-30 | 2018-01-04 | 华为技术有限公司 | Method for managing bluetooth connection, bluetooth main device and apparatus |
CN106686528A (en) * | 2016-12-21 | 2017-05-17 | 上海斐讯数据通信技术有限公司 | Data transmission method and system as well as master device and slave device |
CN107911871A (en) * | 2017-12-12 | 2018-04-13 | 腾讯科技(深圳)有限公司 | Control method, device and control device, the storage medium of bluetooth connection |
EP3629561A1 (en) * | 2018-09-30 | 2020-04-01 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Data transmission method and system, and bluetooth headphone |
WO2020077658A1 (en) * | 2018-10-15 | 2020-04-23 | 北京轩辕联科技有限公司 | Extended connection method and extended connection system for bluetooth devices |
Non-Patent Citations (1)
Title |
---|
基于蓝牙的智能终端数据传输研究;龚梓贤;;中外企业家(15);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112333678A (en) | 2021-02-05 |
WO2022052711A1 (en) | 2022-03-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP4027238B1 (en) | Card rendering method and electronic device | |
KR102251326B1 (en) | Method for organizing proximity network and an electronic device thereof | |
CN113676869A (en) | Sidelink resource mapping method, transmission method, network device and terminal device | |
CN112333678B (en) | Bluetooth-based data transmission method, intelligent system and storage medium | |
WO2019158016A1 (en) | Method for determining position of paging message, communication device, network and user equipment | |
US20230308976A1 (en) | Seamless bluetooth switching system | |
JP2022523509A (en) | Information transmission method, information detection method, terminal equipment and network equipment | |
US20210127431A1 (en) | Electronic device for transmitting data to external electronic device not connected thereto, and operation method of electronic device | |
US20220116566A1 (en) | Electronic device for processing image and image processing method thereof | |
WO2020156072A1 (en) | Random access method, apparatus, device, and medium | |
CN111970408A (en) | Method, system, electronic equipment and storage medium for playing video color ring | |
CN112860431B (en) | Connection method, system, equipment and storage medium of micro service node | |
CN116709226B (en) | Communication relay method, electronic device, communication system, and storage medium | |
US20220311700A1 (en) | Method for multiplexing http channels and terminal | |
CN115087134A (en) | A Bluetooth connection method and electronic device | |
CN111556526A (en) | Transmission method and system for 3D image rendering command of 5G mobile terminal | |
US12267552B2 (en) | Transmission device | |
CN116049096B (en) | Data migration method, electronic device and storage medium | |
CN114268689B (en) | Power display method, terminal and storage medium of bluetooth device | |
US20230379434A1 (en) | Data transmission method and apparatus | |
CN117707463B (en) | Sound playing method and related device | |
KR102761772B1 (en) | Transmission device | |
US20240407024A1 (en) | Bluetooth connection method, audio device, and chip | |
CN116049095B (en) | Data migration method, electronic device and storage medium | |
CN113746982B (en) | Audio playing control method and device, electronic equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |