CN107911807A - Bluetooth data transfer method and device - Google Patents

Bluetooth data transfer method and device Download PDF

Info

Publication number
CN107911807A
CN107911807A CN201711100280.3A CN201711100280A CN107911807A CN 107911807 A CN107911807 A CN 107911807A CN 201711100280 A CN201711100280 A CN 201711100280A CN 107911807 A CN107911807 A CN 107911807A
Authority
CN
China
Prior art keywords
bluetooth
business datum
opposite end
group
transmission
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.)
Granted
Application number
CN201711100280.3A
Other languages
Chinese (zh)
Other versions
CN107911807B (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.)
Xi'an Bee Language Mdt Infotech Ltd
Original Assignee
Xi'an Bee Language Mdt Infotech 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 Xi'an Bee Language Mdt Infotech Ltd filed Critical Xi'an Bee Language Mdt Infotech Ltd
Priority to CN201711100280.3A priority Critical patent/CN107911807B/en
Publication of CN107911807A publication Critical patent/CN107911807A/en
Application granted granted Critical
Publication of CN107911807B publication Critical patent/CN107911807B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure is directed to a kind of Bluetooth data transfer method and device.The device includes:Multigroup business datum is obtained, multigroup business datum corresponds to multiple bluetooth opposite ends;Obtain the terminal iidentification and Bluetooth address of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum;According to the terminal iidentification of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, the corresponding transmission bag of every group of business datum is obtained;According to the Bluetooth address of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, the corresponding multiple transmission bags of multigroup business datum are sent.In the technical solution, bluetooth local terminal can obtain the corresponding multigroup business datum in multiple bluetooth opposite ends at the same time, and multigroup business datum is sent respectively to the plurality of bluetooth opposite end, realize the scheme configured at the same time to multiple bluetooth opposite ends, simplify the operating process configured to multiple bluetooth opposite ends, save the operating time, and then improved user experience.

Description

Bluetooth data transfer method and device
Technical field
This disclosure relates to Bluetooth transfer techniques field, more particularly to a kind of Bluetooth data transfer method and device.
Background technology
With the development of smart home technology, more and more smart homes possess function of Bluetooth communication, and user can lead to Cross multiple smart home devices that mobile phone pair is connected with the mobile phone to operate, realize the personalized function of smart home.
In correlation technique, mobile phone can be connected with multiple smart home devices, it is assumed that the mobile phone is connected with Intelligent bracelet, intelligence Energy camera and intelligent air condition, if user is needed the night operation pattern of Intelligent bracelet, intelligent video camera head and intelligent air condition Adjust to the same time, then need respectively to be configured three equipment, that is, be separately turned on Intelligent bracelet, intelligent video camera head and The setting interface of intelligent air condition is configured, when causing user by mobile phone to the same configuration of progress of multiple smart home devices Operating process is relatively complicated, and the operating time is longer, and user experience is relatively low.
The content of the invention
To overcome problem present in correlation technique, the embodiment of the present disclosure provides a kind of Bluetooth data transfer method and dress Put.The technical solution is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of Bluetooth data transfer method, including:
Multigroup business datum is obtained, multigroup business datum corresponds to multiple bluetooth opposite ends;
Obtain the terminal iidentification and Bluetooth address of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum;
According to the terminal iidentification of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, every group of industry is obtained The corresponding transmission bag of data of being engaged in;
According to the Bluetooth address of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, send described more The corresponding multiple transmission bags of group business datum.
The technical scheme provided by this disclosed embodiment can include the following benefits:Bluetooth local terminal can obtain at the same time The corresponding multigroup business datum in multiple bluetooth opposite ends, and multigroup business datum is sent respectively to the plurality of bluetooth opposite end, it is real The scheme now configured at the same time to multiple bluetooth opposite ends, simplifies the operating process configured to multiple bluetooth opposite ends, saves The about operating time, and then improve user experience.
In one embodiment, it is described according to the corresponding bluetooth opposite end of every group of business datum in multigroup business datum Terminal iidentification, obtaining the corresponding transmission bag of every group of business datum includes:
According to the terminal iidentification of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, every group of industry is obtained The transport protocol for data of being engaged in;
According to the transport protocol of every group of business datum, the transmission bag of acquisition every group of business datum.
In one embodiment, it is described according to the corresponding bluetooth opposite end of every group of business datum in multigroup business datum Terminal iidentification, obtaining the transport protocol of every group of business datum includes:
According to the terminal iidentification to prestore bluetooth corresponding with the correspondence of transport protocol and every group of business datum The terminal iidentification of opposite end, obtains the transport protocol of every group of business datum.
In one embodiment, it is described to obtain the corresponding bluetooth opposite end of every group of business datum in multigroup business datum Terminal iidentification includes:
Obtain the terminal type of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum.
In one embodiment, the method further includes:
Receive the reference transmission bag sent with reference to bluetooth opposite end, the reference transmission bag includes described with reference to bluetooth opposite end Terminal iidentification and transmission of packet data, the transmission of packet data embody the bluetooth industry asked with reference to bluetooth opposite end to bluetooth local terminal Business, it is described with reference to bluetooth opposite end be the multiple bluetooth opposite end in any one;
According to the terminal iidentification with reference to bluetooth opposite end, obtain that the transmission of packet data is corresponding to refer to business datum;
Business datum is referred to according to described, realizes the bluetooth service asked with reference to bluetooth opposite end.
In one embodiment, it is described according to the terminal iidentification with reference to bluetooth opposite end, obtain the transmission of packet data It is corresponding to include with reference to business datum:
According to the terminal iidentification with reference to bluetooth opposite end, obtain described with reference to the corresponding reference transmission association in bluetooth opposite end View;
According to the reference transmission agreement, the transmission of packet data is parsed, acquisition is described to refer to business datum.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of Bluetooth data transmission device, including:
Business module, for obtaining multigroup business datum, multigroup business datum corresponds to multiple bluetooth opposite ends;
Device command module, for obtaining the end of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum End mark and Bluetooth address;
Transport module, for the terminal mark according to the corresponding bluetooth opposite end of every group of business datum in multigroup business datum Know, obtain the corresponding transmission bag of every group of business datum;
Bluetooth module, for according to the bluetooth of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum Location, sends the corresponding multiple transmission bags of multigroup business datum.
In one embodiment, the transport module includes:
First agreement acquisition submodule, for according to the corresponding bluetooth pair of every group of business datum in multigroup business datum The terminal iidentification at end, obtains the transport protocol of every group of business datum;
Data acquisition submodule, for the transport protocol according to every group of business datum, obtains every group of business number According to transmission bag.
In one embodiment, the first agreement acquisition submodule includes:
Agreement acquiring unit, for according to the terminal iidentification and correspondence and the every group of industry of transport protocol to prestore The terminal iidentification of the corresponding bluetooth opposite end of data of being engaged in, obtains the transport protocol of every group of business datum.
In one embodiment, the device command module includes:
Acquisition submodule is identified, for obtaining the corresponding bluetooth opposite end of every group of business datum in multigroup business datum Terminal type.
In one embodiment, described device includes:
Receiving module, for receiving the reference transmission bag sent with reference to bluetooth opposite end, the reference transmission bag includes described With reference to the terminal iidentification and transmission of packet data of bluetooth opposite end, the transmission of packet data embodies the reference bluetooth opposite end to bluetooth sheet Hold request bluetooth service, it is described with reference to bluetooth opposite end be the multiple bluetooth opposite end in any one;
Data acquisition module, for according to the terminal iidentification with reference to bluetooth opposite end, obtaining the transmission of packet data pair The reference business datum answered;
Realize module, for referring to business datum according to described, realize the bluetooth service asked with reference to bluetooth opposite end.
In one embodiment, the data acquisition module includes:
Second protocol acquisition submodule, for according to the terminal iidentification with reference to bluetooth opposite end, obtaining described with reference to blue The corresponding reference transmission agreement in tooth opposite end;
Analyzing sub-module, for according to the reference transmission agreement, parsing the transmission of packet data, acquisition is described to refer to industry Business data.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of Bluetooth data transmission device, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Multigroup business datum is obtained, multigroup business datum corresponds to multiple bluetooth opposite ends;
Obtain the terminal iidentification and Bluetooth address of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum;
According to the terminal iidentification of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, every group of industry is obtained The corresponding transmission bag of data of being engaged in;
According to the Bluetooth address of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, send described more The corresponding multiple transmission bags of group business datum.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of computer-readable recording medium, is stored thereon with calculating The step of machine instructs, which realizes first aspect any embodiment described device when being executed by processor.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Attached drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is the structure diagram of the bluetooth local terminal in the correlation technique according to an exemplary embodiment.
Fig. 2 a are the flow charts of the Bluetooth data transfer method according to an exemplary embodiment.
Fig. 2 b are the flow charts of the Bluetooth data transfer method according to an exemplary embodiment.
Fig. 2 c are the flow charts of the Bluetooth data transfer method according to an exemplary embodiment.
Fig. 3 is the flow chart of the Bluetooth data transfer method according to an exemplary embodiment.
Fig. 4 a are the structure diagrams of the Bluetooth data transmission device according to an exemplary embodiment.
Fig. 4 b are the structure diagrams of the Bluetooth data transmission device according to an exemplary embodiment.
Fig. 4 c are the structure diagrams of the Bluetooth data transmission device according to an exemplary embodiment.
Fig. 4 d are the structure diagrams of the Bluetooth data transmission device according to an exemplary embodiment.
Fig. 4 e are the structure diagrams of the Bluetooth data transmission device according to an exemplary embodiment.
Fig. 4 f are the structure diagrams of the Bluetooth data transmission device according to an exemplary embodiment.
Fig. 5 is the structure diagram of the Bluetooth data transmission device according to an exemplary embodiment.
Fig. 6 is the structure diagram of the Bluetooth data transmission device according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent device of some aspects be described in detail in claims, the disclosure and device.
The technical solution that the embodiment of the present disclosure provides, is related to bluetooth local terminal and bluetooth opposite end, which can be hand Machine, tablet computer, PC and other can connect bluetooth opposite end and the equipment configured to bluetooth opposite end;The bluetooth Opposite end can be to have the function of the intelligent terminal of Bluetooth communication energy, such as intelligent video camera head, Intelligent bracelet, intelligent air condition etc., this Open embodiment is not construed as limiting this.In correlation technique, the structure diagram of bluetooth local terminal 10 can be with as shown in Figure 1, wherein, industry Business layer 101 can receive user by controlling the business datum of bluetooth opposite end 20a that APP is inputted, and by calling Bluetooth command The business datum is sent to bluetooth service layer 103 by layer 102, which can be sent to bluetooth by bluetooth service layer 103 Opposite end 20a.If user is needed at the same time when being configured to bluetooth opposite end 20a and bluetooth opposite end 20b, it is necessary to by bluetooth opposite end The business datum of 20a is sent to after the 20a of bluetooth opposite end, disconnects the connection with bluetooth opposite end 20a, and empties operation layer 101, indigo plant The data of tooth layer order 102 and bluetooth service layer 103.Operation layer 101 can receive user again by controlling APP to input at this time Bluetooth opposite end 20b business datum, and by calling Bluetooth command layer 102 to send the business datum of bluetooth opposite end 20b To bluetooth service layer 103, the business datum of bluetooth opposite end 20b can be sent to bluetooth opposite end 20b by bluetooth service layer 103. It follows that when user needs at the same time to configure bluetooth opposite end 20a and bluetooth opposite end 20b, operating process is relatively complicated, And the used time is longer, user experience is bad.
Fig. 2 a are a kind of flow charts of Bluetooth data transfer method according to an exemplary embodiment, this method application In bluetooth local terminal, as shown in Figure 2 a, which comprises the following steps 201 to step 204:
In step 201, multigroup business datum is obtained, multigroup business datum corresponds to multiple bluetooth opposite ends.
Exemplary, bluetooth local terminal is provided with configuration interface, which can be divided into some, and different parts is right Multiple setting options of different bluetooth opposite ends are answered, user according to demand can select different bluetooth opposite ends on the configuration interface Corresponding setting option is configured.ACK button is additionally provided with the configuration interface, when user determines to have completed to different bluetooths After the setting of opposite end, the ACK button can be clicked on.When bluetooth local terminal detects that this time is clicked on, determine to get and correspond to Multigroup business datum of multiple bluetooth opposite ends, the corresponding business datum in each bluetooth opposite end embody user and are inputted on configuration interface Each bluetooth opposite end setting.
It is respectively intelligent video camera head, Intelligent bracelet and intelligent air condition assuming that bluetooth local terminal is connected with three bluetooth opposite ends, this When configuration interface be divided into three parts, wherein Part I shows the setting option of intelligent video camera head, and Part II shows intelligence The setting option of energy bracelet, Part III show the setting option of intelligent air condition.User is being needed to intelligent video camera head, Intelligent bracelet When being configured with intelligent air condition, corresponding set can be selected on Part I, Part II and Part III respectively Item is configured, and after user setting is completed, clicks on ACK button, and bluetooth local terminal gets three groups of business datums at this time, its In first group of business datum embody the setting of the intelligent video camera head that user input in Part I, second group of business datum embodies use The setting for the Intelligent bracelet that family is inputted in Part II, the 3rd group of business datum embody the Intelligent air that user inputs in Part III The setting of tune.
In step 202, the terminal iidentification of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum is obtained And Bluetooth address.
Exemplary, bluetooth local terminal is with being stored with the plurality of bluetooth opposite end the terminal iidentification of each bluetooth opposite end and bluetooth Location., can be respectively to multigroup business after bluetooth local terminal gets multigroup business datum corresponding to multiple bluetooth local terminals Every group of business datum in data is initialized, and it is corresponding to get every group of business datum by the process of the initialization The terminal iidentification and Bluetooth address of bluetooth opposite end.
Specifically, bluetooth local terminal is stored with the terminal iidentification and Bluetooth address of intelligent video camera head, the terminal mark of Intelligent bracelet Knowledge and Bluetooth address, and the terminal iidentification and Bluetooth address of intelligent air condition.Got in bluetooth local terminal corresponding to three indigo plants After three groups of business datums of tooth opposite end, since first group of business datum embodies the setting of intelligent video camera head, it can obtain The terminal iidentification and Bluetooth address of intelligent video camera head are as the corresponding terminal iidentification of first group of business datum and Bluetooth address;Similarly Can obtain Intelligent bracelet terminal iidentification and Bluetooth address as the corresponding terminal iidentification of second group of business datum and bluetooth Location, obtain intelligent air condition terminal iidentification and Bluetooth address as the 3rd group of corresponding terminal iidentification of business datum and bluetooth Location.
Optionally, can be by each bluetooth pair if the type of multiple bluetooth opposite ends of bluetooth local terminal connection is different Terminal iidentification of the terminal type at end as each bluetooth opposite end.For example, the terminal iidentification of intelligent video camera head can be camera, The terminal iidentification of Intelligent bracelet can be bracelet, and the terminal iidentification of intelligent air condition can be air-conditioning.
The title of bluetooth local terminal can also either be numbered in practical application and be used as its terminal iidentification or can also be advance Arrange the terminal iidentification of different bluetooth opposite ends in bluetooth local terminal and bluetooth opposite end both sides, the embodiment of the present disclosure does not limit this.
In step 203, according to the terminal iidentification of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, Obtain the corresponding transmission bag of every group of business datum.
It is exemplary, can be according to different bluetooth opposite ends since the different corresponding transport protocols in bluetooth opposite end is different Transport protocol the corresponding business datum in different bluetooth opposite ends is handled, obtain every group of business datum it is corresponding transmission bag, The data that the transmission bag includes are the machine language that can be identified by bluetooth opposite end.
In step 204, according to the Bluetooth address of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, hair Send multigroup business datum corresponding multiple transmission bags.
It is exemplary, get multigroup business datum it is corresponding it is multiple transmission bag after, you can according to each bluetooth opposite end The plurality of transmission bag is sent respectively to corresponding bluetooth opposite end by Bluetooth address, and bluetooth opposite end can be according to the transmission bag received In data realize the setting of user.
Specifically, bluetooth local terminal get first group of business datum it is corresponding first transmission bag after, you can according to intelligence The first transmission bag is sent to intelligent video camera head by the Bluetooth address of camera, which can wrap according to the first transmission Data realize setting of the user to intelligent video camera head.Similarly, the corresponding second transmission bag of second group of business datum is being got Afterwards, which is sent to by Intelligent bracelet according to the Bluetooth address of Intelligent bracelet, which can be according to the The data of two transmission bags realize setting of the user to Intelligent bracelet;Getting the corresponding 3rd transmission bag of the 3rd group of business datum Afterwards, the 3rd transmission bag is sent to by intelligent air condition according to the Bluetooth address of intelligent air condition, which can be according to the The data of three transmission bags realize setting of the user to intelligent air condition.
In the technical scheme provided by this disclosed embodiment, it is corresponding that bluetooth local terminal can obtain multiple bluetooth opposite ends at the same time Multigroup business datum, and multigroup business datum is sent respectively to the plurality of bluetooth opposite end, realize at the same time to multiple bluetooths pair The scheme configured is held, the operating process configured to multiple bluetooth opposite ends is simplified, has saved the operating time, Jin Erti High user experience.
In one embodiment, as shown in Figure 2 b, in step 203, according to every group of business datum in multigroup business datum The terminal iidentification of corresponding bluetooth opposite end, obtains the corresponding transmission bag of every group of business datum, can pass through step 2031 and step 2032 realize:
In step 2031, according to the terminal iidentification of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, Obtain the transport protocol of every group of business datum.
In step 2032, according to the transport protocol of every group of business datum, the transmission bag of every group of business datum is obtained.
Exemplary, bluetooth local terminal prestores the correspondence of terminal iidentification and transport protocol, which illustrates not The corresponding differing transmission protocols with terminal iidentification.Bluetooth local terminal every group of business datum in multigroup business datum is got is corresponding After the terminal iidentification of bluetooth opposite end, every group of industry can be inquired about respectively according to the terminal iidentification and the correspondence of transport protocol The corresponding transport protocol of terminal iidentification for data of being engaged in, then handles multigroup business datum respectively according to corresponding transport protocol, Get the transmission bag of every group of business datum.
Optionally, bluetooth local terminal can inquire about intelligent video camera head according to the correspondence of the terminal iidentification and transport protocol Corresponding first transport protocol of terminal iidentification, first transport protocol are the transport protocol of first group of business datum, Ran Hougen First group of business datum, which is handled, according to first transport protocol obtains the first transmission bag, i.e., the life included first group of business datum Language is made to be converted into the machine language that can be identified by intelligent video camera head.Similarly, bluetooth local terminal can according to the terminal iidentification with Corresponding second transport protocol of terminal iidentification of the correspondence inquiry Intelligent bracelet of transport protocol, then according to second transmission Protocol processes second group of business datum obtains the second transmission bag;Inquired about according to the correspondence of the terminal iidentification and transport protocol Corresponding 3rd transport protocol of terminal iidentification of intelligent air condition, then handles the 3rd group of business number according to the 3rd transport protocol Wrapped according to the 3rd transmission is obtained.
In the technical scheme provided by this disclosed embodiment, different bluetooths are obtained by the transport protocol of different bluetooth opposite ends The transmission bag of opposite end, ensure that the success rate of bluetooth opposite end parsing business datum.
In one embodiment, as shown in Figure 2 c, method further includes step 205 to step 207:
In step 205, the reference transmission bag sent with reference to bluetooth opposite end is received, which includes referring to bluetooth The terminal iidentification and transmission of packet data of opposite end.
Transmission of packet data embodies the bluetooth service asked with reference to bluetooth opposite end to bluetooth local terminal, is multiple with reference to bluetooth opposite end Any one in bluetooth opposite end.
In step 206, according to the terminal iidentification with reference to bluetooth opposite end, it is corresponding with reference to business number to obtain transmission of packet data According to.
In step 207, according to reference to business datum, the bluetooth service with reference to the request of bluetooth opposite end is realized.
Exemplary, bluetooth local terminal can also receive the transmission that any one bluetooth opposite end is sent in the plurality of bluetooth opposite end Bag, and the machine language in the transmission bag is identified as the command lanuage that bluetooth local terminal can handle, and then realize bluetooth opposite end The bluetooth service asked by the transmission bag.
Illustrated exemplified by with reference to bluetooth opposite end, can with reference to bluetooth opposite end when needing to bluetooth local terminal PUSH message To generate reference transmission bag as needed, and the reference transmission bag is sent to bluetooth local terminal, which includes reference The terminal iidentification and transmission of packet data of bluetooth opposite end, the transmission of packet data are to be given birth to reference to bluetooth opposite end according to reference transmission agreement Into machine language.Bluetooth local terminal is looked into after the reference transmission bag is received according to the terminal iidentification with reference to bluetooth opposite end The correspondence of terminal iidentification and transport protocol is ask, obtains the corresponding reference transmission agreement for referring to bluetooth opposite end, Ran Hougen The transmission of packet data included according to the reference transmission protocol processes reference transmission bag, obtains that the transmission of packet data is corresponding to refer to business Data, the command lanuage that can be as identified with reference to business datum by bluetooth local terminal.Since transmission of packet data is embodied with reference to blue The bluetooth service that tooth opposite end is asked to bluetooth local terminal, therefore after the corresponding reference business datum of transmission of packet data is got, Bluetooth local terminal can identify and realize the bluetooth service asked with reference to bluetooth opposite end according to this with reference to business datum.
In the technical scheme provided by this disclosed embodiment, bluetooth local terminal can receive the transmission of multiple bluetooth opposite ends at the same time Bag, and according to the terminal iidentification of different bluetooth opposite ends, the transmission bag of different bluetooth opposite ends is parsed, and then realize different bluetooth opposite ends The bluetooth service of request, realizes the Bluetooth communication between bluetooth local terminal and multiple bluetooth opposite ends.
Fig. 3 is a kind of flow chart of Bluetooth data transfer method according to an exemplary embodiment, and executive agent is Bluetooth local terminal, as shown in figure 3, comprising the following steps 301 to step 309:
In step 301, multigroup business datum is obtained, which corresponds to multiple bluetooth opposite ends.
In step 302, the terminal type of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum is obtained And Bluetooth address.
In step 303, according to the terminal type of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, Obtain the transport protocol of every group of business datum.
In step 304, according to the transport protocol of every group of business datum, the transmission bag of every group of business datum is obtained.
In step 305, according to the Bluetooth address of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, The corresponding multiple transmission bags of the multigroup business datum are sent to corresponding bluetooth opposite end.
Within step 306, the reference transmission bag sent with reference to bluetooth opposite end is received, which includes referring to bluetooth The terminal iidentification and transmission of packet data of opposite end.
The transmission of packet data embodies the bluetooth service asked with reference to bluetooth opposite end to bluetooth local terminal.This is with reference to bluetooth opposite end Any one in multiple bluetooth opposite ends.
In step 307, the terminal iidentification of bluetooth opposite end is referred to according to this, is obtained corresponding with reference to biography with reference to bluetooth opposite end Defeated agreement.
In step 308, according to the reference transmission agreement, transmission of packet data is parsed, it is corresponding to obtain the transmission of packet data With reference to business datum.
In a step 309, business datum is referred to according to this, realizes the bluetooth service with reference to the request of bluetooth opposite end.
Embodiment of the disclosure provides a kind of Bluetooth data transfer method, and bluetooth local terminal can obtain multiple bluetooths pair at the same time Corresponding multigroup business datum is held, and multigroup business datum is sent respectively to the plurality of bluetooth opposite end, is realized at the same time to more The scheme that a bluetooth opposite end is configured, simplifies the operating process configured to multiple bluetooth opposite ends, when having saved operation Between, and then improve user experience.
Following is embodiment of the present disclosure, can be used for performing embodiment of the present disclosure.
Fig. 4 a are a kind of structure diagrams of Bluetooth data transmission device 40 according to an exemplary embodiment, the dress Putting 40 can be implemented in combination with as some or all of of electronic equipment by software, hardware or both.As shown in fig. 4 a, The Bluetooth data transmission device 40 includes business module 401, device command module 402, transport module 403 and bluetooth module 404.
Wherein, business module 401, for obtaining multigroup business datum, multigroup business datum corresponds to multiple bluetooths Opposite end.
Device command module 402, for obtaining the corresponding bluetooth opposite end of every group of business datum in multigroup business datum Terminal iidentification and Bluetooth address.
Transport module 403, for the end according to the corresponding bluetooth opposite end of every group of business datum in multigroup business datum End mark, obtains the corresponding transmission bag of every group of business datum.
Bluetooth module 404, for the indigo plant according to the corresponding bluetooth opposite end of every group of business datum in multigroup business datum Tooth address, sends the corresponding multiple transmission bags of multigroup business datum.
In one embodiment, as shown in Figure 4 b, the transport module 403 includes 4031 He of the first agreement acquisition submodule Data acquisition submodule 4032.
Wherein, the first agreement acquisition submodule 4031, for according to every group of business datum pair in multigroup business datum The terminal iidentification for the bluetooth opposite end answered, obtains the transport protocol of every group of business datum.
Data acquisition submodule 4032, for the transport protocol according to every group of business datum, obtains every group of industry The transmission bag for data of being engaged in.
In one embodiment, as illustrated in fig. 4 c, the first agreement acquisition submodule 4031 includes agreement acquiring unit 4031a.The agreement acquiring unit 4031a, for according to the terminal iidentification to prestore and correspondence and the institute of transport protocol The terminal iidentification of the corresponding bluetooth opposite end of every group of business datum is stated, obtains the transport protocol of every group of business datum.
In one embodiment, as shown in figure 4d, the device command module 402 includes mark acquisition submodule 4021. The mark acquisition submodule 4021, for obtaining the corresponding bluetooth opposite end of every group of business datum in multigroup business datum Terminal type.
In one embodiment, as shown in fig 4e, described device 40 includes receiving module 405,406 He of data acquisition module Realize module 407.
Wherein, receiving module 405, for receiving the reference transmission bag sent with reference to bluetooth opposite end, the reference transmission bag Including the terminal iidentification and transmission of packet data with reference to bluetooth opposite end, the transmission of packet data embodies described with reference to bluetooth opposite end To bluetooth local terminal ask bluetooth service, it is described with reference to bluetooth opposite end be the multiple bluetooth opposite end in any one.
Data acquisition module 406, for according to the terminal iidentification with reference to bluetooth opposite end, obtaining the transmission of packet data It is corresponding to refer to business datum.
Realize module 407, for referring to business datum according to described, realize the bluetooth industry asked with reference to bluetooth opposite end Business.
In one embodiment, as shown in fig. 4f, the data acquisition module 406 includes second protocol acquisition submodule 4061 and analyzing sub-module 4062.
Wherein, second protocol acquisition submodule 4061, for according to the terminal iidentification with reference to bluetooth opposite end, obtaining institute State and refer to the corresponding reference transmission agreement in bluetooth opposite end.
Analyzing sub-module 4062, for according to the reference transmission agreement, parsing the transmission of packet data, obtaining the ginseng Examine business datum.
Embodiment of the disclosure provides a kind of Bluetooth data transmission device, which can obtain multiple bluetooth opposite ends at the same time Corresponding multigroup business datum, and multigroup business datum is sent respectively to the plurality of bluetooth opposite end, realize at the same time to multiple The scheme that bluetooth opposite end is configured, simplifies the operating process configured to multiple bluetooth opposite ends, has saved the operating time, And then improve user experience.
Fig. 5 is the structure diagram of Bluetooth data transmission device 50a provided by the invention a kind of, device 50a with it is multiple The 50b connections of bluetooth opposite end, device 50a include operation layer 501, device command level of abstraction 502, device abstraction layer 503, transmission pumping As layer 504 and bluetooth service layer 505.Wherein, device command level of abstraction 502 includes multiple equipment order abstract module 5021, if Standby level of abstraction 503 is abstracted 5031 including multiple equipment, and different device command abstract modules 5021 corresponds to different device abstracts 5031, different device abstracts 5031 corresponds to different bluetooth opposite end 50b, i.e., different device command abstract modules 5021 corresponds to Different bluetooth opposite end 50b.
Operation layer 501 is used to receive multigroup business datum input by user corresponding to multiple bluetooth opposite end 50b.
The multiple equipment order abstract module 5021 that device command level of abstraction 502 includes is used for according to corresponding multiple equipment It is abstracted 5031 pairs of multigroup business datums to initialize, introduces the terminal iidentification and Bluetooth address of every group of business datum.
For example, it is assumed that device 50a is connected with three bluetooth opposite end 50b, which is respectively intelligent camera Head, Intelligent bracelet and intelligent air condition, get input by user corresponding to the three of three bluetooth opposite end 50b in operation layer 501 After group business datum, operation layer 501 can call the equipment corresponding to intelligent video camera head that device command level of abstraction 502 includes Order abstract module 5021a, device command abstract module 5021a can be according to the device abstract corresponding to intelligent video camera head 5031a initializes the business datum of intelligent video camera head, introduces the terminal iidentification and Bluetooth address of intelligent video camera head.Together Reason, operation layer 501 can call the device command abstract module corresponding to Intelligent bracelet that device command level of abstraction 502 includes 5021b, device command abstract module 5021b can be according to the device abstract 5031b corresponding to Intelligent bracelet to Intelligent bracelet Business datum initialized, introduce the terminal iidentification and Bluetooth address of Intelligent bracelet;Operation layer 501 can call equipment to order Make the device command abstract module 5021c corresponding to intelligent air condition that level of abstraction 502 includes, the device command abstract module 5021c can initialize the business datum of intelligent air condition according to the device abstract 5031c corresponding to intelligent air condition, introduce The terminal iidentification and Bluetooth address of intelligent air condition.
Transmission level of abstraction 504 is used to obtain difference according to the terminal iidentification of the initialization introducing of device command level of abstraction 502 The transport protocol of terminal iidentification, so that the distinct device order abstract module 5021 that device command level of abstraction 502 includes can To call the transport protocol of corresponding bluetooth opposite end 50b, level of abstraction 504 is then transmitted according to distinct device order abstract module 5021 transport protocols called, are that can be known by bluetooth opposite end by the business data processing of distinct device order abstract module 5021 Other transmission bag, then transmission bag that distinct device order abstract module 5021 is handled to completion are transferred to bluetooth service layer 505. Likewise, the transmission bag that bluetooth service layer 505 transmits can also be by transmission level of abstraction 504 by the processing of corresponding transport protocol The command lanuage that can be identified by device command level of abstraction 502.It follows that transmission level of abstraction 504 can realize device command Level of abstraction 502 arrives bluetooth service layer 505, and bluetooth service layer 505 arrives the transmitted in both directions of device command level of abstraction 502.
Specifically, the transmission level of abstraction 504 realizes two general API (Application ProgrammingInterface, application programming interface), it is respectively toCommand () and toData (), wherein ToData () is realized can be by the command lanuage that device command level of abstraction 502 identifies to the transmission that can be identified by bluetooth opposite end Conversion between bag;ToCommand () is realized can be by transmission bag that bluetooth opposite end identifies to can be by device command level of abstraction Conversion between the command lanuage of 502 identifications.
Bluetooth service layer 505 is used to transmission bag being sent to bluetooth opposite end 50b, and receives what bluetooth opposite end 50b was sent Transmission bag.505 enclosed inside of the bluetooth service layer method of read and write, will when bluetooth service layer 505 is using function is read The transmission bag that bluetooth opposite end 50b is sent is transmitted to transmission level of abstraction 504;When function is write in 505 use of bluetooth service layer, Ji Jiangchuan The transmission bag that defeated level of abstraction 504 is sent is transmitted to bluetooth opposite end 50b.Meanwhile bluetooth service layer 505 can also record current Bluetooth The information for other bluetooth opposite ends 50b that the information of local terminal 50a and bluetooth local terminal 50a are scanned.In practical application, bluetooth garment Business layer 505 can also encapsulate the interface connected automatically, blue when the connection of any bluetooth opposite end 50b and bluetooth local terminal 52a disconnects The interface that this is connected automatically that can set out of tooth service layer 505 establishes the connection of bluetooth local terminal 52a and bluetooth opposite end 50b automatically.
Pass through device abstraction layer 503, device command level of abstraction 502, transmission level of abstraction 504, this four layers of bluetooth service layer 505 Abstract package, realize the decoupling that operation layer 501 arrives bluetooth service layer 505, and then realize bluetooth local terminal 50a to multiple indigo plants The scheme of tooth opposite end 50b simultaneous transmission data, has achieveed the purpose that the multiple bluetooth opposite end 50b of rapid configuration.
Embodiment of the disclosure provides a kind of Bluetooth data transmission device, which can obtain multiple bluetooth opposite ends at the same time Corresponding multigroup business datum, and multigroup business datum is sent respectively to the plurality of bluetooth opposite end, realize at the same time to multiple The scheme that bluetooth opposite end is configured, simplifies the operating process configured to multiple bluetooth opposite ends, has saved the operating time, And then improve user experience.
The embodiment of the present disclosure provides a kind of Bluetooth data transmission device, which includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, processor is configured as:
Multigroup business datum is obtained, multigroup business datum corresponds to multiple bluetooth opposite ends;
Obtain the terminal iidentification and Bluetooth address of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum;
According to the terminal iidentification of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, every group of industry is obtained The corresponding transmission bag of data of being engaged in;
According to the Bluetooth address of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, send described more The corresponding multiple transmission bags of group business datum.
In one embodiment, above-mentioned processor is also configured to:According to every group of business in multigroup business datum The terminal iidentification of the corresponding bluetooth opposite end of data, obtains the transport protocol of every group of business datum;According to every group of business datum Transport protocol, obtain the transmission bag of every group of business datum.
In one embodiment, above-mentioned processor is also configured to:According to the terminal iidentification and transport protocol to prestore Correspondence and the terminal iidentification of the corresponding bluetooth opposite end of every group of business datum, obtain the biography of every group of business datum Defeated agreement.
In one embodiment, above-mentioned processor is also configured to:Obtain every group of business in multigroup business datum The terminal type of the corresponding bluetooth opposite end of data.
In one embodiment, above-mentioned processor is also configured to:Receive the reference transmission sent with reference to bluetooth opposite end Bag, the reference transmission bag include the terminal iidentification and transmission of packet data with reference to bluetooth opposite end, the transmission of packet data body The existing bluetooth service asked with reference to bluetooth opposite end to bluetooth local terminal, the reference bluetooth opposite end is the multiple bluetooth opposite end In any one;According to the terminal iidentification with reference to bluetooth opposite end, obtain that the transmission of packet data is corresponding to refer to business Data;Business datum is referred to according to described, realizes the bluetooth service asked with reference to bluetooth opposite end.
In one embodiment, above-mentioned processor is also configured to:According to the terminal iidentification with reference to bluetooth opposite end, Obtain described with reference to the corresponding reference transmission agreement in bluetooth opposite end;According to the reference transmission agreement, the transmission bag number is parsed According to acquisition is described to refer to business datum.
Embodiment of the disclosure provides a kind of Bluetooth data transmission device, which can obtain multiple bluetooth opposite ends at the same time Corresponding multigroup business datum, and multigroup business datum is sent respectively to the plurality of bluetooth opposite end, realize at the same time to multiple The scheme that bluetooth opposite end is configured, simplifies the operating process configured to multiple bluetooth opposite ends, has saved the operating time, And then improve user experience.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in the related device Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 6 is a kind of structure diagram for Bluetooth data transmission device 60 according to an exemplary embodiment, should Device is suitable for terminal device.For example, device 60 can be mobile phone, computer, digital broadcast terminal, information receiving and transmitting sets It is standby, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Device 60 can include following one or more assemblies:Processing component 602, memory 604, power supply module 606 are more Media component 608, audio component 610, the interface 612 of input/output (I/O), sensor component 614, and communication component 616。
The integrated operation of the usual control device 60 of processing component 602, such as with display, call, data communication, camera The operation that operation and record operation are associated.Processing component 602 can carry out execute instruction including one or more processors 620, To complete all or part of step of above-mentioned device.In addition, processing component 602 can include one or more modules, it is easy to Interaction between processing component 602 and other assemblies.For example, processing component 602 can include multi-media module, to facilitate more matchmakers Interaction between body component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in device 60.These data are shown Example includes being used for the instruction of any application program or device operated on device 60, and contact data, telephone book data, disappears Breath, picture, video etc..Memory 604 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) are erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 606 provides electric power for the various assemblies of device 60.Power supply module 606 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 60.
Multimedia component 608 is included in the screen of one output interface of offer between described device 60 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slip and touch panel.The touch sensor can not only sense touch or sliding action Border, but also detect and the duration and pressure associated with the touch or slide operation.In certain embodiments, more matchmakers Body component 608 includes a front camera and/or rear camera.When device 60 is in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive exterior multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 610 is configured as output and/or input audio signal.For example, audio component 610 includes a Mike Wind (MIC), when device 60 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone is configured To receive external audio signal.The received audio signal can be further stored in memory 604 or via communication component 616 send.In certain embodiments, audio component 610 further includes a loudspeaker, for exports audio signal.
I/O interfaces 612 provide interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor component 614 includes one or more sensors, for providing the status assessment of various aspects for device 60. For example, sensor component 614 can detect opening/closed mode of device 60, the relative positioning of component, such as the component For the display and keypad of device 60, sensor component 614 can be with the position of 60 1 components of detection device 60 or device Change, the existence or non-existence that user contacts with device 60,60 orientation of device or acceleration/deceleration and the temperature change of device 60. Sensor component 614 can include proximity sensor, be configured to detect object nearby without any physical contact Presence.Sensor component 614 can also include optical sensor, such as CMOS or ccd image sensor, in imaging applications Use.In certain embodiments, which can also include acceleration transducer, gyro sensor, magnetic sensing Device, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between device 60 and other equipment.Device 60 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 616 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 616 further includes near-field communication (NFC) module, to promote junction service.Example Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 60 can be believed by one or more application application-specific integrated circuit (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic building bricks are realized, for performing above device.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 604 of instruction, above-metioned instruction can be performed to complete above device by the processor 620 of device 60.For example, institute State non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and Optical data storage devices etc..
The embodiment of the present disclosure provides a kind of non-transitorycomputer readable storage medium, the instruction in the storage medium When being performed by the processor of device 60 so that device 60 is able to carry out above-mentioned Bluetooth data transmission device, and described device includes:
Multigroup business datum is obtained, multigroup business datum corresponds to multiple bluetooth opposite ends;
Obtain the terminal iidentification and Bluetooth address of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum;
According to the terminal iidentification of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, every group of industry is obtained The corresponding transmission bag of data of being engaged in;
According to the Bluetooth address of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, send described more The corresponding multiple transmission bags of group business datum.
In one embodiment, it is described according to the corresponding bluetooth opposite end of every group of business datum in multigroup business datum Terminal iidentification, obtaining the corresponding transmission bag of every group of business datum includes:According to every group of business datum in multigroup business datum The terminal iidentification of corresponding bluetooth opposite end, obtains the transport protocol of every group of business datum;According to the biography of every group of business datum Defeated agreement, obtains the transmission bag of every group of business datum.
In one embodiment, it is described according to the corresponding bluetooth opposite end of every group of business datum in multigroup business datum Terminal iidentification, obtaining the transport protocol of every group of business datum includes:Closed according to the terminal iidentification to prestore is corresponding with transport protocol System and the terminal iidentification of the corresponding bluetooth opposite end of every group of business datum, obtain the transmission association of every group of business datum View.
In one embodiment, it is described to obtain the corresponding bluetooth opposite end of every group of business datum in multigroup business datum Terminal iidentification includes:Obtain the terminal type of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum.
In one embodiment, the method further includes:Receive the reference transmission bag sent with reference to bluetooth opposite end, the ginseng Examining transmission includes the terminal iidentification and transmission of packet data with reference to bluetooth opposite end, and the transmission of packet data embodies the reference The bluetooth service that bluetooth opposite end is asked to bluetooth local terminal, it is described with reference to bluetooth opposite end be the multiple bluetooth opposite end in it is any one It is a;According to the terminal iidentification with reference to bluetooth opposite end, obtain that the transmission of packet data is corresponding to refer to business datum;According to institute State and refer to business datum, realize the bluetooth service asked with reference to bluetooth opposite end.
In one embodiment, it is described according to the terminal iidentification with reference to bluetooth opposite end, obtain the transmission of packet data It is corresponding to include with reference to business datum:According to the terminal iidentification with reference to bluetooth opposite end, obtain described with reference to bluetooth opposite end pair The reference transmission agreement answered;According to the reference transmission agreement, the transmission of packet data is parsed, is obtained described with reference to business number According to.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be appreciated that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claim.

Claims (14)

  1. A kind of 1. Bluetooth data transfer method, it is characterised in that including:
    Multigroup business datum is obtained, multigroup business datum corresponds to multiple bluetooth opposite ends;
    Obtain the terminal iidentification and Bluetooth address of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum;
    According to the terminal iidentification of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, every group of business number is obtained Wrapped according to corresponding transmission;
    According to the Bluetooth address of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, multigroup industry is sent The corresponding multiple transmission bags of data of being engaged in.
  2. It is 2. according to the method described in claim 1, it is characterized in that, described according to every group of business number in multigroup business datum According to the terminal iidentification of corresponding bluetooth opposite end, obtaining the corresponding transmission bag of every group of business datum includes:
    According to the terminal iidentification of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, every group of business number is obtained According to transport protocol;
    According to the transport protocol of every group of business datum, the transmission bag of acquisition every group of business datum.
  3. It is 3. according to the method described in claim 2, it is characterized in that, described according to every group of business number in multigroup business datum According to the terminal iidentification of corresponding bluetooth opposite end, obtaining the transport protocol of every group of business datum includes:
    According to the terminal iidentification to prestore bluetooth opposite end corresponding with the correspondence of transport protocol and every group of business datum Terminal iidentification, obtain the transport protocol of every group of business datum.
  4. 4. according to the method described in claims 1 to 3 any one claim, it is characterised in that the acquisition is described multigroup The terminal iidentification of the corresponding bluetooth opposite end of every group of business datum includes in business datum:
    Obtain the terminal type of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum.
  5. 5. according to the method described in claims 1 to 3 any one claim, it is characterised in that the method further includes:
    The reference transmission bag sent with reference to bluetooth opposite end is received, the reference transmission bag includes the terminal with reference to bluetooth opposite end Mark and transmission of packet data, the transmission of packet data embody the bluetooth service asked with reference to bluetooth opposite end to bluetooth local terminal, It is described with reference to bluetooth opposite end be the multiple bluetooth opposite end in any one;
    According to the terminal iidentification with reference to bluetooth opposite end, obtain that the transmission of packet data is corresponding to refer to business datum;
    Business datum is referred to according to described, realizes the bluetooth service asked with reference to bluetooth opposite end.
  6. 6. according to the method described in claim 5, it is characterized in that, described according to the terminal iidentification with reference to bluetooth opposite end, Obtaining the corresponding business datum that refers to of the transmission of packet data includes:
    According to the terminal iidentification with reference to bluetooth opposite end, obtain described with reference to the corresponding reference transmission agreement in bluetooth opposite end;
    According to the reference transmission agreement, the transmission of packet data is parsed, acquisition is described to refer to business datum.
  7. A kind of 7. Bluetooth data transmission device, it is characterised in that including:
    Business module, for obtaining multigroup business datum, multigroup business datum corresponds to multiple bluetooth opposite ends;
    Device command module, for obtaining the terminal mark of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum Knowledge and Bluetooth address;
    Transport module, for the terminal iidentification according to the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, Obtain the corresponding transmission bag of every group of business datum;
    Bluetooth module, for the Bluetooth address according to the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, Send the corresponding multiple transmission bags of multigroup business datum.
  8. 8. device according to claim 7, it is characterised in that the transport module includes:
    First agreement acquisition submodule, for according to the corresponding bluetooth opposite end of every group of business datum in multigroup business datum Terminal iidentification, obtains the transport protocol of every group of business datum;
    Data acquisition submodule, for the transport protocol according to every group of business datum, obtains every group of business datum Transmission bag.
  9. 9. device according to claim 8, it is characterised in that the first agreement acquisition submodule includes:
    Agreement acquiring unit, for according to the terminal iidentification and correspondence and the every group of business number of transport protocol to prestore According to the terminal iidentification of corresponding bluetooth opposite end, the transport protocol of acquisition every group of business datum.
  10. 10. according to the device described in claim 7 to 9 any one claim, it is characterised in that the device command module Including:
    Acquisition submodule is identified, for obtaining the terminal of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum Type.
  11. 11. according to the device described in claim 7 to 9 any one claim, it is characterised in that described device includes:
    Receiving module, for receiving the reference transmission bag sent with reference to bluetooth opposite end, the reference transmission bag includes the reference The terminal iidentification and transmission of packet data of bluetooth opposite end, the transmission of packet data embodies the reference bluetooth opposite end please to bluetooth local terminal The bluetooth service asked, it is described with reference to bluetooth opposite end be the multiple bluetooth opposite end in any one;
    Data acquisition module, for according to the terminal iidentification with reference to bluetooth opposite end, it is corresponding to obtain the transmission of packet data With reference to business datum;
    Realize module, for referring to business datum according to described, realize the bluetooth service asked with reference to bluetooth opposite end.
  12. 12. according to the devices described in claim 11, it is characterised in that the data acquisition module includes:
    Second protocol acquisition submodule, for according to the terminal iidentification with reference to bluetooth opposite end, obtaining described with reference to bluetooth pair Hold corresponding reference transmission agreement;
    Analyzing sub-module, for according to the reference transmission agreement, parsing the transmission of packet data, obtaining described with reference to business number According to.
  13. A kind of 13. Bluetooth data transmission device, it is characterised in that including:
    Processor;
    For storing the memory of processor-executable instruction;
    Wherein, the processor is configured as:
    Multigroup business datum is obtained, multigroup business datum corresponds to multiple bluetooth opposite ends;
    Obtain the terminal iidentification and Bluetooth address of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum;
    According to the terminal iidentification of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, every group of business number is obtained Wrapped according to corresponding transmission;
    According to the Bluetooth address of the corresponding bluetooth opposite end of every group of business datum in multigroup business datum, multigroup industry is sent The corresponding multiple transmission bags of data of being engaged in.
  14. 14. a kind of computer-readable recording medium, is stored thereon with computer instruction, it is characterised in that the instruction is by processor The step of claim 1 to 6 any one claim described device is realized during execution.
CN201711100280.3A 2017-11-09 2017-11-09 Bluetooth data transmission method and device Active CN107911807B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711100280.3A CN107911807B (en) 2017-11-09 2017-11-09 Bluetooth data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711100280.3A CN107911807B (en) 2017-11-09 2017-11-09 Bluetooth data transmission method and device

Publications (2)

Publication Number Publication Date
CN107911807A true CN107911807A (en) 2018-04-13
CN107911807B CN107911807B (en) 2020-12-25

Family

ID=61843833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711100280.3A Active CN107911807B (en) 2017-11-09 2017-11-09 Bluetooth data transmission method and device

Country Status (1)

Country Link
CN (1) CN107911807B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109412912A (en) * 2018-11-30 2019-03-01 广东美的制冷设备有限公司 Remote control equipment and household appliance
CN109495983A (en) * 2018-12-27 2019-03-19 上海乐今通信技术有限公司 A method of it is communicated for multiple equipment of the same race with host computer

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917480A (en) * 2010-08-19 2010-12-15 中兴通讯股份有限公司 Information transmission method and system for a plurality of Bluetooth equipments
US20110210820A1 (en) * 2010-02-26 2011-09-01 Gm Global Technology Operations, Inc. Multiple near field communication tags in a pairing domain
CN105978606A (en) * 2016-07-22 2016-09-28 青岛海信电器股份有限公司 Remote communication method for Bluetooth device, Bluetooth device and client
CN106851537A (en) * 2017-01-23 2017-06-13 西安电子科技大学 The system and method that one terminal Bluetooth is connected with multiple low-power consumption bluetooths

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110210820A1 (en) * 2010-02-26 2011-09-01 Gm Global Technology Operations, Inc. Multiple near field communication tags in a pairing domain
CN101917480A (en) * 2010-08-19 2010-12-15 中兴通讯股份有限公司 Information transmission method and system for a plurality of Bluetooth equipments
CN105978606A (en) * 2016-07-22 2016-09-28 青岛海信电器股份有限公司 Remote communication method for Bluetooth device, Bluetooth device and client
CN106851537A (en) * 2017-01-23 2017-06-13 西安电子科技大学 The system and method that one terminal Bluetooth is connected with multiple low-power consumption bluetooths

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109412912A (en) * 2018-11-30 2019-03-01 广东美的制冷设备有限公司 Remote control equipment and household appliance
CN109495983A (en) * 2018-12-27 2019-03-19 上海乐今通信技术有限公司 A method of it is communicated for multiple equipment of the same race with host computer

Also Published As

Publication number Publication date
CN107911807B (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN104735057B (en) Share the method and device of equipment control
CN105163366B (en) Wireless network connecting method and device
CN104318741B (en) Bluetooth equipment control method and device
CN106416143B (en) Apparatus control method and device
CN104159218B (en) Internetwork connection establishing method and device
CN105068467B (en) Control the method and device of smart machine
CN104464238B (en) Method of controlling operation thereof and device between mobile terminal
CN105162728B (en) Method for network access, equipment and system
CN106357485B (en) The method and device of marking arrangement
CN106375479B (en) Data sharing method and device
CN108768803A (en) Add the method, apparatus and storage medium of smart machine
CN107637123A (en) Information transmitting methods, device and computer-readable recording medium
CN106792448A (en) Bluetooth connecting method and device, system
CN104898505A (en) Smart scene configuration method and device
CN105208631A (en) Network connection method and device
CN107426088A (en) Pictorial information processing method and processing device
CN104506443A (en) Router setting interface display method and device
CN105119958A (en) Method and device of controlling intelligent device
CN105072246A (en) Information synchronization method, device and terminal
CN105099517B (en) Connect method for building up and device
CN107204883A (en) Network failure processing method and device
CN107071862A (en) Account binding method and device and smart machine
CN109451877A (en) Unmanned aerial vehicle (UAV) control method and device, unmanned plane and remote control equipment
CN107959924A (en) Intercom method for parameter configuration and device
CN106357721A (en) Timing method and device

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