Summary of the invention
Technical problem to be solved by this invention is, how by the communication between wireless routing device management bluetooth equipment.
For this purpose, the present invention proposes a kind of wireless routing device, comprise processor, be connected to the network connecting module of described processor, described network connecting module comprises wireless network module and network adaptation module, described network adaptation module is connected to internet, described wireless network module reception bluetooth master and at least one Bluetooth slave devices set up the match information that Bluetooth communication is connected, and also comprise:
Bluetooth module, is connected to described processor, carries out Bluetooth communication by Bluetooth signal and Bluetooth slave devices;
Described processor controls described bluetooth module according to the match information that network connecting module receives and Bluetooth slave devices carries out Bluetooth communication.
Preferably, also comprise:
Memory, is connected to described processor, for storing described match information.
Preferably, described memory stores at least one outside bluetooth master by allocation list and a Bluetooth slave devices set up at least one pair of match information that Bluetooth communication is connected,
Wherein, described match information comprises the facility information of described Bluetooth slave devices and sets up the unpaired message of Bluetooth communication, the MAC Address of Bluetooth slave devices and UUID, and described unpaired message comprises Bluetooth pairing key, Bluetooth pairing password and/or PIN code.
Preferably, described processor comprises:
Poller module, calls each match information, by each Bluetooth slave devices corresponding to match information described in described bluetooth module poll to set up Bluetooth communication.
Preferably, described poller module also for receiving the response message of the Bluetooth slave devices be polled to,
Described processor also comprises:
Judge module, judges the response message of each Bluetooth slave devices of poller module poll, with the Bluetooth communication making processor control bluetooth module and each Bluetooth slave devices;
Monitor module, for monitoring the Bluetooth communication request of Bluetooth slave devices, and according to the match information that this Bluetooth communication requesting query memory stores, set up Bluetooth communication according to the match information inquired and Bluetooth slave devices and be connected.
Preferably, described judge module also completes the reading to data in Bluetooth slave devices for judging whether,
If do not complete, then continue to read;
If complete, then issue the instruction disconnecting bluetooth and connect according to the match information of described Bluetooth slave devices, and according to other Bluetooth slave devices of match information poll.
Preferably, described wireless network module comprises Wi-Fi module, Zigbee module and/or Wi-MAX module.
The invention allows for a kind of wireless routing system for bluetooth data communication, comprising:
Above-mentioned wireless routing device;
At least one bluetooth master and a Bluetooth slave devices, described wireless routing device carries out bluetooth data communication according to the match information of described bluetooth master by described bluetooth module and described bluetooth equipment.
The invention allows for a kind of communication means based on above-mentioned wireless routing device, comprising:
S1: network connecting module communicates with bluetooth master, obtains the match information of described bluetooth master;
S2: processor controls bluetooth module according to described match information and carries out Bluetooth communication with outside Bluetooth slave devices.
Preferably, described step S2 also comprises:
Processor calls the match information in described memory, by Bluetooth slave devices corresponding to match information described in described bluetooth module poll to set up Bluetooth communication.
Preferably, described step S2 also comprises:
According to judging that the response message of Bluetooth slave devices judges whether have Data Update in Bluetooth slave devices, if so, controlling bluetooth module and setting up Bluetooth communication; If not, poll is to next Bluetooth slave devices.
Preferably, described step S2 also comprises:
Monitor the response message of the broadcast of Bluetooth slave devices;
Judge the blue-teeth data lastest imformation whether existed in response message, if so, enter next step, otherwise, continue to monitor;
Call match information to set up Bluetooth communication with the Bluetooth slave devices listened to and be connected, and blue-teeth data transmitting;
Judge whether to transfer blue-teeth data, if so, continue to monitor, otherwise, continue transmission.
According to technique scheme, data communication between multiple Bluetooth slave devices and bluetooth master can be managed by wireless routing device, and the data obtained in multiple Bluetooth slave devices, and then send data to bluetooth master, achieve multiple from the Bluetooth communication between equipment and bluetooth master, reduce the difficulty that multiple Bluetooth slave devices and bluetooth master carry out Bluetooth communication, ensure that data in each Bluetooth slave devices can both normal transmission to bluetooth master.
Embodiment
In order to more clearly understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.It should be noted that, when not conflicting, the feature in the embodiment of the application and embodiment can combine mutually.
Set forth a lot of detail in the following description so that fully understand the present invention; but; the present invention can also adopt other to be different from other modes described here and implement, and therefore, protection scope of the present invention is not by the restriction of following public specific embodiment.
As shown in Figure 1, wireless routing device 10 according to an embodiment of the invention, comprise: comprise processor 11, be connected to the network connecting module 12 of processor 11, network connecting module 12 comprises wireless network module 121 and network adaptation module 122, network adaptation module 122 is connected to internet, and wireless network module 121 receives bluetooth master 20 and at least one Bluetooth slave devices 30 and sets up the match information that Bluetooth communication is connected.In a particular embodiment, wireless network module comprises wireless local area network module and mobile communication network module, wherein, wireless local area network module can comprise Wi-Fi, Wi-MAX wireless network module, and mobile communication network module can comprise 3G, 4G, 5G mobile communication network module.
Wireless routing device 10 of the present invention also comprises the power management module and USB control circuit that are connected to processor respectively.In a particular embodiment, the power management module DC power supply that receives outside power supply adaptor conversion is to be supplied to the working power of wireless routing device 10 and to be supplied to USB control circuit and to provide the power supply of 2V/1A to export with the USB interface by being connected to USB control circuit.Therefore, wireless routing device of the present invention also can realize the storage administration of the data of the portable hard drive connected by the portable hard drive of the USB interface connecting band USB interface of USB control circuit.
Wireless routing device 10 of the present invention also comprises:
Bluetooth module 13, is connected to processor 11, carries out Bluetooth communication by Bluetooth signal and Bluetooth slave devices 30;
Processor 11 controls bluetooth module 13 according to the match information that network connecting module 12 receives and carries out Bluetooth communication with outside Bluetooth slave devices 30.
The present embodiment by placement processor 11 and bluetooth module 13 in wireless routing device 10, thus can control bluetooth module 13 by processor 11 and manages the multiple Bluetooth slave devices 30 matched with bluetooth master 20.
Such as shown in Fig. 2, by the bluetooth module 13 in wireless routing device 10 to multiple Bluetooth slave devices 30 poll, to set up Bluetooth communication with Bluetooth slave devices 30, and then the data obtained in each Bluetooth slave devices 30, then by bluetooth module 13 by the transfer of data that gets to bluetooth master 20, or by network connecting module 12 by the data that get by internet transmission to server, to make bluetooth master 20 can by the Internet Remote Acquisitioning to the data in Bluetooth slave devices 30.Thus achieve bluetooth master 20 and obtain data in multiple Bluetooth slave devices 30, and ensure that the data in multiple Bluetooth slave devices 30 can transfer to bluetooth master 20 well.
Preferably, wireless routing device 10 of the present invention also comprises:
Memory 14, is connected to processor 11, for storing match information.
Preferably, memory 14 bluetooth master 20 that stored at least one outside by allocation list and a Bluetooth slave devices 30 set up at least one pair of match information that Bluetooth communication is connected.Bluetooth can be set up from multiple different Bluetooth slave devices 30 due to bluetooth master 20 connect and store the different match information set up bluetooth and connect respectively.Therefore, the match information that this bluetooth equipment 20 is different with many groups that set up between each Bluetooth slave devices 30 of multiple different Bluetooth slave devices 30 that Bluetooth communication connects respectively can be stored in a bluetooth master 20.
Wherein, match information comprises the facility information of Bluetooth slave devices 30 and sets up the unpaired message of Bluetooth communication, the MAC Address of Bluetooth slave devices and UUID, and described unpaired message comprises Bluetooth pairing key, Bluetooth pairing password and/or PIN code.In a particular embodiment, bluetooth master 20 comprises the mobile communication equipment of band Bluetooth function, the panel computer etc. of band Bluetooth function, and described Bluetooth slave devices comprises wearing type electronic equipment such as Bluetooth electronic bracelet, the bluetooth air monitor etc. of band Bluetooth function.
Match information is except comprising MAC Address, UUID (the Full Name in English UniversallyUniqueIdentifier of Bluetooth slave devices 30, Chinese: general unique identifier) outside address, also comprise bluetooth master 20 and Bluetooth slave devices 30 and set up the unpaired message that bluetooth when Bluetooth communication is connected connects for the first time, such as Bluetooth pairing key, Bluetooth pairing password, PIN code etc.
It will be understood by those of skill in the art that memory 14 of the present invention also can be integrated in processor, such as ROM memory, also can be the memory device that independent setting is connected to processor, such as flash storage.
After wireless routing device 10 and bluetooth master 20 are connected by network connecting module 12, wireless routing device 10 obtains the match information between that bluetooth master 20 stores and Bluetooth slave devices 30 and is stored in the memory 14 of wireless routing device 10.In a particular embodiment, match information can also be stored to the server of network, and by wireless routing device 10 of the present invention from server obtain or call match information.
Further, processor 11 of the present invention can also comprise Bluetooth information module, when wireless routing device of the present invention is connected with bluetooth master, Bluetooth information module detects and obtains the match information of to carry out the legal bluetooth master 20 be connected with wireless routing device 10 and connecting Bluetooth slave devices 30, and judge whether the match information whether this match information stores with memory 14 repeats, if the match information repeated then does not store, if not the match information repeated, then the match information of this acquisition is stored to memory 14.
Those skilled in the art is to be understood that, also can by this Bluetooth information module installation in bluetooth master 20, after bluetooth master 20 and wireless routing device 10 connect, the match information of storage is transferred to wireless routing device 10 by the Bluetooth information module of bluetooth master 20, with in like manner aforesaid, after judged whether the situation that the match information stored with memory 14 repeats by wireless routing device 10, then store accordingly.
As shown in Figure 3, wireless routing device 10 also comprises the power module 15 be connected with processor 11, for being worked required working power by the mains supply of outside conversion wireless routing device 10, and is supplied to wireless routing device 10 and uses.
It will be understood by those of skill in the art that power module 15 can also arrange independently rechargeable battery energy module, thus when wireless routing device 10 is not connected to outside mains supply, also can provide electric energy for wireless routing device 10.
The network connecting module 12 be connected with processor 11 comprises wireless network module 121 and network adaptation module 122, wireless network module 121 comprises Wi-Fi module, Zigbee module, Wi-MAX module, mobile communication module, and being connected to exterior antenna, network adaptation module 122 can adopt RJ45 interface.Wireless routing device 10 can be connected to the Internet or system for cloud computing by network adaptation module 122, to realize network data communication.
After wireless network module 121 connects bluetooth master 20, Bluetooth information module in processor 11 obtains bluetooth master 20 that bluetooth master 20 stores and the match information set up Bluetooth communication between Bluetooth slave devices 30 and be connected, and the match information of the match information of acquisition and storage is carried out contrast judge whether repetition, in unduplicated situation, the new match information obtained is stored.
Preferably, processor 11 comprises:
Poller module 111, calls each match information, by each Bluetooth slave devices 30 corresponding to bluetooth module 13 poll match information to set up Bluetooth communication.In a particular embodiment, task list can be set up at processor 11, come to call each match information in an orderly manner one by one by the mode of task list and carry out poll to set up Bluetooth communication according to each match information by the Bluetooth slave devices that bluetooth module 13 is corresponding to each match information.
Processor 11 also comprises:
Judge module 112, judge the response message of each Bluetooth slave devices 30 of poller module 111 poll, with the Bluetooth communication making processor 11 control bluetooth module 13 and each Bluetooth slave devices, wherein, response message comprises the blue-teeth data lastest imformation or abnormal state information etc. of Bluetooth slave devices.In specific embodiment, judge module 112 judges the response message of each Bluetooth slave devices 30 of poll, if the Bluetooth slave devices of this poll 30 without any response message, processor 11 controls bluetooth module 13 and sets up bluetooth according to match information with this Bluetooth slave devices 30 to be connected, initiatively read the blue-teeth data of this Bluetooth slave devices, thus, can avoid omitting the reading to the blue-teeth data of arbitrary Bluetooth slave devices and renewal.
Monitor module 113, for monitoring the response message of the broadcast of Bluetooth slave devices 30, judge whether it is the Bluetooth communication request that blue-teeth data upgrades by this response message, and according to the match information that this Bluetooth communication requesting query memory 14 stores, set up Bluetooth communication according to the match information inquired with Bluetooth slave devices 30 and be connected.
Preferably, judge module 112 also completes the reading to data in Bluetooth slave devices 30 for judging whether,
If do not complete, then continue to read;
If complete, then issue the instruction disconnecting bluetooth and connect according to the match information of Bluetooth slave devices 30, and according to other Bluetooth slave devices 30 of match information poll.
When wireless routing device 10 by bluetooth module 13 and outside multiple Bluetooth slave devices 30 set up bluetooth be connected carry out Bluetooth communication time, processor 11 can call the match information in the allocation list of memory 14, poller module 111 sends poll instruction to bluetooth module 13, with the Bluetooth slave devices making each match information of bluetooth module 13 poll corresponding, thus realize the Control on Communication between multiple bluetooth equipment and management.
Preferably, wireless network module 121 comprises Wi-Fi module, Zigbee module and/or Wi-MAX module.
As shown in Figure 4, the invention allows for a kind of wireless routing system 100 for bluetooth data communication, comprising:
Above-mentioned wireless routing device 10;
At least one bluetooth master 20 and a Bluetooth slave devices 30, wireless routing device 10 carries out bluetooth data communication according to the match information of, bluetooth master 20 by bluetooth module 13 and Bluetooth slave devices 30.
As shown in Figure 5, wireless routing device 10 and outside multiple bluetooth equipments 20,30 can be connected to form the wireless routing system 100 based on wireless routing device 10 of the present invention.This wireless routing system 100 can be connected to the webserver 50 of the Internet by network connecting module 12, realize network data communication or system for cloud computing communication.
Such as, Bluetooth slave devices 30 can be the Worn type bluetooth equipment be worn in wrist, also can be the air-conditioning of household electrical appliances bluetooth equipment such as with Bluetooth function, refrigerator or washing machine etc.Bluetooth equipment 30 can be set up Bluetooth communication with bluetooth master 20 and be connected, and bluetooth master 20 can possess other electronic equipments of bluetooth master function for the panel computer etc. of the mobile phone of band Bluetooth function, band Bluetooth function.Bluetooth master 10 is by being connected with the Bluetooth communication set up between bluetooth equipment 30, and then control bluetooth equipment 20,30 can be operated, after connecting between bluetooth master 10 and bluetooth equipment 30, bluetooth master 10 can store and each Bluetooth slave devices 30 match information.As front, the match information stored comprises outside facility information such as MAC Address, the UUID address of Bluetooth slave devices, also comprises Bluetooth slave devices and connects unpaired message such as Bluetooth pairing key, Bluetooth pairing password etc. with the bluetooth master bluetooth set up for the first time when Bluetooth communication is connected.
As shown in Figure 6, the invention allows for a kind of communication means based on above-mentioned wireless routing device, comprising:
S1: network connecting module communicates with bluetooth master, obtains the match information of bluetooth master;
S2: processor controls bluetooth module according to match information and carries out Bluetooth communication with outside Bluetooth slave devices.
Preferably, step S2 also comprises:
Processor calls the match information in memory, by each Bluetooth slave devices corresponding to bluetooth module poll match information to set up Bluetooth communication.
Preferably, step S2 also comprises:
According to judging that the response message of Bluetooth slave devices judges whether have Data Update in Bluetooth slave devices, if so, controlling bluetooth module and setting up Bluetooth communication; If not, poll is to next Bluetooth slave devices.
Preferably, step S2 also comprises:
Listen the response message of the broadcast of Bluetooth slave devices;
Judge the blue-teeth data lastest imformation whether existed in response message, if so, enter next step, otherwise, continue to monitor;
Call match information to set up Bluetooth communication with the Bluetooth slave devices listened to and be connected, and blue-teeth data transmitting;
Judge whether to transfer blue-teeth data, if so, continue to monitor, otherwise, continue transmission.
Wherein, wireless routing device polling Bluetooth from the flow process of equipment as shown in Figure 7, comprising:
A1: call the match information in the allocation list of Bluetooth information module, sends poll instruction poll to bluetooth equipment corresponding to bluetooth module poll match information;
A2: the Bluetooth communication controlled between the bluetooth module foundation bluetooth equipment corresponding with match information connects;
A3: the blue-teeth data receiving transmission;
A4: judge whether Bluetooth data transfer is transmitted, and if so, enters next step, if not, continues steps A 3;
A5: disconnect Bluetooth communication and connect, sends next step bluetooth equipment of poll instructions query;
A6: judge whether to receive the signal terminating Bluetooth communication, if so, enter next step, if not, progressive steps A 2;
Terminate.
The control bluetooth module of above-mentioned steps A 2 is set up and is connected with the Bluetooth communication between bluetooth equipment, comprises the steps:
A21: control bluetooth module and send bluetooth equipment corresponding to poll instructions query match information;
A22: send paging instructions paging polling procedure;
A23: judge whether the response message receiving paging, if so, enter next step, if not, enters steps A 8;
A24: judge whether it is the response message of Data Update, if so, sets up bluetooth data communication and connects, if not, enter steps A 3;
As shown in Figure 8, the bluetooth data communication of setting up in above-mentioned steps A 24 connects, and also comprises the steps:
A241: judge whether to receive Bluetooth communication connection request, if so, enter next step, if not, enters steps A 243;
A242: the Bluetooth communication connection request receiving bluetooth equipment, enters steps A 3;
A243: control bluetooth module and send Bluetooth communication link order connection bluetooth equipment;
A244: control bluetooth module and send the blue-teeth data that blue-teeth data reading command reads bluetooth equipment.
More than be described with reference to the accompanying drawings technical scheme of the present invention, consider in prior art, when the multiple Bluetooth slave devices of needs is connected with bluetooth master, there will be the situation can not carrying out Bluetooth communication, part bluetooth equipment is caused not use, or, need to carry out Bluetooth communication connection by user's manual operation.By technical scheme of the present invention, multiple Bluetooth slave devices can be managed by wireless routing device, and the data obtained in multiple Bluetooth slave devices, and then send data to bluetooth master, thus achieve multiple from the Bluetooth communication between equipment and bluetooth master, reduce the difficulty that multiple Bluetooth slave devices and bluetooth master carry out Bluetooth communication, ensure that data in each Bluetooth slave devices can both normal transmission to bluetooth master.
In the present invention, term " multiple " refers to two or more, unless otherwise clear and definite restriction.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.