Pet positioning system
By designing a pet positioning system, using the pet collar to collect location data and upload it to the cloud server, combined with the fence settings and alarm functions of the mobile terminal, the problems of pet loss and safety hazards when going out are solved, and real-time positioning and safety monitoring of pets are realized.
Patent Information
- Application Number
- CN202411961813.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-11
AI Technical Summary
Existing pet smart devices fail to fully pay attention to the safety needs of pets, especially when pets are easily lost when they go out, and the complex outdoor environment increases the difficulty of retrieval.
A pet positioning system is designed, including pet collars, cloud servers and mobile terminals. The pet collar collects position data through the GPS positioning module and uploads it to the cloud server through the NBIOT module. The mobile terminal can render and display the pet's latitude and longitude information and provide fence setting function. When the pet passes through the virtual geofence, the system will send an alert message.
Real-time positioning and safety monitoring of pets are realized, and pet owners are notified in a timely manner through alert information, reducing pet loss and safety hazards, and improving pet safety.
Smart Images

Figure CN119815280A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of pet positioning, and in particular to a pet positioning system. Background Art
[0002] With the development of my country's economy, pets have gradually become an indispensable member of the family structure. At the same time, more and more pet families expect to ensure the quality of life and safety of their pets through pet smart wearable devices. According to data from the China Business Industry Research Institute, as of 2021, the consumer market size of pet products in China has reached 32 billion yuan. Although there are many wearable devices developed specifically for pets on the market, most pet wearable products are related to indoor feeding, such as pet drinking fountains, pet monitors, and timed feeders. Although these products can provide a better living environment for pets, they still do not pay enough attention to the safety needs of pets. At present, there are very few smart devices on the market to ensure the safety of pets, and few people know about them because they are out of touch with user needs.
[0003] For pet-raising families, ensuring the safety of their pets is extremely important. Since the owner cannot be with the pet at all times, and the pet is free to move most of the time, it is easy for the pet to accidentally walk out of the house and get lost. Even if the owner accompanies the pet when going out, once the pet is lost, the complexity of the outdoor environment will increase the difficulty of finding the pet. In addition, lost pets will also cause many safety hazards, and pet loss is becoming a major social problem. Obviously, in the pet product market, consumers' demand for smart pet safety devices will become more urgent. Summary of the invention
[0004] In view of the above-mentioned defects of the prior art, the present invention provides a pet positioning system, including a pet collar, a cloud server, and a mobile terminal. The main control unit of the pet collar includes: The location module collects the location data of the current collar, analyzes the location data into real-time speed and longitude and latitude information, and uploads the real-time speed and longitude and latitude information to the server and the mobile terminal; The fence module calculates the distance between the collar and the fence according to the current position of the coil, and sends an alarm message to the server and the mobile terminal when the collar position crosses the fence boundary.
[0005] Furthermore, the mobile terminal includes a location management module, which receives the real-time speed and longitude and latitude information of the collar and synchronizes the information to an electronic map.
[0006] Furthermore, the mobile terminal includes a fence management module, which is used to add fences and set fence information on the electronic map, and upload the set fence information to the server and the background database, wherein the fence information includes the center of a circle and a fence radius.
[0007] Furthermore, the location management module sends the ID information of the pet collar to the cloud server, and the cloud server retrieves the corresponding information and returns it to the mobile terminal.
[0008] Furthermore, the pet collar includes an NBIOT module, a communication module and a GPS positioning module, and the NBIOT module, the communication module and the GPS positioning module are connected to the main control unit respectively.
[0009] Compared with the prior art, the present invention has the following technical effects: The pet positioning collar of the present invention can collect the location data of the pet, transmit it to the cloud server, and then upload the processed information to the mobile terminal in real time. The mobile terminal can not only render and display the latitude and longitude information of the pet, but also provide a fence setting function. When the pet is about to leave the virtual geographic fence, the fence warning module will determine whether the current location of the pet is safe and send an alarm message to the mobile terminal.
[0010] The concept, specific structure and technical effects of the present invention will be further described below in conjunction with the accompanying drawings to fully understand the purpose, characteristics and effects of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 It is a schematic diagram of the overall structure of a specific embodiment of the present invention; Figure 2 It is a structural schematic diagram of a pet collar according to a specific embodiment of the invention; Figure 3 is a flowchart of NB module initialization according to a specific embodiment of the present invention; Figure 4 is a program flow chart of a location module according to a specific embodiment of the present invention; Figure 5 is a program flow chart of a fence module according to a specific embodiment of the present invention; Figure 6 is a program flow chart of a location management module according to a specific embodiment of the present invention; Figure 7 It is a program flow chart of a fence management module according to a specific embodiment of the present invention. DETAILED DESCRIPTION
[0012] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0013] like Figure 1 As shown, in a specific embodiment, a pet positioning system is provided, including a pet collar, a cloud server and a mobile terminal. The pet collar uploads the current location information to the cloud server. The cloud server collects and processes data from the Internet of Things devices and stores it in the cloud. Users on the cloud obtain real-time data through mobile terminal devices, or control the Internet of Things devices to perform various operations.
[0014] like Figure 2 As shown, the pet collar in this embodiment includes a main control unit, an NBIOT module, a communication module and a GPS positioning module, and the NBIOT module, the communication module and the GPS positioning module are connected to the main control unit respectively. The GPS positioning module is used to obtain the pet's positioning information and decode the corresponding dimension information, and the communication module is used to upload the location information to the cloud server in real time and receive corresponding instructions.
[0015] In this embodiment, Alibaba Cloud is selected as the MOTT server, STM32 is selected as the main control chip, SIM7020C is selected as the NBIOT module, and SIM800C is selected as the communication module. The pet's positioning information is obtained through the GT-U7 positioning module, and the corresponding longitude and latitude and other information are decoded. The positioning collar uploads the location data to the server and receives the instructions of the early warning platform in real time through the GPRS network. During the working process, the GT-U7 module receives the navigation signal transmitted by the GPS satellite through the antenna to provide accurate time information and geographic location data. The satellite signal is amplified and filtered by the LNA low-noise amplifier to enhance the signal strength and quality, and reduce the influence of noise and interference. The GT-U7 module determines the satellite's location, number, launch time and other information by analyzing the satellite signal.
[0016] In order to connect the SIM7020C module to the Alibaba Cloud IoT platform, you first need to create a corresponding product on the platform and obtain the device certificates such as Device Name, Product Key, and Device Secret automatically generated by Alibaba Cloud. These certificates are the unique keys for the device to log in and connect to the IoT cloud platform. Before formal access, you need to use USB to TTL serial port debugging to confirm whether its IP address, main network, and MQTT connection status are normal. When the device is powered on normally, the only LED light will remain on, and then use the serial port assistant to send AT commands for corresponding tests. The NB module initialization flow chart in this embodiment is as follows Figure 3 shown.
[0017] The main control unit includes a position module and a fence module, and the position module and the fence module are implemented by programs loaded on a hardware chip.
[0018] The location module is used to collect the location data of the current collar, analyze the location data into real-time speed and longitude and latitude information, and upload the real-time speed and longitude and latitude information to the server and the mobile terminal.
[0019] In this embodiment, the workflow of the location module is as follows: Figure 4 As shown, it includes: first, the pet collar obtains satellite signal data through the GPS positioning module, and parses these data into the speed and longitude and latitude of the pet's real-time location; then the SIM7020C module on the collar is started and communication is established with the Alibaba Cloud server to upload the collected location information; the cloud platform server then processes this information and places it in the database; finally, the mobile terminal is connected to the cloud platform server to obtain the pet's location information and render it. The longitude and latitude information displayed on the mobile terminal mainly comes from the positioning data obtained by the GT-U7 module. These data will be transmitted to the STM32 module through the UART serial port. After receiving the location data, the application end will convert the longitude and latitude coordinates into the GCJ-02 coordinate system, and perform secondary processing and storage. The converted data can more accurately and stably reflect the real-time location information of the pet.
[0020] The fence module is used to calculate the distance between the collar and the fence according to the current position of the coil, and send an alarm message to the server and the mobile terminal when the collar position exceeds the fence boundary.
[0021] The pet collar in this embodiment obtains positioning information through the GT-U7 module and uploads the information to the cloud platform server for storage and processing. The fence warning system set on the cloud server will compare the distance between the pet's current position and the set fence boundary. Once the pet crosses the set fence boundary, the warning system will send a warning message to the pet owner and activate the alarm indicator on the collar to make it flash. At the same time, the owner and pet information will be displayed on the OLED screen. If the pet is within the set area, the fence warning module will display the current position coordinates on the OLED screen. The specific flow chart is as follows: Figure 5 shown.
[0022] In this embodiment, in order to determine whether the current position point of the pet collar is within the range of the circular fence, it is necessary to compare whether the distance d between the center of the fence and the position point of the pet collar is less than the radius. If so, it indicates that the pet is within the fence, otherwise it indicates that the pet has left the range of the electronic fence. In this embodiment, the longitude and latitude distance between the position point and the center point is calculated using the Haversine formula.
[0023] The mobile terminal is applied to the user end, and the user establishes a communication connection with the cloud server through the mobile terminal, and can control the location information of the pet collar in real time. The mobile terminal includes a location management module and a fence management module. The location management module is used to send the ID information of the pet collar to the cloud server, and the cloud server retrieves the corresponding information and returns it to the mobile terminal, which can also receive the real-time speed and longitude and latitude information of the collar, and synchronize the information to the electronic map.
[0024] In this embodiment, a third-party GIS map service is selected to display the location and longitude and latitude information of the pet on the application. By introducing the map API, users can easily view the map on their mobile phones and use a variety of functions, such as zooming in and out of the map, adding geographic fences, etc., so as to better manage the health and safety of their pets, while also providing users with a better service experience. Users can quickly and easily query the real-time location information of their pets through the mobile application. The specific process is as follows Figure 6 shown.
[0025] The fence management module is used to add fences and set fence information on the electronic map, and upload the set fence information to the server and the backend database. The fence information includes the center of the circle and the fence radius. The fence setting process is as follows: Figure 7 As shown in the figure, the fence warning system mainly has two functions: fence warning and fence management. Users need to set the fence radius on the mobile app and manually click the "Add Fence" button to start the fence warning system. The specific process is as follows Figure 7 Shown include: (1) Register a map developer account and obtain the map development key; (2) Download the SDK provided by the map and configure it to the E4A development platform; (3) Create a container of fixed size in the E4A design area to place the map, set the zoom ratio of the map on the container, and then initialize the map and display it in the container; (4) Convert the received location information string, parse the JSON data sent from the server, convert it into a byte stream, and present it in the application; (5) By parsing the Json data and obtaining the longitude and latitude information, the location information is updated in real time on the map interface of the application.
[0026] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A pet positioning system, characterized in that: It includes a pet collar, a cloud server, and a mobile terminal. The main control unit of the pet collar includes: The location module collects the location data of the current collar, analyzes the location data into real-time speed and longitude and latitude information, and uploads the real-time speed and longitude and latitude information to the server and the mobile terminal; The fence module calculates the distance between the collar and the fence according to the current position of the coil, and sends an alarm message to the server and the mobile terminal when the collar position crosses the fence boundary.
2. A pet positioning system according to claim 1, characterized in that: The mobile terminal includes a location management module, which receives the real-time speed and longitude and latitude information of the collar and synchronizes the information to an electronic map.
3. A pet positioning system according to claim 1, characterized in that: The mobile terminal includes a fence management module, which is used to add fences and set fence information on the electronic map, and upload the set fence information to the server and the background database. The fence information includes the center of the circle and the fence radius.
4. A pet positioning system according to claim 1, characterized in that: The location management module sends the ID information of the pet collar to the cloud server, and the cloud server retrieves the corresponding information and returns it to the mobile terminal.
5. A pet positioning system according to claim 1, characterized in that: The pet collar comprises an NBIOT module, a communication module and a GPS positioning module, and the NBIOT module, the communication module and the GPS positioning module are respectively connected to the main control unit.