Detailed description of the invention
For the ease of understanding the present invention, below with reference to relevant drawings, the present invention is described more fully.In accompanying drawingGive the preferred embodiment of the present invention.But, the present invention can realize in many different forms, however it is not limited to hereinDescribed embodiment.On the contrary, providing the purpose of these embodiments is to make the understanding to the disclosure more saturatingThorough comprehensively.
Unless otherwise defined, all of technology used herein and scientific terminology and the technical field belonging to the present inventionThe implication that technical staff is generally understood that is identical.The term used the most in the description of the invention is intended merely to describe toolThe purpose of the embodiment of body, it is not intended that in limiting the present invention.Term as used herein " or/and " include one or more phaseArbitrary and all of combination of the Listed Items closed.
This programme can be at an intelligent terminal with function of Bluetooth communication or computer or have the bluetooth of display screen and setStandby upper execution.It is to say, the executive agent of this programme is to have intelligent terminal or the computer of function of Bluetooth communication or haveThe bluetooth equipment of display screen.Specifically, can perform on the smart mobile phone have function of Bluetooth communication, it is also possible to aobvious havingPerform on the bluetooth equipment of display screen curtain, be provided with the blue tooth television of display screen, bluetooth air-conditioning, Baffle Box of Bluetooth as being specifically as followsDeng bluetooth equipment.
As it is shown in figure 1, be the bluetooth equipment searching method of one embodiment of the invention, including:
S110: the search instruction of the bluetooth equipment near acquisition search.
The triggering mode of search instruction can be to press pre-set button;Or get deliberate action by touch screen;OrPerson receives default signal.Specifically, this signal can be that Bluetooth signal can also be for infrared signal, it is also possible to believes for WiFiNumber.Preferably, this preset signals is Bluetooth signal.
Getting deliberate action by touch screen, this deliberate action can be to touch or long by preset control, or in advanceIf drawing predetermined pattern on control.
Pre-set button is the button or button being arranged on executive agent.
S120: according to the bluetooth equipment near the search of described search instruction, and obtain the equipment of the bluetooth equipment searchedTitle.
Executive agent is according to the bluetooth equipment near search instruction search executive agent, and obtains the bluetooth equipment searchedDevice name.
S130: determine the device type of bluetooth equipment corresponding to described device name according to described device name.
Executive agent determines the device type of bluetooth equipment corresponding to device name according to device name.At the present embodimentIn, it being classified according to functions, device type includes that TV, air-conditioning, lamp, audio amplifier, fan, refrigerator, clock, intelligent terminal etc. canTo be accessed the bluetooth equipment type of intelligent home network by bluetooth.
Specifically, step S130 can be, searches, according to device name, the equipment that in local data table, device name is correspondingType.Wherein, local data table can be the device type correspondence table provided by bluetooth equipment manufacturer of copy;Can also beLocally created tables of data, when bluetooth equipment accesses intelligent home network, in this tables of data, insertion one is user-definedData record including device name and device type.
It is to be appreciated that step S130 can also include: set up local data base;Described this locality is searched according to device nameThe device type that in tables of data, device name is corresponding.Further, this data base can be copy by bluetooth equipment manufacturerThe device type correspondence table provided;Can also be locally created tables of data, when bluetooth equipment accesses intelligent home network,This tables of data is inserted a user-defined data record including device name and device type.
In another embodiment, step S130 can also be, searches for described device name pair according to device name networkingThe device type answered.In the present embodiment, executive agent is connected to the Internet by network interface, and according to device name mutuallyThe device type that device name is corresponding is searched in networking.Preferably, step S130 further comprises the steps of: acquisition bluetooth equipment manufacturerInformation;The device type that device name is corresponding is searched for according on the website that manufacturer's information to raw manufacturer is corresponding.
S141: obtain the signal intensity of the described bluetooth equipment searched.
Executive agent obtains the signal intensity of the described bluetooth equipment searched.
S143: show described device name and described device type according to the strong and weak order of described signal intensity.
Executive agent according to the strong and weak order of described signal intensity by display screen show described device name and described in setStandby type.
So, can sequentially show the device name of the bluetooth equipment searched according to the strong and weak of Bluetooth signal intensity and setStandby type.Further, since the power of Bluetooth signal intensity can react the distance of two bluetooth equipments, therefore, distance is nearBluetooth equipment may be displayed on forward position, show in rearward position apart from remote bluetooth equipment;Or apart nearBluetooth equipment first shows, shows after remote bluetooth equipment.
Above-mentioned bluetooth equipment searching method, the search instruction of the bluetooth equipment near acquisition search;Refer to according to described searchBluetooth equipment near order search, and obtain the device name of the bluetooth equipment searched;Institute is determined according to described device nameState the device type of bluetooth equipment corresponding to device name;Obtain the signal intensity of the described bluetooth equipment searched;According to instituteThe strong and weak order stating signal intensity shows described device name and described device type.Owing to device name and device type are pressedSequentially showing according to signal power, therefore user can clearly understand the device type of the bluetooth equipment searched, and hasPreferably discernment;Meanwhile, it is capable to according to Bluetooth signal the strong and weak device name sequentially showing the bluetooth equipment searched andDevice type.
As in figure 2 it is shown, wherein in an embodiment, described determine that described device name is corresponding according to described device nameThe step of device type of bluetooth equipment, i.e. step S130, including:
S231: obtain equipment according to described device name and dispatch from the factory title and/or device numbering.
Owing to device name is likely more corrected one's mistakes by user, for guaranteeing to determine device type, therefore, executive agent canDispatch from the factory title with the equipment getting device numbering according to device name and/or equipment dispatches from the factory.
S233: dispatch from the factory title according to described equipment and/or device numbering determines device type.
The equipment of getting dispatches from the factory after title and/or device numbering, executive agent can according to described equipment dispatch from the factory title or/And device numbering determines device type.
Specifically, executive agent can search equipment in local data table according to dispatch from the factory title and/or device numbering of equipmentTitle of dispatching from the factory and/or device type corresponding to device numbering.Wherein, local data table can be being produced by bluetooth equipment of copyThe device type correspondence table that business provides;Can also be locally created tables of data, when bluetooth equipment accesses intelligent home network,In this tables of data insert one user-defined include equipment dispatch from the factory title and/or device numbering and device type data noteRecord.
It is to be appreciated that step S233 can also include: set up local data base;Dispatch from the factory title and/or set according to equipmentStandby numbering is searched equipment in described local data table and is dispatched from the factory title and/or device type corresponding to device numbering.Further, shouldData base can be the device type correspondence table provided by bluetooth equipment manufacturer of copy;Can also be locally created dataTable, when bluetooth equipment accesses intelligent home network, inserts one in this tables of data and user-defined includes that equipment dispatches from the factory nameClaim and/or the data record of device numbering and device type.
In another embodiment, step S233 can also be, according to equipment dispatch from the factory title and/or device numbering networking searchSuo Suoshu equipment dispatches from the factory title and/or device type corresponding to device numbering.In the present embodiment, executive agent is connect by networkMouth is connected to the Internet, and dispatch from the factory title according to equipment and/or device numbering search on the internet equipment dispatch from the factory title and/orThe device type that device numbering is corresponding.Preferably, step S233 further comprises the steps of: acquisition bluetooth equipment manufacturer's information;According toManufacturer's information is dispatched from the factory title and/or device type corresponding to device numbering to equipment of searching on website corresponding to raw manufacturer.
Refer to Fig. 3, wherein in an embodiment, including respectively corresponding step S110~step S310 of S143~S343, and the described strong and weak order according to described signal intensity show described device name and described device type step itAfter, i.e. after step S343, further comprise the steps of:
S350: according to device name and the device type of described display, obtains corresponding to the device name of described displayBluetooth equipment carries out the matched order matched;Described matched order includes carrying out the device identification of the bluetooth equipment matched.
After executive agent shows described device name and described device type by display screen, user can be according to displayDevice name and device type input or trigger matched order;Executive agent is according to showing the device name of screen display and settingStandby type obtains this matched order, so, makes the device identification of the bluetooth equipment that matched order includes carrying out matching.It is appreciated thatGround, on display screen, the mode of display device title and device type can be to show a plurality of record, it is also possible to only one note of displayRecord;A record is a device name and the record of device type herein.Executive agent can be by display screen displayDevice name and device type obtain matched order;Can grow by such as user or touch this record, it is also possible to passing through buttonOr button selects this record, to trigger or input matched order.
S360: match according to the bluetooth equipment that the device identification of described matched order is corresponding with described device identification.
Executive agent is joined according to the bluetooth equipment that the device identification of described matched order is corresponding with described device identificationRight.
Wherein in a specific embodiment, after step S360, further comprise the steps of: the described device identification of acquisition correspondingThe pairing result feedback information that bluetooth equipment sends.So, executive agent is made to know pairing result, it is possible to be further illustrated inOn display screen, so that user knows pairing result.
Wherein in an embodiment, the described strong and weak order according to described signal intensity shows described device name and instituteState the step of device type, including: obtain available types;Strong and weak order according to described available types and described signal intensity is aobviousShow described device name and described device type.Wherein, described available types is that executive agent self can connect and can joinClose the device type of the bluetooth equipment used.So, can avoid showing those substantially can not with the use of bluetooth equipment,As, when executive agent is blue tooth television, available types can include that Baffle Box of Bluetooth, bluetooth alarm clock etc. can coordinate with executive agentThe bluetooth equipment used, but without include bluetooth air-conditioning etc. cannot with executive agent with the use of bluetooth equipment, the most permissibleEconomize on resources.
Wherein in an embodiment, described determine the bluetooth equipment that described device name is corresponding according to described device nameThe step of device type, including: determine whether bluetooth equipment corresponding to described device name is multiple according to described device nameConjunction equipment;It it is whether the equipment complex bluetooth that determines that described device name is corresponding according to bluetooth equipment corresponding to described device nameThe device type of equipment.Owing to some bluetooth equipment may have several functions simultaneously, at this, we are by such bluetooth equipmentReferred to as equipment complex;If the device type of equipment complex is shown as equipment complex, user still cannot judge this bluetooth equipmentBelonging to what type, what can do, its discernment needs to be further improved.Therefore, in the present embodiment, according to device nameDetermine whether bluetooth equipment corresponding to device name is equipment complex;If equipment complex, this device type includes multiple type,I.e. determine that the device type of bluetooth equipment corresponding to described device name includes multiple type;If not compound type, then this setsStandby type only includes single type, i.e. determines that the device type of bluetooth equipment corresponding to described device name includes single type.In the follow-up strong and weak order according to described signal intensity shows the step of described device name and described device type, if oneThe corresponding multiple device types of device name, then show multiple device type.So, discernment is improved further.
The present invention also provides for the bluetooth equipment searcher that a kind of and above-mentioned bluetooth equipment searching method is corresponding.This programme canThere is one intelligent terminal or the computer of function of Bluetooth communication or there is execution on the bluetooth equipment of display screen.NamelySaying, the executive agent of this programme is to have the intelligent terminal of function of Bluetooth communication or computer or have the bluetooth of display screen and setStandby.Specifically, can perform on the smart mobile phone have function of Bluetooth communication, it is also possible to set in the bluetooth with display screenStandby upper execution, as being specifically as follows bluetooth equipments such as being provided with the blue tooth television of display screen, bluetooth air-conditioning, Baffle Box of Bluetooth.
Referring to Fig. 4, bluetooth equipment searcher includes:
Instruction acquisition module 410, for obtaining the search instruction of the bluetooth equipment near search;
Equipment search module 420, the bluetooth equipment near searching for according to described search instruction, and acquisition searchThe device name of bluetooth equipment;
Determination type module 430, for determining bluetooth equipment corresponding to described device name according to described device nameDevice type;
Intensity acquisition module 441, for obtaining the signal intensity of the described bluetooth equipment searched;
Sequentially display module 443, for showing described device name and described according to the strong and weak order of described signal intensityDevice type.
Above-mentioned bluetooth equipment searcher, instruction obtains mould 410 and obtains the search instruction of the bluetooth equipment near search;IfStandby search module 420 is according to the bluetooth equipment near the search of described search instruction, and obtains the equipment of the bluetooth equipment searchedTitle;Determination type module 430 determines the device type of bluetooth equipment corresponding to described device name according to described device name;Intensity acquisition module 441, for obtaining the signal intensity of the described bluetooth equipment searched;Sequentially display module 443, for rootDescribed device name and described device type is shown according to the strong and weak order of described signal intensity.Due to by device name and equipment classType sequentially shows according to signal power, and therefore user can clearly understand the device type of the bluetooth equipment searched,There is preferable discernment;Meanwhile, it is capable to according to the strong and weak implementor name sequentially showing the bluetooth equipment searched of Bluetooth signalClaim and device type.
Wherein in an embodiment, described determination type module 430, including:
Parameter acquiring unit 431, dispatches from the factory title and/or device numbering for obtaining equipment according to described device name;
Type determining units 433, for dispatching from the factory title according to described equipment and/or device numbering determines device type.
Wherein in an embodiment, described type determining units 433, be additionally operable to according to described equipment dispatch from the factory title or/And device numbering searches equipment described in local data table and dispatches from the factory title and/or device type corresponding to device numbering.
Wherein in an embodiment, described type determining units 433, be additionally operable to according to described equipment dispatch from the factory title or/And device numbering networking searches for described equipment and dispatches from the factory title and/or device type corresponding to device numbering.
Wherein in an embodiment, also include:
Matched order module 450, for the device name according to described display and device type, obtains described displayBluetooth equipment corresponding to device name carries out the matched order matched;The bluetooth equipment that described matched order includes carrying out matchingDevice identification;
Pairing performs module 460, for the indigo plant corresponding with described device identification according to the device identification of described matched orderTooth equipment matches.
Above-mentioned bluetooth equipment searcher and above-mentioned bluetooth equipment searching method are corresponding relation, at this not to bluetooth equipmentThe concrete technical characteristic of searcher repeats, and its concrete technical characteristic is corresponding with corresponding method.
Above example only have expressed the several embodiments of the present invention, and it describes more concrete and detailed, but can notTherefore the restriction to the scope of the claims of the present invention it is interpreted as.It should be pointed out that, for the person of ordinary skill of the art,Without departing from the inventive concept of the premise, it is also possible to make multiple deformation and improvement, these broadly fall into the protection model of the present inventionEnclose.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.