The content of the invention
To solve the above-mentioned problems, the invention discloses a kind of anti-lost method of electronic cigarette equipment, this method to be based on to electricityThe main equipment that sub- cigarette equipment scans for, this method include:
Electronic cigarette equipment search signal is sent, electronic cigarette equipment search signal includes the target device of the electronic cigarette equipmentMark, and for indicating that the electronic cigarette equipment returns to the instruction of Bluetooth feedback signal;
Judge whether to detect the Bluetooth feedback signal;
If so, then sending for indicating that the electronic cigarette equipment is located in the main equipment detection range, the electronic cigarette equipment is notThe signal of loss;
If it is not, then send for indicating the electronic cigarette equipment not in the main equipment detection range, the electronic cigarette equipmentThe signal lost.
In a wherein embodiment, which includes sending the electronic cigarette equipment of the Bluetooth feedback signalTarget device mark;
This judges whether to detect that Bluetooth feedback signal includes:
Detect Bluetooth signal;
Whether the target device comprising the electronic cigarette equipment identifies the Bluetooth signal for judging to have detected;
If so, then judging to have detected that the Bluetooth feedback signal, which is the Bluetooth feedback signal;
If it is not, then judge to be not detected by the Bluetooth feedback signal.
In a wherein embodiment, after the Bluetooth feedback signal is detected, this method further includes:
Obtain the distance between the main equipment and the electronic cigarette equipment value.
In a wherein embodiment, the acquisition main equipment includes with the distance between electronic cigarette equipment value:
Obtain the reception intensity values for the Bluetooth feedback signal that the main equipment receives;
According to the reception intensity values and the first pre-stored functional relation of the distance value, the main equipment and the electronic cigarette are obtainedThe distance value of equipment.
In a wherein embodiment, the acquisition main equipment includes with the distance between electronic cigarette equipment value:
Obtain the reception intensity values for the Bluetooth feedback signal that the main equipment receives;
Obtain the signal transmission factor of influence in the main equipment detection range;
Functional relation is pre-stored according to the second of the reception intensity values, the signal transmission factor of influence and the distance value,Obtain the distance value of the main equipment and the electronic cigarette equipment.
In a wherein embodiment, when the distance value is equal to or more than pre-stored distance threshold, alarm signal is sent.
In a wherein embodiment, which is mobile terminal.
In a wherein embodiment, which has display device, which is used to show the electronic cigaretteThe distance value between equipment and the mobile terminal.
On the other hand the application discloses a kind of anti-losing device of electronic cigarette equipment, which includes:
Sending module, for sending electronic cigarette equipment search signal, electronic cigarette equipment search signal includes the electronic cigaretteThe target device mark of equipment, and for indicating that the electronic cigarette equipment returns to the instruction of Bluetooth feedback signal;
Bluetooth feedback signal judgment module, for judging whether to detect the Bluetooth feedback signal;
Output module, in the case of the Bluetooth feedback signal is detected, sending for indicating the electronic cigarette equipmentIn the main equipment detection range, signal which does not lose;When the situation for detecting the Bluetooth feedback signalUnder, send for indicating the electronic cigarette equipment not in the main equipment detection range, the signal which has lost.
In a wherein embodiment, which includes:
Detection module, for detecting Bluetooth signal;
Whether Bluetooth signal judgment module, the Bluetooth signal for judging to have detected include the target of the electronic cigarette equipmentDevice identification;
Determination module, when the target device for including the electronic cigarette equipment when the Bluetooth signal detected identifies, sentencesSurely the Bluetooth feedback signal is had detected that, which is the Bluetooth feedback signal;When the Bluetooth signal detected does not wrapWhen the target device containing the electronic cigarette equipment identifies, judgement is not detected by the Bluetooth feedback signal.
The beneficial effect of the application is, by gathering the Bluetooth feedback signal of the electronic cigarette equipment, can effectively differentiate thisWhether electronic cigarette equipment is in the range of main equipment or user can monitor, and then by whether positioned at can be in monitoring range reallyWhether the fixed electronic cigarette equipment loses, whether, either positioned at environmental field where the main equipment or user, anti-lost cost is relatively low,Speed is quick, can be widely applied to the anti-lost field of electronic cigarette equipment.
Embodiment
It is below in conjunction with attached drawing and specifically real in order to become apparent from the purpose of the present invention, technical solution and its technique effectMode is applied, the present invention is described in more detail.It should be appreciated that the embodiment described in this specification is onlyIn order to explain the present invention, it is not intended to limit the present invention.
According to the application on the one hand, a kind of anti-lost method 1 of electronic cigarette equipment is disclosed, this method 1 is based on to electronic cigaretteThe main equipment that equipment scans for.As shown in Figure 1, wherein this method 1 includes:
S10, sends electronic cigarette equipment search signal, and electronic cigarette equipment search signal includes the target of the electronic cigarette equipmentDevice identification, and for indicating that the electronic cigarette equipment returns to the instruction of Bluetooth feedback signal;
S12, judges whether to detect the Bluetooth feedback signal;
If so, then performing step S14, send for indicating that the electronic cigarette equipment is located in the main equipment detection range, shouldThe signal that electronic cigarette equipment is not lost;
If it is not, then performing step S16, send for indicating the electronic cigarette equipment not in the main equipment detection range,The signal that the electronic cigarette equipment has been lost.
Specifically, main equipment sends out electronic cigarette equipment search signal to surrounding, and the wherein main equipment can be in userThe search signal is just sent after triggering (such as push button or phonetic entry etc.);Or the equipment can timing (such as every20 minutes, hour etc.) send the search signal.In a non-limiting example, the electronic cigarette which sends is searchedRope signal is Bluetooth signal, and the target device that the information entrained by the Bluetooth signal includes the electronic cigarette equipment identifies, therefore shouldSearch signal is the Bluetooth signal with pointing clearly to property, for identifying not corresponding any electronic equipment with the target device,It will not respond to the search signal.In another alternative embodiment, identified with the target device not corresponding anyElectronic equipment responds the search signal, or the main equipment can receive other Bluetooth signals, in this case, the masterEquipment can make the signal of the response further screen.
For step S12, such as described above, set for identifying not corresponding any electronics with the target deviceIt is standby, it will not respond to the search signal, then the signal of the received response of the main equipment is the Bluetooth feedback signal.SoAnd respond if identifying other not corresponding electronic equipments with the target device to the search signal, or the main equipment is alsoCan receive the Bluetooth signal that other electronic equipments are sent at the same time, then the main equipment need to dock received bluetooth back-signalling make intoThe examination of one step.
Therefore, in another embodiment, which sets including sending the electronic cigarette of the Bluetooth feedback signalStandby target device mark;
And as shown in Fig. 2, step S12 includes:
S120, detects Bluetooth signal;
S122, whether the target device comprising the electronic cigarette equipment identifies the Bluetooth signal for judging to have detected;
If so, then performing step S124, judgement has detected that the Bluetooth feedback signal, which is that the bluetooth is anti-Feedback signal;
If it is not, then performing step S126, judgement is not detected by the Bluetooth feedback signal.
Specifically, which may be that the electronic cigarette equipment is receiving the electronic cigarette equipment search of main equipment transmissionAfter instruction, to the Bluetooth feedback signal of main equipment transmission;It could also be possible that other any electronic equipments are to the main equipmentThe Bluetooth signal of transmission, but the Bluetooth signal of other any electronic equipments transmissions does not carry the target of the electronic cigarette equipmentWhether device identification, therefore, step S12 further carry the target device mark of the electronic cigarette equipment by detecting the Bluetooth signalKnow, determine whether the Bluetooth signal is Bluetooth feedback signal transmitted by the electronic cigarette equipment.
In a wherein embodiment, detectable scope of the electronic cigarette equipment in the main equipment (or user) is being determinedWithin, i.e., as shown in Figure 1, after step s 14, this method 1 further includes:
S18, obtains the distance between the main equipment and the electronic cigarette equipment value.
As shown in figure 3, in a wherein embodiment, step S18 includes:
S180, obtains the reception intensity values for the Bluetooth feedback signal that the main equipment receives;
S182, according to the reception intensity values and the first pre-stored functional relation of the distance value, obtains the main equipment with being somebody's turn to doThe distance value of electronic cigarette equipment.
Specifically, the reception intensity values of the Bluetooth feedback signal can use RSSI value (Received Signal StrengthIndication) represent.The RSSI value represents the signal strength measure signaling point and the distance of receiving point by receiving, and thenLocation Calculation is carried out according to corresponding data.In a preferred embodiment, which is configured with BLE Bluetooth chips (such asCC2540), the engine of positioning of the BLE Bluetooth chips is i.e. using RSSI value detection the distance between main equipment and target device.
As shown in figure 4, in another embodiment, step S18 includes:
S180`, obtains the reception intensity values for the Bluetooth feedback signal that the main equipment receives;
S182`, obtains the signal transmission factor of influence in the main equipment detection range;
S184`, according to the second of the reception intensity values, the signal transmission factor of influence and the distance value the pre-stored functionRelation, obtains the distance value of the main equipment and the electronic cigarette equipment.
In the present embodiment, also the communication environment in the main equipment detection range is taken into account.For example, in the main equipmentThere is Yishanmen at 3 meters of front at the position at place, and the electronic cigarette equipment is located at the unknown distance of front.When based onWhen the first distance that RSSI is measured is 4 meters, then it is only a theoretical distance value to be somebody's turn to do " 4 meters ".This is because signal is in transmitting procedureInterference is received, causes to decay, therefore, it is necessary to take the factors such as these interference into account.
Specifically, in the present embodiment, should " distance value " be theoretical distance value, by " the signal transmission factor of influence " and" distance value ", which is combined, can obtain really, or the real distance value of infinite approach.Wherein the signal transmission influencesThe influence factor of the occurrence of the factor includes but not limited to:Barrier, electromagnetic interference, air humidity etc..
In a wherein embodiment, when the distance value is equal to or more than pre-stored distance threshold, alarm signal is sent.
Specifically, such as the master sets detectable scope as 100 meters, and the indoor environment residing for user is in the range of 10 meters,Even if can then receive the Bluetooth feedback signal at this time, which is similarly positioned in indoor environment, therefore, in this feelings, it is necessary to send alarm signal under condition, for indicating that the electronic cigarette equipment farther out, has loss may apart from main equipment.
In a wherein embodiment, which is mobile terminal.The mobile terminal is, for example, mobile phone.
In a wherein embodiment, which has display device, which is used to show the electronic cigaretteThe distance value between equipment and the mobile terminal.
As shown in figure 5, on the other hand the application discloses a kind of anti-losing device 2 of electronic cigarette equipment, which includes:
Sending module 20, for sending electronic cigarette equipment search signal, electronic cigarette equipment search signal includes the electronicsThe target device mark of cigarette equipment, and for indicating that the electronic cigarette equipment returns to the instruction of Bluetooth feedback signal;
Bluetooth feedback signal judgment module 22, for judging whether to detect the Bluetooth feedback signal;
Output module 24, in the case of the Bluetooth feedback signal is detected, sending for indicating that the electronic cigarette is setThe standby signal that in the main equipment detection range, which does not lose;When the feelings for detecting the Bluetooth feedback signalUnder condition, send for indicating the electronic cigarette equipment not in the main equipment detection range, the letter which has lostNumber.
As shown in fig. 6, in a wherein embodiment, which includes:
Detection module 220, for detecting Bluetooth signal;
Whether Bluetooth signal judgment module 222, the Bluetooth signal for judging to have detected include being somebody's turn to do for the electronic cigarette equipmentTarget device identifies;
Determination module 224, when the target device for including the electronic cigarette equipment when the Bluetooth signal detected identifies,Judgement has detected that the Bluetooth feedback signal, which is the Bluetooth feedback signal;When the Bluetooth signal detected notWhen the target device comprising the electronic cigarette equipment identifies, judgement is not detected by the Bluetooth feedback signal.
The beneficial effect of the application is, by gathering the Bluetooth feedback signal of the electronic cigarette equipment, can effectively differentiate thisWhether electronic cigarette equipment is in the range of main equipment or user can monitor, and then by whether positioned at can be in monitoring range reallyWhether the fixed electronic cigarette equipment loses, whether, either positioned at environmental field where the main equipment or user, anti-lost cost is relatively low,Speed is quick, can be widely applied to the anti-lost field of electronic cigarette equipment.
It should be noted that the module that above-mentioned modules are not necessarily independent, plurality of module can be integrated intoOne module;Or above-mentioned modules can be subdivided into multiple modules according to function again, these both fall within the protection of the applicationWithin the scope of.
It will appreciated by the skilled person that realizing all or part of flow in above-described embodiment method, being canTo instruct relevant hardware to complete by computer program, the program being somebody's turn to do can be stored in a computer read/write memory mediumIn, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium being somebody's turn to do can be magnetic disc,CD, read-only memory (Read Only Memory, ROM) or random access memory (Random AccessMemory, RAM) etc..
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specificEmbodiment, above-mentioned embodiment is only schematical, rather than restricted, those of ordinary skill in the artUnder the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make very muchForm, these are belonged within the protection of the present invention.In addition, although used some specific terms in this specification, but thisA little terms merely for convenience of description, do not limit the present invention in any way.