Disclosure of Invention
In view of the above, the present invention provides a reminding system, a method and a computer readable storage medium for reminding carrying an umbrella. The problem of among the prior art when the user does not have rain when going out and will rain in the future after going out is solved, the user leaks to take the umbrella the condition.
In order to achieve the purpose, the invention adopts the following technical scheme:
a reminding system for reminding carrying of an umbrella comprises a positioning device and a mobile terminal, wherein the positioning device and the mobile terminal are arranged in the umbrella; wherein the mobile terminal includes: the system comprises a database, a calculation module and a display module;
a first distance threshold value is set in the calculation module; the positioning device continuously detects the position information of the umbrella and sends the position information of the umbrella to a computing module arranged in the mobile terminal; meanwhile, a calculation module arranged in the mobile terminal continuously detects the position information of the mobile terminal; a calculation module arranged in the mobile terminal calculates the received position information of the umbrella and the acquired position information of the mobile terminal to obtain distance information; the calculation module compares the first distance threshold with the calculated distance information;
a database arranged in the mobile terminal is provided with a time threshold; a calculation module arranged on the mobile terminal acquires the rainy weather information from the database and acquires the time value of the time length of the rainy weather information; the calculation module simultaneously compares a preset time threshold value with a time value;
when the calculated result is that the distance information is larger than a preset first distance threshold and the time value is smaller than a preset time threshold, a reminding instruction is formed by the calculating module at the moment and sent to the display module, and the display module displays the reminding instruction to remind a user of carrying the umbrella; if the condition is not met or only one of the condition is met, the calculation module does not form a reminding instruction, so that the display module does not display the reminding instruction to remind the user to carry the umbrella. When the distance information is larger than the first distance threshold value and the weather acquired by the calculation module from the database is not rainy, the calculation module does not generate a reminding instruction, namely the display module does not remind the user of carrying the umbrella; when the distance information is smaller than or equal to the first threshold value, the user is not reminded to carry the umbrella no matter whether the weather information acquired from the data by the calculation module rains or not.
Further, still be equipped with the second distance threshold in the calculation module, after calculation module forms the warning instruction, and will be after the warning instruction transmits display module, and show on display module and remind the user to carry the jade hill after, distance information is being greater than the second distance threshold after, calculation module forms the stop instruction, and will stop the instruction and send stop instruction to display module, stop showing after display module receives the stop instruction and remind the user to carry the umbrella, prevent that the user from using the time of system waits, after the user passes through the warning information, the user does not want to go back to take the umbrella or when having had other umbrellas on one's body this moment, stops to show voluntarily after distance information is greater than the second threshold and reminds.
Further, a third distance threshold, a fourth distance threshold, a first time length threshold and a second time length threshold are also set in the calculation module;
the calculation module calculates a first moving distance of the position information of the mobile terminal within a first time threshold, compares the first moving distance with a third distance threshold, and judges that the mobile terminal does not move when the first moving distance is smaller than the third distance threshold; the calculation module is also used for simultaneously calculating a second moving distance of the position information of the positioning device arranged on the umbrella within a second time length threshold value, and simultaneously comparing the second moving distance with a fourth distance threshold value, and when the second moving distance is greater than the fourth distance threshold value, the calculation module is used for judging that the positioning device arranged on the umbrella moves;
when the mobile terminal does not move and the positioning device arranged on the umbrella moves, the calculation module does not form a display instruction, and the display module cannot receive the display instruction, namely the display module does not remind a user to carry the umbrella.
Further, a movement threshold and a third duration threshold are also arranged in the calculation module, the calculation module calculates distance information in the third duration threshold to obtain the average moving speed of the mobile terminal, and simultaneously the calculation module compares the obtained average moving speed with the movement threshold, when the average moving speed is less than or equal to the movement threshold, the calculation module forms a display instruction and reminds a user to carry an umbrella through the display module; when the average moving speed is larger than the moving speed threshold value, the calculation module does not form a display instruction, and the display module does not remind a user of carrying the umbrella.
Further, a rainfall threshold value is further arranged in the calculation module, the calculation module calculates rainfall information in a time value, the calculation module compares the rainfall information with the rainfall threshold value at the same time, when the rainfall information is larger than the rainfall threshold value, the calculation module forms a reminding instruction and sends the reminding instruction to the display module, the display module reminds a user of carrying the umbrella, when the rainfall information is smaller than or equal to the rainfall threshold value, the calculation module does not form the display instruction, and the display module does not remind the user of carrying the umbrella.
Further, when the rainfall weather information acquired by the calculation module from the database is dangerous rainfall, the calculation module disregards the rainfall threshold value, and as long as the rainfall is within the time value, the calculation module forms a reminding instruction even if the calculated rainfall information is less than the rainfall threshold value, and reminds the user to carry the umbrella through the display module.
Further, a first stay time threshold and a second stay time threshold are further arranged in the calculation module, the calculation module detects the stay time of the mobile terminal when the mobile terminal stays, the calculation module respectively compares the stay time with the first stay time threshold and the second stay time threshold, when the stay time is smaller than the first stay threshold, the calculation module forms a reminding instruction, and the display module reminds a user of carrying the umbrella; when the staying time is greater than or equal to the first staying time threshold and is less than or equal to the second staying time threshold, the calculation module does not form a reminding instruction, so that the display module does not remind a user of carrying the umbrella; when the stay time is larger than the second stay time threshold, the calculation module forms a reminding instruction, and the display module reminds the user of carrying the umbrella.
Furthermore, a recording unit is further arranged in the computing module, the recording unit records a record of the computing module for reminding the user of carrying the umbrella each time, the computing module calculates the reminding data recorded by the recording unit, traces back the time point of the user who often uses the umbrella, generates a reminding instruction before the time point of the user who often uses the umbrella, and sends the reminding instruction to the display module to display and remind the user of carrying the umbrella.
In view of the above, another object of the present invention is to provide a reminding method using the reminding system, which includes the steps of:
the positioning device arranged in the umbrella detects the position information of the umbrella and transmits the position information of the umbrella to the computing module; a calculation module in the mobile terminal detects the position information of the mobile terminal, the calculation module obtains the position information of the umbrella and the position information of the mobile terminal, the distance information is calculated through the calculation module, and the calculation module compares a first time threshold value with the distance information; calculating weather raining information in the database acquired by the module, and acquiring a time value of the duration of the weather raining information; the calculation module compares and judges the time threshold value with the time value; when the distance information is greater than the first distance threshold and the time value is less than the time threshold, the display module does not form a reminding instruction, the display module does not display the reminding instruction to remind a user to carry an umbrella, and when the distance information is greater than the first distance threshold and the weather acquired by the calculation module from the database is not rainy, the calculation module does not generate the reminding instruction, namely the display module does not remind the user to carry the umbrella; when the distance information is smaller than or equal to the first threshold value, the user is not reminded to carry the umbrella no matter whether the weather information acquired by the calculation module from the data is rainy or not.
The invention also discloses a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps as described above.
The invention has the advantages that the problem that a user misses taking an umbrella when the user does not rain when going out and the user is about to rain in the future after going out is solved, when the user forgets to take the umbrella, the user can be reminded to take the umbrella by pushing a message to a mobile phone of the user or wearing equipment, and when the user goes out, the user can automatically send reminding information to the user according to the future weather condition to remind the user to take the umbrella.
Detailed Description
The examples are given for the purpose of better illustration of the invention, but the invention is not limited to the examples. Therefore, those skilled in the art should make insubstantial modifications and adaptations to the embodiments of the present invention in light of the above teachings and remain within the scope of the invention.
The advantages of the invention are further illustrated in the following description of specific embodiments in conjunction with the accompanying drawings.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings, in which like numerals refer to the same or similar elements throughout the different views, unless otherwise specified. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In the description of the present invention, it is to be understood that the terms "longitudinal", "lateral", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used merely for convenience of description and for simplicity of description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed in a particular orientation, and be operated, and thus, are not to be construed as limiting the present invention.
In the description of the present invention, unless otherwise specified and limited, it is to be noted that the terms "mounted," "connected," and "connected" are used in a broad sense, and for example, they may be mechanically or electrically connected, or they may be connected internally to two elements, directly or indirectly through an intermediate, and those skilled in the art will understand the specific meaning of the terms as they are used in the specific case.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
Referring to fig. 1 to 4, the embodiment provides a reminding system for reminding carrying an umbrella, which includes a positioning device and a mobile terminal, the positioning device is arranged in the umbrella; wherein, mobile terminal includes: the system comprises a database, a calculation module and a display module;
a first distance threshold value is arranged in the calculation module; the positioning device continuously detects the position information of the umbrella, detects the position information of the umbrella in the moving process of the umbrella, and sends the detected position information of the umbrella to the computing module; similarly, the calculation module also continuously detects the position information of the mobile terminal, the position information of the mobile terminal is detected by the calculation module no matter the mobile terminal is at a fixed position or in the moving process, then the calculation module simultaneously calculates the acquired position information of the umbrella and the acquired position information of the mobile terminal, the distance information between the umbrella and the mobile terminal is obtained after the calculation module, and after the calculation module calculates the distance information between the umbrella and the mobile terminal, the calculation module compares the calculated distance information with the first distance threshold; meanwhile, the database is communicated with the mobile internet to obtain real-time weather information, a time threshold value is also arranged in the database, and the calculation module is used for continuously obtaining the rainy weather information from the database and obtaining the time value of the time length of the rainy weather information; the calculation module obtains the time value and compares the time value with a time threshold value set in the database for hiccup;
after the comparison of the calculation module, when the distance information between the umbrella and the mobile terminal is larger than a first distance threshold value arranged in the calculation module and the time value of the time length of the rainy weather information acquired by the calculation module is smaller than a time threshold value arranged in the database, the calculation module forms a reminding instruction, sends the reminding instruction to the display module, and the display module displays the reminding instruction to remind a user of carrying the umbrella.
That is, when the umbrella and the mobile terminal reach a certain distance and there is a rainy weather in a certain time period in the future, the user is reminded to carry the umbrella. Naturally, it is conceivable that when the distance information between the umbrella and the mobile terminal is greater than the preset first distance threshold, and when the weather information is greater than or equal to the time threshold set in the database in rainy days, no warning will be given at this time; and it is also conceivable that the calculation module will not form the reminder information no matter whether the acquired weather information is raining or not, when the distance information between the umbrella and the mobile terminal is smaller than the preset first distance threshold.
When the distance information between the umbrella and the mobile terminal calculated in the calculation module is larger than the first distance threshold and the time value of the rainy weather information compared by the calculation module is smaller than the time threshold, the calculation module forms a reminding instruction and sends the reminding instruction to the display module, the display module also displays information for reminding a user to carry the umbrella, the user can ignore the reminding information after acquiring the information and continuously keeps away from the umbrella to gradually increase the distance information between the umbrella and the mobile terminal, at the moment, the distance information calculated by the calculation module is compared with the second distance threshold, and when the distance information is larger than the second distance threshold as a comparison result, a stopping instruction is formed in the calculation module and sent to the display module, the display module stops displaying to remind the user to carry the umbrella.
The embodiment mainly describes that when a user carries distance information between the mobile terminal and a positioning device arranged on an umbrella, the mobile terminal reminds the user of carrying the umbrella, and after the user receives the reminder, the user does not want to return to take the umbrella or does not want to take the umbrella again, so that the user can influence the travel delay time of the user, when the distance information between the mobile terminal and the positioning device on the umbrella is larger than a second distance threshold, the calculation module forms a stop instruction, and the display module stops displaying to remind the user of carrying the umbrella.
A third distance threshold, a fourth distance threshold, a first time length threshold and a second time length threshold are further arranged in the calculation module; calculating moving distance information of the position information of the mobile terminal within a first time length threshold value through a calculating module to obtain a first moving distance, comparing the calculated first moving distance with a third distance threshold value through the calculating module, judging that the mobile terminal does not move when the first moving distance is smaller than the third distance threshold value through the calculating module, and otherwise judging that the mobile terminal does not move; the calculation module calculates the moving distance of the position information of the positioning device arranged on the umbrella within a second time length threshold value to obtain a second moving distance, compares the calculated second moving distance with a fourth distance threshold value, and judges that the positioning device arranged on the umbrella moves when the second moving distance is greater than the fourth distance threshold value; otherwise, determining that the positioning device on the umbrella does not move; when the mobile terminal obtained by the calculation and comparison is not moved and the positioning device arranged on the umbrella is moved, the calculation module does not form a display instruction, and the display module does not remind a user to carry the umbrella. Namely, when the umbrella is borrowed to another person, the calculation module does not form a reminding instruction, and the display module does not display the reminding instruction to remind the user to carry the umbrella.
The calculation module is also internally provided with a moving speed threshold and a third time length threshold, the calculation module calculates position information between the position information of the umbrella in the third time length threshold and the position information of the mobile terminal so as to obtain average moving speed, the calculation module compares the obtained average moving speed with the moving speed threshold, if the average speed is less than or equal to the moving speed threshold, the calculation module forms a reminding instruction, the reminding instruction is sent to the display module, and the reminding instruction is displayed on the display module to remind a user of carrying the umbrella.
The embodiment mainly describes that, after the user leaves the door, no matter whether the distance information between the umbrella and the mobile terminal is greater than the first distance threshold, as long as the average moving speed exceeds the preset moving speed threshold, it is determined that the user has selected to take the vehicle for traveling at the moment, and does not carry the umbrella when not needed, and at this moment, the display reminding is not needed.
And a rainfall threshold is also arranged in the calculation module, when the calculation module compares that the distance information is greater than the first distance threshold, and the weather information acquired from the database is a time value to be rained, the calculation module compares the rainfall information in the time value with the rainfall threshold, when the rainfall information is greater than the rainfall threshold, the calculation module forms a reminding instruction and sends the reminding instruction to the display module, the display module displays the reminding instruction to remind a user of carrying the umbrella, and when the rainfall information is less than or equal to the rainfall threshold, the calculation module does not form the reminding instruction, and the display module does not display the reminding instruction to remind the user of carrying the umbrella.
The embodiment mainly describes that, after the results are calculated and compared, after the obtained distance information is greater than the first threshold value, and the obtained weather information is rainy, the calculation module calculates the rainfall amount within the time value at this time to form rainfall amount information, and compares the rainfall amount information with the preset rainfall amount threshold value, if the rainfall amount information is less than the rainfall amount threshold value, the technical distance threshold value is greater than the first distance threshold value at this time, and when the rainfall condition still occurs within the time value, the module does not generate the reminding instruction.
When the information of the rainy weather acquired by the calculation module from the database is dangerous rainfall, the calculation module disregards the rainfall threshold value, and as long as the rainy weather appears within the time value, the calculation module directly generates a reminding instruction and displays the reminding instruction through the display module to remind a user of carrying an umbrella.
The embodiment mainly illustrates that when the weather information of the rainy days in the future time value is the weather which is harmful to acid rain, the user is not reminded according to the rainfall, because the harm is pure no matter how much the rainfall is, the user is reminded directly to avoid the harm.
The recording unit is arranged in the computing module and is used for recording the record of reminding the user of carrying the umbrella at each time, so that the time point when the user frequently uses the umbrella can be traced, and the user can be reminded to carry the umbrella before the time point when the user frequently uses the umbrella.
The main explanation of this embodiment is that, the record module will record the record that the calculation module reminded each time, and the time point when the user often goes out is calculated in statistics to the calculation module is according to the weather information that obtains, if after the time point that the user often goes out and when there is the rainy condition within the time threshold, or other unexpected weather, for example snow, the big sun need carry the condition of umbrella, reminds the user to carry the umbrella in advance.
In summary, another objective of the present invention is to provide a reminding method applied to the reminding system, which includes the steps of:
the positioning detection umbrella is arranged in the umbrella and used for positioning and detecting the position information of the umbrella, and the position information obtained by the detection is transmitted to the calculation module; meanwhile, the calculation module also acquires the position information of the mobile terminal; the calculation module obtains the position information of the umbrella and obtains distance information after calculating the position information of the umbrella and the position information of the mobile terminal; and the distance information is compared with the first distance threshold value through the calculation module;
the calculation module is also used for acquiring the rainy weather information from the database, acquiring the time value of the time length of the rainy weather information, and comparing the time threshold value with the time value through the calculation module;
when the distance information is larger than the first distance threshold value and the time value is smaller than the time threshold value, the display module forms a display instruction and prompts a user to carry the umbrella on the display module.
In addition to the above-mentioned reminding condition, it is also possible that the distance information is less than or equal to the first distance, and the time value is less than the time threshold, or the distance information is greater than the first distance threshold, and the time value is less than or equal to the time threshold, or the distance information is less than or equal to the first distance threshold, and the time value is greater than or equal to the time threshold, etc., the calculation module will not generate the reminding instruction, and the display module will not remind the user to carry the umbrella.
The invention also discloses a computer readable storage medium having a computer program stored thereon, which when executed by a processor implements the steps as described above.
The intelligent terminal may be implemented in various forms, for example, the mobile terminal described in the present invention includes, for example: a mobile phone, a smart phone, a notebook computer, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, etc., and a fixed terminal such as a digital TV, a desktop computer, etc.
It should be noted that the embodiments of the present invention have been described in terms of preferred embodiments, and not limited to any particular form, and those skilled in the art may modify and modify the above-described embodiments in accordance with the principles of the present invention to achieve the same advantages as those of the present invention.