Disclosure of Invention
The invention mainly aims to provide a control method, a device and equipment for pet wearing equipment, which aim to enlarge the control range of the pet wearing equipment and improve the reliability and stability of control.
To achieve the above object, in a first aspect, the present invention provides a method for controlling a pet wearable device, including:
the method comprises the steps of obtaining the position of a pet wearing device, wherein a positioning module is integrated in the pet wearing device and used for obtaining position information and uploading the position information to a server;
Respectively calculating a close-range control terminal, a medium-range control terminal and communication distances between the long-range control terminal and the pet wearing equipment according to the uploaded positions of the pet wearing equipment;
The method comprises the steps of comparing the calculated communication distance with preset long-distance, medium-distance and short-distance thresholds respectively, establishing communication connection between the pet wearing equipment and the short-distance control terminal if the communication distance is smaller than the short-distance threshold, establishing communication connection between the pet wearing equipment and the medium-distance control terminal if the communication distance is larger than the short-distance threshold and smaller than the long-distance threshold, establishing communication connection between the pet wearing equipment and the long-distance control terminal if the communication distance is larger than the long-distance threshold, and integrating a plurality of wireless communication modules in the pet wearing equipment.
With reference to the first aspect, in a possible implementation manner, the step of obtaining a position of the pet wearable device includes:
Scanning wireless signals sent out by the pet wearing equipment;
And sending ranging information to a server according to the wireless signal so that the server can position the pet wearing equipment.
With reference to the first aspect, in a possible implementation manner, the step of calculating the communication distances between the close range control terminal, the medium range control terminal, and the long range control terminal and the pet wearable device according to the uploaded positions of the pet wearable device includes:
Acquiring position information and a signal intensity value at the current moment, which correspond to a close-range control terminal, a medium-range control terminal and a long-range control terminal respectively;
denoising the signal intensity values of the short-distance control terminal, the medium-distance control terminal and the long-distance control terminal respectively to obtain the processed signal intensity values;
And respectively determining the distances between the pet wearing equipment and the short-distance control terminal, the middle-distance control terminal and the long-distance control terminal according to the processed signal intensity values corresponding to the short-distance control terminal, the middle-distance control terminal and the long-distance control terminal.
With reference to the first aspect, in a possible implementation manner, when the communication distance is smaller than the close-range threshold, and the pet wearing device establishes communication connection with the close-range control terminal, the method further comprises that a medium-range control terminal establishes communication connection with the close-range control terminal, and the medium-range control terminal receives and stores data sent by the close-range control terminal.
To achieve the above object, in a second aspect, the present invention provides a pet wearing device control apparatus, comprising:
The position acquisition module is used for acquiring the position of the pet wearing equipment, integrating the positioning module in the pet wearing equipment and uploading the position information to the server;
the data processing module is used for respectively calculating the communication distances among the short-distance control terminal, the medium-distance control terminal and the long-distance control terminal and the pet wearing equipment according to the uploaded positions of the pet wearing equipment;
The intelligent switching module is used for comparing the calculated communication distance with preset long-distance, medium-distance and short-distance thresholds respectively, if the communication distance is smaller than the short-distance threshold, the pet wearing equipment is connected with the short-distance control terminal in a communication mode, if the communication distance is larger than the short-distance threshold and smaller than the long-distance threshold, the pet wearing equipment is connected with the medium-distance control terminal in a communication mode, if the communication distance is larger than the long-distance threshold, the pet wearing equipment is connected with the long-distance control terminal in a communication mode, and a plurality of wireless communication modules are integrated in the pet wearing equipment.
In one possible implementation, the close-range control terminal comprises an intelligent ring and an intelligent bracelet, the medium-range control terminal comprises a handheld terminal, and the long-range control terminal comprises a special training instrument and a computer.
In one possible implementation manner, the close-range control terminal, the medium-range control terminal and the long-range control terminal comprise one or more of the following control contents:
Acquiring a voice command recognizable by a pet, wherein the voice command includes an ultrasonic command unrecognizable by human ears;
Managing and training the pets using voice commands;
positioning and alarming the pet by utilizing the wireless signal;
and the search for the pet is realized by combining a sound command and a wireless area positioning technology.
In one possible implementation, the intelligent wearable device comprises at least one of an ultrasonic module, a buzzer module, an LED indication module, a vibration module, and a slight electric shock module, wherein
The ultrasonic module sends out ultrasonic prompts according to the control content;
The buzzer module sends out a buzzing prompt according to the control content;
The LED indication module generates a light prompt according to the control content;
The first vibration module generates a vibration prompt according to the control content;
the slight electric shock module generates a slight current prompt according to the control content.
To achieve the above object, in a third aspect, the present invention provides an apparatus comprising a processor and a memory coupled to the processor, the memory for storing computer program code, the computer program code comprising computer instructions which, when read from the memory by the processor, cause the electronic apparatus to perform the pet wearing apparatus control method as described in the first aspect or any one of the possible implementation manners of the first aspect.
According to the technical scheme, the position of the pet wearing equipment is obtained, position information is uploaded to the server, the server calculates communication distances between each control terminal and the pet wearing equipment according to the uploaded position of the pet wearing equipment, the calculated communication distances are compared with preset long, medium and short thresholds respectively, if the communication distances are smaller than the short-distance threshold, the short-distance control terminal is adopted, if the communication distances are larger than the short-distance threshold and smaller than the long-distance threshold, the medium-distance control terminal is adopted, and if the communication distances are larger than the long-distance threshold, the long-distance control terminal is adopted. The method can automatically select proper communication technology according to the distance, ensure that high-efficiency communication can be realized under different distances, realize low-power consumption technology in short distance, use more proper technology in long distance, be favorable for prolonging the service life of the battery of the pet wearing equipment, support different types of control terminals at different distances, and improve the flexibility and convenience of users.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In view of the problems of the background art, in a first aspect, referring to fig. 1 in combination, the present invention provides a control method for a pet wearable device, including the following steps:
S10, acquiring the position of the pet wearing equipment, wherein a positioning module is integrated in the pet wearing equipment and used for acquiring the position information and uploading the position information to a server.
In this step, a GPS or GNSS (Global Navigation SATELLITE SYSTEM ) module may be integrated in the pet wearable device, for obtaining the location information, and uploading the location data to the control terminal or cloud server through wireless communication technology (such as BLE, wi-Fi, loRa) periodically or in real time. In this embodiment, the server may be a cloud server, and the cloud server is pre-established and is configured to receive, process and store the position data, and provide an API interface for the mobile application or the smart home center to call, so as to view the position information of the smart collar in real time through an application program of the mobile application or the smart home center.
S20, calculating communication distances among the close-range control terminal, the middle-range control terminal and the long-range control terminal according to the uploaded positions of the pet wearing equipment.
In this step, the distance between the two points is calculated according to the position information of the pet wearing device and the position information of each control terminal, and the longitude and latitude coordinates can be used to calculate the distance between the two points. The common calculation method has a HAVERSINE formula, and the detailed description is omitted herein with specific reference to the prior art.
S30, comparing the calculated communication distance with preset long-distance, medium-distance and short-distance thresholds respectively, if the communication distance is smaller than the short-distance threshold, establishing communication connection between the pet wearing equipment and the short-distance control terminal, if the communication distance is larger than the short-distance threshold and smaller than the long-distance threshold, establishing communication connection between the pet wearing equipment and the medium-distance control terminal, and if the communication distance is larger than the long-distance threshold, establishing communication connection between the pet wearing equipment and the long-distance control terminal, wherein a plurality of wireless communication modules are integrated in the pet wearing equipment.
In this step, the calculated communication distance is compared with the preset thresholds of three different communication distances, namely far, middle and near, where the thresholds may be the actual distance of the physical space, for example, the distance is defined to be greater than 100 meters, the middle distance is defined to be 10 meters to 100 meters, and the short distance is defined to be less than 10 meters, or the thresholds are set according to RSSI (RECEIVED SIGNAL STRENGTH Indicator), and the RSSI value is inversely related to the distance, so that the distance can be determined according to the change of the RSSI. For example, a close range setting a higher RSSI threshold, e.g., -60dBm or more, a medium range setting a medium RSSI threshold, e.g., -60dBm to-80 dBm, and a long range setting a lower RSSI threshold, e.g., -80dBm or less. It should be noted that, in an actual environment, the signal may be affected by an obstacle such as a building, a tree, etc., and the accuracy of the distance estimation needs to be improved by algorithm correction or multiple detection. By comparing the communication distance with a preset communication distance threshold value, different types of control terminals are selected, and the control terminals can be exemplified as a smart watch, a smart bracelet and the like if the communication distance is smaller than the short distance threshold value, a middle-distance control terminal can be exemplified as a smart phone or a special handheld device if the communication distance is between the short distance threshold value and the long distance threshold value, and a long-distance control terminal can be exemplified as a smart home center, a computer and the like if the communication distance is larger than the long distance threshold value.
According to the method, a proper communication technology is automatically selected according to the distance, high-efficiency communication can be achieved under different distances, a low-power-consumption technology is practical at a short distance, a more proper technology is used at a long distance, the service life of a battery of the pet wearing equipment is prolonged, different types of control terminals are supported by different distances, and flexibility and convenience of users are improved. The user can select the most suitable control terminal according to the environment, such as using a smart phone indoors and using a special handheld device outdoors. Through the control of a plurality of terminals, even if a certain terminal has a problem, a user can still control through other terminals, so that the safety of pets is ensured.
With reference to the first aspect, in one possible implementation manner, the close-range control terminal, the medium-range control terminal and the long-range control terminal respectively adopt BLE, WIFI and LoRa communication protocols.
BLE is applicable to near field communication, can realize quick pairing and data exchange between pet wearing equipment and intelligent wrist-watch, bracelet or other equipment, can also use NFC communication technology, can pair or unblock fast. Wi-Fi has faster data transmission rate, but the consumption is higher, is applicable to medium-distance communication, can also use Zigbee, and Zigbee is a low-power consumption wireless communication technology, is suitable for the interconnection of devices in the home environment, can realize communication and control of medium-distance. LoRa is a long-distance and low-power consumption wireless communication technology, and is very suitable for long-distance communication scenes. Through the LoRa module, remote information transmission in the open area can be realized.
With reference to the first aspect, in one possible implementation manner, the pet wearable device includes a plurality of wireless communication modules including BLE, WIFI and LoRa.
It should be noted that, multiple wireless communication modules including BLE, wi-Fi, loRa, etc. are integrated in the pet wearable device and the control terminal (such as a smart phone), so as to support communication requirements of different distances.
In one possible embodiment, the step of obtaining the position of the pet wearable device includes:
s101, scanning wireless signals sent out by the pet wearing equipment,
S102, sending ranging information to a server according to the wireless signal so that the server can position the pet wearing equipment.
In one possible implementation manner, the step of calculating the communication distances between the close range control terminal, the medium range control terminal, and the long range control terminal and the pet wearing device according to the uploaded positions of the pet wearing device includes:
S201, acquiring position information and a signal intensity value at the current moment, which correspond to a close-range control terminal, a medium-range control terminal and a long-range control terminal respectively;
S201, denoising the signal intensity values of the short-distance control terminal, the medium-distance control terminal and the long-distance control terminal respectively to obtain the processed signal intensity values;
S201, respectively determining the distances between the pet wearing equipment and the close-range control terminal, the middle-range control terminal and the long-range control terminal according to the processed signal intensity values corresponding to the close-range control terminal, the middle-range control terminal and the long-range control terminal.
It will be appreciated that the location information of the three different range control terminals may be obtained by GPS, wi-Fi or bluetooth positioning techniques, which provide relatively accurate geographical location coordinates. The signal strength values are dynamically changing and will change over time, distance and environmental conditions. Typically, the control terminal will periodically measure and record signal strength values in order to track the position changes and status of the device or signal source in real time. The denoising method can adopt moving average filtering, weighted moving average, intermediate value filtering and the like, and each control terminal and application scene can need different denoising methods and parameter adjustment so as to adapt to specific signal characteristics and noise environments. In general, denoising processes aim to improve the accuracy and stability of signals in order to more accurately evaluate position or distance information. Distance estimation is a complex task that requires consideration of various factors and proper calibration and adjustment. In practice, it is often desirable to combine various techniques and methods to improve the accuracy and reliability of the distance estimation.
With reference to the first aspect, in a possible implementation manner, when the communication distance is smaller than the close-range threshold, and the pet wearing device establishes communication connection with the close-range control terminal, the method further comprises that a medium-range control terminal establishes communication connection with the close-range control terminal, and the medium-range control terminal receives and stores data sent by the close-range control terminal.
It can be appreciated that the close-range control terminal (such as a smart phone) establishes communication connection with the smart collar through BLE, so as to realize data transmission. Similarly, the medium-distance control terminal establishes communication connection with a remote control terminal (such as an intelligent home center and a computer) through WiFi or LoRa. Thus, the functions of data synchronization, remote control and the like can be realized. Even if a certain terminal has a problem, the user can still control through other terminals, so that the safety of the pets is ensured.
Based on the same inventive concept as the previous embodiments, the present invention provides a pet wearing device control apparatus, including:
The position acquisition module is used for acquiring the position of the pet wearing equipment, integrating the positioning module in the pet wearing equipment and uploading the position information to the server;
the data processing module is used for respectively calculating the communication distances among the short-distance control terminal, the medium-distance control terminal and the long-distance control terminal and the pet wearing equipment according to the uploaded positions of the pet wearing equipment;
The intelligent switching module is used for comparing the calculated communication distance with preset long-distance, medium-distance and short-distance thresholds respectively, if the communication distance is smaller than the short-distance threshold, the pet wearing equipment is connected with the short-distance control terminal in a communication mode, if the communication distance is larger than the short-distance threshold and smaller than the long-distance threshold, the pet wearing equipment is connected with the medium-distance control terminal in a communication mode, if the communication distance is larger than the long-distance threshold, the pet wearing equipment is connected with the long-distance control terminal in a communication mode, and a plurality of wireless communication modules are integrated in the pet wearing equipment.
It should be understood by those skilled in the art that the division of each module in the embodiment is only a division of a logic function, and all or part of the modules may be integrated onto one or more actual carriers in practical application, and the modules may be implemented in a form of being called by a processing unit through all software, or implemented in a form of all hardware, or implemented in a form of combining software and hardware, and it should be noted that, each module in the far, middle and near-distance control apparatus of the pet wearing device in the embodiment is in one-to-one correspondence with each step in the pet wearing device control method of the pet wearing device in the foregoing embodiment, so that a specific implementation of the embodiment may refer to an implementation of the pet wearing device control method of the foregoing pet wearing device and will not be repeated herein.
In one possible implementation, the close-range control terminal comprises an intelligent ring and an intelligent bracelet, the medium-range control terminal comprises a handheld terminal, and the long-range control terminal comprises a special training instrument and a computer.
In one possible implementation manner, the close-range control terminal, the medium-range control terminal and the long-range control terminal comprise one or more of the following control contents:
the technology uses sound waves (including ultrasonic waves which cannot be heard by human ears) as instructions, and can enable the pet to execute specific actions or behaviors. For example, instructions may be sent by an ultrasonic transmitter and the pet may learn to respond to the voice instructions through specific training.
The voice command can be used as a very effective training tool to help the pet learn to follow the instruction and control actions. This approach may enhance the pet's ability to understand and execute specific commands through training and feedback mechanisms.
In a possible implementation manner, the control content further includes a shortcut key definition and a usage method:
The control terminal is provided with a playing calling command key and a playing prohibition command key;
Operating a calling command playing button, and playing a calling sound command for the pet by the pet wearing equipment so that the pet immediately returns to the pet owner after hearing the command;
And operating a play prohibition command button, and playing a prohibition sound command to the pet by the pet wearing equipment so that the current action is stopped immediately after the pet hears, and the behavior of the pet is standardized.
This key may be pressed when the pet owner wishes the pet to immediately return to his own right. The pet wearing device may play a prerecorded call voice command, such as calling the pet's name or specific instructional words using the owner's voice. This sound can be familiar and in-person, helping the pet recognize and quickly return to the owner. This key may be pressed when the pet is doing bad behavior or needs to stop an action immediately. The pet wearing device may play a prerecorded prohibited sound command, such as a sound of a strict or alert nature, telling the pet to stop the current behavior or action. Such voice commands may help normalize the behavior of the pet, letting the pet recognize that certain behaviors are not allowed. By this design, the pet owner can remotely control the behavior of the pet by utilizing the voice command, thereby realizing more effective management and training. This approach combines the cognitive ability of sound with behavioral specifications and helps to establish a more harmonious and understandable relationship between the pet and the owner.
The pet is positioned and alerted by the wireless signal, and the location of the pet, such as a specific area in the home, can be determined by monitoring the wireless signal (e.g., wi-Fi signal or a dedicated wireless sensor). This technique can be used to set an electronic fence or zone limit, trigger an alarm or notify the owner when the pet is out of the set range.
The pet is found by combining the voice command and the wireless area positioning technology, and an effective searching means can be provided when the pet is lost by combining the voice command and the area positioning technology. By sending voice instructions or using positioning technology, lost pets can be quickly positioned and retrieved.
By comprehensively utilizing the technologies, the management, training and safety monitoring of the pets can be enhanced, and the communication and interaction effects between the pets and the owners are improved.
Optionally, the intelligent wearable device comprises at least one of an ultrasonic module, a buzzer module, an LED indication module, a vibration module and a slight electric shock module, wherein
The ultrasonic module sends out ultrasonic prompts according to the control content;
The buzzer module sends out a buzzing prompt according to the control content;
The LED indication module generates a light prompt according to the control content;
The first vibration module generates a vibration prompt according to the control content;
the slight electric shock module generates a slight current prompt according to the control content.
Based on the same inventive concept as the previous embodiments, the present invention provides an apparatus comprising a processor and a memory coupled to the processor, the memory for storing computer program code comprising computer instructions which, when read from the memory by the processor, cause the electronic apparatus to perform the pet wearing apparatus control method as described in the first aspect or any one of the possible implementation manners of the first aspect.
In some embodiments, the computer readable storage medium may be FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM, or various devices including one or any combination of the above. The computer may be a variety of computing devices including smart terminals and servers.
In some embodiments, the executable instructions may be in the form of programs, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and they may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
As an example, the executable instructions may, but need not, correspond to files in a file system, may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a hypertext markup Language (HTML, hyperTextMarkup Language) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
As an example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices located at one site or distributed across multiple sites and interconnected by a communication network.
The foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the application.