The content of the invention
For the above-mentioned technical problem present in prior art, the invention provides a kind of thing based on bluetooth signal intensity
Part finding method, according to the testing result of the signal intensity of the multiple positions of continuous several times, clearly gives the user investigation
On suggestion, improve find target item efficiency, using flexible.
A kind of object finding method based on bluetooth signal intensity, comprises the following steps:
(1) the target item transmitting for having bluetooth module to binding using mobile phone, which is searched, starts order, and bluetooth module receives this
Working condition is transferred to from holding state and Bluetooth signal is launched to surrounding with high frequency after order;
(2) gather multigroup described Bluetooth signal using mobile phone and detection obtains corresponding signal strength values, according to this
The signal strength values for collecting all Bluetooth signals calculate a valid signal strengths by Denoising Algorithm;
(3) mobile phone provides the user traveling suggestion based on described valid signal strengths by multilevel iudge, guides user
Progressively close to target item.
Idiographic flow in described step (2) by Denoising Algorithm calculating valid signal strengths is as follows:
2.1 collect the signal strength values of all Bluetooth signals for this, remove wherein all maximum signal values
After all minimum signal strength values, step 2.2 is performed if it there remains other signal strength values, if other not remaining signals are strong
Angle value, then retain all maximum signal values and all minimum signal strength values, and calculate being averaged for all signal strength values
Value is used as valid signal strengths;
Mode (the most numerical value of occurrence number in one group of data) in other remaining signal strength values of 2.2 statistics, if depositing
Step 2.3 is then performed in a mode, step 2.4 is performed if it there are two or more modes;
2.3 centered on unique mode, collects all signals of the absolute value less than or equal to 1 of other and mode difference
Intensity level, the corresponding all signal strength values composition collection merging of these signal strength values and the mode are asked its average value as
Valid signal strengths;
2.4, which make maximum and minimum value in all modes as two ends, sets up a closed interval, calculates in the closed interval
The average value of all signal strength values is used as valid signal strengths.
Mobile phone is based on valid signal strengths and provides the user traveling suggestion, tool by multilevel iudge in described step (3)
Body judges that flow is as follows:
3.1 initial time subscriber stations are calculated by step (2) obtain a valid signal strengths in situ, it is proposed that Yong Huren
Stood firm after selecting the forward certain distance in a direction, perform the valid signal strengths that step (2) calculates current position;
3.2 obtain after the valid signal strengths of current position, judge the valid signal strengths above or below previous
Valid signal strengths at position:
Stood firm if more than if along after front direction continues forward certain distance, perform step (2) and calculate current position
Valid signal strengths, and judged into step 3.3;
Stood firm after certain distance is moved ahead along current opposite direction less than if, perform step (2) and calculate having for current position
Signal intensity is imitated, and is judged into step 3.3;
3.3 obtain after the valid signal strengths of current position, judge the valid signal strengths above or below previous
Valid signal strengths at position:
Stood firm if more than if along after front direction continues forward certain distance, perform step (2) and calculate current position
Valid signal strengths, and then according to step 3.3 circulation judge until finding target item;
Stood firm after certain distance is moved ahead along current left direction or right direction less than if, perform step (2) and calculate present bit
The valid signal strengths at place are put, and then according to step 3.3 circulation judge until finding target item.
After user finds target item, standby command is transmitted to using mobile phone, the bluetooth module of target item is received
Holding state is transferred to from working condition and Bluetooth signal is launched to surrounding with low frequency after the order;It can ensure compared with low power consumption
While, bring himself into visible state.
The target item that user has bluetooth module using mobile phone to binding launches electricity quantity inquiring order, and bluetooth module receives this
Order backward mobile phone to return to information about power, and shown information about power by mobile phone, to remind whether user is needed to bluetooth mould
Block is charged.
The present invention is by the use of low-power consumption bluetooth equipment as sender unit, by the use of mobile terminal as reception device,
Reception device reduces the interference of environment, and the detection knot of the signal intensity according to the multiple positions of continuous several times by software algorithm
Really, the suggestion on investigation is clearly given the user, the efficiency for finding target item is improved;Low-power consumption bluetooth equipment is only
Button cell need to be used just can to power for a long time, usually in state, signal is sent with relatively low frequency;When dispensing device wishes to seek
When looking for reception device, send and start order to activate reception device to working condition, signal is sent with upper frequency;Searching process
After end, standby command is sent again makes reception device be again introduced into holding state, so as to effectively increase the continuous of reception device
ETS estimated time of sailing.
The present invention need not carry out the deployment of extensive Bluetooth signal base station, it is not necessary to carry out matching somebody with somebody for complicated blueteeth network
Put, it is not necessary to which mathematical modeling is carried out to complicated electromagnetic environment, it is not required that parameter adjustment is carried out according to different hardware provider,
Just with the miniature slave computer compact with bluetooth module, be easy to be attached on target item the characteristics of, with reference to mobile phone terminal
The algorithm solution of software offer, is just realized to any easily loss or the searching of important item, using flexible, in specific field
Precision height, efficiency high are found under scape, the particular demands of domestic consumer are disclosure satisfy that.
Embodiment
In order to more specifically describe the present invention, below in conjunction with the accompanying drawings and embodiment is to technical scheme
It is described in detail.
In present embodiment, mobile phone terminal software utilizes the Bluetooth function that mobile phone is configured in itself, is carried using operating system aspect
The interface of developer is supplied, the search of target slave computer bluetooth equipment name, pairing and the collection of Bluetooth signal is carried out;Utilize filter
Ripple algorithm is handled the data being collected into;According to route proposed recommendations user's next step behavior.
Mobile phone terminal software is circulated according to following steps and carried out, until searching out the bluetooth module of target slave computer i.e. by user
Stop:
Step one:
The static in situ wait of user, software now circulates the search carried out to matching bluetooth equipment.Searched when every time
After the bluetooth equipment of pairing, the signal intensity of bluetooth equipment broadcast singal is collected at once, and stops current search, is proceeded by down
Once search for, the Quick Acquisition to a number of bluetooth signal intensity is realized with this.When collecting, a number of signal is strong
Suspend search after degree, into step 2.
Step 2:
The Denoising Algorithm for Bluetooth signal characteristic distributions is integrated with mobile phone terminal software, frequency is mutated according to Bluetooth signal
The numerous, feature that change is unstable, and the limited reality of collecting quantity in actual use is combined, by collect one
The bluetooth signal intensity of fixed number amount carries out targetedly denoising, as shown in Figure 1;The returning result of processing is this time to gather
Valid signal strengths:
1) all maximum and minimum are removed, to avoid the interference that sign mutation is produced, into step 2).If removed
Afterwards without remaining signal intensity, then retain all maximums and minimum value, calculate the arithmetic average of all signal intensities simultaneously
Directly return, without following step.
2) mode in remaining signal strength values is counted, to find with preferably imitating the immediate value of signal intensity.Such as
Fruit only one of which mode, then into step 3).If there is two or more modes, then into step 4).
3) centered on mode, the signal intensity that all poor absolute values with mode are less than or equal to 1 is collected.Calculate these
The arithmetic mean number of signal intensity is simultaneously returned.
4) using all modes many minimum value a and maximum b as interval two ends, collection is all to be more than or equal to a and is less than
Signal intensity equal to b.Calculate average and the return of these signal intensities.
Step 3:
Finally, obtained valid signal strengths are passed into our route recommendation system and carries out following processing, processing
Returning result is that the route selection to user's next step provides suggestion, as shown in Figure 2;And record the Boolean true of this time suggestion
(T or F):
If 1) this time valid signal strengths are larger, illustrate target and user very close to, then advise user at one's side oneself
Row is found.Into step 2).
If 2) this is first valid signal strengths, the true value of this time suggestion is not recorded, returns to suggestion user any
Select a direction advance certain distance.If not first valid signal strengths, into step 3).
3) compared with previous valid signal strengths, if less than previous signal intensity, record this time advises b's
True value is F, if more than previous signal intensity, record this time advises that b true value is T.Next check that previous suggestion is true
Value a, with this suggestion true value b composition suggestion true value to (a, b):A is previous suggestion true value, and b is this time to advise true value.A's
Virtual value is T, F, E, and b virtual value is T, F:Wherein, E represents a kind of " sky " value different from T and F.Into step 4).
If 4) (a, b)=(E, T), then return to suggestion user and continue when front direction is advanced.
If (a, b)=(E, F), then suggestion customer reverse is returned.
If (a, b)=(F, T), then advise that user's selection continues when front direction is advanced.
If (a, b)=(F, F), then advise that user's selection is leftward or rightward and advance, and this suggestion true value b is changed to E.
If (a, b)=(T, T), then advise that user continues when front direction is advanced.
If (a, b)=(T, F), then advise that user's selection is leftward or rightward and advance, and this suggestion true value b is changed to E.
5) limited when by actual place, when user can not walk according to the direction of suggestion, user should stop this manually
It is secondary to find, and restart searching along any direction since current location.
User waits software to carry out three above step and give according to static in situ after one segment distance of current suggestion traveling
Go out route suggestion next time, so move in circles, until user searches out the bluetooth module of target slave computer.One given below
Instantiation:
As shown in figure 3, user needs to possess a mobile phone with Bluetooth function first, and this mobile phone terminal software is installed.
User is opened after mobile phone terminal software, and program can judge whether the mobile phone of user carries Bluetooth function first:If so, then continuing;It is no
Then exiting and giving user does not have the prompting of Bluetooth function.Then, user can be straight in the target device list collected
The target device to be found is selected in selecting;Or, user can also select to scan for, and select the arbitrary target searched the next
The bluetooth module of machine.After it have selected the bluetooth module of the target slave computer to be found, automatic linking objective is the next at once for program
The bluetooth module of machine, is sent to start the working condition that order makes it into high-frequency transmission broadcast singal, to wait to find.Connect
, user clicks on START button and begun look for.Program is receiving the bluetooth broadcasted of continuous 10 target slave computers
After the signal strength information of signal, suspend this search, this 10 values are subjected to denoising, an accurate Bluetooth signal are produced strong
Angle value.According to this bluetooth signal intensity value and the bluetooth signal intensity value of last time, pass course proposed algorithm, to trip
Walk the suggestion of route and be presented to user, and wait user to again tap on and " continue search for " button.If certain Bluetooth signal once
Intensity level is higher than a certain limit value, you can judge that active user has enter into one meter of scope of the bluetooth module of target slave computer
Interior, now program will be prompted to user and have enter into the range of one meter of target device, and advise that user rakes about.Period, use
Family can stop this search manually or directly restart search at any time.Especially when due to the limitation of actual place, Yong Huwu
When method defers to the route walking proposed by program, this current wheel should be stopped manually and found, and clicked on again " beginning " button,
Restart to find on current location.
In this example, as mobile phone, its specific workflow is as follows:
1) user matches the bluetooth device name that the target slave computer for being currently needed for finding is broadcast out on mobile phone terminal software.
2) before beginning look for, send to search to start from the bluetooth module of trend target slave computer and order, make target Bluetooth
Module enters working condition.
3) user waits certain time, when user waits, and it is certain that mobile phone terminal software collects target slave computer bluetooth module
The multigroup Bluetooth signal sent in time.
4) processing is filtered to a number of Bluetooth signal collected, the noise in signal is removed, obtains current
Effective bluetooth signal intensity.
5) according to current signal intensity, the historical signal intensity collected when being waited the last time with reference to user, is user
The suggestion of route direction is provided, user is progressively close to Bluetooth signal sending module, and then find target item for guiding.
6) after terminating to find, mobile phone terminal software sends standby command from the bluetooth module of trend target slave computer, makes mesh
The bluetooth module of mark slave computer enters holding state.
7) mobile phone terminal software is received under target by the order of the bluetooth module transmission electricity quantity inquiring to target slave computer
After the answer information of the bluetooth module of position machine, the dump energy of the bluetooth module of target slave computer is shown, so as to remind
User changes battery in time.
As bluetooth module, its specific workflow is as follows:
1) before user does not carry out device name matching, in holding state:In the standby state, the bluetooth of slave computer
Module periodically sends broadcast message with lower frequency, while ensureing compared with low power consumption, brings himself into visible state.
2) after user has found the bluetooth target device of needs searching and carries out the matching of device name, the bluetooth of slave computer
Module receives the startup order from mobile phone terminal software, into working condition:In the operating condition, the bluetooth module of slave computer
Broadcast message is periodically sent with upper frequency, so that mobile phone terminal software can in extremely rapid succession obtain the bluetooth of slave computer
The signal strength information of module.
3) after the standby command from mobile phone terminal software is received, into holding state:In the standby state, slave computer
Bluetooth module broadcast message is periodically sent with lower frequency, ensure compared with low power consumption while, bringing himself into can
See this state.