A method, electronic device and storage medium for pushing information in offline mode
By obtaining the list of preset locations and positioning coordinates for the flight mission, the accuracy problem of information push in the absence of network conditions was solved, enabling timely push of important information during flight.
Patent Information
- Application Number
- CN202411643593.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2044-11-18
AI Technical Summary
Without a network connection, electronic devices cannot push important information related to the flight mission, which may cause users to miss important information.
By obtaining the list of preset locations for the flight mission and their corresponding preset information, it is determined whether the positioning coordinates of the electronic device are within the sub-region. If they are, information is pushed; otherwise, information is pushed based on the flight duration and the current time.
Accurately push flight mission-related information even without network connectivity, preventing users from missing important information.
Smart Images

Figure CN119496822B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of information push technology, and in particular to an information push method, electronic device and storage medium in a network-free state. Background Technology
[0002] Normally, information push notifications from electronic devices are sent when the device is connected to the internet. However, in the civil aviation sector, when passengers are flying, their electronic devices need to be switched to airplane mode, meaning they are offline. Passengers often use their devices to watch videos, view pictures, or listen to music for entertainment. If a passenger is too focused on these activities and no relevant notifications are sent, they may miss important information related to their travel itinerary. Therefore, how to send travel-related information to passengers offline has become a pressing technical problem. Summary of the Invention
[0003] To address the aforementioned technical problems, the technical solution adopted by this invention is as follows:
[0004] According to a first aspect of this application, a method for pushing information in an offline state is provided, the method comprising the following steps:
[0005] S100, in response to the execution of the target flight mission on the target electronic device, obtain each preset location on the flight path corresponding to the target flight mission to obtain a list of preset locations A = (A1, A2, ..., A...). i A n ), i=1, 2,...,n; where, A i Let n be the i-th preset location on the flight path corresponding to the target flight mission, and n be the number of preset locations on the flight path corresponding to the target flight mission.
[0006] S200, obtain the preset information corresponding to each preset location in A, so as to obtain the preset information list TA = (TA1, TA2, ..., TA3) for A. i , ...,TA n ); where TA i For A i The corresponding preset information; the preset storage location where TA is stored on the target electronic device.
[0007] S300, obtain the sub-regions corresponding to each preset location in A, so as to obtain a list of sub-regions B = (B1, B2, ..., B...) of A. i B n ); where B i For A i The corresponding sub-region.
[0008] S400, determine whether the positioning coordinates Z corresponding to the target electronic device have been obtained.
[0009] S500: If the positioning coordinates Z corresponding to the target electronic device are obtained, proceed to S600; otherwise, proceed to S700.
[0010] S600, iterate through B, if Z is located in B i Inside, then TA i Pushed to the display module of the target electronic device.
[0011] The S700 pushes preset information from the TA to the display module of the target electronic device based on the flight duration of the aircraft corresponding to the flight mission and the current time.
[0012] According to another aspect of this application, a non-transitory computer-readable storage medium is also provided, wherein at least one instruction or at least one program is stored in the storage medium, and the at least one instruction or at least one program is loaded and executed by a processor to implement the above-described information push method in a network-free state.
[0013] According to another aspect of this application, an electronic device is also provided, including a processor and the aforementioned non-transitory computer-readable storage medium.
[0014] The present invention has at least the following beneficial effects:
[0015] The information push method in the offline state of the present invention, when a target flight mission is executed on the target electronic device, obtains each preset location on the flight path corresponding to the target flight mission to obtain a preset location list corresponding to the target flight mission; obtains preset information corresponding to each preset location in the preset location list to obtain a preset information list corresponding to the preset location list; each preset location corresponds to a sub-region; if the positioning coordinates corresponding to the target electronic device can be obtained, and the positioning coordinates of the target electronic device are located within a certain sub-region, then the preset information corresponding to the sub-region is pushed to the display module of the target electronic device for display; if the positioning coordinates corresponding to the target electronic device cannot be obtained, then the preset information in TA is pushed to the display module of the target electronic device according to the flight duration of the flight mission and the current time point; in the present invention, the target electronic device is in an offline state throughout the process, and the preset information corresponding to each preset location is stored in a preset storage location on the target electronic device when the target flight mission is executed. When the target electronic device flies to the corresponding preset location in the offline state, the corresponding information is pushed and displayed, thereby avoiding the user from missing important information related to the trip. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a flowchart of an information push method in a network-free state provided by an embodiment of the present invention. Detailed Implementation
[0018] The technical solutions in the embodiments of this application will be clearly and completely described below. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0019] It is worth noting that in the following description, specific details such as particular system structures and techniques are set forth for illustrative purposes rather than for limiting purposes, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application can also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted so as not to obscure the description of this application with unnecessary detail.
[0020] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or collections thereof. It should also be understood that, when used in this specification and the appended claims, the term "and / or" refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0021] In the description of this application and the appended claims, the term "if" may be interpreted, depending on the context, as "in the case of," "when," "once," "in response to determination," or "in response to detection." Similarly, the phrases "if determined" or "if [the described condition or event] is detected" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once [the described condition or event] is detected," or "in response to detection of [the described condition or event]."
[0022] In the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance, nor are they used to describe a specific order or sequence.
[0023] In the description of this application and the appended claims, if the phrase "XX information list LBi = (LB) is used..." is used... i 1 LB i 2 , ..., LB i j , ..., LB i f(i) ), i=1, 2,..., n, j=1, 2,..., f(i); LB i j Descriptions like "the j-th XX information in the i-th XX information list" can be understood as follows: the memory stores n XX information lists: LB1, LB2, ..., LBi, ..., LBn; and in the i-th XX information list LBi, there is an LB... i 1 LB i 2 , ..., LB i j , ..., LB i f(i) This f(i) is information about XX.
[0024] It is worth noting that "f(i)" used in the above description should not be simply understood as a fixed numerical value. Rather, it should be understood as the value of "f(i)" changing with the value of i. For example, if the range of i is 1 to 2, "f(1)" can be equal to "f(2)" or not. That is, the number of XX information items in different XX information lists can be the same or different, generally determined according to the actual application scenario. Other similar expressions such as "g(j)" should be understood in the same way and will not be elaborated further.
[0025] The following will refer to Figure 1 The flowchart shown illustrates an information push method in a network-free state, introducing such a method.
[0026] The method for pushing information in offline mode may include the following steps:
[0027] S100, in response to the execution of the target flight mission on the target electronic device, obtain each preset location on the flight path corresponding to the target flight mission to obtain a list of preset locations A = (A1, A2, ..., A...).i A n ), i=1, 2,...,n; where, A i Let n be the i-th preset location on the flight path corresponding to the target flight mission, and n be the number of preset locations on the flight path corresponding to the target flight mission.
[0028] In this embodiment, the target electronic device can be the target user's mobile phone or other terminal, such as a tablet computer. When a user takes a flight, they usually download relevant software to purchase tickets online. Before boarding, they need to verify the QR code on the ticket or the paper ticket on the target electronic device. The event of the ticket being verified can be understood as the execution of the target flight mission.
[0029] The target flight mission has a takeoff point and an arrival point. At the same time, there will be several transit points along the flight path. Each transit point can be understood as a preset location. For example, a flight flies from location 1 to location 2 and will pass through location 3 and location 4 during the flight. Location 3 and location 4 are preset locations. Given the flight path corresponding to the target flight mission, each preset location can be obtained, thus obtaining A.
[0030] S200, obtain the preset information corresponding to each preset location in A, so as to obtain the preset information list TA = (TA1, TA2, ..., TA3) for A. i , ...,TA n ); where TA i For A i The corresponding preset information; the preset storage location where TA is stored on the target electronic device.
[0031] Furthermore, TA i Including the flight of the aircraft corresponding to the target flight mission to A i Time A i The corresponding weather information and remaining flight time.
[0032] In this embodiment, each preset location has corresponding preset information. For example, if the preset location is Beijing, the corresponding preset information includes a relevant introduction to Beijing, the weather when flying to Beijing, and the remaining flight time when flying to Beijing.
[0033] It should be noted that TA is pre-stored in a preset storage location on the target electronic device. It will not be pushed to the display module of the target electronic device for display until it reaches the preset location.
[0034] S300, obtain the sub-regions corresponding to each preset location in A, so as to obtain a list of sub-regions B = (B1, B2, ..., B...) of A. i B n); where B i For A i The corresponding sub-region.
[0035] In this embodiment, the preset location in A is a specific address coordinate. In order to improve the accuracy of the information push method of the present invention, it is also necessary to generate a corresponding sub-region based on the coordinates of the preset location.
[0036] Furthermore, B i It can be obtained through the following steps:
[0037] S310, obtain A i Corresponding coordinates ZA i .
[0038] S320, to ZA i Centered on a circle with a radius of DA i YA circle i ;DA i Through A i The corresponding location data was obtained.
[0039] S330, will YA i Determined as B i .
[0040] In this embodiment, through the above steps, A is obtained. i Corresponding coordinates ZA i The sub-region centered on the target electronic device will push corresponding preset information to the user of the target electronic device when the target electronic device is detected to enter the sub-region.
[0041] S400, determine whether the positioning coordinates Z corresponding to the target electronic device have been obtained.
[0042] In this embodiment, it is understood that, due to the different types of electronic devices, the corresponding methods of obtaining positioning coordinates are also different. In the offline state, some electronic devices can obtain positioning coordinates through the corresponding API interface, while others cannot obtain positioning coordinates. Therefore, it is necessary to first determine whether the positioning coordinates Z corresponding to the target electronic device have been obtained.
[0043] Furthermore, step S400 may include the following steps:
[0044] S410, obtain the positioning information D corresponding to the target electronic device; where Z is obtained through D.
[0045] In this embodiment, the positioning information D corresponding to the target electronic device can be understood as the positioning data transmitted by the positioning-related API interface on the target electronic device.
[0046] S420, if D is empty, then it is determined that the positioning coordinates Z corresponding to the target electronic device cannot be obtained.
[0047] In this embodiment, if D is empty, it means that the target electronic device cannot obtain location information when there is no network.
[0048] S430, if D is not empty, then after a preset time interval, obtain the location information D' corresponding to the target electronic device again; proceed to S440.
[0049] In this embodiment, if D is not empty, it means that the target electronic device may be able to obtain location information when it is offline. However, there is also a situation where the location information D obtained so far is the location information obtained before the target electronic device disconnected from the network. Therefore, it is necessary to further determine the real-time nature of the location information.
[0050] S440, if D = D', then it is determined that the positioning coordinates Z corresponding to the target electronic device cannot be obtained; otherwise, it is determined that the positioning coordinates Z corresponding to the target electronic device can be obtained.
[0051] In this embodiment, if D = D', it means that the positioning information obtained by the target electronic device in two consecutive steps is the same, and the aircraft is in flight. Therefore, it can be determined that the positioning coordinates Z corresponding to the target electronic device cannot be obtained; otherwise, it means that the positioning information obtained by the target electronic device is changing in real time, and it can be determined that the positioning coordinates Z corresponding to the target electronic device can be obtained.
[0052] S500: If the positioning coordinates Z corresponding to the target electronic device are obtained, proceed to S600; otherwise, proceed to S700.
[0053] S600, iterate through B, if Z is located in B i Inside, then TA i Pushed to the display module of the target electronic device.
[0054] In this embodiment, if the positioning coordinates Z corresponding to the target electronic device can be obtained, then preset information is pushed according to the positioning coordinates corresponding to the target electronic device; otherwise, proceed to S700.
[0055] The S700 pushes preset information from the TA to the display module of the target electronic device based on the flight duration of the aircraft corresponding to the flight mission and the current time.
[0056] Furthermore, step S700 may include the following steps:
[0057] S710, obtain the estimated flight time of the aircraft corresponding to the target flight mission from the takeoff point to each preset location in A, so as to obtain the estimated time list T = (TA1, TA2, ..., TA...). i, ...,TA n ); where TA i The aircraft corresponding to the target flight mission flies from the takeoff point to A. i The corresponding estimated duration.
[0058] In this embodiment, given the average flight speed of the aircraft, the flight time from the takeoff point to the landing point and the time to reach each preset location can be estimated. Therefore, the estimated flight time of the aircraft corresponding to the target flight mission from the takeoff point to each preset location in A can be obtained to obtain the preset time list T corresponding to A.
[0059] S720, obtain the takeoff time T of the aircraft corresponding to the target flight mission. Q and the current time point T now .
[0060] S730, iterate through T, if TA i ≤T now -T Q <η×TA i Then TA i The data is pushed to the display module of the target electronic device; where η is a preset weight.
[0061] In this embodiment, since the preset duration in T is an estimate and not an absolutely accurate duration, a preset weight η is set, that is, T now -T Q In TA i To η×TA i Between these two points, it is considered that A has been achieved. i η is a value greater than 1, for example: η = 1.1.
[0062] In this embodiment, as the flight time increases, the error in the estimated time to reach a more distant preset location also increases; η is set such that η×TA i As i increases, the corresponding time interval increases, thereby improving the reliability of preset information push.
[0063] The information push method in the offline state of this embodiment, when the target flight mission on the target electronic device is executed, obtains each preset location on the flight path corresponding to the target flight mission to obtain a preset location list corresponding to the target flight mission; obtains preset information corresponding to each preset location in the preset location list to obtain a preset information list corresponding to the preset location list; each preset location corresponds to a sub-region; if the positioning coordinates corresponding to the target electronic device can be obtained, and the positioning coordinates of the target electronic device are located within a certain sub-region, then the preset information corresponding to the sub-region is pushed to the display module of the target electronic device for display; if the positioning coordinates corresponding to the target electronic device cannot be obtained, then according to the flight duration of the aircraft corresponding to the flight mission and the current time point, the preset information in TA is pushed to the display module of the target electronic device; in this invention, the target electronic device is in an offline state throughout the process, and the preset information corresponding to each preset location is stored in a preset storage location on the target electronic device when the target flight mission is executed. When the target electronic device flies to the corresponding preset location in an offline state, the corresponding information is pushed and displayed, thereby avoiding the user from missing important information related to the trip.
[0064] Furthermore, the method in this embodiment can accurately push relevant information based on geographical location even when the target electronic device is offline, regardless of whether the location coordinates can be obtained, thus improving the applicability of information push in offline states.
[0065] Furthermore, although the steps of the method in this disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or a step may be broken down into multiple steps.
[0066] Embodiments of the present invention also provide a non-transitory computer-readable storage medium that can be disposed in an electronic device to store at least one instruction or at least one program related to implementing a method in the method embodiments, wherein the at least one instruction or the at least one program is loaded and executed by the processor to implement the method provided in the above embodiments.
[0067] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0068] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.
[0069] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0070] Program code for performing the operations of this application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0071] Embodiments of the present invention also provide an electronic device, including a processor and the aforementioned non-transitory computer-readable storage medium.
[0072] The electronic device is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments in this application.
[0073] Electronic devices are manifested in the form of general-purpose computing devices. Components of an electronic device may include, but are not limited to: at least one processor, at least one memory, and a bus connecting different system components (including memory and processor).
[0074] The memory stores program code that can be executed by the processor, causing the processor to perform the steps in the various embodiments described in this specification.
[0075] The memory may include readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory, and may further include read-only memory (ROM).
[0076] The memory may also include programs / utilities having a set (at least one) of program modules, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0077] A bus can represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus that uses any of the various bus structures.
[0078] The electronic device can also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (e.g., routers, modems, etc.). This communication can be achieved through input / output (I / O) interfaces. Furthermore, the electronic device can communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter. The network adapter communicates with other modules of the electronic device via a bus. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0079] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this disclosure.
[0080] Embodiments of the present invention also provide a computer program product including program code, which, when the program product is run on an electronic device, causes the electronic device to perform the steps of the methods described above in various exemplary embodiments of the present invention.
[0081] While specific embodiments of the invention have been described in detail by way of examples, those skilled in the art should understand that the examples are for illustrative purposes only and are not intended to limit the scope of the invention. Those skilled in the art should also understand that various modifications can be made to the embodiments without departing from the scope and spirit of the invention.
Claims
1. A method for pushing information in a netless state, characterized in that, The method comprises the following steps: S100, in response to the execution of the target flight mission on the target electronic device, obtain each preset location on the flight path corresponding to the target flight mission to obtain a preset location list A = (A1, A2, ..., A...). i A n ), i=1, 2,...,n; among them, A i Let n be the i-th preset location on the flight path corresponding to the target flight mission, and n be the number of preset locations on the flight path corresponding to the target flight mission. S200, obtaining preset information corresponding to each preset location in A to obtain a preset information list TA=(TA1, TA2, …, TA i ) corresponding to A; wherein TA n is preset information corresponding to A i ; TA is stored in a preset storage location on the target electronic device; TA i includes weather information corresponding to A i when the target flight task is completed and the remaining flight time. i , and the remaining flight time. i S300, obtaining a sub-region corresponding to each preset location in A to obtain a sub-region list B=(B1, B2, …, B i ) corresponding to A; wherein B n is a sub-region corresponding to A i . i S400, judging whether the positioning coordinate Z corresponding to the target electronic device is acquired; S500, if the positioning coordinate Z corresponding to the target electronic device is acquired, entering S600; otherwise, entering S700; S600, traversing B, if Z is located in B i then TA i pushes the display module to the target electronic device; S700, according to the flight time length of the aircraft corresponding to the flight task and the current time point, pushing the preset information in the TA to the display module of the target electronic device; Step S700 comprises the following steps: S710, obtain the estimated flight time of the aircraft corresponding to the target flight mission from the takeoff point to each preset location in A, so as to obtain the estimated time list T = (T1, T2, ..., T...). i ,…,T n ); where T i The aircraft corresponding to the target flight mission flies from the takeoff point to A. i The corresponding estimated duration; S720, acquire a takeoff time point T of the aircraft corresponding to the target flight task Q and the current time point T now ; S730, traversing T, if T i ≤T now -T Q <η×T i , TA i is pushed to the display module of the target electronic device; wherein η is a preset weight.
2. The information push method in a netless state according to claim 1, wherein, η>1.
3. The method of claim 1, wherein the method comprises: Step S400 comprises the following steps: S410, acquiring the positioning information D corresponding to the target electronic device; wherein Z is obtained through D; S420, if D is empty, determining that the positioning coordinate Z corresponding to the target electronic device cannot be acquired; S430, if D is not empty, acquiring the positioning information D' corresponding to the target electronic device again at an interval of a preset time length; entering S440; S440, if D=D', determining that the positioning coordinate Z corresponding to the target electronic device cannot be acquired; otherwise, determining that the positioning coordinate Z corresponding to the target electronic device is acquired.
4. The method of claim 1, wherein the method is characterized by, B i By the following steps: S310, obtaining A i corresponding coordinate ZA i ; S320, with ZA i is the center, a circle YA i with a radius DA i is generated; DA i is obtained through A i corresponding location data; S330, YA i determined as B i .
5. The method of claim 4, wherein the push method is performed in a webless state. DA i By the following steps: S321, obtaining A i the maximum longitude LON of the corresponding boundary max the minimum longitude LON of the corresponding boundary min the maximum latitude LAT of the corresponding boundary max the minimum latitude LAT of the corresponding boundary min ; S321, if |LON max -LON min |≥|LAT max -LAT min |, then determine DA i =|LAT max -LAT min | / 2; otherwise, determine DA i =|LON max -LON min | / 2. 6.A non-transitory computer-readable storage medium having stored therein at least one instruction or at least one piece of program, characterized in that, The at least one instruction or the at least one program is loaded and executed by the processor to realize the information pushing method in the network-free state as claimed in any one of claims 1-5.
7. An electronic device, comprising: The non-transitory computer readable storage medium comprises a processor and the non-transitory computer readable storage medium as claimed in claim 6.
Citation Information
Patent Citations
Simulated flight method and system for checking current position without network and positioning in air
CN117556098A
Portable flight tracker for use in airplane mode
US20120009951A1