Summary of the invention
The purpose of technical scheme of the present invention provides a kind of apparatus and method that connect bluetooth equipment and IGRS's equipment, adopts said apparatus and method, can bluetooth equipment directly be inserted in IGRS's home network and use, and makes IGRS's equipment can visit and operate bluetooth equipment.
For achieving the above object, one aspect of the present invention provides a kind of device that is used for connecting bluetooth equipment and IGRS's equipment, and said device comprises: bluetooth module is used to search for bluetooth equipment, and obtains the information on services that searches each bluetooth equipment; Description list creating module is used for generating service description information according to said information on services, and said service description information is write a bluetooth equipment description list; The description document generation module is used for the said service description information that said bluetooth equipment description list writes down is converted into the IGRS's description document that meets IGRS protocol; IGRS's message processing module is used to receive the request signal of IGRS's equipment, according to said IGRS description document response described request signal.
Preferably, above-mentioned described device, said IGRS message processing module receives the wherein search request signal of IGRS's equipment of IGRS's network, and the said IGRS description document that will meet said search request signal is sent to said wherein IGRS's equipment.
Preferably; Above-mentioned described device; Said IGRS message processing module also receives said wherein IGRS's device service control request signal; Be sent to said bluetooth module after said service control request signal is converted into the service control signal that meets Bluetooth protocol, said service control signal be sent to the appointment bluetooth equipment of said service control request signal through said bluetooth module.
Preferably; Above-mentioned described device; Said description document generation module is according to said search request signal; From said bluetooth equipment description list, search the said service description information that obtains to meet said search request signal, the said service description information of searching acquisition is converted into the said IGRS description document that meets IGRS protocol.
Preferably; Above-mentioned described device; After said bluetooth module is sent to said appointment bluetooth equipment with said service control signal; Said bluetooth module also is used to receive the action of said appointment bluetooth equipment feedback and accomplishes instruction, and said action accomplished is sent to said IGRS message processing module after instruction is converted into the action completion information that meets IGRS protocol.
Preferably, above-mentioned described device, said IGRS message processing module also are used for said action completion information is sent to said wherein IGRS's equipment.
Preferably, above-mentioned described device, said service description information comprise the trade name of said each bluetooth equipment, general unique identifier, service handle.
Preferably, above-mentioned described device also comprises a description list memory module, is used to store said bluetooth equipment description list.
Preferably, above-mentioned described device directly is arranged on the household equipment, and said household equipment carries out interoperability through said device and other equipment.
Preferably, above-mentioned described device, said bluetooth module also are used to receive in the transmission range of said bluetooth module the wherein search request signal of a bluetooth equipment, and the said information on services of said household equipment itself is sent to a said wherein bluetooth equipment.
Preferably; Above-mentioned described device; Said IGRS message processing module also is used for sending said service request signal to wherein another IGRS's equipment of said IGRS network; And when receiving the said service request signal of said wherein another IGRS's equipment transmission; Said IGRS message processing module is used to also judge whether said household equipment itself meets said service request signal, if judged result is for being, then simultaneously the said service description information of said household equipment itself is sent to said wherein another IGRS's equipment.
The present invention also provides a kind of method that is used for connecting bluetooth equipment and IGRS's equipment on the other hand, and said method comprises: search for all bluetooth equipments in the Bluetooth transmission scope, and obtain the information on services of each bluetooth equipment that searches; Said information on services according to said each bluetooth equipment generates service description information, and said service description information is write a bluetooth equipment description list; Receive the wherein request signal of IGRS's equipment of IGRS's network; The said service description information that meets the described request signal in the said bluetooth equipment description list is converted into the IGRS's description document that meets IGRS protocol, according to said IGRS description document response described request signal.
Preferably; Above-mentioned described method; Receive the request signal of IGRS's equipment; The said service description information that will meet the described request signal is converted into the IGRS's description document that meets IGRS protocol; And comprise: judge that the described request signal is that search request signal is still served the control request signal,, then said IGRS description document is sent to said wherein IGRS's equipment if be judged as said search request signal according to the step of said IGRS description document response described request signal; If be judged as said service control request signal, then said service control request signal is converted into the appointment bluetooth equipment that is sent to said service control request signal after the service control signal that meets Bluetooth protocol.
Preferably, above-mentioned described method, after said service control signal was sent to said appointment bluetooth equipment step, said appointment bluetooth equipment accomplishes assigned operation and feedback action is accomplished instruction to said wherein IGRS's equipment.
In the technique scheme at least one has following beneficial effect: the apparatus and method that adopt connection bluetooth equipment according to the invention and IGRS's equipment; Can search for all bluetooth equipments in the Bluetooth transmission scope; And the service description information of each bluetooth equipment of search is converted into the IGRS's description document that meets IGRS standard; Equipment search request that the IGRS's equipment in IGRS's network that can also receive sends or service control request; Obtain to meet the descriptor of the bluetooth equipment of request condition through searching the IGRS description document; Correspondingly send service control request signal to bluetooth equipment; Therefore said apparatus and method couple together bluetooth equipment and IGRS's equipment, and bluetooth equipment is added directly in IGRS's home network, make IGRS's equipment of operation IGRS protocol standard in the home network can search for and have access to bluetooth equipment.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing and specific embodiment to describe the present invention below.
The apparatus and method of the said connection bluetooth equipment of the specific embodiment of the invention and IGRS's equipment can be added into bluetooth equipment in IGRS's home network, make IGRS's equipment of operation IGRS protocol standard in the home network can search for and have access to bluetooth equipment.
Like Fig. 1 is the said apparatus structure sketch map that is used for connecting bluetooth equipment and IGRS's equipment of the specific embodiment of the invention.Said device can couple together blueteeth network and IGRS's network; Between this network, play function served as bridge; Has following function particularly: at first; Can find all bluetooth equipments in this bluetooth equipment transmission range as a bluetooth equipment, obtain the service description information of each bluetooth equipment of finding.Once more; Can be as IGRS's equipment; When receiving a wherein IGRS device service request signal of IGRS's home network; The service description information of each bluetooth equipment of obtain is converted into the IGRS's description that meets the IGRS standard form, offers the said wherein IGRS's equipment that sends service request signal, so that IGRS's equipment can be visited bluetooth equipment.
Consult Fig. 1, the said device that is used to connect bluetooth equipment and IGRS's equipment comprises: bluetooth module, description list creating module, description document generation module and IGRS's message processing module.Wherein:
Bluetooth module is used to search for all bluetooth equipments of the transmission range that is positioned at said bluetooth module, and obtains the information on services of each bluetooth equipment that searches;
Description list creating module is used for generating service description information according to said information on services, and said service description information is write a bluetooth equipment description list; The mode that wherein generates this service description information is the information on services with each bluetooth equipment of receive; Be converted into the service description information of nature descriptive language like the trade name of bluetooth equipment, the service name that provides, general unique identifier (UUID, Universal Unique IDentifier), service handle etc.;
The description document generation module is used for the standard according to IGRS protocol, and the service description information of the natural descriptive language that writes down in the said bluetooth equipment description list is converted into the IGRS's description document that meets IGRS protocol;
IGRS's message processing module is used to receive the request signal of IGRS's equipment, according to said IGRS description document response described request signal.Wherein this request signal is search request signal or service control request signal, and when this request signal was search request signal, the said IGRS description document that IGRS's message processing module will meet said search request signal was sent to said wherein IGRS's equipment; When this request signal is service control request signal; The bluetooth equipment information that IGRS's message processing module obtains according to search before; Said service control request signal is converted into the service control signal that meets Bluetooth protocol is sent to bluetooth module; To serve control signal through this bluetooth module and be sent to the specified bluetooth equipment of service control request signal, to control the action of this appointment bluetooth equipment.In addition; When this appointment bluetooth equipment is accomplished the assigned operation of said service control request signal; Automatically return instruction is to bluetooth module; This bluetooth module also is used to receive the action of this appointment bluetooth equipment feedback and accomplishes instruction, and will move to accomplish to instruct and be converted into the action completion information that meets IGRS protocol and be sent to IGRS's message processing module, is sent to the wherein IGRS's equipment of serving the control request signal that sends through this action completion information of this IGRS's message processing module.
In the specific embodiment of the invention, best, said device also comprises a description list memory module, is used to preserve said bluetooth equipment description list.
Adopt the said device that is used for connecting bluetooth equipment and IGRS's equipment of the specific embodiment of the invention; Can carry out the function of search of bluetooth equipment and the response function of IGRS's equipment; Consult Fig. 1, the solid arrow among the figure is that the flow process that device of the present invention is carried out the bluetooth equipment function of search is pointed to, and for the response function of IGRS's equipment; Said device is initiated the difference of service request type according to IGRS's equipment of IGRS's network; Make different response actions, the fine dotted line arrow shown in Fig. 1 is that the flow process of the device search request of said device response IGRS equipment is pointed to, and the thick dashed line arrow is that the flow process of said device response IGRS device service control request is pointed to.Below will the process that the said device of the specific embodiment of the invention is carried out bluetooth equipment function of search and IGRS's device responds function respectively be described in detail.
Fig. 2 is the schematic flow sheet that the described device of the specific embodiment of the invention is carried out the bluetooth equipment function of search.Consult Fig. 2, as the said device start of step S201, execution in step S202 at once.
At step S202; The search request signal of all these bluetooth modules of bluetooth equipment response in the said bluetooth module transmission range; Each bluetooth equipment is sent to this bluetooth module with information on services separately respectively, and wherein this information on services includes but not limited to the trade name of bluetooth equipment, the service name that provides, general unique identifier (UUID), service handle etc.
At step S203, this bluetooth module is sent to description list creating module with the information on services of each bluetooth equipment;
At step S204; This description list creating module generates service description information according to the information on services of each bluetooth equipment; And this service description information write the bluetooth equipment description list of description list memory module; The service description information of record bluetooth equipment in the bluetooth equipment description list; This service description information is with the trade name of each bluetooth equipment of natural language record, the service name that provides, general unique identifier (UUID), service handle etc., the information of each service description information respective record one bluetooth equipment.
Above-mentioned steps S202 carries out to step S204 in real time; Therefore after step S204 accomplishes; Flow process is returned execution in step S202; Receive the information on services of bluetooth equipment in real time, when the information on services of description list creating module acquisition changes, then upgrade content recorded in the bluetooth equipment description list.
Through the process of above step S201 to step S204; The said device that is used for connecting bluetooth equipment and IGRS's equipment of the specific embodiment of the invention; Search obtains the service description information of all bluetooth equipments in the blueteeth network; And be translated into the form that IGRS standard equipment can read and be saved in this device, and this device can also be according to the variation of bluetooth equipment in the blueteeth network, the service description information of real-time update bluetooth equipment.
Fig. 3 is the schematic flow sheet that the described device of the specific embodiment of the invention is carried out IGRS's device responds function.In IGRS's network; Other IGRS's equipment transmitting apparatus search request that wherein IGRS's equipment can be in being connected this IGRS's network; Receive that the IGRS's equipment that meets search criterion of request should search response to said wherein IGRS's equipment Returning equipment of initiating search request; The same described device of the specific embodiment of the invention can be used as a virtual IGRS equipment; Through said IGRS this equipment search request of message processing module response, the service description information that will meet the bluetooth equipment of search criterion feeds back to IGRS's equipment that this sends search request.
The process that said device is carried out IGRS's device responds function is to carry out simultaneously with the process of execution bluetooth equipment function of search shown in Figure 2, consults Fig. 3, and this device is carried out IGRS's device responds and begun from step S301.
At step S302, IGRS's message processing module of this device receives the service request signal of the wherein IGRS equipment transmission of IGRS's network;
At step S303, this IGRS's message processing module judges that said service request signal is that search request signal is still served the control request signal, if be judged as then execution in step S304 of search request signal, if be judged as then execution in step S306 of service control request signal;
At step S304; In the bluetooth equipment description list, search the service description information that meets search request signal through the description document generation module; And be converted into IGRS's description document through the service description information that the description document generation module will be searched acquisition, feed back to IGRS's message processing module;
At step S305, IGRS's message processing module is sent to said wherein IGRS's equipment with said IGRS description document, make this wherein IGRS's device learns can for this wherein IGRS's equipment the information of the bluetooth equipment of service is provided;
At step S306, this IGRS's message processing module is sent to said bluetooth module after said service control request signal is converted into the service control signal that meets Bluetooth protocol.
At step S307, this bluetooth module sends service order to the bluetooth equipment of this service control request signal appointment, controls this bluetooth equipment completion and operates accordingly with this service control request signal.
At step S308, bluetooth equipment is accomplished corresponding operation, and return action is accomplished instruction to said bluetooth module, is sent to IGRS's message processing module after through this bluetooth equipment this instruction being converted into the action completion information that meets IGRS protocol;
At step S309, the action completion information that this IGRS's message processing module feeds back to this bluetooth module is sent to the corresponding IGRS's equipment that sends service control request signal, notifies the complete operation action of the specified bluetooth equipment of this IGRS's equipment.
Step S310, the process of above-mentioned IGRS device responds is carried out and is finished.
Through the process of above step S301 to step S310; The said device that is used for connecting bluetooth equipment and IGRS's equipment of the specific embodiment of the invention; Can receive arbitrary IGRS device service request signal in IGRS's network; And respond this service request signal, realize of the operation of IGRS's equipment to bluetooth equipment.
In addition; The device that the specific embodiment of the invention is described to be used for connecting bluetooth equipment and IGRS's equipment can be arranged in the family use equipment; Like computer, phone, printer etc.; Other IGRS's equipment that can be used as IGRS's equipment and IGRS's network carry out interoperability, can be used as a bluetooth equipment and other bluetooth equipments carry out interoperability, more can make IGRS's device access and operation bluetooth equipment in addition.
Based on above-mentioned; When the said device of the specific embodiment of the invention is arranged at family use equipment; As a common Bluetooth equipment, the bluetooth module of said device also is used to receive the searching request of other bluetooth equipments, and the service description information of this device self is sent to other equipment; As a common IGRS equipment; IGRS's message processing module of this device also is used for sending service request signal to other IGRS's equipment of IGRS's network; And when receiving the service request signal of other IGRS's equipment transmissions; Said IGRS message processing module also is used for judging whether to meet said search request signal by use equipment itself, if judged result is for being then to use device service information to be sent to said another IGRS's equipment simultaneously.
The specific embodiment of the invention a kind of method that is used for connecting bluetooth equipment and IGRS's equipment also is provided on the other hand, be the schematic flow sheet of said method like Fig. 4.Consult Fig. 4, said method begins from step S401, comprising:
Step S402 searches for all bluetooth equipments in the Bluetooth transmission scope, and obtains the information on services of each bluetooth equipment that searches;
Step S403 generates service description information according to the information on services of each bluetooth equipment, and said service description information is write a bluetooth equipment description list;
Step S404; Receive the wherein request signal of IGRS's equipment of IGRS's network; The said service description information that meets the described request signal in the bluetooth equipment description list is converted into the IGRS's description document that meets IGRS protocol, according to said IGRS description document response described request signal.
Wherein this request signal is search request signal or service control request signal, and when this request signal was search request signal, the said IGRS description document that will meet said search request signal was sent to said wherein IGRS's equipment; When this request signal is service control request signal; Bluetooth equipment information according to search acquisition before; Be sent to the appointment bluetooth equipment after said service control request signal is converted into the service control signal that meets Bluetooth protocol, to control the action of this appointment bluetooth equipment.
Step S405, procedure is carried out and is finished.
Particularly, the process of said step S404 response IGRS device service request comprises the steps: that this process begins from step S501.
Step S502 receives the service request signal that the wherein IGRS equipment of IGRS's network sends;
Step S503 judges that said service request signal is that search request signal is still served the control request signal, if be judged as then execution in step S504 of search request signal, if be judged as then execution in step S506 of service control request signal;
Step S504 searches the service description information that meets this search request signal in the bluetooth equipment description list, and this service description information of searching acquisition is converted into the IGRS's description document that meets IGRS protocol;
Step S505 is sent to said wherein IGRS's equipment with said IGRS description document, make this wherein IGRS's device learns can for this wherein IGRS's equipment the information of the bluetooth equipment of service is provided;
Step S506 is sent to the specified bluetooth equipment of this service control request signal after said service control request signal is converted into the signal that meets Bluetooth protocol, makes corresponding bluetooth equipment carry out the control service corresponding with this service control request signal.
Step S507, bluetooth equipment accomplish corresponding operation, and return action is accomplished instruction, notify the specified bluetooth equipment of this IGRS's equipment to accomplish the corresponding operating action.
Step S508, above-mentioned response IGRS device service request process is carried out and is finished.
Comprehensive the above, the described apparatus and method that are used for connecting IGRS's equipment and bluetooth equipment of the specific embodiment of the invention have realized the operation of IGRS's equipment to bluetooth equipment, and bluetooth equipment and IGRS's equipment are coupled together.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.