CN112188406B - Position reporting method, device and storage medium - Google Patents

Position reporting method, device and storage medium Download PDF

Info

Publication number
CN112188406B
CN112188406B CN202011055584.4A CN202011055584A CN112188406B CN 112188406 B CN112188406 B CN 112188406B CN 202011055584 A CN202011055584 A CN 202011055584A CN 112188406 B CN112188406 B CN 112188406B
Authority
CN
China
Prior art keywords
interval
time
terminal
sampling interval
acquiring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011055584.4A
Other languages
Chinese (zh)
Other versions
CN112188406A (en
Inventor
魏科文
杨放忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Water World Co Ltd
Original Assignee
Shenzhen Water World Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Water World Co Ltd filed Critical Shenzhen Water World Co Ltd
Priority to CN202011055584.4A priority Critical patent/CN112188406B/en
Publication of CN112188406A publication Critical patent/CN112188406A/en
Application granted granted Critical
Publication of CN112188406B publication Critical patent/CN112188406B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0258Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity controlling an operation mode according to history or models of usage information, e.g. activity schedule or time of day
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a position reporting method, a device and a storage medium; the method comprises the following steps: the mobile terminal acquires the current time; judging which time period the current time is in, wherein the time periods are multiple and are preset time periods; acquiring a time period and calling a corresponding sampling interval; collecting position information according to sampling intervals; and uploading the position information to a designated background. According to the position reporting method, the device and the storage medium, the position reporting method obtains the sampling interval corresponding to the time period to which the current time belongs; sampling position information according to sampling intervals and uploading the position information; the method has the advantages that the positions are uploaded at high frequency in the time period with frequent activity, the positions are uploaded at low frequency in the time period with less activity, the position uploading density degree is controlled through different sampling intervals, the actual situation is adapted, the reporting action is reduced as much as possible, the power consumption is reduced on the basis of time-lapse tracking and positioning, the power consumption is reduced, the standby time is prolonged, and the cruising ability is improved.

Description

Position reporting method, device and storage medium
Technical Field
The present invention relates to the field of location identification, and in particular, to a method, an apparatus, and a storage medium for reporting a location.
Background
The existing terminal reports position actions, namely determines whether to report position or not by judging whether a target is in a static state or a moving state, has a step counting function, takes the moving step number as a trigger to upload a mark, and reports position data when the step number reaches a certain threshold value; when the static or moving state and the moving steps cannot be judged, other functions of the product are closed on the basis of time tracking and positioning, so that the power consumption is reduced, the standby time is further prolonged, the cruising ability is improved, and the using experience of the product is reduced. Therefore, how to provide a new power-saving location reporting method without reducing terminal experience is an urgent problem to be solved at present.
Disclosure of Invention
The invention mainly aims to provide a position reporting method, a position reporting device and a storage medium, which can solve the problem that the existing position reporting method can close other functions of a product to reduce terminal experience.
The invention provides a position reporting method, which comprises the following steps:
the mobile terminal acquires the current time;
judging which time period the current time is in, wherein the time periods are multiple and are preset time periods;
acquiring a time period and calling a corresponding sampling interval;
collecting position information according to sampling intervals;
and uploading the position information to a designated background.
Further, the step of acquiring the time period and calling the corresponding sampling interval includes:
and acquiring a first interval corresponding to the time period according to the current time and a preset corresponding relation, and taking the first interval as a sampling interval and the corresponding relation as the corresponding relation between the time period and the sampling interval.
Further, the step of acquiring the time period and calling the corresponding sampling interval further includes:
judging whether the movement distance of the terminal in the sampling interval meets a preset condition or not;
if yes, maintaining sampling interval acquisition position information within set times or set duration;
if not, acquiring a second interval, and collecting the position information by taking the second interval as a sampling interval within the set times or set duration.
Further, the step of judging whether the movement distance of the terminal in the sampling interval meets the preset condition includes:
judging whether the movement distance of the terminal at the sampling interval is within a first threshold value range;
if not, judging that the preset condition is not met;
if yes, judging that the preset condition is met;
the step of judging whether the movement distance of the terminal in the sampling interval is within a first threshold value range includes:
acquiring the movement distance of the terminal at sampling intervals;
acquiring a difference value between the movement distance and a preset distance;
judging whether the difference value is within a second threshold value range;
if so, judging that the movement distance of the terminal in the sampling interval is within a first threshold range;
if not, the motion distance of the terminal in the sampling interval is judged not to be within the range of the first threshold value.
Further, the step of obtaining the second interval includes:
judging whether the movement distance of the terminal at the sampling interval is larger than the maximum value in the first threshold range;
if so, acquiring first time for the terminal to move a preset distance in the nearest range, and taking the first time as a second interval.
Further, the step of obtaining the second interval further comprises:
judging whether the movement distance of the terminal at the sampling interval is smaller than the minimum value in the first threshold range;
if yes, obtaining an activity area where M positions before the current time are located, wherein the M positions are sampling positions within a first set time or a first set duration;
judging whether the radius of the active area is within a second threshold range;
if so, acquiring a third interval, and taking the third interval as the acquired second interval, wherein the third interval is a preset time interval;
and if not, acquiring second time used by the terminal for moving the preset distance, and taking the second time as a second interval.
Further, the step of obtaining the activity area where M positions before the current time are located includes:
acquiring a linear distance between two positions with the farthest position distance in M positions before the current time;
and acquiring a circular area by taking the linear distance as the diameter, wherein the circular area is an active area.
Further, the step of collecting the location information according to the sampling interval includes:
leading the sampling interval into a timer to obtain an uploading signal, wherein the timer is used for sending the uploading signal according to the sampling interval;
and acquiring position information according to the uploading signal.
Further, after the step of uploading the location information to the designated background terminal, the method includes:
judging whether the current time reaches the set time or not;
if yes, acquiring distribution characteristics of the sampling intervals in the set time, wherein the distribution characteristics comprise the time length of the sampling intervals and the distribution time period of the sampling intervals;
and generating division recommendation information about the time period according to the distribution characteristics.
The present application further provides a device for reporting a location, including:
the time acquisition module is used for acquiring the current time;
the time period judging module is used for judging which time period the current time is in, wherein a plurality of time periods are available, and the time periods are preset time periods;
the sampling interval acquisition module is used for acquiring a corresponding sampling interval called by a time period;
the acquisition module is used for acquiring the position information according to the sampling interval;
and the uploading module is used for uploading the position information to the appointed background terminal.
The present application further proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the location reporting method is implemented.
According to the position reporting method, the device and the storage medium, the position reporting method obtains the sampling interval corresponding to the time period to which the current time belongs; sampling position information according to sampling intervals and uploading the position information; the corresponding sampling intervals are obtained in different time periods, so that the high-frequency position uploading in the time period with frequent activity can be realized, the low-frequency position uploading in the time period with less activity can be realized, the position uploading density degree can be controlled through different sampling intervals, the actual situation is adapted, the reporting action is reduced as far as possible in the scene without frequently reporting the position, the power consumption is reduced on the basis of ensuring the tracking and positioning requirements, the power consumption is reduced, the standby time is further prolonged, and the cruising ability is improved.
Drawings
FIG. 1 is a schematic diagram of a step structure in an embodiment of a position reporting method of the present invention;
FIG. 2 is a schematic view of a corner recognition and cleaning device according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an embodiment of a storage medium according to the present invention;
fig. 4 is a schematic structural diagram of an embodiment of the smart device of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
It will be understood by those skilled in the art that, as used herein, the singular forms "a", "an", "the" and "the" may include the plural forms as well, unless expressly stated otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, units, modules, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, units, modules, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Referring to fig. 1, an embodiment of the position reporting method of the present invention includes the following steps:
s1, a mobile terminal acquires current time;
s2, judging which time period the current time is in, wherein the time periods are multiple and are preset time periods;
s3, acquiring a time period and calling a corresponding sampling interval;
s4, collecting position information according to sampling intervals;
and S5, uploading the position information to a designated background.
In the step S1, the current time may be directly obtained by the terminal according to its own time device or time program.
In the above step S2, the time period is a set continuous time range, which is divided into daytime time and night time, daytime time daytime, format hhhhhhhh, such as 0821, i.e. 8 o 'clock-21 o' clock, set as daytime time, and the rest of the time is night time, which can be set manually or in the background; it should be noted that in some embodiments, the time periods may be divided more, for example, into sleep periods, early commute periods, morning commute periods, noon break periods, afternoon commute periods, afternoon break periods, and evening break periods; but also the weekends of each week may be separately set for the time periods.
In the above step S3, the sampling interval may be set as: the daytime sampling interval day _ interval/unit second and the night sampling interval night _ interval/unit second are set, and the daytime sampling interval and the night sampling interval can be set manually or in a background manner; it should be noted that, in some embodiments, the sampling interval is not constant, and when the initial sampling interval is not suitable for the current situation, the sampling interval may be changed according to a preset rule, so that the sampling interval is more suitable for the current situation, unnecessary uploading is reduced as much as possible, reporting actions are reduced, power consumption is reduced on the basis of confirming the time tracking and positioning, power consumption is reduced, the standby time is further prolonged, and the cruising ability is improved.
In the step S4, the current position information is sampled and uploaded according to the obtained sampling interval, and the sampling of the current position information may be realized by using a positioning module.
In the step S5, the uploading of the current location information may be implemented by the wireless communication module, and the uploaded current location information is uploaded to the background, it should be mentioned that the current time may be obtained each time the location is uploaded, the current time is used for determining the current time period, and in the same time period, some preset sampling intervals may be used in some embodiments as a reference standard for changing other sampling intervals in the same time period, for example, the sampling interval needs to be lengthened, and may be changed to the last sampling interval of 2 times according to a preset rule, and the like.
The method can be used for products needing a positioning function, such as watches, walking sticks, bracelets and the like, and can be used for collecting position information through a background terminal with a communication connection, which needs to report the position to the background terminal and has the positioning function.
It should be noted that, in some embodiments, through the continuous loop of steps S1 to S5, the next sampling interval may be determined during location uploading, so as to adapt to the actual situation, reduce reporting actions as much as possible, reduce power consumption on the basis of time-keeping tracking and positioning, reduce power consumption, further prolong the standby time, and improve the cruising ability.
It should be noted that the location reporting method is repeatedly executed every day under the condition that the set parameters and rules are not changed.
The position reporting method comprises the steps of obtaining a sampling interval corresponding to a time period to which current time belongs; sampling positions according to sampling intervals and uploading the positions; the corresponding sampling intervals are obtained in different time periods, so that high-frequency position uploading in a time period with frequent activity can be realized, low-frequency position uploading in a time period with less activity is realized, the position uploading density degree is controlled through different sampling intervals, the actual situation is adapted, the reporting action is reduced as far as possible in a scene without frequently reporting the position, the power consumption is reduced on the basis of ensuring the tracking and positioning requirements, the power consumption is reduced, the standby time is further prolonged, and the cruising ability is improved.
Further, the step S3 of calling a corresponding sampling interval by the acquisition time period includes:
s31, acquiring a first interval corresponding to the time period according to the current time and a preset corresponding relation, and taking the first interval as a sampling interval and the corresponding relation as the time period and the sampling interval.
In the step S31, the preset corresponding relationship is a corresponding relationship between a time period and a sampling interval, in this embodiment, the preset corresponding relationship may be a corresponding table between a time period and a sampling interval, in this embodiment, a current time period is determined according to a current time, and then a sampling interval, that is, a first interval is obtained according to the corresponding relationship between a time period and a sampling interval, and the first interval is used as a sampling interval of a next sampling position; in some embodiments, the sampling interval in the same time period is not changed after being acquired, and only one sampling interval is adopted in the same time period; in other embodiments, the sampling interval in the same time period may be adjusted according to actual conditions, the sampling interval obtained from the correspondence is used after the time period is entered for the first time, and then the length of the sampling interval is adjusted according to the determination rule, so as to ensure the basic function of real-time tracking and positioning, for example, the time length of the sampling interval may be shortened when the movement is fast, and the time length of the sampling interval may be increased when the movement is slow.
Further, the step S3 of calling a corresponding sampling interval by the acquisition time period further includes:
s32, judging whether the movement distance of the terminal in the sampling interval meets a preset condition;
s33, if yes, maintaining sampling interval acquisition position information within set times or set duration;
and S34, if not, acquiring a second interval, and collecting the position information by taking the second interval as a sampling interval within the set times or set duration.
In the step S32, this step is applicable to a situation that the sampling interval can be adjusted according to an actual situation, when the step S32 is entered for the first time, the sampling interval is the sampling interval obtained in the step S11, and the subsequent judgment of the sampling interval needs to be determined according to the actual situation, in this embodiment, the movement interval is the length of the movement track of the terminal in the first interval, and whether the movement rule of the terminal is normal is judged by judging whether the length of the movement interval of the terminal in the first interval meets the requirement, so that the length of the sampling interval is adjusted according to the actual situation to adapt to the actual situation, power consumption is reduced on the basis of confirming the time tracking and positioning, power consumption is reduced, standby time is further prolonged, and cruising ability is improved; the movement pitch of the terminal at the first interval is determined by the movement pitch of the terminal.
In other embodiments, the movement distance is a linear distance from the beginning point to the end point of the terminal within the first interval.
It should be noted that the preset condition is preset, for example, if the motion distance of the terminal in the sampling interval reaches a preset range, it is determined that the preset condition is met, and if the motion distance of the terminal in the first interval does not reach the preset range (is greater than/less than the preset range), it is determined that the preset condition is not met, in some embodiments, the end value of the preset range is a fixed value, and the preset range may be a single motion distance value, for example, 50 meters, or a range value, for example, 45-50 meters; in this embodiment, the preset range varies with the sampling interval, and the end values of the range are set in equal proportion to the sampling interval, for example, the two end values of the range are sampling interval × 1.05 and sampling interval × 0.95, respectively.
In the step S33, whether the set number of times or the set duration is used as the preset time is preset for the terminal or the background, and after the current position is uploaded, when it is determined that the motion distance of the terminal at the sampling interval meets the preset condition, it represents that the motion rule of the terminal meets expectations, and the terminal samples the position and uploads according to the current sampling interval, which can meet the requirements of reducing power consumption and ensuring real-time tracking and positioning, therefore, when it is determined that the motion distance of the terminal at the sampling interval adopting the first interval as the sampling interval meets the preset condition, the terminal continues to adopt the first interval as the sampling interval to sample the position and upload.
In the step S34, for the case that the movement distance of the terminal at the first interval does not reach the preset condition, in this embodiment, whether the set number of times or the set duration is adopted is preset for the terminal or the background, and after the current position is uploaded, the preset condition that the movement distance of the terminal at the first interval is greater than or less than the preset range and the difference between the movement distance and the end value of the preset range exceeds the allowable range is not reached, it can be determined that the current movement speed of the terminal is too fast or too slow, and needs to be adjusted according to the situation; in this embodiment, the second interval may be obtained by measuring time required for moving the set interval again, for example, time consumed for 50 meters of movement, so that an effect of real-time tracking and positioning may be ensured, and excessively dense uploading positions may not be performed under a slow movement condition, so as to achieve an effect of reducing power consumption and power consumption on the basis of ensuring real-time tracking and positioning, and further prolong the standby time and improve the cruising ability.
It should be noted that in some embodiments, after detecting the second interval, in a subsequent plurality of sampling intervals, if in a subsequent process, if the sampling interval is adjusted to be close to the first interval, the difference from the first interval is within a preset acceptable range, then the first interval is directly adjusted.
Further, in some embodiments, the step S32 of determining whether the movement distance of the terminal in the sampling interval meets the preset condition includes:
s321, judging whether the motion distance of the terminal at the sampling interval is within a first threshold range;
s322, if not, judging that the preset condition is not met;
and S323, if so, judging that the preset condition is met.
In step S321, the first threshold range is a range value of the limited interval, and includes a standard interval corresponding to the first interval, and in some embodiments, the movement interval is determined to be within the first threshold range by comparing the movement interval with an end value of the first threshold range, so as to provide a basis for subsequently determining whether the preset condition is met.
In step S322, if it is determined that the predetermined condition is not met, the movement distance of the terminal in the sampling interval is too large or too small, and the sampling interval needs to be adjusted accordingly.
In the step S323, if the motion distance of the terminal at the sampling interval is within the first threshold range, it is determined that the preset condition is met. In some embodiments, if the motion intervals of N consecutive sampling intervals are within the first threshold range, it is determined that the preset condition is met, N is a positive integer greater than or equal to 1, the value of N is preset and can be adjusted according to an actual situation, the motion interval of the terminal in the sampling interval can be considered to meet the requirement if the preset condition is determined to be met, the terminal can be estimated to still maintain a corresponding motion speed within a period of time, the sampling interval does not need to be adjusted frequently, the frequency of adjusting the sampling interval can be reduced, power consumption can also be reduced, and the purpose of saving power is achieved.
Further, in some embodiments, the step S321 of determining whether the movement distance of the terminal in the sampling interval is within the first threshold range includes:
s3211, acquiring a movement interval of the terminal at a sampling interval;
s3212, obtaining a difference value between the movement distance and a preset distance;
s3213, judging whether the difference value is within a second threshold range;
s3214, if yes, determining that the movement distance of the terminal at the sampling interval is within a first threshold range;
and S3215, if not, determining that the movement distance of the terminal in the sampling interval is not within the first threshold range.
In the above steps S3211-S3215, the second threshold range is preset, a sum of an end value of the second threshold range and the preset distance is an end value of the first threshold range, the preset distance is a preset distance value, and the distance is also a length of the motion trajectory, a positive or negative difference between the motion distance of the terminal at the sampling interval and the preset distance is calculated, so that the speed of the motion speed can be determined, the difference is regular, which indicates that the motion speed is fast, the difference is negative, which indicates that the motion speed is slow, and the difference is in the second threshold range, which indicates that the motion distance changes although it is within an acceptable range, the sampling interval does not need to be adjusted, but when the difference is not in the second threshold range, which indicates that the motion distance changes and the change is large, the sampling interval needs to be adjusted according to an actual situation, and then the length of the sampling interval is adjusted according to the actual situation, so as to adapt to the actual situation, power consumption is reduced on the basis of tracking and positioning while being confirmed, so that the standby time is extended, and the endurance is improved.
Further, the step S34 of acquiring the second interval includes:
s341, judging whether the motion distance of the terminal at the sampling interval is larger than the maximum value in the first threshold range;
and S342, if so, acquiring first time for the terminal to move within the closest range by a preset distance, and taking the first time as a second interval.
In step S341, it is determined whether the motion interval of the terminal in the sampling interval is greater than the maximum value in the first threshold range by subtracting the maximum value in the first threshold range from the motion interval of the sampling interval, and if the difference is positive, it is determined that the motion interval of the terminal in the sampling interval is greater than the maximum value in the first threshold range.
In the step S142, the maximum value of the movement interval of the terminal in the sampling interval greater than the first threshold range is that the movement speed of the terminal is faster, and the movement interval is not within the first threshold range, so that the first time is obtained as the second interval to achieve the effect of prolonging the sampling interval, and further, the power consumption is reduced on the basis of ensuring real-time tracking and positioning, the power consumption is reduced, the standby time is further prolonged, and the cruising ability is improved; the most recent range means a time range closest to the current time, and the value of the most recent range is preset.
Further, the step S34 of acquiring the second interval further includes:
s343, judging whether the motion distance of the terminal at the sampling interval is smaller than the minimum value in the first threshold range;
s344, if yes, obtaining an activity area where M positions before the current time are located, wherein the M positions are sampling positions within a first set time or a first set duration;
s345, judging whether the radius of the active area is within a second threshold range;
s346, if so, acquiring a third interval, and taking the third interval as an acquired second interval, wherein the third interval is preset;
and S347, if not, acquiring second time used by the terminal to move the preset distance, and taking the second time as a second interval.
In the foregoing steps S343-S347, when it is determined that the movement distance of the terminal at the sampling interval is smaller than the minimum value in the first threshold range, there are two cases of moving at a slow speed but moving all the time and having substantially no movement, and in the case of having substantially no movement, the second time used by the terminal to move the preset distance cannot be obtained, and in this embodiment, the active area is circular, so that it is determined whether the terminal is in the case of having substantially no movement by determining whether the radius of the active area is within the second threshold range, and if the radius is in the case of having substantially no movement, it is necessary to determine a time interval, that is, a third interval, according to a preset value or a preset rule, so as to avoid a situation that the terminal is not known to move; if not, the moving speed is slow but the terminal is moving all the time, so that the second time taken by the terminal to move the preset distance is obtained as a second interval, namely a sampling interval. Through the steps, the actual situation is adapted, the power consumption is reduced on the basis of ensuring real-time tracking and positioning, the power consumption is reduced, the standby time is prolonged, and the cruising ability is improved.
It should be noted that, in some embodiments, the steps S343 to S347 may be performed in the background, and the terminal only receives the result fed back by the background, so that the requirement on the operation function of the terminal may be reduced, and the cost is reduced; it should be noted that in some embodiments, the active area may be a polygon, an ellipse, or other shapes, depending on the actual configuration.
Further, the step S343 of acquiring the active areas where M positions before the current time are located includes:
s3431, acquiring a linear distance between two positions with the farthest position distance in M positions before the current time;
s3432, a circular area is obtained with the straight line distance as the diameter, and the circular area is the active area.
In the above steps S3431-S3432, M is a positive integer greater than or equal to 2 and is a preset value, the circular area is obtained to obtain the area range in which the terminal wanders, and if the range is small enough, it represents that the terminal does not move basically, in this case, high-frequency location uploading is not required, location uploading is performed at a low frequency in a time period with less activity, and the density degree of location uploading is controlled by different sampling intervals, so as to adapt to the actual situation, reduce the reporting action as much as possible, reduce power consumption on the basis of confirming time tracking and positioning, reduce power consumption, further prolong the standby time, and improve the endurance.
It should be noted that, in some embodiments, the above steps S3431 to S3432 may be performed in the background, and the terminal only receives the result fed back by the background, so that the requirement on the operation function of the terminal may be reduced, and the cost may be reduced.
Further, in some embodiments, the step S4 of collecting the position information according to the sampling interval includes:
s41, introducing a sampling interval into a timer to obtain an uploading signal, wherein the timer is used for sending the uploading signal according to the sampling interval;
and S42, acquiring position information according to the uploading signal.
In the above steps S41 to S42, the timer is an operating program, and may send an upload signal according to the parameter timing when the parameter is input, where the upload signal is used to control the terminal to start the sampling position and upload the position, and when the parameter is deleted, the timer stops operating, and in this embodiment, the parameter is a value of the sampling interval. The sampling interval can be conveniently adjusted through the timer, and the position reporting method can be conveniently operated.
After the step S5 of uploading the location information to the designated background terminal, the method includes:
s61, judging whether the current time reaches the set time;
s62, if yes, acquiring distribution characteristics of the sampling intervals within the set time, wherein the distribution characteristics comprise the time length of the sampling intervals and the distribution time period of the sampling intervals;
and S63, generating division recommendation information about the time period according to the distribution characteristics.
In the above steps S61-S63, the setting time is a preset time point, for example, an end point of the time period, and the setting time is a preset time length, for example, 2, 3, 5, 7 days, etc., and the distribution characteristics of the sampling intervals within the setting time are analyzed, so that the distribution situation of the mobile frequency of the terminal can be determined, and further, the division recommendation information about the time period can be generated according to the distribution situation of the mobile frequency of the terminal.
Referring to fig. 2, the present application further provides a device for reporting a location, including:
the time acquisition module 1 is used for acquiring the current time;
the time period judging module 2 is used for judging which time period the current time is in, wherein the time periods are multiple and are preset time periods;
the sampling interval acquisition module 3 is used for acquiring a corresponding sampling interval called by a time period;
the acquisition module 4 is used for acquiring position information according to sampling intervals;
and the uploading module 5 is used for uploading the position information to a specified background.
The sampling interval acquisition module 3 includes:
the interval initial acquisition submodule is used for acquiring a first interval corresponding to the time period according to the current time and a preset corresponding relation, the first interval is used as a sampling interval, and the corresponding relation is the time period and the sampling interval.
Further, the sampling interval acquisition 3 further includes:
the distance judgment submodule is used for judging whether the movement distance of the terminal in the sampling interval meets the preset condition or not;
the continuous submodule is used for maintaining the sampling interval to acquire the position information within the set times or set duration if the movement distance of the terminal in the sampling interval meets the preset condition;
and the distance re-obtaining sub-module is used for obtaining the second distance if the movement distance of the terminal in the sampling interval does not accord with the preset condition, and collecting the position information by taking the second distance as the sampling interval within the set times or set duration.
Further, the interval judgment submodule includes:
the distance judging unit is used for judging whether the movement distance of the terminal at the sampling interval is within a first threshold value range;
the first judgment unit is used for judging that the preset condition is not met if the preset condition is not met;
the second judgment unit is used for judging that the preset condition is met if the motion intervals of the sampling intervals are within the range of the first threshold value;
the interval judgment unit includes:
the distance acquisition subunit is used for acquiring the motion distance of the terminal at the sampling interval;
the difference acquiring subunit is used for acquiring the difference between the movement distance and the preset distance;
the judging subunit is used for judging whether the difference value is within a second threshold value range;
the first judgment subunit is used for judging that the movement distance of the terminal in the sampling interval is within a first threshold range if the difference value is within a second threshold range;
and the first judgment subunit is used for judging that the movement distance of the terminal in the sampling interval is not in the first threshold range if the difference value is not in the second threshold range.
Further, the pitch retrieval sub-module includes:
the maximum value judging unit is used for judging whether the motion distance of the terminal at the sampling interval is larger than the maximum value in the first threshold range;
and the speed-up acquisition unit is used for acquiring first time used by the terminal to move a preset interval in the nearest range if the movement interval of the terminal in the sampling interval is judged to be larger than the maximum value in the first threshold range, and taking the first time as a second interval.
Further, the step of obtaining the second interval further includes:
the minimum value judging unit is used for judging whether the motion distance of the terminal at the sampling interval is smaller than the minimum value in the first threshold range;
a speed reduction area obtaining unit, configured to obtain an activity area where M positions before current time are located if it is determined that a motion distance of the terminal at a sampling interval is smaller than a minimum value in a first threshold range, where the M positions are sampling positions within a first set number of times or a first set duration;
the radius judging unit is used for judging whether the radius of the active area is within a second threshold range;
the first obtaining unit is used for obtaining a third interval if the radius of the active area is within a second threshold range, and taking the third interval as a second interval to be obtained, wherein the third interval is preset;
and the second acquisition unit is used for acquiring a second time used by the terminal for moving the preset distance if the radius of the active area is not within the second threshold range, and taking the second time as a second interval.
Further, the deceleration area acquisition unit includes:
the diameter acquiring subunit is used for acquiring a linear distance between two positions with the farthest position distance in M positions before the current time;
and the area acquisition subunit is used for acquiring a circular area by taking the linear distance as the diameter, wherein the circular area is an active area.
Further, the acquisition module 4 includes:
the timing submodule is used for leading the sampling interval into a timer to obtain an uploading signal, and the timer is used for sending the uploading signal according to the sampling interval;
and the acquisition submodule is used for acquiring the position information according to the uploading signal.
Further, the location reporting apparatus further includes:
the starting time judging module is used for judging whether the current time reaches the set time or not;
the summarizing module is used for acquiring the distribution characteristics of the sampling intervals in the set time when the current time reaches the set time, wherein the distribution characteristics comprise the time length of the sampling intervals and the time periods of the distribution;
and the recommending module is used for generating the division recommending information about the time periods according to the distribution characteristics.
Referring to fig. 3, an embodiment of the present application further provides a storage medium 100, which is a computer-readable storage medium, on which a computer program 200 is stored, and when the computer program 200 is executed, the method for reporting a location in any of the embodiments is implemented.
Referring to fig. 4, an embodiment of the present application further provides an intelligent device 300, which includes a memory 400, a processor 500, and a computer program 200 stored in the memory 400 and capable of running on the processor 500, where when the processor 500 executes the computer program 200, the location reporting method in any of the embodiments is implemented.
Those skilled in the art will appreciate that the smart device 300 of the embodiments of the present application is a device referred to above for performing one or more of the methods of the present application. These devices may be specially designed and manufactured for the required purposes, or they may comprise known devices in general-purpose computers. These devices have stored therein computer programs 200 or applications, which computer programs 200 are selectively activated or reconfigured. Such a computer program 200 may be stored in a device (e.g., computer) readable medium, including, but not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magnetic-optical disks, ROMs (Read-Only memories), RAMs (Random Access memories), EPROMs (Erasable Programmable Read-Only memories), EEPROMs (Electrically Programmable Read-Only memories), flash memories, magnetic cards, or optical cards, or any type of media suitable for storing electronic instructions, and each coupled to a bus. That is, readable media includes any medium that stores or transmits information in a form readable by a device (e.g., a computer).
According to the position reporting method, the position reporting device and the storage medium, the position reporting method obtains the sampling interval corresponding to the time period to which the current time belongs; sampling positions according to sampling intervals and uploading the positions; the corresponding sampling intervals are obtained in different time periods, so that the high-frequency position uploading in the time period with frequent activity can be realized, the low-frequency position uploading in the time period with less activity can be realized, the position uploading density degree can be controlled through different sampling intervals, the actual situation is adapted, the reporting action is reduced as far as possible in the scene without frequently reporting the position, the power consumption is reduced on the basis of ensuring the tracking and positioning requirements, the power consumption is reduced, the standby time is further prolonged, and the cruising ability is improved.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (7)

1. A position reporting method is characterized by comprising the following steps:
the mobile terminal acquires the current time;
judging which time period the current time is in, wherein the time periods are multiple and are preset time periods;
acquiring a first interval corresponding to the time period, wherein the first interval is a sampling interval;
collecting position information according to the sampling interval;
uploading the position information to a designated background;
acquiring the movement distance of the terminal at the sampling interval;
acquiring a difference value between the movement distance and a preset distance;
judging whether the difference value is within a second threshold value range;
if so, judging that the movement distance of the terminal in the sampling interval is within a first threshold range, and maintaining the sampling interval to acquire position information within a set time or a set duration;
if not, judging that the movement distance of the terminal in the sampling interval is not within a first threshold range;
judging whether the motion distance of the terminal in the sampling interval is smaller than the minimum value in the first threshold range;
if yes, obtaining activity areas where M positions before the current time are located, wherein the M positions are the positions sampled within a first set time or a first set duration;
judging whether the radius of the active area is within a second threshold range;
if so, acquiring a third interval, and taking the third interval as a second interval, wherein the third interval is a preset time interval;
if not, acquiring second time used by the terminal for moving the preset distance, and taking the second time as the second interval;
and acquiring the position information by taking the second interval as the sampling interval within a set time or a set duration.
2. The method according to claim 1, wherein the step of obtaining the first interval corresponding to the time period comprises:
and acquiring a first interval corresponding to the time period according to the current time and a preset corresponding relation, and taking the first interval as a sampling interval, wherein the corresponding relation is the corresponding relation between the time period and the sampling interval.
3. The method of claim 1, wherein the step of acquiring the second interval comprises:
judging whether the movement distance of the terminal in the sampling interval is larger than the maximum value in the first threshold range;
and if so, acquiring first time used by the terminal to move the preset distance in the nearest range, and taking the first time as the second interval.
4. The method according to claim 1, wherein the step of acquiring the active areas where M of the locations are located before the current time comprises:
acquiring a linear distance between two positions with the farthest position intervals in the M positions before the current time;
and acquiring a circular area by taking the linear distance as the diameter, wherein the circular area is the moving area.
5. The method according to claim 1, wherein after the step of uploading the location information to a designated background terminal, the method comprises:
judging whether the current time reaches the set time or not;
if yes, acquiring the distribution characteristics of the sampling intervals within set time, wherein the distribution characteristics comprise the time length of the sampling intervals and the distribution time periods of the sampling intervals;
and generating division recommendation information about the time period according to the distribution characteristics.
6. A location reporting device, comprising:
the time acquisition module is used for acquiring the current time;
the time period judging module is used for judging which time period the current time is in, wherein the time periods are multiple and are preset time periods;
a sampling interval acquisition module, configured to acquire a first interval corresponding to the time period, where the first interval is a sampling interval;
the acquisition module is used for acquiring position information according to the sampling interval;
the uploading module is used for uploading the position information to a specified background terminal;
the motion distance acquisition module is used for acquiring the motion distance of the terminal at the sampling interval;
a difference value obtaining module, configured to obtain a difference value between the movement distance and a preset distance;
the judging module is used for judging whether the difference value is within a second threshold value range;
the first execution module is used for judging that the movement distance of the terminal in the sampling interval is within a first threshold range when the difference value is within a second threshold range, and maintaining the sampling interval to acquire the position information within a set time or a set duration;
the second execution module is used for judging that the movement distance of the terminal in the sampling interval is not in the range of the first threshold value when the difference value is not in the range of the second threshold value;
the minimum value judging module is used for judging whether the motion distance of the terminal at the sampling interval is smaller than the minimum value in the first threshold range;
a speed reduction region obtaining module, configured to obtain, when a motion distance of the terminal at the sampling interval is smaller than a minimum value in the first threshold range, an active region where M positions before the current time are located, where the M positions are the positions sampled within a first set number of times or a first set duration;
the radius judging module is used for judging whether the radius of the active area is within a second threshold range;
the first obtaining module is used for obtaining a third interval when the radius of the active area is within a second threshold range, and taking the third interval as a second interval, wherein the third interval is a preset time interval;
a second obtaining module, configured to obtain, when the radius of the active area is not within a second threshold range, a second time used by the terminal to move the preset interval, and use the second time as the second interval;
and the second acquisition module is used for acquiring the position information by taking the second interval as the sampling interval within a set time or a set duration.
7. A storage medium, which is a computer-readable storage medium, on which a computer program is stored, which, when executed, implements a location reporting method as claimed in any one of claims 1 to 5.
CN202011055584.4A 2020-09-29 2020-09-29 Position reporting method, device and storage medium Active CN112188406B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011055584.4A CN112188406B (en) 2020-09-29 2020-09-29 Position reporting method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011055584.4A CN112188406B (en) 2020-09-29 2020-09-29 Position reporting method, device and storage medium

Publications (2)

Publication Number Publication Date
CN112188406A CN112188406A (en) 2021-01-05
CN112188406B true CN112188406B (en) 2023-03-14

Family

ID=73945983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011055584.4A Active CN112188406B (en) 2020-09-29 2020-09-29 Position reporting method, device and storage medium

Country Status (1)

Country Link
CN (1) CN112188406B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104661180A (en) * 2013-11-21 2015-05-27 华为终端有限公司 Method for adjusting positioning frequency and terminal
CN105786150A (en) * 2014-12-22 2016-07-20 联想(北京)有限公司 Information processing method and electronic device
CN105828430A (en) * 2015-01-08 2016-08-03 阿里巴巴集团控股有限公司 Information acquisition and processing method, client and server
CN106341786A (en) * 2015-07-10 2017-01-18 中移(杭州)信息技术有限公司 Positioning method, security area determining method and related device
CN108900976A (en) * 2018-07-10 2018-11-27 宇龙计算机通信科技(深圳)有限公司 A kind of location information report method and device
CN109392064A (en) * 2018-11-07 2019-02-26 深圳酷泰丰科技有限公司 Reduce method, system, equipment and the storage medium of positioning wearable device power consumption
CN110572776A (en) * 2019-09-20 2019-12-13 奇酷互联网络科技(深圳)有限公司 method for dividing safety area, terminal and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8787939B2 (en) * 2012-03-27 2014-07-22 Facebook, Inc. Dynamic geographic beacons for geographic-positioning-capable devices
WO2016019504A1 (en) * 2014-08-05 2016-02-11 华为技术有限公司 Positioning method, device and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104661180A (en) * 2013-11-21 2015-05-27 华为终端有限公司 Method for adjusting positioning frequency and terminal
CN105786150A (en) * 2014-12-22 2016-07-20 联想(北京)有限公司 Information processing method and electronic device
CN105828430A (en) * 2015-01-08 2016-08-03 阿里巴巴集团控股有限公司 Information acquisition and processing method, client and server
CN106341786A (en) * 2015-07-10 2017-01-18 中移(杭州)信息技术有限公司 Positioning method, security area determining method and related device
CN108900976A (en) * 2018-07-10 2018-11-27 宇龙计算机通信科技(深圳)有限公司 A kind of location information report method and device
CN109392064A (en) * 2018-11-07 2019-02-26 深圳酷泰丰科技有限公司 Reduce method, system, equipment and the storage medium of positioning wearable device power consumption
CN110572776A (en) * 2019-09-20 2019-12-13 奇酷互联网络科技(深圳)有限公司 method for dividing safety area, terminal and storage medium

Also Published As

Publication number Publication date
CN112188406A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
CN108564951B (en) Method for intelligently reducing false awakening probability of voice control equipment
Benhabib et al. The joint exploitation of a productive asset: a game-theoretic approach
DE102013223056B4 (en) DEVICE AND METHOD FOR CARRYING OUT GEOFENCING OPERATIONS WITH LOW ENERGY REQUIREMENTS
CN110198558B (en) Standby optimization method and device, computer equipment and storage medium
KR20170028903A (en) Methods and systems for reducing energy consumption of a heart rate monitor
CN101853066A (en) Method and device for automatically adjusting clock frequency of system in real time
DE112011104622T5 (en) Power management for a limited-power wireless tracker
CN109859774B (en) Voice equipment and method and device for adjusting endpoint detection sensitivity thereof and storage medium
US11109313B2 (en) Cellular modem for low power applications
US10367759B2 (en) Adaptive speed data collection
WO2018098719A1 (en) Sleep monitoring method, apparatus and terminal
CN112188406B (en) Position reporting method, device and storage medium
CN108197714B (en) Method and device for judging working mode by using machine learning model
CN106681619B (en) Method and device for controlling energy consumption of electronic equipment
CN110687316B (en) System and method for measuring target motion amount with low power consumption
CN107135125B (en) Video IDC bandwidth flow prediction method and device
CN108678564A (en) A kind of awakening method and device of smart lock
CN109258508B (en) Sow oestrus analysis method and device, terminal and computer readable storage medium
CN111200864A (en) Data processing method, device, equipment and storage medium
CN108595666B (en) Method for dynamically calculating news acquisition service resources and information data processing terminal
CN111176743A (en) Wake-up performance optimization method and device based on user use habits
CN106325985B (en) Timer adjusting method and system and mobile terminal
CN111930602A (en) Performance index prediction method and device
CN111465354B (en) Cognitive function degradation determination system
CN114652327B (en) Sleep planning method and system based on electroencephalogram, intelligent terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant