CN115038043B - Information code popup method, medium and electronic equipment - Google Patents

Information code popup method, medium and electronic equipment Download PDF

Info

Publication number
CN115038043B
CN115038043B CN202111316298.3A CN202111316298A CN115038043B CN 115038043 B CN115038043 B CN 115038043B CN 202111316298 A CN202111316298 A CN 202111316298A CN 115038043 B CN115038043 B CN 115038043B
Authority
CN
China
Prior art keywords
time interval
user
target
information code
path point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111316298.3A
Other languages
Chinese (zh)
Other versions
CN115038043A (en
Inventor
朱泽圻
丁勇
房雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111316298.3A priority Critical patent/CN115038043B/en
Publication of CN115038043A publication Critical patent/CN115038043A/en
Application granted granted Critical
Publication of CN115038043B publication Critical patent/CN115038043B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Signal Processing (AREA)
  • Economics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Telephone Function (AREA)

Abstract

The application relates to the technical field of positioning, and discloses an information code popup method, a medium and electronic equipment thereof, wherein the method comprises the following steps: the electronic equipment acquires a plurality of path points between the initial position of a user and the target position of the information code, then when the user reaches one path point, according to the time interval between the historical user and the target position from the past path points and the time interval between the current user and the current path point from the initial path point, the preliminary prediction time interval required by the user to reach the target position from the current path point is acquired, according to the preliminary prediction time interval and the time interval, the time interval between the current user and the target position from the path point is determined, and the information code is popped up at the set time according to the time interval. Therefore, the electronic equipment can open the information code in time when the user reaches the target position or reaches the target position in the setting time before reaching the target position, and the user experience is improved.

Description

Information code popup method, medium and electronic equipment
Technical Field
The present application relates to the field of positioning technologies, and in particular, to a method, a medium, and an electronic device for ejecting an information code.
Background
With the development and progress of science and technology, users can complete specific services by displaying information codes displayed on portable electronic equipment, such as riding codes, travel codes and the like. However, when the information code needs to be presented, the process of opening the information code is generally complicated, and sometimes the information code cannot be opened in time due to the problem of poor network, so that the user needs to wait for a long time.
For example, as shown in fig. 1, in a subway station, a user needs to show a bus stop at a scanning window of a subway gate to enter and exit the subway station. However, sometimes the network in the subway station is poor, so the bus number of the user is difficult to open in time, and further the user needs to wait for a long time.
Disclosure of Invention
The embodiment of the application provides an information code ejecting method, a medium and electronic equipment thereof.
In a first aspect, an embodiment of the present application provides an information code popup method, where the method is applied to an electronic device, and the method includes:
detecting that a user reaches a current target path point, wherein the current target path point is between an initial position and a target position, and the target position is a position where the user needs to show an information code;
obtaining historical time intervals between the route points which are passed by a user in history and reach the target position, wherein the route points comprise the target route points and are between the initial position and the current target route point;
acquiring a current time interval between a current user and other waypoints passed by the user from an initial waypoint in the waypoints, wherein the initial waypoint is a first waypoint determined in the process of the user traveling from the initial position to the target waypoint;
determining a preliminary prediction time interval required between the target path point and the target position according to the historical time interval and the current time interval;
determining a target prediction time interval between the target path point and the target position for the preliminary prediction time interval and the historical time interval corresponding to the target path point;
determining the set time for popping up the information code according to the target prediction time interval;
and controlling the information code to pop up at the set time.
By the method, the electronic equipment can automatically pop up the information code when the user reaches the target position or reaches the target position in the set time before reaching the target position, the information code can be opened in time, the time of the user is saved to a certain extent, and the user experience is improved.
For example, fig. 1 is a schematic diagram illustrating an application scenario of information code popping, as shown in fig. 1, a plurality of waypoints exist between a user a from an initial position of a subway station entrance to a position of a code-swiping gate for displaying a riding code, for example, a waypoint ticket vending machine for scanning a wireless signal 1, a waypoint service center for scanning a wireless signal 2, and a waypoint security supervision place for scanning a wireless signal 3 sequentially by an electronic device.
When the user a arrives at the ticket vending machine, the mobile phone 100 carried by the user a acquires a historical time interval T1 (for example, 14 seconds) at which the user a arrives from the ticket vending machine to a position where the riding code is shown.
When the user a walks from the ticket vending machine to the service center, the cellular phone 100 acquires a historical time interval T2 (for example, 13 seconds) of the historical time interval when the user a arrives from the service center to the position where the riding code is shown, and a current time interval h1 (for example, 3 seconds) between the current time interval when the user a arrives from the ticket vending machine to the service center.
When the user a walks from the service center to the security check, the mobile phone 100 obtains a historical time interval T3 (for example, 11 seconds) when the user a arrives at the position where the car code is shown from the security check, and a current time interval h2 (2 seconds) when the user a arrives at the security check from the service center.
Then, the mobile phone 100 subtracts the current time interval h2 (for example, 13-2=11 seconds) from the historical time interval T2, and subtracts the current time interval h2 (for example, 11-3-2=9 seconds) from the historical time interval T3 after subtracting the current time interval h1, so as to obtain a preliminary predicted time interval (for example, 11 seconds and 9 seconds) required between the arrival of the vehicle at the position where the vehicle code is indicated from the security check point.
Then, the mobile phone 100 determines a determined time interval, for example, 10.33 seconds, between the current user a arriving at the position where the vehicle-taking code is shown from the security check according to the obtained preliminary predicted time interval (for example, 11 seconds and 9 seconds) and a time interval (for example, 11 seconds) between the historical user a arriving at the position where the vehicle-taking code is shown from the security check.
If the time for the user a to reach the security check place is 10 o ' clock and half, the mobile phone 100 predicts that the riding code pops up for 10 o ' clock, 40 min 33 sec according to the time interval, and the mobile phone 100 can pop up the riding code 3 sec ahead of time on the basis of 10 o ' clock, 40 min 33 min.
In a possible implementation of the first aspect, the determining a set time for information code ejection according to the target prediction time interval includes:
acquiring first time when the user reaches the target path point;
determining a set time according to the first time and the target prediction time interval; wherein the set time is less than or equal to a sum of the first time and the target prediction time interval.
For example, if the time for the user a to reach the target route at the security check location is 10 o 'clock and half, the mobile phone 100 predicts that the car code pops up for 10 o' clock 40 min 33 sec according to the target prediction time interval (for example, 10.33 sec), and the mobile phone 100 may pop up the car code 3 sec earlier on the basis of 10 o 'clock 40 min 33 sec, that is, pop up the car code for 10 o' clock 40 min 30 sec.
By adopting the method, the electronic equipment can automatically pop up the information code when the user reaches the target position or reaches the target position in the setting time before reaching the target position, the information code can be opened in time, the time of the user is saved to a certain extent, and the user experience is improved.
In a possible implementation of the first aspect, the method further includes: the path point is determined by recording a position point which is scanned to a certain wireless signal for the first time when the user carries the electronic equipment and scans a wireless signal each time.
For example, when a user carries a mobile phone and connects to a wireless signal, a location point which is connected to a certain wireless signal for the first time is recorded as a path point. When a user carries a mobile phone to connect to a wireless signal historically, a position point which is connected to a certain wireless signal for the first time is recorded as a path point, and the position point which is not connected to the wireless signal currently is recorded as a path point and is only not used as data for calculating the information code pop-up time.
In a possible implementation of the first aspect, the obtaining a current time interval between the current user and each route point that the user has passed from the initial route point includes:
acquiring the current time interval of any two adjacent scanning events in the scanned at least one wireless signal;
or;
acquiring the user walking steps and the pace of any two adjacent scanning events in the scanned at least one wireless signal;
and determining the current time interval according to the user walking step number and the pace.
For example, as shown in fig. 1, when the user a walks from the ticket machine to the service center, the mobile phone 100 currently has a current time interval h1 (e.g., 3 seconds) between the user a arriving at the service center from the ticket machine.
When the user a moves from the service center to the security check, the mobile phone 100 obtains the current time interval h2 (2 seconds) when the user a arrives at the security check from the service center.
It will be appreciated that in some embodiments, the current time interval may also be determined by the number of steps the user has taken and the pace at which the user has taken. The mobile phone 100 obtains the number of steps and the pace between the initial waypoint and each current waypoint, and obtains the current time interval according to the product of the number of steps and the pace. For example, as shown in fig. 1, the mobile phone 100 obtains that the number of steps taken by the user a from the ticket vending machine to the service center is 3, the step rate is 1 step/second, and the mobile phone 100 multiplies 5 steps by 1 step/second to obtain 3 seconds.
In some other embodiments, the mobile phone 100 obtains a plurality of steps and pace of the user a walking from the ticket vending machine to the service center, obtains a plurality of time intervals according to a product of the plurality of steps and the pace corresponding to the plurality of steps, and averages the plurality of time intervals to obtain the current time interval.
In a possible implementation of the first aspect, the determining a target predicted time interval between the target waypoint and the target location for the preliminary predicted time interval and the historical time interval corresponding to the target waypoint includes:
and weighting the preliminary prediction time interval and the historical time interval corresponding to the target path point, and determining the target prediction time interval between the target path point and the target position.
For example, fig. 1 shows a schematic view of an application scenario of information code popping, as shown in fig. 1, a plurality of waypoints exist between a user a from an initial position of an entrance of a subway station to a position of a code-swiping gate showing a bus code, for example, a waypoint ticket vending machine scanned by an electronic device to a wireless signal 1, a waypoint service center scanned to a wireless signal 2, and a waypoint security supervision department scanned to a wireless signal 3 in sequence.
When the user a arrives at the ticket vending machine, the mobile phone 100 carried by the user a acquires a history time interval T1 (for example, 14 seconds) at which the user a arrives at a position where the boarding code is shown from the ticket vending machine.
When the user a walks from the ticket vending machine to the service center, the cellular phone 100 acquires a historical time interval T2 (for example, 13 seconds) of the historical time interval when the user a arrives from the service center to the position where the riding code is shown, and a current time interval h1 (for example, 3 seconds) between the current time interval when the user a arrives from the ticket vending machine to the service center.
When the user a goes from the service center to the security check, the mobile phone 100 obtains a historical time interval T3 (for example, 11 seconds) when the user a arrives at the position where the riding code is shown from the security check, and a current time interval h2 (2 seconds) when the user a arrives at the security check from the service center.
Then, the mobile phone 100 subtracts the current time interval h2 (for example, 13-2=11 seconds) from the historical time interval T2, and subtracts the current time interval h2 (for example, 11-3-2=9 seconds) from the historical time interval T3 after subtracting the current time interval h1, so as to obtain a preliminary predicted time interval (for example, 11 seconds and 9 seconds) required for the mobile phone to reach the position where the riding code is shown from the security check.
Then, the mobile phone 100 determines a certain time interval between the current user a and the position of the presented riding code from the security check location, for example, (11 0.25+13 0.25+11 + 0.25)/(0.25 + 0.25) =10.33 seconds, according to the obtained preliminary prediction time interval (for example, 11 seconds and 9 seconds) and the occupied weight (for example, 0.25 and 0.25) thereof, and the time interval between the historical user a and the position of the presented riding code from the security check location (for example, 11 seconds and 9 seconds) and the occupied weight (0.25) thereof.
If the time for the user a to reach the security check place is 10 o ' clock and half, the mobile phone 100 predicts that the riding code pops up for 10 o ' clock, 40 min 33 sec according to the time interval, and the mobile phone 100 can pop up the riding code 3 sec ahead of time on the basis of 10 o ' clock, 40 min 33 min.
In a possible implementation of the first aspect, the method further includes: acquiring first actual time of the pop-up information code;
acquiring second actual time for manually opening the information code by the user;
determining actual and predicted deviations according to a difference between the first actual time and the second actual time;
and adjusting the historical weight value of the weighting processing operation according to the deviation.
It is understood that the weighting factor may be adjusted in the following manner: and acquiring a historical weight value in the training sample data, and bringing the deviation into a preset formula to obtain an adjusted weight value.
Two formulas for adjusting the weight coefficients according to the deviation are provided below.
Equation 1 is:
Figure BDA0003343792350000041
η=0.1
Figure BDA0003343792350000042
equation 2 is:
Figure BDA0003343792350000043
Figure BDA0003343792350000044
η=0.1*A
Figure BDA0003343792350000051
if x 1 ,x 2 ,x 3 ,…,x n Representing different path points (e.g. scanning)To wireless signals) with a weight value of a, respectively 1 ,a 2 ,a 3 ,…,a n And the deviation is respectively e 1 ,e 2 ,e 3 ,…,e n
For example, the historical sample data is:
Figure BDA0003343792350000052
calculating deviation;
Figure BDA0003343792350000053
updating the weight value:
event x 1 : scan to-Wi-FiA interval: 15s adjusted weight: a is a 1 +0.1=0.25+0.1=0.35。
Event x 2 : scan to Wi-FiB interval: the weight after 14s adjustment is: a is a 2 -0.1/3=0.25-0.1/3=0.22。
Event x 3 : scan to base station C interval: the weight after 14s adjustment is: a is 3 -0.1/3=0.25-0.1/3=0.22。
Event x 4 : scan to-Wi-FiD interval: 11S, weight value after adjustment: a is 4 -0.1/3=0.25-0.1/3=0.22。
The adjusted weight value can be determined by formula 1.
In one possible implementation of the first aspect, the information code includes a ride code, a health code, or a payment code.
In one possible implementation of the first aspect, the electronic device comprises a mobile phone, a tablet, a laptop, or a wearable device.
In a second aspect, the present application provides a readable medium, where instructions are stored, and when executed on an electronic device, the instructions cause the electronic device to perform the method for ejecting an information code according to any one of the first aspect.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a memory for storing instructions for execution by one or more processors of the electronic device, an
The processor, which is one of processors of an electronic device, is configured to perform the method for information code ejection according to any one of the first aspect.
Drawings
Fig. 1 illustrates an application scenario diagram of information code popping, according to some embodiments of the present application;
FIG. 2 illustrates a flow diagram of a method of information code ejection, according to some embodiments of the present application;
fig. 3 illustrates a flow chart of adjusting weight coefficients in an information code ejection method according to some embodiments of the present application;
fig. 4 shows a schematic diagram of a structure of a mobile phone 100 adapted to the present application, according to some embodiments of the present application.
Detailed Description
The illustrative embodiments of the present application include, but are not limited to, a method of information code ejection, a medium, and an electronic device thereof. The technical solutions of the embodiments of the present application are described in further detail below with reference to the accompanying drawings and embodiments.
As described above, in the prior art, there is a problem that the information code cannot be opened in time, which results in a long waiting time for the user.
In order to solve the above technical problem, in the method for information code popup provided in this embodiment of the present application, an electronic device may acquire a plurality of route points between a user and a target location where an information code is displayed from an initial location, and then, when the user reaches one route point, acquire a preliminary predicted time interval required by the user to reach the target location from the current route point according to a time interval between the past route points of the user and the target location and a time interval between the current user and the current route point from the initial route point.
Wherein the current waypoint is between the initial position and the target position; each path point comprises a current path point, and each path point is between the initial position and the current path point; the initial path point is a first path point determined in the process that a user travels from an initial position to the current path point;
and determining the time interval between the current user and the target position from the path point according to the acquired preliminary prediction time interval and the occupied weight thereof required by the user to reach the target position from the current path point and the time interval between the historical user and the target position from the path point and the occupied weight thereof, determining the set time according to the time interval, and popping up an information code at the set time.
The current path point and each path point passed by the user are between an initial position and a target position, and the target position is the position where the user needs to present the information code; the initial path point is the first path point determined during the process of the user moving from the initial position to the target position.
Therefore, by the method, the electronic equipment can automatically pop up the information code when the user reaches the target position or reaches the target position in the set time before reaching the target position, the information code can be opened in time, the time of the user is saved to a certain extent, and the user experience is improved.
It will be appreciated that the above-mentioned waypoints may be determined from the indoor wireless signals. Conventionally, there are typically multiple wireless signals indoors, where each wireless signal has a fixed coverage area. Therefore, when a user carries the electronic device and scans a wireless signal each time, the position point which is scanned to a certain wireless signal for the first time is recorded as a path point.
It is understood that the method for information code ejection provided by the present application can be implemented on various electronic devices that can be carried by a user, including but not limited to, mobile phones, tablet computers, laptop computers, wearable devices, and other electronic devices.
For example, fig. 1 is a schematic diagram illustrating an application scenario of information code popping, as shown in fig. 1, a plurality of waypoints exist between a user a from an initial position of a subway station entrance to a position of a code-swiping gate for displaying a riding code, for example, a waypoint ticket vending machine for scanning a wireless signal 1, a waypoint service center for scanning a wireless signal 2, and a waypoint security supervision place for scanning a wireless signal 3 sequentially by an electronic device.
When the user a arrives at the ticket vending machine, the mobile phone 100 carried by the user a acquires a historical time interval T1 (for example, 14 seconds) at which the user a arrives from the ticket vending machine to a position where the riding code is shown.
When the user a walks from the ticket vending machine to the service center, the cellular phone 100 acquires a historical time interval T2 (for example, 13 seconds) of the historical time interval when the user a arrives from the service center to the position where the riding code is shown, and a current time interval h1 (for example, 3 seconds) between the current time interval when the user a arrives from the ticket vending machine to the service center.
When the user a walks from the service center to the security check, the mobile phone 100 obtains a historical time interval T3 (for example, 11 seconds) when the user a arrives at the position where the car code is shown from the security check, and a current time interval h2 (2 seconds) when the user a arrives at the security check from the service center.
Then, the mobile phone 100 subtracts the current time interval h2 (for example, 13-2=11 seconds) from the historical time interval T2, and subtracts the current time interval h2 (for example, 11-3-2=9 seconds) from the historical time interval T3 after subtracting the current time interval h1, so as to obtain a preliminary predicted time interval (for example, 11 seconds and 9 seconds) required for the mobile phone to reach the position where the riding code is shown from the security check.
Then, the mobile phone 100 determines a certain time interval between the current user a and the position of the presented riding code from the security check location, for example, (11 0.25+13 0.25+11 + 0.25)/(0.25 + 0.25) =10.33 seconds, according to the obtained preliminary prediction time interval (for example, 11 seconds and 9 seconds) and the occupied weight (for example, 0.25 and 0.25) thereof, and the time interval between the historical user a and the position of the presented riding code from the security check location (for example, 11 seconds and 9 seconds) and the occupied weight (0.25) thereof.
If the time for the user a to arrive at the security check place is 10 o 'clock and half, the mobile phone 100 predicts that the riding code pops up for 10 o' clock, 40 min 33 sec according to the time interval, and the mobile phone 100 may pop up the riding code 3 sec earlier on the basis of 10 o 'clock, 40 min 33, that is, pop up the riding code 10 o' clock, 40 min 30 sec.
Fig. 2 is a schematic flow chart of a method for popping up an information code according to some embodiments of the present application, and as shown in fig. 2, the following steps are executed mainly by a mobile phone 100, and the method includes:
201: detecting that a user reaches a current path point;
for example, as shown in fig. 1, the cell phone 100 detects that the user arrives at a security check.
202: and acquiring historical time intervals between the arrival of each path point at a target position in the process of moving the user from the initial position to the target position in history, wherein the target position is the position of the popup information code.
For example, as shown in fig. 1, a plurality of waypoints exist between the user a and the position of the code-swiping gate showing the bus code from the initial position of the subway station entrance, for example, the electronic device scans the waypoint ticket vending machine of the wireless signal 1, the waypoint service center of the wireless signal 2 and the waypoint safety supervision place of the wireless signal 3 in sequence.
When the user a arrives at the ticket vending machine, the mobile phone 100 carried by the user a acquires a historical time interval T1 (for example, 14 seconds) at which the user a arrives from the ticket vending machine to a position where the riding code is shown.
When the user a walks from the ticket vending machine to the service center, the cellular phone 100 acquires a historical time interval T2 (for example, 13 seconds) of the historical time interval when the user a arrives from the service center to the position where the riding code is shown, and a current time interval h1 (for example, 3 seconds) between the current time interval when the user a arrives from the ticket vending machine to the service center.
When the user a arrives at the security check, the mobile phone 100 obtains a historical time interval T3 (for example, 11 seconds) when the historical user a arrives at the position where the riding code is shown from the security check, and a current time interval h2 (2 seconds) when the current user a arrives at the security check from the service center.
It will be appreciated that in other embodiments, the waypoints may also be undetermined from historical scans to current scans of wireless signals, from connecting wireless signals, disconnecting wireless signals, and wireless signals. When a user carries the mobile phone 100 and connects to a wireless signal, a location point of a first connection to a wireless signal is recorded as a waypoint. When a user carries the mobile phone 100 and disconnects a wireless signal every time, a position point where a wireless signal is disconnected for the first time is recorded as a path point. When a user carries the mobile phone 100 to connect to a wireless signal historically, a location point which is connected to a certain wireless signal for the first time is recorded as a path point, and the location point which is not connected to the signal currently is recorded as a path point and is not used as data for calculating the information code pop-up time.
It can be understood that the mobile phone 100 turns on the mobile phone function suitable for the present application when detecting the initial position, for example, as shown in fig. 1, the mobile phone 100 automatically turns on the wireless signal scanning function of the mobile phone 100 when detecting the initial position of the user at the entrance of the subway station.
203: and acquiring the current time interval between the current user and each current path point from the initial path point.
For example, as shown in fig. 1, when the user a walks from the ticket machine to the service center, the mobile phone 100 currently has a current time interval h1 (e.g., 3 seconds) between the user a arriving at the service center from the ticket machine.
When the user a moves from the service center to the security check, the mobile phone 100 obtains the current time interval h2 (2 seconds) when the user a arrives at the security check from the service center.
It will be appreciated that in some embodiments, the current time interval may also be determined by the number of steps the user has taken and the pace at which the user has taken. The mobile phone 100 obtains the number of steps and the pace between the initial waypoint and each current waypoint, and obtains the current time interval according to the product of the number of steps and the pace. For example, as shown in fig. 1, the mobile phone 100 obtains that the number of steps taken by the user a from the ticket vending machine to the service center is 3, the step rate is 1 step/second, and the mobile phone 100 multiplies 5 steps by 1 step/second to obtain 3 seconds.
In some other embodiments, the mobile phone 100 obtains a plurality of steps and pace of the user a walking from the ticket vending machine to the service center, obtains a plurality of time intervals according to a product of the plurality of steps and the pace corresponding to the plurality of steps, and averages the plurality of time intervals to obtain the current time interval.
204: and determining a preliminary prediction time interval required by the target path point to reach the target position according to the historical time interval and the current time interval.
For example, as shown in fig. 1, the mobile phone 100 subtracts the current time interval h2 (e.g., 13-2=11 seconds) from the historical time interval T2, and subtracts the current time interval h2 (e.g., 11-3-2=9 seconds) from the historical time interval T3 after subtracting the current time interval h1, so as to obtain a preliminary predicted time interval (e.g., 11 seconds and 9 seconds) required between the security check location and the location where the riding code is indicated.
205: and determining a target prediction time interval between the target path point and the target position for the preliminary prediction time interval and the historical time interval corresponding to the target path point.
It will be appreciated that in some embodiments, weighting the preliminary predicted time interval and the historical time interval corresponding to the target waypoint determines the target predicted time interval between the target waypoint reaching the target location.
The mobile phone 100 obtains the preliminary prediction time interval and the occupied weight thereof, the historical time interval corresponding to the target path point and the occupied weight thereof, multiplies the preliminary prediction time interval and the occupied weight thereof by 1 to obtain a product 1, multiplies the historical time interval corresponding to the target path point and the occupied weight thereof by 2 to obtain a product 2, adds the product 1 and the product 2 to obtain an addition result, and divides the addition result by the sum of the weight 1 and the weight 2 to obtain the target prediction time interval.
For example, as shown in fig. 1, according to the obtained preliminary prediction time interval (e.g., 11 seconds and 9 seconds) and the occupied weight thereof (e.g., 0.25 and 0.25), and the time interval (e.g., 11 seconds) and the occupied weight thereof (0.25) between the historical user a and the position where the riding code is presented from the security check, a determination time interval between the current user a and the position where the riding code is presented from the security check is determined, for example, (11 +0.25+ 13 +0.25+ 11 + 0.25)/(0.25 + 0.25) =10.33 seconds.
206: and popping up information codes at set time according to the target prediction time interval.
It can be understood that, in some embodiments, the mobile phone 100 obtains the time when the user a reaches the target waypoint, subtracts the set time from the time obtained by adding the time when the user a reaches the target waypoint and the target predicted time interval, and obtains the set time, and the mobile phone 100 pops up an information code at the set time, that is, a time popup information code that is set in advance on the basis of the time obtained by adding the time and the set time is obtained by the mobile phone 100.
For example, as shown in fig. 1, if the time when the user a arrives at the security check location is 10 o ' clock and half, the mobile phone 100 predicts that the riding code will pop up for 10 o ' clock, 40 min and 33 sec according to the time interval, and the mobile phone 100 can pop up the riding code 3 sec earlier than 10 o ' clock, 40 min and 33 sec.
It can be understood that, if the user performs the opening information code by himself before the mobile phone 100 ejects the information code, the deviation between the time when the user opens the information code and the time when the mobile phone 100 ejects the information code is the predicted time deviation.
If the user finishes opening the information code after the mobile phone 100 pops up the information code and opens the information code by himself/herself again, the deviation between the time when the user opens the information code and the time when the mobile phone 100 pops up the information code is the deviation of the predicted time.
In some embodiments, the mobile phone 100 further obtains the actual time of the pop-up message code and the time of the user opening the message code to determine the deviation between the actual time and the predicted time, and adjusts the weight value of the weighting processing operation according to the deviation, which will be described in detail below.
It is understood that in some other embodiments, in the method for popping up the information code, the weight coefficient before the predicted target time interval needs to be continuously trained, so as to make the prediction more accurate, which will be described in detail below.
Fig. 3 is a schematic flow chart illustrating a method for adjusting weight coefficients in an information code pop-up method according to some embodiments of the present application, where as shown in fig. 3, the main execution subject of the following steps is a mobile phone 100, and the method includes:
301: and acquiring training sample data.
It will be appreciated that in some embodiments, the handset 100 may train the weighting factors in step 205 with new training sample data whenever it detects that there is a new update of training sample data.
It is understood that the data obtained in the above steps 201 to 206 can be used as training sample data in the embodiment of the present application.
It will be appreciated that the handset 100 stores training sample data for a set period of time (e.g. 14 days). The cell phone 100 processes the time interval from the stored waypoint to the target position to obtain a mean value and a standard deviation, and discards a certain proportion (e.g. 20%) of the standard deviation exceeding the mean value or a condition with a low frequency (e.g. less than 50%) of the waypoint as an unstable feature.
Table 1:
Figure BDA0003343792350000101
table 2:
event(s) Variance (variance)
Scan to-wifiA 8.254545455
Scan to-Wi-FiB 1.363636364
Scan to Wi-FiC 2
Scanning to a Wi-FiD 1.654545455
Invoking health code
In table 1, the first column indicates the type of event, the second to eleventh columns indicate the time interval from the waypoint to the target position, and in table 2, the variance corresponding to the time when-wifiA is scanned is 8.2545455, and the variance exceeds a certain 20% of the mean value, and is deleted.
302: and determining the deviation between the set time of popping up the information code and the time of opening the information code by the user according to the time of opening the information code by the user in the training sample data, and adjusting the weight coefficient in the process of weighting the preliminary prediction time interval and the historical time interval according to the deviation.
In some embodiments, the weight coefficients may be adjusted in the following manner: and obtaining a historical weight value in the training sample data, and bringing the deviation into a preset formula to obtain an adjusted weight value.
Two formulas for adjusting the weight coefficients according to the deviation are provided below.
Equation 1 is:
Figure BDA0003343792350000102
η=0.1
Figure BDA0003343792350000111
equation 2 is:
Figure BDA0003343792350000112
Figure BDA0003343792350000113
η=0.1*A
Figure BDA0003343792350000114
if x 1 ,x 2 ,x 3 ,…,x n Representing different path points (e.g. scanned wireless signals), with a weight of a 1 ,a 2 ,a 3 ,…,a n And the deviation is respectively e 1 ,e 2 ,e 3 ,…,e n
For example, the historical sample data is:
Figure BDA0003343792350000115
calculating deviation;
Figure BDA0003343792350000116
updating the weight value:
event x 1 : scan to-Wi-FiA interval: 15s adjusted weight: a is a 1 +0.1=0.25+0.1=0.35。
Event x 2 : scan to-Wi-FiB interval: the weight after 14s adjustment is: a is 2 -0.1/3=0.25-0.1/3=0.22。
Event x 3 : scan to base station C interval: 14s adjusted weight: a is 3 -0.1/3=0.25-0.1/3=0.22。
Event x 4 : scan to Wi-FiD interval: 11S, weight value after adjustment: a is 4 -0.1/3=0.25-0.1/3=0.22。
The adjusted weight value can be determined by formula 1.
Fig. 4 shows a schematic structural diagram of a mobile phone 100 adapted to the present application according to some embodiments of the present application, and as shown in fig. 4, the mobile phone 100 may include a processor 110, a power module 140, a memory 180, a mobile communication module 130, a wireless communication module 120, a sensor module 190, an audio module 150, a camera 170, an interface module 160, keys 101, a display screen 102, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the mobile phone 100. In other embodiments of the present application, the handset 100 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Embodiments of the mechanisms disclosed herein may be implemented in hardware, software, firmware, or a combination of these implementations. Embodiments of the application may be implemented as computer programs or program code executing on programmable systems comprising at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device.
Program code may be applied to input instructions to perform the functions described herein and generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a Digital Signal Processor (DSP), a microcontroller, an Application Specific Integrated Circuit (ASIC), or a microprocessor.
The program code may be implemented in a high level procedural or object oriented programming language to communicate with a processing system. The program code can also be implemented in assembly or machine language, if desired. Indeed, the mechanisms described in this application are not limited in scope to any particular programming language. In any case, the language may be a compiled or interpreted language.
In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed via a network or via other computer readable media. Thus, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy diskettes, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random Access Memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared digital signals, etc.) using the internet in an electrical, optical, acoustical or other form of propagated signal. Thus, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
In the drawings, some features of the structures or methods may be shown in a particular arrangement and/or order. However, it is to be understood that such specific arrangement and/or ordering may not be required. Rather, in some embodiments, the features may be arranged in a manner and/or order different from that shown in the illustrative figures. In addition, the inclusion of a structural or methodological feature in a particular figure is not meant to imply that such feature is required in all embodiments, and in some embodiments may not be included or may be combined with other features.
It should be noted that, in the embodiments of the apparatuses in the present application, each unit/module is a logical unit/module, and physically, one logical unit/module may be one physical unit/module, or may be a part of one physical unit/module, and may also be implemented by a combination of multiple physical units/modules, where the physical implementation manner of the logical unit/module itself is not the most important, and the combination of the functions implemented by the logical unit/module is the key to solve the technical problem provided by the present application. Furthermore, in order to highlight the innovative part of the present application, the above-mentioned embodiments of the apparatus of the present application do not introduce units/modules that are not so closely related to solve the technical problems proposed by the present application, which does not indicate that there are no other units/modules in the above-mentioned embodiments of the apparatus.
It is noted that, in the examples and descriptions of this patent, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the use of the verb "comprise a" to define an element does not exclude the presence of another, same element in a process, method, article, or apparatus that comprises the element.
While the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims (10)

1. An information code popup method is applied to an electronic device, and comprises the following steps:
detecting that a user reaches a target path point, wherein the target path point is between an initial position and a target position, and the target position is the position where the user needs to show an information code;
obtaining historical time intervals between the route points which are passed by a user in history and reach the target position, wherein the route points comprise the target route points and are between the initial position and the target route points;
acquiring a current time interval between a current user and other waypoints passed by the user from an initial waypoint in the waypoints, wherein the initial waypoint is a first waypoint determined in the process of the user traveling from the initial position to the target waypoint;
determining a preliminary prediction time interval required between the target path point and the target position according to the historical time interval and the current time interval;
determining a target prediction time interval between the target path point and the target position for the preliminary prediction time interval and the historical time interval corresponding to the target path point;
determining the set time for popping up the information code according to the target prediction time interval;
and controlling the information code to pop up at the set time.
2. The method of claim 1, wherein determining the set time for information code ejection according to the target prediction time interval comprises:
acquiring first time when the user reaches the target path point;
determining a set time according to the first time and the target prediction time interval; wherein the set time is less than or equal to a sum of the first time and the target prediction time interval.
3. The method of claim 1, wherein the waypoints are determined by recording location points scanned for a wireless signal for the first time each time a wireless signal is scanned by the user carrying the electronic device.
4. The method according to claim 3, wherein the obtaining a current time interval between the current user reaching each path point that the user has passed from an initial path point comprises:
acquiring the current time interval of any two adjacent scanning events in the scanned at least one wireless signal;
or;
acquiring the user walking steps and the pace of any two adjacent scanning events in the scanned at least one wireless signal;
and determining the current time interval according to the user step number and the pace.
5. The method of claim 1, wherein determining a target predicted time interval between the target waypoint reaching the target location for the preliminary predicted time interval and the historical time interval corresponding to the target waypoint comprises:
and weighting the preliminary prediction time interval and the historical time interval corresponding to the target path point, and determining the target prediction time interval between the target path point and the target position.
6. The method of claim 5, further comprising:
acquiring first actual time of the pop-up information code;
acquiring second actual time for manually opening the information code by the user;
determining actual and predicted deviations according to a difference between the first actual time and the second actual time;
and adjusting the historical weight value of the weighting processing operation according to the deviation.
7. The method of claim 1, wherein the information code comprises a ride code, a health code, or a payment code.
8. The method of claim 1, wherein the electronic device comprises a cell phone, a tablet, a laptop, or a wearable device.
9. A readable medium having stored thereon instructions which, when executed on an electronic device, cause the electronic device to execute the method of information code ejection according to any one of claims 1 to 8.
10. An electronic device, comprising:
a memory for storing instructions for execution by one or more processors of the electronic device, an
A processor for performing the method of information code ejection of any one of claims 1 to 8.
CN202111316298.3A 2021-11-08 2021-11-08 Information code popup method, medium and electronic equipment Active CN115038043B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111316298.3A CN115038043B (en) 2021-11-08 2021-11-08 Information code popup method, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111316298.3A CN115038043B (en) 2021-11-08 2021-11-08 Information code popup method, medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN115038043A CN115038043A (en) 2022-09-09
CN115038043B true CN115038043B (en) 2023-04-18

Family

ID=83118360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111316298.3A Active CN115038043B (en) 2021-11-08 2021-11-08 Information code popup method, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115038043B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112950392A (en) * 2019-11-26 2021-06-11 泰康保险集团股份有限公司 Information display method, posterior information determination method and device and related equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483594A (en) * 2017-08-22 2017-12-15 北京小米移动软件有限公司 The method and apparatus of display renewal entry
CN109614025B (en) * 2018-11-26 2023-10-31 努比亚技术有限公司 Riding code display control method, mobile terminal and computer readable storage medium
CN109816378A (en) * 2019-01-15 2019-05-28 许兴磊 A kind of method of payment and device of public transport
CN111966439A (en) * 2020-08-25 2020-11-20 维沃移动通信有限公司 Riding code display method and device and electronic equipment
CN112257924A (en) * 2020-10-21 2021-01-22 北京三快在线科技有限公司 Position prediction method, position prediction device, electronic equipment and storage medium
CN113115211A (en) * 2021-04-23 2021-07-13 荣耀终端有限公司 Multilayer fence construction method, cloud server and first terminal device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112950392A (en) * 2019-11-26 2021-06-11 泰康保险集团股份有限公司 Information display method, posterior information determination method and device and related equipment

Also Published As

Publication number Publication date
CN115038043A (en) 2022-09-09

Similar Documents

Publication Publication Date Title
CN110009090B (en) Neural network training and image processing method and device
CN104285427B (en) According to the context configurating terminal device by determining different data sources correlation
JP6284538B2 (en) Context label for the data cluster
WO2017071075A1 (en) Smart method for directing user to take elevator and apparatus therefor
US20180218463A1 (en) Dynamic Tracking and Control of Passenger Travel Progress
US20160207735A1 (en) System and a method for elevator allocation based on a determination of walker speed
US10477357B2 (en) Population estimating apparatus, program and population estimating method
US20130006634A1 (en) Identifying people that are proximate to a mobile device user via social graphs, speech models, and user context
JP2007249585A (en) Authentication device and control method therefor, electronic equipment provided with authentication device, control program for authentication device, and recording medium with the program thereon
CN107025576B (en) Push control method, device and system for car washing service information
US20200151660A1 (en) Network computing system for detecting auditory indicators of activity
US20230016773A1 (en) Dynamic Identity Verification System and Method
CN113364490B (en) NFC application calling method, electronic equipment and NFC device
CN111475072B (en) Payment information display method and electronic equipment
CN110278324B (en) Method and device for detecting subway station entrance and exit states, terminal equipment and storage medium
CN106203306A (en) The Forecasting Methodology at age, device and terminal
CN111354091A (en) Riding card swiping method and device, terminal equipment and storage medium
CN105933882A (en) Emergency call device and method
CN106331238A (en) Screen stain prompt method, screen stain prompt device and mobile terminal
CN111415679B (en) Site identification method, device, terminal and storage medium
CN115038043B (en) Information code popup method, medium and electronic equipment
CN110418172B (en) Method, electronic device and computer readable medium for playing multimedia assets
CN113573399B (en) Power control method and device for repeater
CN106230996B (en) A kind of mall information push terminal and method
JP2010016444A (en) Situation recognizing apparatus, situation recognizing method, and radio terminal apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant