Summary of the invention
In view of the above problems, propose the present invention to provide a kind of and overcoming the problems referred to above or solve the data transmission method of the problems referred to above, Apparatus and system at least in part, for solving the problem that cannot obtain more new data from electronic equipment in time to low energy consumption of the prior art.
According to an aspect of the invention, it is provided a kind of data transmission method, the method performs in the radio reception device side with bluetooth module, and the method includes:
Set up with mobile terminal and be connected;
From the unpaired message of acquisition for mobile terminal mobile terminal Yu at least one bluetooth equipment, and store unpaired message;
Set up with at least one bluetooth equipment and be connected;
Inquire about whether at least one bluetooth equipment includes more new data;
If inquiry obtains bluetooth equipment and includes more new data, then bluetooth equipment is mated with unpaired message;
If bluetooth equipment mates with unpaired message, then obtain more new data, and more new data is uploaded to cloud server.
According to a further aspect in the invention, it is provided that a kind of data transmission device, this device includes:
First link block, is suitable to set up with mobile terminal be connected;
First acquisition module, is suitable to the unpaired message from acquisition for mobile terminal mobile terminal Yu at least one bluetooth equipment, and stores unpaired message;
Second link block, is suitable to set up with at least one bluetooth equipment be connected;
Enquiry module, is suitable to inquire about whether at least one bluetooth equipment includes more new data;
Matching module, obtains bluetooth equipment include more new data if being suitable to inquiry, then mated with unpaired message by bluetooth equipment;
Second acquisition module, mates with unpaired message if being suitable to bluetooth equipment, then obtain more new data;
Upper transmission module, is suitable to the more new data by the second acquisition module obtains and is uploaded to cloud server.
According to another aspect of the invention, it is provided that a kind of data transmission system, including radio reception device, mobile terminal, at least one bluetooth equipment and cloud server;Wherein, radio reception device includes above-mentioned data transmission device, and cloud server is further adapted for: the relevant information of more new data is pushed to mobile terminal.
The technical scheme provided according to the present invention, set up with mobile terminal and be connected, unpaired message from acquisition for mobile terminal mobile terminal Yu at least one bluetooth equipment, and store unpaired message, then set up with at least one bluetooth equipment and be connected, inquire about whether at least one bluetooth equipment includes more new data, if inquiry obtains bluetooth equipment and includes more new data, then whether inquiry bluetooth equipment mates with unpaired message, in the case of bluetooth equipment mates with unpaired message, obtain more new data, and more new data is uploaded to cloud server.The technical scheme provided according to the present invention, the more new data of bluetooth equipment can be obtained conveniently by the radio reception device with bluetooth module, compared with obtaining more new data with prior art by WIFI mode, utilize Bluetooth technology to considerably reduce the consumption of the electric energy of electronic equipment during the data obtaining electronic equipment, optimize data transfer mode.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, and can be practiced according to the content of description, and in order to above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing showing the exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and should not limited by embodiments set forth here.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Fig. 1 shows the schematic flow sheet of the data transmission method embodiment one that the present invention provides, as it is shown in figure 1, the method performs in the radio reception device side with bluetooth module, the method comprises the steps:
Step S100, sets up with mobile terminal and is connected.
Wherein, the radio reception device with bluetooth module can be the router with bluetooth module, and mobile terminal can be the mobile terminal such as smart mobile phone, PAD.In the step s 100, the radio reception device with bluetooth module is connected with mobile terminal foundation.
Step S101, from the unpaired message of acquisition for mobile terminal mobile terminal Yu at least one bluetooth equipment, and stores unpaired message.
Mobile terminal should have bluetooth module, and bluetooth equipment can be to have the electronic equipments such as the pedometer of bluetooth module, heart rate measuring instrument, electronic scale, Intelligent bracelet, air quality detector.After there is the radio reception device of bluetooth module and establish with mobile terminal and be connected, in step S101, so that it may from the unpaired message of acquisition for mobile terminal mobile terminal Yu at least one bluetooth equipment, and store unpaired message.
Wherein, unpaired message is the physical address generation of the physical address according to mobile terminal and at least one bluetooth equipment.Specifically, unpaired message can be generated by being installed in mobile terminal the application program for controlling bluetooth equipment.After mobile terminal is connected with the foundation of at least one bluetooth equipment by Bluetooth signal, mobile terminal obtains the physical address of at least one bluetooth equipment for controlling the application program of bluetooth equipment, then unpaired message is generated according to the physical address of mobile terminal with the physical address of at least one bluetooth equipment, make this mobile terminal and at least one bluetooth equipment complete pairing, and generate bluetooth equipment and be connected the unpaired message matched with the bluetooth of this mobile terminal.
Step S102, sets up with at least one bluetooth equipment and is connected.
In step s 102, the radio reception device with bluetooth module is connected with the foundation of at least one bluetooth equipment, in order to inquire about whether at least one bluetooth equipment includes more new data.Have bluetooth module radio reception device can by the way of automatic regular polling or monitoring the data of inquire-receive bluetooth equipment, bluetooth equipment is supplied to radio reception device by return program, in order to radio reception device judges whether this bluetooth equipment includes more new data.
Step S103, inquires about whether at least one bluetooth equipment includes more new data;The most then perform step S104.
After being connected with the foundation of at least one bluetooth equipment, in step s 103, inquire about whether at least one bluetooth equipment includes more new data.If inquiry obtains bluetooth equipment includes more new data, then perform step S104.
Step S104, whether inquiry bluetooth equipment mates with unpaired message;The most then perform step S105.
Obtain in the case of bluetooth equipment includes more new data, in step S104, also needing to inquire about whether bluetooth equipment mates with unpaired message in inquiry.There is the radio reception device of bluetooth module by mating with the Bluetooth configuration data obtained from bluetooth equipment from acquisition for mobile terminal the unpaired message that stores, if bluetooth equipment mates with unpaired message, illustrate that this bluetooth equipment is and the bluetooth equipment of mobile terminal pairing, the most then step S105 is performed, otherwise, Bluetooth data transfer is not carried out.
Step S105, obtains more new data, and more new data is uploaded to cloud server.
In the case of bluetooth equipment mates with unpaired message, in step S105, obtain more new data, and more new data is uploaded to cloud server, in order to user obtains the more new data of bluetooth equipment from cloud server.Owing to Bluetooth technology has the characteristic of low-power consumption, after obtaining more new data, radio reception device disconnects with bluetooth equipment, thus decreases the consumption of radio reception device and the electric energy of bluetooth equipment.
The data transmission method provided according to the present embodiment, set up with mobile terminal and be connected, unpaired message from acquisition for mobile terminal mobile terminal Yu at least one bluetooth equipment, and store unpaired message, then set up with at least one bluetooth equipment and be connected, inquire about whether at least one bluetooth equipment includes more new data, if inquiry obtains bluetooth equipment and includes more new data, then whether inquiry bluetooth equipment mates with unpaired message, in the case of bluetooth equipment mates with unpaired message, obtain more new data, and more new data is uploaded to cloud server.The technical scheme provided according to the present invention, the more new data of bluetooth equipment can be obtained conveniently by the radio reception device with bluetooth module, compared with obtaining more new data with prior art by WIFI mode, utilize Bluetooth technology to considerably reduce the consumption of the electric energy of electronic equipment during the data obtaining electronic equipment, optimize data transfer mode.
Fig. 2 shows the schematic flow sheet of the data transmission method embodiment two that the present invention provides, as in figure 2 it is shown, the method performs in the radio reception device side with bluetooth module, the method comprises the steps:
Step S200, the wireless signal launched by radio reception device, set up with mobile terminal and be connected.
In step s 200, there is the radio reception device of bluetooth module by its wireless signal launched, set up with mobile terminal and be connected.
Step S201, from the unpaired message of acquisition for mobile terminal mobile terminal Yu at least one bluetooth equipment, stores unpaired message, and unpaired message is uploaded to cloud server.
Wherein, unpaired message is the physical address generation of the physical address according to mobile terminal and at least one bluetooth equipment.In step s 201, unpaired message from acquisition for mobile terminal mobile terminal Yu at least one bluetooth equipment, not only unpaired message is stored in radio reception device, also unpaired message is uploaded to cloud server, in order to directly obtain unpaired message later from cloud server.
Step S202, the Bluetooth signal launched by radio reception device, set up with at least one bluetooth equipment and be connected.
In step S202, there is the radio reception device of bluetooth module by its Bluetooth signal launched, set up with at least one bluetooth equipment and be connected, in order to inquire about whether at least one bluetooth equipment includes more new data.
Step S203, whether the generation time inquiring about the data at least one bluetooth equipment by the way of automatic regular polling or monitoring corresponding change;The most then perform step S204.
After being connected with the foundation of at least one bluetooth equipment, in step S203, whether the generation time inquiring about the data at least one bluetooth equipment by the way of automatic regular polling or monitoring corresponding changes, wherein, those skilled in the art can arrange the time interval of automatic regular polling according to actual needs, does not limits.If the generation time that inquiry obtains the data in bluetooth equipment corresponding there occurs change, illustrate that the data in bluetooth equipment there occurs change, i.e. bluetooth equipment includes more new data, then perform step S204.
Step S204, whether inquiry bluetooth equipment mates with unpaired message;The most then perform step S205.
Obtain after generation time corresponding to data in bluetooth equipment there occurs change, in step S204, also needing to inquire about whether bluetooth equipment mates with unpaired message in inquiry.If bluetooth equipment mates with unpaired message, illustrate that this bluetooth equipment is and the bluetooth equipment of mobile terminal pairing, the most then performs step S205.
Step S205, actively extracts more new data from bluetooth equipment, and more new data is uploaded to cloud server.
In the case of bluetooth equipment mates with unpaired message, in step S205, actively extract more new data from bluetooth equipment, and more new data is uploaded to cloud server, in order to user obtains the more new data of bluetooth equipment from cloud server.After obtaining more new data, radio reception device can quickly disconnect with bluetooth equipment, thus decreases the consumption of radio reception device and the electric energy of bluetooth equipment.
The data transmission method provided according to the present embodiment, whether the generation time inquiring about the data at least one bluetooth equipment by the way of automatic regular polling or monitoring corresponding changes, to judge whether bluetooth equipment includes more new data, if the generation time that inquiry obtains the data in bluetooth equipment corresponding there occurs change, then whether inquiry bluetooth equipment mates with unpaired message, in the case of bluetooth equipment mates with unpaired message, actively extract more new data from bluetooth equipment, and more new data is uploaded to cloud server.
The technical scheme provided according to the present invention, the more new data of bluetooth equipment is obtained conveniently by the radio reception device with bluetooth module, compared with obtaining more new data with prior art by WIFI mode, utilize Bluetooth technology to considerably reduce the consumption of the electric energy of electronic equipment during the data obtaining electronic equipment, optimize data transfer mode.
Fig. 3 shows the schematic flow sheet of the data transmission method embodiment three that the present invention provides, as it is shown on figure 3, the method performs in the radio reception device side with bluetooth module, the method comprises the steps:
Step S300, the wireless signal launched by radio reception device, set up with mobile terminal and be connected.
Step S301, from the unpaired message of acquisition for mobile terminal mobile terminal Yu at least one bluetooth equipment, stores unpaired message, and unpaired message is uploaded to cloud server.
In step S301, not only unpaired message is stored in radio reception device, also unpaired message is uploaded to cloud server, in order to directly obtain unpaired message later from cloud server.
Step S302, the Bluetooth signal launched by radio reception device, set up with at least one bluetooth equipment and be connected.
In step s 302, there is the radio reception device of bluetooth module by its Bluetooth signal launched, set up with at least one bluetooth equipment and be connected, in order to inquire about whether at least one bluetooth equipment includes more new data.
Step S303, whether trigger data updates flag bit to inquire about at least one bluetooth equipment;The most then perform step S304.
After including more new data in bluetooth equipment, bluetooth equipment trigger himself data update flag bit, such as, the program by following:
In the uint8advertData_Ex [] program of this example, advertData_Ex [9]==0xFF, representative has data to update, radio reception device judges to show that this bluetooth equipment has the blue-teeth data of renewal, make radio reception device by inquiring about whether at least one bluetooth equipment triggers data renewal flag bit, so that it may to learn whether bluetooth equipment includes more new data easily.If inquiry obtains bluetooth equipment triggers data renewal flag bit, then illustrate that this bluetooth equipment includes more new data, then perform step S304.
Step S304, whether inquiry bluetooth equipment mates with unpaired message;The most then perform step S305.
Obtain bluetooth equipment in inquiry to trigger data and update after flag bit, in step s 304, also need to inquire about whether bluetooth equipment mates with unpaired message.If bluetooth equipment mates with unpaired message, illustrate that this bluetooth equipment is and the bluetooth equipment of mobile terminal pairing, the most then performs step S305.
Step S305, receives the more new data that bluetooth equipment is uploaded, and more new data is uploaded to cloud server.
In the case of bluetooth equipment mates with unpaired message, in step S305, receive the more new data that bluetooth equipment is uploaded, and more new data is uploaded to cloud server, in order to user obtains the more new data of bluetooth equipment from cloud server.After obtaining more new data, radio reception device can quickly disconnect with bluetooth equipment, thus decreases the consumption of radio reception device and the electric energy of bluetooth equipment.
The data transmission method provided according to the present embodiment, whether trigger data updates flag bit to inquire about at least one bluetooth equipment, to judge whether bluetooth equipment includes more new data, if inquiry obtains inquiring about bluetooth equipment triggers data renewal flag bit, then whether inquiry bluetooth equipment mates with unpaired message, in the case of bluetooth equipment mates with unpaired message, receive the more new data that bluetooth equipment is uploaded, and more new data is uploaded to cloud server.The technical scheme provided according to the present invention, the more new data of bluetooth equipment is obtained conveniently by the radio reception device with bluetooth module, compared with obtaining more new data with prior art by WIFI mode, utilize Bluetooth technology to considerably reduce the consumption of the electric energy of electronic equipment during the data obtaining electronic equipment, optimize data transfer mode.
Fig. 4 shows the functional block diagram of the data transmission device embodiment that the present invention provides, as shown in Figure 4, this data transmission device is applied in radio reception device, including: first link block the 410, first acquisition module the 420, second link block 430, enquiry module 440, matching module the 450, second acquisition module 460 and upper transmission module 470.
First link block 410 is suitable to: sets up with mobile terminal and is connected.
Wherein, radio reception device can be the router with bluetooth module, and mobile terminal can be the mobile terminal such as smart mobile phone, PAD.
Such as, the first link block 410 is suitable to the wireless signal launched by radio reception device, sets up with mobile terminal and is connected.
First acquisition module 420 is suitable to: from the unpaired message of acquisition for mobile terminal mobile terminal Yu at least one bluetooth equipment, and store unpaired message.
Wherein, mobile terminal should have bluetooth module, and bluetooth equipment can be to have the electronic equipments such as the pedometer of bluetooth module, heart rate measuring instrument, scale, Intelligent bracelet, air quality detector.Unpaired message is the physical address generation of the physical address according to mobile terminal and at least one bluetooth equipment.Specifically, configuration information can be generated by being installed in mobile terminal the application program for controlling bluetooth equipment.After mobile terminal is connected with the foundation of at least one bluetooth equipment by Bluetooth signal, mobile terminal obtains the physical address of at least one bluetooth equipment for controlling the application program of bluetooth equipment, then unpaired message is generated according to the physical address of mobile terminal with the physical address of at least one bluetooth equipment so that this mobile terminal and at least one bluetooth equipment complete pairing.
Second link block 430 is suitable to: sets up with at least one bluetooth equipment and is connected.
Such as, the second link block 430 is suitable to the Bluetooth signal launched by radio reception device, sets up with at least one bluetooth equipment and is connected.
Enquiry module 440 is suitable to: inquire about whether at least one bluetooth equipment includes more new data.
Specifically, enquiry module 440 is further adapted for: inquire about by the way of automatic regular polling or monitoring whether generation time corresponding to the data at least one bluetooth equipment changes or inquire about at least one bluetooth equipment whether trigger data and update flag bit.If the generation time that enquiry module 440 inquiry obtains the data in bluetooth equipment corresponding there occurs change, illustrate that the data in bluetooth equipment there occurs change, i.e. bluetooth equipment includes more new data.Or, after including more new data in bluetooth equipment, bluetooth equipment triggers the data of himself and updates flag bit, and enquiry module 440 is by inquiring about whether at least one bluetooth equipment triggers data renewal flag bit, so that it may learn whether bluetooth equipment includes more new data easily.
Matching module 450 is suitable to: if inquiry obtains bluetooth equipment and includes more new data, then mated with unpaired message by bluetooth equipment.
Obtaining in the case of bluetooth equipment includes more new data in enquiry module 440 inquiry, bluetooth equipment is mated by matching module 450 with unpaired message, thus judges the bluetooth equipment that whether bluetooth equipment is and mobile terminal matches.
Second acquisition module 460 is suitable to: if bluetooth equipment mates with unpaired message, then obtain more new data.
Wherein, the second acquisition module 460 is further adapted for: actively extracts more new data from bluetooth equipment or receives the more new data that bluetooth equipment is uploaded.
Upper transmission module 470 is suitable to: the more new data that the second acquisition module 460 obtains is uploaded to cloud server.
After the second acquisition module 460 obtains more new data, more new data is uploaded to cloud server by upper transmission module 470, in order to user obtains the more new data of bluetooth equipment from cloud server.
It addition, upper transmission module 470 is also adapted for: the unpaired message that the first acquisition module 420 obtains is uploaded to cloud server, in order to radio reception device directly obtains unpaired message from cloud server.
The data transmission device provided according to the present embodiment, it is connected with mobile terminal foundation by the first link block, by the first acquisition module from the unpaired message of acquisition for mobile terminal mobile terminal Yu at least one bluetooth equipment, and store unpaired message, then pass through the second link block to be connected with the foundation of at least one bluetooth equipment, inquire about whether at least one bluetooth equipment includes more new data by enquiry module, if inquiry obtains bluetooth equipment and includes more new data, then by matching module, bluetooth equipment is mated with unpaired message, in the case of bluetooth equipment mates with unpaired message, more new data is obtained by the second acquisition module, finally by upper transmission module, more new data is uploaded to cloud server.The technical scheme provided according to the present invention, the more new data of bluetooth equipment can be obtained conveniently by the radio reception device with bluetooth module, compared with obtaining more new data with prior art by WIFI mode, utilize Bluetooth technology to considerably reduce the consumption of the electric energy of electronic equipment during the data obtaining electronic equipment, optimize data transfer mode.And the present invention is by the way of Bluetooth wireless transmission, bluetooth equipment is connected with the radio reception device with bluetooth module by the way of Bluetooth wireless communication, the Bluetooth data transfer making bluetooth equipment transmits to cloud server to this radio reception device, it is easy to be connected to the data of the acquisition for mobile terminal bluetooth equipment of cloud server, the mobile terminal connecting bluetooth equipment avoiding prior art obtains the restriction of blue-teeth data, even if making mobile terminal can also obtain the data of bluetooth equipment at far-end, achieve mobile terminal to separate with the region that uses of bluetooth equipment, make mobile terminal the most limited by regions with the use of bluetooth equipment.
Fig. 5 shows the functional block diagram of the data transmission system embodiment that the present invention provides, as it is shown in figure 5, this system includes: radio reception device 510, mobile terminal 520, at least one bluetooth equipment 530 and cloud server 540.
Wherein, radio reception device 510 includes above-mentioned data transmission device (not shown).During mobile terminal 520 matches with at least one bluetooth equipment 530, mobile terminal 520 is connected with at least one bluetooth equipment 530 by Bluetooth signal.During obtaining the mobile terminal 520 unpaired message with at least one bluetooth equipment 530, radio reception device 510 is connected with mobile terminal 520 by wireless signal.During obtaining more new data from least one bluetooth equipment 530, radio reception device 510 is connected with at least one bluetooth equipment 530 by Bluetooth signal.The more new data obtained is uploaded in cloud server 540 by radio reception device 510.
It addition, the relevant information of more new data also can be pushed to mobile terminal 520 by cloud server 540, in order to the user of prompting mobile terminal 520 side checks more new data in time.
Thus, the invention enables the mobile terminal of user in the case of being not connected to bluetooth equipment, cloud server can also be connected to and obtain the data of bluetooth equipment, the use of the use and mobile terminal that achieve bluetooth equipment separates, make the use of bluetooth equipment the most flexibly and conveniently, such as, if the bluetooth hands ring of bluetooth equipment rhythm of the heart, bluetooth bracelet can be worn on old man and child, and use the mobile terminal can be with long distance monitoring with obtain old man and the heart rate data of child, after bluetooth equipment is connected with mobile terminal, the data of bluetooth equipment could be obtained, greatly facilitate long distance monitoring and the health concerns of household is nursed.
Described above illustrate and describes some preferred embodiments of the application, but as previously mentioned, it is to be understood that the application is not limited to form disclosed herein, it is not to be taken as the eliminating to other embodiments, and can be used for other combinations various, amendment and environment, and can be modified by above-mentioned teaching or the technology of association area or knowledge in invention contemplated scope described herein.And the change that those skilled in the art are carried out and change are without departing from spirit and scope, the most all should be in the protection domain of the application claims.