Trip reminder methods and electronic devices
By acquiring and matching cell identifiers when electronic devices access cell handover, and using the longest common subsequence algorithm to determine travel information, the problem of electronic devices being unable to detect trip changes in a timely manner is solved, thus achieving an accurate trip reminder service.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2023-12-29
- Publication Date
- 2026-05-26
AI Technical Summary
In certain travel scenarios, electronic devices may fail to detect changes in a user's itinerary in a timely manner, resulting in an inability to provide accurate itinerary reminders.
By obtaining the target cell identifier when an electronic device accesses a cell for handover and matching it with the cell identifier corresponding to the scheduled trip, the matching degree is calculated using the longest common subsequence algorithm to determine the user's travel information, thereby providing accurate trip reminders.
It enables timely and accurate trip reminders when users' travel plans change, reducing unnecessary reminders and improving service accuracy.
Smart Images

Figure CN120282090B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a trip reminder method and electronic device. Background Technology
[0002] Normally, after a user purchases a ticket, a reminder service can be provided to the user based on the station list information of the user's travel order. However, in some special travel scenarios, it is not possible to accurately obtain the user's actual itinerary. For example, if the user cancels the booking before departure for some reason, or if the user's itinerary changes during the trip, the device may not be able to detect the user's travel changes in time and cannot provide the user with timely and accurate itinerary reminder services. Summary of the Invention
[0003] In view of this, this application provides a trip reminder method and electronic device that provides users with timely and accurate trip reminder services.
[0004] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:
[0005] In a first aspect, this application provides a trip reminder method, which includes: in response to cell handover, obtaining the target cell identifier accessed by an electronic device between the current time and a start time; wherein the start time is the boarding time of the train for the target user's scheduled trip, and the electronic device is a device used to purchase a ticket for the scheduled trip. Based on the target cell identifier and the cell identifier corresponding to the scheduled trip, determining the target user's travel information; and displaying trip reminder information related to the travel information.
[0006] In this method, the travel time of the user's scheduled trip is taken as the starting time. If the access cell of the electronic device switches, the identifier of the new access cell can be obtained, and it can be determined whether the number of cells the electronic device has accessed exceeds a preset number. If it does, it indicates that the user's movement range has reached a certain area, requiring a trip reminder service. Furthermore, the identifiers of the target cells accessed by the electronic device are matched with the cell identifiers corresponding to the scheduled trip to determine the user's movement status, i.e., the user's travel information at the current time. The electronic device's display screen can then display reminder information related to this travel information, thus providing timely and accurate trip reminder services to the user.
[0007] In conjunction with the first aspect, in one possible implementation, the target user's travel information includes any one of the following: the target user's information about not boarding; the target user's information about intermediate stops; the target user's information about getting off midway; the target user's information about imminent arrival; the target user's information about arriving on time; and the target user's information about missing a stop.
[0008] In conjunction with the first aspect, in one possible implementation, determining the target user's travel information based on the target cell identifier and the cell identifier corresponding to the scheduled trip includes: determining the cell matching degree based on the target cell identifier and the cell identifier corresponding to the scheduled trip; wherein, the cell matching degree is the degree of matching between the target cell identifier and the cell identifier corresponding to the scheduled trip. The target user's travel information is then determined based on the cell matching degree and the station identifier of the target user's most recent route, where the station identifier of the target user's most recent route is determined by the coverage degree between the target cell identifier and the cell identifier corresponding to the scheduled trip.
[0009] In this method, the target cell identifier and the cell identifier corresponding to the scheduled trip can be matched. The matching method can be the Longest Common Subsequence (LCSS) algorithm to calculate and determine the matching degree between the target cell identifier and the cell identifier corresponding to the scheduled trip.
[0010] In other words, the longest common subsequence algorithm is used to calculate the similarity between the target cell identifier and the cell identifier corresponding to the predetermined trip. The LCSS algorithm can find the longest common subsequence of the two cell identifiers, is compatible with sub-matching, and supports calculating the similarity between the target cell identifier and the cell identifier corresponding to the predetermined trip.
[0011] In conjunction with the first aspect, in one possible implementation, the target user's travel information is determined based on the cell matching degree and the station identifier of the target user's most recent route, including: if the cell matching degree is less than the matching degree threshold, and the station identifier does not exist in the cell identifier corresponding to the scheduled trip, or if the station identifier is the departure station identifier of the target user's scheduled trip, the target user's travel information can be determined as no-boarding information.
[0012] In this method, if the cell matching degree is less than the matching degree threshold, it means that the target user has stopped the scheduled trip, that is, the target user is not on the journey of this train. Furthermore, by measuring the coverage between the target cell identifier and the cell identifier corresponding to the scheduled trip, it is determined that the station identifier of the target user's most recent route does not exist in the cell identifier corresponding to the scheduled trip. Alternatively, the station identifier of the target user's most recent route is the departure station identifier of the target user's scheduled trip, indicating that the cell identifier of the target user's route does not overlap with the cell identifier corresponding to the scheduled trip. In other words, the target user did not board the train.
[0013] In conjunction with the first aspect, in one possible implementation, the target user's travel information is determined based on the cell matching degree and the station identifier of the target user's most recent route, including: if the cell matching degree is less than the matching degree threshold, and the station identifier is the station identifier of the route of the target user's scheduled trip, the target user's travel information is determined to be midway alighting information.
[0014] In this method, if the cell matching degree is less than the matching degree threshold, it means that the target user has stopped the scheduled trip, that is, the target user is not on the journey of this train. And by using the coverage between the target cell identifier and the cell identifier corresponding to the scheduled trip, the station identifier of the target user's most recent route is obtained as the route station identifier of the scheduled trip, which means that the target user has boarded the train, but is no longer on the train at this time, so it can be determined that the target user has gotten off the train midway.
[0015] In conjunction with the first aspect, in one possible implementation, the target user's travel information is determined based on the cell matching degree and the station identifier of the target user's most recent route, including: if the cell matching degree is less than the matching degree threshold, and the station identifier is the arrival station identifier of the target user's scheduled trip, the target user's travel information is determined to be on-time arrival information.
[0016] In this method, if the cell matching degree is less than the matching degree threshold, it means that the target user has stopped the scheduled trip, that is, the target user is not on the journey of this train. And by using the coverage between the target cell identifier and the cell identifier corresponding to the scheduled trip, the station identifier of the target user's most recent route is obtained as the arrival station identifier of the scheduled trip, which means that the target user has boarded the train, but is no longer on the train. Therefore, it can be determined that the target user has completed the journey.
[0017] In conjunction with the first aspect, in one possible implementation, the travel information of the target user is determined based on the cell matching degree and the station identifier of the target user's most recent route, including: if the cell matching degree is greater than or equal to the matching degree threshold, and the station identifier is a first station identifier, the travel information of the target user is determined to be the information of the upcoming arrival; wherein, the first station identifier is the station identifier of the previous station of the destination in the target user's scheduled trip.
[0018] In this method, if the cell matching degree is greater than the matching degree threshold, it means that the target user is still in the scheduled trip. Furthermore, by measuring the coverage between the target cell identifier and the cell identifier corresponding to the scheduled trip, the station identifier of the target user's most recent route is obtained as the previous station identifier of the destination station in the scheduled trip. Therefore, it can be determined that the target user is about to arrive at the destination station in the scheduled trip.
[0019] In conjunction with the first aspect, in one possible implementation, the travel information of the target user is determined based on the cell matching degree and the station identifier of the target user's most recent route, including: if the cell matching degree is greater than or equal to the matching degree threshold, and the station identifier is the arrival station identifier of the target user's scheduled trip, the travel information of the target user is determined to be the station information that has passed the station.
[0020] In this method, if the cell matching degree is greater than the matching degree threshold, it means that the target user is still in the scheduled train. Furthermore, if the station identifier of the target user's most recent route is obtained by measuring the coverage between the target cell identifier and the cell identifier corresponding to the scheduled route, it means that the target user has already passed the station.
[0021] In conjunction with the first aspect, in one possible implementation, the target user's travel information is determined based on the cell matching degree and the station identifier of the target user's most recent route, including: if the cell matching degree is greater than or equal to the matching degree threshold, and the station identifier is the station identifier of the route of the target user's scheduled trip, the target user's travel information is determined to be intermediate station reminder information.
[0022] In this method, if the cell matching degree is greater than the matching degree threshold, it means that the target user is still in the scheduled train journey. The station identifier that the target user passed through most recently is obtained by the coverage between the target cell identifier and the cell identifier corresponding to the scheduled journey. At this time, the user can be reminded of the intermediate station of the next stop.
[0023] In conjunction with the first aspect, in one possible implementation, in response to cell handover, obtaining the target cell identifier accessed by the electronic device between the current time and the start time includes: in response to cell handover, obtaining the cell identifier accessed by the electronic device; and if the number of cell identifiers accessed by the electronic device is greater than or equal to a preset number, determining the target cell identifier accessed by the electronic device between the current time and the start time.
[0024] In this method, if the number of cell identifiers accessed by the electronic device is less than a preset number, the access cells of the electronic device are monitored until the number of cell identifiers accessed by the electronic device is greater than or equal to the preset number, and the target cell identifier is determined.
[0025] In conjunction with the first aspect, in one possible implementation, the time at which the determination of the target user's travel information is stopped can be the time when the scheduled train arrives at its destination.
[0026] Secondly, an electronic device is provided, which has the function of implementing the method of the first aspect described above. This function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described function.
[0027] Thirdly, an electronic device is provided, comprising: a processor and a memory; the memory being used to store computer execution instructions, wherein when the trip is prompted, the processor executes the computer execution instructions stored in the memory to cause the electronic device to perform the method as described in any of the first aspects above.
[0028] Fourthly, an electronic device is provided, comprising: a processor; the processor being configured to be coupled to a memory and, after reading instructions from the memory, to execute, according to the instructions, a method as described in any of the first aspects above.
[0029] Fifthly, a computer-readable storage medium is provided that stores instructions which, when executed on a computer, enable the computer to perform the methods of any one of the first aspects described above.
[0030] In a sixth aspect, a computer program product containing instructions is provided, which, when run on a computer, enables the computer to perform any of the methods described in the first aspect above.
[0031] In a seventh aspect, an apparatus (e.g., a system-on-a-chip) is provided, comprising a processor for supporting an electronic device in performing the functions described in the first aspect above. In one possible design, the apparatus further comprises a memory for storing program instructions and data necessary for the electronic device. When the apparatus is a system-on-a-chip, it may be composed of chips or may include chips and other discrete devices.
[0032] The technical effects of any of the design methods in aspects two through seven can be found in the technical effects of different design methods in aspect one, and will not be repeated here. Attached Figure Description
[0033] Figure 1 A schematic diagram illustrating an example of a trip reminder provided in this application embodiment;
[0034] Figure 2 A schematic diagram illustrating an example of a user's itinerary provided in this application embodiment;
[0035] Figure 3 A schematic diagram illustrating another example of a user trip provided in this application embodiment;
[0036] Figure 4 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0037] Figure 5 A flowchart illustrating a trip reminder method provided in this application embodiment;
[0038] Figure 6 A schematic diagram illustrating an example of a cell identifier corresponding to a pre-booked trip, provided as an embodiment of this application;
[0039] Figure 7 A schematic diagram illustrating another example of a trip reminder provided in this application embodiment;
[0040] Figure 8 A schematic diagram illustrating another example of a trip reminder provided in this application embodiment;
[0041] Figure 9 A schematic diagram illustrating another example of a trip reminder provided in this application embodiment;
[0042] Figure 10 A schematic diagram illustrating another example of a trip reminder provided in this application embodiment;
[0043] Figure 11 A schematic diagram illustrating another example of a trip reminder provided in this application embodiment;
[0044] Figure 12 A flowchart illustrating another trip reminder method provided in this application embodiment;
[0045] Figure 13 A flowchart illustrating another trip reminder method provided in this application embodiment;
[0046] Figure 14 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0047] Figure 15 This is a schematic diagram of a chip system provided in an embodiment of this application. Detailed Implementation
[0048] In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to be a limitation of this application. As used in the specification and appended claims of this application, the singular expressions "a," "the," "the," and "this" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, "at least one" and "one or more" refer to one or more (including two). The term "and / or" is used to describe the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, and B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.
[0049] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.
[0050] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0051] Currently, various travel-related applications (Apps) can provide reminder services to users. That is, after a user purchases a ticket, the App can provide station reminders related to the user's travel itinerary based on the station list information. For example, in one scenario, a reminder message about the upcoming departure time can be sent to the App on the user's electronic device 2 hours before the scheduled departure time, thus reminding the user to pay attention to the departure time and leave early to avoid missing the train. Alternatively, during the journey, reminders of stops along the route can be sent to the App on the electronic device, thus reminding the user to pay attention to the arrival time and avoid missing the stop. For instance, suppose mobile phone 100 records the user's departure time as 8:15. Mobile phone 100 can send a notification message or... Figure 1 The reminder message shown.
[0052] However, in certain special travel scenarios, electronic devices cannot accurately obtain a user's actual itinerary. For example, due to certain special reasons (personal reasons), a user may cancel their booked trip before departure, or their itinerary may change during the trip. This may prevent electronic devices from detecting changes in the user's travel plans in a timely manner and thus from providing accurate itinerary services.
[0053] In a scenario, such as Figure 2As shown, the user has already boarded the train but terminated their trip just before departure due to certain factors. That is, the user did not actually travel, but their electronic device continues to remind them of unnecessary subsequent trips, causing some disruption. For example, the user may need to return to the office promptly due to an impromptu meeting and cannot continue their scheduled trip, but their mobile phone will still remind them of their upcoming trip.
[0054] In another scenario, such as Figure 3 As shown, due to ticket shortages, users may purchase tickets for stops beyond their actual travel itinerary or purchase tickets for stops that don't match their actual travel plans. This can lead to travel changes mid-journey, preventing electronic devices from providing accurate and timely travel reminders. For example, if a user purchases a ticket from point A to point C due to ticket shortages for the journey from point A to point B (meaning the user has purchased tickets for the journey from point B to point C), and the user actually needs to terminate their journey at point B, the electronic device cannot determine the user's travel information based on their actual travel situation, and therefore cannot provide accurate and timely service.
[0055] To address the aforementioned issues, this application provides a trip reminder method. Starting with the travel time of the user's scheduled trip, when the access cell of the electronic device switches, the method obtains the identifier of the new access cell and determines whether the number of cells the electronic device has accessed exceeds a preset number. If it does, it indicates that the user's movement range has reached a certain limit, requiring a trip reminder service. Furthermore, the method matches the identifiers of the target cells accessed by the electronic device with the cell identifiers corresponding to the scheduled trip to determine the user's movement status, i.e., the user's travel information at the current time. The electronic device's display screen can then display reminder information related to this travel information, thereby providing timely and accurate trip reminder services to the user.
[0056] The trip reminder method provided in this application can be applied to any electronic device with trip reminder capabilities. For example, the electronic device can be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) / virtual reality (VR) device, in-vehicle device (such as in-vehicle navigation system), and other devices with positioning functions. This application does not impose any special limitations on the specific form of the electronic device.
[0057] For example, please refer to Figure 4The diagram illustrates the structure of an electronic device 400. The electronic device 400 may include a processor 110, an external memory interface 120, an internal memory 121, an audio module 130, a speaker 130A, a microphone 130B, a display screen 140, a communication module 150, a power module 160, an input device 170, etc.
[0058] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0059] Processor 110 may include one or more processing units. For example, processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), and / or a neural network processing unit (NPU), etc. Different processing units may be independent components or integrated into one or more processors. In some embodiments, electronic device 100 may also include one or more processors 110.
[0060] The controller is the nerve center and command center of the electronic device 400. It can generate operation control signals based on the instruction opcode and timing signals to control the fetching and execution of instructions.
[0061] The application processor can run the operating system of the electronic device 400 to manage the hardware and software resources of the electronic device 400. This includes managing and configuring memory, determining the priority of system resource allocation, controlling input and output devices, operating the network, managing the file system, and managing drivers. The operating system can also provide a user interface for interacting with the system. Various types of software, such as drivers and applications (Apps), can be installed within the operating system.
[0062] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs can enable applications such as intelligent cognition in electronic devices.
[0063] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0064] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM card interface, and / or a USB interface, etc.
[0065] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 400. In other embodiments of this application, the electronic device 400 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0066] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 400. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0067] Internal memory 121 can be used to store one or more computer programs, which include instructions. Processor 110 can execute the instructions stored in internal memory 121, thereby causing electronic device 400 to perform application running methods, various applications, and data management as provided in some embodiments of this application. Internal memory 121 may include a code storage area and a data storage area. The data storage area may store data created during the use of electronic device 400. In addition, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as one or more disk storage components, flash memory components, universal flash storage (UFS), etc. In some embodiments, processor 110 can execute instructions stored in internal memory 121 and / or instructions stored in memory disposed in processor 110 to cause electronic device 400 to perform application running methods, other applications, and data management as provided in embodiments of this application.
[0068] Electronic device 400 can implement audio functions through audio module 130, speaker 130A, microphone 130B, and application processor, such as music playback and recording. Audio module 130 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. Audio module 130 can also be used for encoding and decoding audio signals. In some embodiments, audio module 130 can be located in processor 110, or some functional modules of audio module 130 can be located in processor 110.
[0069] The loudspeaker 130A, also known as a "loudspeaker", is used to convert audio electrical signals into sound signals.
[0070] Microphone 130B, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. Users can speak by bringing their mouth close to microphone 130B, inputting sound signals into microphone 130B.
[0071] The communication function of electronic device 400 can be realized through antenna 1, antenna 2 and communication module 150, etc.
[0072] Communication module 150 can provide solutions for wireless communication applications on electronic device 400, including cellular, Wi-Fi, Bluetooth (BT), and wireless data transmission modules (e.g., 433MHz, 868MHz, 915MHz). Communication module 150 can be one or more devices integrating at least one communication processing module. Communication module 150 receives electromagnetic waves via antenna 1 or antenna 2, filters and frequency-modulates the electromagnetic wave signals, and sends the processed signal to processor 110. Communication module 150 can also receive signals to be transmitted from processor 110, frequency-modulate and amplify them, and then convert them into electromagnetic waves for radiation via antenna 1 or antenna 2. For example, electronic device 400 can obtain a source database and a destination database through communication module 150; the source database is the database before data integration, and the destination database is the database after data integration. Extracting and integrating data from the source database forms the destination database.
[0073] Electronic device 400 implements display functions through a GPU, display screen 140, and application processor. The GPU is a microprocessor for image processing, connected to the display screen 140 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0074] The display screen 140 is used to display images, videos, etc. The display screen 140 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a minimized display, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 140, where N is a positive integer greater than 1. In this embodiment, the display screen 140 can be used to display a user interface (UI) and receive user operations on the UI. For example, the display screen 140 can display difference data between a source database and a destination database obtained according to the method provided in this embodiment.
[0075] In some embodiments, the display screen 140 is provided with a pressure sensor, a touch sensor, etc. The pressure sensor senses pressure signals and converts them into electrical signals. When a touch operation is applied to the display screen 140, the electronic device 100 detects the intensity of the touch operation based on the pressure sensor. The electronic device 400 can also calculate the touch location based on the detection signal from the pressure sensor. The touch sensor, also called a "touch panel," can form a touchscreen, also called a "touch screen," with the display screen 140. The touch sensor detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can also be provided through the display screen 140.
[0076] The power module 160 can be used to supply power to the various components included in the electronic device 400. In some embodiments, the power module 160 can be a battery, such as a rechargeable battery.
[0077] Input device 170 may include a keyboard, mouse, etc. The keyboard is used to input English letters, numbers, punctuation marks, etc., into electronic device 400, thereby issuing commands and inputting data to electronic device 400. The mouse is an indicator for the horizontal and vertical coordinate positioning of the display system of electronic device 400, used to input instructions to electronic device 400. Input device 170 can be connected to electronic device 400 via a wired connection, such as through a GPIO interface or USB interface. Input device 170 can also be connected to electronic device 400 wirelessly, such as through Bluetooth or infrared.
[0078] The methods described in the following embodiments can all be implemented in the electronic device 400 having the above-described hardware structure. The following embodiments use a mobile phone as an example to illustrate the methods of this application.
[0079] The trip reminder method provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0080] The travel reminder method described in this application can be applied to train travel services. For example... Figure 5 As shown, the trip reminder method may include steps S501-S504. Step S501 can also be referred to as the "collecting cell identifier" process, and steps S502-S504 can be referred to as the "trip reminder" process. Steps S501-S504 are described in detail below.
[0081] S501: The mobile phone obtains the community identifier corresponding to the target user's booked trip.
[0082] In the embodiments related to this application, the target user's pre-booked trip may include: one or more user trip routes, each route including a departure station and a destination station. The pre-booked trip may also include: transit stations located between the departure station and the destination station. Different stations in the user's pre-booked trip correspond to different cell identifiers, and one or more cell identifiers may be present between any two adjacent stations.
[0083] In this application embodiment, the cell identifier can be understood as the cell's identification information. A cell, also known as a wireless communication cell, refers to a basic unit that provides wireless communication services within a certain area. Each cell consists of a base station and a corresponding antenna.
[0084] Before a user purchases a train ticket, their phone does not have the corresponding neighborhood identifier for the planned trip saved. After the user purchases the train ticket, the phone can obtain the neighborhood identifier corresponding to that train trip.
[0085] In this embodiment, the mobile phone can respond to the user's touch operation, purchase a train ticket for the user's pre-booked trip, and obtain the cell identifier corresponding to the train ticket trip. For example, the mobile phone can count the cell identifiers of the entire journey of the train corresponding to the ticket, or it can only count the cell identifiers between the departure station and the arrival station on the train ticket (including the cell identifiers of the departure station and the arrival station).
[0086] For example, suppose a user frequently travels between location A and location C. On a certain day, the user purchases a ticket for train G7225 on December 15th, departing from location B at 8:15 AM and arriving at location D at 10:16 AM. Figure 6 As shown, the cell identifiers for the entire journey of train G7225 include cell identifiers for the originating station A (cell1, cell2, cell3, cell4), intermediate station B (cell5, cell6, cell7, cell8), intermediate station C (cell9, cell10, cell11, cell12, cell13), intermediate station D (cell14, cell15, cell16, cell17, cell18), and the final station E (cell19). After purchasing a ticket from station B to station D, a user can obtain the cell identifiers for the entire journey of train G7225, or only cell identifiers from the departure station B (cell5) to the arrival station D (cell13).
[0087] S502: In response to cell handover, the mobile phone obtains the identifier of the target cell accessed between the current time and the start time.
[0088] The start time is the departure time of the train for the target user's scheduled trip.
[0089] In this embodiment, the mobile phone can start monitoring cell handover from the departure time of the train scheduled by the target user. If a cell handover occurs, the mobile phone can store the new cell identifier in a cell queue and determine whether the cell queue meets preset conditions. If not, the mobile phone iteratively executes the aforementioned steps until the cell queue meets the preset conditions, at which point the mobile phone determines the target cell identifier for access. The time at which the mobile phone determines the target cell identifier is the current time. It should be noted that the cell queue includes multiple target cell identifiers.
[0090] For example, the aforementioned cell queue meeting the preset conditions can be either of the following two situations.
[0091] Case (1): The cell queue meets the preset conditions, which may include whether the number of cell identifiers in the cell queue meets the preset number, that is, whether the number of cell identifiers accessed by the mobile phone meets the preset number. This preset number is preset based on the predetermined trip conditions or determined based on model training adjustments. The aforementioned preset number can be set automatically by the mobile phone or manually by the user.
[0092] In order to accurately provide users with travel reminder services, if the number of cell identifiers in the cell queue meets a preset number, it indicates that the user's travel range has reached a considerable area, and travel reminder services are required. In this embodiment, it is assumed that the preset number is 4. When the number of cell identifiers in the cell queue is 4, the mobile phone needs to provide reminder services to the user.
[0093] In one scenario, the mobile phone begins monitoring cell handover starting at 8:15 AM on December 15th, the departure time of the user's booked train. For example... Figure 6 As shown, the user started taking the train from departure station B at 8:15 on December 15th. After a period of time, the user's access cell changed from cell 5 at departure station B to cell 6. Then, the mobile phone can store the switched cell 6 into the cell queue and determine whether the number of cell identifiers in the cell queue meets the preset number.
[0094] If the number of cell identifiers in the cell queue does not meet the preset number, the mobile phone continues to monitor cell handover. After a period of time, the cell the user accesses changes from cell 6 to cell 7. The mobile phone then stores the switched cell 7 into the cell queue and again checks if the number of cell identifiers in the queue meets the preset number, until the number of cell identifiers in the cell queue obtained by the mobile phone meets the preset number.
[0095] For example, if the number of cell identifiers in the cell queue has reached the preset number, the mobile phone can determine that the target cell identifiers for access are cell6, cell7, cell8, and cell9 at intermediate station C.
[0096] In another scenario, a user cancels their trip after entering the station for personal reasons but does not request a refund. In this case, the phone cannot know the user's itinerary. The phone still monitors cell switching starting from the user's scheduled departure time of 8:15 AM on December 15th. After a period of time, the user switches from cell 5 at departure station B to cell 21. The phone can then store the switched cell 21 in the cell queue and check if the number of cell identifiers in the queue meets the preset requirement.
[0097] If the number of cell identifiers in the cell queue does not meet the preset number, the mobile phone continues to monitor cell handover. After a period of time, the cell the user accesses changes from cell 21 to cell 22. Then, the mobile phone can store the switched cell 22 into the cell queue and check again whether the number of cell identifiers in the cell queue meets the preset number, until the number of cell identifiers in the cell queue obtained by the mobile phone meets the preset number.
[0098] For example, if the number of cell identifiers in the cell queue has reached a preset number, the mobile phone can determine that the target cell identifiers for access are cell21, cell22, cell23, and cell24.
[0099] In another scenario, because the user arrives at departure station B later than the boarding time of train G7225 at station B, and thus misses the train, the user returns home. However, the mobile phone cannot know that the user did not take the G7225 train and still starts cell handover monitoring from the user's scheduled train departure time of 8:15 on December 15th. The mobile phone determines the target cell identifier for access through the method described in scenario (1) above.
[0100] Case (2): The above cell queue meets the preset conditions, which may include whether the number of iterations of the cell queue meets the preset number.
[0101] In order to accurately provide users with travel reminder services, when the number of iterations in the cell queue meets a preset number, it indicates that the user's movement range has reached a significant area, and travel reminder services are required. In this embodiment, it is assumed that the preset number of iterations is 3. When the number of iterations in the cell queue meets 3, the mobile phone needs to provide reminder services to the user.
[0102] In one scenario, the mobile phone begins monitoring cell handover starting at 8:15 AM on December 15th, the departure time of the user's booked train. For example... Figure 6 As shown, the user started taking the train from departure station B at 8:15 on December 15th. After a period of time, the user's access cell changed from cell 5 at departure station B to cell 6. Then, the phone determined whether the number of iterations of the cell queue met the preset number.
[0103] At this point, the cell queue iteration count is 0. Since the cell queue iteration count has not met the preset number, the phone continues to monitor cell handover. After a period of time, the user's cell connection changes from cell 5 to cell 6. Then, the phone again checks if the cell queue iteration count meets the preset number, until the cell queue iteration count meets the preset number.
[0104] For example, if the number of iterations in the cell queue has reached the preset number, then the cell identifiers in the cell queue at this time include cell6, cell7, cell8, and cell9 at intermediate station C. The mobile phone can determine that the target cell identifier for access is cell6, cell7, cell8, and cell9 at intermediate station C.
[0105] In another scenario, a user cancels their trip after entering the station for personal reasons but does not request a refund. In this case, the phone cannot know the user's itinerary. The phone still monitors the cell switch starting from the departure time of the user's booked train, December 15th at 8:15 AM. After a period of time, the user switches the cell from cell 5 at the departure station B to cell 21. Then, the phone determines whether the number of iterations in the cell queue meets the preset number.
[0106] At this point, the cell queue iteration count is 0. Since the cell queue iteration count has not met the preset number, the phone continues to monitor cell handover. After a period of time, the user's cell connection changes from cell21 to cell22. Then, the phone again checks if the cell queue iteration count meets the preset number, until the cell queue iteration count meets the preset number.
[0107] For example, if the number of cell identifiers in the cell queue has reached the preset number, then the cell identifiers in the cell queue include cell21, cell22, cell23, and cell24. The mobile phone can determine that the target cell identifier for access is cell21, cell22, cell23, and cell24.
[0108] In another scenario, because the user arrives at departure station B later than the boarding time of train G7225 at station B, and thus misses the train, the user returns home. However, the mobile phone cannot know that the user did not take the G7225 train and still starts cell handover monitoring from the user's scheduled train departure time of 8:15 on December 15th. The mobile phone determines the target cell identifier for access through the method described in scenario (2) above.
[0109] In another scenario, if the user arrives at departure station B later than the boarding time of train G7225 at station B, thus missing the train, and purchases a ticket for another train, the mobile phone will continue to execute S501-S502 for the other train ticket.
[0110] In another scenario, if a user cancels their trip after entering the station to wait for their train for some personal reason, has already processed a refund, and has not purchased a ticket for another train, then the phone's cell phone switching monitoring will be turned off.
[0111] S503: The mobile phone determines the passenger information of the target user based on the target cell identifier and the cell identifier corresponding to the scheduled trip.
[0112] The target user's travel information is used to provide the target user with a trip reminder service, which includes any of the following: the target user's information about not boarding; the target user's information about intermediate stops; the target user's information about getting off at intermediate stops; the target user's information about being about to arrive; the target user's information about arriving on time; and the target user's information about having missed a stop.
[0113] In this embodiment of the application, the mobile phone can determine the cell matching degree based on the target cell identifier and the cell identifier corresponding to the scheduled trip, and determine the target user's travel information based on the cell matching degree and the station identifier of the target user's most recent route.
[0114] For example, the mobile phone substitutes the length of the target cell identifier and the length of the cell identifier corresponding to the predetermined trip into a preset algorithm to determine the longest common subsequence length, and determines the cell matching degree based on the longest common subsequence length and the length of the target cell identifier. For instance, the mobile phone can substitute the length of the target cell identifier and the length of the cell identifier corresponding to the predetermined trip into the following formula 1 (Longest Common Subsequence Matching Algorithm LCS) to calculate the longest common subsequence length of the two cell identifiers.
[0115] Formula 1
[0116] Where i is the length of the cell identifier corresponding to the scheduled trip, and j is the length of the target cell identifier. The length of the longest common subsequence can also be represented by L.
[0117] Furthermore, the mobile phone can use the ratio of the longest common subsequence length to the length of the target cell identifier as the cell matching degree.
[0118] For example, assuming the matching threshold is 0.8, the longest common subsequence length of the two cell identifiers is 5, and the length of the target cell identifier is 4, the mobile phone can determine the cell matching degree as 1.25 based on the longest common subsequence length and the length of the target cell identifier. This cell matching degree is greater than the matching threshold.
[0119] Alternatively, if the longest common subsequence length of the two cell identifiers is 3 and the length of the target cell identifier is 4, the mobile phone can determine the cell matching degree as 0.75 based on the length of the longest common subsequence and the length of the target cell identifier. This cell matching degree is less than the matching degree threshold.
[0120] In this embodiment of the application, the mobile phone can determine the target user's travel information based on the different cell matching degrees and the station identifier of the target user's most recent route.
[0121] For example, the cell matching degree mentioned above can be either of the following two cases.
[0122] Scenario 1: The matching degree of the above-mentioned cells is less than the matching degree threshold.
[0123] For example, if the cell matching degree is less than the matching degree threshold, the mobile phone can determine that the target user has stopped booking the trip, meaning the user is not on the journey for that train. Furthermore, the mobile phone can determine the target user's travel information based on the station identifier of the target user's most recent route.
[0124] The station identifier of the target user's most recent route indicates the station the user last passed through before the current time. This station identifier is determined by the coverage between the target cell identifier and the cell identifier corresponding to the scheduled trip, and includes any of the following: the station identifier along the route of the target user's scheduled trip; the station identifier of the target user's scheduled trip; the station identifier preceding the station to which the target user's scheduled trip arrives; or the station identifier does not exist in the cell identifier corresponding to the scheduled trip, or the station identifier is the departure station identifier of the target user's scheduled trip.
[0125] Scenario (1): Assume the target cell identifier is cell5 (the departure station of the user's scheduled trip), and the cell identifiers corresponding to the scheduled trip are cell5 (the departure station of the user's scheduled trip), cell6, cell7, cell8, cell9, cell10, cell11, cell12, cell13, cell14 (the arrival station of the user's scheduled trip) at intermediate station B. The mobile phone matches the target cell identifier with the cell identifiers corresponding to the scheduled trip, and determines that the station identifier most recently passed by the target user is the departure station identifier of the target user's scheduled trip. That is, the target user has arrived at the departure station of the scheduled trip, but for some reason, did not take the scheduled train.
[0126] Scenario (2): Assume cells 21, 22, 23, and 24. The cell identifiers corresponding to the scheduled trip are: cell 5 (departure station of the user's scheduled trip) at intermediate station B, cell 6, cell 7, cell 8; cell 9, cell 10, cell 11, cell 12, cell 13 at intermediate station C; and cell 14 (arrival station of the user's scheduled trip) at intermediate station D. The mobile phone matches the target cell identifier with the cell identifiers corresponding to the scheduled trip and determines that the target cell identifier does not exist in the cell identifiers corresponding to the scheduled trip, meaning the user did not take the scheduled trip.
[0127] Scenario (3): Assume the target cell identifiers are cell6, cell7, cell8, and cell9 at intermediate station C. The cell identifiers corresponding to the scheduled trip are cell5 (the departure station of the user's scheduled trip) at intermediate station B, cell6, cell7, cell8, cell9 at intermediate station C, cell10, cell11, cell12, cell13, and cell14 (the arrival station of the user's scheduled trip) at intermediate station D. The mobile phone matches the target cell identifiers with the cell identifiers corresponding to the scheduled trip and determines the station identifiers most recently traversed by the target user as the route station identifiers of the target user's scheduled trip.
[0128] Since the matching degree of the community is less than the preset threshold, the user is no longer on the scheduled train. If the station that the target user passed through most recently is identified as a transit station, the mobile phone can determine that the user has gotten off the train early.
[0129] Scenario (4): Assume the target cell identifiers are cell11, cell12, cell13, and cell14 at intermediate station D (the destination station of the user's scheduled trip). The cell identifiers corresponding to the scheduled trip are cell5 at intermediate station B (the departure station of the user's scheduled trip), cell6, cell7, cell8, cell9 at intermediate station C, cell10, cell11, cell12, cell13, and cell14 at intermediate station D (the destination station of the user's scheduled trip). The mobile phone matches the target cell identifiers with the cell identifiers corresponding to the scheduled trip and determines the station identifier most recently traversed by the target user as the destination station identifier of the target user's scheduled trip.
[0130] Since the cell matching degree is less than the preset threshold, the user is no longer on the scheduled train. If the station the target user passed through most recently is identified as the arrival station, the mobile phone can determine that the user has arrived at the destination station.
[0131] Scenario 2: The matching degree of the above-mentioned cells is greater than or equal to the matching degree threshold.
[0132] For example, if the cell matching degree is greater than or equal to the matching degree threshold, the mobile phone can determine that the target user is in the scheduled trip. Then, the mobile phone can determine the target user's travel information based on the station identifier of the target user's most recent route.
[0133] Scenario (5): Assume the target cell identifiers are cell6, cell7, cell8, and cell9 at intermediate station C. The cell identifiers corresponding to the scheduled trip are cell5 (the departure station of the user's scheduled trip) at intermediate station B, cell6, cell7, cell8, cell9 at intermediate station C, cell10, cell11, cell12, cell13, and cell14 (the arrival station of the user's scheduled trip) at intermediate station D. The mobile phone matches the target cell identifiers with the cell identifiers corresponding to the scheduled trip, and determines that the station identifier most recently traversed by the target user is the station identifier preceding the arrival station in the target user's scheduled trip.
[0134] Since the matching degree of the cell is greater than the preset threshold, the user is still in the scheduled train journey. If the station that the target user passed through most recently is the station that is the previous station in the scheduled journey, the mobile phone can determine that the user is about to reach the final station of the scheduled journey.
[0135] Scenario (6): Assume the target cell identifiers are cell11, cell12, cell13, and cell14 at intermediate station D (the user's scheduled arrival station). The cell identifiers corresponding to the scheduled trip are cell5 at intermediate station B (the user's scheduled departure station), cell6, cell7, cell8, cell9 at intermediate station C, cell10, cell11, cell12, cell13, and cell14 at intermediate station D (the user's scheduled arrival station). The mobile phone matches the target cell identifiers with the cell identifiers corresponding to the scheduled trip, and determines the station identifier most recently traversed by the target user as the arrival station identifier.
[0136] Since the cell matching degree is greater than the preset threshold, the user is still on the scheduled train. If the station the target user passed through most recently is identified as the arrival station, the mobile phone can determine that the user has passed the station.
[0137] Scenario (7): Assume the target cell identifiers are cell10, cell11, cell12, and cell13, and the cell identifiers corresponding to the scheduled trip are cell5 (the departure station of the user's scheduled trip), cell6, cell7, and cell8 at intermediate station B, cell9, cell10, cell11, cell12, and cell13 at intermediate station C, and cell14 (the arrival station of the user's scheduled trip) at intermediate station D. The mobile phone matches the target cell identifiers with the cell identifiers corresponding to the scheduled trip to determine the stations that the target user did not pass through most recently.
[0138] Since the matching degree of the community is greater than the preset threshold, the user is still on the scheduled train. If the target user has not passed through the station in the last time, the mobile phone can determine that the user is on the journey and can send a reminder for the next station.
[0139] S504: The mobile phone displays reminders related to travel information.
[0140] For example, after the mobile phone determines the travel information of the target user, it can display the above-mentioned reminder information through at least one of the following: notification message, notification bar, or negative one screen, in order to provide the user with a trip reminder service.
[0141] Taking scenario (1) or scenario (2) in S503 above as an example, the mobile phone can display the above reminder information on the negative one screen. For example, as Figure 7 As shown in (a), the mobile phone can display a card including a reminder message 702 on the negative one screen 701. The reminder message 702 can be "No ride".
[0142] For example, taking scenario (3) in S503 above as an example, the mobile phone can display the above reminder information on the negative one screen. For example, as shown in the example below. Figure 7 As shown in (b), the mobile phone can display a card including a reminder message 703 on the negative one screen 701. The reminder message 703 can be "I have gotten off the bus midway".
[0143] For example, taking scenario (4) in S503 above as an example, the mobile phone can display the above reminder information on the negative one screen. For example, as Figure 7 As shown in (c), the mobile phone can display a card including a reminder message 704 on the negative one screen 701. The reminder message 704 can be "Arrived".
[0144] For example, taking scenario (5) in S503 above as an example, the mobile phone can display the above reminder information on the negative one screen. For example, as shown in the example below. Figure 8As shown in (a), the mobile phone can display a card including a reminder message 802 on the negative one screen 801. The reminder message 802 can be "coming soon".
[0145] For example, taking scenario (6) in S503 above as an example, the mobile phone can display the above reminder information on the negative one screen. For example, as shown in the example below. Figure 8 As shown in (b), the mobile phone can display a card including a reminder message 803 on the negative one screen 801. The reminder message 803 can be "Station passed".
[0146] For example, taking scenario (7) in S503 above as an example, the mobile phone can display the above reminder information on the negative one screen. For example, as shown in the example below. Figure 8 As shown in (c), the mobile phone can display a card including a reminder message 804 on the negative one screen 801. The reminder message 804 can be "Next stop reminder".
[0147] It should be understood that different brands or models of mobile phones have different designs for their negative one screen. For example, Figure 9 The negative one screen 901 shown is Figure 7 and Figure 8 The negative one screen is different. For example... Figure 9 As shown, the phone can display cards containing the different reminder information mentioned above on the negative one screen 901.
[0148] For example, such as Figure 10 As shown, the phone can send a notification message 1001. For example, the phone can respond to the user's touchscreen input to open the notification bar and display... Figure 11 The notification interface 1101 shown is shown. This notification interface 1101 includes a notification bar 1102 and a travel recommendation message 1103. The travel recommendation message 1103 includes the aforementioned prompt information.
[0149] Optionally, the phone or user can pre-set the display duration for the notification. For example, after the display duration, the phone can automatically clear the notification.
[0150] The following is an overview of another trip reminder method provided in the embodiments of this application.
[0151] like Figure 12As shown, in response to a user's touch operation to purchase a train ticket, after the user buys the ticket, the phone can obtain the cell identifier corresponding to the train journey (the cell identifier of the train number in the reserved journey) from the capability center. Then, starting from the departure time of the target user's reserved train, the phone can monitor cell handover. If a cell handover occurs, the phone can store the switched cell identifier in a cell queue and determine whether the cell queue meets preset conditions. If not, the phone iteratively executes the aforementioned steps until the cell queue meets the preset conditions, at which point the phone determines the target cell identifier to access.
[0152] The mobile phone uses an algorithm to match the target cell identifier with the cell identifier corresponding to the scheduled trip to determine the target user's travel information. The mobile phone's screen can display reminder information related to the travel information.
[0153] The following is a summary of the flow of another trip reminder method provided in the embodiments of this application, specifically as follows: Figure 13 As shown.
[0154] The mobile phone can start monitoring cell handover from the departure time of the train / bus scheduled for the target user's trip. When the access cell of the electronic device changes, it can obtain the identifier of the new access cell and determine if the number of cells the electronic device accesses exceeds a preset number. If it does, it indicates that the user's movement range has reached a certain limit, requiring a trip reminder service. Furthermore, based on the target cell identifier and the cell identifier corresponding to the scheduled trip, the mobile phone determines the cell matching degree and the identifier of the station the target user most recently passed through.
[0155] Secondly, mobile phones can determine travel information based on the station identifier of the target user's most recent route, depending on the different matching degrees of the community.
[0156] For example, if the cell matching degree is less than the matching degree threshold, and the station identifier does not exist in the cell identifier corresponding to the scheduled trip, or if the station identifier is the departure station identifier of the target user's scheduled trip, the mobile phone can determine that the target user's travel information is "not boarded".
[0157] If the station identifier is the same as the station identifier along the route of the target user's booked trip, the mobile phone can determine that the target user's travel information is information about getting off midway.
[0158] When the station identifier is the same as the arrival station identifier of the target user's booked trip, the mobile phone can determine that the target user's travel information is on-time arrival information.
[0159] For example, consider a scenario where the matching degree of a residential community is greater than the matching degree threshold. If the station identifier is the previous station identifier of the destination in the target user's scheduled trip, the mobile phone can determine that the target user's travel information indicates an upcoming arrival.
[0160] If the station identifier is the arrival station identifier of the target user's booked trip, the mobile phone can determine that the target user's travel information is that the station has been missed.
[0161] When the station identifier is the same as the station identifier along the route of the target user's booked trip, the mobile phone can determine that the target user's travel information is a stop reminder message.
[0162] Other embodiments of this application provide a possible structural schematic diagram of an electronic device. For example... Figure 14 As shown, the electronic device 1400 includes a processing unit 1410 and a storage unit 1420.
[0163] The processing unit 1410 is used to control and manage the operation of the electronic device 1400. The storage unit 1420 is used to store the program code and data of the electronic device 1400. The processing unit 1410 calls the program code stored in the storage unit 1420 to execute the various steps in the above method embodiments.
[0164] Of course, the unit modules in the aforementioned electronic device 1400 include, but are not limited to, the processing unit 1410 and the storage unit 1420. For example, the electronic device 1400 may also include a display unit, a communication unit, a power supply unit, etc. The display unit is used to display the user interface of the electronic device 1400. The communication unit is used for the electronic device 1400 to communicate with other electronic devices; for example, the electronic device 1400 receives path trajectory information and motion information from other devices through the communication unit. The power supply unit is used to supply power to the electronic device 1400.
[0165] The processing unit 1410 can be a processor or controller, such as a central processing unit (CPU), graphics processing unit (GPU), digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The storage unit 1420 can be a memory. The display unit can be a display screen, etc.
[0166] For example, processing unit 1410 is a processor (such as...) Figure 4 The processor 110 shown), and the storage unit 1420 can be a memory (such as...). Figure 4 The internal memory 121 shown can be a display screen (such as...). Figure 4 The display screen 140 shown in this application embodiment can be an electronic device 1400. Figure 4 The electronic device 400 shown above. The processor, memory, display screen, etc., can be connected together, for example, via a bus. The processor calls program code stored in the memory to execute the various steps in the above method embodiments.
[0167] This application also provides a chip system that can be applied to the electronic devices described in the foregoing embodiments. For example... Figure 15 As shown, the chip system includes at least one processor 1501 and at least one interface circuit 1502. The processor 1501 may be a processor in the aforementioned electronic device. The processor 1501 and the interface circuit 1502 are interconnected via a circuit. The processor 1501 can receive and execute computer instructions from the memory of the aforementioned electronic device through the interface circuit 1502. When the computer instructions are executed by the processor 1501, the electronic device can perform the various steps in the above embodiments. Of course, the chip system may also include other discrete components, and this application embodiment does not specifically limit this.
[0168] This application also provides a computer-readable storage medium for storing computer instructions for operation of the aforementioned electronic device (such as a mobile phone).
[0169] This application also provides a computer program product, including computer instructions for running the aforementioned electronic device (such as a mobile phone).
[0170] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0171] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0172] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0173] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0174] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0175] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A trip reminder method, characterized in that, include: In response to cell handover, obtain the target cell identifier accessed by the electronic device between the current time and the start time; The start time is the boarding time of the train for the target user's scheduled trip; Based on the target cell identifier and the cell identifier corresponding to the predetermined trip, a cell matching degree is determined; the cell matching degree is the matching degree between the target cell identifier and the cell identifier corresponding to the predetermined trip; different stations in the predetermined trip correspond to different cell identifiers; Based on the cell matching degree and the station identifier of the target user's most recent route, the travel information of the target user is determined; Display trip reminders related to the travel information.
2. The method according to claim 1, characterized in that, The target user's travel information includes any one of the following: The target user's information regarding not boarding the vehicle; The target user's intermediate stop reminder information; The target user's information on getting off the bus midway; The target user's imminent arrival information; The on-time arrival information of the target user; The target user's past station information.
3. The method according to claim 2, characterized in that, The step of determining the target user's travel information based on the cell matching degree and the station identifier of the target user's most recent route includes: If the cell matching degree is less than the matching degree threshold, and the station identifier does not exist in the cell identifier corresponding to the scheduled trip, or if the station identifier is the departure station identifier of the target user's scheduled trip, then the target user's travel information is determined to be the no-boarding information.
4. The method according to claim 2, characterized in that, The process of determining the target user's travel information based on cell matching degree and the station identifier of the target user's most recent route includes: If the matching degree of the cell is less than the matching degree threshold, and the station identifier is the station identifier of the route of the target user's scheduled trip, the ride information of the target user is determined to be the midway drop-off information.
5. The method according to claim 2, characterized in that, The process of determining the target user's travel information based on cell matching degree and the station identifier of the target user's most recent route includes: If the matching degree of the cell is less than the matching degree threshold, and the station identifier is the arrival station identifier of the target user's scheduled trip, the target user's travel information is determined as the on-time arrival information.
6. The method according to claim 2, characterized in that, The process of determining the target user's travel information based on cell matching degree and the station identifier of the target user's most recent route includes: If the matching degree of the cell is greater than or equal to the matching degree threshold, and the station identifier is the first station identifier, the travel information of the target user is determined to be the information of the upcoming arrival; the first station identifier is the station identifier of the previous station in the target user's scheduled trip.
7. The method according to claim 2, characterized in that, The process of determining the target user's travel information based on cell matching degree and the station identifier of the target user's most recent route includes: If the matching degree of the cell is greater than or equal to the matching degree threshold, and the station identifier is the arrival station identifier of the target user's scheduled trip, the travel information of the target user is determined to be the station already passed information.
8. The method according to claim 2, characterized in that, The process of determining the target user's travel information based on cell matching degree and the station identifier of the target user's most recent route includes: If the matching degree of the cell is greater than or equal to the matching degree threshold, and the station identifier is the station identifier of the route of the target user's scheduled trip, the travel information of the target user is determined as the intermediate station reminder information.
9. The method according to any one of claims 1-8, characterized in that, The station identifier of the target user's most recent route is determined by the coverage between the target cell identifier and the cell identifier corresponding to the predetermined trip.
10. The method according to any one of claims 1-9, characterized in that, The step of obtaining the target cell identifier accessed by the electronic device between the current time and the start time in response to cell handover includes: In response to cell handover, obtain the cell identifier accessed by the electronic device; If the number of cell identifiers accessed by the electronic device is greater than a preset number, the target cell identifier accessed by the electronic device between the current time and the start time is determined.
11. An electronic device, characterized in that, include: Processor, display, and memory; The memory stores one or more computer programs, the one or more computer programs including instructions that, when executed by the electronic device, cause the electronic device to perform the method as described in any one of claims 1-10.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, enable the computer to perform the trip reminder method as described in any one of claims 1-10.
13. A computer program product, characterized in that, The computer program product includes computer instructions that, when executed on a computer, enable the computer to perform the trip reminder method as described in any one of claims 1-10.