CN115022459B - Travel reminding method and electronic equipment - Google Patents
Travel reminding method and electronic equipment Download PDFInfo
- 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
- target
- scene
- time
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72406—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72451—User 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72457—User 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72484—User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Telephone Function (AREA)
- Traffic Control Systems (AREA)
Abstract
Description
技术领域technical field
本申请涉及计算机技术领域,尤其涉及一种出行提醒的方法及电子设备。The present application relates to the field of computer technology, and in particular to a travel reminder method and electronic equipment.
背景技术Background technique
随着电子技术的快速发展,智能手机等移动终端的普及率越来越高,且随着网络技术的发展,移动终端的功能越来越强大,用户可以通过移动终端完成很多事情,如发送邮件、网上订购火车票等。通常购票网站在用户订购了火车票后,会向用户推送短信提醒,以避免用户错过行程。With the rapid development of electronic technology, the penetration rate of mobile terminals such as smartphones is getting higher and higher, and with the development of network technology, the functions of mobile terminals are becoming more and more powerful. Users can complete many things through mobile terminals, such as sending emails , online order train tickets, etc. Usually, after the user has ordered a train ticket, the ticketing website will push a text message reminder to the user to avoid the user from missing the itinerary.
然而,采用短信的提醒方式即时性较差,并且提醒不准确,用户体验较差。However, the promptness of the reminder method using the short message is poor, and the reminder is inaccurate, and the user experience is poor.
发明内容Contents of the invention
本申请提供一种优化的出行提醒的方法及电子设备。The present application provides an optimized travel reminder method and electronic equipment.
在一些场景中,采用短信的提醒方式会受到环境影响,可能导致手机不能及时为用户提供准确的出行提醒。本申请的一些实施例中电子设备可以通过多个维度的围栏,准确判定用户的行为,及时且准确地为用户提供出行提醒。In some scenarios, the reminder method using SMS will be affected by the environment, which may cause the mobile phone to fail to provide users with accurate travel reminders in time. In some embodiments of the present application, the electronic device can accurately determine the user's behavior through multiple-dimensional fences, and provide the user with travel reminders in a timely and accurate manner.
在一些实施例中,手机可以通过3个围栏之间的协作来确定用户到达火车站或机场。以火车出行为例,三个围栏可以是火车出行应用(如铁路12306应用)的PUSH围栏、该火车站的地理围栏以及时间围栏,其中,该时间围栏可以作为兜底的围栏。当用户订购火车票后,即可订阅该铁路12306应用的PUSH围栏,获取到行程信息(如火车出行时间、火车的出发站)后订阅地理围栏和时间围栏。当注册(也称为订阅)的PUSH围栏以及地理围栏均未触发时,手机可以通过兜底的时间围栏来判断用户是否到达火车站。当手机中的情景感知模块检测到接收了铁路12306应用推送的进站消息,该订阅的PUSH围栏触发,同时取消订阅的地理围栏和时间围栏,即此时以PUSH围栏为准。当订阅的地理围栏触发时,取消订阅的兜底时间围栏,同时忽略接收的指示进站的PUSH消息;当兜底时间围栏触发,则取消订阅的地理围栏,同时忽略接收的指示进站的PUSH消息。不同环境对PUSH围栏和地理围栏的触发有不同的影响,例如,网络信号差的环境不利于PUSH消息的接收,而该环境对定位地理位置没有影响,在该环境中,由于手机还设备了地理围栏,而不是完全依赖PUSH围栏,从而可以避免因PUSH围栏未被触发导致不能确定用户是否到达火车站的问题。某一些环境会同时影响PUSH围栏和地理围栏,而时间围栏不受环境的影响,也可以确保出行提醒的及时弹出。在一些场景中,地理围栏(即本申请后文的目标地理围栏)可以具有生效时间属性,则一个火车站围栏可以理解为包括了一个时间围栏和一个与该时间围栏关联的地理围栏(该时间围栏用于确定注册地理围栏的时间,也可理解为该时间围栏用于确定地理围栏的生效时间):提前订阅(订阅也可理解为注册)了火车站围栏,火车站围栏里的时间围栏会先被注册(或理解为先生效),什么时候开始去注册该地理围栏进而去感知这个地理围栏是否已触发可以设定一个生效时间,比如5天前定了一个火车站围栏,但生效时间可以是第五天时(该时间围栏被触发时),那么在前四天即使用户经过了该火车站,手机中的情景感知模块并不会去感知这个地理围栏事件,减少了火车围栏的功耗。通过多个维度的围栏协作,可以准确判定用户的行为,及时且准确地为用户提供出行提醒。In some embodiments, the mobile phone can determine the user's arrival at the train station or airport through the cooperation between the three fences. Taking train travel as an example, the three fences can be the PUSH fence of the train travel application (such as the railway 12306 application), the geographic fence of the railway station, and the time fence, wherein the time fence can be used as a bottom fence. After ordering a train ticket, the user can subscribe to the PUSH fence of the railway 12306 application, and subscribe to the geofence and time fence after obtaining the itinerary information (such as train travel time and train departure station). When neither the PUSH fence of registration (also called subscription) nor the geofence is triggered, the mobile phone can judge whether the user has arrived at the train station through the time fence at the bottom. When the situation awareness module in the mobile phone detects that the inbound message pushed by the railway 12306 application has been received, the subscribed PUSH fence is triggered, and the subscribed geographic fence and time fence are canceled at the same time, that is, the PUSH fence prevails at this time. When the subscribed geo-fence is triggered, cancel the subscription time fence and ignore the received PUSH message indicating the inbound; when the bottom time fence is triggered, cancel the subscribed geo-fence and ignore the received PUSH message indicating the inbound. Different environments have different effects on the triggering of PUSH fences and geofences. For example, an environment with poor network signal is not conducive to the reception of PUSH messages, but this environment has no effect on the positioning and geographic location. In this environment, because the mobile phone is also equipped with a geographic location The fence, instead of completely relying on the PUSH fence, can avoid the problem of not being sure whether the user has reached the train station because the PUSH fence is not triggered. Some environments will affect both the PUSH fence and the geofence, while the time fence is not affected by the environment, and it can also ensure that the travel reminder pops up in time. In some scenarios, the geo-fence (i.e. the target geo-fence later in the application) can have an effective time attribute, then a train station fence can be understood as including a time fence and a geo-fence associated with the time fence (the time The fence is used to determine the time of registration of the geo-fence, which can also be understood as the time fence is used to determine the effective time of the geo-fence): subscription in advance (subscription can also be understood as registration) the train station fence, the time fence in the train station fence will be It is registered first (or understood to be effective first), when to start registering the geo-fence and then to perceive whether the geo-fence has been triggered can set an effective time, for example, a train station fence was set 5 days ago, but the effective time can be On the fifth day (when the time fence is triggered), even if the user passed the train station in the first four days, the situation awareness module in the mobile phone will not perceive the geofence event, reducing the power consumption of the train fence. Through multi-dimensional fence collaboration, the user's behavior can be accurately determined, and travel reminders can be provided to users in a timely and accurate manner.
第一方面,本申请提供一种出行提醒的方法,应用于电子设备,方法包括:检测第一出行应用的PUSH围栏是否触发,第一出行应用的PUSH围栏触发用于指示电子设备接收到第一出行应用的服务器发送的PUSH消息;检测当前场景的目标围栏是否触发,当前场景的目标围栏包括当前场景的目标地理围栏,当前场景的目标地理围栏触发用于指示电子设备位于当前场景的目标区域内;若检测到当前场景的目标围栏触发或第一出行应用的PUSH围栏触发,则判断是否显示当前场景的出行提醒;若确定显示当前场景的出行提醒,则显示当前场景的出行提醒,并根据触发的围栏,解除当前场景的目标围栏或忽略下一次获取的当前场景的PUSH消息。In a first aspect, the present application provides a travel reminder method, which is applied to an electronic device. The method includes: detecting whether the PUSH fence of the first travel application is triggered, and the trigger of the PUSH fence of the first travel application is used to indicate that the electronic device receives the first The PUSH message sent by the server of the travel application; detect whether the target fence of the current scene is triggered, the target fence of the current scene includes the target geo-fence of the current scene, and the trigger of the target geo-fence of the current scene is used to indicate that the electronic device is located in the 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, it is judged whether to display the travel reminder of the current scene; if it is determined to display the travel reminder of the current scene, the travel reminder of the current scene is displayed, and according to the trigger to release the target fence of the current scene or ignore the PUSH message of the current scene to be acquired next time.
在一些场景中,若仅注册一个维度的围栏(如仅注册地理围栏),由于手机获取当前经纬度信息受到环境影响大,手机中情景感知模块获得的地理位置信息可能不准确,则会导致不能及时地为用户提供出行提醒的问题,同理单一使用时间围栏或单一使用第一出行应用(如“铁路12306”应用)的PUSH围栏,都会存在漏提醒或误提醒的问题,例如,用户已进站,由于网络延时或信号问题,用户的手机并未收到来自铁路12306”应用的服务器发送的指示用户进站的PUSH消息,那么将导致电子设备出现漏提醒的问题。本申请中,电子设备根据行程数据,注册多个不同功能(维度)的围栏,如PUSH围栏、各场景的目标地理围栏;电子设备同时对两个不同维度的信息进行监测,使得在不同场景下各个维度的信息相互弥补,避免因一个信息监测不准确而导致不能及时为用户进行出行提醒的问题,提高了出行提醒的准确性。In some scenarios, if you only register a fence in one dimension (such as only registering a geofence), because the current latitude and longitude information obtained by the mobile phone is greatly affected by the environment, the geographical location information obtained by the situation awareness module in the mobile phone may be inaccurate, which will lead to failure to timely The problem of providing travel reminders for users in a timely manner. Similarly, the single use of the time fence or the single use of the PUSH fence of the first travel application (such as the "Railway 12306" application) will have the problem of missing reminders or false reminders. For example, the user has entered the station. , due to network delay or signal problems, the user's mobile phone does not receive the PUSH message from the server of the railway 12306" application instructing the user to enter the station, which will cause the problem of missing reminders on the electronic device. In this application, the electronic device According to the travel data, multiple fences with different functions (dimensions) are registered, such as the PUSH fence and the target geofence of each scene; the electronic device monitors the information of two different dimensions at the same time, so that the information of each dimension in different scenarios complements each other , to avoid the problem of not being able to provide travel reminders for users in time due to inaccurate information monitoring, and to improve the accuracy of travel reminders.
根据第一方面,若检测到当前场景的目标围栏触发或第一出行应用的PUSH围栏触发,则判断是否显示当前场景的出行提醒,包括:若检测到当前场景的目标围栏触发,则确定显示当前场景的出行提醒;若检测到第一出行应用的PUSH围栏触发,则解析接收的PUSH消息,判断PUSH消息中是否存在当前场景的PUSH消息;若确定获取到当前场景的PUSH消息,则确定显示当前场景的出行提醒;若确定未获取到当前场景的PUSH消息,则确定取消显示当前场景的出行提醒。According to the first aspect, if the target fence trigger of the current scene or the PUSH fence trigger of the first travel application is detected, it is judged whether to display the travel reminder of the current scene, including: if the target fence trigger of the current scene is detected, it is determined to display the current Travel reminder of the scene; if the PUSH fence trigger of the first travel application is detected, the received PUSH message will be analyzed to determine whether there is a PUSH message of the current scene in the PUSH message; if the PUSH message of the current scene is determined to be obtained, the current scene will be displayed The travel reminder of the scene; if it is determined that the PUSH message of the current scene has not been obtained, it is determined to cancel the display of the travel reminder of the current scene.
这样,由于PUSH消息中通常包括的内容多,例如,当前场景为抵达出发站的场景,电子设备检测到PUSH围栏触发,该电子设备接收到的PUSH消息可以是火车出行的火车票信息。那么该接收的PUSH消息并不能用于判断用户是否到达火车站。本示例中通过对PUSH消息的解析,在检测到获取到当前场景的PUSH消息时,确定显示当前场景的引导信息,提高确定显示当前场景的引导信息的准确性,避免后续错误地显示引导信息。而当目标地理围栏触发时,可以指示电子设备的位置,无需进行其他操作,即可确定显示该场景的引导信息,判断速度快。In this way, since the PUSH message usually includes a lot of content, for example, the current scene is the scene of arriving at the departure station, and the electronic device detects that the PUSH fence is triggered, the PUSH message received by the electronic device may be train ticket information for train travel. Then the received PUSH message cannot be used to judge whether the user has arrived at the train station. In this example, by analyzing the PUSH message, when the PUSH message of the current scene is detected, it is determined to display the guidance information of the current scene, so as to improve the accuracy of determining the guidance information of the current scene and avoid subsequent incorrect display of guidance information. When the target geo-fence is triggered, the position of the electronic device can be indicated, and the guidance information of the scene can be determined and displayed without other operations, and the judgment speed is fast.
根据第一方面,该方法中,根据触发的围栏,解除当前场景的目标围栏或忽略下一次获取的当前场景的PUSH消息包括:若确定第一出行应用的PUSH围栏触发且确定获取到当前场景的PUSH消息,则解除当前场景的目标围栏;若确定目标围栏触发,则忽略下一次获取的当前场景的PUSH消息。According to the first aspect, in the method, according to the triggered fence, releasing the target fence of the current scene or ignoring the next acquired PUSH message of the current scene includes: PUSH message, remove the target fence of the current scene; if it is determined that the target fence is triggered, ignore the PUSH message of the current scene to be acquired next time.
这样,当PUSH围栏触发且确定获取到当前场景的PUSH消息时,确定显示当前场景的引导信息,解除当前场景的目标围栏,可以减少不必要的功耗;同理,当确定目标围栏触发,可以确定显示当前场景的引导信息,无需对下一次获取的当前场景的PUSH消息进行处理,降低功耗。In this way, when the PUSH fence is triggered and the PUSH message of the current scene is determined to be obtained, it is determined to display the guidance information of the current scene, and the target fence of the current scene is released, which can reduce unnecessary power consumption; similarly, when the target fence is determined to be triggered, it can be It is determined to display the guidance information of the current scene, and there is no need to process the PUSH message of the current scene acquired next time, thereby reducing power consumption.
根据第一方面,该方法中当前场景的目标围栏还包括当前场景的目标时间围栏;检测当前场景的目标围栏是否触发包括:检测当前场景的目标地理围栏是否触发以及检测当前场景的目标时间围栏是否触发,当前场景的目标时间围栏触发用于指示达到预设的当前场景的指定时间。According to the first aspect, the target fence of the current scene in the method also includes the target time fence of the current scene; detecting whether the target fence of the current scene triggers includes: detecting whether the target geo-fence of the current scene triggers and detecting whether the target time fence of the current scene Trigger, the target time of the current scene The fence trigger is used to indicate that the specified time of the preset current scene has been reached.
这样,目标围栏还包括目标时间围栏,也即电子设备同时对三个围栏进行监测,增加一个时间维度的目标时间围栏,进一步丰富监测的数据,提高对用户行为的准确预测,进而为用户提供准确地出行提醒。例如,用户的火车票在12月1日10:00发车,若抵达出发站的指定时间预先设置为9:30,那么当时间达到9:30时,可以预测为用户已到达出发站,进而为用户提供抵达出发站的出行提醒。In this way, the target fence also includes the target time fence, that is, the electronic device monitors the three fences at the same time, adding a time dimension of the target time fence, further enriching the monitored data, improving the accurate prediction of user behavior, and providing users with accurate travel reminder. For example, if the user's train ticket departs at 10:00 on December 1st, if the specified time of arrival at the departure station is preset as 9:30, then when the time reaches 9:30, it can be predicted that the user has arrived at the departure station, and then The user provides travel reminders upon arrival at the departure station.
根据第一方面,根据触发的围栏,解除当前场景的目标围栏或忽略下一次获取的当前场景的PUSH消息,包括:若确定当前场景的目标时间围栏触发,则解除当前场景的目标地理围栏以及忽略下一次获取的当前场景的PUSH消息;若确定当前场景的目标地理围栏触发,则解除当前场景的目标时间围栏以及忽略下一次获取的当前场景的PUSH消息;若确定第一出行应用的PUSH围栏触发且确定获取到当前场景的PUSH消息,则解除当前场景的目标地理围栏以及当前场景的目标时间围栏。According to the first aspect, according to the triggered fence, release the target fence of the current scene or ignore the PUSH message of the current scene acquired next time, including: if it is determined that the target time fence of the current scene is triggered, then release the target geo-fence of the current scene and ignore The PUSH message of the current scene to be acquired next time; if it is determined that the target geofence of the current scene is triggered, the target time fence of the current scene will be released and the PUSH message of the current scene acquired next time will be ignored; if the PUSH fence trigger of the first travel application is determined And if it is determined that the PUSH message of the current scene is obtained, the target geographic fence of the current scene and the target time fence of the current scene are released.
这样,当目标围栏还包括目标时间围栏时,若目标地理围栏触发或目标时间围栏触发,不仅需要忽略下一次获取到的当前场景的PUSH消息,还需要解除目标围栏中另一个围栏,若第一出行应用的PUSH围栏触发且确定获取到当前场景的PUSH消息,解除目标地理围栏以及解除目标时间围栏,降低电子设备的功耗。In this way, when the target fence also includes the target time fence, if the target geo-fence triggers or the target time fence triggers, not only need to ignore the PUSH message of the current scene acquired next time, but also need to release another fence in the target fence, if the first The PUSH fence of the travel application triggers and determines to obtain the PUSH message of the current scene, releases the target geo-fence and releases the target time fence, and reduces the power consumption of the electronic device.
根据第一方面,在检测第一出行应用的PUSH围栏是否触发之前,该方法还包括:若检测到授权对象与指定应用账号之间存在授权关系,注册第一出行应用的PUSH围栏,授权对象包括电子设备的标识或用户在用户服务平台的账号,指定应用账号为用户在第一出行应用的服务器的账号。According to the first aspect, before detecting whether the PUSH fence of the first travel application is triggered, the method further includes: if it is detected that there is an authorization relationship between the authorized object and the specified application account, registering the PUSH fence of the first travel application, the authorized object includes The identification of the electronic device or the account of the user on the user service platform, and the designated application account is the account of the user on the server of the first travel application.
这样,在检测到授权对象与指定应用账号之间的存在关系,注册第一出行应用的PUSH围栏,以确保可以及时对PUSH消息进行检测。In this way, when the relationship between the authorized object and the specified application account is detected, the PUSH fence of the first travel application is registered to ensure that the PUSH message can be detected in time.
根据第一方面,当前场景的目标地理围栏包括:生效时间围栏和生效地理围栏;检测当前场景的目标围栏是否触发,包括:检测当前场景的目标地理围栏中的生效时间围栏是否触发,生效时间围栏触发用于指示达到目标地理围栏预设的注册时间;若检测到当前场景的目标地理围栏中的生效时间围栏触发,则注册当前场景的目标地理围栏中的生效地理围栏;检测当前场景的目标地理围栏的生效地理围栏是否触发,若检测到当前场景的目标地理围栏的生效地理围栏触发,则确定当前场景的目标围栏触发。According to the first aspect, the target geo-fence of the current scene includes: an effective time fence and an effective geo-fence; detecting whether the target fence of the current scene is triggered includes: detecting whether the effective time fence in the target geo-fence of the current scene is triggered, and the effective time fence Trigger is used to indicate that the preset registration time of the target geo-fence is reached; if the effective time fence trigger in the target geo-fence of the current scene is detected, the effective geo-fence in the target geo-fence of the current scene is registered; the target geo-fence of the current scene is detected Whether the effective geo-fence of the fence is triggered. If the effective geo-fence trigger of the target geo-fence of the current scene is detected, the target fence trigger of the current scene is determined.
这样,目标地理围栏中包括生效时间围栏和生效地理围栏,仅在生效时间围栏触发时,注册生效地理围栏,使得电子设备仅在生效时间围栏触发后检测电子设备的位置,减少功耗,同时也避免用户经过目标位置时,误触发的问题,提高目标地理围栏的准确性。In this way, the target geo-fence includes the effective time fence and the effective geo-fence, and only when the effective time fence is triggered, the effective geo-fence is registered, so that the electronic device detects the position of the electronic device only after the effective time fence is triggered, reducing power consumption, and at the same time Avoid the problem of false triggering when the user passes the target location, and improve the accuracy of the target geofence.
根据第一方面,在检测当前场景的目标地理围栏中的生效时间围栏是否触发之前,该方法还包括:获取用户的行程数据;根据行程数据和各出行的场景,注册各场景的目标地理围栏的生效时间围栏。这样,通过用户的行程数据注册各场景的生效时间围栏,使得目标地理围栏中生效地理围栏的注册与用户的行程相匹配,进一步提高目标地理围栏的准确性。例如,用户的购票时间是1月1日,火车的发车时间为1月5日,那么可以根据用户的出发时间,可以在1月5日触发生效时间围栏,注册生效地理围栏,在1月5日之前该目标地理围栏中的生效地理围栏未注册,不会监测电子设备的位置,也即不会发生误检测位置的问题。According to the first aspect, before detecting whether the effective time fence in the target geo-fence of the current scene is triggered, the method also includes: obtaining the user’s itinerary data; Effective time fence. In this way, the effective time fence of each scene is registered through the user's itinerary data, so that the registration of the effective geo-fence in the target geo-fence matches the user's itinerary, further improving the accuracy of the target geo-fence. For example, if the user purchases a ticket on January 1st and the train departs on January 5th, then according to the user's departure time, the effective time fence can be triggered on January 5th, and the registration effective geofence will be activated on January 5th. Before the 5th, the effective geo-fence in the target geo-fence was not registered, and the location of the electronic device would not be monitored, that is, the problem of false detection of the location would not occur.
根据第一方面,出行的场景包括:抵达出发站的场景、行程中的场景、抵达目的站的场景以及离开目的站的场景。出行的场景为用户需要提醒的场景,针对该出行的场景进行出行提醒,有针对性,提高用户的体验。According to the first aspect, the travel scene includes: a scene of arriving at the departure station, a scene during the itinerary, a scene of arriving at the destination station, and a scene of leaving the destination station. The travel scene is the scene that the user needs to be reminded, and the travel reminder is performed for the travel scene, which is targeted and improves the user experience.
根据第一方面,抵达出发站的场景的目标时间围栏的触发条件包括:距离预计出发时间的时间差值小于或等于第一预设时长;抵达出发站的场景的目标地理围栏的目标区域包括:出发站所在区域。这样,目标时间围栏可以根据用户的行程确定,符合用户出行的要求,提高了出行提醒的准确性。According to the first aspect, the trigger condition of the target time fence of the scene arriving at the departure station includes: the time difference from the expected departure time is less than or equal to the first preset duration; the target area of the target geo-fence of the scene arriving at the departure station includes: The area where the departure station is located. In this way, the target time fence can be determined according to the user's itinerary, which meets the travel requirements of the user and improves the accuracy of the travel reminder.
根据第一方面,行程中的场景的目标时间围栏的触发条件包括:检测到位于预计出发时间与预计到达时间之间;行程中的场景的目标地理围栏的目标区域包括出发站之外的预设区域。这样,行程中的场景的目标时间围栏可以根据用户的行程确定,符合用户出行的要求,提高了出行提醒的准确性。According to the first aspect, the trigger condition of the target time fence of the scene in the itinerary includes: detecting that it is between the expected departure time and the estimated time of arrival; the target area of the target geo-fence of the scene in the itinerary includes a preset area. In this way, the target time fence of the scene in the itinerary can be determined according to the user's itinerary, which meets the travel requirements of the user and improves the accuracy of the travel reminder.
根据第一方面,抵达目的站的场景的目标时间围栏的触发条件:达到预计到达时间与预计误差时长之间的时间和;抵达目的站的场景的目标地理围栏的目标区域包括:目的站所在区域。这样,抵达目的站的场景的目标时间围栏可以根据用户的行程确定,符合用户出行的要求,提高了出行提醒的准确性。同时,目的站所在区域作为抵达目的站场景的目标地理围栏的目标区域,使得该场景的目标地理围栏的设置符合用户的行程需求。According to the first aspect, the trigger condition of the target time fence of the scene arriving at the destination station: the sum of the time between the estimated arrival time and the estimated error duration; the target area of the target geo-fence of the scene arriving at the destination station includes: the area where the destination station is located . In this way, the target time fence of the scene of arriving at the destination station can be determined according to the user's itinerary, which meets the travel requirements of the user and improves the accuracy of the travel reminder. At the same time, the area where the destination station is located is used as the target area of the target geo-fence of the destination station scene, so that the setting of the target geo-fence of the scene meets the user's itinerary requirements.
根据第一方面,离开目的站的场景的目标时间围栏的触发条件:达到预计到达时间与预设的出站时长之和;离开目的站的场景的目标地理围栏的目标区域包括:目的站所在区域之外的预设区域。这样,离开目的站的场景的的目标时间围栏以及目标地理围栏可以根据用户的行程确定对应的触发条件,使得围栏的触发符合用户出行的要求,提高了出行提醒的准确性。According to the first aspect, the trigger condition of the target time fence of the scene leaving the destination station: reaching the sum of the estimated arrival time and the preset outbound duration; the target area of the target geographical fence of the scene leaving the destination station includes: the area where the destination station is located outside the preset area. In this way, the target time fence and the target geo-fence of the scene leaving the destination station can determine the corresponding trigger conditions according to the user's itinerary, so that the triggering of the fence meets the travel requirements of the user and improves the accuracy of the travel reminder.
根据第一方面,根据行程数据和各出行的场景,注册各场景的目标地理围栏的生效时间围栏,包括:从行程数据中获取预计出发时间,注册抵达出发站场景的目标地理围栏中的生效时间围栏以及注册行程中场景下的目标地理围栏中的生效时间围栏;抵达出发站场景的目标地理围栏中的生效时间围栏的触发条件以及行程中场景下的目标地理围栏中的生效时间围栏的触发条件均为:距离预计出发时间小于等于预设的第一触发时长;According to the first aspect, according to the itinerary data and each travel scene, register the effective time fence of the target geo-fence of each scene, including: obtain the estimated departure time from the itinerary data, and register the effective time in the target geo-fence of the departure scene Fence and the effective time fence in the target geo-fence of the registered itinerary scene; the trigger condition of the effective time fence in the target geo-fence of the arrival departure station scene and the trigger condition of the effective time fence in the target geo-fence of the itinerary scene Both: the distance from the estimated departure time is less than or equal to the preset first trigger duration;
从行程数据中获取预计到达时间,注册抵达目的站场景下的目标地理围栏中的生效时间围栏以及注册离开目的站场景下的目标地理围栏中的生效时间围栏;行程中场景下的目标地理围栏中的生效时间围栏触发条件以及抵达目的站场景下的目标地理围栏中的生效时间围栏的触发条件均为:距离预计出发时间小于等于预设的第二触发时长。Obtain the estimated arrival time from the travel data, register the effective time fence in the target geo-fence in the scene of arriving at the destination station and register the effective time fence in the target geo-fence in the scene of leaving the destination station; The trigger conditions of the effective time fence of the target station and the trigger condition of the effective time fence in the target geo-fence in the scene of arriving at the destination station are both: the distance from the estimated departure time is less than or equal to the preset second trigger duration.
这样,根据预计到达时间以及预计出发时间,确定围栏的触发条件,使得围栏的触发符合用户出行的要求,提高了出行提醒的准确性。In this way, the triggering condition of the fence is determined according to the estimated arrival time and the estimated departure time, so that the triggering of the fence meets the travel requirements of the user, and the accuracy of the travel reminder is improved.
根据第一方面,显示当前场景的出行提醒之前,该方法还包括:取消显示上一场景的出行提醒;或者,指示将显示内容从上一场景的出行提醒更新为当前场景的出行提醒。这样,避免出现过时的出行提醒打扰用户的问题,提高用户的使用体验。According to the first aspect, before displaying the travel reminder of the current scene, the method further includes: canceling the display of the travel reminder of the previous scene; or instructing to update the displayed content from the travel reminder of the previous scene to the travel reminder of the current scene. In this way, the problem of disturbing the user by outdated travel reminders is avoided, and the user experience is improved.
根据第一方面,若第一出行应用为火车出行应用,该方法包括:检测火车出行应用的PUSH围栏是否触发,火车出行应用的PUSH围栏触发用于指示电子设备接收到火车出行应用的服务器发送的PUSH消息;检测到当前场景的火车站围栏是否触发,当前场景的火车站围栏包括以当前场景中的火车站为目标区域的目标地理围栏;若检测到当前场景的火车站围栏或火车出行应用的PUSH围栏触发,则判断是否显示当前场景的出行提醒;若确定显示当前场景的出行提醒,则显示当前场景的出行提醒,并根据触发的围栏,解除当前场景的火车站围栏或忽略下一次获取的当前场景的PUSH消息;According to the first aspect, if the first travel application is a train travel application, the method includes: detecting whether the PUSH fence of the train travel application is triggered, and the PUSH fence of the train travel application is used to indicate that the electronic device has received a message sent by the server of the train travel application. PUSH message; detect whether the fence of the train station in the current scene is triggered, the fence of the train station in the current scene includes the target geographical fence with the train station in the current scene as the target area; if the fence of the train station in the current scene or the train travel application is detected When the PUSH fence is triggered, it is judged whether to display the travel reminder of the current scene; if it is determined to display the travel reminder of the current scene, the travel reminder of the current scene is displayed, and according to the triggered fence, the railway station fence of the current scene is released or the next acquisition is ignored PUSH message of the current scene;
若第一出行应用为飞机出行应用,该方法包括:检测飞机出行应用的PUSH围栏是否触发,飞机出行应用的PUSH围栏触发用于指示电子设备接收到飞机出行应用的服务器发送的PUSH消息;检测到当前场景的机场围栏是否触发,当前场景的机场围栏包括以当前场景的机场为目标区域的目标地理围栏;若检测到当前场景的机场围栏或飞机出行应用的PUSH围栏触发,则判断是否显示当前场景的出行提醒;若确定显示当前场景的出行提醒,则显示当前场景的出行提醒,并根据触发的围栏,解除当前场景的机场围栏或忽略下一次获取的当前场景的PUSH消息。If the first travel application is an airplane travel application, the method includes: detecting whether the PUSH fence of the airplane travel application is triggered, and the PUSH fence of the airplane travel application is triggered to indicate that the electronic device has received the PUSH message sent by the server of the airplane travel application; Whether the airport fence of the current scene is triggered, the airport fence of the current scene includes the target geographical fence with the airport of the current scene as the target area; if the airport fence of the current scene or the PUSH fence of the aircraft travel application are detected to be triggered, it is judged whether to display the current scene If it is determined to display the travel reminder of the current scene, the travel reminder of the current scene will be displayed, and according to the triggered fence, the airport fence of the current scene will be lifted or the PUSH message of the current scene will be ignored next time.
这样,通过至少两个围栏可以针对火车出行的各个场景进行提醒,也可以通过至少两个围栏可以针对火车出行的各个场景进行提醒In this way, at least two fences can be used to remind various scenes of train travel, and at least two fences can be used to remind various scenes of train travel
第二方面,本申请提供了一种电子设备,包括:一个或多个处理器;存储器;以及一个或多个计算机程序,其中一个或多个计算机程序存储在存储器上,当计算机程序被一个或多个处理器执行时,使得电子设备执行上述第一方面以及第一方面的任一种实现方式所对应的出行提醒的方法。In a second aspect, the present application provides an electronic device, including: one or more processors; memory; and one or more computer programs, wherein one or more computer programs are stored on the memory, when the computer program is executed by one or When executed by multiple processors, the electronic device executes the travel reminder method corresponding to the first aspect and any implementation manner of the first aspect.
第二方面以及第二方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第二方面以及第二方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。The second aspect and any implementation manner of the second aspect correspond to the first aspect and any implementation manner of the first aspect respectively. For technical effects corresponding to the second aspect and any implementation manner of the second aspect, reference may be made to the technical effects corresponding to the above-mentioned first aspect and any implementation manner of the first aspect, and details are not repeated here.
第三方面,本申请提供了一种计算机可读介质,用于存储计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行上述第一方面以及第一方面的任意一种实现方式所对应的出行提醒的方法。In a third aspect, the present application provides a computer-readable medium for storing a computer program, and when the computer program is run on an electronic device, the electronic device executes any one of the above-mentioned first aspect and the first aspect. A method of travel reminder corresponding to the implementation mode.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present application. Obviously, the accompanying drawings in the following description are only some embodiments of the present application , for those skilled in the art, other drawings can also be obtained according to these drawings without paying creative labor.
图1是示例性示出的电子设备的结构示意图;FIG. 1 is a schematic structural diagram of an exemplary electronic device;
图2是示例性示出的电子设备的软件结构示意图;FIG. 2 is a schematic diagram of a software structure of an exemplary electronic device;
图3是本申请实施例提供的一种出行提醒的方法的示意图;Fig. 3 is a schematic diagram of a method for travel reminder provided by an embodiment of the present application;
图4是示例性示出的当前场景的任一围栏触发的情况或确定获取到当前场景的PUSH消息的情况的示意图;Fig. 4 is a schematic diagram of a situation in which any fence of the current scene is triggered or a situation in which it is determined to obtain a PUSH message of the current scene;
图5是示例性示出的各个场景显示的提示信息的示意图。Fig. 5 is a schematic diagram of the prompt information displayed in each scene exemplarily shown.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations.
本申请实施例的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一目标对象和第二目标对象等是用于区别不同的目标对象,而不是用于描述目标对象的特定顺序。The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order of objects. For example, the first target object, the second target object, etc. are used to distinguish different target objects, rather than describing a specific order of the target objects.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。例如,多个处理单元是指两个或两个以上的处理单元;多个系统是指两个或两个以上的系统。In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.
图1为本申请实施例示出的一种电子设备100的结构示意图。应该理解的是,图1所示电子设备100仅是电子设备的一个范例,并且电子设备100可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图1中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。FIG. 1 is a schematic structural diagram of an electronic device 100 shown in an embodiment of the present application. It should be understood that the electronic device 100 shown in FIG. 1 is only an example of an electronic device, and the electronic device 100 may have more or fewer components than those shown in the figure, and two or more components may be combined , or can have different component configurations. 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.
电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。The electronic device 100 may include: a
图2是本申请实施例的电子设备100的软件结构框图。FIG. 2 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
电子设备100的分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture of the electronic device 100 divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, which are respectively the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer from top to bottom.
如图2所示,应用程序层可以包括一系列应用程序包。应用程序包可以包括情景感知模块,业务逻辑处理模块,业务呈现模块,图库,WLAN,蓝牙,音乐,游戏,短信息等应用程序。As shown in Figure 2, the application layer can include a series of application packages. The application package can include situation awareness module, business logic processing module, business presentation module, gallery, WLAN, bluetooth, music, games, short message and other applications.
情景感知模块常驻运行或以低功耗形式运行,具有感知外部事实或者环境的能力。在卡片提醒业务处理开启状态时,情境感知模块对注册的事项(如特定时间、特定地点、或特定事件等)进行监控,如果用户触发了其中某一种事项,情境感知模块向业务逻辑处理模块发送通知。此外,情境感知模块还可以通过应用程序接口从应用程序层的其他应用程序或应用程序框架层或内核层检测相关事件和获取事件的状态,比如检测蓝牙连接,网络连接,监测用户短信,定制定时器等。The situational awareness module operates permanently or with low power consumption, and has the ability to perceive external facts or environments. When the card reminder business processing is turned on, the situation awareness module monitors the registered items (such as specific time, specific location, or specific event, etc.), if the user triggers one of the items, the situation awareness module sends a notification to the business logic processing module Send a notification. In addition, the situational awareness module can also detect related events and obtain the status of events from other applications in the application layer or application framework layer or kernel layer through the application program interface, such as detecting Bluetooth connection, network connection, monitoring user text messages, and customizing timing device etc.
业务逻辑处理模块用于实现各种卡片显示,通知的显示。The business logic processing module is used to realize the display of various cards and notifications.
业务呈现模块(如:YOYO建议),用于控制卡片显示或者消失。例如,业务呈现模块可以接收业务逻辑处理模块传递的显示提醒卡片的命令,并将该提醒卡片显示给用户。对应的,如果接收到业务逻辑处理模块传过来的消失卡片命令时,业务呈现模块消除该卡片。The business presentation module (such as: YOYO suggestion), is used to control the display or disappearance of the card. For example, the service presentation module may receive a command to display a reminder card from the service logic processing module, and display the reminder card to the user. Correspondingly, if receiving a card disappear command from the business logic processing module, the service presentation module will eliminate the card.
应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,资源管理器,通知管理器,活动管理器等。As shown in Figure 2, the application framework layer can include window managers, content providers, view systems, resource managers, notification managers, activity managers, and so on.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,Wi-Fi驱动,蓝牙驱动,音频驱动,传感器驱动等。The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, Wi-Fi driver, Bluetooth driver, audio driver, sensor driver, etc.
可以理解的是,图2示出的软件结构中的层以及各层中包含的部件,并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的层,以及每个层中可以包括更多或更少的部件,本申请不做限定。It can be understood that the layers in the software structure shown in FIG. 2 and the components included in each layer do not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer layers than shown, and each layer may include more or fewer components, which is not limited in the present application.
在一些实施例中,购票应用在用户购买火车票后,可以通过短信的方式提醒用户行程,例如,在出行前发送行程信息(如车次、行程日期、出发地和目的地等)以提醒用户出行,合理安排行程。但是,受到环境影响,可能导致手机不能及时为用户提供准确的出行提醒。In some embodiments, after the user purchases a train ticket, the ticketing application can remind the user of the itinerary by text message, for example, send the itinerary information (such as train number, travel date, departure place and destination, etc.) before the trip to remind the user Travel, arrange your itinerary reasonably. However, affected by the environment, the mobile phone may not be able to provide accurate travel reminders for the user in time.
本申请一些实施例提供了一种出行提醒的方法,以使得电子设备可以及时、准确地为用户提供出行提醒。Some embodiments of the present application provide a travel reminder method, so that an electronic device can provide a travel reminder to a user in a timely and accurate manner.
在本申请实施例中,电子设备以手机为例进行说明。在其他实施例中,电子设备也可以是平板、智能穿戴设备、车载设备等。可选地,出行提醒可以对用户的火车出行进行提醒,也可以用于对用户的飞机出行、轮船出行进行提醒。本示例中以对用户的火车出行进行提醒为例进行说明,飞机出行的提醒或者轮船出行的提醒均可以参照该火车出行的提醒。In the embodiment of the present application, the electronic device is described by taking a mobile phone as an example. In other embodiments, the electronic device may also be a tablet, a smart wearable device, a vehicle-mounted device, and the like. Optionally, the travel reminder may remind the user of the train travel, and may also be used to remind the user of the plane travel or ship travel. In this example, the reminder of the user's train travel is taken as an example for illustration, and the reminder of the airplane travel or the reminder of the ship travel can refer to the reminder of the train travel.
图3为示例性示出的本申请实施例中手机执行该出行提醒的方法时与指定应用的服务器(如“铁路12306”的服务平台,后文中简称为“12306平台”)之间的交互示意图。该授权提醒的方法包括以下步骤:Figure 3 is an exemplary illustration of the interaction between the mobile phone and the server of the specified application (such as the service platform of "Railway 12306", hereinafter referred to as "12306 platform") when executing the method of travel reminder in the embodiment of the present application . The method for authorization reminder includes the following steps:
步骤301:业务逻辑处理模块向12306平台请求行程数据。Step 301: The business logic processing module requests the itinerary data from the 12306 platform.
示例性地,用户的服务平台账号与购票应用服务器的账号之间具有授权关系,可选地,服务平台账号可以是用户在电子设备对应的服务器中的用户账号,该服务平台可以是手机对应的服务器,如荣耀平台。购票应用服务器的账号可以是用户在购票应用(即第一出行应用)的用户账号,可选地,第一出行应用可以是火车出行应用,如:铁路12306应用、去哪儿应用等。第一出行应用也可以是飞机出行应用,如航旅纵横应用、各航空公司的应用等。本示例中购票应用(即第一出行应用)以“铁路12306”应用为例,服务平台以荣耀平台为例。通过用户的荣耀账号与用户的12306账号之间的授权关系,12306平台可以向荣耀平台推送PUSH消息,从而便于与荣耀账号绑定的手机获取用户的行程数据。Exemplarily, there is an authorization relationship between the user's service platform account and the account of the ticketing application server. Optionally, the service platform account may be the user account of the user in the server corresponding to the electronic device, and the service platform may be the account corresponding to the mobile phone. server, such as the Honor platform. The account of the ticketing application server may be the user account of the user in the ticketing application (ie, the first travel application). Optionally, the first travel application may be a train travel application, such as the railway 12306 application, Qunar application, etc. The first travel application may also be an airplane travel application, such as an air travel application, an application of various airlines, and the like. In this example, the ticketing application (that is, the first travel application) uses the "Railway 12306" application as an example, and the service platform uses the Glory platform as an example. Through the authorization relationship between the user's Honor account and the user's 12306 account, the 12306 platform can push PUSH messages to the Honor platform, so that the mobile phone bound to the Honor account can obtain the user's itinerary data.
举例来说,用户的荣耀账号与12306账号(即用户在铁路12306中的用户账号)存在授权关系(即荣耀账号与12306账号相互绑定),当用户使用12306账号订购火车票之后,该12306平台(即铁路12306应用对应的服务器)将该火车票的订单摘要(订单摘要如包括时间、车次信息等)发送至荣耀平台,荣耀平台根据荣耀账号与终端之间的绑定关系,将该订单摘要发送至对应的手机A上。手机A的业务逻辑处理模块根据该订单摘要的信息,向12306平台的接口请求该用户的行程数据,该行程数据可以包括该用户行程的完整信息,如起始站、目的地、车次、发车日期、座位号、检票口、列车状态信息(如已进站,已出站)、车票状态(如改签,退票)等信息。For example, there is an authorization relationship between the user's Honor account and the 12306 account (that is, the user's user account in the railway 12306) (that is, the Honor account and the 12306 account are bound to each other). When the user uses the 12306 account to order a train ticket, the 12306 platform (that is, the server corresponding to the railway 12306 application) sends the order summary of the train ticket (such as the order summary including time, train number information, etc.) Send it to the corresponding mobile phone A. The business logic processing module of mobile phone A requests the user's itinerary data from the interface of the 12306 platform according to the information of the order summary. The itinerary data may include the complete information of the user's itinerary, such as starting station, destination, train number, and departure date , seat number, ticket gate, train status information (such as entering the station, exiting the station), ticket status (such as rebooking, refunding) and other information.
需要说明的是,当检测到用户的服务平台账号与在购票应用中的用户账号之间具有授权关系,该业务逻辑处理模块可以向情景感知模块注册反馈信息的PUSH围栏,该反馈信息的PUSH围栏用于检测是否收到12306平台反馈的PUSH消息。通过反馈信息的PUSH围栏,使得业务逻辑处理模块与12306平台之间的PUSH通道打通,从而该业务逻辑处理模块可以与12306平台进行通信。It should be noted that when it is detected that there is an authorization relationship between the user's service platform account and the user account in the ticket purchase application, the business logic processing module can register the PUSH fence of the feedback information with the context awareness module, and the PUSH fence of the feedback information The fence is used to detect whether the PUSH message fed back by the 12306 platform is received. Through the PUSH fence of the feedback information, the PUSH channel between the business logic processing module and the 12306 platform is opened, so that the business logic processing module can communicate with the 12306 platform.
步骤302:12306平台向业务逻辑处理模块返回行程数据。Step 302: 12306 The platform returns the itinerary data to the business logic processing module.
步骤303:业务逻辑处理模块向情景感知模块注册PUSH围栏。Step 303: The business logic processing module registers the PUSH fence with the context awareness module.
示例性地,业务逻辑处理模块接收到该行程数据后,可以向情景感知模块注册PUSH围栏。该情景感知模块响应于业务逻辑处理模块的注册指示,注册PUSH围栏。本示例中,注册指示可以指示情景感知模块注册的PUSH围栏用于检测是否接收到指定平台推送的消息,指定平台如12306平台(即12306应用对应的服务器)。例如,本示例中该PUSH围栏一经注册,情景感知模块将持续检测手机是否收到12306平台推送的消息。Exemplarily, after receiving the trip data, the business logic processing module may register the PUSH fence with the situation awareness module. The context awareness module registers the PUSH fence in response to the registration instruction 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, such as the 12306 platform (that is, the server corresponding to the 12306 application). For example, once the PUSH fence is registered in this example, the context awareness module will continue to detect whether the mobile phone has received messages pushed by the 12306 platform.
在一个示例中,本步骤中注册的PUSH围栏与反馈信息的PUSH围栏可以不一致。若反馈信息的PUSH围栏与PUSH围栏的功能一致,在步骤301之前注册该PUSH围栏,则该步骤303即可不再执行。In an example, the PUSH fence registered in this step may be inconsistent with the PUSH fence of the feedback information. If the PUSH fence of the feedback information has the same function as the PUSH fence, and the PUSH fence is registered before step 301, then step 303 can no longer be executed.
步骤304:业务逻辑处理模块向情景感知模块注册各场景的地理围栏。Step 304: The business logic processing module registers the geofences of each scene with the situation awareness module.
可选地,场景可以包括:抵达出发站、行程中、抵达目的站、离开目的站。本示例中对于场景的划分仅为举例,在其他的实施例中,场景还可以包括:离开出发站、抵达路程中任一过路站等,此处不再一一列举其他可能的场景。Optionally, the scenarios may include: arriving at the departure station, traveling, arriving at the destination station, and leaving the destination station. The division of the scene in this example is only an example. In other embodiments, the scene may also include: leaving the departure station, arriving at any passing station in the journey, etc., and other possible scenes will not be listed here.
示例性地,业务逻辑处理模块可以根据行程数据向情景感知模块注册各场景的地理围栏。该情景感知模块响应于业务逻辑处理模块的注册指示,注册各场景的地理围栏。注册指示用于指示地理围栏中的目标经纬度以及地理围栏的生效时间。例如,业务逻辑处理模块可以根据发车时间和起始站的经纬度信息,确定第一出发站注册指示和第一行程注册指示,该第一出发站注册指示用于指示注册抵达出发站的场景的地理围栏、第一行程注册指示用于指示注册行程中的场景的地理围栏。业务逻辑处理模块可以根据到达时间以及目的站的经纬度信息,确定第一进入目的站注册指示和第一离开目的站注册指示,第一进入目的站注册指示用于指示注册抵达目的站场景的地理围栏、第一离开目的站注册指示用于指示注册离开目的站场景的地理围栏。Exemplarily, the business logic processing module can register the geographical fences of each scene with the situation awareness module according to the travel data. The situation awareness module registers the geographical fences of each scene in response to the registration instruction of the business logic processing module. The registration indication is used to indicate the longitude and latitude of the target in the geofence and the effective time of the geofence. For example, the business logic processing module can determine the first departure station registration indication and the first itinerary registration indication according to the departure time and the longitude and latitude information of the departure station. Fence, First Trip Registration Indicates the geofence used to indicate the scene in the registered trip. The business logic processing module can determine the first entry destination registration indication and the first exit destination registration indication according to the arrival time and the latitude and longitude information of the destination station. The first entry destination registration indication is used to indicate the geofence of the registration arrival destination scene . The first registration indication for leaving the destination is used to indicate the geographical fence of the registration leaving the destination scene.
可选地,本示例中该情景感知模块注册任一场景的地理围栏的过程可以为:情景感知模块接收到指示注册地理围栏的指示信息后,注册生效时间围栏以及生效地理围栏。该生效时间围栏的触发时间由业务逻辑处理模块根据火车的发车时间确定,例如,距离发车时间的时长小于等于4小时。情景感知模块在检测到生效时间围栏被触发后,注册生效地理围栏,生效地理围栏的目标经纬度由业务逻辑处理模块提供,例如,若当前场景为抵达出发站场景,该生效地理围栏的目标经纬度即为出发站的经纬度信息。可选地,情景感知模块同时销毁当前场景的生效时间围栏。该情景感知模块实时监测是否触发该生效地理围栏。也即本申请中的地理围栏具有生效时间,在达到生效时间后,实时定位地理位置变化。Optionally, in this example, the process of the situation awareness module registering the geo-fence of any scene may be: after the situation awareness module receives the indication information indicating registration of the geo-fence, it registers the effective time fence and the effective geo-fence. The trigger time of the effective time fence is determined by the business logic processing module according to the departure time of the train, for example, the time before the departure time is less than or equal to 4 hours. After the situation awareness module detects that the effective time fence is triggered, it registers the effective geo-fence. The target longitude and latitude of the effective geo-fence are provided by the business logic processing module. For example, if the current scene is the scene of arriving at the departure station, the target longitude and latitude of the effective geo-fence It is the latitude and longitude information of the departure station. Optionally, the situation awareness module simultaneously destroys the effective time fence of the current scene. The situation awareness module monitors in real time whether the effective geo-fence is triggered. That is to say, the geo-fence in this application has an effective time, and after the effective time is reached, the geographical location changes are located in real time.
在一些实施例中,业务逻辑处理模块向情景感知模块注册当前场景的地理围栏,该情景感知模块注册地理围栏,实时定位地理位置变化。也即,该地理围栏无生效时间围栏,一经注册立即检测用户的地理位置变化。In some embodiments, the business logic processing module registers the geo-fence of the current scene with the context-aware module, and the context-aware module registers the geo-fence to locate changes in the geographic location in real time. That is to say, the geographical fence has no effective time fence, and the change of the user's geographical location is detected immediately after registration.
本申请中以地理围栏具有生效时间为例。In this application, the geo-fence has an effective time as an example.
步骤305:业务逻辑处理模块向情景感知模块注册各场景的保底时间围栏。Step 305: The business logic processing module registers the guaranteed time fences of each scenario with the scenario awareness module.
可选地,该步骤中的各场景与步骤304中各场景相同,即场景包括:抵达出发站、行程中、抵达目的站、离开目的站。Optionally, the scenarios in this step are the same as the scenarios in step 304, that is, the scenarios include: arriving at the departure station, traveling, arriving at the destination station, and leaving the destination station.
示例性地,业务逻辑处理模块可以根据行程数据注册各场景的保底时间围栏(也可以理解为兜底时间围栏)。该情景感知模块响应于业务逻辑处理模块的注册指示,注册各场景的保底时间围栏。例如,业务逻辑处理模块可以根据列车的出发时间,确定第二出发站注册指示,该第二出发站注册指示用于指示情景感知模块注册抵达出发站场景的时间围栏;业务逻辑处理模块根据行程数据中的预计到达时间和预计出发时间,确定第二行程注册指示,该第二行程注册指示指示情景感知模块注册行程中场景的保底时间围栏;业务逻辑处理模块根据行程数据中预计到达时间,确定第二进入目的站注册指示和第二离开目的站注册指示,该第二进入目的站注册指示用于指示情景感知模块注册抵达目的站场景的时间围栏,第二离开目的站注册指示用于指示情景感知模块注册离开目的站场景的时间围栏。Exemplarily, the business logic processing module can register the guaranteed time fence (also can be understood as the bottom time fence) of each scene according to the travel data. The scenario awareness module registers the guaranteed time fences of each scenario in response to the registration instruction of the business logic processing module. For example, the business logic processing module can determine the second departure station registration indication according to the departure time of the train. The estimated arrival time and estimated departure time in the itinerary determine the second itinerary registration instruction, and the second itinerary registration instruction instructs the situation awareness module to register the guaranteed time fence of the scene in the itinerary; the business logic processing module determines the second itinerary according to the estimated arrival time in the itinerary data. Two entry destination registration indications and a second departure destination registration indication, the second entry destination registration indication is used to instruct the context awareness module to register the time fence of the arrival destination scene, and the second exit destination registration indication is used to indicate context awareness The module registers the time fence for leaving the destination scene.
举例来说,行程数据中预计出发时间为T1,预计到达时间为T4。业务逻辑处理模块可以指示抵达出发站场景的时间围栏的触发条件为:T1-t的差值小于等于t1,其中,t为检测时间,t1为第一预设时长,本示例中第一预设时长以30分钟为例。For example, the estimated departure time in the itinerary data is T1, and the estimated arrival time is T4. The business logic processing module can indicate that the trigger condition of the time fence of the scene of arriving at the departure station is: the difference between T1-t is less than or equal to t1, where t is the detection time, and t1 is the first preset duration. In this example, the first preset Take 30 minutes as an example.
业务逻辑处理模块可以指示行程中场景的时间围栏的触发条件为:T1≤t≤T4,其中,t为检测时间。The business logic processing module can indicate that the triggering condition of the time fence of the scene in the itinerary is: T1≤t≤T4, where t is the detection time.
业务逻辑处理模块可以指示抵达目的站场景的时间围栏的触发条件为:T4±t2,其中,t为检测时间,t2由12306平台提供的预计延迟或提前的时间,例如,12306平台发送列车预计延迟10分钟,则抵达目的站场景的时间围栏的触发条件为T4+10min。The business logic processing module can indicate that the trigger condition of the time fence of the destination station scene is: T4 ± t2, where t is the detection time, and t2 is the estimated delay or advance time provided by the 12306 platform, for example, the estimated delay of the train sent by the 12306 platform 10 minutes, then the trigger condition of the time fence of the scene of arriving at the destination station is T4+10min.
业务逻辑处理模块可以指示离开目的地站场景的时间围栏的触发条件为:t=T4+t3。其中,t3为第三预设时长,t3大于0;本示例中,第三预设时长以60分钟为例。The business logic processing module may indicate that the trigger condition of the time fence for leaving the scene of the destination station is: t=T4+t3. Wherein, t3 is the third preset duration, and t3 is greater than 0; in this example, the third preset duration takes 60 minutes as an example.
步骤306:情景感知模块检测到PUSH围栏、当前场景的地理围栏以及当前场景的保底时间围栏中任一围栏触发,则执行步骤307。Step 306: The situation awareness module detects that any one of the PUSH fence, the geo-fence of the current scene, and the guaranteed time fence of the current scene is triggered, and then step 307 is executed.
具体地说,情景感知模块在注册PUSH围栏后,该情景感知模块将实时监测PUSH围栏是否被触发。当前场景的保底时间围栏被注册后,该情景感知模块监测当前时间是否达到保底时间围栏的触发时间。Specifically, after the situation awareness module registers the PUSH fence, the situation awareness module will monitor in real time whether the PUSH fence is triggered. After the guaranteed time fence of the current scene is registered, the situation awareness module monitors whether the current time reaches the trigger time of the guaranteed time fence.
情景感知模块检测到当前时间到达地理围栏的生效时间,则情景感知模块实时检测经纬度值是否达到地理围栏的触发条件,若是达到触发条件,则情景感知模块确定检测到该地理围栏被触发。情景感知模块检测当前时间是否达到保底时间围栏的触发时间,当检测到当前时间达到保底时间围栏的触发时间后,则确定该保底时间围栏被触发。When the context awareness module detects that the current time reaches the effective time of the geo-fence, the context awareness module detects in real time whether the latitude and longitude value reaches the trigger condition of the geo-fence, and if the trigger condition is met, the context awareness module determines that the geo-fence is triggered. The situation awareness module detects whether the current time reaches the trigger time of the guaranteed time fence, and when it detects that the current time reaches the triggered time of the guaranteed time fence, it determines that the guaranteed time fence is triggered.
举例来说,情景感知模块接收到12306平台推送的消息,则该情景感知模块确定PUSH围栏触发。若注册的地理围栏的生效时间为T1,目的经纬度为(A,B),经纬度单位为度,当检测到时间t=T1时,情景感知模块开始检测地理位置变化,当检测到经纬度与目标经纬度一致时,则该情景感知模块确定检测到地理围栏触发。若保底时间围栏的触发时间为距离发车时间的时长小于或等于30分钟,则情景感知模块确定保底时间围栏触发。For example, when the context awareness module receives a message pushed by the 12306 platform, the context awareness module determines that the PUSH fence is triggered. If the effective time of the registered geo-fence is T1, the target latitude and longitude is (A, B), and the unit of latitude and longitude is degree, when the time t=T1 is detected, the situation awareness module starts to detect the change of geographical position, when the latitude and longitude of the target are detected When they are consistent, the situation awareness module determines that a geofence trigger is detected. If the trigger time of the guaranteed time fence is less than or equal to 30 minutes from the departure time, the situation awareness module determines that the guaranteed time fence is triggered.
情景感知模块检测到当前场景中任一围栏触发,或者检测到PUSH围栏触发,则执行步骤307。When the situation awareness module detects any fence trigger in the current scene, or detects a PUSH fence trigger, step 307 is executed.
步骤307:情景感知模块向业务逻辑处理模块指示当前场景的任一围栏或PUSH围栏触发。Step 307: The situation awareness module indicates any fence or PUSH fence trigger of the current scene to the business logic processing module.
步骤308:业务逻辑处理模块确定当前场景的任一围栏触发,或者确定获取到当前场景的PUSH消息。Step 308: The business logic processing module determines any fence trigger of the current scene, or determines to obtain the PUSH message of the current scene.
若业务逻辑处理模块接收到情景感知模块上报的PUSH围栏触发的指示,则从情景感知模块获取PUSH消息。该业务逻辑处理模块解析PUSH消息,获取当前场景的PUSH类型,查询解析的PUSH消息中是否存在当前场景的PUSH类型对应的消息,若是查询到当前场景的PUSH类型对应的消息,则该业务逻辑处理模块确定获取到当前场景的PUSH消息。若未查询到当前场景的PUSH类型对应的消息,则该业务逻辑处理模块确定未获取到当前场景的PUSH消息。例如,业务逻辑处理模块可以预先存储抵达出发站场景的PUSH类型的关键标识,若解析后的PUSH消息中存在抵达出发站场景的PUSH类型的关键标识,则确定获取到抵达出发站场景的PUSH消息。If the business logic processing module receives an indication of PUSH fence triggering reported by the context awareness module, it obtains a PUSH message from the context awareness module. The business logic processing module parses the PUSH message, obtains the PUSH type of the current scene, and queries whether there is a message corresponding to the PUSH type of the current scene in the parsed PUSH message. If the message corresponding to the PUSH type of the current scene is found, the business logic processing The module determines to obtain the PUSH message of the current scene. If no message corresponding to the PUSH type of the current scene is found, the business logic processing module determines that no PUSH message of the current scene has been obtained. For example, the business logic processing module can pre-store the key identifier of the PUSH type arriving at the departure station scene, and if there is a key identifier of the PUSH type arriving at the departure station scene in the parsed PUSH message, it is determined to obtain the PUSH message arriving at the departure station scene .
情景感知模块上报的当前场景的保底时间围栏触发的指示,该业务逻辑处理模块接收到该指示,则该业务逻辑处理模块确定当前场景的保底时间围栏触发。若业务逻辑处理模块接收到情景感知模块上报的当前场景的地理围栏触发,则确定当前场景的地理围栏触发。The business logic processing module receives the indication of the triggering of the guaranteed time fence of the current scene reported by the situation awareness module, and then the business logic processing module determines the triggering of the guaranteed time fence of the current scene. If the business logic processing module receives the geofence trigger of the current scene reported by the situation awareness module, it determines the geofence trigger of the current scene.
该步骤之后可以同时执行步骤309和步骤310。After this step, step 309 and step 310 may be executed simultaneously.
步骤309:业务逻辑处理模块向情景感知模块发送用于指示业务呈现模块显示提示信息的指示信息。Step 309: the service logic processing module sends instruction information for instructing the service presentation module to display prompt information to the context awareness module.
示例性地,该指示信息用于指示业务呈现模块显示当前场景的提示信息。业务逻辑处理模块确定每个场景对应的提示信息。可选地,抵达出发站场景的提示信息中可以包括火车票的预计出发时间和预计到达时间,出发地和目的地,车次信息,座位信息,检票口信息等。该抵达出发站场景的提示信息中还可以跳转链接,该跳转链接可以链接至12306平台中查看车票详情的页面。该抵达出发站场景的提示信息还可以包括跳转至退票页面的链接或者跳转至改签页面的链接等。Exemplarily, the instruction information is used to instruct the service presentation module to display the prompt information of the current scene. The business logic processing module determines the prompt information corresponding to each scene. Optionally, the prompt information at the scene of arriving at the departure station may include the estimated departure time and estimated arrival time of the train ticket, departure place and destination, train number information, seat information, ticket gate information, and the like. A jump link can also be included in the prompt message of the scene of arriving at the departure station, and the jump link can be linked to a page for viewing ticket details on the 12306 platform. The prompt information for the scene of arriving at the departure station may also include a link to a refund page or a link to a rebooking page.
可选地,行程中场景的提示信息中可以包括预计出发时间和预计到达时间,出发地和目的地,车次信息,座位信息,到站提醒的触发链接等。Optionally, the prompt information of the scene in the itinerary may include estimated departure time and estimated arrival time, departure place and destination, train number information, seat information, trigger link for arrival reminder, etc.
可选地,抵达目的站场景的提示信息中可以包括预计出发时间和预计到达时间,出发地和目的地,车次信息,座位信息,到站提醒信息(如显示“已到站”)等,该抵达目的站场景的提示信息还可以包括跳转至12306平台中查看车票详情页面的链接。Optionally, the prompt information of the scene of arriving at the destination station may include estimated departure time and estimated arrival time, place of departure and destination, train number information, seat information, arrival reminder information (such as displaying "arrived"), etc., the The prompt information for the scene of arriving at the destination station may also include a link to jump to the ticket details page on the 12306 platform.
可选地,离开目的站场景的提示信息可以包括预计出发时间和预计到达时间,出发地和目的地,车次信息,座位信息,离站提醒信息(如显示“已离站”)等。Optionally, the prompt information for leaving the destination station scene may include estimated departure time and estimated arrival time, departure place and destination, train number information, seat information, departure reminder information (such as displaying "has left the station"), etc.
本示例中,指示信息可以指示业务呈现模块将显示内容替换为当前场景的提示信息,例如,业务呈现模块在T1时刻的显示内容为信息A,业务逻辑处理模块的指示信息指示业务呈现模块将信息A替换为信息B,业务呈现模块在T2时刻显示信息B。该显示方式无需业务逻辑模块单独发送终止显示的终止指示。In this example, the instruction 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 T1 is information A, and the instruction information of the service logic processing module instructs the service presentation module to replace the information A is replaced by information B, and the service presentation module displays information B at time T2. This display mode does not require the business logic module to separately send a termination indication for terminating the display.
在一些实施例中,业务逻辑处理模块向业务呈现模块发送用于显示提示信息的指示信息,同时,该业务逻辑处理模块向业务呈现模块发送终止指示,该终止指示用于指示业务呈现模块终止显示上一次显示的提示信息。In some embodiments, the business logic processing module sends indication information for displaying prompt information to the business presentation module, and at the same time, the business logic processing module sends a termination indication to the business presentation module, and the termination indication is used to instruct the business presentation module to terminate displaying The last hint message displayed.
在另一些实施例中,业务逻辑处理模块可以设置显示时长阈值,若显示同一场景的提示信息的时长超出预设的显示时长阈值,该业务逻辑处理模块将指示业务呈现模块取消该场景的提示信息,例如,抵达出发站场景的提示信息显示了4小时,预设的显示时长阈值为4小时,当业务逻辑处理模块确定抵达出发站场景的提示信息显示时长超过显示时长阈值,则业务逻辑处理模块指示终止显示该抵达出发站场景的提示信息,业务呈现模块终止显示该抵达出发站场景的提示信息(即将该抵达出发站场景的提示信息从显示界面中移除)。In some other embodiments, the business logic processing module can set a display duration threshold, and if the display duration of the prompt information of the same scene exceeds the preset display duration threshold, the business logic processing module will instruct the service presentation module to cancel the prompt information of the scene , for example, the prompt information of the scene of arriving at the departure station is displayed for 4 hours, and the preset display duration threshold is 4 hours. When the business logic processing module determines that the display duration of the prompt information of the scene of arriving at the departure station exceeds the display duration threshold, the business logic processing module Instruct to stop displaying the prompt information of the scene of arriving at the departure station, and the service presentation module stops displaying the prompt information of the scene of arriving at the departure station (that is, remove the prompt information of the scene of arriving at the departure station from the display interface).
步骤310:解除当前场景的指定围栏或者解除当前场景的指定围栏以及忽略当前场景的PUSH消息。Step 310: Release the specified fence of the current scene or release the specified fence of the current scene and ignore the PUSH message of the current scene.
示例性地,当前场景的指定围栏可以为当前场景的保底时间围栏,或者,当前场景的地理围栏,或者,当前场景的保底时间围栏和当前场景的地理围栏。Exemplarily, the specified fence of the current scene may be the guaranteed time fence of the current scene, or the geo-fence of the current scene, or the guaranteed time fence of the current scene and the geo-fence of the current scene.
一个示例中,若业务逻辑处理模块确定获取到当前场景的PUSH消息,该业务逻辑处理模块指示情景感知模块解除当前场景的保底时间围栏和当前场景的地理围栏。该情景感知模块响应于业务逻辑处理模块的指示,解除当前场景的保底时间围栏和当前场景的地理围栏。In an example, if the business logic processing module determines that the PUSH message of the current scene has been obtained, the business logic processing module instructs the situation awareness module to release the guaranteed time fence of the current scene and the geofence of the current scene. In response to the instruction of the business logic processing module, the situation awareness module releases the guaranteed time fence of the current scene and the geographical fence of the current scene.
举例来说,若业务逻辑模块确定获取到抵达出发站场景的PUSH消息,该业务逻辑处理模块指示情景感知模块解除抵达出发站场景的保底时间围栏以及抵达出发站场景的地理围栏。情景感知模块依然检测其余场景的保底时间围栏是否触发以及检测其余场景的地理围栏是否触发。For example, if the business logic module determines to obtain a PUSH message arriving at the departure station scene, the business logic processing module instructs the situation awareness module to release the guaranteed time fence for the departure station scene and the geofence for the departure station scene. The situation awareness module still detects whether the guaranteed time fences of other scenes are triggered and whether the geofences of other scenes are triggered.
在另一个示例中,若业务逻辑处理模块确定当前场景的地理围栏触发,该业务逻辑处理模块指示情景感知模块解除当前场景的保底时间围栏。该业务逻辑处理模块在下一次确定获取到当前场景的PUSH消息后,忽略当前场景的PUSH消息,即业务逻辑处理模块取消对当前场景的PUSH消息的操作。In another example, if the business logic processing module determines that the geofence of the current scene is triggered, the business logic processing module instructs the situation awareness module to release the guaranteed time fence of the current scene. The business logic processing module ignores the PUSH message of the current scene after determining to obtain the PUSH message of the current scene next time, that is, the business logic processing module cancels the operation on the PUSH message of the current scene.
举例来说,若业务逻辑模块在T1时刻确定抵达出发站场景的地理围栏触发,该业务逻辑处理模块指示情景感知模块解除抵达出发站场景的保底时间围栏。由情景感知模块解除抵达出发站场景的保底时间围栏。情景感知模块依然检测其余场景的保底时间围栏是否触发。若经过30S后该情景感知模块检测到PUSH围栏触发,业务逻辑处理模块接收到情景感知模块上报的PUSH围栏触发的事件,业务逻辑处理模块解析该PUSH消息,确定获取到抵达出发站场景的PUSH消息。该业务逻辑处理模块将忽略该抵达出发站场景的PUSH消息。另一个示例中,若在抵达出发站场景下该情景感知模块未检测到PUSH围栏触发,则业务逻辑处理模块不执行忽略抵达出发站场景的PUSH消息的操作。For example, if the business logic module determines at time T1 that the geo-fence of the scene arriving at the departure station is triggered, the business logic processing module instructs the situation awareness module to release the guaranteed time fence of the scene arriving at the departure station. The situational awareness module releases the guaranteed time fence for the scene of arriving at the departure station. The situation awareness module still detects whether the guaranteed time fences of other scenes are triggered. If the context awareness module detects the triggering of the PUSH fence after 30 seconds, the business logic processing module receives the event triggered by the PUSH fence reported by the context awareness module, and the business logic processing module analyzes the PUSH message to determine that the PUSH message arriving at the scene of the departure station has been obtained . The business logic processing module will ignore the PUSH message arriving at the departure station scene. In another example, if the context awareness module does not detect the triggering of the PUSH fence in the scene of arriving at the departure station, the business logic processing module does not perform the operation of ignoring the PUSH message in the scene of arriving at the departure station.
在另一个示例中,若业务逻辑处理模块确定当前场景的保底时间围栏触发,该业务逻辑处理模块指示情景感知模块解除当前场景的地理围栏。该业务逻辑处理模块在下一次确定获取到当前场景的PUSH消息后,忽略下一次获取的当前场景的PUSH消息,即业务逻辑处理模块取消对当前场景的PUSH消息进行的操作。In another example, if the business logic processing module determines that the guaranteed time fence of the current scene is triggered, the business logic processing module instructs the situation awareness module to release the geographical fence of the current scene. After the business logic processing module determines to obtain the PUSH message of the current scene next time, it ignores the next obtained PUSH message of the current scene, that is, the business logic processing module cancels the operation performed on the PUSH message of the current scene.
举例来说,若业务逻辑模块在T2时刻确定抵达出发站场景的保底时间围栏触发,该业务逻辑处理模块指示情景感知模块解除抵达出发站场景的地理围栏。由情景感知模块解除抵达出发站场景的地理围栏。情景感知模块依监测其余场景的地理围栏是否触发。若经过30S后该情景感知模块检测到PUSH围栏触发,业务逻辑处理模块接收到情景感知模块上报的PUSH围栏触发的事件,业务逻辑处理模块解析该PUSH消息,确定获取到抵达出发站场景的PUSH消息。该业务逻辑处理模块将忽略该抵达出发站场景的PUSH消息。另一个示例中,若在抵达出发站场景下该情景感知模块未检测到PUSH围栏触发,则业务逻辑处理模块不执行忽略抵达出发站场景的PUSH消息的操作。For example, if the business logic module determines at time T2 that the guaranteed time fence of the scene arriving at the departure station is triggered, the business logic processing module instructs the situation awareness module to release the geo-fence of the scene arriving at the departure station. The geo-fence of the scene arriving at the departure station is lifted by the situation awareness module. The situation awareness module monitors whether the geo-fences of other scenes are triggered. If the context awareness module detects the triggering of the PUSH fence after 30 seconds, the business logic processing module receives the event triggered by the PUSH fence reported by the context awareness module, and the business logic processing module analyzes the PUSH message to determine that the PUSH message arriving at the scene of the departure station has been obtained . The business logic processing module will ignore the PUSH message arriving at the departure station scene. In another example, if the context awareness module does not detect the triggering of the PUSH fence in the scene of arriving at the departure station, the business logic processing module does not perform the operation of ignoring the PUSH message in the scene of arriving at the departure station.
本示例中,每个场景中的若有一个围栏触发,可以解注册该场景下的其他围栏或忽略下一次获取的当前场景的PUSH消息,减少不必要的功耗。In this example, if a fence is triggered in each scene, you can unregister other fences in this scene or ignore the PUSH message of the current scene to be acquired next time to reduce unnecessary power consumption.
步骤311:业务呈现模块显示提示信息。Step 311: The service presentation module displays prompt information.
示例性地,业务呈现模块接收到业务逻辑处理模块发送的提示信息,显示当前场景的提示信息,显示的方式可以是通过卡片方式显示,如在桌面显示卡片或者在负一屏显示卡片。显示方式还可以包括通知的方式显示,如:锁屏通知;语音显示提示信息的方式;或者通过不同震动频率显示不同的提示信息。Exemplarily, the service presentation module receives the prompt information sent by the business logic processing module, and displays the prompt information of the current scene, and the display method may be displayed in the form of a card, such as displaying a card on the desktop or displaying a card on a negative screen. The display mode may also include notification display, such as: lock screen notification; voice display prompt information; or display different prompt information through different vibration frequencies.
需要说明的是,步骤311与步骤310之间不存在先后顺序,业务呈现模块接收到指示信息(指示信息包括提示信息),即可显示提示信息。It should be noted that there is no sequence between step 311 and step 310, and the service presentation module can display the prompt information after receiving the indication information (the indication information includes prompt information).
本示例中显示方式可以包括卡片和通知的方式,即业务呈现模块可以同时在桌面显示卡片、负一屏显示卡片以及通知的方式显示提示信息。同时采用多种方式显示提示信息,可以增加提示信息暴露的概率,从而增加用户查看到提示信息的概率,避免出现用户漏看提示信息而错过行程的问题。In this example, the display methods may include card and notification methods, that is, the service presentation module may simultaneously display prompt information by displaying cards on the desktop, displaying cards on a negative screen, and notification. At the same time, displaying the prompt information in multiple ways can increase the probability of the prompt information being exposed, thereby increasing the probability of the user viewing the prompt information, and avoiding the problem that the user misses the itinerary due to missing the prompt information.
本申请中,若仅注册一个维度的围栏(如仅注册地理围栏),由于手机获取当前经纬度信息受到环境影响大,情景感知模块获得的地理位置信息可能不准确,则会导致错误地进行出行提醒或漏提醒的问题,同理单一使用时间围栏或单一使用PUSH围栏,都会存在漏提醒或误提醒的问题。本示例中,业务逻辑处理模块根据行程数据,向情景感知模块注册多个不同功能(维度)的围栏,如PUSH围栏、各场景的地理围栏以及各场景的保底时间围栏。情景感知模块同时对三个不同维度的信息进行监测,使得在不同场景下各个维度的信息相互弥补,避免因一个信息监测不准确而导致不能及时为用户进行出行提醒的问题。In this application, if only one dimension of the fence is registered (for example, only the geofence is registered), the current latitude and longitude information obtained by the mobile phone is greatly affected by the environment, and the geographical location information obtained by the situation awareness module may be inaccurate, which will lead to wrong travel reminders Or the problem of missed reminders, similarly, the single use of the time fence or the single use of the PUSH fence will cause the problem of missed reminders or false reminders. In this example, the business logic processing module registers multiple fences with different functions (dimensions) with the context awareness module based on the travel data, such as the PUSH fence, the geographic fence of each scene, and the guaranteed time fence of each scene. The situational awareness module monitors the information of three different dimensions at the same time, so that the information of each dimension complements each other in different scenarios, and avoids the problem that the travel reminder cannot be given to the user in time due to inaccurate monitoring of one information.
下面结合图4分别说明当前场景的任一围栏触发的情况或确定获取到当前场景的PUSH消息的情况。The situation that any fence of the current scene is triggered or the situation that the PUSH message of the current scene is determined to be obtained will be described below in conjunction with FIG. 4 .
情况1:当前场景的时间围栏触发的场景。Case 1: A scene triggered by the time fence of the current scene.
步骤306a:情景感知模块检测到当前场景的保底时间围栏触发。Step 306a: The situation awareness module detects that the guaranteed time fence of the current scene is triggered.
该步骤的具体过程与步骤306中的相关描述类似,可以参考步骤306中的相关描述,此处将不再进行赘述。The specific process 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 repeated here.
步骤307a:情景感知模块向业务逻辑处理模块指示当前场景的保底时间围栏触发。Step 307a: The situation awareness module indicates to the business logic processing module the triggering of the guaranteed time fence of the current scene.
步骤308a:业务逻辑处理模块确定当前场景的保底时间围栏触发。Step 308a: The business logic processing module determines the triggering of the guaranteed time fence of the current scene.
若业务逻辑处理模块接收到情景感知模块上报的当前场景的保底时间围栏触发的指示,则该业务逻辑处理模块确定当前场景的保底时间围栏触发。If the business logic processing module receives the indication of the triggering of the guaranteed time fence of the current scene reported by the situation awareness module, the business logic processing module determines the triggering of the guaranteed time fence of the current scene.
步骤309a:业务逻辑处理模块向业务呈现模块发送用于指示业务呈现模块显示提示信息的指示信息。Step 309a: the service logic processing module sends instruction information for instructing the service presentation module to display the prompt information to the service presentation module.
步骤310a1:业务逻辑处理模块向情景感知模块发送用于指示解除地理围栏的解除指示。Step 310a1: The business logic processing module sends a release instruction for instructing release of the geographical fence to the context awareness module.
业务逻辑处理模块确定当前场景的保底时间围栏触发,可以通过解除当前场景的地理围栏方式减小手机的功耗。The business logic processing module determines the triggering of the guaranteed time fence of the current scene, and can reduce the power consumption of the mobile phone by releasing the geographical fence of the current scene.
步骤310a2:情景感知模块解除当前场景的地理围栏。Step 310a2: The situation awareness module lifts the geographic fence of the current scene.
情景感知模块可以通过解注册的方式解除当前场景的地理围栏。The situation awareness module can remove the geographic fence of the current scene by unregistering.
步骤311a:业务呈现模块显示提示信息。Step 311a: The service presentation module displays prompt information.
该步骤可以参照步骤311的相关描述,此处将不再进行赘述。For this step, reference may be made to the relevant description of step 311 , which will not be repeated here.
步骤312a:情景感知模块检测到PUSH围栏触发。Step 312a: The context awareness module detects that the PUSH fence is triggered.
本示例中,在显示了当前场景的提示信息后,12306平台向服务平台推送PUSH消息,服务平台可以为用户服务平台,本示例中服务平台以荣耀平台为例。用户的荣耀账号与12306账号存在授权关系,12306平台向荣耀平台推送PUSH消息,荣耀平台接收到该PUSH消息后,向与该荣耀账号对应手机的情景感知模块发送PUSH消息。该情景感知接收到该PUSH消息,PUSH围栏触发。In this example, after displaying the prompt information of the current scene, the 12306 platform pushes a PUSH message to the service platform, and the service platform can serve the platform for users. In this example, the service platform takes the Honor platform as an example. There is an authorization relationship between the user's Honor account and the 12306 account. The 12306 platform pushes a PUSH message to the Honor platform. After receiving the PUSH message, the Honor platform sends the PUSH message to the context awareness module of the mobile phone corresponding to the Honor account. The situation awareness receives the PUSH message, and the PUSH fence is triggered.
步骤313a:情景感知模块向业务逻辑处理模块指示PUSH围栏触发。Step 313a: The context awareness module indicates the triggering of the PUSH fence to the business logic processing module.
步骤314a:业务逻辑处理模块确定获取到当前场景的PUSH消息。Step 314a: The business logic processing module determines that the PUSH message of the current scene has been obtained.
该步骤与步骤308类似,业务逻辑处理模块解析当前场景的PUSH消息。该业务逻辑处理模块查询该PUSH消息中是否存在当前场景的PUSH消息,若确定存在,则确定获取到该当前场景的PUSH消息。This step is similar to step 308, the business logic processing module parses the PUSH message of the current scene. The business logic processing module inquires whether there is a PUSH message of the current scene in the PUSH message, and if it is determined that there is, it determines to obtain the PUSH message of the current scene.
步骤310a3:业务逻辑处理模块忽略当前场景的PUSH消息。Step 310a3: The business logic processing module ignores the PUSH message of the current scene.
由于在步骤308a已确定当前场景的保底时间围栏触发,且在步骤311中显示了当前场景的提示信息,业务逻辑处理模块忽略下一次接收的当前场景的PUSH消息,也即业务逻辑处理模块不对下一次接收的当前场景的PUSH消息进行处理。Since it has been determined in step 308a that the guaranteed time fence of the current scene is triggered, and the prompt information of the current scene is displayed in step 311, the business logic processing module ignores the next received PUSH message of the current scene, that is, the business logic processing module is wrong. The PUSH message of the current scene received once is processed.
举例来说,若当前场景为抵达出发站场景,该抵达出发站场景的保底时间围栏的触发条件为:T1-t的差值小于等于t1,其中,t为检测时间,t1为第一预设时长,本示例中第一预设时长以30分钟为例。若情景感知模块检测到T1-t的差值小于等于30分钟,抵达出发站场景的保底时间围栏被触发,该情景感知模块向业务逻辑处理模块上报抵达出发站场景的保底时间围栏触发。业务逻辑处理模块指示业务呈现模块显示抵达出发站场景的提示信息。业务呈现模块在T2时刻显示抵达出发站场景的提示信息。在T2+t5时刻情景感知模块接收到荣耀平台发送的PUSH消息,触发PUSH围栏。该情景感知模块向业务逻辑处理模块上报PUSH围栏触发,如t5=1min。业务逻辑处理模块解析该PUSH消息,且从该PUSH消息中查询到抵达出发站场景的消息。该业务逻辑处理模块确定获取到抵达出发站场景的PUSH消息。该业务逻辑处理模块忽略该抵达出发场景的PUSH消息,不对该抵达出发站场景的PUSH消息进行处理。若业务逻辑处理模块确定获取的是行程中场景的PUSH消息,则指示手机所处环境发生变更,则可以按照情况2中的步骤进行处理。For example, if the current scene is the scene of arriving at the departure station, the trigger condition of the guaranteed time fence of the scene of arriving at the departure station is: the difference between T1-t is less than or equal to t1, where t is the detection time, and t1 is the first preset Duration, the first preset duration in this example is 30 minutes as an example. If the situation awareness module detects that the difference between T1-t is less than or equal to 30 minutes, the guaranteed time fence of the scene of arriving at the departure station is triggered, and the situation awareness module reports to the business logic processing module that the guaranteed time fence of the scene of arriving at the departure station is triggered. The business logic processing module instructs the business presentation module to display the prompt information of the scene of arriving at the departure station. The service presentation module displays the prompt information of the scene of arriving at the departure station at time T2. At T2+t5, the situation awareness module receives the PUSH message sent by the Honor platform and triggers the PUSH fence. The situation awareness module reports the PUSH fence trigger to the business logic processing module, such as t5=1min. The business logic processing module parses the PUSH message, and queries the message arriving at the departure station scene from the PUSH message. The business logic processing module determines that the PUSH message arriving at the scene of the departure station has been obtained. 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 station scene. If the business logic processing module determines that the obtained PUSH message is a scene in the itinerary, it indicates that the environment of the mobile phone has changed, and the processing can be performed according to the steps in
本示例中,情景感知模块依次检测到多个围栏触发后,业务处理模块按照围栏触发时间的先后顺序,依次针对每个触发的围栏进行相应的处理。In this example, after the situation awareness module detects that multiple fences are triggered in sequence, the business processing module performs corresponding processing on each triggered fence in sequence according to the sequence of fence triggering times.
在一些实施例中,若情景感知模块未检测到PUSH围栏触发,则步骤313a、步骤314a、步骤310a3均不会执行。In some embodiments, if the context awareness module does not detect the triggering of the PUSH fence, then step 313a, step 314a, and step 310a3 will not be executed.
情况2:PUSH围栏触发的场景。Case 2: The scene triggered by PUSH fence.
步骤304b:12306平台向服务平台推送PUSH消息。Step 304b: 12306 The platform pushes a PUSH message to the service platform.
示例性地,服务平台可以为用户服务平台,本示例中服务平台以荣耀平台为例。用户的荣耀账号与12306账号存在授权关系,12306平台根据授权关系向荣耀平台推送PUSH消息。Exemplarily, the service platform may be a user service platform, and the service platform in this example takes the Glory platform as an example. There is an authorization relationship between the user's Honor account and the 12306 account, and the 12306 platform pushes PUSH messages to the Honor platform according to the authorization relationship.
步骤305b:服务平台向情景感知模块发送PUSH消息。Step 305b: the service platform sends a PUSH message to the context awareness module.
示例性地,荣耀平台接收到该PUSH消息后,查询与荣耀账号绑定的手机,向与该荣耀账号绑定的手机的情景感知模块发送PUSH消息。Exemplarily, after receiving the PUSH message, the Honor platform queries the mobile phone bound with the Honor account, and sends the PUSH message to the context awareness module of the mobile phone bound with the Honor account.
步骤306b:情景感知模块检测到PUSH围栏触发。Step 306b: The context awareness module detects that the PUSH fence is triggered.
该情景感知接收到该PUSH消息,触发PUSH围栏。The situation awareness triggers the PUSH fence after receiving the PUSH message.
步骤307b:情景感知模块向业务逻辑处理模块指示PUSH围栏触发。Step 307b: The context awareness module indicates the triggering of the PUSH fence to the business logic processing module.
该步骤的具体过程与步骤307中的相关描述类似,可以参考步骤307中的相关描述,此处将不再进行赘述。The specific process of this step is similar to the relevant description in step 307, and reference may be made to the relevant description in step 307, which will not be repeated here.
步骤308b:业务逻辑处理模块确定获取到当前场景的PUSH消息。Step 308b: The business logic processing module determines that the PUSH message of the current scene has been obtained.
该步骤的具体过程与步骤308中的相关描述类似,可以参考步骤308中的相关描述,此处将不再进行赘述。The specific process of this step is similar to the relevant description in step 308, and reference may be made to the relevant description in step 308, which will not be repeated here.
步骤309b:业务逻辑处理模块向业务呈现模块发送用于指示业务呈现模块显示提示信息的指示信息。Step 309b: The service logic processing module sends instruction information for instructing the service presentation module to display the prompt information to the service presentation module.
步骤310b1:业务逻辑处理模块向情景感知模块发送用于指示解除当前场景的地理围栏以及当前场景的保底时间围栏的指示信息。Step 310b1: The business logic processing module sends instruction information for instructing to remove the geographic fence of the current scene and the guaranteed time fence of the current scene to the situation awareness module.
示例性地,业务逻辑处理模块确定获取到当前场景的PUSH消息,业务逻辑处理模块可以向情景感知模块指示解除(即解注册)当前场景的地理围栏和当前场景的保底时间围栏,情景感知模块解注册当前场景的地理围栏和当前场景的保底时间围栏,减少手机的功耗。Exemplarily, when the business logic processing module determines that the PUSH message of the current scene has been obtained, the business logic processing module may instruct the situation awareness module to cancel (that is, unregister) the geographic fence of the current scene and the guaranteed time fence of the current scene, and the situation awareness module resolves Register the geofence of the current scene and the guaranteed time fence of the current scene to reduce the power consumption of the mobile phone.
步骤310b2:情景感知模块解除当前场景的地理围栏和当前场景的保底时间围栏。Step 310b2: The situation awareness module removes the geographic fence of the current scene and the guaranteed time fence of the current scene.
情景感知模块仅解除当前场景的地理围栏和当前场景的时间围栏。保留其余场景的地理围栏和其余场景的保底时间围栏。The context awareness module only removes the geo-fence of the current scene and the time fence of the current scene. Keep the geofences for the rest of the scenes and the floor time fences for the rest of the scenes.
步骤311b:业务呈现模块显示当前场景的提示信息。Step 311b: The service presentation module displays the prompt information of the current scene.
该步骤的具体过程与步骤311中的相关描述类似,可以参考步骤311中的相关描述,此处将不再进行赘述。The specific process of this step is similar to the relevant description in step 311 , and reference may be made to the relevant description in step 311 , which will not be repeated here.
情况3:当前场景的地理围栏触发的场景。Case 3: A scene triggered by the geofence of the current scene.
步骤306c:情景感知模块检测到当前场景的地理围栏触发。Step 306c: The situation awareness module detects the geofence trigger of the current scene.
步骤307c:情景感知模块向业务逻辑处理模块指示当前场景的地理围栏触发。Step 307c: The situation awareness module indicates the geofence trigger of the current scene to the business logic processing module.
步骤308c:业务逻辑处理模块确定当前场景的地理围栏触发。Step 308c: The business logic processing module determines the geofence trigger of the current scene.
步骤309c:业务逻辑处理模块向业务呈现模块发送用于指示业务呈现模块显示提示信息的指示信息。Step 309c: the service logic processing module sends instruction information for instructing the service presentation module to display the prompt information to the service presentation module.
步骤310c1:业务逻辑处理模块向情景感知模块发送用于指示解除保底时间围栏的解除指示。Step 310c1: The business logic processing module sends a release instruction for instructing to release the guarantee time fence to the situation awareness module.
步骤310c2:情景感知模块解除当前场景的保底时间围栏。Step 310c2: The situation awareness module releases the guaranteed time fence of the current scene.
步骤311c:业务呈现模块显示提示信息。Step 311c: The service presentation module displays prompt information.
步骤312c:情景感知模块检测到PUSH围栏触发。Step 312c: The context awareness module detects that the PUSH fence is triggered.
步骤313c:情景感知模块向业务逻辑处理模块指示PUSH围栏触发。Step 313c: The situation awareness module indicates the triggering of the PUSH fence to the business logic processing module.
步骤314c:业务逻辑处理模块确定获取到当前场景的PUSH消息。Step 314c: The business logic processing module determines that the PUSH message of the current scene has been obtained.
步骤310c3:业务逻辑处理模块忽略当前场景的PUSH消息。Step 310c3: The business logic processing module ignores the PUSH message of the current scene.
情况3与情况1类似,情况3中各步骤可以参照情况1中各步骤,此处将不再进行赘述。与情况1类似,在一些实施例中,若情景感知模块未检测到PUSH围栏触发,则步骤313c、步骤314c、步骤310c3均不会执行。Case 3 is similar to
下面结合图5说明显示各个场景的提示信息的过程。The process of displaying the prompt information of each scene will be described below with reference to FIG. 5 .
示例性地,以火车出行为例,第一应用可以为铁路12306为例,购票应用的服务器以12306的服务器为例,服务平台以荣耀平台为例。手机的业务逻辑处理模块执行如图3所示的步骤301,请求行程数据。12306平台向手机的业务逻辑处理模块返回行程数据。用户的行程数据中可以包括预计出发时间(如图5中(1)所示的5月4日9:20)、预计到达时间(如图5中(1)所示的5月6日9:45)、出发站经纬度信息、目的站经纬度信息等。业务逻辑处理模块向情景感知模块注册PUSH围栏、各场景的地理围栏以及各场景的保底时间围栏。表1为本示例中列举的火车出行中各个场景以及各个场景的地理围栏的触发条件、保底时间围栏的触发条件以及各场景的PUSH消息。Exemplarily, taking train travel as an example, the first application may be Railway 12306 as an example, the server of ticketing application may be the server of 12306, and the service platform may be 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 travel data to the business logic processing module of the mobile phone. The user's itinerary data can include the estimated departure time (9:20 on May 4th as shown in (1) in Figure 5), the estimated arrival time (9:20 on May 6th as shown in (1) in Figure 5 ) 45), latitude and longitude information of departure station, latitude and longitude information of destination station, etc. The business logic processing module registers the PUSH fence, the geographical fence of each scene, and the guaranteed time fence of each scene with the situation awareness module. Table 1 lists the various scenarios in the train travel listed in this example, the triggering conditions of the geofences of each scenario, the triggering conditions of the guaranteed time fence, and the PUSH messages of each scenario.
表1Table 1
表1中t为检测时间,T1为预计出发时间,T4为预计到达时间,t1为第一预设时长(如t1=30min),t2为12306平台提供的延时时长,如10min,t3为第三预设时长(如t3=60min)。In Table 1, t is the detection time, T1 is the estimated departure time, T4 is the estimated arrival time, t1 is the first preset time length (such as t1=30min), t2 is the delay time provided by the 12306 platform, such as 10min, and t3 is the first preset time length (such as t1=30min). Three preset durations (such as t3=60min).
业务逻辑处理模块可以按照表1中触发条件设置各场景的地理围栏和各场景的保底时间围栏。其中,业务逻辑处理模块可以指示抵达出发站场景的地理围栏的生效时间为距离预计出发时间前2小时,业务逻辑处理模块可以指示行程中地理围栏的生效时间也为距离预计出发时间前2小时。当情景感知模块检测到时间达到5月4日7:20,情景感知模块开始检测抵达出发站场景的地理围栏是否触发以及检测行程中地理围栏是否触发。The business logic processing module can set the geo-fence of each scene and the guaranteed time fence of each scene according to the trigger conditions in Table 1. Among them, the business logic processing module can indicate that the effective time of the geo-fence in the scene of arriving at the departure station is 2 hours before the expected departure time, and the business logic processing module can indicate that the effective time of the geo-fence in the itinerary is also 2 hours before the expected departure time. When the situational awareness module detects that the time reaches 7:20 on May 4th, the situational awareness module starts to detect whether the geofence of the scene arriving at the departure station is triggered and whether the geofence is triggered during the journey.
若情景感知模块在5月4日8:20检测到手机的经纬度与出发站经纬度一致,该抵达出发站场景的地理围栏触发,即情景感知模块检测到该抵达出发站场景的地理围栏触发。手机各模块按照图4中情况3的步骤执行步骤307c~步骤311c。业务呈现模块以卡片的形式显示抵达出发站的提示信息。如图5中(1)所示,桌面界面401上显示了火车出行中抵达出发站场景的卡片402,该卡片402中显示有抵达出发站的提示信息,如预计出发时间,预计到达时间,车厢座位号,目的地,检票口信息以及控件4021,点击该控件4021,可以跳转至12306应用中的车票详情页面。可选地,本示例中未执行步骤312c~步骤310a3。If the situation awareness module detects that the latitude and longitude of the mobile phone is consistent with the latitude and longitude of the departure station at 8:20 on May 4, the geofence of the scene arriving at the departure station is triggered, that is, the situation awareness module detects that the geofence of the scene arriving at the departure station is triggered. Each module of the mobile phone executes step 307c to step 311c according to the steps in case 3 in FIG. 4 . The business presentation module displays the prompt information of arriving at the departure station in the form of cards. As shown in (1) in Figure 5, the
在一个示例中,业务逻辑处理模块可以指示显示卡片402的时长,若确定卡片402显示时长超出显示时长阈值,则业务逻辑处理模块指示业务呈现模块取消显示该卡片402。In an example, the service logic processing module may instruct the display duration of the
当情景感知模块检测到PUSH围栏触发(如收到行程中的PUSH消息)。手机各模块按照图4中情况2的各步骤执行步骤307b~步骤311b。当前场景为行程中,该业务呈现模块显示如图5的(2)所示,桌面界面403上显示了火车出行中行程中的场景的卡片404,该卡片404中显示有行程信息,如预计出发时间,预计到达时间,车厢座位号,目的地,控件4041以及控件4042,若检测到点击该控件4041的操作,可以跳转至12306应用中的车票详情页面。若检测到点击控件4042的操作,可以订阅到站提醒的功能。When the context awareness module detects that the PUSH fence is triggered (such as receiving a PUSH message in the itinerary). Each module of the mobile phone executes step 307b to step 311b according to the steps of
当情景感知模块检测到保底时间围栏触发(如时间达到5月6日9:45)。手机各模块按照图4中情况1的各步骤执行步骤307a~步骤311a,本示例中,情景感知模块未检测到PUSH围栏触发,即步骤312a、步骤313a,步骤314a以及步骤310a3均不执行。该业务呈现模块显示如图5的(3)所示的提示信息,桌面界面405上显示火车出行中抵达目的站的场景的卡片406,该卡片406中显示有抵达目的站的提示信息,如预计出发时间,预计到达时间,车厢座位号,目的地,控件4061以及已到站的信息,若检测到点击该控件4061的操作,可以跳转至12306应用中的车票详情页面。When the situation awareness module detects that the guaranteed time fence triggers (for example, the time reaches 9:45 on May 6). Each module of the mobile phone executes steps 307a to 311a according to the steps in
若情景感知模块在5月6日10:20检测到手机的经纬度与目的站经纬度一致,该离开目的站场景的地理围栏触发,即情景感知模块检测到该离开目的站场景的地理围栏触发。手机各模块按照图4中情况3的步骤执行步骤307c~步骤311c。业务呈现模块以卡片的形式显示离开目的站的提示信息。该提示信息可以以通知的形式显示。图5中未示出离开目的站场景的提示信息。If the situation awareness module detects that the latitude and longitude of the mobile phone is consistent with the latitude and longitude of the destination station at 10:20 on May 6, the geofence of the scene leaving the destination station is triggered, that is, the situation perception module detects that the geofence of the scene leaving the destination station is triggered. Each module of the mobile phone executes step 307c to step 311c according to the steps in case 3 in FIG. 4 . The service presentation module displays the prompt information of leaving the destination station in the form of a card. The prompt information may be displayed in the form of a notification. The prompt information for leaving the scene of the destination station is not shown in FIG. 5 .
可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。It can be understood that, in order to realize the above functions, the electronic device includes hardware and/or software modules corresponding to each function. Combining the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions in combination with the embodiments for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的出行提醒的方法。存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。This embodiment also provides a computer storage medium, the computer storage medium stores computer instructions, and when the computer instructions are run on the electronic device, the electronic device is made to perform the steps of the above-mentioned related methods to realize the travel reminder method in the above-mentioned embodiment . The storage medium includes: U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk, and various media that can store program codes.
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的出行提醒的方法。This embodiment also provides a computer program product, which, when running on a computer, causes the computer to execute the above related steps, so as to realize the travel reminder method in the above embodiment.
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Wherein, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is all used to execute the corresponding method provided above, therefore, the beneficial effects it can achieve can refer to the corresponding method provided above The beneficial effects in the method will not be repeated here.
本申请各个实施例的任意内容,以及同一实施例的任意内容,均可以自由组合。对上述内容的任意组合均在本申请的范围之内。Any content of each embodiment of the present application, as well as any content of the same embodiment, can be freely combined. Any combination of the above contents is within the scope of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.
Claims (17)
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)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116709501B (en) * | 2022-10-26 | 2024-09-13 | 荣耀终端有限公司 | Service scene identification method, electronic equipment and storage medium |
| CN116708544B (en) * | 2022-10-26 | 2024-07-23 | 荣耀终端有限公司 | Function pushing method and device |
Citations (1)
| 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)
| 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 |
| CN112665607B (en) * | 2020-11-26 | 2024-11-26 | 惠州华阳通用电子有限公司 | Event reminder 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 device and computer-readable storage medium |
-
2021
- 2021-12-24 CN CN202111604979.XA patent/CN115022459B/en active Active
Patent Citations (1)
| 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 |
|---|---|---|
| US11909906B2 (en) | Method and apparatus for pushing notification, mobile terminal, and graphical user interface | |
| US12051018B2 (en) | Computing system implementing a driver selection process based on device location | |
| CN115022943B (en) | Method for locating geographic location and electronic device | |
| CN115022459B (en) | Travel reminding method and electronic equipment | |
| US10085121B1 (en) | Lost device detection using geospatial location data | |
| KR20190046960A (en) | A method, device and mobile terminal for associating a notification message | |
| CN114374764B (en) | Subway trip reminding method and electronic equipment | |
| WO2021098866A1 (en) | Method and system for sending prompt information | |
| CN115018435B (en) | Travel reminding method and electronic equipment | |
| CN115018437B (en) | Travel reminder method and electronic device | |
| CN115038053B (en) | Method and electronic device for travel reminder | |
| CN116405456B (en) | Travel reminder method and electronic device | |
| EP4239540B1 (en) | Travel prompting method and apparatus | |
| CN115016713B (en) | Travel event subscription method and electronic equipment | |
| CN115018436B (en) | Travel reminder methods and electronic devices | |
| CN115034733B (en) | Travel reminding method and electronic equipment | |
| CN114550417A (en) | Disaster early warning method, terminal device and storage medium | |
| US20220042811A1 (en) | Method and server | |
| JP2021026480A (en) | Vehicle terminal, route presentation method and program |
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 | ||
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |