Detailed description of the invention
Here will at length describe exemplary embodiment, its sample table shows in the accompanying drawings. BelowWhen description relates to accompanying drawing, unless separately there is expression, the same numbers in different accompanying drawings represents same or analogousKey element. Embodiment described in following exemplary embodiment does not represent the institute consistent with the disclosureThere is embodiment. On the contrary, they be only with as that described in detail in appended claims, of the present disclosure oneThe example of the consistent apparatus and method in a little aspects.
The term using in the disclosure is only for describing the object of specific embodiment, but not is intended to restrictionThe disclosure. " one ", " institute of the singulative using in disclosure and the accompanying claims bookState " and " being somebody's turn to do " be also intended to comprise most forms, unless context clearly represents other implications. Also shouldWork as understanding, term "and/or" used herein refer to and comprise one or more be associated list itemAny or all may combine object.
Although should be appreciated that may to adopt term first, second, third, etc. to describe in the disclosure variousInformation, but these information should not be limited to these terms. These terms be only used for by the information of same type thatThis distinguishes. For example, in the situation that not departing from disclosure scope, the first information also can be called asTwo information, similarly, the second information also can be called as the first information. Depend on linguistic context, as in this instituteUse word " if " can be construed as into " ... time " or " when ... time " or " responseIn determining ".
In correlation technique, user is by the client software installed in intelligent mobile terminal and the intelligence of petCan set up short-distance wireless connection by nameplate, such as bluetooth connects, the fortune of the pet that intelligent nameplate is collectedWhen moving data are synchronized to intelligent mobile terminal this locality, conventionally there is following shortcoming:
1, during user working or durante absentia, during this period because distance limit user is by intelligenceThe short-distance wireless that mobile terminal cannot be set up between pet nameplate is conventionally connected, therefore cannot be by intelligenceThe exercise data of the pet that nameplate collects is synchronized to this locality.
2, for the elderly colony, not very skilled for the use of client software, every day is by operationThe exercise data of the pet that client software collects intelligent nameplate is synchronized to this locality, be one very tiredDifficult thing.
3, be synchronized in local process at the exercise data of the pet that intelligent nameplate is collected, at every turn sameStep all needs to re-establish short-distance wireless and connects, and operates more loaded down with trivial details. And no-load speed can be limited toThe transfer rate of short-distance wireless communication, the synchronous time of data may be long.
In view of this, a kind of method that gathers pet motions data of this proposition, pet nest is by judging and doting onWhether the distance of thing is less than default triggering distance, and ought be less than default touching with the distance of described petSend out apart from time, trigger first communication module described pet that described exercise data acquisition device is collectedExercise data is synchronized to this locality; And trigger second communication module and first communication module is synchronized to localDescribed exercise data is uploaded to described server, has realized and can fill exercise data acquisition by pet nestThe exercise data of putting the pet collecting carries out automatic synchronization and uploads onto the server, thereby can avoid usingThe exercise data of the pet that family use intelligent mobile terminal collects exercise data acquisition device carries out manuallySynchronously.
As shown in Figure 1, Fig. 1 gathers pet motions data according to the one shown in an exemplary embodimentMethod, the method is applied in pet nest, wherein this pet nest comprises with to be preset in pet health defaultThe exercise data acquisition device at position carries out first communication module and and the server of short-distance wireless communicationThe second communication module that carries out radio communication, said method comprises the following steps:
In step 101, whether judgement is less than default triggering distance with the distance of described pet;
In step 102, when with the distance of described pet be less than default triggering apart from time, trigger firstThe exercise data of the described pet that communication module collects described exercise data acquisition device is synchronized to this locality;And the described exercise data that first communication module is synchronized to this locality by triggering second communication module is uploaded to instituteState server.
Above-mentioned pet nest can comprise having the intelligent hardware that activity space function is provided for pet, Ke YitongCross integrated above-mentioned first communication module and second communication module, with the fortune that is preset in the default position of pet healthMoving data acquisition unit is used in conjunction with, the fortune of the pet that above-mentioned exercise data acquisition device is collectedMoving data are synchronized to this locality, and are automatically uploaded to the server of appointment.
Above-mentioned exercise data acquisition device can comprise and is worn on pet with it for gathering the motion number of petAccording to intelligent hardware; For example, this exercise data acquisition device can be intelligent pet nameplate, such as intelligenceCan dog tag.
Above-mentioned first communication module can comprise the short-range wireless communication module of low-power consumption. Illustrate oneIn kind of embodiment, this first communication module can comprise bluetooth module (such as Bluetooth chip) orZigbee module (such as Zigbee chip).
This first communication module can be set up short-distance wireless communication with above-mentioned exercise data acquisition device and be connected,Carry out short-distance wireless communication with above-mentioned exercise data acquisition device, with by above-mentioned exercise data acquisition deviceThe exercise data of the pet collecting is synchronized to pet nest this locality.
For example, when above-mentioned first communication module is bluetooth module, above-mentioned exercise data acquisition device is intelligenceWhen pet nameplate, can be carried out pet nest by user pre-configured, by carrying out indigo plant with intelligent pet nameplateTooth pairing is set up bluetooth and is connected, and intelligent pet nameplate can be connected and intelligent pet inscription based on this bluetoothBoard carries out short-distance wireless communication, and the exercise data of the pet that intelligent pet nameplate is collected is synchronized to thisGround.
Above-mentioned second communication module can comprise the wireless communication module that carries out radio communication with server. ?In a kind of embodiment illustrating, this second communication module can comprise WI-FI module.
This second communication module can be set up wireless connections with server and carry out remote radio communication. For example,In the time that above-mentioned second communication module is WI-FI module, this WI-FI module can be based on user configuredThe router that the title of WI-FI network and password access are specified, then sets up by router and serverWireless connections.
Wherein, in order farthest to reduce power consumption, above-mentioned pet nest in daily work, above-mentioned theOne communication module and second communication module can be defaulted as closed condition.
In addition, above-mentioned pet nest, except above-mentioned first communication module and second communication module, can also compriseDefault processor. In a kind of embodiment illustrating, this processor can comprise MCU (MicroControllerUnit, micro-control unit).
This processor can be controlled by the decision logic loading shown in above-mentioned steps 101 to 102Making the first communication unit and second communication unit carries out with above-mentioned exercise data acquisition device and server respectivelyCommunication, the exercise data of the pet that above-mentioned exercise data acquisition device is collected is synchronized to this locality, thenUpload onto the server.
Taking above-mentioned first communication module as bluetooth module, above-mentioned second communication module is WI-FI module below,Above-mentioned exercise data acquisition device is that to be worn on pet intelligent pet nameplate be with it that example describes.
In this example, under original state, user can carry out pre-configured to pet nest. Wherein, forPet nest carry out pre-configured comprise carry out for the bluetooth module of pet nest pre-configured, and for pet nestWI-FI module carry out pre-configured.
On the one hand, user can carry out the bluetooth module of pet nest pre-configured, with same integrated bluetoothThe intelligent pet nameplate of module carries out Bluetooth pairing, when after Bluetooth pairing success, and the bluetooth module of pet nestIn environment, scan around after intelligent pet nameplate, can be automatically and intelligent pet nameplate set up bluetooth and connectConnect.
For example, in home environment, be worn on after pet intelligent pet nameplate unlatching with it other indigo plantTooth equipment detects this intelligent pet nameplate by the Bluetooth frame that receives this intelligent pet nameplate and send. UserIn the time that the bluetooth module in pet nest carries out Bluetooth pairing, can access pet nest by smart mobile phone,Then in the bluetooth equipment having scanned of exporting in the configuration interface of pet nest, find and wish to carry out indigo plantThe intelligent pet nameplate of tooth configuration, then manually carries out Bluetooth pairing.
On the other hand, user can also need the WI-FI network connecting for pet nest configuration, makes petNest can be set up wireless connections based on user configured WI-FI network and given server, enters with serverRow data interaction. Wherein, the reference address of this given server can be after pet nest dispatches from the factory, acquiescenceBe carried in the memory space of pet nest MCU, or the reference address of this given server also can be byUser carries out manual configuration.
For example, in the time realizing, user can access pet nest by smart mobile phone, in the configuration of pet nestIn interface, input needs title and the password of the WI-FI network connecting, after input completes, pet nestWI-FI module can title and password based on user configured WI-FI network access the router of specifying.When after the router that pet nest access is specified, the visit that can read server from the memory space of MCUAsk address, or read the reference address of the server of user's manual configuration, set up wireless with this serverConnect.
In this example, when user is to pet nest after pre-configured completing, now the MCU of pet nest can transportWhether the decision logic of row shown in above-mentioned steps 101 to 102, judge with the distance of pet littleIn default triggering distance, and judge with the distance of pet be less than default triggering apart from time, controlBluetooth module and WI-FI communicate with intelligent pet nameplate and server respectively, by intelligent pet nameplateThe exercise data of the pet collecting is synchronized to this locality, then uploads onto the server.
Wherein, above-mentioned default triggering distance can comprise the maximum communication distance that bluetooth module is supported.Certainly,, in the time realizing, this default triggering distance also can be carried out separately according to actual demand by userArrange, in the disclosure, do not limit especially.
In this example, the MCU of pet nest, at the above-mentioned decision logic of operation, judges the distance with petWhether be less than default triggering apart from time, can have different implementations.
In one implementation, above-mentioned pet nest is except bluetooth module, WI-FI module and MCUIn addition, all right integrated Weighing module, this Weighing module enters for the pet password that pet nest is heldRow is weighed.
Wherein, in the time realizing, this Weighing module can comprise LOAD CELLS, weighing and sensing chip orAny one in weighing and sensing circuit.
In this example, this Weighing module can be arranged at the bottom, space of pet nest, and MCU can be by being somebody's turn to doWeighing module gathers the weight of pet nest, then the weight of the real-time monitoring pet nest of the weight based on collectingWhether quantitative change, increase with the weight that judges pet nest.
While increase due to the weight of pet nest, normally because pet enters pet nest, pet nest load-bearing is ledCause, therefore, in the time that MCU judges the weight increase of pet nest, show that pet may enterPet nest, now the distance of pet nest and pet is necessarily less than default triggering distance. In this case,The weight of judging pet nest as MCU increases, MCU can be immediately to bluetooth module send one forTrigger the first triggering signal that bluetooth module is opened, also send one for triggering to WI-FI module simultaneouslyThe second triggering signal that WI-FI module is opened.
When above-mentioned the first triggering signal is sent to after bluetooth module, can trigger bluetooth module and open immediately,Switch to duty. Because the distance between pet and pet nest is now less than default triggering distance,And bluetooth module by user pre-configured be worn on pet intelligent pet nameplate with it and carried outPairing, therefore bluetooth module can be set up bluetooth with intelligent pet nameplate immediately and is connected, then starts and movesData are synchronously integrated, connect the motion number of the pet that intelligent pet nameplate has been collected based on this bluetoothAccording to being synchronized to pet nest this locality.
Meanwhile, when above-mentioned the second triggering signal is sent to after WI-FI module, can trigger WI-FIModule is opened immediately, switches to duty. Now WI-FI module can be by appointment and the road of accessSet up wireless connections by device and server, bluetooth module has been synchronized to the exercise data of local petUpload onto the server.
Wherein, when the exercise data that bluetooth module collects intelligent pet nameplate is synchronized to pet nest this locality,This exercise data can be carried out to buffer memory in this locality, when server sync to local all exercise datas becomeAfter merit uploads onto the server, can delete immediately the exercise data of buffer memory, by thisMode can avoid being synchronized to the too much memory space that takies MCU of local exercise data, to MCUOperation impact.
In another kind of implementation, above-mentioned pet nest is except bluetooth module, WI-FI module and MCUIn addition, all right integrated infrared sensing module, this infrared sensing module can be for carrying out infrared to petSurvey, the infrared-ray sending by surveying pet self, surveys the movement position of pet, fromAnd can the result based on infrared acquisition determine the distance between pet nest and pet.
Wherein, in the time realizing, this infrared sensing module can comprise infrared detection sensor, infrared acquisitionAny one in sensing chip or infrared acquisition sensing circuit.
In this example, this infrared sensing module can be arranged on pet nest and can not make infrared sensing moduleThe optional position that becomes to block, thus when pet carries out moving displacement in domestic environment, MCU can pass throughThis infrared sensing module is surveyed the movement position of pet, and the movement position of monitoring in real time pet becomesChange, to judge whether the distance between pet nest and pet is less than default triggering distance.
When MCU judge distance between pet nest and pet whether be less than default triggering apart from time,MCU can send first triggering signal of opening for triggering bluetooth module to bluetooth module immediately,Also send second triggering signal of opening for triggering WI-FI module to WI-FI module simultaneously.
When above-mentioned the first triggering signal is sent to after bluetooth module, can trigger bluetooth module and open immediately,Switch to duty. Because the distance between pet and pet nest is now less than default triggering distance,Be in the maximum communication distance supported in bluetooth module of pet, and bluetooth module is by user'sPre-configuredly match with being worn on pet intelligent pet nameplate with it, therefore bluetooth module canSet up bluetooth with intelligent pet nameplate immediately and be connected, then start exercise data synchronously integrated, based on this indigo plantThe exercise data that tooth connects the pet that intelligent pet nameplate has been collected is synchronized to pet nest this locality.
Meanwhile, when above-mentioned the second triggering signal is sent to after WI-FI module, can trigger WI-FIModule is opened immediately, switches to duty. Now WI-FI module can be by appointment and the road of accessSet up wireless connections by device and server, bluetooth module has been synchronized to the exercise data of local petUpload onto the server.
It may be noted that time, the MCU of pet nest, at the above-mentioned decision logic of operation, judges with petDistance whether be less than default triggering apart from time, except the implementation illustrating above, can also haveOther implementation; For example, all right installation infrared lamp in pet nest, when pet is near pet nest,After the infrared light that infrared lamp is sent causes and blocks, now MCU can determine between pet nest and petDistance be less than default triggering distance. To this, the disclosure describes in detail no longer one by one.
In this example, after bluetooth module is opened, in the synchronous process of carrying out exercise data, bluetoothThe Bluetooth frame that the intelligent pet nameplate that module can be worn by reception pet sends, determines pet nestAnd the distance between pet. Now pet nest will no longer come really based on Weighing module or infrared sensing moduleDetermine the distance between pet nest and pet.
Due in the synchronous process of exercise data, the movement position of pet may change, such asPet is constantly away from pet nest, and the distance between pet and pet nest exceeds bluetooth module and supportsWhen large transmission range, can cause the transfer of data between bluetooth module and intelligent pet nameplate to interrupt, thereforeBluetooth module is carrying out in process that exercise data synchronizes, if bluetooth module cannot with intelligent pet nameplateReceive while receiving again the Bluetooth frame that intelligent pet nameplate sends, now may be because the movement of pet causesDistance between pet and pet nest has exceeded the maximum transmission distance that bluetooth module is supported, in this feelingsUnder condition, MCU can be immediately sends one for the 3rd touching of triggering that bluetooth module closes to bluetooth moduleSignal, and send a 4th triggering letter of closing for triggering WI-FI module to WI-FI moduleNumber.
When the 3rd triggering signal is sent to after bluetooth module, can trigger bluetooth module close immediately intoEnter resting state. When the 4th triggering signal is sent to after WI-FI module, can trigger WI-FI mouldPiece is closed immediately and is entered resting state. Visible, in this way, can reduce the power consumption of pet nest.
After bluetooth module and WI-FI module are closed, the now fortune between pet nest and intelligent pet nameplateMoving data sync break, when MCU judges pet nest and pet again by moving above-mentioned decision logicBetween distance be less than default triggering apart from time, reopen bluetooth module and WI-FI module so thatObtain bluetooth module the exercise data synchronously not completing is resumed, WI-FI module will not be uploaded to serviceThe exercise data of device is proceeded to upload.
In this example, the exercise data of pet intelligent pet nameplate having been collected when bluetooth module is completePortion is synchronized to behind this locality, and in order farthest to reduce the power consumption of pet nest, now MCU also can standSend the 3rd triggering signal of closing for triggering bluetooth module to bluetooth module. When the 3rd touchSignalling is sent to after bluetooth module, can trigger bluetooth module and close immediately and carry out resting state.
Same, when being synchronized to local exercise data by WI-FI module, all successfully uploads bluetooth moduleTo server, now MCU also can send one for triggering WI-FI to WI-FI module immediatelyThe 4th triggering signal that module is closed. When the 4th triggering signal is sent to after WI-FI module, canTriggering WI-FI module is closed immediately and is carried out resting state.
Visible, in this way, bluetooth module and WI-FI module that pet nest can be based on integrated,The exercise data of the pet that the intelligent pet nameplate of automatically pet being worn collects uploads onto the server,In the time that user need to be synchronized to smart mobile phone by the exercise data of pet, can directly use smart mobile phone to incite somebody to actionThe exercise data remote download of the pet of storing on server, to local, therefore there will not be due to transmission distanceFrom restriction and cause cannot synchrodata situation.
And, in the synchronous process of data, do not need loaded down with trivial details set up bluetooth with intelligent pet nameplate and connectConnect, for the elderly colony, also can skilled operation, by client software one key in smart mobile phoneThe exercise data of pet on server is downloaded to this locality.
In addition, user is using smart mobile phone that the exercise data of the pet of storing on server is synchronized to this, can carry out transfer of data by the wireless network such as such as WI-FI network, therefore data are synchronous when on the groundSpeed has obvious advantage compared to short-distance wireless communications such as bluetooths, can save data synchronous timeBetween.
In above embodiment, whether pet nest is less than default triggering distance by judgement and the distance of petFrom, and when with the distance of described pet be less than default triggering apart from time, trigger first communication module willThe exercise data of the described pet that described exercise data acquisition device collects is synchronized to this locality; And triggerSecond communication module is synchronized to local described exercise data by first communication module and is uploaded to described server,The exercise data of having realized the pet that can collect exercise data acquisition device by pet nest carries out certainlyMove synchronous and upload onto the server, thereby can avoid user to use intelligent mobile terminal to adopt exercise dataThe exercise data of the pet that acquisition means collects carries out manual synchronization.
As shown in Figure 2, Fig. 2 gathers pet motions number according to the another kind shown in an exemplary embodimentAccording to method, the method is applied in pet nest, wherein this pet nest comprises with to be preset in pet health pre-If the exercise data acquisition device at position carries out first communication module and the server of short-distance wireless communicationCarry out second communication module and Weighing module or the infrared induction module of radio communication, said method bagDraw together following steps:
In step 201A, in the time that described pet nest comprises Weighing module, adopt by described Weighing moduleCollect the weight of described pet nest;
In step 202A, the described the weight whether weight of pet nest increases based on collecting judges instituteWhether the weight of stating pet nest increases;
In step 203A, in the time that the weight of described pet nest increases, determine the distance with described petBe less than default triggering distance;
In step 201B, in the time that described pet nest comprises infrared induction module, by described infrared biographySense module is carried out infrared acquisition for described pet;
In step 202B, the result based on described infrared acquisition is obtained the distance with described pet;
In step 203B, whether judgement is less than default triggering distance with the distance of described pet;
Wherein, above-mentioned steps 201A to 203A and above-mentioned steps 201B to 203B are step arranged side by side,The skill that the technical scheme that above-mentioned steps 201A to 203A records and above-mentioned steps 201B to 203B recordArt scheme is technical scheme arranged side by side, can replace.
In step 204, when with the distance of described pet be less than default triggering apart from time, to describedOne communication module sends for first triggering signal of opening described first communication module, to trigger described theOne communication module after unlatching, the motion number of the described pet that described exercise data acquisition device is collectedAccording to being synchronized to this locality; And send for opening described second communication module to described second communication moduleThe second triggering signal, to trigger described second communication module after unlatching, described first communication module is sameStep to local described exercise data is uploaded to described server.
Above-mentioned pet nest can comprise having the intelligent hardware that activity space function is provided for pet, Ke YitongCross integrated above-mentioned first communication module and second communication module, with the fortune that is preset in the default position of pet healthMoving data acquisition unit is used in conjunction with, the fortune of the pet that above-mentioned exercise data acquisition device is collectedMoving data are synchronized to this locality, and are automatically uploaded to the server of appointment.
Above-mentioned exercise data acquisition device can comprise and is worn on pet with it for gathering the motion number of petAccording to intelligent hardware; For example, this exercise data acquisition device can be intelligent pet nameplate, such as intelligenceCan dog tag.
Above-mentioned first communication module can comprise the short-range wireless communication module of low-power consumption. Illustrate oneIn kind of embodiment, this first communication module can comprise bluetooth module (such as Bluetooth chip) orZigbee module (such as Zigbee chip).
This first communication module can be set up short-distance wireless communication with above-mentioned exercise data acquisition device and be connected,Carry out short-distance wireless communication with above-mentioned exercise data acquisition device, with by above-mentioned exercise data acquisition deviceThe exercise data of the pet collecting is synchronized to pet nest this locality.
For example, when above-mentioned first communication module is bluetooth module, above-mentioned exercise data acquisition device is intelligenceWhen pet nameplate, can be carried out pet nest by user pre-configured, by carrying out indigo plant with intelligent pet nameplateTooth pairing is set up bluetooth and is connected, and intelligent pet nameplate can be connected and intelligent pet inscription based on this bluetoothBoard carries out short-distance wireless communication, and the exercise data of the pet that intelligent pet nameplate is collected is synchronized to thisGround.
Above-mentioned second communication module can comprise the wireless communication module that carries out radio communication with server. ?In a kind of embodiment illustrating, this second communication module can comprise WI-FI module.
This second communication module can be set up wireless connections with server and carry out remote radio communication. For example,In the time that above-mentioned second communication module is WI-FI module, this WI-FI module can be based on user configuredThe router that the title of WI-FI network and password access are specified, then sets up by router and serverWireless connections.
Wherein, in order farthest to reduce power consumption, above-mentioned pet nest in daily work, above-mentioned theOne communication module and second communication module can be defaulted as closed condition.
In addition, above-mentioned pet nest, except above-mentioned first communication module and second communication module, can also compriseDefault processor. In a kind of embodiment illustrating, this processor can comprise MCU (MicroControllerUnit, micro-control unit).
This processor can be controlled by the decision logic loading shown in above-mentioned steps 101 to 102Making the first communication unit and second communication unit carries out with above-mentioned exercise data acquisition device and server respectivelyCommunication, the exercise data of the pet that above-mentioned exercise data acquisition device is collected is synchronized to this locality, thenUpload onto the server.
Taking above-mentioned first communication module as bluetooth module, above-mentioned second communication module is WI-FI module below,Above-mentioned exercise data acquisition device is that to be worn on pet intelligent pet nameplate be with it that example describes.
In this example, under original state, user can carry out pre-configured to pet nest. Wherein, forPet nest carry out pre-configured comprise carry out for the bluetooth module of pet nest pre-configured, and for pet nestWI-FI module carry out pre-configured.
On the one hand, user can carry out the bluetooth module of pet nest pre-configured, with same integrated bluetoothThe intelligent pet nameplate of module carries out Bluetooth pairing, when after Bluetooth pairing success, and the bluetooth module of pet nestIn environment, scan around after intelligent pet nameplate, can be automatically and intelligent pet nameplate set up bluetooth and connectConnect.
For example, in home environment, be worn on after pet intelligent pet nameplate unlatching with it other indigo plantTooth equipment detects this intelligent pet nameplate by the Bluetooth frame that receives this intelligent pet nameplate and send. UserIn the time that the bluetooth module in pet nest carries out Bluetooth pairing, can access pet nest by smart mobile phone,Then in the bluetooth equipment having scanned of exporting in the configuration interface of pet nest, find and wish to carry out indigo plantThe intelligent pet nameplate of tooth configuration, then manually carries out Bluetooth pairing.
On the other hand, user can also need the WI-FI network connecting for pet nest configuration, makes petNest can be set up wireless connections based on user configured WI-FI network and given server, enters with serverRow data interaction. Wherein, the reference address of this given server can be after pet nest dispatches from the factory, acquiescenceBe carried in the memory space of pet nest MCU, or the reference address of this given server also can be byUser carries out manual configuration.
For example, in the time realizing, user can access pet nest by smart mobile phone, in the configuration of pet nestIn interface, input needs title and the password of the WI-FI network connecting, after input completes, pet nestWI-FI module can title and password based on user configured WI-FI network access the router of specifying.When after the router that pet nest access is specified, the visit that can read server from the memory space of MCUAsk address, or read the reference address of the server of user's manual configuration, set up wireless with this serverConnect.
In this example, when user is to pet nest after pre-configured completing, now the MCU of pet nest can transportThe decision logic of row shown in above-mentioned steps 201A to 204, judge with the distance of pet whetherBe less than default triggering distance, and judge with the distance of pet be less than default triggering apart from time, controlBluetooth module processed and WI-FI communicate with intelligent pet nameplate and server respectively, and intelligent pet is engravedThe exercise data of the pet that board collects is synchronized to this locality, then uploads onto the server.
Wherein, above-mentioned default triggering distance can comprise the maximum communication distance that bluetooth module is supported.Certainly,, in the time realizing, this default triggering distance also can be carried out separately according to actual demand by userArrange, in the disclosure, do not limit especially.
In this example, the MCU of pet nest, at the above-mentioned decision logic of operation, judges the distance with petWhether be less than default triggering apart from time, can have different implementations.
In one implementation, above-mentioned pet nest is except bluetooth module, WI-FI module and MCUIn addition, all right integrated Weighing module, this Weighing module enters for the pet password that pet nest is heldRow is weighed.
Wherein, in the time realizing, this Weighing module can comprise LOAD CELLS, weighing and sensing chip orAny one in weighing and sensing circuit.
In this example, this Weighing module can be arranged at the bottom, space of pet nest, and MCU can be by being somebody's turn to doWeighing module gathers the weight of pet nest, then the weight of the real-time monitoring pet nest of the weight based on collectingWhether quantitative change, increase with the weight that judges pet nest.
While increase due to the weight of pet nest, normally because pet enters pet nest, pet nest load-bearing is ledCause, therefore, in the time that MCU judges the weight increase of pet nest, show that pet may enterPet nest, now the distance of pet nest and pet is necessarily less than default triggering distance. In this case,The weight of judging pet nest as MCU increases, MCU can be immediately to bluetooth module send one forTrigger the first triggering signal that bluetooth module is opened, also send one for triggering to WI-FI module simultaneouslyThe second triggering signal that WI-FI module is opened.
When above-mentioned the first triggering signal is sent to after bluetooth module, can trigger bluetooth module and open immediately,Switch to duty. Because the distance between pet and pet nest is now less than default triggering distance,And bluetooth module by user pre-configured be worn on pet intelligent pet nameplate with it and carried outPairing, therefore bluetooth module can be set up bluetooth with intelligent pet nameplate immediately and is connected, then starts and movesData are synchronously integrated, connect the motion number of the pet that intelligent pet nameplate has been collected based on this bluetoothAccording to being synchronized to pet nest this locality.
Meanwhile, when above-mentioned the second triggering signal is sent to after WI-FI module, can trigger WI-FIModule is opened immediately, switches to duty. Now WI-FI module can be by appointment and the road of accessSet up wireless connections by device and server, bluetooth module has been synchronized to the exercise data of local petUpload onto the server.
Wherein, when the exercise data that bluetooth module collects intelligent pet nameplate is synchronized to pet nest this locality,This exercise data can be carried out to buffer memory in this locality, when server sync to local all exercise datas becomeAfter merit uploads onto the server, can delete immediately the exercise data of buffer memory, by thisMode can avoid being synchronized to the too much memory space that takies MCU of local exercise data, to MCUOperation impact.
In another kind of implementation, above-mentioned pet nest is except bluetooth module, WI-FI module and MCUIn addition, all right integrated infrared sensing module, this infrared sensing module can be for carrying out infrared to petSurvey, the infrared-ray sending by surveying pet self, surveys the movement position of pet, fromAnd can the result based on infrared acquisition determine the distance between pet nest and pet.
Wherein, in the time realizing, this infrared sensing module can comprise infrared detection sensor, infrared acquisitionAny one in sensing chip or infrared acquisition sensing circuit.
In this example, this infrared sensing module can be arranged on pet nest and can not make infrared sensing moduleThe optional position that becomes to block, thus when pet carries out moving displacement in domestic environment, MCU can pass throughThis infrared sensing module is surveyed the movement position of pet, and the movement position of monitoring in real time pet becomesChange, to judge whether the distance between pet nest and pet is less than default triggering distance.
When MCU judge distance between pet nest and pet whether be less than default triggering apart from time,MCU can send first triggering signal of opening for triggering bluetooth module to bluetooth module immediately,Also send second triggering signal of opening for triggering WI-FI module to WI-FI module simultaneously.
When above-mentioned the first triggering signal is sent to after bluetooth module, can trigger bluetooth module and open immediately,Switch to duty. Because the distance between pet and pet nest is now less than default triggering distance,Be in the maximum communication distance supported in bluetooth module of pet, and bluetooth module is by user'sPre-configuredly match with being worn on pet intelligent pet nameplate with it, therefore bluetooth module canSet up bluetooth with intelligent pet nameplate immediately and be connected, then start exercise data synchronously integrated, based on this indigo plantThe exercise data that tooth connects the pet that intelligent pet nameplate has been collected is synchronized to pet nest this locality.
Meanwhile, when above-mentioned the second triggering signal is sent to after WI-FI module, can trigger WI-FIModule is opened immediately, switches to duty. Now WI-FI module can be by appointment and the road of accessSet up wireless connections by device and server, bluetooth module has been synchronized to the exercise data of local petUpload onto the server.
It may be noted that time, the MCU of pet nest, at the above-mentioned decision logic of operation, judges with petDistance whether be less than default triggering apart from time, except the implementation illustrating above, can also haveOther implementation; For example, all right installation infrared lamp in pet nest, when pet is near pet nest,After the infrared light that infrared lamp is sent causes and blocks, now MCU can determine between pet nest and petDistance be less than default triggering distance. To this, the disclosure describes in detail no longer one by one.
In this example, after bluetooth module is opened, in the synchronous process of carrying out exercise data, bluetoothThe Bluetooth frame that the intelligent pet nameplate that module can be worn by reception pet sends, determines pet nestAnd the distance between pet. Now pet nest will no longer come really based on Weighing module or infrared sensing moduleDetermine the distance between pet nest and pet.
Due in the synchronous process of exercise data, the movement position of pet may change, such asPet is constantly away from pet nest, and the distance between pet and pet nest exceeds bluetooth module and supportsWhen large transmission range, can cause the transfer of data between bluetooth module and intelligent pet nameplate to interrupt, thereforeBluetooth module is carrying out in process that exercise data synchronizes, if bluetooth module cannot with intelligent pet nameplateReceive while receiving again the Bluetooth frame that intelligent pet nameplate sends, now may be because the movement of pet causesDistance between pet and pet nest has exceeded the maximum transmission distance that bluetooth module is supported, in this feelingsUnder condition, MCU can be immediately sends one for the 3rd touching of triggering that bluetooth module closes to bluetooth moduleSignal, and send a 4th triggering letter of closing for triggering WI-FI module to WI-FI moduleNumber.
When the 3rd triggering signal is sent to after bluetooth module, can trigger bluetooth module close immediately intoEnter resting state. When the 4th triggering signal is sent to after WI-FI module, can trigger WI-FI mouldPiece is closed immediately and is entered resting state. Visible, in this way, can reduce the power consumption of pet nest.
After bluetooth module and WI-FI module are closed, the now fortune between pet nest and intelligent pet nameplateMoving data sync break, when MCU judges pet nest and pet again by moving above-mentioned decision logicBetween distance be less than default triggering apart from time, reopen bluetooth module and WI-FI module so thatObtain bluetooth module the exercise data synchronously not completing is resumed, WI-FI module will not be uploaded to serviceThe exercise data of device is proceeded to upload.
In this example, the exercise data of pet intelligent pet nameplate having been collected when bluetooth module is completePortion is synchronized to behind this locality, and in order farthest to reduce the power consumption of pet nest, now MCU also can standSend the 3rd triggering signal of closing for triggering bluetooth module to bluetooth module. When the 3rd touchSignalling is sent to after bluetooth module, can trigger bluetooth module and close immediately and carry out resting state.
Same, when being synchronized to local exercise data by WI-FI module, all successfully uploads bluetooth moduleTo server, now MCU also can send one for triggering WI-FI to WI-FI module immediatelyThe 4th triggering signal that module is closed. When the 4th triggering signal is sent to after WI-FI module, canTriggering WI-FI module is closed immediately and is carried out resting state.
Visible, in this way, bluetooth module and WI-FI module that pet nest can be based on integrated,The exercise data of the pet that the intelligent pet nameplate of automatically pet being worn collects uploads onto the server,In the time that user need to be synchronized to smart mobile phone by the exercise data of pet, can directly use smart mobile phone to incite somebody to actionThe exercise data remote download of the pet of storing on server, to local, therefore there will not be due to transmission distanceFrom restriction and cause cannot synchrodata situation.
And, in the synchronous process of data, do not need loaded down with trivial details set up bluetooth with intelligent pet nameplate and connectConnect, for the elderly colony, also can skilled operation, by client software one key in smart mobile phoneThe exercise data of pet on server is downloaded to this locality.
In addition, user is using smart mobile phone that the exercise data of the pet of storing on server is synchronized to this, can carry out transfer of data by the wireless network such as such as WI-FI network, therefore data are synchronous when on the groundSpeed has obvious advantage compared to short-distance wireless communications such as bluetooths, can save data synchronous timeBetween.
In above embodiment, whether pet nest is less than default triggering distance by judgement and the distance of petFrom, and when with the distance of described pet be less than default triggering apart from time, trigger first communication module willThe exercise data of the described pet that described exercise data acquisition device collects is synchronized to this locality; And triggerSecond communication module is synchronized to local described exercise data by first communication module and is uploaded to described server,The exercise data of having realized the pet that can collect exercise data acquisition device by pet nest carries out certainlyMove synchronous and upload onto the server, thereby can avoid user to use intelligent mobile terminal to adopt exercise dataThe exercise data of the pet that acquisition means collects carries out manual synchronization.
Embodiment is corresponding with preceding method, and the disclosure also provides the device embodiment of pet nest.
The disclosure also provides a kind of pet nest, and described pet nest comprises:
Processor;
For the memory of storage of processor executable instruction;
Lead to for carrying out short-distance wireless with the exercise data acquisition device that is preset in the default position of pet healthThe first communication module of letter; And
Be used for carrying out with server the second communication module of radio communication;
Wherein, described processor is configured to:
Whether judgement is less than default triggering distance with the distance of described pet;
When with the distance of described pet be less than default triggering apart from time, trigger first communication module will described inThe exercise data of the described pet that exercise data acquisition device collects is synchronized to this locality; And
Triggering second communication module is synchronized to local described exercise data by first communication module and is uploaded to instituteState server.
Fig. 3 is according to the hardware structure diagram of a kind of pet nest shown in an exemplary embodiment.
As shown in Figure 3, according to a kind of pet nest 30 shown in an exemplary embodiment, this pet nest 30Can comprise first communication module 301, second communication module 302, processor 303;
First communication module 301, is configured to adopt with the exercise data that is preset in the default position of pet healthAcquisition means carries out short-distance wireless communication;
Second communication module 302, is configured to carry out radio communication with server;
Processor 303, is configured to judgement and whether is less than default triggering distance with the distance of pet, when withThe distance of pet be less than default triggering apart from time, trigger first communication module 301 by exercise data acquisitionThe exercise data of the pet that device collects is synchronized to this locality; And trigger second communication module 302 by theOne communication module is synchronized to local exercise data and uploads onto the server.
Refer to Fig. 4, in a kind of embodiment illustrating, except first communication module 301, second logicalBeyond letter module 302, processor 303, pet nest 30 can also comprise Weighing module 304.
Wherein, Weighing module 304, is configured to gather the weight of pet nest.
The weight that processor 303 can collect based on Weighing module 304 judges that the weight of pet nest isNo increase, in the time that the weight of pet nest increases, processor 303 is determined and the distance of pet is less than defaultTrigger distance, can trigger pet that first communication module 301 collects exercise data acquisition deviceExercise data is synchronized to this locality; And triggering second communication module 302 is synchronized to this by first communication moduleThe exercise data on ground uploads onto the server.
Refer to Fig. 5, in the another kind of embodiment illustrating, except first communication module 301, secondBeyond communication module 302, processor 303, pet nest 30 can also comprise infrared sensing module 305.
Wherein, infrared sensing module 305, is configured to carry out infrared acquisition for pet.
Processor 303 can be based on infrared sensing module 305 infrared acquisition result, obtain pet nestWith the distance of pet, and judge whether the distance of pet nest and pet is less than default triggering distance, when locatingReason device 303 is judged with the distance of pet and is less than default triggering distance, can trigger first communication moduleThe exercise data of 301 pets that exercise data acquisition device is collected is synchronized to this locality; And trigger theTwo communication modules 302 are synchronized to local exercise data by first communication module and upload onto the server.
In this example, first communication module 301 and second communication module 302 can be given tacit consent to be and close shapeState, thus the power consumption of pet nest 30 reduced as much as possible.
Determine with the distance of pet and be less than after default triggering distance when processor 303, can be logical to firstThe first triggering signal that letter module 301 sends for opening first communication module 301, logical to trigger firstLetter module 301 is after unlatching, and the exercise data of the pet that exercise data acquisition device is collected is synchronized toLocal.
Meanwhile, determine with the distance of pet and be less than after default triggering distance when processor 303, all rightThe second triggering signal sending for opening second communication module 302 to second communication module 302, to touchSend out second communication module 302 after unlatching, first communication module 301 is synchronized to local exercise dataUpload onto the server.
In this example, the fortune of pet exercise data acquisition device being collected when first communication module 301Moving data are successfully synchronized to behind this locality, and processor 303 can send for closing to first communication module 301Close the 3rd triggering signal of first communication module 301, to close first communication module 301.
When being synchronized to local exercise data by second communication module 302, successfully goes up first communication module 301Reach server, processor 303 can send and be used for cutting out second communication mould to second communication module 302The 4th triggering signal of piece 302, to close second communication module 302.
In this example, trigger distance and comprise the maximum communication distance that first communication module is supported;
Judge with the distance of pet and be greater than the maximum that first communication module 302 is supported when processor 303When communication distance, processor 303 also can send and be used for cutting out the first communication to first communication module 301The 3rd triggering signal of module 301, to close first communication module 301; And to second communication module302 send the 4th triggering signal for closing second communication module 302, to close second communication module302, thus the power consumption of pet nest 30 reduced to greatest extent.
Wherein, in this example, first communication module 301 can comprise bluetooth module or Zigbee module,Such as Bluetooth chip or Zigbee chip. Second communication module 302 can comprise WI-FI module, thanAs WI-FI chip. Processor 303 can comprise MCU. Weighing module 304 can comprise weighing and sensingAny one in device, weighing and sensing chip or weighing and sensing circuit. Infrared sensing module 305 canComprise any one in infrared sensor, infrared sensing chip or infrared sensing circuit.
Refer to Fig. 6, Fig. 6 is the hardware knot according to the another kind of pet nest shown in an exemplary embodimentComposition.
As shown in Figure 6, according to a kind of pet nest 60 shown in an exemplary embodiment, this pet nest 60Can comprise bluetooth module 601, WI-FI module 602, MCU603 and LOAD CELLS 604.
Wherein, bluetooth module 601, is configured to and the intelligent pet that is preset in the default position of pet healthNameplate carries out Bluetooth communication;
WI-FI module 602, is configured to carry out WI-FI radio communication with server;
LOAD CELLS 304, is configured to gather the weight of pet nest.
In this example, bluetooth module 601, WI-FI module 602 acquiescences are closed condition. MCU603The weight that can collect based on LOAD CELLS 604, judges whether the weight of pet nest increases, whenWhen the weight of pet nest increases, MCU603 can send and be used for opening bluetooth module to bluetooth module 601The first triggering signal of 601, to trigger bluetooth module 601 after unlatching, gathers intelligent pet nameplateTo the exercise data of pet be synchronized to this locality. Meanwhile, in the time that the weight of pet nest increases, MCU603Second triggering signal that can also send for opening WI-FI module 602 to WI-FI module 602, withTrigger WI-FI module 602 after unlatching, bluetooth module 601 is synchronized to local exercise data and uploadsTo server.
The exercise data of pet intelligent pet nameplate being collected when bluetooth module 601 is successfully synchronized to thisBehind ground, the 3rd triggering that MCU603 can send for closing bluetooth module 601 to bluetooth module 601Signal, to close bluetooth module 601.
Meanwhile, when being synchronized to local exercise data by WI-FI module 602, successfully goes up bluetooth module 601Reach server, MCU603 can send and be used for closing WI-FI module 602 to WI-FI module 602The 4th triggering signal, to close WI-FI module 602.
In this example, bluetooth module 601 is carrying out in the synchronous process of data, when MCU603 judgesWhile being greater than with the distance of pet the maximum communication distance that bluetooth module 601 supports, MCU603 also canThe 3rd triggering signal sending for closing bluetooth module 601 to bluetooth module 601, to close bluetooth mouldPiece 601; Meanwhile, MCU603 also can send and be used for closing WI-FI module to WI-FI module 602602 the 4th triggering signal, to close WI-FI module 602, thereby reduces pet nest to greatest extent60 power consumption.
Refer to Fig. 7, Fig. 7 is the hardware knot according to the another kind of pet nest shown in an exemplary embodimentComposition.
As shown in Figure 7, according to a kind of pet nest 70 shown in an exemplary embodiment, this pet nest 70Can comprise bluetooth module 701, WI-FI module 702, MCU703 and infrared sensor 704.
Wherein, bluetooth module 701, is configured to and the intelligent pet that is preset in the default position of pet healthNameplate carries out Bluetooth communication;
WI-FI module 702, is configured to carry out WI-FI radio communication with server;
Infrared sensor 703, is configured to carry out infrared acquisition for pet, to determine the motion of petPosition.
In this example, bluetooth module 701, WI-FI module 702 acquiescences are closed condition. MCU703Infrared acquisition result that can be based on infrared sensor 704, obtains the distance of pet nest and pet, andWhether the distance that judges pet nest and pet is less than default triggering distance, when the distance of pet nest and petWhether be less than default triggering apart from time, MCU703 can send and be used for opening indigo plant to bluetooth module 701The first triggering signal of tooth module 701, to trigger bluetooth module 701 after unlatching, engraves intelligent petThe exercise data of the pet that board collects is synchronized to this locality. Meanwhile, when the distance of pet nest and pet whetherBe less than default triggering apart from time, MCU703 can also send for opening to WI-FI module 702The second triggering signal of WI-FI module 702, to trigger WI-FI module 702 after unlatching, by bluetoothModule 701 is synchronized to local exercise data and uploads onto the server.
The exercise data of pet intelligent pet nameplate being collected when bluetooth module 701 is successfully synchronized to thisBehind ground, the 3rd triggering that MCU703 can send for closing bluetooth module 701 to bluetooth module 701Signal, to close bluetooth module 701.
Meanwhile, when being synchronized to local exercise data by WI-FI module 702, successfully goes up bluetooth module 701Reach server, MCU703 can send and be used for closing WI-FI module 702 to WI-FI module 702The 4th triggering signal, to close WI-FI module 702.
In this example, bluetooth module 701 is carrying out in the synchronous process of data, when MCU703 judgesWhile being greater than with the distance of pet the maximum communication distance that bluetooth module 701 supports, MCU703 also canThe 3rd triggering signal sending for closing bluetooth module 701 to bluetooth module 701, to close bluetooth mouldPiece 701; Meanwhile, MCU703 also can send and be used for closing WI-FI module to WI-FI module 702702 the 4th triggering signal, to close WI-FI module 702, thereby reduces pet nest to greatest extent70 power consumption.
Those skilled in the art are considering description and are putting into practice after invention disclosed herein, will easily expect thisDisclosed other embodiment. The application is intended to contain any modification of the present disclosure, purposes or adaptabilityChange, these modification, purposes or adaptations are followed general principle of the present disclosure and are comprised these public affairsOpen undocumented common practise or conventional techniques means in the art. Description and embodiment only byBe considered as exemplary, true scope of the present disclosure and spirit pointed out by claim below.
Should be understood that, the disclosure is not limited to essence described above and illustrated in the accompanying drawingsReally structure, and can carry out various amendments and change not departing from its scope. The scope of the present disclosure only byAppended claim limits.