CN114979938A - Network reconnection method and device and mobile terminal - Google Patents

Network reconnection method and device and mobile terminal Download PDF

Info

Publication number
CN114979938A
CN114979938A CN202110198443.6A CN202110198443A CN114979938A CN 114979938 A CN114979938 A CN 114979938A CN 202110198443 A CN202110198443 A CN 202110198443A CN 114979938 A CN114979938 A CN 114979938A
Authority
CN
China
Prior art keywords
user
time
payment
vehicle
network
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.)
Pending
Application number
CN202110198443.6A
Other languages
Chinese (zh)
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.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen 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 Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN202110198443.6A priority Critical patent/CN114979938A/en
Publication of CN114979938A publication Critical patent/CN114979938A/en
Pending legal-status Critical Current

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • 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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application provides a network reconnection method, a network reconnection device and a mobile terminal, wherein the network reconnection method comprises the following steps: acquiring vehicle-mounted communication connection time; under the condition that the time interval between the vehicle-mounted communication connection time and the predicted user payment time obtained through pre-learning meets a pre-obtained preset time threshold, obtaining the current position of the user; judging whether the distance between the current position of the user and the pre-acquired predicted user payment position meets a preset condition or not; detecting whether the network is in an abnormal state or not under the condition of meeting a preset condition; and in the case that the network is in an abnormal state, the network is accessed again. By the provided network reconnection scheme, the user payment time and the user payment position can be accurately predicted, the network is automatically recovered before the user payment time is predicted and the user payment position is predicted, the user can complete payment operation through the network conveniently, and the network service effect is improved.

Description

Network reconnection method and device and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a network reconnection method, apparatus, and mobile terminal.
Background
With the continuous development of mobile communication technology, users can realize activities such as online social contact, online office and the like through a network, and the network becomes an indispensable part in daily life. Under the application of the existing communication network, the situation of network interruption often occurs in the mobile terminal due to the situations of incomplete network coverage, unbalanced network signal strength and the like, and much time is consumed for recovering the network by manually switching on and off the network, restarting and the like, so that the existing mobile terminal has the problem of relatively poor network service effect.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention provide a network reconnection method, apparatus and mobile terminal.
In a first aspect, an embodiment of the present invention provides a network reconnection method, which is applied to a mobile terminal, and the method includes:
acquiring vehicle-mounted communication connection time;
under the condition that the time interval between the vehicle-mounted communication connection time and the predicted user payment time obtained through pre-learning meets a pre-obtained preset time threshold, obtaining the current position of the user;
judging whether the distance between the current position of the user and a pre-acquired predicted user payment position meets a preset condition or not;
detecting whether the network is in an abnormal state or not under the condition that the distance between the current position of the user and the pre-acquired predicted user payment position meets a preset condition;
and in the case that the network is in an abnormal state, the network is accessed again.
In a second aspect, an embodiment of the present invention provides a network reconnection device, which is applied to a mobile terminal, where the network reconnection device includes:
the first acquisition module is used for acquiring vehicle-mounted communication connection time;
the second acquisition module is used for acquiring the current position of the user under the condition that the time interval between the vehicle-mounted communication connection time and the predicted user payment time acquired in advance through learning meets a preset time threshold acquired in advance;
the judging module is used for judging whether the distance between the current position of the user and the pre-acquired predicted user payment position meets a preset condition or not;
the detection module is used for detecting whether the network is in an abnormal state or not under the condition that the distance between the current position of the user and the pre-acquired predicted user payment position meets a preset condition;
and the processing module is used for re-accessing the network under the condition that the network is in an abnormal state.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including a memory and a processor, where the memory stores a computer program, and the computer program executes the network reconnection method provided in the first aspect when the processor runs.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program, where the computer program, when executed on a processor, performs the network reconnection method provided in the first aspect.
The network reconnection method provided by the application acquires the vehicle-mounted communication connection time; under the condition that a time interval between the vehicle-mounted communication connection time and predicted user payment time obtained through pre-learning meets a pre-obtained preset time threshold, obtaining the current position of a user; judging whether the distance between the current position of the user and a pre-acquired predicted user payment position meets a preset condition or not; detecting whether the network is in an abnormal state or not under the condition that the distance between the current position of the user and the pre-acquired predicted user payment position meets a preset condition; and in the case that the network is in an abnormal state, the network is accessed again. By the network reconnection scheme, the user payment time and the user payment position can be accurately predicted, the network is automatically recovered before the user payment time is predicted and the predicted user payment position is reached, the user can complete payment operation through the network conveniently, and the network service effect is improved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
Fig. 1 shows a flow chart of a network reconnection method provided by the present application;
fig. 2 shows another flowchart of a network reconnection method provided by the present application;
fig. 3 shows another flowchart of a network reconnection method provided by the present application;
fig. 4 is a block diagram of a network reconnection device provided in the present application;
fig. 5 shows a structural diagram of a mobile terminal provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Example 1
The embodiment of the disclosure provides a network reconnection method, which is applied to a mobile terminal.
Specifically, as shown in fig. 1, the network reconnection method includes:
and step S101, acquiring vehicle-mounted communication connection time.
In the embodiment, the vehicle can be a vehicle commonly used by the user, namely a vehicle used by the user to take in life habits, and the historical habits of the user can be determined by acquiring the vehicle-mounted communication connection time, so that the payment behaviors of the user after getting on or off the vehicle can be well predicted. The vehicle-mounted communication of the vehicle may include wireless communication connection modes such as bluetooth and wireless fidelity (WiFi), and may also include wired communication connection modes connected through wired data lines.
Optionally, step S101 includes:
taking the vehicle-mounted Bluetooth connection time as the vehicle-mounted communication connection time;
taking the vehicle-mounted wireless network connection time as the vehicle-mounted communication connection time;
and taking the vehicle-mounted wired communication connection time as the vehicle-mounted communication connection time.
In this embodiment, the in-vehicle communication connection time may include an in-vehicle communication start connection time and an in-vehicle communication disconnection time.
And step S102, acquiring the current position of the user under the condition that the time interval between the vehicle-mounted communication connection time and the predicted user payment time obtained by pre-learning meets a pre-obtained preset time threshold.
Optionally, step S102 includes:
and acquiring the current position of the user at preset time intervals.
In this embodiment, the preset time interval may be a value customized by the user, for example, the time interval is 1 minute.
In this embodiment, the preset time threshold may be a preset time threshold determined according to the vehicle-mounted communication connection time recorded in the history and the historical payment time of the user, or may be a preset time threshold set by the user according to the living habits of the user.
Optionally, step S102 includes:
acquiring the current position of the user under the condition that the vehicle-mounted communication connection time is vehicle-mounted communication starting connection time, and the time interval between the vehicle-mounted communication connection time and the user historical payment time meets the first preset time threshold; alternatively, the first and second electrodes may be,
and acquiring the current position of the user under the condition that the vehicle-mounted communication connection time is the vehicle-mounted communication disconnection time, and the time interval between the vehicle-mounted communication disconnection time and the user historical payment time meets the second preset time threshold.
In this embodiment, when the vehicle-mounted communication connection time is vehicle-mounted communication start connection time, and a time interval between the vehicle-mounted communication connection time and user historical payment time satisfies the first preset time threshold, the corresponding application scenario may be: after a user drives a car from an underground garage in the morning, the mobile terminal has network abnormality, and gets off the car to buy breakfast or other goods in a payment scene after the user leaves the underground garage. The first preset time threshold may be set by the user, or determined according to the daily driving habits of the user and the payment history data after getting off the vehicle. For example, the first preset time threshold may be 5 minutes.
In this embodiment, when the vehicle-mounted communication connection time is a vehicle-mounted communication disconnection time and a time interval between the vehicle-mounted communication disconnection time and the user historical payment time satisfies the second preset time threshold, the corresponding application scenario is as follows: and the second preset time threshold value can be set for the user or determined according to the daily parking habit of the user and the payment historical data after the user gets off the vehicle. For example, the second preset time threshold may be 10 minutes.
Optionally, the obtaining of the preset time threshold includes:
and determining the preset time threshold according to a plurality of recorded historical vehicle-mounted communication connection times and a plurality of user payment times.
Therefore, the preset time threshold can be dynamically determined according to a plurality of historical vehicle-mounted communication connection times and a plurality of user payment times, the daily life habits of the users are better met, and the accuracy of the preset time threshold is improved.
Step S103, judging whether the distance between the current position of the user and the pre-acquired predicted user payment position meets a preset condition.
Optionally, step S103 includes:
judging whether the distance between the current user position and the predicted user payment position is smaller than a preset distance threshold value or not, and determining that the distance between the current user position and the predicted user payment position obtained in advance meets a preset condition under the condition that the distance between the current user position and the predicted user payment position is smaller than the preset distance threshold value; alternatively, the first and second electrodes may be,
when the distance between the current user position and the predicted user payment position is larger than or equal to a preset distance threshold, reacquiring the current position of the user at intervals of a preset time interval, recording the times of reacquiring the current position of the user, and when the times of reacquiring the current position of the user is smaller than the preset times, judging whether the reacquired current position of the user is smaller than the preset distance threshold; and under the condition that the re-acquired current position of the user is smaller than a preset threshold value, determining that the distance between the current position of the user and the pre-acquired predicted user payment position meets a preset condition.
For example, the preset time interval is 1 minute, and the preset number of times may be set to 10. And when the distance between the current user position and the predicted user payment position is smaller than a preset distance threshold value, determining that the distance between the current user position and the pre-acquired predicted user payment position meets a preset condition. When the distance between the current user position and the predicted user payment position is larger than or equal to a preset distance threshold, the current position of the user is obtained again at an interval of 1 minute, the number of times of obtaining the current position of the user again is recorded as 1, and under the condition that the number of times of obtaining the current position of the user again is smaller than the preset number of times, whether the obtained current position of the user is smaller than the preset distance threshold or not is judged; and under the condition that the re-acquired current position of the user is smaller than a preset threshold value, determining that the distance between the current position of the user and the pre-acquired predicted user payment position meets a preset condition.
And step S104, detecting whether the network is in an abnormal state or not under the condition that the distance between the current position of the user and the pre-acquired predicted user payment position meets a preset condition.
Through the step S104, the network status can be automatically detected before the predicted user payment time and before the predicted user payment position is reached.
In this embodiment, if the network is in a normal state, no other processing is performed, and if the network is in an abnormal state, the process proceeds to step S105.
And step S105, re-accessing the network under the condition that the network is in an abnormal state.
Optionally, step S105 includes:
determining a user expected payment shop according to the historical payment time and the historical payment position of the user, and selecting a wireless network of the user expected payment shop from prestored shop wireless networks for connection; alternatively, the first and second electrodes may be,
the method comprises the steps of determining wireless networks of a user expected payment store from pre-stored store wireless networks, and selecting a network with higher signal strength from the wireless network and a mobile data network of the user expected payment store for connection.
Therefore, the mobile terminal can be connected with a network with better network quality, the network service quality is ensured, and the user experience is improved.
Optionally, referring to fig. 2, the network reconnection method further includes:
and step S106, recording the payment time of the user and acquiring the payment position of the user corresponding to the payment time of the user under the condition that the payment operation of the user is detected within a preset time period after the connection with the vehicle-mounted communication equipment is started.
In this embodiment, the preset time period may be set by a user in a self-defined manner, or may be set by default, for example, the preset time period is 1 hour or 45 minutes after the connection with the vehicle-mounted communication device is started.
And step S107, determining the predicted user payment time and the predicted user payment position corresponding to the predicted user payment time according to the recorded user payment times and user payment positions.
In this embodiment, the payment data of a large number of users can be clustered through a K-means algorithm, where the K-means algorithm is a common clustering algorithm based on euclidean distance, and it is considered that the closer the distance between two targets is, the greater the similarity is. Through K-means clustering calculation, the fact that the user habits carry out corresponding payment operation at the corresponding preset position in the preset time period of one day can be obtained, namely the fact that the user habits carry out payment operation in the preset shop in the preset time can be regarded as the fact that the user habits carry out payment operation in the preset time. According to the time for starting connection of the conventional vehicle-mounted communication equipment, the historical payment time within the preset time period of the time for starting connection of the vehicle-mounted communication equipment and the historical payment position, performing K-means clustering calculation to predict future payment operation of the user, namely, calculating the plurality of recorded user payment times and the plurality of recorded user payment positions by using a K-means clustering algorithm to determine the predicted user payment time and the predicted user payment position corresponding to the predicted user payment time.
It is supplementary noted that the mobile terminal may include a user payment learning module and a geographic location positioning module, and the user payment learning module may learn a payment behavior of the user, record payment time, and trigger the geographic location positioning module to record a payment location corresponding to the payment time. The mobile terminal can also comprise a vehicle-mounted Bluetooth connecting module, and the time of the mobile terminal Bluetooth connected with a vehicle can be recorded through the vehicle-mounted Bluetooth connecting module. The mobile terminal can also comprise a communication module, and the network communication module can be reconnected or restarted through the communication module so as to achieve the function of recovering the network.
Referring to fig. 3, the network reconnection method shown in fig. 3 includes:
and step S301, detecting that the mobile phone Bluetooth is connected to the common vehicle, and recording the Bluetooth connection time t 0.
In this embodiment, the mobile phone may be a mobile terminal such as a tablet computer.
In step S302, the predicted user payment time t1 is acquired.
Step S303, determining whether the time interval of the bluetooth connection time example predicted user payment time t1 is less than 5 minutes.
In the present embodiment, if no, the process ends, and if yes, step S304 is executed.
In step S304, after 1 minute, acquisition of the user current position L0 is started.
In step S305, the predicted user payment position L1 is acquired.
In step S306, it is determined whether the distance between the current position L0 of the user and the predicted payment position L1 of the user is less than 20m and the number of retries is less than 10.
In the present embodiment, if yes, step S307 is executed, and if no, step S304 is executed.
Step S307, whether the mobile phone network is normal is detected.
Step S308, reconnecting or restarting the network communication system.
In step S309, the network returns to normal.
Through the network reconnection scheme, the time and the place of a user needing a network are accurately predicted, the time and the place of the user needing the network are accurately predicted by acquiring the Bluetooth connection time and the current position information and combining historical payment data of the user, the historical payment data of the user comprises the historical payment time and the historical payment position, whether the user needs the network is judged, the network is checked at the proper time and the proper place of the needed network, and the system is triggered to try to recover the network under the condition that the network is abnormal, so that the user can complete payment operation through the network conveniently, and the network service effect is improved.
According to the network reconnection method provided by the embodiment of the application, the vehicle-mounted communication connection time is obtained; under the condition that the time interval between the vehicle-mounted communication connection time and the predicted user payment time obtained through pre-learning meets a pre-obtained preset time threshold, obtaining the current position of the user; and when the distance between the current position of the user and the pre-acquired predicted user payment position meets the preset condition and the network is in an abnormal state, re-accessing the network. By the provided network reconnection scheme, the payment time and the payment position of the user can be accurately predicted, the network is automatically restored before the payment time of the user is predicted and the payment position of the user is predicted, the user can complete payment operation through the network conveniently, and the network service effect is improved.
Example 2
In addition, the embodiment of the disclosure provides a network reconnection device, which is applied to a mobile terminal.
Specifically, as shown in fig. 4, the network reconnection device 400 includes:
a first obtaining module 401, configured to obtain vehicle-mounted communication connection time;
a second obtaining module 402, configured to obtain a current location of the user when a time interval between the vehicle-mounted communication connection time and a predicted user payment time obtained through pre-learning meets a pre-obtained preset time threshold;
a judging module 403, configured to judge whether a distance between the current location of the user and a pre-obtained predicted user payment location meets a preset condition;
a detection module 404, configured to detect whether a network is in an abnormal state when a distance between the current location of the user and a pre-obtained predicted user payment location meets a preset condition;
and a processing module 405, configured to re-access the network when the network is in an abnormal state.
Optionally, the first obtaining module 401 is further configured to obtain the current location of the user at preset time intervals;
the judging module is further used for judging whether the distance between the current user position and the predicted user payment position is smaller than a preset distance threshold value or not, and determining that the distance between the current user position and the predicted user payment position obtained in advance meets a preset condition under the condition that the distance between the current user position and the predicted user payment position is smaller than the preset distance threshold value; alternatively, the first and second electrodes may be,
under the condition that the distance between the current user position and the predicted user payment position is larger than or equal to a preset distance threshold, reacquiring the current user position at intervals of preset time, recording the times of reacquiring the current user position, and under the condition that the times of reacquiring the current user position is smaller than the preset times, judging whether the reacquired current user position is smaller than the preset distance threshold; and under the condition that the re-acquired current position of the user is smaller than a preset threshold value, determining that the distance between the current position of the user and the pre-acquired predicted user payment position meets a preset condition.
Optionally, the network reconnection device 400 further includes:
the recording module is used for recording the payment time of the user and acquiring the payment position of the user corresponding to the payment time of the user under the condition that the payment operation of the user is detected within a preset time period after the connection with the vehicle-mounted communication equipment is started;
the first determining module is used for determining the predicted user payment time and the predicted user payment position corresponding to the predicted user payment time according to the recorded user payment times and user payment positions.
Optionally, the processing module 405 is further configured to determine a store expected to be paid by the user according to the historical payment time of the user and the historical payment position of the user, and select a wireless network of the store expected to be paid by the user from prestored store wireless networks to connect; alternatively, the first and second electrodes may be,
the method comprises the steps of determining wireless networks of a user expected payment store from pre-stored store wireless networks, and selecting a network with higher signal strength from the wireless network and a mobile data network of the user expected payment store for connection.
Optionally, the first obtaining module 401 is further configured to use vehicle-mounted bluetooth connection time as the vehicle-mounted communication connection time;
taking the vehicle-mounted wireless network connection time as the vehicle-mounted communication connection time;
and taking the vehicle-mounted wired communication connection time as the vehicle-mounted communication connection time.
Optionally, the vehicle-mounted communication connection time includes vehicle-mounted communication connection start time and/or vehicle-mounted communication disconnection time, and the preset time threshold includes a first preset time threshold and a second preset time threshold; the second obtaining module 402 is further configured to obtain the current location of the user when the vehicle-mounted communication connection time is vehicle-mounted communication start connection time, and a time interval between the vehicle-mounted communication connection time and user historical payment time meets the first preset time threshold; alternatively, the first and second electrodes may be,
and acquiring the current position of the user under the condition that the vehicle-mounted communication connection time is the vehicle-mounted communication disconnection time, and the time interval between the vehicle-mounted communication disconnection time and the user historical payment time meets the second preset time threshold.
Optionally, the network reconnection device 400 further includes:
and the second acquisition module is used for determining the preset time threshold according to a plurality of recorded historical vehicle-mounted communication connection times and a plurality of user payment times.
The network reconnection apparatus 400 may implement the network reconnection methods shown in fig. 1-3, and is not described herein again to avoid repetition.
The network reconnection device provided by the embodiment acquires the vehicle-mounted communication connection time; under the condition that the time interval between the vehicle-mounted communication connection time and the predicted user payment time obtained through pre-learning meets a pre-obtained preset time threshold, obtaining the current position of the user; judging whether the distance between the current position of the user and a pre-acquired predicted user payment position meets a preset condition or not; detecting whether the network is in an abnormal state or not under the condition that the distance between the current position of the user and the pre-acquired predicted user payment position meets a preset condition; and in the case that the network is in an abnormal state, the network is accessed again. By the network reconnection method, the payment time and the payment position of the user can be accurately predicted, the network can be automatically restored before the payment time of the user is predicted and the payment position of the user is predicted, the user can complete payment operation through the network conveniently, and the network service effect is improved.
Example 3
Furthermore, an embodiment of the present disclosure provides a mobile terminal, which includes a memory and a processor, where the memory stores a computer program, and the computer program, when running on the processor, executes the network reconnection method provided in embodiment 1 of the foregoing method.
Specifically, as shown in fig. 5, the mobile terminal 500 provided in this embodiment includes:
a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture illustrated in fig. 5 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted mobile terminal, a wearable device, a pedometer, and the like.
Wherein, the processor 510 is configured to: acquiring vehicle-mounted communication connection time;
under the condition that the time interval between the vehicle-mounted communication connection time and the predicted user payment time obtained through pre-learning meets a pre-obtained preset time threshold, obtaining the current position of the user;
judging whether the distance between the current position of the user and a pre-acquired predicted user payment position meets a preset condition or not;
detecting whether the network is in an abnormal state or not under the condition that the distance between the current position of the user and the pre-acquired predicted user payment position meets a preset condition;
and in the case that the network is in an abnormal state, the network is accessed again.
Optionally, the processor 510 is further configured to: acquiring the current position of a user at preset time intervals;
judging whether the distance between the current user position and the predicted user payment position is smaller than a preset distance threshold value or not, and determining that the distance between the current user position and the predicted user payment position obtained in advance meets a preset condition under the condition that the distance between the current user position and the predicted user payment position is smaller than the preset distance threshold value; alternatively, the first and second electrodes may be,
under the condition that the distance between the current user position and the predicted user payment position is larger than or equal to a preset distance threshold, reacquiring the current user position at intervals of preset time, recording the times of reacquiring the current user position, and under the condition that the times of reacquiring the current user position is smaller than the preset times, judging whether the reacquired current user position is smaller than the preset distance threshold; and under the condition that the re-acquired current position of the user is smaller than a preset threshold value, determining that the distance between the current position of the user and a pre-acquired predicted user payment position meets a preset condition.
Optionally, the processor 510 is further configured to: recording user payment time and acquiring a user payment position corresponding to the user payment time under the condition that the user payment operation is detected within a preset time period after the vehicle-mounted communication equipment is started and connected;
and determining the predicted user payment time and the predicted user payment position corresponding to the predicted user payment time according to the recorded plurality of user payment times and the plurality of user payment positions.
Optionally, the processor 510 is further configured to: determining a user expected payment shop according to the historical payment time and the historical payment position of the user, and selecting a wireless network of the user expected payment shop from prestored shop wireless networks for connection; alternatively, the first and second electrodes may be,
the method comprises the steps of determining wireless networks of a user expected payment store from pre-stored store wireless networks, and selecting a network with higher signal strength from the wireless network and a mobile data network of the user expected payment store for connection.
Optionally, the processor 510 is further configured to: taking the vehicle-mounted Bluetooth connection time as the vehicle-mounted communication connection time;
taking the vehicle-mounted wireless network connection time as the vehicle-mounted communication connection time;
and taking the vehicle-mounted wired communication connection time as the vehicle-mounted communication connection time.
Optionally, the vehicle-mounted communication connection time includes vehicle-mounted communication connection start time and/or vehicle-mounted communication disconnection time, and the preset time threshold includes a first preset time threshold and a second preset time threshold; processor 510, further configured to: acquiring the current position of the user under the condition that the vehicle-mounted communication connection time is vehicle-mounted communication starting connection time, and the time interval between the vehicle-mounted communication connection time and the user historical payment time meets the first preset time threshold; alternatively, the first and second electrodes may be,
and acquiring the current position of the user under the condition that the vehicle-mounted communication connection time is the vehicle-mounted communication disconnection time, and the time interval between the vehicle-mounted communication disconnection time and the user historical payment time meets the second preset time threshold.
Optionally, the processor 510 is further configured to: and determining the preset time threshold according to a plurality of recorded historical vehicle-mounted communication connection times and a plurality of user payment times.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of still pictures or video obtained by an image capturing mobile terminal (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be video played on the display unit 506. The image frames processed by the graphics processor 5041 may be stored in the memory 509 (or other storage media) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the mobile terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used for video playing of information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). Touch panel 5071 may include two parts, a touch detection mobile terminal and a touch controller. The touch detection mobile terminal detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing mobile terminal, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, receives a command from the processor 510, and executes the command. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external mobile terminal is connected to the mobile terminal 500. For example, the external mobile terminal may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting the mobile terminal having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from an external mobile terminal and transmit the received input to one or more elements within the mobile terminal 500 or may be used to transmit data between the mobile terminal 500 and the external mobile terminal.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 500 includes some functional modules that are not shown, and are not described in detail herein.
The mobile terminal provided by the embodiment acquires the vehicle-mounted communication connection time; under the condition that the time interval between the vehicle-mounted communication connection time and the predicted user payment time obtained through pre-learning meets a pre-obtained preset time threshold, obtaining the current position of the user; judging whether the distance between the current position of the user and a pre-acquired predicted user payment position meets a preset condition or not; detecting whether the network is in an abnormal state or not under the condition that the distance between the current position of the user and the pre-acquired predicted user payment position meets a preset condition; and in the case that the network is in an abnormal state, the network is accessed again. By the network reconnection scheme, the user payment time and the user payment position can be accurately predicted, the network is automatically recovered before the user payment time is predicted and the predicted user payment position is reached, the user can complete payment operation through the network conveniently, and the network service effect is improved.
The present application further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring vehicle-mounted communication connection time;
under the condition that a time interval between the vehicle-mounted communication connection time and predicted user payment time obtained through pre-learning meets a pre-obtained preset time threshold, obtaining the current position of a user;
judging whether the distance between the current position of the user and a pre-acquired predicted user payment position meets a preset condition or not;
detecting whether the network is in an abnormal state or not under the condition that the distance between the current position of the user and the pre-acquired predicted user payment position meets a preset condition;
and in the case that the network is in an abnormal state, the network is accessed again.
Optionally, the computer program further realizes the following steps when being executed by the processor:
acquiring the current position of a user at preset time intervals;
judging whether the distance between the current user position and the predicted user payment position is smaller than a preset distance threshold value or not, and determining that the distance between the current user position and the predicted user payment position obtained in advance meets a preset condition under the condition that the distance between the current user position and the predicted user payment position is smaller than the preset distance threshold value; alternatively, the first and second electrodes may be,
under the condition that the distance between the current user position and the predicted user payment position is larger than or equal to a preset distance threshold, reacquiring the current user position at intervals of preset time, recording the times of reacquiring the current user position, and under the condition that the times of reacquiring the current user position is smaller than the preset times, judging whether the reacquired current user position is smaller than the preset distance threshold; and under the condition that the re-acquired current position of the user is smaller than a preset threshold value, determining that the distance between the current position of the user and the pre-acquired predicted user payment position meets a preset condition.
Optionally, the computer program further implements the following steps when executed by the processor:
recording user payment time and acquiring a user payment position corresponding to the user payment time under the condition that the user payment operation is detected within a preset time period after the vehicle-mounted communication equipment is started and connected;
and determining the predicted user payment time and the predicted user payment position corresponding to the predicted user payment time according to the recorded plurality of user payment times and the plurality of user payment positions.
Optionally, the computer program further implements the following steps when executed by the processor:
determining a user expected payment shop according to the user historical payment time and the user historical payment position, and selecting a wireless network of the user expected payment shop from prestored shop wireless networks for connection; alternatively, the first and second electrodes may be,
the method comprises the steps of determining wireless networks of a user expected payment store from pre-stored store wireless networks, and selecting a network with higher signal strength from the wireless network and a mobile data network of the user expected payment store for connection.
Optionally, the computer program further implements the following steps when executed by the processor:
taking the vehicle-mounted Bluetooth connection time as the vehicle-mounted communication connection time;
taking the vehicle-mounted wireless network connection time as the vehicle-mounted communication connection time;
and taking the vehicle-mounted wired communication connection time as the vehicle-mounted communication connection time.
Optionally, the vehicle-mounted communication connection time includes vehicle-mounted communication connection start time and/or vehicle-mounted communication disconnection time, and the preset time threshold includes a first preset time threshold and a second preset time threshold; the computer program when executed by a processor further realizes the steps of:
under the condition that the vehicle-mounted communication connection time is vehicle-mounted communication starting connection time and the time interval between the vehicle-mounted communication connection time and the user historical payment time meets the first preset time threshold, acquiring the current position of the user; alternatively, the first and second electrodes may be,
and acquiring the current position of the user under the condition that the vehicle-mounted communication connection time is the vehicle-mounted communication disconnection time, and the time interval between the vehicle-mounted communication disconnection time and the user historical payment time meets the second preset time threshold.
Optionally, the computer program further implements the following steps when executed by the processor:
and determining the preset time threshold according to a plurality of recorded historical vehicle-mounted communication connection times and a plurality of user payment times.
In this embodiment, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A network reconnection method is applied to a mobile terminal, and comprises the following steps:
acquiring vehicle-mounted communication connection time;
under the condition that the time interval between the vehicle-mounted communication connection time and the predicted user payment time obtained through pre-learning meets a pre-obtained preset time threshold, obtaining the current position of the user;
judging whether the distance between the current position of the user and a pre-acquired predicted user payment position meets a preset condition or not;
detecting whether the network is in an abnormal state or not under the condition that the distance between the current position of the user and the pre-acquired predicted user payment position meets a preset condition;
and in the case that the network is in an abnormal state, the network is accessed again.
2. The method of claim 1, wherein the obtaining the current location of the user comprises: acquiring the current position of a user at preset time intervals;
the judging whether the distance between the current position of the user and the pre-acquired predicted user payment position meets the preset condition comprises the following steps:
judging whether the distance between the current user position and the predicted user payment position is smaller than a preset distance threshold value or not, and determining that the distance between the current user position and the predicted user payment position obtained in advance meets a preset condition under the condition that the distance between the current user position and the predicted user payment position is smaller than the preset distance threshold value; alternatively, the first and second electrodes may be,
under the condition that the distance between the current user position and the predicted user payment position is larger than or equal to a preset distance threshold, reacquiring the current user position at intervals of preset time, recording the times of reacquiring the current user position, and under the condition that the times of reacquiring the current user position is smaller than the preset times, judging whether the reacquired current user position is smaller than the preset distance threshold; and under the condition that the re-acquired current position of the user is smaller than a preset threshold value, determining that the distance between the current position of the user and the pre-acquired predicted user payment position meets a preset condition.
3. The method of claim 1, wherein obtaining the predicted user payment time and the predicted user payment location comprises:
recording user payment time and acquiring a user payment position corresponding to the user payment time under the condition that the user payment operation is detected within a preset time period after the connection with the vehicle-mounted communication equipment is started;
and determining the predicted user payment time and the predicted user payment position corresponding to the predicted user payment time according to the recorded plurality of user payment times and the plurality of user payment positions.
4. The method of claim 1, wherein re-accessing the network comprises:
determining a user expected payment shop according to the historical payment time and the historical payment position of the user, and selecting a wireless network of the user expected payment shop from prestored shop wireless networks for connection; alternatively, the first and second electrodes may be,
the method comprises the steps of determining wireless networks of a user expected payment store from pre-stored store wireless networks, and selecting a network with higher signal strength from the wireless network and a mobile data network of the user expected payment store for connection.
5. The method according to claim 1, wherein the obtaining of the vehicle-mounted communication connection time comprises any one of:
taking the vehicle-mounted Bluetooth connection time as the vehicle-mounted communication connection time;
taking the vehicle-mounted wireless network connection time as the vehicle-mounted communication connection time;
and taking the vehicle-mounted wired communication connection time as the vehicle-mounted communication connection time.
6. The method according to claim 5, wherein the vehicle-mounted communication connection time comprises vehicle-mounted communication starting connection time and/or vehicle-mounted communication disconnection time, and the preset time threshold comprises a first preset time threshold and a second preset time threshold;
under the condition that the time interval between the vehicle-mounted communication connection time and the predicted user payment time obtained through pre-learning meets a pre-obtained preset time threshold, obtaining the current position of the user, wherein the obtaining comprises the following steps:
acquiring the current position of the user under the condition that the vehicle-mounted communication connection time is vehicle-mounted communication starting connection time, and the time interval between the vehicle-mounted communication connection time and the user historical payment time meets the first preset time threshold; alternatively, the first and second electrodes may be,
and acquiring the current position of the user under the condition that the vehicle-mounted communication connection time is the vehicle-mounted communication disconnection time, and the time interval between the vehicle-mounted communication disconnection time and the user historical payment time meets the second preset time threshold.
7. The method according to claim 1, wherein the obtaining of the preset time threshold comprises:
and determining the preset time threshold according to a plurality of recorded historical vehicle-mounted communication connection times and a plurality of user payment times.
8. A network reconnection device, applied to a mobile terminal, the network reconnection device comprising:
the first acquisition module is used for acquiring vehicle-mounted communication connection time;
the second acquisition module is used for acquiring the current position of the user under the condition that the time interval between the vehicle-mounted communication connection time and the predicted user payment time acquired in advance through learning meets a preset time threshold acquired in advance;
the judging module is used for judging whether the distance between the current position of the user and the pre-acquired predicted user payment position meets a preset condition or not;
the detection module is used for detecting whether the network is in an abnormal state or not under the condition that the distance between the current position of the user and the pre-acquired predicted user payment position meets a preset condition;
and the processing module is used for re-accessing the network under the condition that the network is in an abnormal state.
9. A mobile terminal, characterized in that it comprises a memory and a processor, the memory storing a computer program which, when run by the processor, performs the network reconnection method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when run on a processor, performs the network reconnection method of any one of claims 1 to 7.
CN202110198443.6A 2021-02-20 2021-02-20 Network reconnection method and device and mobile terminal Pending CN114979938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110198443.6A CN114979938A (en) 2021-02-20 2021-02-20 Network reconnection method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110198443.6A CN114979938A (en) 2021-02-20 2021-02-20 Network reconnection method and device and mobile terminal

Publications (1)

Publication Number Publication Date
CN114979938A true CN114979938A (en) 2022-08-30

Family

ID=82954232

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110198443.6A Pending CN114979938A (en) 2021-02-20 2021-02-20 Network reconnection method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN114979938A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117914930A (en) * 2024-03-15 2024-04-19 苔花科迈(西安)信息技术有限公司 Mobile equipment operation method and device based on network state detection under coal mine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117914930A (en) * 2024-03-15 2024-04-19 苔花科迈(西安)信息技术有限公司 Mobile equipment operation method and device based on network state detection under coal mine

Similar Documents

Publication Publication Date Title
CN108845853B (en) Application program starting method and mobile terminal
CN109343759B (en) Screen-turning display control method and terminal
CN108279948B (en) Application program starting method and mobile terminal
CN108135033B (en) Bluetooth connection method and mobile terminal
CN108235308B (en) Data reporting method and device, mobile terminal and computer readable medium
CN109561420B (en) Emergency help-seeking method and related equipment
CN108391008B (en) Message reminding method and mobile terminal
CN107608855B (en) Reminding method and mobile terminal
CN107835495B (en) Message prompting method and device and mobile terminal
CN108551525B (en) State determination method of movement track and mobile terminal
CN111107223B (en) Message processing method and electronic equipment
CN107832067B (en) Application updating method, mobile terminal and computer readable storage medium
CN110098651B (en) Charging method, charging device, electronic equipment and readable storage medium
CN109639738B (en) Voice data transmission method and terminal equipment
CN110784394A (en) Prompting method and electronic equipment
CN108388400B (en) Operation processing method and mobile terminal
CN108810284B (en) Mode switching method of camera and electronic equipment
CN108170310B (en) Touch screen control method and mobile terminal
CN108307048B (en) Message output method and device and mobile terminal
CN111427644B (en) Target behavior identification method and electronic equipment
CN110826115B (en) Management method, wearable device and electronic device
CN114979938A (en) Network reconnection method and device and mobile terminal
CN109660657B (en) Application program control method and device
CN109040457B (en) Screen brightness adjusting method and mobile terminal
CN109753776B (en) Information processing method and device and mobile terminal

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