CN115033308A - Subway trip detection method and electronic equipment - Google Patents

Subway trip detection method and electronic equipment Download PDF

Info

Publication number
CN115033308A
CN115033308A CN202111457123.4A CN202111457123A CN115033308A CN 115033308 A CN115033308 A CN 115033308A CN 202111457123 A CN202111457123 A CN 202111457123A CN 115033308 A CN115033308 A CN 115033308A
Authority
CN
China
Prior art keywords
subway
code
card
station
fence
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.)
Granted
Application number
CN202111457123.4A
Other languages
Chinese (zh)
Other versions
CN115033308B (en
Inventor
刘英龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111457123.4A priority Critical patent/CN115033308B/en
Publication of CN115033308A publication Critical patent/CN115033308A/en
Application granted granted Critical
Publication of CN115033308B publication Critical patent/CN115033308B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07BTICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
    • G07B11/00Apparatus for validating or cancelling issued tickets
    • G07B11/11Apparatus for validating or cancelling issued tickets for cancelling tickets
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a subway trip detection method and electronic equipment, wherein the method comprises the following steps: if the electronic equipment detects that the user takes the subway to arrive at the subway station, the motion state of the user is switched to a walking state, and the electronic equipment can pop up the riding state card. If the electronic equipment detects that the user does not use the subway riding code for a plurality of times in the subway station for code swiping, the electronic equipment can inhibit the display of the subway riding card of the subway station so as to avoid disturbance to the user in a transfer scene and improve the user experience.

Description

Subway trip detection method and electronic equipment
Technical Field
The application relates to the field of terminal equipment, in particular to a subway trip detection method and electronic equipment.
Background
With the development of the field of terminal equipment, the application scenes of the terminal are more and more extensive. For example, a user may ride a subway through a swipe code service provided by an application installed in the terminal. However, the operation of the code swiping service provided by the current application is cumbersome, and the user experience is poor.
Disclosure of Invention
The application provides an optimized subway trip detection method and electronic equipment.
In some embodiments that this application provided, electronic equipment can provide more accurate, more convenient brush sign indicating number service for user's subway trip mode to promote user experience.
For example, a plurality of applications with a code swiping function may be installed in the electronic device. In some scenes, when a user needs to refresh the code, the application with the code refreshing function can be triggered, so that the application displays a subway bus code interface. The user can use the subway bus code in the subway bus code interface to swipe the code to get in or out of the station, so that the user does not need to purchase a subway card or carry the subway card. In order to further improve user experience, in some scenarios, the electronic device may provide a quick entry, so that the user can jump to the subway ride code interface by simple operation, for example, clicking a button corresponding to the quick entry, thereby simplifying user operation. The display opportunity of the fast entry associated with the application to which the subway riding code interface belongs needs to be considered in timeliness, excessive disturbance to the user is avoided, and the requirement of the user needs to be met, so that the fast entry can be displayed to the user when the user needs to sit on the subway. In some embodiments of the application, a subway trip detection method is provided, and an electronic device may determine whether a riding state card needs to be popped up based on a behavior state of a user. In addition, the electronic equipment can inhibit the popping-up of the riding card of the user who does not need to take the subway, and the use experience of the user is improved.
In a first aspect, the application provides a subway trip detection method. The method comprises the following steps: displaying a first riding state card in an interface of the electronic equipment; the first riding mode card comprises a name and a code swiping option of a first subway station where the electronic equipment is located, the first riding mode card is used for prompting that the current subway station is the first subway station, and the first riding mode card is further used for providing an application entrance associated with a subway riding code interface. The electronic equipment detects that the electronic equipment uses a subway riding code in a subway riding code interface to swipe the code and enters a first subway station, and the first riding state card is updated to be a conventional state card which comprises a code swiping option. After the electronic equipment detects that a user of the electronic equipment takes the subway to arrive at a second subway station, the electronic equipment detects that the motion state of the electronic equipment is a walking state, and first display information of the second subway station stored by the electronic equipment is acquired; the first display information comprises a first card ejection parameter and a first card non-ejection parameter; if the first card ejection parameter is larger than the first card non-ejection parameter, displaying a second riding state card; the second riding mode card comprises a name and a code swiping option of a second subway station; subscribing whether the electronic equipment leaves a second subway station by using a subway riding code in a subway riding code interface; detecting that the electronic equipment leaves a second subway station without using a subway riding code in a subway riding code interface, and switching to display a second riding state card into a display conventional state card; acquiring second display information of a second subway station, wherein the second display information comprises a second card ejection parameter and a second card non-ejection parameter, the second card ejection parameter is obtained by subtracting the preset value from the first card ejection parameter, and the second card non-ejection parameter is obtained by adding the preset value to the first card non-ejection parameter; after detecting that the user of the electronic equipment arrives at the second subway station by taking the subway again, detecting that the motion state of the electronic equipment is a walking state, and acquiring second display information of the second subway station, which is stored by the electronic equipment; and determining the size relationship between the second card ejection parameter and the second card non-ejection parameter according to the second display information, and determining whether to display the second riding state card. In this way, the electronic device can update the display information corresponding to the station based on the code swiping condition of the user in the station every time, and can determine whether to allow the car riding card to be ejected based on the display information corresponding to the station. Therefore, the dynamic detection method can determine whether to allow the car status card to pop up in the subway station or not based on the code swiping behaviors of different users in different subway stations so as to inhibit the pop-up of the card in the subway station.
Illustratively, the pop-card parameter and the no-pop-card parameter are associated with the riding status card. That is, the electronic device may determine whether to allow the riding status card to be popped up at the subway station based on the card popping-up parameter and the card non-popping-up parameter corresponding to the subway station. The card ejection parameters and the card non-ejection parameters do not influence the display state of the conventional card.
According to a first aspect, before detecting that the electronic device uses a subway riding code in a subway riding code interface to swipe into a first subway station, the method further includes: after detecting that a user of the electronic equipment arrives at a second subway station by taking a subway, detecting that the motion state of the electronic equipment is a walking state, and displaying a second riding state card when display information corresponding to the second subway station is not stored in the electronic equipment; whether the electronic equipment leaves a second subway station by using a subway riding code in a subway riding code interface in a swiping mode or not is subscribed; detecting that the electronic equipment does not use the subway riding code in the subway riding code interface to swipe the code and leave the second subway station, and canceling to display the second riding state card; and storing third display information of the second subway station, wherein the third display information comprises a third card ejection parameter and a third card non-ejection parameter, the third card ejection parameter is obtained by subtracting the preset value from the initial card ejection parameter value, and the third card non-ejection parameter is obtained by adding the preset value to the initial card non-ejection parameter value. Therefore, the electronic equipment can determine whether the riding state card of the subway station needs to be restrained or not in a mode of updating the card popping parameters for multiple times.
According to the first aspect, or any one implementation manner of the first aspect, the initial card ejection parameter value is 1, the initial card non-ejection parameter value is 0, and the preset value is 0.2.
According to the first aspect, or any implementation manner of the first aspect, before it is detected that the electronic device uses a subway riding code in a subway riding code interface to swipe a subway riding code into a first subway station, the method further includes: after detecting that the user to which the electronic equipment belongs takes the subway to arrive at the second subway station, detecting that the motion state of the electronic equipment is a walking state, and acquiring third display information of the second subway station; the third card ejection parameter is greater than the third card non-ejection parameter, and a second riding state card is displayed; whether the electronic equipment leaves a second subway station by using a subway bus code in a subway bus code interface or not is ordered; detecting that the electronic equipment does not use the subway riding code in the subway riding code interface to swipe the code and leave the second subway station, and canceling to display the second riding state card; and acquiring first display information of the second subway station, wherein the first card ejection parameter is obtained by subtracting a preset value from the third card ejection parameter, and the first card non-ejection parameter is obtained by adding a preset value to the third card non-ejection parameter. Therefore, the electronic equipment can determine whether the riding state card of the subway station needs to be restrained or not in a mode of updating the card ejection parameters for multiple times.
According to the first aspect, or any implementation manner of the first aspect above, the method further includes: whether the electronic equipment leaves a second subway station by using a subway riding code in a subway riding code interface or not is subscribed; detecting that the subway riding code in the unused subway riding code interface of the electronic equipment leaves the second subway station by swiping, and acquiring fourth display information of the second subway station; the fourth display information comprises a fourth card ejection parameter and a fourth card non-ejection parameter, the fourth card ejection parameter is obtained by subtracting the preset value from the second card ejection parameter, and the fourth card non-ejection parameter is obtained by adding the preset value to the second card non-ejection parameter. In this way, in the case where the user arrives at a certain subway station for the first time and detects that card ejection is required, card ejection is allowed by default. If the user does not swipe the code at the site, updating the card ejection parameter and the card non-ejection parameter corresponding to the site based on the set rule.
According to the first aspect, or any implementation manner of the first aspect above, the method further includes: detecting that the user to which the electronic equipment belongs takes the subway again to reach the second subway station, detecting that the motion state of the electronic equipment is a walking state, and acquiring fourth display information of the second subway station, which is stored by the electronic equipment; the fourth card ejection parameter is smaller than the fourth card non-ejection parameter, and the second riding state card is not displayed; subscribing whether the electronic equipment leaves a second subway station by swiping a subway bus code in a subway bus code interface or not; and detecting that the electronic equipment leaves the second subway station without using the subway bus code in the subway bus code interface, wherein the fourth card popping parameter is a preset minimum value, the fourth card non-popping parameter is a preset maximum value, and the fourth display information is not updated. Therefore, the electronic equipment can dynamically update the card ejecting parameters and the card non-ejecting parameters corresponding to the sites based on the code swiping behavior of the user until the card ejecting parameters and the card non-ejecting parameters reach the maximum value or the minimum value.
According to the first aspect, or any implementation manner of the first aspect above, the method further includes: whether the electronic equipment leaves a second subway station by using a subway riding code in a subway riding code interface or not is subscribed; detecting that the electronic equipment leaves the second subway station by using a subway riding code in a subway riding code interface in a code swiping mode, and acquiring fifth display information of the second subway station; the fifth display information comprises a fifth card ejection parameter and a fifth card non-ejection parameter, the fifth card ejection parameter is obtained by adding a preset value to the second card ejection parameter, and the fifth card non-ejection parameter is obtained by subtracting the preset value from the second card non-ejection parameter. Therefore, when the electronic equipment detects that the user swipes the code to leave the subway station, the electronic equipment can update the card ejection parameter and the card non-ejection parameter corresponding to the subway station so as to be used for next card ejection detection.
According to the first aspect, or any implementation manner of the first aspect above, the method further includes: detecting that a user of the electronic equipment arrives at a second subway station by taking a subway and the motion state of the electronic equipment is a walking state, and acquiring fifth display information of the second subway station stored by the electronic equipment; and the fifth card popping parameter is greater than the fifth card non-popping parameter, and displaying a second riding state card. In this way, the electronic device can determine whether to allow the car status card to be popped up at the subway station based on the card popping parameter and the card not popping parameter.
According to the first aspect, or any implementation manner of the first aspect, the detecting that the electronic device enters the first subway station by using a subway riding code in a subway riding code interface includes: subscribing a coarse-precision fence of the subway station, wherein the coarse-precision fence is used for indicating that the electronic equipment is positioned near the subway station; detecting that electronic equipment is located near a first subway station, and determining coarse-precision fence triggering corresponding to the first subway station; after triggering a coarse-precision fence corresponding to a first subway station, subscribing a first high-precision fence corresponding to the first subway station; the first high-precision fence is used for indicating that the electronic equipment is located near a gate of a first subway station; detecting that the electronic equipment is located near a gate of a first subway station, and determining triggering of a first high-precision fence; after the first high-precision fence is triggered, subscribing a first indoor fence; the first indoor fence is used for indicating that the electronic equipment is located indoors of the first subway station; detecting that the electronic equipment is located indoors of a first subway station, and determining that a first indoor fence is triggered; determining that the electronic device enters a first subway station under the condition that the first high-precision fence is triggered and the first indoor fence is triggered; after the electronic equipment is determined to enter the first subway station, acquiring sixth display information of the first subway station, which is stored by the electronic equipment; the sixth display information comprises a sixth card ejection parameter and a sixth card non-ejection parameter; and the sixth card popping parameter is greater than the sixth card popping parameter, and the first riding state card is displayed. For example, the electronic device can gradually improve the detection precision and accuracy by setting a plurality of subway fences, so as to avoid a situation that a user pops up a card near a subway but not near a gate of the subway, or a situation that the user enters a subway station but near the gate of the subway, and the like, so as to improve the detection precision of the user who needs to take the subway and avoid disturbance to the user who does not need to take the subway.
According to the first aspect, or any one implementation manner of the first aspect, whether the subscription electronic device leaves the second subway station by using a subway riding code in a subway riding code interface includes: subscribing an application fence, wherein the application fence comprises an identifier of at least one service, and the at least one service is a service containing a subway bus number; responding to the received operation of clicking the code swiping option, and displaying an interface of a first service of a first application; acquiring an identifier of a first service, wherein the identifier of the first service comprises an identifier of a first application and an Activity identifier of the first service; detecting whether the identifier of the first service is matched with the identifier of at least one service indicated by the application fence, and subscribing whether a first window to which the first service belongs contains a subway riding code; detecting that the first window contains a subway bus number, subscribing window content change events generated in the first window, and subscribing whether a wrist overturning event occurs in the electronic equipment; within a first preset time, determining that the electronic equipment does not use a subway bus code in a subway bus code interface to swipe the subway bus code away from a second subway station when a first target event does not occur in a first window and a wrist-turning event does not occur in the electronic equipment; and a first target event occurs in the first window, the first target event belongs to a window content change event, and the first target event is used for indicating that the first window displays a code swiping success interface. In this way, the electronic device can detect whether the user swipes the code at the subway station based on the code swiping fence, so that the mode of updating the display information is determined based on the detection result.
According to the first aspect, or any one implementation manner of the first aspect, whether the subscription electronic device leaves the second subway station by using a subway riding code in a subway riding code interface includes: when the electronic equipment is detected to leave the second subway station, first code swiping information stored by the electronic equipment is obtained, and the first code swiping information is used for indicating that the electronic equipment does not display a subway riding code interface in the second subway station; and determining that the electronic equipment leaves the second subway station without using the subway bus code in the subway bus code interface for swiping the code based on the first code swiping information. In this way, the electronic device can determine whether the user swipes a code based on the motion state of the electronic device and in conjunction with the subway fence.
According to the first aspect, or any implementation manner of the first aspect, whether the subscription electronic device leaves the second subway station by swiping a subway ride code in a subway ride code interface includes: detecting that the electronic equipment leaves a second subway station, and acquiring second code swiping information stored by the electronic equipment; the second code swiping information is used for indicating that the electronic equipment displays a subway riding code interface in a second subway station, and is also used for indicating that the electronic equipment enters the first subway station when the last code swiping is a code swiping; determining that the second subway station is a non-start station based on the second code swiping information, displaying a subway riding code interface in the second subway station by the electronic equipment, and after displaying the subway riding code interface, not detecting that the electronic equipment uses the subway riding code in the subway riding code interface to swipe the code to leave the second subway station; detecting whether the current motion state of the electronic equipment is a subway riding state or not; when the current motion state of the electronic equipment is a subway taking state, determining that the electronic equipment leaves a second subway station without using a subway taking code in a subway taking code interface; when the current motion state of the electronic equipment is a non-subway-riding state, after a second preset time, detecting whether a subway station which is arrived by the electronic equipment for the last time is a second subway station; and determining that the electronic equipment leaves the second subway station without using the subway riding code in the subway riding code interface. In this way, the electronic device can determine whether the user swiped the code based on the motion state of the electronic device and in conjunction with the subway fence.
According to the first aspect, or any one of the above implementation manners of the first aspect, the prompt intensity of the second riding status card is greater than the prompt intensity of the normal status card.
According to the first aspect, or any one of the above implementation manners of the first aspect, the prompting manner of the second riding status card includes at least one of: if the card group displayed by the electronic equipment comprises a plurality of cards, the second riding mode card is placed above other cards in the plurality of cards for display; and when the electronic equipment displays the second riding mode card, vibrating and/or playing a prompt tone.
According to the first aspect, or any one implementation manner of the first aspect, the prompting manner of the normal state card is as follows:
if the card group displayed by the electronic device comprises a plurality of cards, the conventional card and other cards in the plurality of cards are displayed in a polling mode.
According to the first aspect or any implementation manner of the first aspect, the electronic device displays the first riding mode card in at least one of a desktop, a screen-locking interface, an application interface, a pull-down menu bar, and a negative screen.
According to the first aspect, or any implementation manner of the first aspect, when the electronic device displays the first riding mode card on an application interface, the first riding mode card is in a suspension control form.
In a second aspect, the present application provides an electronic device. The electronic device includes: one or more processors, memory; and one or more computer programs, wherein the one or more computer programs are stored on the memory and, when executed by the one or more processors, cause the electronic device to perform the instructions of the first aspect or the method of any possible implementation of the first aspect.
Any one implementation manner of the second aspect and the second aspect corresponds to any one implementation manner of the first aspect and the first aspect, respectively. The technical effect corresponding to any one implementation manner of the second aspect and the second aspect may refer to the technical effect corresponding to any one implementation manner of the first aspect and the first aspect, which is not described herein again.
In a third aspect, the present application provides a computer-readable medium for storing a computer program including instructions for executing the method of the first aspect or any possible implementation manner of the first aspect.
Any one implementation manner of the third aspect corresponds to any one implementation manner of the first aspect. The technical effects corresponding to any one implementation manner of the third aspect and the third aspect may refer to the technical effects corresponding to any one implementation manner of the first aspect and the first aspect, and are not described herein again.
In a fourth aspect, the present application provides a computer program including instructions for executing the method of the first aspect or any possible implementation manner of the first aspect.
Any one implementation manner of the fourth aspect and the fourth aspect corresponds to any one implementation manner of the first aspect and the first aspect, respectively. The technical effects corresponding to any one implementation manner of the fourth aspect and the fourth aspect may refer to the technical effects corresponding to any one implementation manner of the first aspect and the first aspect, and are not described herein again.
In a fifth aspect, an embodiment of the present application provides a chip, which includes a processing circuit and a transceiver pin. Wherein the transceiver pin and the processing circuit are in communication with each other via an internal connection path, and the processing circuit is configured to perform the method of the first aspect or any one of the possible implementations of the first aspect to control the receiving pin to receive signals and to control the sending pin to send signals.
Drawings
Fig. 1 is a schematic diagram of a hardware configuration of an exemplary electronic device;
fig. 2 is a schematic flow chart of an exemplary subway trip detection method;
fig. 3 is a schematic flowchart illustrating a subway trip detection method according to an exemplary embodiment;
FIGS. 4a to 4g are schematic diagrams of exemplary application scenarios;
FIG. 5 is a schematic diagram of an exemplary application scenario;
FIG. 6 is a schematic illustration of an exemplary illustrated ride card;
FIGS. 7 a-7 d are exemplary user interface diagrams;
FIG. 8 is a schematic flow chart diagram illustrating an exemplary method of code-swiping detection;
FIG. 9 is an exemplary illustrative user interface diagram;
FIG. 10 is a schematic diagram illustrating a process for subscribing to a swipe fence by a perception module;
FIG. 11 is an exemplary illustrative user interface diagram;
FIG. 12 is a schematic diagram of an exemplary illustrative application scenario;
FIG. 13 is an exemplary illustrative user interface diagram;
fig. 14 is a schematic flowchart illustrating a subway trip detection method;
FIGS. 15 a-15 d are schematic diagrams of exemplary illustrative application scenarios;
FIG. 16 is an exemplary illustrative user interface diagram;
fig. 17 is a schematic flowchart illustrating a subway trip detection method;
FIG. 18 is a schematic diagram of an exemplary illustrative application scenario;
fig. 19 is a schematic diagram of a software structure of an exemplary electronic device.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The term "and/or" herein is merely an associative relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The terms "first" and "second," and the like, in the description and in the claims of the embodiments of the present application are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first target object and the second target object, etc. are specific sequences for distinguishing different target objects, rather than describing target objects.
In the embodiments of the present application, the words "exemplary" or "such as" are used herein to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the words "exemplary" or "such as" are intended to present relevant concepts in a concrete fashion.
In the description of the embodiments of the present application, the meaning of "a plurality" means two or more unless otherwise specified. For example, a plurality of processing units refers to two or more processing units; the plurality of systems refers to two or more systems.
Fig. 1 shows a schematic structural diagram of an electronic device 100. It should be understood that the electronic device 100 shown in fig. 1 is only one example of an electronic device, and that the electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in fig. 1 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The electronic device 100 may include: the mobile terminal includes a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. Wherein the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
Some embodiments of the present application relate to coarse precision fences (e.g., and scales) associated with subway stations
Figure BDA0003386946580000071
Fences) and high precision fences that can correspond to a coarse precision fence (e.g., and carve) for a subway station
Figure BDA0003386946580000072
Fence) and a high precision fence. The coarse precision fence (e.g., and carving)
Figure BDA0003386946580000073
Fence) can be the geo-fence that can identify the geographic range of the subway station, and a user can trigger the coarse-precision fence if carrying an electronic device into the geographic range of the subway station; the high-precision fence can be a geographic fence of a geographic range of the code gate swiping machine in the subway station, and a user can trigger the high-precision fence if carrying electronic equipment to enter the geographic range of the code gate swiping machine in the subway station. The geofence may identify a geographic range corresponding to the geofence through a geographic location (e.g., determining the geographic location by GPS positioning or the like), or identify the geographic range corresponding to the geofence through a signal fingerprint within the geographic range (e.g., base station information, wifi information, bluetooth information, and the like, which can be detected within the geographic range).
For example, the electronic device 100 may include a sensing module, a smart travel service, a third party application, and the like in a software structure. Optionally, the third-party application related in this embodiment of the present application includes a payment application, a smart card, and the like including a subway ride service.
Fig. 2 is a schematic flowchart of an exemplary subway trip detection method. Referring to fig. 2, the method specifically includes:
s201a, the smart travel service indicates to the perception module to register the city fence.
For example, in the embodiment of the application, the cloud end may obtain subway travel network information in a city. The subway trip network information may include station information of each subway station in the city, and the station information includes, but is not limited to: the name of the subway station, the position of the subway station, Wi-Fi information in the subway station, cellular network information near the subway station, Bluetooth network information in the subway station and the like.
Illustratively, the name of the subway station is the station name of the station, and may be, for example, a national library station, a beijing west station, or the like.
Illustratively, the subway station location is optionally latitude and longitude information of the subway station.
Illustratively, the Wi-Fi information in the subway station is optionally Wi-Fi network information in the subway station (which can also be understood as being near a gate). Wi-Fi network information may include, but is not limited to: identification information of a Wi-Fi network, address information of a Wi-Fi network, and the like.
Illustratively, the cellular network information near the subway station is optionally a cell identifier corresponding to a base station near the subway station. Optionally, the cellular network information may also be identification information of a base station, which is not limited in this application. For example, the vicinity of the national library station includes a base station a and a base station B, the base station a includes a cell 1, a cell 2, and a cell 3, where the cell 2 and the cell 3 cover the national library station (may be full coverage or may be partial coverage), the base station B includes a cell 4 and a cell 5, and the cell 4 covers the national library station. Accordingly, the cellular network information of the national library site includes, but is not limited to: identification information of cell 2 of base station a, identification information of cell 3 of base station a, and identification information of cell 4 of base station B. Optionally, the cellular network information of the international library station may also include identification information of base station a and identification information of base station B.
Optionally, in a city where a subway is deployed, there may be some cities that may correspond to subway travel network information. For example, subways are uniformly distributed in a city A, a city B and a city C, and the cloud only stores subway travel network information of the city A and the city B. Correspondingly, the mobile phone located in the city a can execute the subway trip detection process based on the subway trip network information corresponding to the city a acquired from the cloud. The mobile phone located in the city B can execute the subway trip detection process based on the subway trip network information corresponding to the city B acquired from the cloud. For city C, before the cloud does not acquire the subway travel network information of city C, the mobile phone located in city C cannot execute the subway travel detection process.
In the embodiment of the application, the smart travel service may send instruction information to the perception module, so as to instruct the perception module to register the city fence. That is, the smart travel service instructs the awareness module to subscribe to the city fence to detect whether the phone is currently within the designated city. For example, the designated city may optionally be the city corresponding to the subway network information stored in the cloud terminal described above, and may also be understood as a city capable of supporting a mobile phone to perform subway trip detection. The perception module can subscribe to the city fence based on the instruction of the smart travel service.
In a possible implementation manner, the sensing module can acquire city information of each city and subway trip network information of each city stored in the cloud from the cloud when any scene such as first startup, initialization, screen-off charging and the like is performed. The city stored in the cloud is the above-mentioned city corresponding to the subway trip network information. City information includes, but is not limited to: city name and city range. For example, when subscribing to a fence, the awareness module may subscribe to the corresponding fence based on the acquired related information. For example, in the following embodiments, the sensing module has acquired cellular network information of each subway station of the current city from the cloud, and the sensing module may subscribe to and carve fences of the subway station based on the acquired cellular network information, and specific implementation manners will be described in the following embodiments.
Optionally, the sensing module may periodically acquire city information and subway network travel information from the cloud. Optionally, the city information and the subway trip network information stored in the cloud may be updated, and the sensing module may cover the newly acquired city information and the newly acquired subway trip network information with the subway trip network information acquired last time. In one example, the sensing module may periodically (e.g., every 3 days) send a request message to the cloud end to request the cloud end to feed back subway trip network information. In another example, the cloud may periodically push subway travel network information to the mobile phone. In another example, the cloud may push the subway trip network information to the mobile phone when the subway trip network information is updated. Optionally, the cloud may only feed back updated subway trip network information, and the sensing module may update the stored subway trip network information based on the acquired subway trip network information. In another example, the mobile phone can acquire the latest city information and subway network travel information from the cloud when the screen is turned off and the charging is performed, so that the power consumption of the mobile phone is saved.
For example, the awareness module may subscribe to a city fence based on the acquired city information. And when the sensing module executes the relevant steps in the following embodiments, the sensing module may acquire relevant information from the acquired subway trip network information to subscribe to the corresponding fence.
For example, after the sensing module subscribes to the city fence, the sensing module can acquire the geographic location of the mobile phone. For example, the sensing module may invoke a GPS function of the mobile phone to obtain the geographic location (e.g., latitude and longitude information) where the mobile phone is located. For another example, when other applications in the mobile phone call the GPS to obtain the location of the mobile phone, the sensing module may obtain the location information of the mobile phone from the other applications.
Optionally, the sensing module may periodically acquire the geographical location information of the mobile phone.
In one example, the sensing module detects that the geographic location of the cell phone is within a range of a specified city, and the sensing module can determine a city fence trigger, and execute S201 b. For example, and again taking the above example as an example, the cloud maintains the subway network information for city a and city B, but not city C. The perception module acquires city information of a city A and city information of a city B from the cloud. The awareness module subscribes to the city fence based on city information of city a and city information of city B. The sensing module periodically acquires the geographic position of the mobile phone. For example, the sensing module detects that the geographic location of the cell phone is within the city range of city a, and the sensing module may determine that the city fence is triggered, and execute S201 b. In another example, as described above, the sensing module may periodically obtain the geographic location of the mobile phone, and if the user moves from city a to city C, the sensing module detects that the geographic location of the mobile phone moves out of the city range of city a, and the sensing module fails to detect the city information corresponding to the current geographic location, the sensing module re-executes S201 a. It is understood that when the mobile phone performs any of the steps in the following embodiments, the perceiving module can still periodically obtain the geographic location of the mobile phone, and when the perceiving module detects that the geographic location of the mobile phone is within the range of the city specified by the city fence, the perceiving module can continue to perform the current step. When the sensing module detects that the geographic location of the cell phone is not within the city range specified by the city fence, the sensing module ends the currently executed step and returns to S201a again, that is, continues to detect the city fence until the cell phone enters the city range specified by the city fence.
In a possible implementation manner, after the sensing module receives the indication of subscribing the city fence of the smart travel service, the sensing module can acquire the current position of the mobile phone. The sensing module can report the acquired geographic position information to the cloud end, and the cloud end can compare the acquired geographic position with a stored city range corresponding to the subway trip network information to determine whether the mobile phone is in the designated city range. The cloud end can send the comparison result to the perception module, and the perception module can determine whether to trigger the city fence or not based on the comparison result of the cloud end. The sensing module may perform the above steps periodically. That is, the perception module may not cache city information to reduce system cache occupancy.
In another possible implementation manner, the sensing module may obtain city information of a city corresponding to the subway trip network information from the cloud. The perception module can subscribe to the city fence based on the acquired city information.
S201b, the perception module indicates city fence trigger to the smart travel service.
Illustratively, the perception module determines that the city fence is triggered, i.e., after the mobile phone is within a specified city range, the perception module may indicate the city fence trigger to the smart travel service.
In a possible implementation manner, as described above, the sensing module only obtains city information, and after the city fence is triggered, the sensing module may send a request message to the cloud, where the request message may include a name of a city to which the mobile phone belongs, and the request message may be used to request the cloud to feed back subway travel network information corresponding to the city. That is to say, after the city where the mobile phone is located is determined, the sensing module acquires the subway trip network information corresponding to the city, so that the cache occupation of the mobile phone can be reduced.
S202a, the smart travel service indicates to the perception module to register the swipe recording fence.
Optionally, after receiving the city fence trigger instruction sent by the sensing module, the smart travel service may determine that the city where the mobile phone is located is provided with a subway network, and the mobile phone may acquire subway travel network information of the city from a cloud to perform subway travel detection.
For example, the smart travel service may send instruction information to the perception module for instructing the perception module to register the swipe recording fence. The function of the code swiping record fence can be understood as indicating whether the sensing module detects whether the mobile phone successfully swipes the code or not, and can also be understood as whether the user rides the subway through the code swiping.
For example, in the embodiment of the present application, the smart travel service (or the perception module) may record a code swiping record, and when the user successfully swipes a code through the code swiping service provided by the third party application or the system application in the mobile phone each time, the smart travel service may store the code swiping successful record.
Optionally, for some users, such as the elderly or users who do not need to take a subway, the users may never take the subway by means of swiping a code, and for such users, the smart travel service does not need to provide subway travel detection for such users, that is, the subsequent procedures such as base station detection and Wi-Fi detection do not need to be performed, so as to effectively reduce the power consumption of the mobile phones of such users. Optionally, the sensing module has subscribed to the swipe code recording fence, and when the sensing module detects that the mobile phone swipe code is successful, it may determine that the swipe code recording fence is triggered. For example, the user a never swipes the subway, and the sensing module subscribes to the swipe recording fence and does not trigger. On a certain day, the user a successfully swipes the code through the code swiping service in the payment application and rides the subway, the sensing module may detect that the mobile phone code swiping is successful, and determine that the fence is triggered by the code swiping record, and execute S202 b.
For example, for a mobile phone installed with a swipe service application and swiped by the swipe service, the sensing module may detect that the mobile phone stores a swipe record, and may determine that the swipe record fence triggers, and execute S202 b.
It should be noted that, the code swiping service in the embodiment of the present application may be optionally in a manner of swiping a code through a riding two-dimensional code. The method is not suitable for the application in a mode of swiping cards to enter a station through NFC and the like. For example, if the mobile phone carries a car in a card swiping manner of NFC, the sensing module may not trigger the code swiping recording fence, and the code swiping recording fence may not be triggered until the user successfully swipes the code through the car.
S202b, the perception module indicates to the intelligent travel service to swipe the code recording fence for triggering.
For example, after detecting that the code swiping record fence is triggered, the sensing module can send indication information to the smart travel service, and the user indicates that the code swiping record fence is triggered.
In one possible implementation, the coding fence is an optional fence. For example, the cell phone may execute S203a upon detecting a city fence trigger. The present application is not limited.
S203a, the smart travel service indicates to the perception module a registrant fence, a company fence, and a sleep fence.
Illustratively, the smart travel service sends instruction information to the awareness module for instructing the awareness module to subscribe to at least one of a home fence, a company fence, and a sleep fence. The awareness module registers at least one of a home fence, a company fence, and a sleep fence in response to the indication of the smart travel service. In the embodiment of the present application, the example of the smart travel service instruction perception module subscribing to the home fence, the company fence and the sleep fence is described. It should be noted that the fence in the embodiment of the present application is only an illustrative example, and in other embodiments, the fence may further include other conditions, for example, the fence may be a time fence, for example, the time fence may indicate the time between the stop time of the last subway in the city and the start time of the first subway in the city. The present application is not limited.
For example, the home fence may be understood as a home fence trigger that may be determined after the sensing module detects that the mobile phone is located at the home of the user without performing the subsequent steps.
For example, a corporate fence can be understood as a fence trigger that can be determined when the perception module detects that the location of the cell phone is within the user's company without performing subsequent steps, and when the perception module detects that the user leaves the company.
It should be noted that, in other embodiments, the fences in this step may also include other fences such as school fences, and the specific processing manner is similar to that of a company fence and a home fence, which is not described herein again.
For example, the awareness module may pre-acquire the home fence information, the company fence information, and the sleep fence information. After the instruction of wisdom trip service is received to the perception module, can subscribe corresponding rail based on the house rail information, the company rail information and the sleep rail information that acquire. In one example, the home fence information, the company fence information, and the sleep fence information may be stored in a cloud, and the sensing module may obtain the home fence information, the company fence information, and the sleep fence information from the cloud when obtaining the subway network information. It should be noted that the home fence information, the company fence information, and the sleep fence information correspond to the user account, and after the user logs in the mobile phone, the home fence information corresponding to the user account, and the like, can be acquired from the cloud. That is, the home fence information and the like corresponding to different user accounts are different. In another example, home fence information, corporate fence information, and sleep fence information may be stored locally.
Optionally, the home fence information may include, but is not limited to, at least one of: Wi-Fi information in the user's home, cellular network information near the user's home, geographic location information of the user's home, and so on. For example, the perceiving module may obtain Wi-Fi information currently connected to the mobile phone or scanned Wi-Fi information, and when the perceiving module detects that the connected Wi-Fi or scanned Wi-Fi includes Wi-Fi information (e.g., Wi-Fi name) in the home of the user, the perceiving module may determine that the user is located at home. For another example, the sensing module may obtain information of a base station currently connected to the mobile phone or information of a scanned base station, and when the sensing module detects that the connected or scanned base station is a base station near the home of the user, it may be determined that the user is at home. For another example, the sensing module may obtain the geographic location information of the mobile phone, and when the sensing module detects that the geographic location of the user is in a region near the home of the user, it may be determined that the user is at home. It should be noted that Wi-Fi information, cellular information, geographic location information, and the like in the user's home may be acquired by the sensing module, may also be acquired by the sensing module from other applications in the mobile phone, may also be acquired from the cloud, or may be set by the user, which is not limited in this application. For example, the perception module may count the geographic location of the user, and when the user moves within a range for a predetermined period of time (e.g., 4 hours), the region to which the geographic location belongs (e.g., within 500 meters) may be considered the user's home or company. For another example, after the sensing module connects to Wi-Fi, the connection duration may be counted, and if the number of times of connecting to a certain Wi-Fi is greater than a threshold and the duration of each connection is greater than a threshold (e.g., 2 hours), the Wi-Fi may be considered as the user home Wi-Fi or the company Wi-Fi. For another example, after the sensing module is connected to the cellular network, the connection duration of the cellular network may be counted, and if the handover does not occur within a predetermined duration (e.g., 2 hours), it may be determined that the cellular network covers the user home or the user company.
Alternatively, the sensing module may detect whether the user is at home, i.e. monitor the home fence, based on the above-mentioned information. When any one of the conditions is met, for example, the sensing module detects that the mobile phone is connected with Wi-Fi, the user can be determined to be at home. Alternatively, the home fence trigger, i.e., the user leaving home, may be determined when the awareness module detects a predetermined time (e.g., 10 minutes) of disconnection from Wi-Fi connectivity in the home.
It should be noted that, if the sensing module detects that a plurality of conditions in the home fence are satisfied, for example, the mobile phone is connected to Wi-Fi in the home, and the geographic location of the mobile phone is within the home range of the user, the sensing module determines that the user is at home. When determining whether the user leaves the home, as long as any condition in the home fence is triggered, the user can be determined to leave the home, for example, if the sensing module detects that the Wi-Fi is turned off for a predetermined time, but does not detect that the geographic location of the mobile phone is out of the home range of the user, the sensing module still determines that the user leaves the home, that is, the home fence is triggered, and S203b is executed. Certainly, in other embodiments, the sensing module may also trigger all detected conditions, for example, after the sensing module detects that the Wi-Fi is disconnected, and before further detecting that the geographic location of the mobile phone moves out of the home range, the sensing module does not trigger the home fence, and after detecting that the geographic location of the mobile phone moves out of the home range, the sensing module determines that the user leaves home, that is, the home fence triggers, so as to prevent erroneous determination.
For example, for a corporate fence, the judgment method is similar to that of a home fence, and the details are not repeated here.
Illustratively, the sleep fence may indicate a sleep time interval, which may be, for example, 23:00 to 5 days: 00, in the event interval, the user usually sleeps without performing subsequent subway trip detection. The sensing module can detect the time, and when the time indicated by the sleeping fence is entered, subsequent steps are not required to be executed. When the perception module determines that the current time is not within the time range specified by the sleep fence, a sleep fence trigger can be determined.
It should be noted that, if the sensing module subscribes to multiple fences such as the home fence and the company fence, when a condition specified by any fence is satisfied, the subsequent steps are not executed, that is, the sensing module determines that the user is at home, and the subsequent steps do not need to be executed, thereby reducing power consumption.
It should be further noted that, after subscribing to the fence, the sensing module can perform monitoring in real time, and when any one of the steps in the following embodiments is performed, if any one of the fences in S203a is satisfied, the current step is stopped, and the fence in S203a is detected. For example, if the sensing module detects that the mobile phone is connected to the Wi-Fi of the user' S home when performing the following S204a, the sensing module may determine that the user is at home, and perform S203a, that is, subscribe to the fence of the home, and perform the subsequent steps after the user leaves home again.
It should be further noted that in this step, if the user detects that the fence condition is satisfied, the user may be determined to be at home, and when the user detects that the mobile phone does not satisfy the fence condition, for example, the Wi-Fi indicated by the fence is turned off, the user may be determined to be away from home, that is, the fence trigger.
For example, as shown in fig. 4a, after the current location of the user is at home and the sensing module subscribes to a home fence, a company fence and a sleep fence, the sensing module obtains the current location information of the user. The awareness module determines that the user is at home based on the user's current location. The sensing module detects a home fence to detect whether the user leaves home. Referring to fig. 4b, for example, after the user leaves the home, the sensing module determines that the user leaves the home based on the current location of the user, the sensing module determines the home fence trigger, and S203b is performed.
S203b, the perception module indicates the trigger of the home fence, the company fence, and the sleep fence to the smart travel service.
For example, the sensing module detects any one of the fence triggers, and may send instruction information to the smart travel service to instruct the corresponding fence trigger. For example, the sensing module detects that the user leaves the home, that is, determines a home fence trigger, and the sensing module sends indication information to the smart travel service for indicating the home fence trigger.
S204a, the smart travel service instruction perception module registers the motion state fence.
Illustratively, the smart travel service responds to the home fence, the company fence and/or the sleep fence triggers indicated by the perception module, and the smart travel service sends indication information to the perception module for indicating the perception module to subscribe to the sports state fence.
For example, the sensing module may periodically acquire the motion state of the mobile phone after subscribing to the motion state fence in response to the indication of the smart travel service. In one example, the sensing module may obtain the motion state of the mobile phone by invoking a sensor (e.g., an acceleration sensor, etc.) in the mobile phone. In another example, the sensing module may also acquire the motion state of the mobile phone through other applications capable of acquiring the motion state of the mobile phone in real time in the mobile phone.
For example, the motion state fence can be used to instruct the sensing module to detect the motion state of the mobile phone to detect whether the user is in a walking state. For example, the sensing module may be provided with a threshold corresponding to each motion state, such as a walking state threshold, a riding state threshold, a subway riding state threshold, a car riding state threshold, and the like. It should be noted that each threshold may be a numerical value or a range, and the present application is not limited thereto. The sensing module may compare with set thresholds to determine the motion state based on parameters obtained from the sensors. For example, if the perception module detects that the parameter satisfies a walking state threshold based on the parameter obtained from the sensor, the motion state may be determined to be a walking state. For another example, if the sensing module detects that the parameter satisfies the threshold of the riding state based on the parameter acquired from the sensor, it may be determined that the exercise state is the riding state.
In one example, if the sensing module determines that the current user is in a walking state based on the acquired motion state of the mobile phone, it determines that the motion state fence is triggered, and then S204b is executed.
In another example, if the sensing module determines that the current user is in a non-walking state, such as a riding state or a riding state, based on the acquired motion state of the mobile phone, it may be determined that the motion state fence is not triggered.
For example, as shown in fig. 4b, after the user leaves the home, the smart travel service determines that the user leaves the home based on the indication of the perception module. The intelligent travel service instructs the perception module to subscribe the motion state fence. After the sensing module responds to the indication of the smart travel service and subscribes the motion state fence, the motion state of the mobile phone is periodically acquired. After leaving home, the user rides to move to the subway station. The sensing module can detect that the motion state of the mobile phone is not walking. Referring to fig. 4c, illustratively, the user arrives near a subway station and the user walks off to the subway station. For example, the sensing module may obtain the current motion state of the mobile phone and determine that the motion state of the mobile phone (which may also be understood as the motion state of the user) is walking, and the sensing module may determine that the motion state fence triggers, and execute S204 b.
It should be noted that, in the embodiment of the present application, after the sensing module subscribes to the motion state fence, the motion state fence may be periodically detected. When the sensing module performs any of the following embodiments, if the sensing module detects that the motion state of the mobile phone is not walking, S204a is executed again, that is, the detection of the motion state fence is continued. For example, still referring to fig. 4c, when the user walks, the sensing module may determine that the motion state fence is triggered, the sensing module performs subsequent steps, and when the sensing module performs any step in fig. 3, the sensing module acquires that the motion state of the mobile phone is not walking, and the sensing module may end the current step. For example, the user walks to the vicinity of a subway station, the sensing module may be detecting the crossing fence (in a manner to be described below), and the user again travels by bike. When the sensing module detects that the motion state of the mobile phone is changed to the non-walking state, the sensing module may release the current step, i.e., the detection of the hit fence is not performed, but the motion state detection is performed as described in S204 a.
S204b, the perception module indicates the motion state fence trigger to the smart travel service.
For example, after determining that the user walks, that is, after determining the motion state fence trigger, the perception module sends indication information to the smart travel service for indicating the motion state fence trigger.
With reference to fig. 2, fig. 3 is a schematic flowchart of an exemplary subway trip detection method, please refer to fig. 3, which specifically includes:
s301a, the smart travel service indicates registration and fencing to the perception module.
Illustratively, the smart travel service sends instruction information to the perception module, and the instruction information is used for instructing the perception module to register and carve the fence. The perception module responds to the indication of the intelligent travel service, and registers and carves the fence.
Illustratively, the hit fence is used to instruct the perception module to detect a condition indicated by the hit fence. As shown in fig. 4d, when the sensing module detects that the fence carving condition is satisfied, the sensing module may determine that the fence carving is triggered, and then S301b is executed. Optionally, the fencing condition may include, but is not limited to, at least one of: a cellular network near a subway, a geographical extent of the subway, etc.
For example, the cellular network near the subway may be a cell covering the subway, and the detailed description may refer to the related contents of the cellular network near the home, which is not described herein again. For example, when the sensing module detects that the mobile phone scans or switches to a cellular network near a subway, it may be determined that the user arrives near the subway station, that is, it is determined that the subway station is triggered by the fence.
For example, the geographic range of the subway may be optionally within a preset range of a subway station, for example, 500 meters, and may be set according to actual requirements, which is not limited in the present application. For example, when the sensing module detects that the geographic location of the mobile phone is within the geographic range of the subway, the fencing trigger can be determined and determined.
It should be noted that "near the subway station" in the embodiment of the present application is optionally within a range of 200 meters or 500 meters of the user near the subway station, depending on the size of the geographic range indicated by the geofence or the size of the coverage area of the cellular network of the base station near the subway station. Optionally, the ranges of the subway stations and the corresponding fences are the same or different. For example, the geographic range indicated by the subway station a and the carved fence is different from the geographic range indicated by the subway station B and the carved fence, wherein the geographic range indicated by the subway station a and the carved fence is within 500 meters of the subway station a, and the geographic range indicated by the subway station B and the carved fence is within 600 meters of the subway station B. That is, when the cell phone detects that the user is within 500 meters of the subway station a, the hit fence trigger for subway station a may be determined. When the mobile phone detects that the user reaches the range of 600 meters of the subway station B, the fence triggering and the rail marking of the subway station B can be determined.
For example, as described above, the sensing module may obtain, from the cloud, subway travel network information in the city, where the subway travel network information includes station information of each subway station (for example, the station information includes a station name, cellular network information, and the like, and the concept may refer to the above, and is not described here again). The sensing module can subscribe and carve the fence based on information (which can be referred to as fence carving information for short) corresponding to the conditions specified by the fence carving in the station information of each subway station of the city.
For example, the fencing information may include, but is not limited to, at least one of: geographical location of the subway station and cellular network information in the vicinity of the subway station. Optionally, the station information of the subway station may include a geographical range of the subway station, and the geographical range corresponding to each subway station is the same or different in size. Alternatively, if the geographical location of the subway station is included in the station information of each subway station, the sensing module may determine the geographical range of the subway station based on a set range size (e.g., 500 meters).
For example, and the fencing condition includes a cellular network near a subway as an example. Referring to fig. 4e, for example, the signal of the base station B covers national library stations, and as described above, the cloud stores the station information of each subway station (for the concept, refer to the above, and the description is omitted here). The perception module may obtain site information of the national library station from the cloud, where the site information includes a name of the national library station, a geographic location of the national library station, Wi-Fi information within the national library station, and cellular network information (i.e., identification information of base station B) near the national library station.
For example, the sensing module may acquire station information of each subway station from the cloud, and the sensing module may subscribe to and carve fences of each subway station based on the acquired station information of each subway station. For example, national library station and geofence are set based on the cellular network information of the national library station. That is, when the sensing module detects that the mobile phone is accessed to the cellular network indicated by the national library station and the carved fence, the trigger of the national library station and the carved fence can be determined, and it can also be understood that the user arrives near the national library station.
For example, referring to fig. 4e, when the user is at the user location a, the mobile phone accesses the base station a. The handset may periodically or triggered scan for nearby cellular networks based on the configuration of the cellular network. For example, the scanning described in the embodiment of the present application may optionally be that the mobile phone may receive a probe signal sent by a base station (or an access point hereinafter), where the probe signal optionally includes information such as identification information and address information of the base station (or the access point).
Still referring to fig. 4e, the handset is illustratively at user location a, scanning only to base station a. The sensing module matches the identification information of the base station A with the cellular network indicated by the carved fence of each subway station, and the sensing module determines that the matching is not successful and does not process the matching.
Illustratively, the user walks to user location B. The mobile phone still accesses the base station a, and at the current position (i.e., the user position B), the mobile phone can scan the base station a and the base station B and acquire the identification information of the base station a and the base station B.
In one example, the sensing module may match the identification information of the base station a and the identification information of the base station B with the cellular networks of the metro stations and the fencing indication, respectively. The sensing module can determine that the identification information of the base station B is successfully matched with the cellular network indicated by the country library station and the carved fence, and the sensing module can determine that the user arrives near the country library station, namely the national library station and the carved fence trigger can be determined.
In another example, the awareness module may match the identification information of base station a and the identification information of base station B with the cellular networks of the metro stations and the fencing indication, respectively. The awareness module may determine that the identification information of base station B successfully matches the cellular network of the national library station and the fencing indication. The sensing module can further obtain communication quality parameters between the base station B and the sensing module. Optionally, the communication quality parameter includes, but is not limited to, at least one of: SNR (SIGNAL to NOISE RATIO), RSRP (Reference SIGNAL Receiving Power), RSRQ (Reference SIGNAL Receiving Quality), RSSI (Received SIGNAL Strength Indication), and the like. For example, the communication quality parameter may be obtained by a mobile phone (for example, the mobile communication module 150 in fig. 1) based on a received detection signal, and a specific obtaining manner may refer to an existing technology, which is not described in detail herein. Optionally, if the obtained communication quality parameter is greater than or equal to a set threshold (which may be set according to actual requirements, and is not limited in this application), the sensing module may determine that the national library station and the fence are triggered. Alternatively, if the acquired communication quality parameter is smaller than the set threshold, the processing is not performed, and it may be understood that the sensing module repeatedly performs the above steps. It should be noted that the subway network information corresponding to each subway station and the carved rail may include the threshold corresponding to the communication quality parameter, that is, the subway trip network information of each subway station acquired by the sensing module may include a set threshold (also referred to as a communication quality parameter threshold), and the communication quality parameter thresholds corresponding to each subway station may be the same or different, which is not limited in this application. Optionally, the threshold corresponding to the communication quality parameter may be determined by the cloud based on the communication quality parameter reported by the user. For example, after the handset refreshes successfully (including inbound and outbound), the handset may obtain the cellular network information of the current site, including the identification information of the cellular network and the signal strength information of the cellular network. The mobile phone can report the acquired cellular network information to the cloud. The cloud end can receive cellular network information reported by a plurality of users, and obtains a threshold value corresponding to the communication quality parameter of the cellular network of each site based on the obtained cellular network information. For example, the cloud may obtain, every period (e.g., 3 days, which may be set according to actual requirements, and is not limited in this application), an average value of communication quality parameters of the cellular network of the same subway station, which are reported by all users in this period, and use the average value as a threshold value corresponding to the communication quality parameter of the cellular network of the subway station. Optionally, the cloud may also use a range of 1 standard deviation above and below the average value in this period as a threshold range, that is, when the mobile phone detects that the communication quality parameter of the cellular network is within the threshold range, it may be determined that the fence-carving condition is satisfied.
In another example, when the user is located at the user location B, the sensing module determines and triggers a fence detection period (which may be set according to actual needs, and is not limited in this application), and the sensing module detects a currently accessed base station. The sensing module may obtain that the currently accessed base station is the base station a from the mobile communication module 150, that is, the same result as the last detection (for example, the user location a) is obtained, and the sensing module does not perform processing. When the user walks to the user position C, the mobile phone is switched to the base station B, namely, the mobile phone accesses the base station B. The sensing module determines and carves the detection cycle trigger of the rail, and the sensing module obtains the information of the base station accessed at present. The sensing module may acquire the identification information that the currently accessed base station is the base station B from the mobile communication module 150. And the sensing module matches the identification information of the base station B with the cellular networks of the subway stations and the fence carving indication. The sensing module determines that the identification information of the base station B is successfully matched with the cellular network of the national library station and the fence carving indication, and the sensing module can confirm that the user is near the national library station, namely the national library station and the fence carving trigger can be determined.
In yet another example, the mobile communication module 150 may report the identification information of the base station after handover to the sensing module after each handover of the base station. For example, in the user location B, the cellular network handover is not performed by the handset, and the mobile communication module 150 does not report any information. When the user moves towards the subway station (for example, the user may be at any position between the user position B and the user position C), the mobile phone detects that the switching condition is met (the specific details refer to the prior art, and the application is not limited), and the mobile phone is switched to the base station B. After the mobile phone accesses the base station B, the mobile communication module 150 reports the identity information of the switched base station, i.e., the base station B, to the sensing module. The perception module may determine the national library station and fence trigger based on the identification information of base station B.
For example, and the fencing conditions include the geographic range of a subway station as an example. Referring to fig. 4e, for example, when the user is at the user location B, the sensing module determines and triggers the fence carving detection period, and the sensing module obtains the current location information of the mobile phone. The sensing module matches the location information with the geographical ranges indicated by the metro stations and the carved fences and determines that the matching fails, i.e., the user is not near a metro station. When the user walks to the user position C, the sensing module determines and triggers the carved fence detection period, and the sensing module acquires the current position information of the mobile phone. The sensing module matches the position information with the geographical ranges indicated by the iron stations and the carved fences of all the regions, the geographical ranges indicated by the national library stations and the carved fences can be matched with the geographical ranges indicated by the national library stations and the carved fences, and the sensing module determines the national library station and the carved fence triggering.
For example, if the sensing module subscribes to the fence and the fence include a plurality of conditions, for example, the geographic range of the cellular network and the subway station near the subway is included, when any one of the conditions is satisfied, for example, it is detected that the mobile phone is located within the geographic range of the subway station; or detecting that the mobile phone is accessed to a cellular network near the subway station; or, the mobile phone is detected to be located in the geographic range of the subway station, and the mobile phone is accessed to the cellular network near the subway station, so that the fence marking trigger can be determined.
Optionally, similar to the motion state fence and other fences described above, after the sensing module subscribes to and carves the fence, the sensing module performs the following steps in the following embodiments, and performs detection based on the carved fence. For example, if the sensing module detects that the user leaves the vicinity of the subway station, that is, does not satisfy the condition indicated by the hit fence, the sensing module may stop the current process and detect the hit fence in S303 a.
For example, after a user arrives near a subway station, the sensing module determines and carves fence triggering, the sensing module subscribes to the high-precision fence, and conditions indicated by the high-precision fence are detected. The sensing module is also used for detecting and carving the corresponding conditions of the fence, and if the user stops near the subway station and does not enter the range of the high-precision fence, and the user leaves the range indicated by the fence and can detect that the user leaves and carves the fence. Alternatively, the perception module may stop detecting the condition indicated by the high-precision fence. Optionally, the perception module may dismiss the high precision fence. It can be understood that in the embodiment of the present application, the fences are stacked, and when the outer fence is triggered and the triggered state is maintained, the condition indicated by the next fence is detected, so as to reduce the power consumption. Alternatively, if it is detected that the condition indicated by the fence of the further outer layer is not currently satisfied, the detection of the condition indicated by the current fence is stopped. Alternatively, the pens may be retained, but only the conditions indicated by the pens are not detected. Optionally, the sensing module may also release the fence, and then subscribe to the fence again after each fence of the outer layer is triggered, which is not limited in the present application. It should be noted that, in the embodiment of the present application, subscribing to a fence may be understood as establishing a fence, or may be understood as having established a fence in advance, and detecting a condition indicated by a fence is started after subscribing to the fence.
S301b, the perception module indicates to the intelligent travel service and triggers the carving fence.
Illustratively, the perception module sends instruction information to the smart travel service for instructing and carving fence triggering. Optionally, the indication information may include a site name, which is used to indicate a site corresponding to the triggered and scored fence.
S302a, the smart travel service indicates to the perception module to register the high-precision fence.
Illustratively, the smart travel service receives an indication of the perception module, determines that the subway station (e.g., a national library subway station) and the fence carving trigger, and then sends indication information to the perception module to indicate the perception module to register the high-precision fence. It can be understood that the hit fence is a fence in a thick range, and when the sensing module determines that the hit fence is triggered, it can be determined that the user arrives near the subway station. The handset can then perform subsequent high-precision fence identification. That is to say, only after the coarse-fine fence is satisfied, the identification of the high-precision fence is executed, so that the power consumption of the equipment is effectively reduced.
For example, as described above, the sensing module has obtained the station information of each subway station from the cloud, where the station information includes the station information of the current subway station, such as a national library subway station, including but not limited to at least one of the following: the name of the subway station, the position of the subway station, Wi-Fi information in the subway station, Bluetooth network information, cellular network information near the subway station and the like. The perception module responds to the indication of the intelligent travel service, and can subscribe the high-precision fence based on the acquired site information corresponding to the national library station.
Optionally, the conditions of the high precision fence include, but are not limited to, at least one of: bluetooth network information near a subway gate, Wi-Fi network information near the subway gate, and the like. Accordingly, the perception module may subscribe to the high-precision fence of the national library station based on Wi-Fi information and/or bluetooth network information in the site information of the national library station to detect whether the user arrives near the gate of the national library station.
Referring to fig. 4f, after subscribing to the high-precision fence, the perception module can detect the condition indicated by the high-precision fence. When the user continues to walk towards the subway gate to the user location shown in fig. 4f, the perception module may detect that the condition indicated by the high-precision fence is met, and the perception module may determine that the high-precision fence is triggered. That is, the perception module may confirm that the user arrives near a gate of the subway station.
The following description will be given taking as an example that the conditions indicated by the high-precision fence include a Wi-Fi network near a subway station. It should be noted that the conditions indicated by the high-precision fence include that the scenes in the bluetooth network are processed in a similar manner to the scenes in the Wi-Fi network, and a description thereof is not repeated. Referring to fig. 4g, the national library station illustratively includes one or more Access Points (APs) near the gate, which may include, for example, AP1, AP2, and AP 3. The Wi-Fi1 network of AP1, the Wi-Fi2 network of AP2, and the Wi-Fi3 network of AP3 cover the area of gates in national library stations. The station information of the national library station acquired from the cloud end by the sensing module comprises Wi-Fi network information of the national library station. The Wi-Fi network information includes but is not limited to: access point information for AP1, access point information for AP2, and access point information for AP 3. Access point information includes, but is not limited to: the name of the AP (which may also be the name of Wi-Fi), Wi-Fi address information of the AP, etc.
The perception module can subscribe the high-precision fence of the national library station based on the Wi-Fi network information of the national library station acquired from the cloud. The sensing module can acquire the Wi-Fi scanning result through the wireless communication module 160 of the mobile phone. In one example, the awareness module may instruct the wireless communication module 160 to perform Wi-Fi scanning to obtain nearby Wi-Fi information (including the name of the AP, address information, etc.). In another example, the wireless communication module 160 may periodically scan for nearby Wi-Fi and the perception module may invoke the scanning results of the wireless communication module 160. In yet another example, the wireless communication module 160 may perform Wi-Fi scanning in response to other applications in the handset, and the sensing module may also obtain the scanning results. In the embodiment of the present application, the sensing module periodically obtains the scanning result from the wireless communication module 160 as an example.
Illustratively, the perception module detects whether to enter a high-precision fence of a national library station based on the scanned result. Still referring to fig. 4g, illustratively, when the user walks from user location C in fig. 4e to user location D in fig. 4g, the perception module instructs the wireless communication module 160 to perform Wi-Fi scanning. Assuming that there is no Wi-Fi network coverage at the location, the wireless communication module 160 does not scan for Wi-Fi networks. The wireless communication module 160 reports the scanning result to the sensing module. And the perception module determines that the high-precision fence is not triggered based on the acquired scanning result.
Continuing with FIG. 4g, the user illustratively walks to user location E. In this position, the wireless communication module 160 may scan to the Wi-Fi1 network and obtain access point information for the AP 1. Illustratively, the wireless communication module 160 reports the scanning result to the sensing module. The awareness module obtains access point information for the AP 1. The perception module matches the identification information of the AP1 with the Wi-Fi network indicated by the high-precision fence of the national library station, and determines that the matching is successful. The sensing module determines a high precision fence trigger for a national library station. That is, the user has reached the vicinity of the gate of the national library station.
In one possible implementation manner, the sensing module may determine a communication quality parameter of the Wi-Fi network based on the received Wi-Fi signal (the concept may refer to the above), and when the communication quality parameter of the Wi-Fi network is greater than a threshold, it may be determined that the high-precision fence is triggered. For example, the obtaining manner of the threshold corresponding to the communication quality parameter of the Wi-Fi network may refer to the obtaining manner of the threshold of the cellular network, and a repeated description is omitted here.
S302b, the perception module indicates the high precision fence trigger to the smart travel service.
Illustratively, after the perception module determines that the high-precision fence is triggered, the high-precision fence is indicated to the smart travel service to be triggered.
In a possible implementation manner, after the smart travel service determines that the high-precision fence is triggered, it may be further determined whether a subway station (e.g., a national library station) where the user is currently located is a start station of the subway travel. Optionally, as described above, the smart travel service or awareness module may maintain a swipe record, which optionally includes but is not limited to: ingress/egress information, site information, etc. Illustratively, the inbound/outbound information is used to indicate whether the swipe record corresponds to outbound or inbound. The station information is used for indicating the subway station where the codes are refreshed to enter or exit. The smart travel service can obtain the latest code swiping record. When the last time the code is swiped to the station, the station where the user is currently located is determined to be the starting station, and S303a is executed. In another example, when the last time of the code swiping record is the inbound, it may be determined that the current station is not the start station, it may be understood that the user has swiped the code inbound, the current flow is ended, and S201a is executed again.
In another possible implementation, some sites within a city may be provided with only and carved fences, but with high precision fences. For example, some stations have a cellular network nearby, but there is no bluetooth network or Wi-Fi network in the station, and accordingly, for the stations, the information for subscribing the high-precision fence, such as the Wi-Fi information of the stations, is not included in the station information stored in the cloud. For such stations, after subscribing and carving the fence and determining that the station is triggered by carving the fence, the sensing module detects that information required by the high-precision fence of the station is not acquired, and executes S303a without subscribing the high-precision fence, that is, executes subsequent indoor and outdoor detection.
In yet another possible implementation, for some sites, for example, sites connected with a mall and sites located underground, the sensing module may not perform indoor and outdoor detection on such sites to further save power consumption, and the application is not limited thereto.
S303a, the smart travel service indicates to the perception module to register the indoor fence.
Illustratively, the smart travel service sends instruction information to the perceiving module for instructing the perceiving module to register an indoor fence to detect whether the user enters a subway station. For example, referring to (1) of fig. 5, Wi-Fi in a subway station may leak through a door of the subway, i.e., when a handset is located at user location 1 shown in (1) of fig. 5, the handset may scan for Wi-Fi in the subway station. Accordingly, the perception module determines a high-precision fence trigger in this case. If the mobile phone pops up the bus card (a specific concept will be explained in the following embodiments) under the condition of high-precision fence triggering (or after confirming that the current station is the starting station), improper card popping up will cause interference to users who pass through the subway station instead of the bus. In the embodiment of the application, the mobile phone can further combine indoor and outdoor judgment to reduce the probability of the problem of mistakenly popping the riding card.
Illustratively, the awareness module subscribes to the indoor fence in response to an indication of a smart travel service to detect whether the user enters a subway station. The conditions indicated by the indoor pens include, but are not limited to, at least one of: GPS satellite search conditions and lighting conditions. In the embodiment of the present application, only the GPS satellite search situation and the illumination situation are taken as examples for description. In other embodiments, the sensing module may also subscribe to the indoor fence based on other conditions, for example, conditions such as detected noise, and the like, which is not limited in this application.
Illustratively, the sensing module subscribes to the indoor fence, and in a scene that the indoor fence indicates that the condition includes a GPS satellite search situation, the sensing module indicates the GPS module in the mobile phone to search for a positioning satellite. The sensing module may periodically (for example, the period duration is 5s, which may be set according to actual requirements, and is not limited in this application) acquire the positioning satellite search result. Optionally, the search results include, but are not limited to: the number of positioning satellites searched and the communication quality parameter with each positioning satellite (the concept can be referred to above).
In a possible implementation manner, if the number of positioning satellites indicated in the positioning satellite search results acquired by the sensing module in the period is less than the satellite number threshold, and/or the communication quality parameter is less than the satellite communication quality parameter threshold, the sensing module may determine that the user enters the room, that is, the indoor fence trigger. That is, in one example, an indoor fence trigger may be determined when the sensing module detects a decrease in the number of satellites to a threshold. In another example, an indoor fence trigger may be determined when the sensing module detects that a communication quality parameter of a satellite decreases to a threshold. In yet another example, an indoor fence trigger may be determined when the sensing module detects that the number of satellites has decreased to a threshold and the communication quality parameter has decreased to a threshold.
In an example, the threshold value of the number of satellites is optionally one third (or one half, which may be set according to actual needs, and is not limited in this application) of the number of satellites acquired in the last period. The communication quality parameter threshold may optionally be one third (or one half, which may be set according to actual needs, and is not limited in this application) of the communication quality threshold obtained in the previous cycle. That is to say, when the number of the positioning satellites searched in the present period is less than one third of the number of the positioning satellites searched in the previous period, and the satellite communication quality parameter acquired in the present period is less than one third of the satellite communication quality parameter acquired in the previous period, it is determined that the user enters the room and the indoor fence is triggered. In another example, the threshold of the number of satellites and the threshold of the satellite communication quality parameter may be set fixed thresholds, which is not limited in this application. Optionally, the threshold of the number of satellites and the threshold of the satellite communication quality parameter corresponding to each subway station may be the same or different, and the present application is not limited thereto.
In another possible implementation manner, as described above, the sensing module may continue to detect the high-precision fence after subscribing to the high-precision fence. When the sensing module detects that the mobile phone is not in the high-precision fence, for example, the mobile phone cannot scan a Wi-Fi network or a Bluetooth network in a subway station, the sensing module can determine that the user does not enter the room, and detect the high-precision fence again.
In yet another possible implementation, the perception module may set a detection period fence, and the detection period fence may indicate a maximum number of detections. For example, the maximum number of detections indicated by the detection cycle fence is 3. Correspondingly, the sensing module acquires the GPS satellite searching condition at the arrival time of the 3 rd detection period, and if the GPS satellite searching condition still does not satisfy the indoor fence, the sensing module ends the current process and returns to S201 a.
For example, the sensing module subscribes to the indoor fence, and in a scenario where the condition indicated by the indoor fence includes a lighting condition, the sensing module indicates a sensor (e.g., a proximity light sensor) in the mobile phone to obtain a lighting detection result. The light detection results include, but are not limited to, illumination intensity.
In a possible implementation manner, if the illumination intensity acquired by the sensing module in the period meets a set condition, the indoor fence trigger may be determined. In an example, the setting condition may be that a difference between the illumination intensity in the present period and the illumination intensity obtained in the previous period is greater than a threshold (which may be set according to actual needs, and this application is not limited). It can be understood that if the fluctuation between the illumination intensity in the present period and the illumination intensity in the previous period is large, it is considered that the user enters the subway station. For example, in the daytime, after a user arrives at a station, the illumination intensity in the subway station is smaller than that outdoors. Accordingly, the sensing module may detect that the illumination intensity acquired in the current period may be one-half of the illumination intensity acquired in the last period. For another example, at night, after a user arrives at a station, the illumination intensity in the subway station is greater than that outdoors. Accordingly, the sensing module may detect that the intensity of light acquired in the current period may be twice the intensity of light acquired in the previous period. In another example, the set condition may be a set threshold, for example, at 5 points to 17 points, the light intensity threshold is set to the light intensity threshold 1, and at 17 points to 5 points, the light intensity threshold is set to the light intensity threshold 2. Optionally, the illumination intensity threshold 1 is greater than the illumination intensity threshold 2. The sensing module can determine whether the set condition is met or not based on the current time and the acquired illumination intensity in the period. For example, at 6 a.m., the illumination intensity acquired by the sensing module is less than the illumination intensity threshold 1, it may be determined that the user enters a subway station, i.e., an indoor fence trigger. For another example, at 8 pm, if the illumination intensity acquired by the sensing module is greater than the illumination intensity threshold 2, it may be determined that the user enters a subway station, that is, an indoor fence is triggered. Other undescribed parts may refer to the relevant content of the GPS satellite situation condition, and are not described herein again.
The indoor fence detection is exemplified below with reference to the application scenario diagram shown in fig. 5. Referring to (1) of fig. 5, illustratively, the user walks to user location 1, where user location 1 is outside the door of the subway station and the Wi-Fi network inside the subway station covers a portion of the area outside the door. The perception module determines that a Wi-Fi network in a national library station is detected and determines that a high-precision fence is triggered. Perception module instructs the high accuracy rail to trigger to wisdom trip service. After the intelligent travel service determines that the station is the starting station, the sensing module is indicated to register the indoor fence. The sensing module indicates a GPS module of the mobile phone to start satellite searching so as to obtain satellite searching results, wherein the satellite searching results comprise the number 1 of the searched positioning satellites and the communication quality parameter 1. And the sensing module acquires the current illumination intensity 1 from the sensor. The sensing module detects that the number 1 of the positioning satellites is larger than a satellite number threshold value, the communication quality parameter 1 is larger than a communication quality parameter threshold value, the illumination intensity 1 is larger than an illumination intensity threshold value 1, and the sensing module determines that the condition of the indoor fence is not met. Referring to fig. 5 (2), the user walks to user location 2, user location 2 is located in a subway station room, and a Wi-Fi network within the subway station covers the area. The sensing module determines that an indoor detection period arrives, and the sensing module instructs a GPS module of the mobile phone to start satellite searching so as to obtain a satellite searching result, wherein the satellite searching result comprises the number 2 of the searched positioning satellites and a communication quality parameter 2. And the sensing module acquires the current illumination intensity 2 from the sensor. The sensing module detects that the number 2 of the positioning satellites is smaller than a satellite number threshold value, the communication quality parameter 2 is smaller than a communication quality parameter threshold value, the illumination intensity 2 is smaller than the illumination intensity threshold value 2, and the sensing module determines that the condition of the indoor fence is met, namely the indoor fence triggering.
S303b, the perception module indicates the indoor fence trigger to the smart travel service.
Illustratively, after determining that the indoor fence is triggered, the sensing module sends indication information to the smart travel service to indicate that the indoor fence is triggered. The intelligent travel service responds to the indication of the sensing module and determines the triggering of the indoor fence, namely, the user enters the subway station and arrives near the gate. The card by bus can pop up in wisdom trip service.
Optionally, the indication information sent by the perception module to the smart travel service may include a site name of the current site. The smart travel service can generate a riding card based on the station name and display the riding card in the display screen.
Fig. 6 is a schematic diagram of an exemplary illustrated ride card. Referring to fig. 6 (1), for example, the smart travel service displays a riding card 602 in a display interface 601. Illustratively, the ride card 602 may be located in an upper display area of the display interface 601. Optionally, in other embodiments, the riding card 602 may also be in other positions, and the size may also be set according to actual needs, which is not limited in this application.
Still referring to (1) of fig. 6, a prompt message "subway ride code" may be included in the ride card 602 for indicating that the ride card 602 is a subway travel card. Alternatively, the prompt message may also be the name of the application to be jumped, e.g., "XX application subway ride code". The present application is not limited.
Continuing to refer to fig. 6 (1), for example, as described above, the smart travel service may obtain the name of the current station from the perception module, and accordingly, the riding card 602 may further include but is not limited to: information on the current site (e.g., the name of the current site, i.e., a national library site), etc.
Optionally, a swipe option 6021 may also be included in the ride card 602. The user may click on the swipe option 6021. As shown in (2) of fig. 6, when the mobile phone receives a click operation of the user, a subway taking code interface 603 (which may also be referred to as a subway taking code service interface, a subway trip service interface, a code swiping interface, etc.) of the payment application may be displayed. The subway bus interface 603 may include, but is not limited to: taxi taking travel service option, bus travel service option, subway travel service option 604, air ticket travel service option, and subway travel bus number display box 605. The subway trip code display frame includes, but is not limited to, prompt information (i.e., "beijing track transportation code") and a subway trip code graphic 6051 (which may also be referred to as a subway trip two-dimensional code, a subway trip code, etc.). Optionally, in the embodiment of the present application, the car code is taken as a two-dimensional code as an example, in other embodiments, the car code may also be a barcode, and the like, which is not limited in the present application. It should be noted that, in this example, only the subway train taking code interface is described as an example, in which after receiving the operation of clicking the code swiping option 6021 by the user, the user jumps to the payment application. In other embodiments, the application jumped after the mobile phone receives the operation of clicking the code swiping option 6021 by the user may be a code swiping application used last time by the user, for example, a payment application, or another application having a code swiping service (i.e., a subway code swiping service). Alternatively, the application jumped may be an application frequently used by the user. The present application is not limited.
In one possible implementation, an application that can be used for code swiping, such as an application with subway car code service, such as a payment application or a chat application, may not be installed in the mobile phone. The mobile phone responds to the received operation that the user clicks the code swiping option 6021, detects that the application for code swiping is not installed in the mobile phone, and the smart travel service can acquire the application for code swiping supported by the city where the mobile phone is located from the cloud. For example, after the smart travel service detects that the application for code swiping is not installed in the mobile phone, the smart travel service may send an application recommendation request to the cloud, where optionally, the application recommendation request includes information of a current city of the mobile phone, such as "beijing". The cloud end responds to the received application recommendation request, and finds applications which are supported by the current city (such as Beijing) where the mobile phone is located and can be used for code swiping. Optionally, the cloud may recommend the found applications to the smart travel service. Optionally, the cloud may also recommend the most used applications for code swiping to be served by the smart application. The example of recommending payment application to the smart travel service by the cloud is taken as an example for explanation. For example, the smart travel service may display a prompt box on the display screen, and the prompt box may include a prompt message "download payment application, experience riding code service, and go to application market for download". The prompt box may include a "cancel" option and an "go to immediately" option. The user may click on the "go to immediately" option to download the payment application in the application marketplace.
In another possible implementation, the handset may have installed an application for code swiping, such as a payment application, but the user has not logged into the payment application. Illustratively, after the smart travel service detects that the user clicks the code swiping option 6021 and jumps to the payment application, the payment application detects that the user is not logged in, and the payment application may display a user login interface. After the user successfully logs in (i.e., inputs the verification code or the password), the payment application displays a subway ride code interface.
In yet another possible implementation, the cell phone may have installed an application for code swiping (again taking the payment application as an example), and has logged in the payment application. However, the subway ride code service has not been opened by the payment application. That is, although the payment application includes the subway ride code service, since the subway ride code service is not opened, the subway ride code is not displayed in the interface of the subway ride code service for the moment. For example, after the intelligent travel service detects that the user clicks the code swiping option 6021, and jumps to the subway taking code interface of the payment application, the payment application detects that the subway taking code service is not opened, the payment application can display an opening option in the subway taking code interface, and the user clicks the opening option. And the payment application responds to the received user operation and opens the subway riding code service. After the subway bus code service is opened, the payment application displays the subway bus code in a subway bus code interface.
It should be noted that, in the embodiment of the present application, only the display interface 601 is taken as an example for description, and in other embodiments, the display interface 601 may also be another interface.
In one example, as shown in (1) of fig. 7a, the mobile phone is in a screen-locked state. The riding card 702 can be displayed in the screen locking interface 701 of the mobile phone. The display position may be set according to actual requirements, and the present application is not limited thereto, and other descriptions may refer to the related description of fig. 6, which is not described herein again. Optionally, if the mobile phone is in the screen-off state, the mobile phone may switch to the screen-locking state, and display the riding card on the screen-locking interface.
In another example, as shown in (2) of fig. 7a, the user may slide the cell phone display to display the negative one-screen interface 703. The riding card 704 can be displayed in the negative one-screen interface 703 of the mobile phone. Other descriptions can refer to the related description of fig. 6, and are not repeated here. Optionally, the mobile phone may also display the ride card in a drop-down menu.
In yet another example, as shown in (1) of fig. 7b, the currently displayed interface of the mobile phone is a chat application (which may also be another application, and is not limited in this application) interface, and as shown in (2) of fig. 7b, a riding card 706 is displayed in a chat application interface 705 of the mobile phone. Optionally, in this scenario, if the user does not operate the riding card 706 within a preset time period (for example, within 5s), or the user slides the riding card 706 upwards from the bottom of the riding card 706 (or another gesture may be set according to an actual requirement, which is not limited in this application), the mobile phone cancels the display of the riding card 706 on the current interface (for example, a chat application interface). For example, when the mobile phone exits the current application interface in response to the received user operation and displays the desktop, the mobile phone may display the riding card on the desktop.
In yet another example, as shown in (1) of fig. 7c, the currently displayed interface of the handset is a chat application interface. As shown in fig. 7c (2), a floating control 707 is displayed in the chat application interface 705 of the handset. Optionally, a subway travel icon (e.g., a black circle in the hover space 707) may be included in the hover control 707 to indicate that the hover control 707 corresponds to a subway ride code service to distinguish from other hover controls. Illustratively, the user clicks on the hover control 707. As shown in (2) of fig. 7c, the smart travel service expands and displays the hover control 707 in response to the received user operation. Optionally, the deployed hover control 707 includes, but is not limited to, at least one of: a current site name (e.g., a national library site), a corresponding service name (e.g., a subway ride code), and a flush option 7071. For example, the user may click the code swiping option 7071 to enable the mobile phone to jump to the subway riding code interface, and specific details may refer to the above, which is not described herein again. Optionally, in other embodiments, after the smart travel service displays the floating control 707 in the display interface of the mobile phone, the operation of the user clicking the floating control 707 is not received within a predetermined time period (for example, 5s), and the smart travel service hides the floating control 707. In one example, the hover control 707 may disappear. In another example, the suspended control 707 may leave only a portion displayed at the edge of the display interface. The user may expand the hover control 707 by clicking or sliding the portion of the display remaining on the screen of the hover control 707. In another example, the levitation control 707 can fade the display, and the degree of fading can be set according to actual requirements, which is not limited in this application. It should be noted that, when the application interface is displayed on the mobile phone, if the subway riding card or the suspension control needs to be popped up, the corresponding display mode can be selected according to the application setting. For example, when a cell phone displays a video application, a subway ride card may be displayed. When the video picture is displayed on the full screen of the mobile phone, the suspension control can be displayed and specifically can be set according to actual requirements, and the method and the device are not limited. It should be further noted that the size and position of the levitation control 707 shown in fig. 7c are only exemplary and should not be construed as limiting the present application.
Optionally, the cell phone may display the riding card on at least one of the above interfaces (desktop, lock screen, minus one screen, etc.). For example, the mobile phone may display the riding card on the screen lock interface and the desktop, that is, the mobile phone displays the riding card on the screen lock interface, and the mobile phone displays the desktop in response to the received unlocking operation, where the desktop includes the riding card.
In a possible implementation manner, while the smart travel service displays the riding card 602, the smart travel service can also remind the driver by at least one of the following manners: vibration prompts, sound prompts (prompt tones can be played through a loudspeaker or an earphone), screen flicker prompts, indicator light flicker prompts and the like.
In another possible implementation manner, the cards displayed in the display interface of the mobile phone may include multiple cards, for example, a flight travel card, a takeaway reminding card, and the like. The smart travel service displays the riding card 602, which is displayed on top. For example, the cards currently displayed by the mobile phone include a flight travel card and a takeaway reminding card. The mobile phone can display the current two cards in a training mode. Assuming that a flight travel card is currently displayed, for example, after the smart travel service generates the riding card 602, the riding card 602 is displayed on top, that is, the currently displayed card is the riding card 602, and other cards are superimposed below the riding card 602.
In one possible implementation, the smart travel service can pop up the riding card after determining that the high-precision fence is triggered. In another example, the smart travel service may pop up the ride card if it is determined that the current station is the first station.
In another possible implementation manner, if the smart travel service is turned off, the smart travel service may send instruction information to the perception module for instructing to release all fences. The perception module dismisses all fences in response to the received operation. For example, referring to (1) of fig. 7d, the intelligent assistant service interface 708 (i.e. the intelligent travel service) includes, but is not limited to, one or more controls, such as an intelligent voice option, an intelligent visual option, an intelligent screen option, and a "YOYO suggestion" option. The user may click on the "YOYO suggestions" option. As shown in (2) of fig. 7d, the mobile phone receives the user operation, and displays the YOYO suggestion interface 709. One or more options may be included in the YOYO recommendation interface 709, including, but not limited to, for example, an airline travel option, a calendar option, a subway ride code option, and more options 7091. Optionally, the status of the corresponding service may be included in each option. For example, if the subway ride code option is in an on state, the subway ride code option displays "turned on" to indicate that the subway ride code option is in an on state. The user can click on the subway ride code option. As shown in (3) of fig. 7d, the handset displays a service management interface 710 in response to the received user operation. The service management interface 710 may include options related to the subway ride code service, such as a subway ride code option (also referred to as an on/off option), a card set option, a floating window option, a notification option, a headphone announcement option, and the like. The subway bus taking code option is used for starting or closing subway trip reminding service. If the service is closed, the intelligent travel service releases all fences related to subway travel. The card set option is used to turn on or off the ride card prompt. If the function is started, the mobile phone can display the riding card. If the function is closed, the mobile phone does not display the riding card. The floating window option is used for opening or closing the floating window display mode, as described above, the subway taking service can be displayed in the interface in the form of floating control, and when the function is opened, the display in the form of floating window is allowed. If the function is off, the floating window is not allowed to display. The notification option is used to turn on or off service information in the notification bar. For example, if the user clicks a subway ride code option, the mobile phone, in response to the received user operation, closes a subway ride code service, that is, closes all services related to subway trips, and releases fences related to subway trips, that is, all fences related in the embodiment of the present application.
In yet another possible implementation manner, as described above, the fences of the perception module are all subscribed after the indication of the smart travel service, in other embodiments, the smart travel service may send an indication of subscribing the fences to the perception module, and the perception module may subscribe to all the fences described above based on the indication of the smart travel service and detect the fences according to the execution sequence between the fences. For example, the awareness module can subscribe to a swipe recording fence upon detecting a city fence trigger.
In the embodiment of the application, after a user enters a station and a mobile phone pops up a riding card, the mobile phone detects whether the user swipes a code. The embodiment of the application can provide a code swiping event subscription scheme to detect whether a user successfully swipes a code. In one example, the cell phone may successfully detect that the user swiped the code to the station and update the status of the ride card, such as shown in fig. 13, which may be updated from the ride status card in (1) of fig. 13 to the regular status card in (2) of fig. 13. A specific example will be illustrated in the related example of fig. 8. In another example, if the mobile phone fails to recognize that the user swipes a code to enter the station, the mobile phone may detect whether the user swipes a code to enter the station based on the subway fence. A specific example will be explained in relation to the example in fig. 14.
The following describes the code-swiping event subscription scheme in detail with reference to the flowchart of the code-swiping detection method shown in fig. 8. Referring to fig. 8, the method specifically includes:
s801, the intelligent travel service indicates a registration code swiping fence and an application fence to the perception module.
For example, in the embodiment of the present application, a subscription code swiping success event is taken as an example for description, that is, according to the technical scheme in the present application, whether a code swiping success event occurs can be accurately detected.
Illustratively, the smart travel service sends instruction information to the perception module for instructing the perception module to register the code swiping fence and the application fence. The application fence is used for subscribing whether a mobile phone runs a specific service of a specific application, and in the embodiment of the application, the specific service is a subway train number service (also referred to as subway travel service, subway code swiping service and the like). The code swiping fence is used for subscribing whether the mobile phone uses the subway bus code service, namely whether the code swiping is successful.
For example, the smart travel service may obtain whether each application installed in the mobile phone has a code swiping function (i.e., a subway bus code swiping function), and may also understand whether the smart travel service includes a code swiping service.
For example, after the payment application is installed in the mobile phone, the smart travel service may obtain the subway train code service provided by the payment application from the cloud or the description information of the payment application. For another example, after the chat application is installed in the mobile phone, the smart travel service may obtain the subway number service provided by the chat application from the cloud or the description information of the chat application.
It should be noted that, for the chat application and the payment application, the application includes a plurality of sub-services, for example, the chat application includes but is not limited to: chat services, applet services, financial services, etc.
The indication information sent by the intelligent travel service to the perception module can include an application program identifier of an application containing the subway bus number service installed in the mobile phone, so that the perception module is indicated to register the application fence based on the application program identifier indicated by the intelligent travel service.
In a possible implementation manner, the application program indicated by the smart trip may be all applications including subway ride code services installed in the mobile phone.
In another possible implementation manner, the application program indicated by the smart trip may be an application of a subway ride code service included in an installed part of the mobile phone. For example, the mobile phone includes an application a, an application B, and an application C, and each of the applications a to C includes a subway ride code service. The application A opens the subway taking code service, and the application B and the application C do not open the subway taking code service. Correspondingly, the indication information sent by the smart travel service to the perception module includes the application program identifier of the application a, but does not include the application program identifier of the application C and the application program identifier of the application B. That is, the handset only subscribes to whether application a has a code-swiping event, and does not subscribe to application B and application C.
S802, the sensing module registers an application fence and a code swiping fence.
Illustratively, the awareness module registers the application pens and the swipe pens in response to an indication of a smart travel service.
Illustratively, the application fence is used for the sensing module to detect the foreground application so as to detect whether the currently running foreground application is a designated application (i.e. an application containing a subway ride code service). After the specific application is determined, the sensing module can further detect whether the specific application runs the subway riding code service.
After receiving the indication of the smart travel service, the sensing module can acquire application program identifiers of all applications including the subway taking code service and Activity identifiers of the corresponding subway taking code service from the cloud.
Alternatively, the identification of the application may be the package name of the application. For example, the application package name of the chat application is XX chat. The package name of the application is set by the application developer, and the application is not limited.
Optionally, the Activity identifier is used to indicate an identifier corresponding to the sub-function runtime in the application. The Activity identifier can be understood as an Activity identifier when each service (or function) of the application runs. For example, taking a chat application as an example, the mobile phone starts the chat application in response to the received user operation, the chat application starts and is displayed in the foreground, and the window Manager (which may also be an Activity Manager) may obtain an application program identifier of the chat application, such as "chat application". The chat application may start a subway ride code applet in response to the received user operation. The window manager can obtain the identifier corresponding to the service (also called an activity, namely a subway ride code applet) currently running by the chat application.
For example, the sensing module may query an Activity identifier of a subway taking code service corresponding to the application identifier based on the application identifier indicated by the intelligent travel service, and register the application fence based on the application identifier and the Activity identifier of the subway taking code service to monitor whether the subway taking code service in the application subscribed by the intelligent travel service is running.
In the embodiment of the application, the application program identifier and the activity identifier of the subway taking code service can form the identifier of the subway taking code service. That is, the awareness module can subscribe to the application fence based on the identity of the subway ride code service.
In a possible implementation manner, after receiving the instruction of the smart travel service, the sensing module may obtain, from the cloud, an Activity identifier of the subway ride code service corresponding to the application indicated by the smart travel service. For example, in the embodiment of the application, the mobile phone is provided with a payment application and a chat application, and both the payment application and the chat application comprise subway bus number services. The smart travel service may send the application identification of the payment application and the application identification of the chat application to the awareness module. The sensing module can acquire the identifier of the subway riding code service of the payment application and the identifier of the subway riding code service of the chat application from the cloud. And registering an application fence based on the identifier of the subway riding code service of the payment application and the identifier of the subway riding code service of the chat application, namely detecting whether the subway riding code service of the payment application and the subway riding code service of the chat application run or not.
Illustratively, the code swiping fence is used for detecting a currently running subway boarding code service by a sensing module so as to detect whether a code swiping event occurs.
For example, a swipe fence can include a plurality of sub-fences, including, but not limited to: timer rail, brush yard interface rail, turn over wrist rail and brush yard success interface rail etc..
For example, the sensing module may obtain, from the cloud, a feature event corresponding to a code swiping interface and a feature event corresponding to a code swiping success interface of the subway ride code service of each application. For example, the code swiping interface is optionally an interface of the subway bus code service, which includes the subway bus code, such as (2) in fig. 6, and the code swiping success interface is optionally an interface displayed after the user successfully swipes the code using the subway bus code service, such as (2) in fig. 11. In general, the contents of the code swiping interface and the code swiping success interface are completely different or partially different.
Illustratively, when the sensing module detects that the interface of the subway bus stop service includes a feature event corresponding to the stop interface, it may be determined that the stop interface fence is triggered.
Illustratively, when the sensing module detects that the interface of the subway train code service comprises a characteristic event corresponding to a code swiping success interface, the fence trigger of the code swiping success interface can be determined, namely, the code swiping event is determined to occur.
In a possible implementation manner, the cloud may store feature events corresponding to different subway ride number services (including a feature event corresponding to a code swiping interface and a feature event corresponding to a code swiping success interface, which are not described repeatedly below). Accordingly, the sensing module can register a code swiping fence based on all feature events obtained from the cloud. Optionally, the code swiping fence may include a feature event corresponding to each application. Taking the chat application as an example, the code swiping fence may include a characteristic event corresponding to the subway ride code service of the chat application.
In another possible implementation manner, the sensing module may register a code swiping fence based on a feature event of the subway ride code service corresponding to the application indicated by the intelligent travel service. For example, the sensing module acquires a characteristic event of a subway riding code service corresponding to an application specified by the intelligent travel service from the cloud. The sensing module can subscribe the code swiping fence based on the characteristic event of the subway riding code service corresponding to the designated application.
In another possible implementation manner, the sensing module registers a code swiping fence based on a feature event of a subway riding code service corresponding to an application triggering the application fence. For example, the sensing module obtains identifiers of subway riding code services corresponding to a plurality of applications from the cloud, which are hereinafter referred to as subway riding code service identifiers (i.e., Activity identifiers of application program identifiers and subway riding code services), and the description is not repeated below. In the following embodiments, the sensing module detects the identity of the subway ride code service of application a and confirms that the application fence is triggered. The sensing module can register a code swiping fence based on a characteristic event corresponding to the subway passenger code service of the application A.
Alternatively, the characteristic event may include, but is not limited to, a window content change event of a subway ride code service. For example, when the user succeeds in code swiping, the window of the subway bus code service is switched from the currently displayed bus code interface (for example, as shown in (2) in fig. 6) to the code swiping success interface (for example, as shown in (2) in fig. 11), and the sensing module may detect whether the subway bus code service succeeds in code swiping by detecting a change in the content of the window of the subway bus code service. The specific embodiments will be described in detail in the following examples.
It should be noted that the characteristic events of the subway ride code service corresponding to different applications may be the same or different, and the present application is not limited thereto. For example, the cloud may maintain feature events corresponding to subway ride code services for each application. The cloud end can periodically push characteristic events corresponding to subway riding code services of all applications to all terminals (including mobile phones, flat panels and other devices). For example, the perception module may also periodically request the cloud for a feature set corresponding to the subway ride code service of each application installed on the mobile phone. For example, the perceiving module may send request information to the cloud, where the request information may include an application program identifier of the application indicated in S801 by the smart travel service, and a version number of the application. It should be noted that, the application version numbers are different, and the corresponding characteristic events may also be different. And the cloud end responds to the request of the perception module and feeds back the characteristic events of the subway riding code service corresponding to the specified version of the specified application to the mobile phone to which the perception module belongs. The perception module can re-register the code swiping fence based on the acquired feature events, and can also understand that the feature events defined by the code swiping fence are updated.
It should be noted that, in the embodiment of the present application, S801 and S802 may be executed after the mobile phone pops up the riding card 602. In other embodiments, S801 and S802 may be performed before or after any step of fig. 2 and 3, that is, the smart travel service may instruct the sensing module to register the corresponding fence in advance, and the sensing module may perform detection based on the registered fence.
S803, the window manager detects an application activity.
S804, the window manager sends the application identifier and the activity identifier to the perception module.
For example, as described above, the window manager may obtain an application identifier corresponding to the running application and an Activity identifier (which may be, for example, an Activity class name) corresponding to the service run by the application. The manner in which the window manager obtains the application identifier and the Activity identifier may refer to the related description in the prior art embodiment, and is not described in detail in this application.
Optionally, the window manager may periodically send the application identifiers of the applications running in the period and the Activity identifiers of the services to the awareness module.
Optionally, the window manager may also send the identity of the running application and the Activity identity to the awareness module in case of an Activity update. For example, when the payment application runs, the window manager acquires the application program identifier of the payment application and the Activity identifier of the currently running service (such as a financial service), and the window manager sends the application program identifier of the payment application and the Activity identifier of the financial service to the perception module. And when the payment application responds to the received user operation, displaying a subway riding code interface. The window manager acquires an application program identifier of the payment application and an Activity identifier of the subway ride code service. The window manager sends the identifier of the subway taking code service of the payment application (namely, the application program identifier of the payment application and the availability identifier of the subway taking code service) to the perception module.
For example, as shown in FIG. 6, the cell phone displays a swipe interface 603 for the application in response to operation of the received swipe option 6021. The window manager obtains an application program identification of the currently running application (i.e., the payment application) and an Activity identification of the running Activity (e.g., the subway ride code service). The window manager sends a service identifier of a currently running service, namely a subway riding code service identifier (namely an Activity identifier comprising an application program of a payment application and the subway riding code service), to the perception module, and the perception module determines application fence triggering based on the acquired riding code service identifier. The specific flow may refer to S805.
S805, the sensing module detects an application fence trigger.
Illustratively, as described above, the awareness module registers the application fence based on the identification of the subway ride code service of the application (i.e., the application identification of the application and the Activity of the subway ride code service). The perception module identifies the application identifier and the Activity identifier sent by the window manager to determine whether the application identifier and the Activity identifier hit the application identifier and the Activity identifier in the application fence.
For example, as described above, after the subway ride code service of the payment application is started, the sensing module may receive the subway ride code service identifier (that is, the identifier includes the application program of the payment application and the Activity identifier of the subway ride code service) of the payment application, which is sent by the window manager. And the sensing module matches the received subway riding code service identification with the subway riding code service identification indicated in the application fence. And the sensing module determines that the subway riding code service identifier is successfully matched, namely the currently running service is determined as the subway riding code service, and further determines the trigger of the application fence.
It should be noted that, in some scenarios, a user may not enter the subway ride code service through the ride card. For example, as shown in fig. 9 (1), one or more controls are included in the display interface 901, including but not limited to: battery power controls, network controls, application icon controls, and the like. The application icon controls include a payment application icon control 902, a chat application icon control, and the like. The user may click on the payment application icon control 902. As shown in (2) of fig. 9, the mobile phone displays a payment application interface 903 in response to the received operation, where the payment application interface 903 includes, but is not limited to: a travel option, a collect and pay option, a travel option 904, and a card package option. Illustratively, the window manager acquires that the currently running service is a main service of the payment application, and acquires an identifier of the main service (i.e., an application identifier of the payment application and an Activity identifier of the main service). The window manager sends the identity of the master service to the awareness module. And the perception module matches the identifier of the main service with the subway riding code service identifier indicated in the application fence. And the sensing module determines that the matching fails, namely the currently running service is not the subway riding code service. As shown in (2) of fig. 9, the user clicks on the travel service 904. As shown in (3) of fig. 9, the payment application executes the travel service in response to the received user operation. Optionally, the travel service includes a taxi taking service, a bus service, a subway train number taking service, an air ticket service, and the like. In this embodiment of the application, the payment application may automatically open one of the services frequently used by the user or used last time, for example, the subway ride code service used last time, and then, the payment application displays the subway ride code interface 905 in response to the received user operation. The description of the subway riding code interface can refer to the related content of (2) in fig. 6, and the details are not repeated here. The window manager acquires an identifier of a currently running service (namely, a subway riding code service), and sends the identifier of the subway riding code service to the sensing module. The sensing module determines that the application fence is triggered based on the received subway riding code service, and specific details can refer to the above and are not repeated here.
S806, the sensing module requests event information of the application from the barrier-free service.
For example, the barrier-free service for text-to-speech, haptic feedback, gesture navigation, trackball, and directional navigation may provide barrier-free functionality for the application, making the application more barrier-free. One of the most important functions of the barrier-free service configuration parameters is to allow the developer to specify the types of barrier-free events that the barrier-free service can handle. Successfully specifying this information enables collaboration between barrier-free services and allows developers the flexibility to handle specific event types for specific applications. Event filtering may include the following rules: package name and event type. The package name is an application package name that specifies an unobstructed event that the unobstructed service is intended to handle. If the parameter is omitted, the barrier-free service will be treated as a barrier-free event that services any application. The event type is used to specify the type of barrier-free event that the developer wants barrier-free service processing. For example, types may include, but are not limited to: click events, window content changes, window state changes, scroll event operations, and the like.
In the embodiment of the present application, the awareness module sends request information to the barrier-free service, where the request information includes, but is not limited to, an application identifier (e.g., an application package name) and an event type, and is used to instruct the barrier-free service to feed back, to the awareness module, a specified event that includes an application occurrence indicated by the application identifier.
Exemplary, as described above, the types of events for barrier-free service monitoring include, but are not limited to: click events, window content changes, window state changes, scrolling events, and the like. In the embodiment of the present application, the event type information in the request sent by the awareness module to the barrier-free service may include, but is not limited to: a window content change event type to instruct the barrier-free service to feed back the window content change event for the specified application to the perceiving module.
In the embodiment of the present application, only the window content change event is taken as an example for description. In other embodiments, the feature events may be of other types, for example, may be of window state change events, and accordingly, the awareness module may register a window state change type with the barrier-free service.
S807, the barrier-free service transmits the event information of the application to the sensing module.
For example, the barrier-free service may listen to a specific application (i.e., the application indicated by the application identification) based on a request of the awareness module to identify whether a specific event has occurred. For example: changes in the displayed content in the window, etc.
Illustratively, each time the barrier-free service detects a specific event of an application, the barrier-free service sends page layout information to the sensing module, where the page layout information includes the specific event that occurs this time and description information corresponding to the specific event.
And S808, detecting the trigger of the code swiping fence by the sensing module.
Fig. 10 is a schematic flowchart illustrating a process of subscribing to a code swiping fence by a perception module, please refer to fig. 10, which specifically includes:
and S1001, registering the timing fence by the sensing module.
Illustratively, the perception module registers the timing fence. Optionally, the timed length of the timed pen is 3 minutes. In other embodiments, the timing duration may also be set by other values, which may be specifically set according to actual requirements, and the present application is not limited. For example, the set timing duration may be used to limit an interaction duration between the sensing module and the barrier-free service, for example, within 3 minutes, if the sensing module does not detect a code swiping fence trigger, the process is ended, and the sensing module sends stop feedback information to the barrier-free service, where the stop feedback information includes an application program identifier for instructing the barrier-free service to stop feeding back event information of the application.
Optionally, the timing fence may also be set after S805, and the application is not limited thereto.
And S1002, registering a code swiping interface fence by the sensing module.
For example, the sensing module identifies information in event information of an application sent by the barrier-free service to detect whether a currently displayed interface is a code-swiping interface.
It should be noted that, for example, in the case of a chat application, multiple applets of the chat application may have the same Activity identifier. For example, the Activity of the ticket buying applet and the subway ride code applet may be the same. The sensing module can detect whether to open the interface of the subway bus taking code small program by subscribing and reading the code brushing interface fence. And after determining to open the interface of the subway riding code small program, performing subsequent code swiping event detection.
For example, as described above, the sensing module may obtain, in advance, the feature event corresponding to the display interface (i.e., the code swiping interface) of the subway ride code applet of the chat application from the cloud, and the obtaining manner may refer to the above, which is not described herein again. In the embodiment of the application, the sensing module can register the code refreshing interface fence based on the acquired characteristic events corresponding to the display interface of the subway riding code applet. In other embodiments, the code swiping interface fence further includes a characteristic event corresponding to a display interface of other subway car-riding code services in the mobile phone, which is not limited in the present application.
For example, the awareness module identifies information in event information of an application sent by the barrier-free service to detect whether a characteristic event indicated by a code-swiping fence is included.
S1003, the sensing module determines that the code swiping interface fence is triggered.
In one example, the awareness module may determine that the code swiping fence triggers if the awareness module detects that the page layout information of the application includes the characteristic event indicated in the code swiping fence.
In another example, if the sensing module detects that the application interface does not include the feature event indicated in the code swiping fence, the sensing module continues to wait for the next page layout information of the application fed back by the barrier-free service, and repeatedly executes the above step of identifying. Illustratively, as described above, the sensing module has started the timing fence, i.e., the timing is started. When the 3-minute timing is finished, if the sensing module still does not detect that the application interface comprises the characteristic event, the flow is finished, the sensing module sends stop feedback information to the barrier-free service, and the stop feedback information comprises an application program identifier and is used for indicating the barrier-free service to stop feeding back the page layout information of the application.
For example, as shown in (2) of fig. 6, the mobile phone displays a subway ride code interface 603 in response to the received operation. The barrier-free service may obtain content elements in the current interface (i.e., the subway ride code interface). Examples include: "taxi taking", "public transport", "subway", "air ticket", "Beijing rail transit riding code", "two-dimensional code", etc. The barrier-free service may send page layout information for the payment application to the awareness module. The page layout information includes window content change events including, but not limited to: the text content "taxi taking", the text content "public transport", the text content "subway", the text content "air ticket", the text content "Beijing rail transit riding code", the text content "two-dimensional code", and the like.
The perception module identifies the received page layout information of the payment application to determine whether the characteristic event indicated by the code swiping interface fence is included, which can also be understood as detecting whether the text content in the node includes the specified text content. For example, the characteristic events of the code swiping interface of the subway taking service, in which the sensing module can acquire the payment application from the cloud, include: the text content is 'Beijing rail transit bus code' and the text content is 'two-dimensional code'. The character events are included in the code swiping interface fence registered by the perception module. Illustratively, the awareness module matches information in the page layout information of the payment application for the clear service feedback with the feature events indicated by the swipe interface. The perception module determines the node: the content of the text is 'Beijing rail transit bus taking codes' and the content of the text is 'two-dimension codes', the matching is successful, and the sensing module determines that the current window of the payment application displays a code swiping interface, namely, the triggering of a code swiping fence is determined.
S1004, the sensing module registers a wrist turning fence and a code swiping success interface fence.
For example, in this embodiment of the application, the sensing module determines that an interface of a currently running subway bus code service displays a subway bus code (which may also be referred to as a subway bus two-dimensional code or a subway bus code graph, for example, the subway bus code graph 9071 in fig. 9), that is, after determining that the interface fence for swiping the code is triggered, the sensing module registers the wrist-turning fence and the interface fence for successfully swiping the code, so as to detect whether a user successfully swipes the code using the subway bus code. It should be noted that, in the embodiment of the present application, an interface fence and a wrist flipping fence for successfully registering and swiping a code for a sensing module are taken as an example for description. In other embodiments, the sensing module may also register any one of the wrist flipping fence and the code swiping success interface fence, which is not limited in this application.
Illustratively, the wrist-flipping fence is used for detecting a wrist-flipping action of a user. After the sensing module registers the wrist-turning fence, data can be acquired from an acceleration sensor and a gyroscope of the mobile phone so as to detect whether the user holds the mobile phone to turn over the wrist.
Illustratively, the code swiping success interface fence is used for detecting whether a current window (i.e., a window of a subway bus taking code service) displays a code swiping success interface. For example, as described above, the sensing module may obtain feature information corresponding to a code-swiping success interface corresponding to each application. After determining that the code swiping interface fence is triggered, the sensing module may subscribe the code swiping success interface fence based on the feature information corresponding to the code swiping success interface of the current application (e.g., the payment application) to determine whether the code swiping success of the subway car-riding code service of the current application is successful.
S1005a, the sensing module detects a successful interface of code swiping.
S1005b, the perception module determines that the code swiping succeeds in interface fence triggering.
Illustratively, after registering the successful interface fence for code swiping, the sensing module detects the page layout information of the application fed back by the barrier-free service to detect whether the page layout information includes the characteristic event corresponding to the currently running subway code swiping service.
For example, as shown in fig. 11 (1), the mobile phone currently displays a subway ride code interface of the payment application, and specific description may refer to relevant contents of fig. 6 (2), which is not described herein again. In one example, referring to fig. 11 (2), a user holds a mobile phone, and uses a subway train taking code of a payment application to swipe a code of a code swiping area close to a gate machine to enter a station by swiping the code. The subway riding code can be scanned by the code brushing area of the gate, and the subway riding code is sent to the server. And the server responds to the received subway bus taking code and sends a message of successful code swiping station entering to the payment application. The payment application determines that the code swiping is successful in response to the received code swiping inbound success message, and displays a code swiping success interface 1101. Optionally, the code swiping success interface of the payment application includes, but is not limited to: "welcome arrival", "national library" (i.e., name of current arrival station), and subway line information display box 1102, etc. The subway line information display box 1102 includes, but is not limited to: the station name of the current station ("national library (subway station)"), the line name ("line 4"), and related information of the subway line origination station and destination station.
That is to say, in the embodiment of the present application, the feature information indicated by the barcode swiping interface fence subscribed by the sensing module includes feature information corresponding to a barcode swiping inbound interface of an application (for example, a payment application, that is, an application to which the barcode swiping interface belongs), and feature information corresponding to a barcode swiping outbound interface. It should be noted that the scheme of code-swiping outbound will be described in the following embodiments.
Illustratively, the code swiping success interface 1101 is taken as an example. The barrier-free service may detect that the content of the currently displayed window, i.e., the window of the subway ride code interface, is changed, that is, a specific event registered by the sensing module occurs. And obtaining the content corresponding to the window content transformation event by the barrier-free service, and sending the page layout information of the payment application to the sensing module. The page layout information of the payment application includes, but is not limited to: the text content "welcome to the station", the text content "national library", the text content "line 4", the text content "drive to the north of the bridge of the Anhe river", and the like.
The sensing module receives page layout information of the payment application sent by the barrier-free service. And traversing information in the page layout information of the perception module to identify whether the characteristic events corresponding to the code swiping success interface of the subway bus code service of the payment application are included.
For example, the perception module detects: the text content ' welcome to enter the station ', the text content ' opening to the north of Anheqiao ' and the like ' window content transformation events are successfully matched with the characteristic events indicated by the code swiping success interface fence of the payment application, namely the currently displayed interface is determined to be the code swiping success interface, and the sensing module confirms that the code swiping success interface fence is triggered.
In one possible implementation, the awareness module may further determine that the current inbound or outbound is based on the content of the window content transformation event. For example, the perceiving module may obtain that the text content is "welcome to enter the station" from the page layout information, and the perceiving module may determine that the current behavior is a code swiping to enter the station.
And S1006a, detecting the wrist turning by the sensing module.
S1006b, the sensing module determines a flip fence trigger.
For example, as shown in (1) of fig. 12, after the user holds the mobile phone and clicks the subway ride code option, the mobile phone displays a subway ride code interface in response to the received user operation. As shown in fig. 12 (2), after the user successfully loads the subway taking code on the subway taking code interface, the user turns over the display screen of the mobile phone, so that the subway taking code displayed in the display screen of the mobile phone directly faces to the code swiping area of the subway gate. As described above, after subscribing the wrist-turning fence, the sensing module may acquire data detected by the acceleration sensor and the gyroscope of the mobile phone, and the sensing module may determine whether the user performs a wrist-turning action, that is, whether the mobile phone is turned over while displaying the subway riding code interface, based on the acquired data. If the sensing module determines that the mobile phone turns over, a wrist turning event happens, and the sensing module determines that the wrist turning fence is triggered.
And S1007, the sensing module determines that the code brushing is successful and releases the timer fence.
In one example, the perception module determines that the code swiping is successful and the interface fence trigger is determined, i.e., that the user swipes successfully.
In another example, the perception module determines a flip fence trigger, i.e., a swipe fence trigger, i.e., a user is determined to swipe a code successfully. It can be understood that the sensing module detects a successful code swiping interface and/or a wrist flipping action, and then the code swiping success can be determined.
For example, after the sensing module determines that the code is successfully refreshed, the timer fence can be released, i.e., the counting is stopped.
And S1008, the sensing module determines the trigger of the timing fence and removes the residual fence.
In one example, if the perceiving module does not detect a swiped interface for the timed length indicated by the timer fence (e.g., within 3 minutes), the perceiving module determines that the user is not swiped, and the perceiving module can remove the swiped interface fence. For example, a user opens a group purchase applet of a chat application at home, the service identifier of the group purchase applet is the same as the service identifier of a subway bus code applet, and accordingly, the sensing module triggers an application fence and executes subsequent steps. Within 3 minutes, the sensing module does not detect the code swiping interface, and the process is ended.
In another example, if the sensing module does not detect a wrist-flipping action or a code-swiping success interface after detecting the code-swiping interface within a timing duration (e.g., within 3 minutes) indicated by the timer fence, the sensing module determines that the user does not swipe the code, and the sensing module may release the wrist-flipping fence and the code-swiping success interface fence. For example, the user opens a subway bus code interface to inquire balance, the sensing module triggers the application fence and the code swiping interface fence, and within 3 minutes, the sensing module does not detect a successful code swiping interface or a wrist flipping action, and the process is ended.
It should be noted that the fence is released, that is, the sensing module no longer subscribes to the fence, that is, whether the condition indicated by the fence is satisfied is no longer detected.
And S809, the sensing module indicates the barrier-free service to feed back the event information of the application.
Illustratively, the awareness module sends stop feedback information to the barrier-free service, the stop feedback information including an application identification for instructing the barrier-free service to stop feeding back event information of the application. The barrier-free service stops feeding back event information of the specified application to the awareness module in response to the indication of the awareness module. Illustratively, the perception module deactivates the timing fence, i.e., stops the timing.
S810, the perception module indicates that the code swiping is successful to the smart travel service.
For example, after detecting that the code swiping fence is triggered, the sensing module may determine that the subway car code swiping event occurs in the subway car code service of the currently running application. The perception module sends indication information to the smart travel service, and the indication information can include an application program identifier to indicate that the application has a code swiping event.
In a possible implementation manner, the smart travel service (which may also be executed by the sensing module, and this application is not limited to) pops up a subway taking card, that is, a user arrives near a gate (including a gate of an inbound station and a gate of an outbound station), and the smart travel service may acquire network information of a current station, for example, acquire bluetooth network information and/or Wi-Fi network information. Optionally, the network information currently acquired by the smart travel service may be the same as or different from the network information indicated by the high-precision fence. In one example, after determining that the code swiping is successful, the smart travel service may send the acquired network information to the cloud. The cloud may periodically count network information reported by multiple users at the same site to update the site information of the site, for example, the cloud may update a threshold corresponding to a Wi-Fi network signal according to the strength of the Wi-Fi signal reported by the users (the concept may refer to the above, and details are not repeated here). For another example, a Wi-Fi network in a subway may be updated, for example, the Wi-Fi name and address information is updated, and the cloud may update the name and address information of the Wi-Fi network in the station based on the information reported by the user. The cloud end can send the updated site information to each device. In another example, the smart travel service does not receive the instruction of successful swiping code sent by the sensing module, for example, after the smart travel service pops up the riding card, the user cancels the display of the subway riding card through a sliding operation, or the user waits in a subway station and does not click the option of swiping code. In this example, the awareness module may indicate the timer fence trigger to the smart travel service upon determining that the user has not swiped the code, e.g., after the timer fence ends, the smart travel service may determine that the user has not swiped the code. The smart travel service can cancel the display of the subway riding card, and the smart travel service deletes the network information acquired at the current station.
In another possible implementation, as described above, the sensing module may acquire that the user is currently inbound. The instruction information sent by the perception module to the smart travel service may include inbound information to instruct the current user to enter the station.
In one example, as shown in fig. 13, the smart travel service determines that the swiping code is successful in response to the indication of the sensing module, and after entering the station by swiping the code, the smart travel service updates the currently displayed subway taking card 1302 (as the card in (2) of fig. 13, the subway taking card 1302 is referred to as a taking status card) to a subway taking card 1303, which may also be referred to as a normal status card. Optionally, the subway ride card 1303 includes, but is not limited to, at least one of the following: prompt information such as a subway taking code, a subway taking one code passing and a subway taking code in Beijing city, and the like, and a code swiping option 1304.
Optionally, when the smart travel service displays the conventional mode card, no other reminder may be made, that is, in the embodiment of the present application, the reminding intensity of the riding mode card is higher than that of the conventional mode card.
Optionally, the regular status card is not set as a set-top reminder. For example, when the number of cards displayed in the display interface 1301 is multiple, the mobile phone may poll to display multiple cards. Alternatively, when the card currently displayed on the mobile phone is another type of card, for example, a takeaway reminding card, the user may slide the card left and right to make the mobile phone display a normal card.
In the embodiment of the application, before the user leaves the station, all subway taking cards displayed by the mobile phone are conventional subway taking cards.
Optionally, the smart travel service may save the code swiping information. Illustratively, the flush information includes, but is not limited to, at least one of: the number of times of successful code swiping, the application (for example, payment application) used by the code swiping at this time, the site corresponding to the code swiping at this time, the information that the code swiping at this time is inbound or outbound, and the like.
Optionally, the wisdom trip service can carry out subway code service propelling movement by bus based on the code swiping information of record. For example, as described above with respect to fig. 6, after the user clicks the swipe option 6021, the mobile phone jumps to the subway ride code interface. In one example, the smart travel service may detect a subway number service that the user used last time, for example, a subway number service that may be a payment application, and the mobile phone displays the subway number service for the payment application in response to and receiving an operation of the user clicking the number swiping option 6021. In another example, the smart travel service may detect that the user uses the subway ride code service most frequently, such as the subway ride code service that may be a chat application, and the mobile phone displays the subway ride code service of the chat application in response to and in response to receiving an operation of the user clicking the swipe option 6021.
In the embodiment of the application, if the mobile phone fails to recognize that the user enters the station by swiping the code, the mobile phone can detect whether the user enters the station by swiping the code based on the subway fence. For example, after the user clicks the swipe option, the mobile phone displays the swipe interface in response to the received operation, and the sensing module subscribes the swipe interface fence and the wrist flipping fence, and after the user opens the swipe interface, the user may not execute the wrist flipping action, or the user has a small wrist flipping action amplitude, and the mobile phone may not detect the wrist flipping action. In this case, the mobile phone can only rely on the code swiping interface fence, i.e. detect whether to display a code swiping success interface. Due to transmission delay between the mobile phone and the server, before the mobile phone displays a successful code swiping interface, the user may press a power-on key, so that the mobile phone enters a screen-off state. Correspondingly, the sensing module cannot detect a successful code swiping interface, and determines that the user does not swipe the code after the 3-minute timing is finished. In fact, the user has swiped the code and enters the station, and the mobile phone does not detect the code. The embodiment of the application provides a subway trip detection method, which can detect whether a user enters a station by swiping a code based on a corresponding subway fence. Fig. 14 is a schematic flowchart illustrating an exemplary subway trip detection method, please refer to fig. 14, which specifically includes:
s1401, the perception module indicates to the intelligent travel service to leave and carve a fence.
For example, after the sensing module subscribes to and carves the fence, the sensing module can detect the fence all the time. It is to be understood that the perception module optionally always detects whether the current condition is met and the condition indicated by the fence. Of course, as described above, in order to save power consumption, it is not necessary to detect the hit fence when the user leaves the current city or when the user is riding a bike or riding a car. For the detailed description, reference is made to the above description, and no further description is given here.
For example, the awareness module may detect whether the user has left the geofence of the current site. For example, the awareness module detects that the mobile phone has left the geographic range indicated by the and fence of the current site (e.g., national library site) based on the current location information of the mobile phone, and the awareness module can determine that the mobile phone (which can also be understood as a user) has left the and fence of the current site.
After the sensing module determines that the mobile phone leaves the current station and carves the fence, the sensing module sends indication information to the intelligent travel service, and the indication information is used for indicating that the mobile phone leaves the current station and carves the fence. Optionally, the indication information may include and carve a fence identifier. Optionally, the fence marking identifier may be a name of a station corresponding to the fence marking, or may be other identifiers, such as a number, which is not limited in this application.
S1402, the intelligent travel service detects whether a code swiping interface is opened.
Illustratively, the smart travel service may detect that the phone has opened a code swiping interface. As described above, the sensing module can detect whether the mobile phone opens the code swiping interface based on the code swiping interface fence. After the sensing module detects that the code swiping interface fence is triggered, indicating information can be sent to the intelligent travel service to indicate that the code swiping interface fence is triggered. In this step, the smart travel service can determine that the code swiping fence has been triggered at the current station based on the indication information sent by the sensing module. It can be understood that, at the current station, the user opens the subway bus-taking code interface.
Optionally, the smart travel service may also send a detection request to the sensing module to request the sensing module to feed back whether the current station triggers the code swiping interface fence, and the sensing module may detect a fence triggering condition to feed back indication information to the smart travel service.
In one example, if the smart travel service detects that the user has opened the code swiping interface, S1403 is executed.
In another example, if the smart travel service detects that the user has opened the swipe interface, S1404 is performed.
S1403, the smart travel service determines that the user does not take the car, and the card disappears.
Illustratively, after the smart travel service detects that the user does not open the swiping code interface, the smart travel service determines that the user does not take a car and cancels the display of the card of taking a car. That is, after the mobile phone pops up the riding status card (for example, as shown in (1) of fig. 6), the user does not swipe the code to enter the station and leaves the current station. And the mobile phone cancels the display of the riding state card when detecting that the user leaves the station and the user does not swipe the code.
It should be noted that fig. 14 in the embodiment of the present application is a subway trip detection flow for inbound code swiping, and fig. 17 is a subway trip detection flow for outbound code swiping. The intelligent travel service may determine that the process of fig. 14 or 17 needs to be executed based on whether the current station is the head station (i.e., the start station described above). For example, in the embodiment of the present application, after the sensing module determines that the current station is the start station in S302b, the sensing module may store the corresponding relationship between the station name and the start station mark. When executing any one of steps S1401, S1402, or S1403, the smart travel service may determine, based on the start station mark, the station corresponding to the currently departing fence and the fence as the start station. Of course, the intelligent travel service may also determine whether the current station is the first station based on the code swiping record, and the specific detection process may refer to the description in S302b, which is not described herein again. For example, when the station corresponding to the fence and the station detected by the smart travel service to leave is the start station, the smart travel service executes the process shown in fig. 14. When the intelligent travel service detects that the station corresponding to the departure fence and the fence is a non-start station (including an approach station and an end station (i.e., an arrival station)), the intelligent travel service executes the process shown in fig. 17. For example, in this example, the intelligent egress service detects that the station corresponding to the departure fence is the start station, and executes the process shown in fig. 14.
S1404, the intelligent travel service detects whether the code swiping is successful.
For example, as described above, after the perception module determines that the code swiping is successful, it may send an indication message to the smart travel service to indicate that the code swiping is successful. Accordingly, the smart travel service may determine whether the code swiping has been successful based on the received indication information.
In one example, if the smart travel service determines that the user has left and carved the fence and does not receive the indication that the code swiping success is sent by the sensing module, the smart travel service performs S1406.
In another example, if the smart travel service detects that the indication information indicating that the code swiping sent by the sensing module is successful is received, the smart travel service performs S1405.
S1405, the intelligent travel service confirms arrival and displays the conventional card.
For example, as described above, after receiving the swiping code success indication information sent by the sensing module, the smart travel service may update the riding status card to the regular status card. That is to say, in this step, the mobile phone already displays the normal status card, and the smart travel service detects that the current normal status card is displayed, and does not process the current normal status card.
S1406, the intelligent travel service detects whether the movement status is the subway riding status.
Illustratively, the smart travel service determines that the user has left and carved the fence, opens the code swiping interface, and does not receive indication information of successful code swiping sent by the sensing module, and the smart travel service acquires the current motion state of the mobile phone. Optionally, the situation that the smart travel service does not receive the indication information that the code swiping is successful sent by the sensing module may be that the user swipes the code, but the sensing module fails to detect the code swiping; or it may be that the user has opened the swipe interface, but the user has not swiped the code to enter the station.
The intelligent travel service can acquire detection data from modules such as an acceleration sensor of the mobile phone, and judges whether the mobile phone is currently in a subway taking state based on the detection data, and specific judgment modes can refer to the above and are not repeated here.
In one example, if the smart travel service detects that the current motion state of the mobile phone is a subway riding state, that is, the user is on a subway in which the user is traveling, S1407 is executed.
In another example, if the smart travel service detects that the current motion state of the mobile phone is the no-subway state, or if the smart travel service fails to acquire the motion state of the mobile phone, then S1408a is executed. Optionally, the non-subway-ride state includes, but is not limited to: riding state, walking state, riding in a car state, etc.
S1407, the intelligent travel service determines to enter the station and displays the conventional card.
For example, the smart travel service may determine that the user has arrived at the station based on the detected motion state, and the specific processing process may refer to the related description of S810, which is not described herein again.
S1408a, the smart travel service indicates to the perception module to register the timing fence.
Illustratively, the smart travel service sends instruction information to the perception module for instructing the perception module to register the timing fence. Optionally, the timing fence may be 10 minutes, and may also be set according to actual requirements, which is not limited in this application.
The perception module responds to the indication of the intelligent travel service, subscribes to the timing fence, namely the perception module starts timing.
S1408b, the perception module indicates a time fence trigger to the smart travel service.
Illustratively, the timing fence trigger is determined after the sensing module timing (e.g., 10 minutes) is over. The perception module sends instruction information to the intelligent travel service, and the instruction information is used for instructing the timing fence to trigger.
S1409, the intelligent travel service detects whether the motion state is the subway riding state.
For example, after the smart travel service has an interval of 10 minutes, that is, after receiving the indication information sent by the sensing module after the timing is finished, the smart travel service may detect the exercise status again. For example, the user takes a subway, but the subway may be in a parked state when the intelligent travel service detects the moving state in S1406. Therefore, the motion state acquired by the intelligent travel service is a non-subway-riding state. After 10 minutes, the intelligent travel service acquires the motion state again to avoid the misjudgment problem. Of course, the above-mentioned scenarios are only adaptive examples, and other scenarios that may cause erroneous determination may exist, which are not illustrated in this application one by one.
In one example, if the smart travel service detects that the movement state is the subway riding state, S1410 is executed.
In another example, if the smart travel service detects that the movement state is the no-subway-ride state, S1411 is executed.
Other undescribed parts may refer to the above related contents and are not described in detail here.
S1410, the intelligent travel service confirms the arrival and displays the conventional card.
For the detailed description, reference is made to the above description, which is not repeated herein.
S1411, the smart travel service detects whether the recently entered and carved fence is the same as the exited and carved fence in S1401.
For example, in this embodiment of the application, after the sensing module subscribes and carves the fence, the detection of the fence at each station and the carving can be performed, and the specific detection manner can refer to the above, which is not described herein again. For example, each time the sensing module detects a fence meeting or a fence meeting, the sensing module may send an indication message to the smart travel service to indicate that the fence meeting or the fence meeting is triggered (i.e., the fence meeting or the fence meeting the certain station) or indicate that the fence meeting or the fence meeting the certain station is away from the certain station.
Correspondingly, the smart travel service can detect the entering and fence carving indicated by the indication information sent by the last sensing module. In this embodiment of the application, the marking fence of each website can be identified based on the website name, for example, after the sensing module detects that the mobile phone enters the national library station and marks the fence, the indication information sent to the smart travel service by the sensing module may include the marking fence trigger information and the website name of the national library station, so as to indicate that the current website is the corresponding marking fence of the national library station. The intelligent travel service can determine the entering and the station corresponding to the carved fence based on the received indication information. The exit and fencing example is similar to the entry and fencing example and is not described here. Optionally, in other embodiments, the fence of each station may also be identified in other manners, for example, the fence may be identified by a number, which is not limited in this application. For example, the indication and fence carving triggering or exit and fence carving indication information sent by the perception module to the smart travel service may include identification information of an entering or exiting and fence carving, that is, a number corresponding to a fence carving.
Optionally, the sensing module may not include the site information in the indication information for indicating and carving fence triggering or leaving and carving fence sent to the smart travel service. In this step, the smart travel service may send and carve a fence detection request to the sensing module, and the sensing module responds to the request of the smart travel service, detects a station that has entered the station last time and corresponds to a carved fence, and sends a station name (or other identifiers) to the smart travel service.
For example, the smart travel service may compare the detected latest entering and fence marking information with the received and fence marking information carried in the indication information sent by the perception module in S1401. If the two identifications are identical, it is determined that the latest entering and scored fence is identical to the exiting and scored fence in S1401, S1413 is performed.
In another example, if the two identifiers are not identical, the smart travel service may determine that the last entry and fence is not identical to the exit and fence in S1401, and execute S1412.
And S1412, the perception module confirms the arrival and displays the conventional card.
For the detailed description, reference is made to the above description, which is not repeated herein.
S1413, the ride card disappears.
For example, the smart travel service determines that the last entered and scored fence is the exited and scored fence in S1401 based on the last entered and scored fence, that is, after the exit and scored fence in S1401, the user cancels the display of the passenger card within 10 minutes without entering other fences. In this scenario, it can be considered that the user is not taking a car, i.e. not swiping a yard to enter the station.
In a possible implementation mode, after the intelligent travel service pops up the riding card, the sensing module can be indicated to register a timing fence, the timing fence can be optionally 30 minutes, and the timing fence can also be set according to actual needs, and the method is not limited in the application. In an example, if the smart travel service receives a code swiping success indication sent by the sensing module before the timing fence is triggered, that is, the timing is ended, or the sensing module determines that the user swipes the code successfully based on the flow of fig. 14, or receives an operation of deleting the riding card by the user, the sensing module releases the timing fence. In another example, if the timing fence is triggered, that is, after the 30-minute timer is over, the sensing module does not detect the event, that is, after the mobile phone ejects the riding status card, the user does not swipe a code to get to the station, or the user deletes the riding status card. Perception module sends the rail of timing to wisdom trip service and triggers, and wisdom trip service can cancel the demonstration card of taking a bus.
The flow in fig. 14 is described in detail below with reference to a specific application scenario.
Scene one
Fig. 15a is an exemplary application scenario, please refer to fig. 15a, where for example, after a user enters a national library station, a mobile phone pops up a riding status card, and specific details may refer to the above, which is not described herein again. The user is in the national library station and does not open the code swiping interface. As described above, after the mobile phone pops up the riding status card, the smart travel service can instruct the sensing module to subscribe to the timing fence for 30 minutes. The sensing module detects the trigger of the timing fence, and sends indication information to the intelligent travel service for indicating the trigger of the timing fence. The intelligent travel service does not detect the user swiping the code within 30 minutes, determines that the user enters the station without swiping the code, and cancels the display of the riding state card.
Still referring to fig. 15a, in another example, the cell phone pops up the status card after the user enters the national library station. After 10 minutes, the user leaves the national library station. For example, at the user location 2, the sensing module may detect that the user leaves the national library station and carves a fence, and the sensing module sends indication information to the smart travel service, where the indication information includes a station name of the national library station and an exit and fence carving indication, and is used to indicate that the user leaves the national library station and carves a fence. The smart travel service executes S1402, and detects that the user has not opened the swiping code interface, the smart travel service may determine that the user has not taken a car, and cancel the displayed riding status card.
With continued reference to fig. 15a, in yet another example, the mobile phone pops up a status card after the user enters a national library station. And clicking a code swiping option by the user to open a code swiping interface. Subsequently, the user closes the code swiping interface, i.e., the user does not use the subway ride code to swipe into the station. For example, the smart travel service and awareness module may execute based on the above-described scheme for subscribing to the code swiping event, and within 3 minutes, the awareness module does not detect a successful code swiping interface or a wrist flipping behavior, and the awareness module ends the code swiping detection process. The cards displayed by the mobile phone still comprise riding state cards. And then, the user leaves the national library station and carves the fence, and the knowledge module sends indication information to the intelligent travel service, wherein the indication information comprises the site name of the national library station and the leaving and fence carving indication and is used for indicating the user to leave the national library station and carve the fence. The smart travel service executes S1402, detects that the user opens the code swiping interface, and executes S1404. The smart service detects that the code-flushing is unsuccessful, and step S1406 is executed. For example, the smart travel service detects that the user is in a non-seated subway state, and performs S1408a, S1408b, and S1409. For example, the smart travel service detects that the moving state is still the non-subway-riding state, and executes S1411. The smart travel service may detect that the last inbound and carved fence is the national library station and carved fence, that is, the departure and carved fence in S1401, and determine that the user does not take a car and has already outbound, and cancel displaying the riding status card.
Scene two
Fig. 15b is an exemplary application scenario, please refer to fig. 15b, where, for example, after the user enters the national library station, the mobile phone pops up the riding status card. And clicking a code swiping option by the user, responding to the received user operation by the mobile phone, displaying a subway bus code interface supporting the application, and swiping a code to enter the station by the user holding the subway bus code interface.
In one example, the mobile phone detects that the user swipes the code successfully based on the subscription swiped code event scheme, and the smart travel service switches the riding mode card into the conventional mode card. When the user takes the subway and leaves the national library station and carves the fence, the sensing module detects that the user leaves the national library station and carves the fence, and sends indication information to the intelligent travel service to indicate the user leaves the national library station and carves the fence. The smart trip service executes the scheme shown in fig. 14, i.e., executes S1402, S1404 and S1405, and the details thereof are as described above and will not be described herein again.
In another example, the smart travel service is based on a subscription code-swiping event scheme, failing to successfully identify user code-swiping behavior. When the user leaves the national library station and carves the fence by taking the subway, the sensing module detects that the user leaves the national library station and carves the fence, and sends indication information to the intelligent travel service so as to indicate that the user leaves the national library station and carves the fence. The smart row service performs the scheme in fig. 14, i.e. performs S1402, S1404, S1406, and S1407, and the specific details can be referred to above and are not described herein again.
Scene three
Fig. 15c is an exemplary application scenario, please refer to fig. 15c, and for example, after the user enters the national library station, the mobile phone pops up the riding status card. And clicking a code swiping option by the user, responding to the received user operation by the mobile phone, displaying a subway bus code interface supporting the application, and swiping a code to enter the station by the user holding the subway bus code interface.
Illustratively, the smart travel service is based on a subscription code swiping event scheme, failing to successfully identify the user code swiping behavior. When the user takes the subway and leaves the national library station and carves the fence, the sensing module detects that the user leaves the national library station and carves the fence, and sends indication information to the intelligent travel service to indicate the user leaves the national library station and carves the fence. The intelligent travel service executes the scenario of fig. 14, i.e., executes S1402, S1404, and S1406.
For example, when the user is at the user position 2 on the subway, the smart travel service may fail to detect the motion state of the cellular phone, and then S1408a, S1408b, and S1409 are performed. In one example, as shown in fig. 15c, when the smart travel service detects the motion state again, the user takes a subway at the user position 3, and the smart travel service detects that the motion state is the subway taking state, and step S1410 is performed. In another example, when the smart travel service detects the motion state again, the user takes a subway at the user position 3, and the smart travel service does not acquire the motion state yet, and S1411 is performed. Exemplarily, a user enters a fence and a quarter of a Wei public village station at a user position 3, the sensing module detects the fence and the quarter trigger of the Wei public village station and sends indication information to the smart travel service, and the indication information comprises a name of the Wei public village station and a fence and the quarter trigger indication and is used for indicating the fence and the quarter entering the Wei public village station. In S1411, the smart travel service detects that the nearest entering and carved fence is the corresponding and carved fence of the widow public village station, which is different from the leaving and carved fence of S1401, that is, the user arrives at the fence of another subway station from the carved fence of one subway station within 10 minutes, and in this embodiment, the user can be considered to arrive at another subway station from one subway station by taking a subway. Accordingly, the smart travel service may consider that the user swipes a code to enter the station when the national library station.
In the embodiment of the application, after determining that the user swipes the code to enter the station, the intelligent travel service can subscribe the fence and the high-precision fence of each station. That is, for example, as described above, the perceiving module can send an indication message to the smart travel service to indicate the entering or leaving of the fence and the entering or leaving of the fence every time the perceiving module enters or leaves of one fence and every time the perceiving module enters or leaves of one fence. Alternatively, the condition indicated by the fencing at the non-initiating station may be understood as a detection item, i.e. the sensing module may instruct the mobile communication module or other module to detect the condition indicated by the fencing, such as data of the cellular network and/or the geographical location, so as to determine whether to enter or leave the fencing based on the detection result. Alternatively, at a non-start station, the condition indicated by the high-precision fence may be understood as a necessary detection item, and may also be an unnecessary detection item. If the high-precision fence is a necessary detection item, the sensing module instructs the corresponding module to acquire data indicated by the high-precision fence, for example, the sensing module instructs the wireless communication module to acquire data for Wi-Fi scanning, so as to determine whether to enter or leave the high-precision fence based on the detection result. If the high-precision fence is an unnecessary detection item, the sensing module can passively acquire data detected by the corresponding module. For example, when the wireless communication module (e.g., a Wi-Fi driver) does not perform Wi-Fi scanning, the sensing module cannot acquire a Wi-Fi scanning result, that is, if a user enters a high-precision fence of a station, the sensing module cannot sense the result. When an application (e.g., a chat application) in the mobile phone instructs the Wi-Fi driver to scan, the perception module may obtain the scanning result from the Wi-Fi driver. Therefore, the mobile phone does not need to acquire data indicated by the high-precision fence in real time or periodically, and the power consumption of the system can be effectively reduced. For example, at a non-initiating station, the sensing module may not subscribe to the indoor fence (the concept can be referred to above), i.e., the conditions indicated by the indoor fence are not detected, thereby further reducing system power consumption. It can be understood that after the user swipes the code and enters the station, the mobile phone detects the conditions indicated by the carved fence, selectively detects the conditions indicated by the high-precision fence, and does not need to detect the conditions indicated by the indoor fence.
For example, as shown in fig. 15d, when the user enters the and carved fence of the terminal station (i.e., the terminal of the current trip, for example, the west single station) by taking the subway, for example, at the user location 1, the sensing module may detect that the user enters the and carved fence of the terminal station, and the sensing module sends indication information to the smart travel service for indicating that the user has entered the and carved fence of the west single station. Illustratively, after the user gets off the car, he walks to the gate of the west single station, e.g., at user location 2. As described above, the perception module has subscribed to the sports fence, and the perception module detects that the user's sports state is walking. The perception module can send instruction information to the smart travel service, and the instruction information is used for indicating that the motion state fence is triggered, namely, the user is in a walking state. In one example, the smart travel service obtains a code swiping record and determines the latest code swiping record as an inbound, or the smart travel service may determine that the current station is a non-initiating station based on the recorded initiating station identifier. In the embodiment of the application, the smart travel service is at a non-starting station, and in the case that the user is detected to walk, the smart travel service can switch the currently displayed conventional state card into the riding state card. Illustratively, as shown in (1) of fig. 16, the smart travel service switches the conventional status card 1602 displayed in the display interface 1601 to the riding status card 1603 shown in (2) of fig. 16. Optionally, the mobile phone may display the riding mode card 1603 and may also display a vibration (or play a prompt sound or other prompt) prompt, and the riding mode card 1603 is displayed on top. For the specific display mode, reference is made to the above description, and details are not repeated here.
In another example, as shown in fig. 15d, after the smart travel service determines the west station and carves fence trigger, the smart travel service may wait for a high-precision fence trigger. The sensing module can detect whether the gate of the Darcy single station is close to, namely enters the high-precision fence of the Darcy single station or not based on the condition indicated by the high-precision fence of the Darcy single station. For a specific detection method, reference is made to the above description, which is not repeated herein. Illustratively, taking the user location 2 as an example, the sensing module detects a high-precision fence trigger and sends indication information to the smart travel service to indicate the high-precision fence trigger of the west single station. The intelligent travel service responds to the received indication information, determines that the user walks and arrives near the gate of the subway, and can switch the currently displayed conventional state card into the riding state card. Optionally, the ride card displays a normal state card before the high-precision fence is triggered. That is, in the case that the smart travel service is at a non-starting station and the user is detected to walk, the smart travel service further detects whether the user arrives near the gate. If the user arrives near the gate, the smart travel service may determine that the user is about to swipe a code and exit the station, displaying the riding status card.
For example, after the mobile phone displays the riding status card, the smart travel service and awareness module may execute the related processes in fig. 8 and fig. 10 based on the above-mentioned swiping code event subscription scheme to detect whether the user swipes a code to exit.
For example, the user may click on a swipe option in the ride status card. Referring to fig. 11 (2), the mobile phone displays a subway riding code interface in response to the received user operation. Referring to fig. 11 (3), after the user successfully refreshes the code, the mobile phone displays a successful code refreshing interface. Optionally, the code swiping success interface of the payment application includes, but is not limited to: "outbound", "west single station" (i.e., the current outbound station name), and a subway surrounding information display frame 1104, etc. The subway peripheral information display frame 1104 includes, but is not limited to: the station name of the current station ("western bill (subway station)"), the peripheral map of the subway, and an option of viewing the peripheral information of the exit of the station, an option of applying for an electronic invoice and the like. The sensing module can determine a code swiping interface fence trigger based on the page layout information of the payment application fed back by the barrier-free service. For details, reference may be made to the above description, which is not repeated here.
For example, the perception module may determine that the swipe is successful based on the swipe interface fence and/or the wrist-flipping fence. The perception module sends instruction information to the smart travel service, and the instruction information includes but is not limited to: west single station (i.e., the name of the station currently arriving at the station), a swipe success indication, and a swipe outbound indication (this information is optional). The smart travel service can determine that the user swipes a code and goes out of the station at the west single station based on the indication information sent by the perception module. The intelligent travel service may record swiped code information, including, for example and without limitation, at least one of: the number of times of successful code swiping, the application (for example, payment application) used by the code swiping at this time, the website corresponding to the code swiping at this time, the code swiping at this time is information such as an inbound or outbound. Optionally, the intelligent outbound service may also report information such as a Wi-Fi network and/or a bluetooth network near the west single station to the cloud, and the specific processing method may refer to S1008, which is not described herein again.
Illustratively, after the smart travel service determines that the user swipes a code and leaves the station, the smart travel service cancels the currently displayed riding card. It should be noted that the currently displayed riding card may be a riding mode card or a conventional mode card. For example, the mobile phone may fail to display the riding status card before the user is out of the station for some reason. The present application is not limited.
For example, similar to the code swiping entry scenario, the mobile phone may not successfully recognize that the user code swiping enters the station (the description may refer to the code swiping entry scenario, and is not repeated here). The mobile phone can detect whether the user enters the station by swiping a code based on the subway rail. Fig. 17 is a schematic flowchart of an exemplary subway trip detection method. It should be noted that, as described above, the intelligent travel service performs the flow in fig. 17 after detecting that the current station is not the first station, that is, the intelligent travel service detects that the user has swiped the code and entered the station. Referring to fig. 17, the method specifically includes:
s1701, the sensing module indicates departure and fencing to the smart travel service.
Still taking fig. 15d as an example, when the user walks to the user position 3, the sensing module detects that the user leaves the west single station and carves the fence, and the sensing module indicates the user leaves the west single station and carves the fence to the smart travel service. For the detailed description, reference may be made to S1401, which is not described herein again.
S1702, the intelligent travel service detects whether the code swiping interface is opened.
In one example, the smart travel service detects that the user opens the code swiping interface, and executes S1704
In another example, the smart travel service detects that the user has not opened the swipe interface, and executes S1703.
For details, reference may be made to S1402, which is not described herein.
S1703, the smart travel service displays the conventional card.
For example, as described above, after the sensing module subscribes and carves the fence, the sensing module always detects and carves the fence, that is, every time the user leaves or enters and carves the fence, the sensing module reports to the smart travel service. Correspondingly, in the riding process of the user, if the user leaves the approach station, that is, the approach station and the fence are not marked, the sensing module reports the leaving and the fence marking to the smart travel service, and the smart travel service detects that the user does not open the code swiping interface under the condition that the smart travel service determines that the current approach station is not the approach station, that is, the approach station and the fence are marked, then S1703 in fig. 17 is executed.
For example, taking fig. 15d as an example, when the user takes a subway to the user position 4, the sensing module detects that the user leaves the widow public village station and carves the fence, and the sensing module reports the user leaves the widow public village station and carves the fence to the smart travel service. And the intelligent travel service detects that the user does not open the code swiping interface, and then the intelligent travel service determines that the riding card is a conventional card. It should be noted that the current display of the riding card is already the normal state card, that is, in this step, the smart travel service confirms that the normal state card is displayed, and then the riding card is kept in the normal state card.
S1704, the intelligent travel service detects whether the code swiping is successful.
For example, as described above, after the perception module determines that the code swiping is successful, it may send an indication message to the smart travel service to indicate that the code swiping is successful. Accordingly, the smart travel service may determine whether the code swiping has been successful based on the received indication information.
In one example, if the smart travel service determines that the user has left and carved the fence and does not receive the indication of successful code swiping sent by the sensing module, the smart travel service performs S1706.
In another example, if the smart trip service detects that the indication information of the successful code swiping sent by the sensing module is received, the smart trip service performs S1705.
S1705, the intelligent travel service confirms that the bus leaves the bus and the bus card disappears.
For example, still taking fig. 15d as an example, the user swipes the code to go out at user location 2, where the smart travel service receives the instruction information for code swiping out sent by the perceiving module. The user walks to user position 3. The intelligent travel service determines that the user leaves the west single station and carves a fence based on the indication of the sensing module. The intelligent travel service determines that the user successfully swipes the code based on the indication of the perception module, confirms that the user is out of the station and confirms that the state of the riding card is a disappearance state. Optionally, in the user position 2, the smart travel service responds to the swiping code outbound instruction sent by the sensing module, the display of the riding status card is cancelled, and in this step, if the smart travel service detects that the riding card disappears, no other processing is performed.
S1706, the intelligent travel service detects whether the motion state is a subway riding state.
In one example, if the smart travel service detects that the current motion state of the mobile phone is the state of riding a subway, that is, the user is on the subway while driving, S1707 is executed.
In another example, if the smart travel service detects that the current motion state of the mobile phone is the no-subway state, or if the smart travel service fails to acquire the motion state of the mobile phone, step S1708a is executed. Optionally, the off-ride subway state includes, but is not limited to: riding state, walking state, riding in a car state, etc.
Other undescribed portions may refer to S1406, and are not described herein again.
S1707, the smart travel service displays the conventional card.
Still taking the user location 4 in fig. 15 as an example, the user may have opened a swipe interface when walking to the widmans village station, but the user simply views the balance and does not swipe the code. When the user takes the subway to the user position 4, the smart travel service performs S1701, S1702, S1704, and S1706. Illustratively, the smart travel service detects that the movement state is a subway riding state, and executes S1707. The specific step of S1707 can refer to S1703, which is not described herein again.
S1708a, the smart travel service indicates to the awareness module to register the timing fence.
S1708b, the perception module indicates to the smart travel service a time fence trigger.
The details of S1708 a-S1708 b can be found in S1408 a-S1408 b, and are not described herein.
S1709, the intelligent travel service detects whether the movement state is the subway riding state.
In one example, if the smart travel service detects that the moving state is the subway riding state, S1410 is performed.
In another example, if the smart travel service detects that the movement state is the no-subway-ride state, S1411 is executed.
Other undescribed parts may refer to S1409, which is not described in detail here.
And S1710, displaying the conventional card by the intelligent travel service.
For the detailed description, reference is made to the above description, and no further description is given here.
S1711, the smart travel service detects whether the recently entered and carved fence is the same as the exited and carved fence in S1401.
For details, reference may be made to S1411, which is not described herein.
And S1712, displaying the conventional card by the intelligent travel service.
For example, still referring to fig. 15d, when the user takes a subway to a widmans village station, the user opens a subway ride, but it does not swipe the ride. After the user takes the subway, leaves the same station in the smart border and carves the fence, the smart travel service responds to the instruction of the perception module, determines that the user opens the code swiping interface, and the code swiping is unsuccessful. The smart travel service performs S1706, S1708a, S1708b, S1709 and S1711. In executing S1711, the user may have arrived at the west single station, i.e., the smart travel service may determine that the user has entered the west single station last time and fences the west single station based on the indication of the perception module. Accordingly, the smart travel service determines that the state of the riding card should be a normal state card.
And S1713, the intelligent travel service confirms that the bus leaves the bus and the bus card disappears.
For example, in the embodiment of the present application, since the current non-start station is not the start station, in the case that the smart travel service determines that the user has recently entered the exit and carved fence, i.e., the exit and carved fence in S1701, that is, after the user exits and carved fence, the user does not enter another exit and carved fence, the smart travel service may confirm that the user is out of the stop and cancel displaying the current riding card.
To illustrate, and still take fig. 15d as an example, the user swipes a code out at user location 2 and walks to user location 3. The perception module does not detect that the code swiping is successful. The smart travel service executes S1702, S1704, S1706, S1708a, S1708b, S1709, S1711. In executing S1711, the smart travel service determines the last entering and carved fence as the west station and carved fence based on the instruction of the perception module, which is the same as the leaving and carved fence in S1701, and thus, the smart travel service may determine that the user has left the station and cancel displaying the riding card.
On the basis of the subway trip detection scheme, the application further provides a riding card display method. According to the method, when the mobile phone determines that the riding state card needs to be displayed based on the subway fence, whether the riding state card can be displayed or not can be detected based on preset conditions, so that the problems that the card is displayed under the condition that a user does not need to be displayed, the user is disturbed, and the user experience is influenced are solved, and the subway riding card is restrained.
For example, as described above, when the user arrives at the terminal station of the current trip by taking a subway, the user walks to the vicinity of the gate in the station, and the smart travel service determines the trigger of the sports fence in response to the indication of the sensing module and displays the riding status card. In other embodiments, the riding mode card can be displayed after the moving fence and the high-precision fence are triggered. For details, reference may be made to the above description and further details will not be described herein. However, in some embodiments, for example, the user needs to transfer to a subway, and during the process of transferring to the subway, the user also needs to walk to another subway. In the user walking process, the sensing module can detect the motion fence trigger and indicate the motion fence trigger to the intelligent travel service. Correspondingly, the smart travel service responds to the indication of the sensing module, the user is considered to possibly arrive at the terminal, the smart travel service switches the conventional mode card into the car mode card, and the intelligent travel service carries out vibration prompt (other prompts can be also used, and the description is omitted here). As another example, the user needs to transfer to a subway, the perception module may detect a sports fence trigger and indicate the sports fence trigger to the smart travel service. And, during the user's transfer, the user may pass near the gate of the transfer station, i.e., enter the high-precision fence. The perception module detects that the high accuracy rail triggers, sends instruction information to wisdom trip service, and wisdom trip service responds to the instruction of perception module, thinks like this that the user probably arrives the terminal station, switches conventional attitude card into the attitude card of taking a bus to the vibration suggestion. For the scene, if the user can pop up the riding state card every day when the user transfers at the same transfer station, the user is disturbed too much.
In the embodiment of the application, the smart travel service may set a riding card display list, and the list may include but is not limited to: time period, station name, card ejection parameter, card non-ejection parameter and the like. As shown in table 1:
TABLE 1
Time period Name of station Parameters of card ejection Parameters of no card flick
For example, the time period may be preset. For example, the point 6 to the point 7, the point 7 to the point 8, the point 8 to the point 9, and the like can be set according to actual requirements, and the application is not limited.
Illustratively, the sum of the card ejection parameter and the card non-ejection parameter in the single entry is 1. In one example, the smart travel service displays the riding card if the pop-up parameter is greater than the no-pop-up parameter. In another example, if the pop-up parameter is less than the no-pop-up parameter, the smart travel service does not display the riding card. For example, the smart travel service may update the entry in the ride card display list based on whether the user uses the ride card after each time the ride card is ejected. The smart egress service may determine whether the riding card needs to be popped out at the current station based on the popping card parameter and the non-popping card parameter in the riding card display list. The riding card display method will be described in detail below with specific examples.
After the mobile phone is started up for the first time or initialized, the intelligent travel service setting table 1 includes the 4 entries described above in the table 1. In the embodiment of the present application, the description is given in a list manner, and in other embodiments, the smart travel service may record the information in other manners, which is not limited in the present application.
In one example, taking the scenario in FIG. 15b as an example, the user enters a national library station, for example at user location 1. The wisdom trip service responds to the instruction of perception module, confirms that indoor rail triggers, needs to pop out promptly and takes a bus the attitude card. Specific details may be found in the above description and are not repeated herein. For example, the smart travel service may obtain a site name of a site, such as a national library site, where the site currently triggers an indoor fence (which may also be a hit fence or a high-precision fence, which will not be described again below), based on indication information sent by the sensing module to indicate triggering of the indoor fence. The smart travel service obtains the current time, for example, 7 points. The intelligent travel service detects a riding card display list based on the current time and the site name, and determines that the riding card display list does not include a time period corresponding to the current time and an entry corresponding to the site name. In the embodiment of the present application, if the corresponding entry is not included in the list, the smart travel service defaults to allow the riding card to be displayed. Correspondingly, the intelligent travel service displays the riding state card.
The smart travel service may determine whether the user successfully swipes the code at the national library station based on the code swiping event subscription scheme, the subway fence scheme, and the like, and specific details may refer to the above description, which is not repeated herein.
For example, taking the user swiping a code to enter the station in fig. 15b as an example, the smart travel service may determine that the user swipes a code to enter the station. Wisdom trip service updates and shows the list by bus card, and the list after the update is shown as table 2:
TABLE 2
Time period Name of station Parameters of card ejection Parameters of no card flicking
7-9 national library 1 0
Referring to table 2, for example, the smart travel service matches a preset time period based on the current time (e.g., 7 points), and determines that the corresponding time period is 7-9. And, the wisdom trip service confirms that the current website is national library station based on the instruction of perception module. And, since this time is the initial entry for the station in the time period, and the user successfully swipes the code to enter the station, the smart travel service sets the card ejection parameter to 1, and sets the card non-ejection parameter to 0.
Referring to fig. 18, a user enters a west-straightaway station and fences from a national library station, for example, to user location 1, on subway number 4 line. The perception module may determine that the west pod and the fence are triggered based on the west pod and the fence. The perception module sends indication information to the intelligent travel service, wherein the indication information comprises a station name of the west-straight gate station (namely the west-straight gate station) and a fence carving triggering indication, and the indication information is used for indicating that the mobile phone enters the west-straight gate station and a fence carving indication. And after the subway arrives at the station, the user gets off the train and transfers the No. 2 line. For example, the user gets off user location 2 and walks to user location 3.
Illustratively, as described above, the perception module has subscribed to the sports fence. The sensing module acquires the monitoring parameters from modules such as an acceleration sensor and the like, and determines that the user is currently in a walking state based on the detection parameters (the specific detection process can refer to the above and is not described herein again). The perception module may determine a moving fence trigger.
Illustratively, the perception module sends an indication message to the smart travel service for indicating the motion fence trigger, i.e. the user is in a walking state. The intelligent travel service determines that the user is in a walking state, and further determines that a riding state card needs to be displayed. It should be noted that, in this embodiment and the following embodiments, the determination of the displayed riding card based on the triggering of the motion state fence is taken as an example for description, and in other embodiments, the determination of whether the riding card needs to be displayed based on the triggering states of the motion state fence and the high-precision fence may also be used, and the description will not be repeated below.
The smart travel service acquires the current time, for example, 7 o' clock 20. The smart travel service matches the entry in the bus display card list (for example, table 2) based on the current time (for example, 7 o' clock 20) and the station name (for example, west-straightaway station), and determines that the matching fails, that is, the list does not include the entry corresponding to the current time and the station. Accordingly, the smart travel service determines the riding status card allowed to be displayed. The intelligent travel service switches the currently displayed conventional mode card to the car mode card and carries out vibration prompt.
As described above, the user transfers the subway number 2 line at the west-straight gate station, and accordingly, after the intelligent travel service displays the riding status card, the user does not use the subway riding code to swipe the code. Still referring to fig. 18, illustratively, when the user arrives at user location 4 on the # 2 line subway, the smart travel service may determine that the user is not swiped based on the scheme shown in fig. 17. The intelligent travel service switches the riding mode card into a conventional mode card. Wisdom trip service updates and shows the list by bus card, and the list after the update is shown as table 3:
TABLE 3
Time period Name of station Parameters of card ejection Parameters of no card flick
7-9 national library 1 0
7-9 Western-style door 0.8 0.2
Referring to table 3, for example, the smart trip service matches a preset time period based on the time (e.g., 7 o' clock 20) of displaying the riding status card, and determines that the corresponding time period is 7 to 9. And, wisdom trip service confirms that the current website is the west directly door station based on the instruction of perception module. And, since this time is the initial entry for the station in the time period, the initial value of the card ejection parameter is 1, and the initial value of the card non-ejection parameter is 0. In this scenario, since the user does not swipe the code, after the smart travel service determines that the riding status card is displayed this time, the user does not swipe the code, and then the smart travel service subtracts 0.2 from the initial value (1) of the pop-up card parameter, and as a result, the result is 0.8, and adds 0.2 to the initial value (0) of the no-pop-up card parameter, and as a result, the result is 0.2. It should be noted that "the user does not swipe the code" in this embodiment may be that the user opens the subway riding code interface in the transfer process, but does not swipe the code; the subway riding code interface may not be opened by the user, and the specific implementation manner and the scene may refer to the description in fig. 17, which is not described herein again and is not described repeatedly below.
It should be noted that, in the embodiment of the present application, the original values of the parameters (i.e., the initial values described above) and the increment and decrement values are merely illustrative examples, and may be set according to actual situations. For example, if the original maximum value is 2 and the increase/decrease width value is 0.2, 6 times of non-card swiping are required to perform the card ejection suppression in the following embodiment. For another example, if the original maximum value is 1 and the increase/decrease width is 0.1, it may take 6 times to perform the card ejection suppression in the following embodiments, and the application is not limited thereto.
Still referring to fig. 18, the user again arrives at the west-tambour station from the national library station, riding subway No. 4 line, and walks off at user location 2 to user location 3 to transfer subway No. 2 line. The wisdom trip service confirms that the motion state rail triggers in response to the instruction of perception module, further confirms that the status card by bus needs to be displayed.
The smart travel service acquires the current time, for example, 7 o' clock 30. The smart travel service matches the entry in the bus display card list (for example, table 3) based on the current time (for example, 7 o' 20) and the station name (west door station), and determines that the matching is successful, where the successfully matched entry is:
Timesegment of Name of station Parameters of card ejection Parameters of no card flick
7-9 Western-style door 0.8 0.2
And the intelligent travel service determines to allow the display of the riding mode card based on the fact that the card ejection parameter (0.8) is greater than the card non-ejection parameter (0.2) in the successfully matched list items. The intelligent travel service switches the conventional mode card into the riding mode card. The user takes the subway No. 2 line to user position 4, and the wisdom trip service detects that the user does not brush the sign indicating number, and the wisdom trip service will be by bus state card and switch into conventional state card. And, updating the ride card display list. The updated list is shown in table 4:
TABLE 4
Time period Name of station Parameters of card ejection Parameters of no card flick
7-9 national library 1 0
7-9 Western-style door 0.6 0.4
Referring to table 4, for example, when the smart travel service determines that the user does not swipe the code at the time (i.e. 7-9 points) and the station corresponding to the entry, the smart travel service decreases the pop-card parameter in the entry by 0.2, and the result is 0.6. And the non-flick parameter increased by 0.2, resulting in 0.4.
Still referring to fig. 18, the user again arrives at the west-tambour station from the national library station, riding subway No. 4 line, and walks off at user location 2 to user location 3 to transfer subway No. 2 line. The intelligent travel service responds to the indication of the perception module, determines the triggering of the motion state fence, and further determines the riding state card needing to be displayed.
The smart travel service acquires the current time, for example, 7 o' clock 30. The smart travel service matches the entry in the bus display card list (for example, table 4) based on the current time (for example, 7 o' 20) and the station name (west door station), and determines that the matching is successful, where the successfully matched entry is:
time period Name of station Parameters of card ejection Parameters of no card flicking
7-9 Western-style door 0.6 0.4
And the intelligent travel service determines to allow the display of the riding mode card based on the fact that the card ejection parameter (0.6) is greater than the card non-ejection parameter (0.4) in the successfully matched list items. The intelligent travel service switches the conventional state card into the riding state card. The user takes the subway No. 2 line to user position 4, and the wisdom trip service detects that the user does not brush the sign indicating number, and the wisdom trip service will be by bus state card and switch into conventional state card. And, the riding card display list is updated. The updated list is shown in table 5:
TABLE 5
Time period Name of station Parameters of card ejection Parameters of no card flicking
7-9 national library 1 0
7-9 Western-style door 0.4 0.6
Referring to table 4, for example, when the smart travel service determines that the user does not swipe a code at the time (i.e. 7-9 points) and the site corresponding to the entry, the smart travel service decreases the popup card parameter in the entry by 0.2, and the result is 0.4. And the no-bounce parameter plus 0.2, the result was 0.6.
Still referring to fig. 18, the user again arrives at the west-tambour station from the national library station, riding subway No. 4 line, and walks off at user location 2 to user location 3 to transfer subway No. 2 line. The intelligent travel service responds to the indication of the perception module, determines the triggering of the motion state fence, and further determines the riding state card needing to be displayed.
The smart travel service acquires the current time, for example, 7 o' clock 30. The smart travel service matches the entries in the bus display card list (for example, table 5) based on the current time (for example, 7 o' clock 20) and the station name (for example, west-straightaway station), and determines that the matching is successful, where the successfully matched entries are:
time period Name of station Parameters of card ejection Parameters of no card flick
7-9 Western-style door 0.4 0.6
And the intelligent travel service determines that the riding mode card is not allowed to be displayed based on the fact that the card ejection parameter (0.4) is smaller than the card non-ejection parameter (0.6) in the successfully matched list items. The intelligent travel service does not change the state of the riding card, namely the riding card displayed by the mobile phone is still a conventional card, so that the inhibition effect of the riding card display is realized. That is to say, in the embodiment of the application, the user does not swipe the code three times in the same time slot and the same site, and the smart travel service does not display the riding mode card when the user arrives at the site in the time slot.
For example, the smart travel service determines that at point 7 and 30, the user is not swiping a code at the national library station, and the smart travel service updates the riding card display list, which is shown in table 6:
TABLE 6
Time period Name of station Parameters of card ejection Parameters of no card flick
7-9 national library 1 0
7-9 Western-style door 0.2 0.8
Referring to table 6, for example, when the smart travel service determines that the user does not swipe a code at the time (i.e. 7-9 points) and the site corresponding to the entry, the smart travel service decreases the popup card parameter in the entry by 0.2, and the result is 0.2. And the non-flick parameter increased by 0.2, resulting in 0.8.
That is, at the current station, the smart travel service does not display the ride status card, but it will still update the list based on whether the user swipes a code.
Illustratively, if the user again transfers subway line number 2 at 7 o' clock 30 at the west-dc gate station and does not swipe the code. Wisdom trip service updates the list, and the list after the update is:
TABLE 7
Time period Name of station Parameters of card ejection Parameters of no card flick
7-9 national library 1 0
7-9 Xizumen 0 1
And the card ejection parameter reaches the minimum value, and the card non-ejection parameter reaches the maximum value. Accordingly, if the user again transfers at 7-9 o' clock at the west-straightaway station, and the code is not swiped. The smart travel service does not change the pop-card parameter and the no-pop-card parameter any more.
In this embodiment of the present application, as described above, if the user does not swipe the code, the smart travel service decreases the card popping parameter by 0.2 and increases the card non-popping parameter by 0.2 in the corresponding entry. In the embodiment of the application, if the user successfully refreshes the code, the intelligent output service will correspond to the user
And adding 0.2 to the card ejection parameter and subtracting 0.2 to the card non-ejection parameter in the table entry until the card ejection parameter and the card non-ejection parameter reach the corresponding maximum value or minimum value.
For example, taking table 4 as an example, please refer to fig. 18, the user transfers subway No. 2 line at west-straightaway station at point 7 and 30. Based on table 4, the smart travel service determines that the car status card is allowed to be displayed by detecting that the card ejection parameter (0.6) is greater than the card non-ejection parameter (0.4). The intelligent travel service switches the conventional mode card into the riding mode card, and the user swipes a code and goes out of the station. The intelligent travel service detects that the user swipes a code and goes out of the station (the specific detection method may refer to the scheme in fig. 17 or fig. 8, and is not described herein again). Wisdom trip service updates and takes a bus card display list 4, and the list after the update is shown in table 8:
TABLE 8
Time period Name of station Parameters of card ejection Parameters of no card flicking
7-9 national library 1 0
7-9 Western-style door 0.8 0.2
Referring to table 8, for example, when the smart travel service determines that the user swipes the code to go out at the time (i.e. 7-9 points) and the station corresponding to the entry, the smart travel service adds 0.2 to the card popup parameter in the entry, and the result is 0.8. And the no-bounce parameter minus 0.2, resulting in 0.2.
For another example, referring to fig. 8 by taking table 7 as an example, the user detects that the card popping parameter (0) is smaller than the card non-popping parameter (1) at 7 points in the smart travel service based on table 7, and determines that the riding status card is not allowed to be displayed. The riding card displayed by the intelligent travel service is not yet a conventional card.
The user can open the subway bus taking code interface through the payment application and swipe the code to get out of the station. Wisdom trip service can detect the user and brush the sign indicating number and go out of the station. And after the intelligent travel service determines that the user swipes the code and goes out of the station, the displayed conventional card is cancelled. The smart travel service updates the riding card display list 7, and the updated list is shown in table 9:
TABLE 9
Time period Name of station Parameters of card ejection Parameters of no card flick
7-9 national library 1 0
7-9 Western-style door 0.2 0.8
Referring to table 9, for example, when the smart travel service determines that the user swipes a code to go out of the station at the time (i.e. 7-9 points) corresponding to the entry, the smart travel service adds 0.2 to the card popup parameter in the entry, and the result is 0.2. And the no-bounce parameter minus 0.2, resulting in 0.8.
Based on the same steps as the user entering the station without swiping the code, the user swipes the code to exit the station at the west kingdom station each time, the smart travel service updates the list, for example, on the basis of table 9, the user continuously goes to 7 o' clock 20 twice, and the updated list is shown in table 10 when swiping the code to exit the station from the west kingdom station:
watch 10
Time period Name of station Parameters of card ejection Parameters of no card flick
7-9 national library 1 0
7-9 Western-style door 0.6 0.4
For the details of the update list, reference may be made to the above description, which is not repeated here. Illustratively, if the user again transfers at 7 o' clock 20 at west-dc station (and possibly also outbound), the smart travel service may determine to allow display of the ride card based on the ride card display list 10. The intelligent travel service switches the conventional mode card into the riding mode card.
It should be noted that, in the above embodiment, only the entry corresponding to the same station in the same time period is used for description, in other embodiments, the ride card display list includes multiple entries, and the same time period may correspond to multiple entries, the same station, and also correspond to multiple time periods, as shown in table 11:
TABLE 11
Time period Name of station Parameters of card ejection Parameters of no card flick
7-9 national library 0.6 0.4
7-9 Weigongcun 0.6 0.4
9-10 national library 1 0
9-10 Yellow lake 0 1
10-11 Business form 1 0
11-12 Business form 0.2 0.8
Referring to table 11, for example, when the user arrives at the hai-lao yellow dealer station (which may be a station entrance or a transfer) at 9 o 'clock 15, the smart travel service matches the entries in table 11 based on the time (i.e. 9 o' clock 15) and the station name (hai-lao yellow dealer) and determines that the matching is successful, where the entries that are successfully matched are:
time period Name of station Parameters of card ejection Parameters of no card flick
9-10 Yellow lake 0 1
Illustratively, the smart travel service determines that the card popping parameter is smaller than the card non-popping parameter based on the successfully matched entry, and then the smart travel service determines that the riding state card is not allowed to be displayed, and the smart travel service does not display the riding state card.
It should be noted that the parameters listed in the above list of the present application are only illustrative examples, and the present application is not limited thereto.
It should be further noted that, there may be a time difference between the time when the smart travel service determines that the user does not swipe the code and the time when the smart travel service displays the riding status card. Optionally, when the smart travel service updates the list, the time update list of the riding status card may be displayed based on the smart travel service. For example, the time when the smart travel service displays the riding state card is 7 points, the smart travel service determines that the time when the user does not swipe the code is 7 points 30, and the smart travel service traverses the list based on the time when the riding state card is displayed, that is, 7 points, and updates the list.
It should be further noted that, in the embodiment of the present application, only the recording of the card ejection parameter and the non-card ejection parameter is taken as an example. In other embodiments, the mobile phone may only record the flick card parameter, and the specific implementation manner of the method is the same as that in the above embodiments, that is, after each flick of the card, if it is detected that the user swipes a code, the flick card parameter is increased by 0.2 (or may be another numerical value), and if it is detected that the user does not swipe a code, the flick card parameter is decreased by 0.2. The smart travel service may determine whether to bounce the card based on the bounce card parameter. For example, when the card ejection parameter is greater than a preset threshold (e.g., 0.5), the card ejection is allowed. Otherwise, if the card ejection parameter is smaller than the preset threshold value, the card ejection is not allowed. Optionally, the mobile phone may also record only the card non-ejection parameter, for example, after each card ejection, if it is detected that the user swipes a code, the card non-ejection parameter is decreased by 0.2, and if it is detected that the user does not swipe a code, the card non-ejection parameter is increased by 0.2. For example, the smart travel service may determine whether to bounce the card based on the talk-card parameter. For example, when the non-ejection parameter is greater than a preset threshold (e.g., 0.5), the ejection is not allowed. Otherwise, if the card non-ejection parameter is smaller than the preset threshold value, the card ejection is allowed.
In this application embodiment, the wisdom trip service can be periodically or under the circumstances that the charging was shielded out, sends the card display list by bus of keeping to the high in the clouds. When the user logs in other devices, the device with the same account number can acquire the riding card display list from the cloud, and when the user uses the device with the same account number to take a subway, the smart travel service can execute the scheme based on the acquired riding card display list.
It will be appreciated that the electronic device, in order to implement the above-described functions, comprises corresponding hardware and/or software modules for performing the respective functions. The present application is capable of being implemented in hardware or a combination of hardware and computer software in conjunction with the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, with the embodiment described in connection with the particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In one example, fig. 19 shows a software structure diagram of an electronic device according to an embodiment of the present application. Referring to fig. 19, the software system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the application takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of an electronic device. The layered architecture of electronic devices divides software into layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, which are an application layer, an application framework layer, an Android runtime (Android runtime) and system library (not shown), and a kernel layer from top to bottom.
The application layer may include a series of application packages. As shown in fig. 18, the application package may include applications such as a smart outlet service, a payment application, a chat application, a perception module, and the like.
Illustratively, the perceiving module is resident to run or run in a low power consumption form, has the ability to perceive external facts or circumstances, and provides this ability to other modules in a "fence" form. Such as "time fences" to sense temporal changes, "geo-location fences" to sense geo-location, and the like. When the card reminding service is in an open state, the sensing module monitors the registered capability (or events, such as specific time, specific place, or specific event) of the service logic processing module, and if a user triggers one of the registered capability (or events), the sensing module sends a notification to the service logic processing module. In addition, the sensing module may also detect related events and obtain states of the events from other application programs or application framework layers or system layers or kernel layers of the application program layer through an Application Programming Interface (API), such as detecting bluetooth connection, network connection, monitoring user short messages, customizing timers, and the like.
Illustratively, the intelligent travel service may include a business logic processing module and a business presentation module. The service logic processing module is used for core service calculation, subscribes different fences to the sensing module, senses scene changes according to fence events, and combines with user interaction information provided by the service presentation module to call rules or algorithm models defined by the service scenes to decide which service information and display modes (cards, notifications, earphone broadcasting and the like) are pushed to users. And sending the service information to a service presentation module to be displayed to the user. And the service presentation module is used for user interface interaction and result display. The service presentation module can receive the display and disappearance indications and corresponding data of cards, notifications, earphone broadcasts and the like sent by the service logic processing module, and display or disappearance of the cards, the notifications and the broadcasts is carried out. And the system is used for transmitting user interaction information (such as user click, sliding card and the like) to the service logic processing module to make the next service decision. It should be understood that, in the embodiment of the present application, the display-related steps performed by the smart travel service are performed by the business presentation module, and other steps are performed by the business logic processing module.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 19, the application framework layer may include a window manager, barrier-free services, and the like.
The inner core layer includes: display driver, Wi-Fi driver, Bluetooth driver, audio driver, sensor driver, etc.
It is to be understood that the layers in the software structure shown in fig. 19 and the components included in each layer do not constitute a specific limitation of the electronic device. In other embodiments of the present application, the electronic device may include more or fewer layers than those shown, and more or fewer components may be included in each layer, which is not limiting.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and these modifications or substitutions do not depart from the scope of the technical solutions of the embodiments of the present application.

Claims (16)

1. The subway trip detection method is characterized by being applied to electronic equipment, wherein a first riding state card is displayed in an interface of the electronic equipment; the first riding status card comprises a name and a code swiping option of a first subway station where the electronic equipment is located, the first riding status card is used for prompting that the current subway station is the first subway station, and the first riding status card is also used for providing an application entrance associated with a subway riding code interface, and the method comprises the following steps:
detecting that electronic equipment enters the first subway station by swiping a subway bus code in a subway bus code interface, and updating the first bus state card into a conventional state card, wherein the conventional state card comprises a code swiping option;
after detecting that a user of the electronic equipment takes a subway to arrive at a second subway station, detecting that the motion state of the electronic equipment is a walking state, and acquiring first display information of the second subway station, which is stored by the electronic equipment; the first display information comprises a first card ejection parameter and a first card non-ejection parameter;
if the first card ejection parameter is larger than the first card non-ejection parameter, displaying a second riding mode card; the second riding mode card comprises the name of the second subway station and the code swiping option;
subscribing whether the electronic equipment leaves the second subway station by swiping the subway riding codes in the subway riding code interface;
detecting that the electronic equipment leaves the second subway station without using a subway riding code in a subway riding code interface, and switching to display the second riding mode card into display of the conventional mode card;
acquiring second display information of the second subway station, wherein the second display information comprises a second card ejection parameter and a second card non-ejection parameter, the second card ejection parameter is obtained by subtracting a preset value from the first card ejection parameter, and the second card non-ejection parameter is obtained by adding the preset value to the first card non-ejection parameter;
after detecting that the user of the electronic equipment takes the subway again to reach the second subway station, detecting that the motion state of the electronic equipment is a walking state, and acquiring second display information of the second subway station, which is stored by the electronic equipment;
and determining the size relation between the second card ejecting parameter and the second card non-ejecting parameter according to the second display information, and determining whether to display the second riding state card.
2. The method of claim 1, wherein before the electronic device is detected to use the subway ride code in the subway ride code interface to swipe a code into the first subway station, the method further comprises:
after detecting that the user to which the electronic equipment belongs takes the subway to reach the second subway station, detecting that the motion state of the electronic equipment is a walking state, and displaying information corresponding to the second subway station is not stored in the electronic equipment, and displaying the second riding state card;
subscribing whether the electronic equipment leaves the second subway station by using a subway riding code in a subway riding code interface;
detecting that the electronic equipment leaves the second subway station without using a subway riding code in a subway riding code interface, and canceling to display the second riding state card;
and storing third display information of the second subway station, wherein the third display information comprises a third card ejection parameter and a third card non-ejection parameter, the third card ejection parameter is obtained by subtracting the preset value from the initial card ejection parameter value, and the third card non-ejection parameter is obtained by adding the preset value to the initial card non-ejection parameter value.
3. The method of claim 2, wherein the initial value of the flick parameter is 1, the initial value of the no-flick parameter is 0, and the predetermined value is 0.2.
4. The method of claim 3, wherein before the electronic device is detected to enter the first subway station using a subway ride code in a subway ride code interface, the method further comprises:
after detecting that the user of the electronic equipment takes the subway to arrive at the second subway station, detecting that the motion state of the electronic equipment is a walking state, and acquiring the third display information of the second subway station;
the third card ejection parameter is greater than the third non-card ejection parameter, and the second riding mode card is displayed;
subscribing whether the electronic equipment leaves the second subway station by using a subway riding code in a subway riding code interface;
detecting that the electronic equipment does not use a subway riding code in a subway riding code interface to swipe the code away from the second subway station, and canceling to display the second riding mode card;
and acquiring the first display information of the second subway station, wherein the first card ejection parameter is obtained by subtracting the preset value from the third card ejection parameter, and the first card non-ejection parameter is obtained by adding the preset value to the third card non-ejection parameter.
5. The method of claim 4, further comprising:
subscribing whether the electronic equipment leaves the second subway station by using a subway riding code in a subway riding code interface;
detecting that the electronic equipment leaves the second subway station without using a subway riding code in a subway riding code interface, and acquiring fourth display information of the second subway station; the fourth display information comprises a fourth card ejection parameter and a fourth card non-ejection parameter, the fourth card ejection parameter is obtained by subtracting the preset value from the second card ejection parameter, and the fourth card non-ejection parameter is obtained by adding the preset value to the second card non-ejection parameter.
6. The method of claim 5, further comprising:
detecting that the user of the electronic device arrives at the second subway station by taking the subway again and the motion state of the electronic device is a walking state, and acquiring fourth display information of the second subway station stored by the electronic device;
the fourth card ejection parameter is smaller than the fourth card non-ejection parameter, and the second riding mode card is not displayed;
subscribing whether the electronic equipment leaves the second subway station by using a subway riding code in a subway riding code interface;
detecting that the electronic device leaves the second subway station without using a subway bus code in a subway bus code interface, wherein the fourth card popping parameter is a preset minimum value, the fourth card non-popping parameter is a preset maximum value, and the fourth display information is not updated.
7. The method of claim 1, further comprising:
subscribing whether the electronic equipment leaves the second subway station by using a subway riding code in a subway riding code interface;
detecting that the electronic equipment leaves the second subway station by swiping a subway riding code in a subway riding code interface, and acquiring fifth display information of the second subway station; the fifth display information comprises a fifth card ejection parameter and a fifth card non-ejection parameter, the fifth card ejection parameter is obtained by adding the preset value to the second card ejection parameter, and the fifth card non-ejection parameter is obtained by subtracting the preset value from the second card non-ejection parameter.
8. The method of claim 7, further comprising:
detecting that a user to which the electronic device belongs takes a subway to arrive at the second subway station and detecting that the motion state of the electronic device is a walking state, and acquiring fifth display information of the second subway station, which is stored by the electronic device;
and displaying the second riding mode card when the fifth card popping parameter is larger than the fifth card non-popping parameter.
9. The method of claim 1, wherein the detecting that the electronic device enters the first subway station using a subway ride code in a subway ride code interface comprises:
subscribing a coarse-precision fence of a subway station, wherein the coarse-precision fence is used for indicating that the electronic equipment is positioned near the subway station;
determining coarse-precision fence triggering corresponding to the first subway station when the electronic equipment is detected to be located near the first subway station;
after triggering a coarse-precision fence corresponding to the first subway station, subscribing to a first high-precision fence corresponding to the first subway station; the first high-precision fence is used for indicating that the electronic equipment is located near a gate of the first subway station;
detecting that the electronic equipment is located near a gate of the first subway station, and determining that the first high-precision fence is triggered;
after the first high-precision fence is triggered, subscribing a first indoor fence; the first indoor fence is used for indicating that the electronic equipment is located indoors of the first subway station;
detecting that the electronic device is located indoors at the first subway station, determining that the first indoor fence is triggered;
determining that the electronic device enters the first subway station if the first high-precision fence is triggered and the first indoor fence is triggered;
after the electronic equipment is determined to enter a first subway station, acquiring sixth display information of the first subway station, which is stored by the electronic equipment; the sixth display information comprises a sixth card ejection parameter and a sixth card non-ejection parameter;
and displaying the first riding state card when the sixth card popping parameter is greater than the sixth card non-popping parameter.
10. The method of claim 1, wherein subscribing whether the electronic device leaves the second subway station using a subway ride code in a subway ride code interface comprises:
subscribing an application fence, wherein the application fence comprises an identifier of at least one service, and the at least one service is a service containing a subway riding code;
responding to the received operation of clicking the code swiping option, and displaying an interface of a first service of a first application;
acquiring an identifier of the first service, wherein the identifier of the first service comprises an identifier of the first application and an Activity identifier of the first service;
detecting that the identifier of the first service is matched with the identifier of at least one service indicated by the application fence, and subscribing whether a first window to which the first service belongs contains a subway bus number or not;
detecting that the first window contains a subway riding code, subscribing a window content change event generated in the first window, and subscribing whether the electronic equipment generates a wrist overturning event;
within a first preset time, determining that the electronic equipment does not use a subway riding code in a subway riding code interface to swipe a code away from the second subway station when a first target event does not occur in the first window and a wrist-turning event does not occur in the electronic equipment; and a first target event occurs in the first window, the first target event belongs to the window content change event, and the first target event is used for indicating that the first window displays a code swiping success interface.
11. The method of claim 1, wherein subscribing whether the electronic device leaves the second subway station using a subway ride code in a subway ride code interface comprises:
when the electronic equipment is detected to leave the second subway station, first code swiping information stored by the electronic equipment is obtained, wherein the first code swiping information is used for indicating that the electronic equipment does not display a subway riding code interface in the second subway station;
and determining that the electronic equipment leaves the second subway station without using the subway bus code in the subway bus code interface for code swiping based on the first code swiping information.
12. The method of claim 1, wherein subscribing whether the electronic device leaves the second subway station using a subway ride code in a subway ride code interface comprises:
detecting that the electronic equipment leaves the second subway station, and acquiring second code swiping information stored by the electronic equipment; the second code swiping information is used for indicating that the electronic equipment displays a subway riding code interface in the second subway station, and the second code swiping information is also used for indicating that the last code swiping of the electronic equipment is that the code swiping enters the first subway station;
determining that the second subway station is a non-start station based on the second code swiping information, the electronic device displays the subway riding code interface in the second subway station, and after the electronic device displays the subway riding code interface, the electronic device does not detect that the electronic device uses the subway riding code in the subway riding code interface to swipe the code away from the second subway station;
detecting whether the current motion state of the electronic equipment is a subway riding state or not;
when the current motion state of the electronic equipment is a subway taking state, determining that the electronic equipment does not use a subway taking code in the subway taking code interface to swipe a code away from the second subway station;
when the current motion state of the electronic equipment is a non-subway-riding state, after a second preset time, detecting whether a subway station which is arrived by the electronic equipment for the last time is the second subway station;
and determining that the electronic equipment leaves the second subway station without using the subway riding code in the subway riding code interface.
13. The method of claim 1, wherein the cue intensity of the second ride status card is greater than the cue intensity of the regular status card.
14. The method of claim 13, wherein the manner of presentation of the second ride status card comprises at least one of:
if the card group displayed by the electronic equipment comprises a plurality of cards, the second riding state card is placed above other cards in the plurality of cards for display;
and when the electronic equipment displays the second riding mode card, vibrating and/or playing a warning sound.
15. The method according to claim 14, wherein the conventional status card is presented in a manner of:
if the card group displayed by the electronic equipment comprises a plurality of cards, the normal state card and other cards in the plurality of cards are displayed in a polling mode.
16. An electronic device, comprising:
one or more processors, memory;
and one or more computer programs, wherein the one or more computer programs are stored on the memory and when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-15.
CN202111457123.4A 2021-12-01 2021-12-01 Subway trip detection method and electronic equipment Active CN115033308B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111457123.4A CN115033308B (en) 2021-12-01 2021-12-01 Subway trip detection method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111457123.4A CN115033308B (en) 2021-12-01 2021-12-01 Subway trip detection method and electronic equipment

Publications (2)

Publication Number Publication Date
CN115033308A true CN115033308A (en) 2022-09-09
CN115033308B CN115033308B (en) 2023-01-17

Family

ID=83118464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111457123.4A Active CN115033308B (en) 2021-12-01 2021-12-01 Subway trip detection method and electronic equipment

Country Status (1)

Country Link
CN (1) CN115033308B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0887629A (en) * 1994-09-20 1996-04-02 Toshiba Corp Automatic ticket examination device
US10621574B1 (en) * 2011-09-29 2020-04-14 Raj Rao Linked wallet device system including a plurality of socio-economic interfaces
CN111401328A (en) * 2020-04-23 2020-07-10 Oppo广东移动通信有限公司 Data acquisition method, device, terminal and storage medium
CN111770234A (en) * 2020-09-03 2020-10-13 江西鹭鹭行科技有限公司 Two-dimensional code switching method, system, storage medium and mobile terminal
CN111831378A (en) * 2020-07-10 2020-10-27 联想(北京)有限公司 Processing method and device and electronic equipment
CN211969095U (en) * 2020-03-20 2020-11-20 华旭 Rail transport vehicle for railway electric construction
CN112698848A (en) * 2020-12-31 2021-04-23 Oppo广东移动通信有限公司 Downloading method and device of machine learning model, terminal and storage medium
CN213092341U (en) * 2020-08-04 2021-04-30 武汉城市一卡通有限公司 Bus-mounted machine suitable for fusion payment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0887629A (en) * 1994-09-20 1996-04-02 Toshiba Corp Automatic ticket examination device
US10621574B1 (en) * 2011-09-29 2020-04-14 Raj Rao Linked wallet device system including a plurality of socio-economic interfaces
CN211969095U (en) * 2020-03-20 2020-11-20 华旭 Rail transport vehicle for railway electric construction
CN111401328A (en) * 2020-04-23 2020-07-10 Oppo广东移动通信有限公司 Data acquisition method, device, terminal and storage medium
CN111831378A (en) * 2020-07-10 2020-10-27 联想(北京)有限公司 Processing method and device and electronic equipment
CN213092341U (en) * 2020-08-04 2021-04-30 武汉城市一卡通有限公司 Bus-mounted machine suitable for fusion payment
CN111770234A (en) * 2020-09-03 2020-10-13 江西鹭鹭行科技有限公司 Two-dimensional code switching method, system, storage medium and mobile terminal
CN112698848A (en) * 2020-12-31 2021-04-23 Oppo广东移动通信有限公司 Downloading method and device of machine learning model, terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李克武: "合肥公交集团联合腾讯公司免费赠送"公交电子车票"", 《城市公共交通》 *

Also Published As

Publication number Publication date
CN115033308B (en) 2023-01-17

Similar Documents

Publication Publication Date Title
CN114489868B (en) Subway trip detection method and electronic equipment
WO2021175062A1 (en) Service providing method and apparatus, and terminal and storage medium
CN105432100B (en) Method and apparatus for merging geo-fence event
CN103905602B (en) The mobile terminal with automatic answer function and the auto-answer method wherein used
KR102594877B1 (en) A method for guidence to reduce carbon emissions using public transportation and shared mobility
CN104883667A (en) System and method of providing mode changes to wireless devices
CN114880065B (en) Method, device, system and storage medium for controlling card display
US20190378095A1 (en) Information processing apparatus, wireless communication terminal, and information processing method
CN115022461B (en) Subway trip detection method and electronic equipment
CN115022448B (en) Subway trip detection method and electronic equipment
CN106372862A (en) Method and device for turning off alarm clock of device
CN115022943B (en) Method for positioning geographic position and electronic equipment
CN112365127A (en) Information prompting method and device
CN105933907A (en) Device and method for identifying pseudo base station, and mobile terminal
CN115038032B (en) Subway trip detection method and electronic equipment
CN115022459A (en) Travel reminding method and electronic equipment
CN115033308B (en) Subway trip detection method and electronic equipment
CN115033309B (en) Subway trip detection method and electronic equipment
CN115038053B (en) Travel reminding method and electronic equipment
CN116033343B (en) Card display method and electronic equipment
CN114489449B (en) Display method and electronic equipment
CN105959301A (en) Method and system for optimizing multimedia call
CN115022449B (en) Subway travel detection method and electronic equipment
CN110493469A (en) A kind of method, apparatus and medium of intelligent prompt trip information
CN115018436B (en) Travel reminding method and electronic equipment

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