Wetland patrol coordinate returning method, device and equipment and storage medium
By obtaining the current position and historical position information, determining the motion information, adjusting the position return frequency and time interval, the problem of insufficient battery life of mobile phones in the existing technology is solved, and a longer battery life is achieved.
Patent Information
- Application Number
- CN202311514712.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-14
- Publication Date
- 2025-07-11
AI Technical Summary
The prior art coordinate return method will lead to an increase in mobile phone battery consumption and reduce mobile phone battery life.
By obtaining current position information, historical position information and motion information, determining the motion information, and adjusting the position return frequency based on the motion information, reducing unnecessary position return, and extending the return time interval to reduce power consumption.
It effectively reduces the use of mobile phone resources, prevents the phone from getting hot, and extends the battery life of the phone.
Smart Images

Figure CN120301971A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of wetland patrol management, and particularly relates to a wetland patrol coordinate feedback method, device, equipment and storage medium. Background Art
[0002] Wetland patrol refers to activities of inspecting, monitoring, managing and protecting wetlands. Through wetland patrol, various potential environmental problems can be timely discovered and handled, including pollution, mining, aquaculture, development, etc., to ensure the ecological safety of wetlands and human health. The patrol APP software plays an important role in the patrol process. The patrol APP can record and feedback the patrol track in real time, and can also upload and record some events found during the patrol process.
[0003] The coordinate feedback control module of the existing patrol APP will regularly obtain the current location of the mobile phone, and send the current location and the current time to the server, so as to gradually upload the patrol route of the patrol personnel to the server for subsequent query and provide data support for the management of the patrol route.
[0004] However, the coordinate feedback method of the existing technology will increase the power consumption of the mobile phone, and then cause the mobile phone to heat up and reduce the battery life of the mobile phone. Summary of the Invention
[0005] The purpose of the embodiments of the present application is to provide a wetland patrol coordinate feedback method, aiming to solve the problem that the coordinate feedback method of the existing technology reduces the battery life of the mobile phone.
[0006] The embodiments of the present application are implemented as follows. A wetland patrol coordinate feedback method, the method includes:
[0007] Obtain the current location information;
[0008] Determine the motion information according to the current location information, the first location information and the second location information in the historical location;
[0009] Send back the current location information, and determine the next feedback time according to the motion information.
[0010] Another purpose of the embodiments of the present application lies in a wetland patrol coordinate feedback device, including:
[0011] A current location acquisition module, configured to obtain the current location information;
[0012] A motion information acquisition module, configured to determine the motion information according to the current location information, the first location information and the second location information in the historical location; and,
[0013] An information feedback module, configured to feedback the current location information and determine the next feedback time according to the motion information.
[0014] Another object of the embodiments of the present application is a wetland patrol coordinate feedback system, including:
[0015] The above-mentioned wetland patrol coordinate feedback device; and,
[0016] A server, configured to receive the location information feedback by the wetland patrol coordinate feedback device.
[0017] Another object of the embodiments of the present application is a computer device, including a memory and a processor. A computer program is stored in the memory. When the computer program is executed by the processor, the processor executes the steps of the above-mentioned wetland patrol coordinate feedback method.
[0018] Another object of the embodiments of the present application is a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the steps of the above-mentioned wetland patrol coordinate feedback method.
[0019] A wetland patrol coordinate feedback method provided by the embodiments of the present application includes: obtaining current location information; determining motion information according to the current location information, the first location information and the second location information in the historical locations; feedbacking the current location information and determining the next feedback time according to the motion information, so as to reduce the frequency of location feedback when it is not necessary to frequently feedback location information, thereby reducing the mobile phone resources occupied by location feedback, avoiding the mobile phone from getting hot, and prolonging the battery life of the mobile phone. Description of the Drawings
[0020] Figure 1 It is a schematic diagram of a wetland patrol coordinate feedback system provided by the embodiments of the present application;
[0021] Figure 2 It is a flowchart of a wetland patrol coordinate feedback method provided by the embodiments of the present application;
[0022] Figure 3 It is a flowchart of a motion information determination method provided by the embodiments of the present application;
[0023] Figure 4 It is a flowchart of a motion direction change rate determination method provided by the embodiments of the present application;
[0024] Figure 5 It is a flowchart of a motion speed change rate determination method provided by the embodiments of the present application;
[0025] Figure 6Flowchart of a method for determining backhaul time provided by an embodiment of the present application;
[0026] Figure 7 Block diagram of a wetland patrol coordinate backhaul device provided by an embodiment of the present application;
[0027] Figure 8 Internal structure block diagram of a computer device in one embodiment. Detailed implementation manners
[0028] In order to make the objectives, technical solutions and advantages of the present invention clearer and more understandable, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0029] It can be understood that the terms "first", "second", etc. used in the present application can be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of the present application, the first xx script can be called the second xx script, and similarly, the second xx script can be called the first xx script.
[0030] Figure 1 Schematic diagram of a wetland patrol coordinate backhaul system provided by an embodiment of the present application. As Figure 1 shown, in this system, it includes a terminal 110 and a computer device 120.
[0031] The computer device 120 can be an independent physical server or terminal, or a server cluster composed of multiple physical servers, and can be a cloud server that provides basic cloud computing services such as cloud servers, cloud databases, cloud storage, and CDN.
[0032] The terminal 110 can be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal 110 and the computer device 120 can be connected through a network, and the present application does not make any restrictions here.
[0033] In one embodiment, as Figure 2 shown, a wetland patrol coordinate backhaul method. In this embodiment, this method is applied to the above-mentioned Figure 1 terminal device 110 as an example for description. The method includes:
[0034] Step S202: Obtain the current location information.
[0035] Among them, the current location of the terminal can be obtained by sending a location acquisition request to various map application service providers.
[0036] Step S204: Determine motion information based on the current position information, the first position information, and the second position information in the historical positions.
[0037] Among them, each time the terminal transmits the position back, it will record both the position information and the acquisition time, so there will be historical position information. The first position information is the position information with the acquisition time closest to the current time, and the second position information is the position information in the historical positions with the acquisition time closest to the acquisition time of the first position information. Therefore, the current position information, the first position information, and the second position information are three adjacent points on the map. Since when recording the position information, both the position information and the corresponding time are recorded as historical position information, the motion trajectory and motion speed, that is, the motion information, can be determined based on the historical position information.
[0038] Step S206: Transmit the current position information back and determine the next transmission time according to the motion information.
[0039] Among them, when uploading the position information to the server, the position information acquisition time will also be uploaded to the server. Then, based on the calculated motion information, it is judged whether it is necessary to adopt a relatively frequent upload frequency, that is, a shorter upload time interval. When it is judged that a relatively frequent upload frequency is not required, it is changed to adopt a relatively loose upload frequency (that is, a longer upload time interval) to reduce the power consumption of the terminal, thereby extending the battery life of the terminal.
[0040] In one embodiment, as Figure 3 shown, step S204 includes:
[0041] Step S302: Determine the motion direction change rate based on the current position information, the first position information, and the second position information in the historical positions.
[0042] Among them, since the current position information, the first position information, and the second position information in the historical positions are essentially three coordinate points transmitted back successively most recently, the motion direction can be determined based on two adjacent coordinate points, and the motion direction change rate can be determined according to the change of the motion direction.
[0043] Step S304: Determine the motion speed change rate based on the current position information, the first and second position information in the historical positions, and the acquisition time of each position information.
[0044] Among them, since the corresponding acquisition time is also recorded when recording the position information, the distance between two adjacent coordinate points can be determined according to the difference between the two, the motion time can be determined according to the corresponding acquisition time of the two, so the motion speed can be calculated, and then the change rate of the motion speed can be determined according to the difference between the motion speeds.
[0045] In one embodiment, step S302 includes:
[0046] Step S402: Determine the first motion direction information according to the current position information and the first position information.
[0047] Wherein, assuming that the coordinates of the current position information are (x0, y0) and the coordinates of the first position information are (x1, y1), then the first motion direction information k1 = (y1 - y0) / (x1 - x0).
[0048] Step S404: Determine the second motion direction information according to the first position information and the second position information.
[0049] Wherein, assuming that the coordinates of the first position information are (x1, y1) and the coordinates of the second position information are (x2, y2), then the second motion direction information k2 = (y2 - y1) / (x2 - x1).
[0050] Step S406: Determine the motion direction change rate according to the first motion direction information and the second motion direction information.
[0051] Wherein, after obtaining the first and second motion direction information, the absolute value of the difference between the two can be used as the motion direction change rate, that is, the motion direction change rate Δk = |k2 - k1|. Using the slope to record the motion direction between adjacent two coordinate points can, on the one hand, make the solution process of the motion direction change rate faster, and on the other hand, can also reduce the storage resources occupied by recording the motion direction.
[0052] In one embodiment, as Figure 5 shown, step S304 includes:
[0053] Step S502: Determine the first motion speed according to the current position information, the first position information, the acquisition time corresponding to the current position information and the first position information.
[0054] Wherein, assuming that the coordinates of the current position information are (x0, y0) and its acquisition time is t0; the coordinates of the first position information are (x1, y1) and its acquisition time is t1, then the first motion speed v1 = ((x1 - x0) 2 +(y1 - y0) 2 ) 1 / 2 / (t1 - t0).
[0055] Step S504: Determine the second motion speed according to the first position information, the second position information, the acquisition time corresponding to the first position information and the second position information.
[0056] Among them, assuming that the coordinates of the first position information are (x1, y1), and its acquisition time is t1; the coordinates of the second position information are (x2, y2), and its acquisition time is t2, then the second movement speed v2 = ((x2 - x1) 2 +(y2 - y1) 2 ) 1 / 2 / (t2 - t1).
[0057] Step S506: Determine the change rate of the movement speed according to the first movement speed and the second movement speed.
[0058] Among them, after obtaining the first and second movement speed information, the absolute value of the difference between the two can be used as the change rate of the movement direction, that is, the change rate of the movement direction Δv = |v2 - v1|.
[0059] In one embodiment, as Figure 6 shown, step S206 includes:
[0060] Step S602: Determine whether the change rate of the movement direction is less than a preset direction change threshold and the change rate of the movement speed is less than a preset speed change threshold; if so, execute step S604; if not, execute step S606.
[0061] Among them, the change rate of the movement direction being less than the preset direction change threshold indicates that the movement path at this time is a straight line, otherwise, it indicates that there is a curve in the movement path between the coordinates of two adjacent transmissions. The change rate of the movement speed being less than the preset speed change threshold indicates that everything is normal in this section of the path, otherwise, it indicates that there is a curve in the movement path between the coordinates of two adjacent transmissions, or the patrol personnel have discovered an abnormal situation during the patrol. Those skilled in the art can select the specific values of the direction change threshold and the speed change threshold according to the actual situation, and the present application does not make specific limitations here.
[0062] Step S604: Determine the next transmission time as the current transmission interval plus a preset step length.
[0063] Among them, when it is determined that there are no curves or abnormal conditions in the current patrol path, a relatively loose position upload strategy can be adopted, so the upload time interval can be increased. That is, the next upload time is the current upload time plus a preset step size. For example, assuming that the initial upload time interval is 10s, the step size is 2s, and the current upload time interval is also 10s, then under normal circumstances, the next upload time interval is 12s, and the next upload time interval after that is 14s, gradually extending the upload time interval, making the upload of positions less frequent, thereby reducing the power consumption and system resource occupancy required for position upload and extending the battery life of the terminal. Of course, the upload time interval will not be extended indefinitely. After the upload time interval is equal to the preset maximum upload time interval, the upload time interval will no longer increase, and this maximum upload time interval can be freely controlled by those skilled in the art according to the actual situation, and this application does not make specific restrictions here.
[0064] Step S606: Determine the next upload time as the preset initial upload interval.
[0065] Among them, when it is determined that there is a curve or abnormal patrol speed in the current patrol path, the upload time interval is restored to the initial upload time interval, that is, a relatively frequent upload strategy is adopted to obtain more position information, so as to record this section of the journey in detail for subsequent processing or analysis.
[0066] In one embodiment, as Figure 7 shown, a wetland patrol coordinate upload device includes:
[0067] A current position acquisition module 710, configured to acquire current position information;
[0068] A motion information acquisition module 720, configured to determine motion information according to the current position information, the first position information and the second position information in the historical positions; and,
[0069] An information upload module 730, configured to upload the current position information and determine the next upload time according to the motion information.
[0070] Among them, for the specific working processes of each module, please refer to the above embodiments and will not be repeated here.
[0071] In one embodiment, as Figure 8 shown, a computer device includes a memory and a processor. When the computer program stored in the memory is executed by the processor, the processor performs the following steps:
[0072] Acquire current position information;
[0073] Determine motion information based on the current position information, the first position information and the second position information in the historical positions;
[0074] Transmit the current position information back, and determine the next transmission time according to the motion information.
[0075] In one embodiment, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to perform the following steps:
[0076] Obtain the current position information;
[0077] Determine motion information based on the current position information, the first position information and the second position information in the historical positions;
[0078] Transmit the current position information back, and determine the next transmission time according to the motion information.
[0079] It should be understood that although the steps in the flowcharts of the embodiments of the present application are shown in sequence according to the indication of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least some of the steps in each embodiment may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
[0080] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memories can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.
[0081] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0082] The above embodiments only represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
[0083] The above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent replacements, and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for transmitting wetland patrol coordinates back, characterized in that, The method includes: Obtain the current location information; Determine the motion information based on the current location information, the first location information in the historical locations, and the second location information; Transmit the current location information back, and determine the next transmission time according to the motion information.
2. The wetland patrol coordinate feedback method according to claim 1, characterized in that The determining the motion information based on the current location information, the first location information in the historical locations, and the second location information includes: Determine the motion direction change rate based on the current location information, the first location information in the historical locations, and the second location information; Determine the motion speed change rate based on the current location information, the first and second location information in the historical locations, and the acquisition times of each location information.
3. A wetland patrol coordinate feedback method according to claim 2, characterized in that The determining the motion direction change rate based on the current location information, the first location information in the historical locations, and the second location information includes: Determine the first motion direction information based on the current location information and the first location information; Determine the second motion direction information based on the first location information and the second location information; Determine the motion direction change rate based on the first motion direction information and the second motion direction information.
4. A wetland patrol coordinate feedback method according to claim 2, characterized in that, The determining the motion speed change rate based on the current location information, the first and second location information in the historical locations, and the acquisition times of each location information includes: Determine the first motion speed based on the current location information, the first location information, the current location information, and the acquisition time corresponding to the first location information; Determine the second motion speed based on the first location information, the second location information, the first location information, and the acquisition time corresponding to the second location information; Determine the motion speed change rate based on the first motion speed and the second motion speed.
5. A wetland patrol coordinate feedback method according to claim 2, characterized in that The determining the next transmission time according to the motion information includes: Judge whether the motion direction change rate is less than a preset direction change threshold and the motion speed change rate is less than a preset speed change threshold; If so, determine the next transmission time as the current transmission interval plus a preset step size; If so, determine the next transmission time as a preset initial transmission interval.
6. A wetland patrol coordinate feedback device, characterized in that, Includes: A current location acquisition module for obtaining the current location information; A motion information acquisition module for determining the motion information based on the current location information, the first location information in the historical locations, and the second location information; And, An information transmission module for transmitting the current location information back and determining the next transmission time according to the motion information.
7. A wetland patrol coordinate feedback system, characterized in that, Includes: A computer device controlled by the wetland patrol coordinate transmission device as described in claim 6; And, A server for receiving the location information transmitted back by the wetland patrol coordinate transmission device.
8. A computer device, characterized in that, Includes a memory and a processor. When the computer program stored in the memory is executed by the processor, the processor executes the steps of a wetland patrol coordinate transmission method as described in any one of claims 1 to 5.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, the processor executes the steps of a wetland patrol coordinate transmission method as described in any one of claims 1 to 5.