CN115022459B - Travel reminding method and electronic equipment - Google Patents

Travel reminding method and electronic equipment Download PDF

Info

Publication number
CN115022459B
CN115022459B CN202111604979.XA CN202111604979A CN115022459B CN 115022459 B CN115022459 B CN 115022459B CN 202111604979 A CN202111604979 A CN 202111604979A CN 115022459 B CN115022459 B CN 115022459B
Authority
CN
China
Prior art keywords
fence
current scene
scene
target
geofence
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
CN202111604979.XA
Other languages
Chinese (zh)
Other versions
CN115022459A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111604979.XA priority Critical patent/CN115022459B/en
Publication of CN115022459A publication Critical patent/CN115022459A/en
Application granted granted Critical
Publication of CN115022459B publication Critical patent/CN115022459B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • 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

Abstract

The application provides a travel reminding method and electronic equipment. By adopting the method, whether the PUSH fence of the first travel application is triggered or not is detected, and the PUSH fence of the first travel application is triggered to indicate the electronic equipment to receive the PUSH message sent by the server of the first travel application; detecting whether a target fence of the current scene is triggered or not, wherein the target fence of the current scene comprises a target geofence of the current scene, and the target geofence trigger of the current scene is used for indicating that the electronic equipment is located in a target area of the current scene; if the target fence trigger of the current scene or the PUSH fence trigger of the first travel application is detected, judging whether a travel prompt of the current scene is displayed or not; and if the travel prompt of the current scene is determined to be displayed, displaying the travel prompt of the current scene, and according to the triggered fence, releasing the target fence of the current scene or ignoring the next acquired PUSH message of the current scene. The method and the device can provide accurate travel reminding for the user.

Description

Travel reminding method and electronic equipment
Technical Field
The application relates to the technical field of computers, in particular to a travel reminding method and electronic equipment.
Background
With the rapid development of electronic technology, the popularity of mobile terminals such as smartphones is higher and higher, and with the development of network technology, the functions of the mobile terminals are more and more powerful, so that users can complete many things through the mobile terminals, such as sending mails, ordering train tickets on the internet, and the like. After the user orders the train ticket, the ticket purchasing website can push a short message reminder to the user so as to avoid the user missing the journey.
However, the reminding mode using the short message is poor in instantaneity, inaccurate in reminding and poor in user experience.
Disclosure of Invention
The application provides an optimized trip reminding method and electronic equipment.
In some scenes, the reminding mode of adopting the short message is affected by the environment, and the mobile phone can not timely provide accurate travel reminding for the user. According to the electronic equipment, the behavior of the user can be accurately judged through the fences with multiple dimensions, and trip reminding can be timely and accurately provided for the user.
In some embodiments, the cell phone may determine that the user arrived at a train station or airport through cooperation between 3 pens. Taking the train out as an example, the three pens may be PUSH pens for train travel applications (e.g., railway 12306 applications), geo-pens for the train station, and time-pens, wherein the time-pens may serve as bottom-of-the-road pens. After a user subscribes to a train ticket, the user may subscribe to the PUSH rail applied by the railway 12306, and subscribe to the georail and the time rail after acquiring trip information (such as trip time of the train and departure of the train). When neither the registered (also called subscribed) PUSH fence nor the geofence is triggered, the handset can determine whether the user arrives at the train station through the spam time fence. When a context awareness module in the mobile phone detects that an inbound message pushed by the railway 12306 application is received, the subscribed PUSH fence is triggered, and the subscribed geofence and the subscribed time fence are canceled, namely, the PUSH fence is used at the moment. When the subscribed geofence is triggered, the subscribed bottom-covered geofence is canceled, and meanwhile, the received PUSH message indicating the inbound is ignored; when the bottom-of-pocket time fence triggers, the subscribed geofence is canceled, while the received PUSH message indicating inbound is ignored. Different environments have different effects on the triggering of the PUSH fence and the geofence, for example, an environment with poor network signals is unfavorable for receiving the PUSH message, and the environment has no effect on positioning the geographic position, in the environment, since the mobile phone is also provided with the geofence instead of completely relying on the PUSH fence, the problem that whether a user arrives at a railway station or not cannot be determined due to the fact that the PUSH fence is not triggered can be avoided. Some environments can influence PUSH rail and geofence simultaneously, and the time rail is not influenced by the environment, also can ensure the timely pop-up of trip warning. In some scenarios, a geofence (i.e., a target geofence following the present application) may have an in-effect time attribute, then a railway station fence may be understood to include a geofence and a geofence associated with the geofence (the geofence being used to determine the time of registering the geofence, and also being understood to be used to determine the in-effect time of the geofence): subscribing (subscribing can also be understood as registering) a train station fence in advance, the time fence in the train station fence can be registered (or understood as taking effect first), when to start to register the geofence and further to sense whether the geofence is triggered or not, for example, a valid time can be set before 5 days, but the valid time can be the fifth day (when the time fence is triggered), then even if a user passes through the train station in the first four days, a context awareness module in a mobile phone cannot sense the event of the geofence, so that the power consumption of the train fence is reduced. Through rail cooperation of multiple dimensions, the behavior of the user can be accurately judged, and trip reminding can be timely and accurately provided for the user.
In a first aspect, the present application provides a method for reminding a user of traveling, which is applied to an electronic device, and the method includes: detecting whether a PUSH fence of a first travel application is triggered or not, wherein the PUSH fence of the first travel application triggers a PUSH message which is used for indicating an electronic device to receive a server of the first travel application; detecting whether a target fence of the current scene is triggered or not, wherein the target fence of the current scene comprises a target geofence of the current scene, and the target geofence trigger of the current scene is used for indicating that the electronic equipment is located in a target area of the current scene; if the target fence trigger of the current scene or the PUSH fence trigger of the first travel application is detected, judging whether a travel prompt of the current scene is displayed or not; and if the travel prompt of the current scene is determined to be displayed, displaying the travel prompt of the current scene, and according to the triggered fence, releasing the target fence of the current scene or ignoring the next acquired PUSH message of the current scene.
In some scenarios, if only one dimension of fence is registered (for example, only a geofence is registered), because the mobile phone acquires current longitude and latitude information, which is greatly affected by the environment, the geographical location information acquired by the context awareness module in the mobile phone may not be accurate, which may result in a problem that a trip reminder cannot be provided for the user in time, and similarly, a single use of a time fence or a single use of a PUSH fence of a first trip application (for example, a "railway 12306" application) may have a problem of missed reminder or incorrect reminder, for example, the user has arrived, and because of network delay or signal problems, the mobile phone of the user does not receive a PUSH message indicating that the user arrived from a server of the railway 12306 "application, which may result in a missed reminder for the electronic device. In the application, the electronic equipment registers a plurality of fences with different functions (dimensions) according to the journey data, such as a PUSH fence and a target geofence of each scene; the electronic equipment monitors the information of two different dimensions simultaneously, so that the information of each dimension in different scenes is mutually compensated, the problem that a user cannot be timely reminded of traveling due to inaccurate information monitoring is avoided, and the accuracy of traveling reminding is improved.
According to a first aspect, if a target fence trigger of a current scene or a PUSH fence trigger of a first travel application is detected, determining whether to display a travel reminder of the current scene includes: if the target fence trigger of the current scene is detected, determining to display a trip prompt of the current scene; if the PUSH fence trigger of the first travel application is detected, analyzing the received PUSH message, and judging whether the PUSH message of the current scene exists in the PUSH message; if the PUSH message of the current scene is obtained, determining to display a travel prompt of the current scene; and if the PUSH message of the current scene is not acquired, canceling the travel prompt for displaying the current scene.
Thus, since the PUSH message generally includes a lot of content, for example, the current scene is a scene of arriving at the outbound, the electronic device detects the PUSH fence trigger, and the PUSH message received by the electronic device may be train ticket information of train trip. The received PUSH message cannot be used to determine whether the user arrived at the train station. In the example, through analyzing the PUSH message, when the PUSH message of the current scene is detected to be acquired, the guide information of the current scene is determined to be displayed, so that the accuracy of determining the guide information of the current scene to be displayed is improved, and the guide information is prevented from being displayed in a follow-up error mode. When the target geofence is triggered, the position of the electronic equipment can be indicated, the guiding information of the scene can be determined and displayed without other operations, and the judging speed is high.
According to a first aspect, in the method, according to the triggered fence, the step of releasing the target fence of the current scene or ignoring the next acquired PUSH message of the current scene includes: if the PUSH fence of the first travel application is determined to be triggered and the PUSH message of the current scene is determined to be acquired, the target fence of the current scene is released; and if the target fence trigger is determined, ignoring the PUSH message of the current scene acquired next time.
In this way, when the PUSH fence is triggered and the PUSH message of the current scene is obtained is determined, the guiding information of the current scene is determined to be displayed, the target fence of the current scene is released, and unnecessary power consumption can be reduced; similarly, when the target fence trigger is determined, the guiding information of the current scene can be determined to be displayed, and the next acquired PUSH message of the current scene is not required to be processed, so that the power consumption is reduced.
According to a first aspect, the target fence of the current scene in the method further comprises a target time fence of the current scene; detecting whether a target fence of the current scene triggers comprises: detecting whether a target geofence of the current scene is triggered or not and detecting whether the target geofence of the current scene is triggered or not, wherein the target geofence trigger of the current scene is used for indicating that the preset designated time of the current scene is reached.
Thus, the target fence further comprises a target time fence, namely the electronic equipment monitors three fences simultaneously, the target time fence with one time dimension is added, the monitored data are further enriched, the accurate prediction of the user behavior is improved, and further accurate going-out reminding is provided for the user. For example, when the train ticket of the user gets out on 12 months 1 day 10:00, if the designated time for reaching the outbound is preset to be 9:30, the user can be predicted to have reached the outbound when the time reaches 9:30, and then a trip prompt for reaching the outbound is provided for the user.
According to a first aspect, according to the triggered fence, releasing the target fence of the current scene or ignoring the PUSH message of the current scene acquired next time, including: if the target time fence of the current scene is determined to be triggered, the target time fence of the current scene is released, and the next acquired PUSH message of the current scene is ignored; if the target geofence of the current scene is determined to be triggered, the target geofence of the current scene is released, and the next acquired PUSH message of the current scene is ignored; and if the PUSH fence of the first travel application is determined to be triggered and the PUSH message of the current scene is determined to be acquired, the target geofence of the current scene and the target time fence of the current scene are released.
Thus, when the target fence further comprises the target time fence, if the target geofence is triggered or the target time fence is triggered, not only the next acquired PUSH message of the current scene is needed to be ignored, but also another fence in the target fence is needed to be released, and if the PUSH fence of the first travel application is triggered and the acquisition of the PUSH message of the current scene is determined, the target geofence is released and the target time fence is released, so that the power consumption of the electronic equipment is reduced.
According to a first aspect, before detecting whether the PUSH fence of the first travel application is triggered, the method further comprises: if an authorization relationship exists between an authorization object and a designated application account is detected, registering a PUSH fence of the first travel application, wherein the authorization object comprises an identification of electronic equipment or an account of a user on a user service platform, and the designated application account is an account of a server of the user on the first travel application.
In this way, when the existence relationship between the authorized object and the appointed application account is detected, the PUSH fence of the first travel application is registered, so that the PUSH message can be timely detected.
According to a first aspect, a target geofence for a current scene includes: an effective time fence and an effective geo-fence; detecting whether a target fence of a current scene is triggered, comprising: detecting whether an effective time fence in a target geofence of a current scene is triggered or not, wherein the effective time fence trigger is used for indicating that the preset registration time of the target geofence is reached; registering an effective geofence in the target geofence of the current scene if an effective geofence trigger in the target geofence of the current scene is detected; detecting whether the effective geofence of the target geofence of the current scene is triggered or not, and if the effective geofence trigger of the target geofence of the current scene is detected, determining the target geofence trigger of the current scene.
In this way, the target geofence comprises the effective time fence and the effective geofence, and the effective geofence is registered only when the effective time fence is triggered, so that the electronic equipment detects the position of the electronic equipment only after the effective time fence is triggered, the power consumption is reduced, meanwhile, the problem of false triggering when a user passes through the target position is avoided, and the accuracy of the target geofence is improved.
According to a first aspect, before detecting whether an effective time fence in a target geofence of a current scene is triggered, the method further comprises: acquiring travel data of a user; and registering the effective time fence of the target geofence of each scene according to the trip data and the scenes of each trip. In this way, the effective time fences of all scenes are registered through the journey data of the user, so that the registration of the effective geofences in the target geofences is matched with the journey of the user, and the accuracy of the target geofences is further improved. For example, the ticket purchasing time of the user is 1 month and 1 day, the departure time of the train is 1 month and 5 days, then the effective time fence can be triggered at 1 month and 5 days according to the departure time of the user, the effective geofence is registered, and the effective geofence in the target geofence is unregistered before 1 month and 5 days, so that the position of the electronic device is not monitored, that is, the problem of detecting the position by mistake is not caused.
According to a first aspect, a scene of travel comprises: a scene arriving at the outbound, a scene in the trip, a scene arriving at the destination, and a scene leaving the destination. The scene of going out is the scene that the user needs to remind, carries out the trip to the scene of this trip and reminds, has pertinence, improves user's experience.
According to a first aspect, the trigger conditions for a target time fence to arrive at an outbound scene include: the time difference from the predicted departure time is less than or equal to a first preset duration; the target area of the target geofence that arrives at the scene of the outbound includes: the area where the departure station is located. Therefore, the target time fence can be determined according to the travel of the user, meets the travel requirement of the user, and improves the travel reminding accuracy.
According to a first aspect, the trigger conditions for the target time fence of the scene in the trip include: detecting a position between the estimated departure time and the estimated arrival time; the target area of the target geofence of the scene in the trip includes a preset area outside of the outbound. Therefore, the target time fence of the scene in the journey can be determined according to the journey of the user, the travel requirement of the user is met, and the travel reminding accuracy is improved.
According to a first aspect, a trigger condition for a target time fence of a scene arriving at a destination station: the sum of the time between the expected arrival time and the expected error duration is reached; the target area of the target geofence of the scene arriving at the destination station includes: the area in which the destination station is located. Therefore, the target time fence of the scene reaching the destination station can be determined according to the travel of the user, the travel requirement of the user is met, and the travel reminding accuracy is improved. Meanwhile, the area where the destination station is located serves as a target area of a target geofence reaching the destination station scene, so that the setting of the target geofence of the scene meets the travel requirement of a user.
According to a first aspect, the trigger condition of a target time fence of a scene leaving a destination station: reaching the sum of the expected arrival time and the preset outbound time; the target area of the target geofence of the scene leaving the destination station includes: the preset area outside the area where the destination station is located. In this way, the target time fence and the target geofence of the scene leaving the destination station can determine the corresponding trigger conditions according to the journey of the user, so that the trigger of the fence meets the travel requirement of the user, and the travel reminding accuracy is improved.
According to a first aspect, registering an effective time fence of a target geofence of each scene according to trip data and the scenes of each trip, comprising: obtaining expected departure time from trip data, registering an effective time fence in a target geofence reaching an outbound scene and registering an effective time fence in the target geofence in the scene in the trip; the trigger conditions of the effective time fence in the target geofence reaching the outbound scene and the trigger conditions of the effective time fence in the target geofence in the in-trip scene are: the distance estimated departure time is smaller than or equal to a preset first trigger time length;
obtaining expected arrival time from trip data, registering an effective time fence in a target geofence in a scene of arrival at a destination station, and registering an effective time fence in a target geofence in a scene of departure from the destination station; the effective time fence triggering conditions in the target geofence in the scene in the journey and the triggering conditions of the effective time fence in the target geofence in the scene of reaching the destination are: the distance estimated departure time is smaller than or equal to a preset second trigger time length.
Therefore, according to the estimated arrival time and the estimated departure time, the triggering conditions of the fence are determined, so that the triggering of the fence meets the travel requirement of a user, and the travel reminding accuracy is improved.
According to a first aspect, before displaying the travel reminder of the current scene, the method further comprises: cancelling the travel reminder for displaying the previous scene; or, the display content is indicated to be updated from the travel reminder of the previous scene to the travel reminder of the current scene. Therefore, the problem that the user is disturbed by outdated travel reminding is avoided, and the use experience of the user is improved.
According to a first aspect, if the first trip application is a train trip application, the method comprises: detecting whether a PUSH fence of the train traveling application is triggered or not, wherein the PUSH fence of the train traveling application triggers a PUSH message which is used for indicating an electronic device to receive a server of the train traveling application; detecting whether a railway station fence of a current scene is triggered or not, wherein the railway station fence of the current scene comprises a target geofence taking a railway station in the current scene as a target area; if the trigger of the railway station fence or the PUSH fence applied to the train traveling in the current scene is detected, judging whether traveling reminding in the current scene is displayed or not; if the travel prompt of the current scene is confirmed to be displayed, the travel prompt of the current scene is displayed, and according to the triggered fence, the railway station fence of the current scene is relieved or the next acquired PUSH message of the current scene is ignored;
If the first trip application is an aircraft trip application, the method includes: detecting whether a PUSH fence of the aircraft travel application is triggered or not, wherein the PUSH fence of the aircraft travel application triggers a PUSH message which is used for indicating electronic equipment to receive a server of the aircraft travel application; detecting whether an airport fence of a current scene is triggered or not, wherein the airport fence of the current scene comprises a target geofence taking an airport of the current scene as a target area; if the trigger of the airport fence of the current scene or the PUSH fence of the airplane travel application is detected, judging whether a travel prompt of the current scene is displayed or not; and if the travel prompt of the current scene is determined to be displayed, displaying the travel prompt of the current scene, and according to the triggered fence, releasing the airport fence of the current scene or ignoring the next acquired PUSH message of the current scene.
In this way, each scene of train travel can be reminded through at least two fences, and each scene of train travel can be reminded through at least two fences
In a second aspect, the present application provides an electronic device, comprising: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored on the memory, which when executed by the one or more processors, cause the electronic device to perform the method of trip prompting corresponding to the first aspect and any implementation manner of the first aspect.
Any implementation manner of the second aspect and the second aspect corresponds to any implementation manner of the first aspect and the first aspect, respectively. The technical effects corresponding to the second aspect and any implementation manner of the second aspect may be referred to the technical effects corresponding to the first aspect and any implementation manner of the first aspect, which are not described herein.
In a third aspect, the present application provides a computer readable medium, configured to store a computer program, where the computer program when executed on an electronic device causes the electronic device to execute a method for prompting a trip corresponding to any implementation manner of the first aspect and the first aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments of the present application will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural view of an exemplary illustrated electronic device;
FIG. 2 is a schematic software architecture diagram of an exemplary electronic device;
fig. 3 is a schematic diagram of a method for reminding a user of traveling according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating the case of any fence trigger of the current scene or the case of determining that a PUSH message of the current scene is acquired;
fig. 5 is a schematic diagram of hint information displayed by each scene exemplarily shown.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone.
The terms first and second and the like in the description and in the claims of embodiments of the present application are used for distinguishing between different objects and not necessarily for describing a particular sequential order of objects. For example, the first target object and the second target object, etc., are used to distinguish between different target objects, and are not used to describe a particular order of target objects.
In the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" means two or more. For example, the plurality of processing units refers to two or more processing units; the plurality of systems means two or more systems.
Fig. 1 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application. It should be understood that the electronic device 100 shown in fig. 1 is only one example of an electronic device, and that the electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in fig. 1 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor, a gyroscope sensor, a barometric sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
Fig. 2 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present application.
The layered architecture of the electronic device 100 divides the software into several layers, each with a distinct role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
As shown in fig. 2, the application layer may include a series of application packages. The application package may include context awareness modules, business logic processing modules, business presentation modules, gallery, WLAN, bluetooth, music, games, short messages, etc. applications.
The context awareness module is resident or operates in a low power form, with the ability to perceive external facts or circumstances. When the card reminds that the service is in a processing on state, the context awareness module monitors registered matters (such as specific time, specific place or specific event, etc.), and if a user triggers one of the matters, the context awareness module sends a notification to the service logic processing module. In addition, the context awareness module may also detect related events and acquire states of events from other applications of the application layer or the application framework layer or the kernel layer through the application program interface, such as detecting bluetooth connection, network connection, monitoring user sms, customizing timers, etc.
The business logic processing module is used for realizing the display of various cards and the display of notices.
And the business presentation module (such as YOYO suggestion) is used for controlling the card to display or disappear. For example, the business presentation module may receive the command to display the reminder card delivered by the business logic processing module and display the reminder card to the user. Correspondingly, if a card disappearing command transmitted by the service logic processing module is received, the service presentation module eliminates the card.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layer may include a window manager, a content provider, a view system, a resource manager, a notification manager, an activity manager, and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The kernel layer is a layer between hardware and software. The kernel layer at least comprises a display driver, a Wi-Fi driver, a Bluetooth driver, an audio driver, a sensor driver and the like.
It will be appreciated that the layers and components contained in the layers in the software structure shown in fig. 2 do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer layers than shown, and more or fewer components may be included in each layer, as the present application is not limited.
In some embodiments, after the ticket purchasing application purchases the train ticket, the user can be reminded of the journey by means of a short message, for example, journey information (such as the number of cars, journey date, departure place and destination, etc.) is sent before the journey to remind the user of the journey, and the journey is reasonably arranged. However, the mobile phone may not provide accurate travel prompt for the user in time due to environmental impact.
Some embodiments of the present application provide a method for reminding a user of traveling, so that an electronic device can timely and accurately provide a user with a reminding of traveling.
In the embodiment of the application, the electronic device is illustrated by taking a mobile phone as an example. In other embodiments, the electronic device may also be a tablet, smart wearable device, in-vehicle device, or the like. Optionally, the trip reminding can remind train trips of the user, and also can be used for reminding airplane trips and ship trips of the user. In this example, taking a train trip reminding of a user as an example, an airplane trip reminding or a ship trip reminding can refer to the train trip reminding.
Fig. 3 is a schematic diagram illustrating interaction between a mobile phone and a server (such as a service platform of "railway 12306", hereinafter simply referred to as "12306 platform") of a designated application when the mobile phone executes the method of the travel reminder in the embodiment of the present application. The method for authorizing the reminder comprises the following steps:
step 301: the business logic processing module requests travel data from the 12306 platform.
The service platform account number of the user has an authorization relationship with the account number of the ticket purchasing application server, alternatively, the service platform account number may be a user account number of the user in a server corresponding to the electronic device, and the service platform may be a server corresponding to the mobile phone, such as a glory platform. The account number of the ticket buying application server may be a user account number of the ticket buying application (i.e. the first travel application), alternatively, the first travel application may be a train travel application, such as: railway 12306 application, where to go, etc. The first travel application may also be an aircraft travel application, such as a travel aspect application, an application for each airline, and so on. In this example, the ticketing application (i.e., the first travel application) is exemplified by a "railway 12306" application, and the service platform is exemplified by a glory platform. Through the authorized relation between the glowing account number of the user and the 12306 account number of the user, the 12306 platform can PUSH the PUSH message to the glowing platform, so that the mobile phone bound with the glowing account number can acquire the travel data of the user conveniently.
For example, there is an authorization relationship between the glory account number of the user and the 12306 account number (i.e., the user account number of the user in the railway 12306) that is the glory account number and the 12306 account number are bound to each other, when the user uses the 12306 account number to order the train ticket, the 12306 platform (i.e., the corresponding server applied by the railway 12306) sends the order abstract (e.g., including time, train number information, etc.) of the train ticket to the glory platform, and the glory platform sends the order abstract to the corresponding mobile phone a according to the binding relationship between the glory account number and the terminal. The business logic processing module of the mobile phone a requests the interface of the 12306 platform for the trip data of the user according to the information of the order summary, wherein the trip data can include the complete information of the trip of the user, such as information of a starting station, a destination, a train number, a departure date, a seat number, a ticket gate, train state information (such as inbound and outbound), ticket state (such as change sign and ticket return) and the like.
It should be noted that, when detecting that the service platform account number of the user has an authorized relationship with the user account number in the ticketing application, the service logic processing module may register a PUSH fence of feedback information with the context awareness module, where the PUSH fence of feedback information is used to detect whether a PUSH message fed back by the 12306 platform is received. The PUSH channel between the service logic processing module and the 12306 platform is opened through the PUSH fence for feeding back information, so that the service logic processing module can communicate with the 12306 platform.
Step 302: the 12306 platform returns trip data to the business logic processing module.
Step 303: the business logic processing module registers the PUSH fence with the context awareness module.
Illustratively, the business logic processing module may register the PUSH fence with the context awareness module after receiving the trip data. The context awareness module registers the PUSH fence in response to the registration indication of the business logic processing module. In this example, the registration indication may indicate that the PUSH fence registered by the context awareness module is used to detect whether a message pushed by a specified platform is received, for example, a 12306 platform (i.e., a server corresponding to the 12306 application). For example, once the PUSH fence is registered in this example, the context awareness module will continuously detect whether the handset received a message pushed by the 12306 platform.
In one example, the PUSH fence registered in this step may not be consistent with the PUSH fence of the feedback information. If the PUSH fence fed back with the information is consistent with the PUSH fence, the PUSH fence is registered before step 301, and then step 303 is not executed.
Step 304: the business logic processing module registers the geofence of each scene with the context awareness module.
Alternatively, the scene may include: arriving at the outbound station, traveling, arriving at the destination station, leaving the destination station. The division of the scene in this example is merely an example, and in other embodiments, the scene may further include: leaving the departure station, arriving at any of the waypoints, etc., other possible scenarios are not listed here.
For example, the business logic processing module may register geofences for each scene with the context awareness module based on the trip data. The context awareness module registers geofences for each scene in response to the registration indication by the business logic processing module. The registration indication is used to indicate the latitude and longitude of the target in the geofence and the time of effectiveness of the geofence. For example, the business logic processing module may determine a first departure registration indication and a first trip registration indication based on departure time and latitude and longitude information of the starting station, the first departure registration indication indicating a geofence for registering a scene arriving at the departure, the first trip registration indication indicating a geofence for registering a scene in the trip. The business logic processing module may determine a first entry destination registration indication and a first exit destination registration indication according to the arrival time and longitude and latitude information of the destination, the first entry destination registration indication being for indicating a geofence registering for a destination scene, the first exit destination registration indication being for indicating a geofence registering for a destination scene.
Alternatively, the process of registering the geofence of any scene by the context awareness module in this example may be: after receiving the indication information indicating the registration of the geofence, the context awareness module registers the effective time fence and the effective geofence. The triggering time of the effective time fence is determined by the service logic processing module according to the departure time of the train, for example, the duration from the departure time is less than or equal to 4 hours. The context awareness module registers the effective geofence after detecting that the effective geofence is triggered, and the target longitude and latitude of the effective geofence is provided by the business logic processing module, for example, if the current scene is the scene of arriving at the outbound, the target longitude and latitude of the effective geofence is the longitude and latitude information of the outbound. Optionally, the context awareness module simultaneously destroys the effective time fence of the current scene. The context awareness module monitors in real-time whether to trigger the effective geofence. That is, the geofence in the present application has an effective time, and after the effective time is reached, the change in geographic location is located in real time.
In some embodiments, the business logic processing module registers the geofence of the current scene with the context awareness module, which registers the geofence to locate the change in geographic location in real time. That is, the geofence has no active time fence and detects a change in the user's geographic location immediately upon registration.
Geofences have an in-effect time as an example in this application.
Step 305: the business logic processing module registers the bottom protection time fence of each scene with the scene perception module.
Optionally, each scene in this step is the same as each scene in step 304, i.e., the scenes include: arriving at the outbound station, traveling, arriving at the destination station, leaving the destination station.
Illustratively, the business logic processing module may register the guard time fence (which may also be understood as a spam time fence) for each scenario according to the trip data. The context awareness module registers the guard time fence for each scene in response to the registration indication of the business logic processing module. For example, the business logic processing module may determine a second departure registration indication according to the departure time of the train, where the second departure registration indication is used to instruct the context awareness module to register a time fence that arrives at the outbound scene; the business logic processing module determines a second journey registration instruction according to the estimated arrival time and the estimated departure time in the journey data, wherein the second journey registration instruction instructs the context awareness module to register a guard time fence of a scene in the journey; the business logic processing module determines a second entering destination station registration instruction and a second leaving destination station registration instruction according to the expected arrival time in the journey data, wherein the second entering destination station registration instruction is used for instructing the context awareness module to register a time fence for arriving at the destination station scene, and the second leaving destination station registration instruction is used for instructing the context awareness module to register a time fence for leaving the destination station scene.
For example, the estimated departure time is T1 and the estimated arrival time is T4 in the trip data. The business logic processing module may indicate that the trigger condition of the time fence reaching the outbound scene is: the difference between T1 and T is less than or equal to T1, where T is the detection time, and T1 is a first preset duration, in this example, 30 minutes.
The service logic processing module may indicate that the trigger conditions of the time fence of the scene in the trip are: t1 is more than or equal to T is more than or equal to T4, wherein T is the detection time.
The business logic processing module may indicate that the trigger conditions of the time fence reaching the destination scene are: t4±t2, where T is the detection time, T2 is the predicted delay or advance time provided by the 12306 platform, e.g., the predicted delay of 10 minutes of the 12306 platform sending the train, the trigger condition of the time fence reaching the destination scene is t4+10min.
The business logic processing module may indicate that the trigger condition of the time fence leaving the destination station scenario is: t=t4+t3. Wherein t3 is a third preset duration, and t3 is greater than 0; in this example, the third preset time period is exemplified by 60 minutes.
Step 306: and if the context awareness module detects that any one of the PUSH fence, the geofence of the current scene and the guard time fence of the current scene is triggered, step 307 is executed.
Specifically, after registering the PUSH fence, the context awareness module monitors whether the PUSH fence is triggered in real time. After the bottom guard time fence of the current scene is registered, the context awareness module monitors whether the current time reaches the trigger time of the bottom guard time fence.
The context awareness module detects that the current time reaches the effective time of the geofence, then the context awareness module detects whether the longitude and latitude value reaches the triggering condition of the geofence in real time, and if the longitude and latitude value reaches the triggering condition, then the context awareness module determines that the geofence is detected to be triggered. The context awareness module detects whether the current time reaches the triggering time of the bottom protection time fence, and when the current time reaches the triggering time of the bottom protection time fence, the bottom protection time fence is determined to be triggered.
For example, if the context awareness module receives 12306 the platform pushed message, the context awareness module determines a PUSH fence trigger. If the effective time of the registered geofence is T1, the target longitude and latitude is (A, B), the longitude and latitude unit is degree, when the time t=T1 is detected, the context awareness module starts to detect the change of the geographic position, and when the longitude and latitude are detected to be consistent with the target longitude and latitude, the context awareness module determines that the geofence is detected to trigger. If the triggering time of the bottom protection time fence is less than or equal to 30 minutes from the departure time, the context awareness module determines the bottom protection time fence to trigger.
The context awareness module detects any fence trigger in the current scene or detects a PUSH fence trigger, then step 307 is performed.
Step 307: the context awareness module indicates to the business logic processing module any fence or PUSH fence trigger of the current scene.
Step 308: the business logic processing module determines any fence trigger of the current scene or determines that the PUSH message of the current scene is acquired.
And if the business logic processing module receives the PUSH fence triggering instruction reported by the context awareness module, the PUSH message is acquired from the context awareness module. The business logic processing module analyzes the PUSH message, acquires the PUSH type of the current scene, inquires whether the analyzed PUSH message contains a message corresponding to the PUSH type of the current scene, and if the analyzed PUSH message contains the message corresponding to the PUSH type of the current scene, the business logic processing module determines that the PUSH message of the current scene is acquired. If the message corresponding to the PUSH type of the current scene is not queried, the service logic processing module determines that the PUSH message of the current scene is not acquired. For example, the service logic processing module may pre-store the key identifier of the PUSH type reaching the outbound scene, and if the analyzed key identifier of the PUSH type reaching the outbound scene exists in the PUSH message, determine that the PUSH message reaching the outbound scene is obtained.
And the business logic processing module receives the indication, and determines the bottom-keeping time fence trigger of the current scene. And if the business logic processing module receives the geofence trigger of the current scene reported by the context awareness module, determining the geofence trigger of the current scene.
This step may be followed by step 309 and step 310 being performed simultaneously.
Step 309: the service logic processing module sends indication information for indicating the service presentation module to display the prompt information to the context awareness module.
The indication information is used for indicating the service presentation module to display prompt information of the current scene. The business logic processing module determines prompt information corresponding to each scene. Alternatively, the prompt information of arriving at the outbound scene may include the estimated departure time and the estimated arrival time of the train ticket, departure place and destination, train number information, seat information, ticket gate information, and the like. The prompt message of the arrival and departure scene can also be in a jump link, and the jump link can be linked to a page for checking ticket details in the 12306 platform. The prompt information of the arrival departure scene can also comprise a link to jump to a refund page or a link to jump to a change page, etc.
Alternatively, the prompting information of the scene in the journey may include the estimated departure time and the estimated arrival time, the departure place and destination, the number of vehicles information, the seat information, the triggering link of the arrival reminding, and the like.
Optionally, the prompt information of the arriving destination station scene may include the estimated departure time and the estimated arrival time, the departure place and the destination, the number of vehicles information, seat information, arriving station reminding information (such as displaying "arrived station"), and the like, and the prompt information of the arriving destination station scene may further include a link for jumping to the page for checking the ticket details in the 12306 platform.
Alternatively, the reminder to leave the destination scene may include the estimated departure time and the estimated arrival time, departure and destination, train number information, seat information, departure reminder information (e.g., displaying "departed"), etc.
In this example, the indication information may instruct the service presentation module to replace the display content with the prompt information of the current scene, for example, the display content of the service presentation module at the time T1 is information a, and the indication information of the service logic processing module instructs the service presentation module to replace the information a with the information B, and the service presentation module displays the information B at the time T2. The display mode does not need the service logic module to independently send a termination instruction for terminating the display.
In some embodiments, the service logic processing module sends indication information for displaying the prompt information to the service presenting module, and at the same time, the service logic processing module sends a termination indication to the service presenting module, where the termination indication is used to instruct the service presenting module to terminate displaying the prompt information displayed last time.
In other embodiments, the service logic processing module may set a display duration threshold, if the duration of displaying the prompt information of the same scene exceeds a preset display duration threshold, the service logic processing module instructs the service presentation module to cancel the prompt information of the scene, for example, the prompt information of the arrival at the outbound scene is displayed for 4 hours, the preset display duration threshold is 4 hours, and when the service logic processing module determines that the display duration of the prompt information of the arrival at the outbound scene exceeds the display duration threshold, the service logic processing module instructs to terminate displaying the prompt information of the arrival at the outbound scene, and the service presentation module terminates displaying the prompt information of the arrival at the outbound scene (i.e., the prompt information of the arrival at the outbound scene is removed from the display interface).
Step 310: releasing the designated fence of the current scene or releasing the designated fence of the current scene and ignoring the PUSH message of the current scene.
For example, the specified fence of the current scene may be a bottom-guard time fence of the current scene, or a geofence of the current scene, or both.
In one example, if the business logic processing module determines that the PUSH message of the current scene is acquired, the business logic processing module instructs the context awareness module to release the guard time fence of the current scene and the geofence of the current scene. The context awareness module responds to the indication of the business logic processing module to remove the bottom-guard time fence of the current scene and the geofence of the current scene.
For example, if the business logic module determines that a PUSH message arriving at the outbound scene is acquired, the business logic processing module instructs the context awareness module to break the guard time fence arriving at the outbound scene and the geofence arriving at the outbound scene. The context awareness module still detects whether the bottom guard time rail of the remaining scenes is triggered or not and detects whether the georail of the remaining scenes is triggered or not.
In another example, if the business logic processing module determines that the geofence of the current scene triggers, the business logic processing module instructs the context awareness module to break the guard time fence of the current scene. After the service logic processing module determines that the PUSH message of the current scene is acquired next time, the PUSH message of the current scene is ignored, namely the service logic processing module cancels the operation of the PUSH message of the current scene.
For example, if the business logic module determines that the geofence arrives at the outbound scene triggers at time T1, the business logic processing module instructs the context awareness module to disarm the guard time fence arriving at the outbound scene. And releasing the bottom-guard time fence reaching the outbound scene by the context awareness module. The context awareness module still detects whether the bottom guard time fence of the rest of the scenes is triggered. If the context awareness module detects the trigger of the PUSH fence after 30S, the service logic processing module receives the event of the trigger of the PUSH fence reported by the context awareness module, and the service logic processing module analyzes the PUSH message to determine that the PUSH message reaching the outbound scene is obtained. The service logic processing module ignores the PUSH message arriving at the outbound scene. In another example, if the context awareness module does not detect a PUSH fence trigger in the outbound scene, the service logic processing module does not perform an operation to ignore the PUSH message arriving in the outbound scene.
In another example, if the business logic processing module determines that the bottom guard time fence of the current scene triggers, the business logic processing module instructs the context awareness module to un-fence the current scene. After the service logic processing module determines that the PUSH message of the current scene is acquired next time, the next acquired PUSH message of the current scene is ignored, namely the service logic processing module cancels the operation on the PUSH message of the current scene.
For example, if the business logic module determines at time T2 that the guard time rail arrives at the outbound scene triggers, the business logic processing module instructs the context awareness module to disarm the geofence arriving at the outbound scene. The geofence reaching the outbound scene is released by the context awareness module. The context awareness module monitors whether the geofences of the rest of the scenes are triggered. If the context awareness module detects the trigger of the PUSH fence after 30S, the service logic processing module receives the event of the trigger of the PUSH fence reported by the context awareness module, and the service logic processing module analyzes the PUSH message to determine that the PUSH message reaching the outbound scene is obtained. The service logic processing module ignores the PUSH message arriving at the outbound scene. In another example, if the context awareness module does not detect a PUSH fence trigger in the outbound scene, the service logic processing module does not perform an operation to ignore the PUSH message arriving in the outbound scene.
In this example, if one fence triggers in each scene, other fences in the scene can be unregistered or the next acquired PUSH message of the current scene can be ignored, so that unnecessary power consumption is reduced.
Step 311: the service presentation module displays the prompt information.
The service presenting module receives the prompt message sent by the service logic processing module, and displays the prompt message of the current scene in a card mode, such as displaying a card on a desktop or displaying a card on a negative screen. The display mode may also include a notification mode display, such as: a screen locking notification; a mode of displaying prompt information by voice; or different prompt messages are displayed through different vibration frequencies.
It should be noted that, no sequence exists between the step 311 and the step 310, and the service presenting module receives the indication information (the indication information includes the prompt information), that is, the prompt information may be displayed.
The display modes in this example may include a card mode and a notification mode, that is, the service presentation module may display the card on the desktop, display the card on the negative screen, and display the prompt information on the notification mode at the same time. Meanwhile, the prompt information is displayed in various modes, so that the probability of the exposure of the prompt information can be increased, the probability of the user looking up the prompt information is increased, and the problem that the user misses a trip due to missed looking up the prompt information is avoided.
In the application, if only a rail of one dimension is registered (for example, only a geofence is registered), because the mobile phone acquires the current longitude and latitude information and is greatly influenced by the environment, the geographical position information acquired by the context awareness module may be inaccurate, and the problem of wrong travel reminding or missed reminding can be caused, and the problem of missed reminding or false reminding can exist when the single-use time rail or the single-use PUSH rail is used. In this example, the business logic processing module registers a plurality of different functional (dimensional) fences, such as PUSH fences, geofences for each scene, and bottom guard time fences for each scene, with the context awareness module according to the trip data. The context awareness module monitors the information of three different dimensions simultaneously, so that the information of each dimension in different scenes is mutually compensated, and the problem that travel reminding cannot be timely carried out for a user due to inaccurate information monitoring is avoided.
The following describes, with reference to fig. 4, a case where any fence of the current scene triggers or a case where it is determined that a PUSH message of the current scene is acquired, respectively.
Case 1: a time-fence triggered scene of the current scene.
Step 306a: the context awareness module detects a bottom guard time fence trigger for a current scene.
The specific procedure of this step is similar to the relevant description in step 306, and reference may be made to the relevant description in step 306, which will not be described here again.
Step 307a: the context awareness module indicates to the business logic processing module the bottom guard time fence trigger of the current scene.
Step 308a: the business logic processing module determines the bottom guard time fence trigger of the current scene.
If the business logic processing module receives the indication of the bottom-keeping time fence trigger of the current scene reported by the context awareness module, the business logic processing module determines the bottom-keeping time fence trigger of the current scene.
Step 309a: the service logic processing module sends indication information for indicating the service presentation module to display the prompt information to the service presentation module.
Step 310a1: the business logic processing module sends a release indication to the context awareness module indicating release of the geofence.
The business logic processing module determines the bottom-guard time fence trigger of the current scene, and can reduce the power consumption of the mobile phone by releasing the geofence mode of the current scene.
Step 310a2: the context awareness module releases the geofence for the current scene.
The context awareness module may deregister the geofence of the current scene.
Step 311a: the service presentation module displays the prompt information.
This step may be described with reference to step 311, and will not be described in detail herein.
Step 312a: the context awareness module detects a PUSH fence trigger.
In this example, after the prompt information of the current scene is displayed, the 12306 platform pushes the PUSH message to the service platform, which may be a user service platform, and in this example, the service platform is a glory platform. The glory account number of the user has an authorization relationship with the 12306 account number, the 12306 platform pushes the PUSH message to the glory platform, and after the glory platform receives the PUSH message, the glory platform sends the PUSH message to the context awareness module of the mobile phone corresponding to the glory account number. The context awareness receives the PUSH message and the PUSH fence triggers.
Step 313a: the context awareness module indicates the PUSH fence trigger to the business logic processing module.
Step 314a: and the business logic processing module determines to acquire the PUSH message of the current scene.
This step is similar to step 308, where the service logic processing module parses the PUSH message for the current scenario. The business logic processing module inquires whether the PUSH message of the current scene exists in the PUSH message, and if so, the PUSH message of the current scene is obtained.
Step 310a3: the business logic processing module ignores the PUSH message of the current scene.
Since the guard time fence trigger of the current scene has been determined in step 308a and the prompt information of the current scene is displayed in step 311, the service logic processing module ignores the PUSH message of the current scene received next, that is, the service logic processing module does not process the PUSH message of the current scene received next.
For example, if the current scene is an arrival outbound scene, the triggering condition of the guard time fence of the arrival outbound scene is: the difference between T1 and T is less than or equal to T1, where T is the detection time, and T1 is a first preset duration, in this example, 30 minutes. If the scene perception module detects that the difference value of T1-T is less than or equal to 30 minutes, the bottom guard time fence reaching the outbound scene is triggered, and the scene perception module reports the bottom guard time fence reaching the outbound scene to the service logic processing module. The service logic processing module instructs the service presentation module to display the prompt message arriving at the outbound scene. And the service presentation module displays prompt information of arriving at the outbound scene at the time T2. And the scene perception module receives the PUSH message sent by the glowing platform at the time of T2+t5, and triggers the PUSH fence. The context awareness module reports PUSH fence trigger to the service logic processing module, for example, t5=1 min. The business logic processing module analyzes the PUSH message, and inquires the message reaching the outbound scene from the PUSH message. The business logic processing module determines that the PUSH message arriving at the outbound scene is acquired. The business logic processing module ignores the PUSH message arriving at the departure scene and does not process the PUSH message arriving at the departure scene. If the service logic processing module determines that the acquired PUSH message of the scene in the journey indicates that the environment where the mobile phone is located is changed, the service logic processing module can process according to the steps in the case 2.
In this example, after the context awareness module sequentially detects the triggering of a plurality of fences, the service processing module sequentially performs corresponding processing on each triggered fence according to the sequence of the triggering time of the fences.
In some embodiments, if the context awareness module does not detect a PUSH fence trigger, then none of steps 313a, 314a, 310a3 are performed.
Case 2: PUSH fence triggered scenario.
Step 304b: the 12306 platform pushes PUSH messages to the service platform.
Illustratively, the service platform may be a user service platform, which in this example is exemplified by a glory platform. The glory account number of the user has an authorization relationship with the 12306 account number, and the 12306 platform pushes the PUSH message to the glory platform according to the authorization relationship.
Step 305b: and the service platform sends the PUSH message to the context awareness module.
Illustratively, after receiving the PUSH message, the glowing platform queries the mobile phone bound to the glowing account and sends the PUSH message to the context awareness module of the mobile phone bound to the glowing account.
Step 306b: the context awareness module detects a PUSH fence trigger.
And the context awareness receives the PUSH message and triggers the PUSH fence.
Step 307b: the context awareness module indicates the PUSH fence trigger to the business logic processing module.
The specific procedure of this step is similar to the relevant description in step 307, and reference may be made to the relevant description in step 307, and a detailed description will be omitted here.
Step 308b: and the business logic processing module determines to acquire the PUSH message of the current scene.
The specific procedure of this step is similar to the relevant description in step 308, and reference may be made to the relevant description in step 308, and a detailed description will be omitted here.
Step 309b: the service logic processing module sends indication information for indicating the service presentation module to display the prompt information to the service presentation module.
Step 310b1: the business logic processing module sends indication information for indicating to release the geofence of the current scene and the guard time fence of the current scene to the context awareness module.
Illustratively, the service logic processing module determines that the PUSH message of the current scene is acquired, and the service logic processing module can instruct (i.e. de-register) the geofence of the current scene and the guard time fence of the current scene to the context awareness module, and the context awareness module de-registers the geofence of the current scene and the guard time fence of the current scene, so that the power consumption of the mobile phone is reduced.
Step 310b2: the context awareness module releases the geofence of the current scene and the guard-bottom time fence of the current scene.
The context awareness module only releases the geofence of the current scene and the time fence of the current scene. The geofences of the remaining scenes and the guard-bottom time fences of the remaining scenes are preserved.
Step 311b: the service presentation module displays the prompt information of the current scene.
The specific procedure of this step is similar to the relevant description in step 311, and reference may be made to the relevant description in step 311, and a detailed description will be omitted here.
Case 3: geofence triggered scenes for the current scene.
Step 306c: the context awareness module detects a geofence trigger for a current scene.
Step 307c: the context awareness module indicates to the business logic processing module the geofence trigger for the current scene.
Step 308c: the business logic processing module determines a geofence trigger for the current scene.
Step 309c: the service logic processing module sends indication information for indicating the service presentation module to display the prompt information to the service presentation module.
Step 310c1: the business logic processing module sends a release instruction for instructing to release the bottom protection time fence to the context awareness module.
Step 310c2: the context awareness module releases the bottom guard time fence of the current scene.
Step 311c: the service presentation module displays the prompt information.
Step 312c: the context awareness module detects a PUSH fence trigger.
Step 313c: the context awareness module indicates the PUSH fence trigger to the business logic processing module.
Step 314c: and the business logic processing module determines to acquire the PUSH message of the current scene.
Step 310c3: the business logic processing module ignores the PUSH message of the current scene.
Case 3 is similar to case 1, and each step in case 3 may refer to each step in case 1, and will not be described here. Similar to case 1, in some embodiments, if the context awareness module does not detect a PUSH fence trigger, then none of steps 313c, 314c, 310c3 will be performed.
The following describes a process of displaying the hint information of each scene with reference to fig. 5.
Illustratively, taking train departure as an example, the first application may be a railway 12306 as an example, the server of the ticket purchasing application is a server of 12306 as an example, and the service platform is a glory platform as an example. The business logic processing module of the mobile phone executes step 301 shown in fig. 3 to request travel data. The 12306 platform returns the trip data to the business logic processing module of the handset. The trip data of the user may include an estimated departure time (e.g., 5 months, 4 days, 9:20 as shown in fig. 5 (1)), an estimated arrival time (e.g., 5 months, 6 days, 9:45 as shown in fig. 5 (1)), departure latitude and longitude information, destination latitude and longitude information, and the like. The business logic processing module registers the PUSH fence, the geofence of each scene and the bottom-keeping time fence of each scene to the context awareness module. Table 1 is a list of the trigger conditions of each scene and the geofence of each scene, the trigger conditions of the guard time fence, and the PUSH message of each scene in the train trip in this example.
TABLE 1
Scene(s) PUSH message Geofence Bottom protection time fence
Arriving at the departure station Obtaining PUSH message of inbound Entering the departure station The difference between T1 and T is less than or equal to T1
In the journey Obtaining PUSH message in journey Leave the departure station T1≤t≤T4
Arriving at destination station Without any means for Entry destination station T4±t2
Leaving the destination station Obtaining outbound PUSH messages Leaving the destination station t=T4+t3
In table 1, T is a detection time, T1 is an expected departure time, T4 is an expected arrival time, T1 is a first preset duration (e.g. t1=30 min), T2 is a delay duration provided by the 12306 platform, e.g. 10min, and T3 is a third preset duration (e.g. t3=60 min).
The business logic processing module may set the geofences for each scene and the guard-bottom time fences for each scene according to the trigger conditions in table 1. The business logic processing module may indicate that the effective time of the geofence arriving at the outbound scene is 2 hours before the predicted departure time, and the business logic processing module may indicate that the effective time of the geofence in the trip is also 2 hours before the predicted departure time. When the context awareness module detects that the time reaches 7:20 on 4 days of 5 months, the context awareness module starts to detect whether the geofence reaching the outbound scene is triggered or not and detects whether the geofence in the trip is triggered or not.
If the context awareness module detects that the longitude and latitude of the mobile phone are consistent with the longitude and latitude of the departure station in 5 months, 4 days, 8:20, the geofence triggering of the arrival departure scene is detected, namely the context awareness module detects the geofence triggering of the arrival departure scene. The mobile phone modules execute steps 307c to 311c according to the step of case 3 in fig. 4. The service presentation module displays prompt information reaching the outbound in the form of a card. As shown in fig. 5 (1), a card 402 of a scenario of arrival at an outbound in a train trip is displayed on the desktop interface 401, and prompt information of arrival at the outbound, such as estimated departure time, estimated arrival time, car seat number, destination, ticket gate information and a control 4021, is displayed on the card 402, and clicking on the control 4021 can jump to a ticket detail page in the application of 12306. Alternatively, steps 312 c-310 a3 are not performed in this example.
In one example, the business logic processing module may indicate a duration of displaying the card 402, and if it is determined that the card 402 display duration exceeds a display duration threshold, the business logic processing module instructs the business presentation module to cancel displaying the card 402.
When the context awareness module detects a PUSH fence trigger (e.g., a PUSH message in a trip is received). The mobile phone modules execute steps 307b to 311b according to the steps of case 2 in fig. 4. In the case that the current scene is a trip, the service presentation module displays a card 404, as shown in fig. 5 (2), on which a scene in the trip of the train is displayed on the desktop interface 403, and trip information, such as an estimated departure time, an estimated arrival time, a car seat number, a destination, a control 4041 and a control 4042, is displayed on the card 404, and if an operation of clicking the control 4041 is detected, a ticket detail page in the application of 12306 can be skipped. If an operation of clicking on control 4042 is detected, the function of the arrival reminder may be subscribed to.
When the context awareness module detects a bottom guard time fence trigger (e.g., time up to 5 months 6 days 9:45). The mobile phone modules execute steps 307a to 311a according to the steps of case 1 in fig. 4, and in this example, the context awareness module does not detect the PUSH fence trigger, that is, steps 312a, 313a, 314a and 310a3 are not executed. The service presentation module displays the prompt information shown in fig. 5 (3), the desktop interface 405 displays a card 406 of a scene of reaching the destination station in the train trip, and the card 406 displays the prompt information of reaching the destination station, such as the estimated departure time, the estimated arrival time, the carriage seat number, the destination, the control 4061 and the information of reaching the station, and if the operation of clicking the control 4061 is detected, the operation can jump to the ticket detail page in the application of 12306.
If the context awareness module detects that the longitude and latitude of the mobile phone is consistent with the longitude and latitude of the destination station in 5 months and 6 days, 10:20, the geofence trigger of the leaving destination station scene is detected by the context awareness module. The mobile phone modules execute steps 307c to 311c according to the step of case 3 in fig. 4. The service presentation module displays the prompt information leaving the destination station in the form of a card. The prompt may be displayed in the form of a notification. The prompt to leave the destination scene is not shown in fig. 5.
It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware and/or software modules that perform the respective functions. The steps of an algorithm for each example described in connection with the embodiments disclosed herein may be embodied in hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application in conjunction with the embodiments, but such implementation is not to be considered as outside the scope of this application.
The present embodiment also provides a computer storage medium, in which computer instructions are stored, which when executed on an electronic device, cause the electronic device to execute the relevant method steps to implement the method for reminding a trip in the foregoing embodiment. The storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The present embodiment also provides a computer program product, which when run on a computer, causes the computer to perform the above-mentioned related steps to implement the method for reminding a trip in the above-mentioned embodiment.
The electronic device, the computer storage medium, the computer program product, or the chip provided in this embodiment are used to execute the corresponding methods provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding methods provided above, and will not be described herein.
Any of the various embodiments of the application, as well as any of the same embodiments, may be freely combined. Any combination of the above is within the scope of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (17)

1. A method for travel reminding, applied to an electronic device, the method comprising:
detecting whether a PUSH fence of a first travel application is triggered or not, wherein the PUSH fence trigger of the first travel application is used for indicating the electronic equipment to receive a PUSH message sent by a server of the first travel application;
detecting whether a target fence of a current scene is triggered or not, wherein the target fence of the current scene comprises a target geofence of the current scene, and the target geofence trigger of the current scene is used for indicating that the electronic equipment is located in a target area of the current scene;
if the target fence trigger of the current scene is detected, or the PUSH fence trigger of the first travel application is detected and whether the PUSH message of the current scene exists in the PUSH message is detected, judging whether a travel prompt of the current scene is displayed;
and if the travel prompt of the current scene is determined to be displayed, displaying the travel prompt of the current scene, and according to the triggered fence, releasing the target fence of the current scene or ignoring the next acquired PUSH message of the current scene.
2. The method of claim 1, wherein determining whether to display a travel reminder for the current scene if a target fence trigger for the current scene or a PUSH fence trigger for the first travel application is detected comprises:
If the target fence trigger of the current scene is detected, determining to display a travel reminder of the current scene;
if the PUSH fence trigger of the first travel application is detected, analyzing the received PUSH message, and judging whether the PUSH message of the current scene exists in the PUSH message; if the PUSH message of the current scene is obtained, determining to display a travel prompt of the current scene; and if the PUSH message of the current scene is not acquired, canceling the travel prompt for displaying the current scene.
3. The method according to claim 1 or 2, wherein the step of releasing the target fence of the current scene or ignoring the PUSH message of the current scene acquired next time according to the triggered fence comprises:
if the PUSH fence of the first travel application is determined to be triggered and the PUSH message of the current scene is determined to be acquired, the target fence of the current scene is released;
and if the target fence is determined to be triggered, ignoring the PUSH message of the current scene acquired next time.
4. The method of claim 1 or 2, wherein the target fence of the current scene further comprises a target time fence of the current scene;
the detecting whether the target fence of the current scene is triggered comprises:
Detecting whether the target geofence of the current scene is triggered or not and detecting whether the target geofence of the current scene is triggered or not, wherein the target geofence trigger of the current scene is used for indicating that the preset designated time of the current scene is reached.
5. The method of claim 4, wherein the step of releasing the target fence of the current scene or ignoring the PUSH message of the current scene acquired next according to the triggered fence comprises:
if the target time fence of the current scene is determined to be triggered, the target time fence of the current scene is released, and the next acquired PUSH message of the current scene is ignored;
if the target geofence of the current scene is determined to be triggered, the target geofence of the current scene is released, and the next acquired PUSH message of the current scene is ignored;
and if the PUSH fence of the first travel application is determined to trigger and the PUSH message of the current scene is determined to be acquired, the target geofence of the current scene and the target time fence of the current scene are released.
6. The method of claim 1, wherein prior to said detecting whether a PUSH fence of a first travel application is triggered, the method further comprises:
If an authorization relationship exists between an authorization object and a designated application account is detected, registering a PUSH fence of the first travel application, wherein the authorization object comprises an identifier of the electronic equipment or an account of a user on a user service platform, and the designated application account is an account of a server of the user on the first travel application.
7. The method of claim 1, wherein the target geofence for the current scene comprises: an effective time fence and an effective geo-fence;
the detecting whether the target fence of the current scene is triggered comprises:
detecting whether an effective time fence in a target geofence of a current scene is triggered or not, wherein the effective time fence trigger is used for indicating that the preset registration time of the target geofence is reached;
registering an effective geofence in the target geofence of the current scene if an effective geofence trigger in the target geofence of the current scene is detected;
detecting whether the effective geofence of the target geofence of the current scene is triggered or not, and if the effective geofence trigger of the target geofence of the current scene is detected, determining the target geofence trigger of the current scene.
8. The method of claim 7, wherein prior to detecting whether an active time fence in a target geofence of a current scene is triggered, the method further comprises:
acquiring travel data of a user;
and registering the effective time fence of the target geofence of each scene according to the trip data and the scenes of each trip.
9. The method of claim 8, wherein the scene of travel comprises: a scene arriving at the outbound, a scene in the trip, a scene arriving at the destination, and a scene leaving the destination.
10. The method of claim 9, wherein the trigger condition of the target time fence reaching the outbound scene comprises: the time difference from the predicted departure time is less than or equal to a first preset duration;
the target area of the target geofence that arrives at the scene of the outbound includes: the area where the departure station is located.
11. The method of claim 9, wherein the trigger condition of the target time fence of the scene in the trip comprises: detecting a position between the estimated departure time and the estimated arrival time;
the target area of the target geofence of the scene in the trip includes a preset area outside the departure station.
12. The method of claim 9, wherein the trigger condition of the target time fence of the scene arriving at the destination is: the sum of the time between the expected arrival time and the expected error duration is reached;
the target area of the target geofence of the scene arriving at the destination station includes: the area in which the destination station is located.
13. The method of claim 9, wherein the trigger condition of the target time fence of the scene leaving the destination is: reaching the sum of the expected arrival time and the preset outbound time;
the target area of the target geofence of the scene leaving the destination station includes: and the preset area outside the area where the destination station is located.
14. The method of claim 9, wherein registering the effective time fence of the target geofence for each scene based on the trip data and the scenes of each trip comprises:
obtaining expected departure time from trip data, and registering an effective time fence in a target geofence reaching an outbound scene and an effective time fence in a target geofence in a scene in a trip; the trigger conditions of the effective time fence in the target geofence reaching the outbound scene and the trigger conditions of the effective time fence in the target geofence in the in-trip scene are: the distance estimated departure time is smaller than or equal to a preset first trigger time length;
Obtaining expected arrival time from trip data, registering an effective time fence in a target geofence in a scene of arrival at a destination station, and registering an effective time fence in a target geofence in a scene of departure from the destination station; the effective time fence triggering conditions in the target geofence in the scene in the journey and the effective time fence triggering conditions in the target geofence in the scene of the arrival destination station are: the distance estimated departure time is smaller than or equal to a preset second trigger time length.
15. The method of claim 1, wherein prior to displaying the travel reminder for the current scene, the method further comprises:
cancelling the travel reminder for displaying the previous scene;
or alternatively, the process may be performed,
and indicating to update the display content from the travel reminder of the previous scene to the travel reminder of the current scene.
16. The method of claim 1, wherein if the first travel application is a train travel application, the method comprises:
detecting whether a PUSH fence of a train travel application is triggered or not, wherein the PUSH fence trigger of the train travel application is used for indicating the electronic equipment to receive a PUSH message sent by a server of the train travel application; detecting whether a railway station fence of a current scene is triggered or not, wherein the railway station fence of the current scene comprises a target geofence taking a railway station in the current scene as the target area; if the trigger of the railway station fence of the current scene is detected, or the trigger of the PUSH fence of the train trip application is detected, and whether the PUSH message of the current scene exists in the PUSH message is detected, judging whether to display the trip prompt of the current scene; if the travel prompt for displaying the current scene is determined, displaying the travel prompt for the current scene, and according to the triggered fence, releasing the railway station fence of the current scene or ignoring the next acquired PUSH message of the current scene;
If the first travel application is an aircraft travel application, the method includes: detecting whether a PUSH fence of the aircraft travel application is triggered or not, wherein the PUSH fence trigger of the aircraft travel application is used for indicating the electronic equipment to receive a PUSH message sent by a server of the aircraft travel application; detecting whether an airport fence of a current scene is triggered or not, wherein the airport fence of the current scene comprises a target geofence taking an airport of the current scene as the target area; if airport fence triggering of the current scene is detected, or PUSH fence triggering of the airplane travel application is detected, and whether a PUSH message of the current scene exists in the PUSH message is detected, judging whether a travel prompt of the current scene is displayed; and if the travel prompt of the current scene is determined to be displayed, displaying the travel prompt of the current scene, and according to the triggered fence, releasing the airport fence of the current scene or ignoring the next acquired PUSH message of the current scene.
17. An electronic device, comprising:
one or more processors;
a memory;
and one or more computer programs, wherein the one or more computer programs are stored on the memory, which when executed by the one or more processors, cause the electronic device to perform the method of travel alerting of any of claims 1-16.
CN202111604979.XA 2021-12-24 2021-12-24 Travel reminding method and electronic equipment Active CN115022459B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111604979.XA CN115022459B (en) 2021-12-24 2021-12-24 Travel reminding method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111604979.XA CN115022459B (en) 2021-12-24 2021-12-24 Travel reminding method and electronic equipment

Publications (2)

Publication Number Publication Date
CN115022459A CN115022459A (en) 2022-09-06
CN115022459B true CN115022459B (en) 2023-05-05

Family

ID=83065167

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111604979.XA Active CN115022459B (en) 2021-12-24 2021-12-24 Travel reminding method and electronic equipment

Country Status (1)

Country Link
CN (1) CN115022459B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708544A (en) * 2022-10-26 2023-09-05 荣耀终端有限公司 Function pushing method and device
CN116709501A (en) * 2022-10-26 2023-09-05 荣耀终端有限公司 Service scene identification method, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794801A (en) * 2021-08-09 2021-12-14 荣耀终端有限公司 Method and device for processing geo-fence

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10715380B2 (en) * 2011-05-23 2020-07-14 Apple Inc. Setting a reminder that is triggered by a target user device
CN112665607A (en) * 2020-11-26 2021-04-16 惠州华阳通用电子有限公司 Event reminding method and device
CN113783989B (en) * 2021-07-30 2022-09-23 荣耀终端有限公司 Method and device for displaying card
CN113805747B (en) * 2021-08-12 2023-07-25 荣耀终端有限公司 Information reminding method, electronic equipment and computer readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794801A (en) * 2021-08-09 2021-12-14 荣耀终端有限公司 Method and device for processing geo-fence

Also Published As

Publication number Publication date
CN115022459A (en) 2022-09-06

Similar Documents

Publication Publication Date Title
CN115022459B (en) Travel reminding method and electronic equipment
CN109830118B (en) Public transport-based travel strategy display method and device and storage medium
CN102917115A (en) System and method for preventing and/or limiting use of a mobile device
CN115022943B (en) Method for positioning geographic position and electronic equipment
EP3716163A1 (en) Method, device and storage medium for displaying instruction information
AU2018333084B2 (en) Lost device detection using geospatial location data
CN114661381B (en) Subway trip detection method and electronic equipment
US11605280B2 (en) Location identification system and location identification method
CN114374764B (en) Subway trip reminding method and electronic equipment
CN115038053B (en) Travel reminding method and electronic equipment
CN110231048B (en) Location information display method, device, terminal and storage medium
CN115016713A (en) Travel event subscription method and electronic equipment
KR20140143367A (en) Traveler hurry status monitor
CN115022461B (en) Subway trip detection method and electronic equipment
CN115022448B (en) Subway trip detection method and electronic equipment
CN115018436B (en) Travel reminding method and electronic equipment
US11588895B2 (en) Program, control device, and control method for facilitating communication between a vehicle user and a partner associated with the vehicle
CN115018437B (en) Travel reminding method and electronic equipment
CN115018435B (en) Travel reminding method and electronic equipment
CN115034733B (en) Travel reminding method and electronic equipment
CN108055401B (en) Elastic frame processing method and device, storage medium and electronic equipment
CN115022271B (en) Travel reminding method and electronic equipment
CN114550417A (en) Disaster early warning method, terminal device and storage medium
US11620896B1 (en) Location information sharing control system and location information sharing control device
US20220042811A1 (en) Method and server

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