WO2021136189A1 - Positioning prompting method and electronic device - Google Patents

Positioning prompting method and electronic device Download PDF

Info

Publication number
WO2021136189A1
WO2021136189A1 PCT/CN2020/140208 CN2020140208W WO2021136189A1 WO 2021136189 A1 WO2021136189 A1 WO 2021136189A1 CN 2020140208 W CN2020140208 W CN 2020140208W WO 2021136189 A1 WO2021136189 A1 WO 2021136189A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
positioning
prompt
prompt message
output
Prior art date
Application number
PCT/CN2020/140208
Other languages
French (fr)
Chinese (zh)
Inventor
唐奥林
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021136189A1 publication Critical patent/WO2021136189A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers

Definitions

  • the embodiment of the present invention relates to the field of communication technology, and in particular to a positioning prompt method and electronic equipment.
  • a common application scenario is, for example, a user uses a map application to implement navigation on an electronic device.
  • the application interface continues to load data, the positioning information is not updated in time, the application interface prompts "weak signal", and the application interface continues to display "positioning".
  • the measures often adopted are to exit the current application, restart the electronic device, disconnect the network and reconnect, and so on.
  • the embodiments of the present invention provide a positioning prompt method and electronic equipment to solve the problem that the user's measures to solve the positioning abnormality are cumbersome and not necessarily effective, which results in the user's low efficiency in solving the positioning abnormality.
  • the present invention is implemented as follows:
  • the embodiment of the present invention provides a positioning prompt method, which is applied to an electronic device, and includes: when the electronic device initiates a positioning request, obtaining data associated with the positioning request; wherein the data associated with the positioning request The data includes network status data, auxiliary positioning data, GPS location data, network location data, and satellite status data; when the target data associated with the positioning request is abnormal data, a prompt message is output; wherein The content includes operation information used to restore the target data to normal data.
  • An embodiment of the present invention also provides an electronic device, including: a data acquisition module, configured to acquire data associated with the positioning request when the electronic device initiates a positioning request; wherein, the data is associated with the positioning request
  • the data includes network status data, auxiliary positioning data, GPS location data, network location data, and satellite status data
  • the prompt output module is used to output a prompt message when the target data associated with the positioning request is abnormal data
  • the content of the prompt message includes operation information for restoring the target data to normal data.
  • the embodiment of the present invention also provides an electronic device, including a processor, a memory, a computer program stored on the memory and running on the processor, and the computer program is executed by the processor to achieve Describe the steps of the positioning prompt method.
  • the embodiment of the present invention also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the positioning prompt method are implemented.
  • the electronic device when the electronic device initiates a positioning request, the electronic device can monitor and obtain network location data, satellite status data, network status data, GPS location data, and assisted positioning in the continuous positioning request.
  • anomaly detection is performed on the acquired associated data.
  • the target data is detected as abnormal data, it is determined that a positioning abnormality occurs, and a prompt message is output based on the abnormal target data.
  • the content of the prompt message includes In order to restore the operation information that the target data is normal data, the user can solve the abnormal location problem as soon as possible according to the content in the prompt message.
  • this embodiment can help the user to find out the abnormal positioning caused by the abnormal target data as soon as possible, and provide the user with the operation method to solve the abnormal positioning in time, so that the user can operate in a targeted manner and operate quickly, thereby helping the user to quickly restore the device
  • the normal function of GPS positioning improves the efficiency of users in solving abnormal positioning.
  • FIG. 1 is one of the flowcharts of the positioning prompt method according to the embodiment of the present invention.
  • FIG. 3 is the third flowchart of the positioning prompt method according to the embodiment of the present invention.
  • FIG. 4 is the fourth flow chart of the positioning prompt method according to the embodiment of the present invention.
  • FIG. 5 is the fifth flowchart of the positioning prompt method according to the embodiment of the present invention.
  • Figure 6 is one of the block diagrams of the electronic device of the embodiment of the present invention.
  • Fig. 7 is the second block diagram of the electronic device according to the embodiment of the present invention.
  • FIG. 1 there is shown a flowchart of a positioning prompt method according to an embodiment of the present invention, which is applied to an electronic device, and includes:
  • Step S1 When the electronic device initiates a positioning request, obtain data associated with the positioning request.
  • the data associated with the positioning request includes network status data, auxiliary positioning data, GPS location data, network location data, and satellite status data.
  • the positioning request in this embodiment is a Global Positioning System (Global Positioning System, GPS for short) positioning request.
  • Global Positioning System Global Positioning System, GPS for short
  • the application scenario of the embodiment of the present invention is, for example, an application initiates a GPS positioning request.
  • Applications such as map applications.
  • the built-in positioning module of the electronic device can monitor network position data, satellite state data, network state data, GPS position data, auxiliary positioning data, etc. in the system.
  • the data associated with the GPS positioning request can be monitored.
  • Step S2 When the target data associated with the positioning request is abnormal data, output a prompt message.
  • the content of the prompt message includes operation information used to restore the target data to normal data.
  • the electronic device may perform abnormality detection for the acquired data associated with the positioning request, so as to determine the occurrence of abnormal positioning based on the detected abnormality, and thereby output a prompt message.
  • the prompt message is based on the abnormality of the target data, and includes operation information used to restore the target data to normal data, so as to prompt the user to check influencing factors related to the target data.
  • positioning abnormalities include weak GPS signals and no GPS signals.
  • the electronic device can output a prompt message according to the abnormality of the target data, so that the user can according to the content of the prompt message and follow the prompt operation information to make targeted Eliminate the factors that cause the abnormal positioning to restore the target data to normal, so that the electronic device can restore the positioning function as soon as possible to ensure the normal use of the user.
  • the electronic device can obtain GPS position data within 5 seconds to achieve a successful positioning for the first time, and update and report new GPS position data every second.
  • the electronic device does not obtain GPS location data within 5 seconds after initiating a positioning request, or no new GPS location data is updated and reported every second, the GPS location data is abnormal, and a positioning abnormality occurs.
  • there are many reasons for abnormal positioning such as poor contact or damage to the internal hardware of the electronic device.
  • the abnormal positioning caused by this reason cannot be automatically recovered and needs to be repaired; for example, indoors or tunnels, etc.
  • Environmental obstruction signals, signal interference between devices, metal or magnetic protective covers blocking antennas, no auxiliary positioning data, abnormal network connection and other reasons. Positioning abnormalities caused by these reasons can be automatically restored according to environment and location changes.
  • the abnormality of different data it is possible to determine which cause the positioning abnormality is caused by, so as to output the corresponding prompt message.
  • the prompt message at least the user can be prompted to the cause of the abnormal positioning, and the user can be prompted to eliminate the abnormal operation, so that the user can perform targeted operations to solve these problems, restore the target data to normal, and make the electronic device restore the positioning function as soon as possible. In turn, it is ensured that the positioning request initiated by the electronic device is successful.
  • the electronic device when the electronic device initiates a positioning request, the electronic device can monitor and obtain network location data, satellite status data, network status data, GPS location data, and assisted positioning in the continuous positioning request.
  • anomaly detection is performed on the acquired associated data.
  • the target data is detected as abnormal data, it is determined that a positioning abnormality occurs, and a prompt message is output based on the abnormal target data.
  • the content of the prompt message includes In order to restore the operation information that the target data is normal data, the user can solve the abnormal location problem as soon as possible according to the content in the prompt message.
  • this embodiment can help the user to find out the abnormal positioning caused by the abnormal target data as soon as possible, and provide the user with the operation method to solve the abnormal positioning in time, so that the user can operate in a targeted manner and operate quickly, thereby helping the user to quickly restore the device
  • the normal function of GPS positioning improves the efficiency of users in solving abnormal positioning.
  • FIG. 2 shows a flowchart of a positioning prompt method according to another embodiment of the present invention.
  • Step S2 includes:
  • Step S21 When the network status data, auxiliary positioning data and GPS position data are all abnormal data, output a first prompt message.
  • the first prompt message is at least used to prompt to connect to the network.
  • the network status data can be obtained through the network status interface.
  • the network status data is abnormal data; at the same time, after positioning based on the positioning request, the GPS location data does not pass the frame for more than 5 seconds
  • the GPS location data is abnormal data; in addition, when the information reported by the bottom layer of the positioning module through a specific interface indicates that the auxiliary positioning data is invalid, the auxiliary positioning information is abnormal data.
  • the first prompt message may be output.
  • the auxiliary positioning data refers to data such as ephemeris and other data downloaded to the local network.
  • the auxiliary positioning data can speed up the positioning module to search for satellites and solve the position.
  • the principle is to calculate the satellites currently visible in the sky through the auxiliary positioning data, and concentrate on scanning and solving the signals of these satellites.
  • the positioning can be successfully located within 5 seconds and the position can be reported. .
  • it will take a long time to do the positioning.
  • the content of the first prompt message includes “please connect the user to the network to speed up positioning”.
  • the user in response to a positioning abnormal situation where no GPS location data is reported in a short period of time due to poor network status and invalid auxiliary positioning data, the user is prompted to connect to the network to restore the network state and/or download auxiliary positioning data , So that it can successfully locate and start reporting GPS location data within 5 seconds.
  • FIG. 3 shows a flowchart of a positioning prompt method according to another embodiment of the present invention
  • step S2 includes:
  • Step S22 When at least one of the network status data and the auxiliary positioning data is normal data, and the GPS location data is abnormal data, signal interference is detected.
  • the abnormal positioning caused by the disconnection of the network can be ruled out.
  • GPS location data is not continuously and normally reported, resulting in an abnormality in the GPS location data, so that it can further detect whether there is signal interference from the information reported by the bottom layer of the positioning module.
  • Step S23 In the case of detecting signal interference, output a second prompt message.
  • the second prompt message is at least used to prompt to eliminate interference signals external to the device or interference signals internal to the device.
  • signal interference can be specifically divided into interference signals outside the equipment and interference signals inside the equipment.
  • the content of the second prompt message includes "There is signal interference in the current environment that affects GPS positioning, please check whether it is caused by other electronic equipment or metal brackets"; on the other hand, if there is more If there is signal interference in each positioning record, the user is prompted "The current device has internal interference that affects GPS positioning. Please check the help and contact after-sales service to troubleshoot the cause of the problem.”
  • one-time positioning record refers to continuous positioning that meets a preset duration.
  • a positioning record is recorded once more than 2 minutes from the start of the positioning to the end of the positioning.
  • the acquired positioning data can be regarded as a positioning record.
  • the abnormal positioning in the case of excluding the abnormal positioning caused by the disconnection of the network, if continuous GPS position data cannot be obtained, it is further determined whether the abnormal positioning is caused by signal interference.
  • signal interference causes abnormal positioning, then it is necessary to consider whether it is signal interference caused by external equipment or signal interference caused by internal components of the equipment. Therefore, the recent multiple positioning records can be further obtained.
  • some of the positioning records are generated far away from the external equipment. Therefore, if there is signal interference in each positioning record, it may be connected to the external equipment. It is irrelevant, because there is interference inside the device; if there is not signal interference every time the location record is recorded, it may be signal interference caused by external devices, and remind users to stay away from these external devices to avoid signal interference.
  • FIG. 4 shows a flow chart of the positioning prompt method according to another embodiment of the present invention. After step S22, it further includes:
  • Step S24 In the case that no signal interference is detected, the satellite signal value is obtained according to the satellite state data.
  • the satellite status data is continuously reported every second. Therefore, the reported satellite signal value can be obtained according to the reported satellite status data, so as to determine whether the satellite status data causes a positioning abnormality according to the magnitude of the satellite signal value.
  • Step S25 When the satellite signal values are all zero, output a third prompt message.
  • the third prompt information is used to at least prompt to exclude indoor environment occlusion factors or hardware damage factors.
  • the satellite signal values are all zero during the positioning period, it may be considered that the user is indoors, and the positioning is abnormal due to the closed occlusion of the indoor environment.
  • the content of the third prompt message includes "The current GPS signal is weak, please confirm whether the user is in an outdoor unobstructed environment”.
  • the content of the third prompt message further includes "If it is confirmed that it is an outdoor open environment, it is judged that there is a hardware problem, and the maintenance personnel need to cooperate and analyze.”
  • a corresponding prompt message is output.
  • the prompt message is used at least to prompt to exclude the outdoor environment occlusion factor or the occlusion factor of the electronic device decoration.
  • the larger the satellite signal value the better the positioning.
  • the satellite signal value is less than a certain value, it will cause abnormal positioning.
  • the first threshold value is the minimum value of the satellite signal value that can be located in an outdoor environment.
  • the satellite signal value if the satellite signal value continues to be greater than zero, the user is in a closed room and the hardware is damaged. If the satellite signal value continues to be less than the first threshold, abnormal positioning occurs. At this time, it is necessary to consider whether it is from outdoors.
  • Some of the occlusion or the occlusion of the electronic equipment decoration For example, if a user sits by a window, the electronic device defaults to the user's outdoor location based on the satellite signal value, but in fact, due to the limitation of the window, the positioning may be abnormal due to occlusion. Therefore, it is necessary to eliminate the outdoor environment occlusion factors such as the window; The electronic device defaults that the user is outdoors according to the satellite signal value. After the above-mentioned outdoor environment occlusion factors are artificially excluded, it is necessary to exclude the occlusion factors of electronic device decorations such as metal or magnetic protective covers.
  • the content of the prompt message includes "please assist in confirming whether to use a metal or magnetic protective cover, or a weak signal environment that is blocked by a window, etc.”.
  • the average value of the satellite signal values can be obtained to determine whether the average value is less than the first threshold. Further, the average value of the largest TOP6 satellite signal value can be obtained.
  • the analysis shows that the user is in a closed room, and the satellite signal values are all zero due to the indoor occlusion. It is also possible that the electronic equipment hardware is damaged and the satellite signal values are all zero. As a result, the positioning abnormality is caused, and the user is prompted to eliminate the cause of the positioning abnormality.
  • the satellite signal value in the satellite status data is not all zero, but the average value is less than the first threshold, the analysis shows that the user is outdoors. However, because the satellite signal value is too low, it may be that the user is in a sheltered outdoor environment. It may be a protective cover or other decorations on the outside of the electronic device that caused the abnormal positioning, and the user is prompted to eliminate the cause of the abnormal positioning.
  • step S2 in this embodiment may further include:
  • Step S26 In a case where the average value of the satellite signal value is greater than zero and less than the first threshold, and the electronic device is in a moving state, obtain the maximum speed value of the electronic device according to the GPS position data.
  • the electronic device when the electronic device is in a mobile state, the user is in an outdoor environment by default. Therefore, when the average value of the satellite signal value is greater than zero and less than the first threshold, the electronic device can be further divided when the electronic device is in a mobile state. It is the walking state, the traveling state by car, etc., to further help the user to eliminate the cause of the abnormal positioning.
  • the moving distance of the electronic device is greater than 500 meters, and the positioning time exceeds 2 minutes, then the electronic device is considered to be in a moving state.
  • Step S27 In the case that the GPS location data cannot be obtained, a fourth prompt message is output.
  • step S28 when the maximum speed value is less than the speed threshold value and the average value of the satellite signal value is less than the second threshold value, the fourth prompt information is output.
  • the maximum speed value in the GPS position data will be counted.
  • the latitude and longitude data in the GPS location data there are also data such as the height and speed of the WGS-84 calculated at the same time. If the maximum speed value obtained after the positioning is completed is less than the speed threshold value, it is determined that the user is walking or moving at a low speed, and then it is further determined whether the average value of the satellite signal value is less than the second threshold value, and if so, a fourth prompt message is output.
  • step S29 when the maximum speed value is greater than or equal to the speed threshold value and the average value of the satellite signal value is less than the third threshold value, a fourth prompt message is output.
  • the maximum speed value in the GPS position data will be counted. If the maximum speed value obtained after the positioning is greater than or equal to the speed threshold, it is determined that the user is in a car movement, such as taking a high-speed rail, etc., then it is further determined whether the average value of the satellite signal value is less than the third threshold, and if so, the output Four prompt messages.
  • the fourth prompt message is at least used to prompt to exclude the outdoor environment occlusion factor or the occlusion factor of the electronic device decoration.
  • the content of the fourth prompt message includes "Please assist in confirming whether to use a metal or magnetic protective cover, or a weak signal environment that is blocked by a window, etc.”.
  • the satellite signal value is lower than when it is in a stationary state, and when riding in a car, the satellite signal value will be lower than that outside the car.
  • the minimum value of the satellite signal suitable for walking, running or cycling outside the car namely the second threshold
  • the minimum value of the satellite signal suitable for the inside of the car namely the third threshold
  • the first threshold is greater than the second threshold
  • the first The second threshold is greater than the third threshold. Therefore, for different situations, different ranges of satellite signal values cause positioning abnormalities to be considered respectively, and users are advised to check the decorations of the electronic equipment and outdoor obstructions.
  • FIG. 5 shows a flowchart of a positioning prompt method according to another embodiment of the present invention.
  • Step S2 includes:
  • Step S210 In the positioning request for a preset number of consecutive times, when the target data associated with the positioning request are all abnormal data, a prompt message is output.
  • the detection in order to improve the accuracy of detecting the cause of abnormal positioning, the detection may be performed continuously in multiple positioning requests, so as to output a prompt message based on the multiple detection results.
  • This embodiment is combined with the embodiment shown in FIG. 4, in a positioning request, if the preset condition in any one of steps S27 to S29 is met, the count value of the number of times of statistical positioning abnormalities is increased by 1. . Further, if the count value of the number of abnormal positioning times is increased by 1, in the three consecutive positioning, the fourth prompt message is output.
  • one positioning request may be regarded as one positioning.
  • the moving distance of the electronic device is greater than 500 meters and the positioning time exceeds 2 minutes as one positioning.
  • the prompt message may also include multiple options to meet multiple needs for the user.
  • the user can click the option "I know”, the prompt message can be automatically hidden in the notification bar, and the user can view the prompt message in the notification bar at any time; for another example, the user can click the option "View Help” to jump into Go to the interface with detailed instructions, or after-sales recommendations, etc.; for another example, the user can click the "Don't prompt again” option, and the prompt message will be automatically hidden.
  • the present invention adds detection prompts for weak signals caused by different scenarios from the system level, combined with the underlying positioning module, and utilizes the network position data, satellite status data, and network status data in the monitoring system in the electronic device.
  • Fig. 6 shows a block diagram of an electronic device according to another embodiment of the present invention, including:
  • the data acquisition module 10 is used to acquire data associated with the positioning request when the electronic device initiates a positioning request; wherein the data associated with the positioning request includes network status data, auxiliary positioning data, GPS position data, network position data, and Satellite status data;
  • the prompt output module 20 is configured to output a prompt message when the target data associated with the positioning request is abnormal data; wherein the content of the prompt message includes operation information for restoring the target data to normal data.
  • the internal electronic device can monitor and obtain network position data, satellite status data, network status data, GPS position data, and assisted positioning in the continuous positioning request.
  • a piece of data or multiple pieces of data associated with a positioning request such as data.
  • anomaly detection is performed on the acquired associated data, and when the target data is detected as anomalous data, it is determined that a positioning abnormality occurs, and a prompt message is output based on the abnormal target data.
  • the content of the prompt message includes In order to restore the operation information that the target data is normal data, the user can solve the abnormal location problem as soon as possible according to the content in the prompt message.
  • this embodiment can help the user find out the abnormal positioning caused by the abnormal target data as soon as possible, and provide the user with an operation method to solve the abnormal positioning in a timely manner, so that the user can operate in a targeted manner and operate quickly, thereby helping the user to quickly restore the device
  • the normal function of GPS positioning improves the efficiency of users in solving abnormal positioning.
  • the prompt output module 20 includes:
  • the first output unit is configured to output a first prompt message when the network status data, auxiliary positioning data, and GPS position data are all abnormal data;
  • the first prompt message is at least used to prompt to connect to the network.
  • the prompt output module 20 includes:
  • the detection unit is used to detect signal interference when at least one of the network status data and the auxiliary positioning data is normal data and the GPS location data is abnormal data;
  • the second output unit is configured to output a second prompt message when signal interference is detected
  • the second prompt message is at least used to prompt to eliminate interference signals external to the device or interference signals internal to the device.
  • the prompt output module 20 further includes:
  • the signal value acquisition unit is used to acquire the satellite signal value according to the satellite state data when no signal interference is detected;
  • the third output unit is configured to output a third prompt message when the satellite signal values are all zero; wherein, the third prompt information is used to at least prompt the elimination of indoor environment occlusion factors or hardware damage factors;
  • the speed value acquisition unit is configured to acquire the maximum speed value of the electronic device according to GPS position data when the average value of the satellite signal value is greater than zero and less than the first threshold, and the electronic device is in a moving state;
  • the fourth output unit is used to output a fourth prompt message when the GPS location data cannot be obtained;
  • the fifth output subunit is used for outputting the fourth prompt message when the maximum speed value is less than the speed threshold value and the average value of the satellite signal value is less than the second threshold value;
  • the sixth output unit is configured to output a fourth prompt message when the maximum speed value is greater than or equal to the speed threshold value and the average value of the satellite signal value is less than the third threshold value;
  • the fourth prompt message is used at least to prompt to exclude the occlusion factor of the electronic device decoration
  • first threshold is greater than the second threshold
  • second threshold is greater than the third threshold
  • the prompt output module 20 includes:
  • the seventh output unit is configured to output a prompt message when the target data associated with the positioning request are all abnormal data in the positioning request for a preset number of consecutive times.
  • the electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of FIGS. 1 to 5, and to avoid repetition, details are not described herein again.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111 and other components.
  • a radio frequency unit 101 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111 and other components.
  • the electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, in-vehicle electronic devices, wearable devices, and
  • the processor 110 is configured to obtain data associated with the positioning request when the electronic device initiates a positioning request; wherein the data associated with the positioning request includes network status data, auxiliary positioning data, GPS location data, and network location data And satellite status data; when the target data associated with the positioning request is abnormal data, a prompt message is output; wherein the content of the prompt message includes operation information for restoring the target data to normal data.
  • the internal electronic device can monitor and obtain network position data, satellite status data, network status data, GPS position data, and assisted positioning in the continuous positioning request.
  • a piece of data or multiple pieces of data associated with a positioning request such as data.
  • anomaly detection is performed on the acquired associated data, and when the target data is detected as anomalous data, it is determined that a positioning abnormality occurs, and a prompt message is output based on the abnormal target data.
  • the content of the prompt message includes In order to restore the target data as normal data, the user can solve the abnormal location problem as soon as possible according to the content in the prompt message.
  • this embodiment can help the user find out the abnormal positioning caused by the abnormal target data as soon as possible, and provide the user with an operation method to solve the abnormal positioning in a timely manner, so that the user can operate in a targeted manner and operate quickly, thereby helping the user to quickly restore the device
  • the normal function of GPS positioning improves the efficiency of users in solving abnormal positioning.
  • the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 101 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.
  • the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 104 is used to receive audio or video signals.
  • the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame can be displayed on the display unit 106.
  • the image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102.
  • the microphone 1042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
  • the electronic device 100 further includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 1061 and the display panel 1061 when the electronic device 100 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer posture calibration), vibration recognition related functions (such as pedometer, tap), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 106 is used to display information input by the user or information provided to the user.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072.
  • the touch panel 1071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating).
  • the touch panel 1071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed.
  • the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 107 may also include other input devices 1072.
  • other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 1071 can be overlaid on the display panel 1061.
  • the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 1061.
  • the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 108 is an interface for connecting an external device with the electronic device 100.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 100 or can be used to connect to the electronic device 100 and the external device. Transfer data between devices.
  • the memory 109 can be used to store software programs and various data.
  • the memory 109 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 110 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem
  • the processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
  • the electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components.
  • a power source 111 such as a battery
  • the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
  • the electronic device 100 includes some functional modules not shown, which will not be repeated here.
  • the embodiment of the present invention also provides an electronic device, including a processor 110, a memory 109, a computer program stored on the memory 109 and capable of running on the processor 110, and when the computer program is executed by the processor 110
  • an electronic device including a processor 110, a memory 109, a computer program stored on the memory 109 and capable of running on the processor 110, and when the computer program is executed by the processor 110
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the above-mentioned positioning prompt method embodiment is realized, and the same technology can be achieved. The effect, in order to avoid repetition, will not be repeated here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk, or optical disk, etc.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.
  • a storage medium such as ROM/RAM, magnetic disk,
  • the optical disc includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Navigation (AREA)

Abstract

A positioning prompting method and an electronic device (100). The positioning prompting method comprises: insofar as the electronic device (100) launches a positioning request, acquiring data related to the positioning request (S1), where the data related to the positioning request comprise network state data, auxiliary positioning data, GPS position data, network position data, and satellite state data; insofar as target data related to the positioning request is abnormal data, outputting a prompt message (S2), where the content of the prompt message comprises operation information used for restoring the target data to normal data.

Description

定位提示方法及电子设备Positioning prompt method and electronic equipment
相关申请的交叉引用Cross-references to related applications
本申请主张在2019年12月30日在中国提交的中国专利申请号201911405858.5的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201911405858.5 filed in China on December 30, 2019, the entire content of which is incorporated herein by reference.
技术领域Technical field
本发明实施例涉及通信技术领域,尤其涉及一种定位提示方法及电子设备。The embodiment of the present invention relates to the field of communication technology, and in particular to a positioning prompt method and electronic equipment.
背景技术Background technique
目前,电子设备的定位功能应用场景较为广泛。常见的应用场景如,用户在电子设备上使用地图应用实现导航。At present, the application scenarios of the positioning function of electronic devices are relatively extensive. A common application scenario is, for example, a user uses a map application to implement navigation on an electronic device.
通常,在定位功能的应用场景中,经常会出现以下几种情况:应用界面持续加载数据、没有及时更新定位信息、应用界面提示“信号弱”、应用界面持续显示“正在定位”等。当用户遇到上述这些情况时,常采用的措施是,退出当前应用、重启电子设备、断开网络重新连接等。Generally, in the application scenarios of the positioning function, the following situations often occur: the application interface continues to load data, the positioning information is not updated in time, the application interface prompts "weak signal", and the application interface continues to display "positioning". When the user encounters the above-mentioned situations, the measures often adopted are to exit the current application, restart the electronic device, disconnect the network and reconnect, and so on.
但是,上述用户解决定位异常的措施较为繁琐,且不一定有效,从而导致用户解决定位异常的效率较低。However, the above-mentioned measures taken by the user to solve the location abnormality are cumbersome and may not be effective, resulting in low efficiency of the user in solving the location abnormality.
发明内容Summary of the invention
本发明实施例提供一种定位提示方法及电子设备,以解决用户解决定位异常的措施较为繁琐,且不一定有效,从而导致用户解决定位异常的效率较低的问题。The embodiments of the present invention provide a positioning prompt method and electronic equipment to solve the problem that the user's measures to solve the positioning abnormality are cumbersome and not necessarily effective, which results in the user's low efficiency in solving the positioning abnormality.
为了解决上述技术问题,本发明是这样实现的:In order to solve the above technical problems, the present invention is implemented as follows:
本发明实施例提供了一种定位提示方法,应用于电子设备,包括:在所述电子设备发起定位请求的情况下,获取与所述定位请求关联的数据;其中,与所述定位请求关联的数据包括网络状态数据、辅助定位数据、GPS位置数据、网络位置数据和卫星状态数据;在与所述定位请求关联的目标数据为异常数据的情况下,输出提示消息;其中,所述提示消 息的内容包括用于恢复所述目标数据为正常数据的操作信息。The embodiment of the present invention provides a positioning prompt method, which is applied to an electronic device, and includes: when the electronic device initiates a positioning request, obtaining data associated with the positioning request; wherein the data associated with the positioning request The data includes network status data, auxiliary positioning data, GPS location data, network location data, and satellite status data; when the target data associated with the positioning request is abnormal data, a prompt message is output; wherein The content includes operation information used to restore the target data to normal data.
本发明实施例还提供了一种电子设备,包括:数据获取模块,用于在所述电子设备发起定位请求的情况下,获取与所述定位请求关联的数据;其中,与所述定位请求关联的数据包括网络状态数据、辅助定位数据、GPS位置数据、网络位置数据和卫星状态数据;提示输出模块,用于在与所述定位请求关联的目标数据为异常数据的情况下,输出提示消息;其中,所述提示消息的内容包括用于恢复所述目标数据为正常数据的操作信息。An embodiment of the present invention also provides an electronic device, including: a data acquisition module, configured to acquire data associated with the positioning request when the electronic device initiates a positioning request; wherein, the data is associated with the positioning request The data includes network status data, auxiliary positioning data, GPS location data, network location data, and satellite status data; the prompt output module is used to output a prompt message when the target data associated with the positioning request is abnormal data; Wherein, the content of the prompt message includes operation information for restoring the target data to normal data.
本发明实施例还提供了一种电子设备,包括处理器,存储器,存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现所述定位提示方法的步骤。The embodiment of the present invention also provides an electronic device, including a processor, a memory, a computer program stored on the memory and running on the processor, and the computer program is executed by the processor to achieve Describe the steps of the positioning prompt method.
本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现所述定位提示方法的步骤。The embodiment of the present invention also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the positioning prompt method are implemented.
这样,在本发明实施例中,在电子设备发起定位请求的情况下,电子设备内部可在持续的定位请求中监听并获取网络位置数据、卫星状态数据、网络状态数据、GPS位置数据、辅助定位数据等与定位请求关联的一项数据或者多项数据。进一步地,针对获取的关联数据进行异常检测,在检测到其中的目标数据为异常数据的情况下,判定出现定位异常现象,从而根据出现异常的目标数据,输出提示消息,提示消息的内容包括用于恢复目标数据为正常数据的操作信息,进而用户可根据提示消息中的内容,尽快解决定位异常问题。可见,本实施例能够尽快帮助用户排查出是因目标数据异常导致定位异常的,并及时提供给用户解决定位异常的操作方法,使得用户能够针对性地操作,操作快捷,从而帮助用户快速恢复设备GPS定位的正常功能,提高用户解决定位异常的效率。In this way, in the embodiment of the present invention, when the electronic device initiates a positioning request, the electronic device can monitor and obtain network location data, satellite status data, network status data, GPS location data, and assisted positioning in the continuous positioning request. A piece of data or multiple pieces of data associated with a positioning request, such as data. Further, anomaly detection is performed on the acquired associated data. In the case where the target data is detected as abnormal data, it is determined that a positioning abnormality occurs, and a prompt message is output based on the abnormal target data. The content of the prompt message includes In order to restore the operation information that the target data is normal data, the user can solve the abnormal location problem as soon as possible according to the content in the prompt message. It can be seen that this embodiment can help the user to find out the abnormal positioning caused by the abnormal target data as soon as possible, and provide the user with the operation method to solve the abnormal positioning in time, so that the user can operate in a targeted manner and operate quickly, thereby helping the user to quickly restore the device The normal function of GPS positioning improves the efficiency of users in solving abnormal positioning.
附图说明Description of the drawings
图1是本发明实施例的定位提示方法的流程图之一;FIG. 1 is one of the flowcharts of the positioning prompt method according to the embodiment of the present invention;
图2是本发明实施例的定位提示方法的流程图之二;2 is the second flowchart of the positioning prompt method according to the embodiment of the present invention;
图3是本发明实施例的定位提示方法的流程图之三;FIG. 3 is the third flowchart of the positioning prompt method according to the embodiment of the present invention;
图4是本发明实施例的定位提示方法的流程图之四;FIG. 4 is the fourth flow chart of the positioning prompt method according to the embodiment of the present invention;
图5是本发明实施例的定位提示方法的流程图之五;FIG. 5 is the fifth flowchart of the positioning prompt method according to the embodiment of the present invention;
图6是本发明实施例的电子设备的框图之一;Figure 6 is one of the block diagrams of the electronic device of the embodiment of the present invention;
图7是本发明实施例的电子设备的框图之二。Fig. 7 is the second block diagram of the electronic device according to the embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
参见图1,示出了本发明一个实施例的定位提示方法的流程图,应用于电子设备,包括:Referring to Fig. 1, there is shown a flowchart of a positioning prompt method according to an embodiment of the present invention, which is applied to an electronic device, and includes:
步骤S1:在电子设备发起定位请求的情况下,获取与定位请求关联的数据。Step S1: When the electronic device initiates a positioning request, obtain data associated with the positioning request.
其中,与定位请求关联的数据包括网络状态数据、辅助定位数据、GPS位置数据、网络位置数据和卫星状态数据。Among them, the data associated with the positioning request includes network status data, auxiliary positioning data, GPS location data, network location data, and satellite status data.
优选地,本实施例中的定位请求为全球定位系统(Global Positioning System,简称GPS)定位请求。Preferably, the positioning request in this embodiment is a Global Positioning System (Global Positioning System, GPS for short) positioning request.
示例性地,本发明实施例的应用场景如,有应用发起GPS定位请求。应用如地图应用。Exemplarily, the application scenario of the embodiment of the present invention is, for example, an application initiates a GPS positioning request. Applications such as map applications.
在本实施例中,当电子设备中有应用发起GPS定位请求时,电子设备内置的定位模块可监听系统内的网络位置数据、卫星状态数据、网络状态数据、GPS位置数据、辅助定位数据等与GPS定位请求关联的数据。In this embodiment, when an application in the electronic device initiates a GPS positioning request, the built-in positioning module of the electronic device can monitor network position data, satellite state data, network state data, GPS position data, auxiliary positioning data, etc. in the system. The data associated with the GPS positioning request.
步骤S2:在与定位请求关联的目标数据为异常数据的情况下,输出提示消息。Step S2: When the target data associated with the positioning request is abnormal data, output a prompt message.
其中,提示消息的内容包括用于恢复目标数据为正常数据的操作信息。Wherein, the content of the prompt message includes operation information used to restore the target data to normal data.
在该步骤中,电子设备可针对获取的与定位请求关联的数据,进行异常检测,以根据检测出的异常情况,判断出现定位异常现象,从而输出提示消息。其中,提示消息是基于目标数据出现异常而来的,包括用于恢复目标数据为正常数据的操作信息,以提示用户检查与目标数据相关的影响因素。In this step, the electronic device may perform abnormality detection for the acquired data associated with the positioning request, so as to determine the occurrence of abnormal positioning based on the detected abnormality, and thereby output a prompt message. Wherein, the prompt message is based on the abnormality of the target data, and includes operation information used to restore the target data to normal data, so as to prompt the user to check influencing factors related to the target data.
其中,定位异常包括GPS信号弱、无GPS信号等现象。Among them, positioning abnormalities include weak GPS signals and no GPS signals.
优选地,在该步骤中,可按照一定的顺序依次排除各项数据是否出现了异常。若检测到某一项出现了异常,则获取到的该目标数据为异常数据。可以想到,在定位请求中,会因此异常造成定位异常,因此,电子设备可根据目标数据出现的异常,输出提示消息,从而用户可根据提示消息中的内容,按照提示的操作信息,针对性地排除造成定位异常的因素,以使得目标数据恢复正常,进而使得电子设备尽快恢复定位功能,确保用户正常使用。Preferably, in this step, whether the various data items are abnormal can be excluded in a certain order. If an abnormality is detected in a certain item, the acquired target data is abnormal data. It is conceivable that in the positioning request, the abnormal location will be caused by the abnormality. Therefore, the electronic device can output a prompt message according to the abnormality of the target data, so that the user can according to the content of the prompt message and follow the prompt operation information to make targeted Eliminate the factors that cause the abnormal positioning to restore the target data to normal, so that the electronic device can restore the positioning function as soon as possible to ensure the normal use of the user.
例如,在一次定位请求中,定位正常的情况下,电子设备在5s内就能获取到GPS位置数据,实现首次成功定位,并且每秒都有新的GPS位置数据更新上报。而若电子设备在发起定位请求后,5s内没有获取到GPS位置数据,或者每秒没有新的GPS位置数据更新上报,则GPS位置数据异常,出现定位异常。而在实际使用中,造成定位异常的原因很多,例如,电子设备内部硬件接触不良或损坏等原因,这种原因造成的定位异常是不可自动恢复的,需要进行维修;又如,室内或隧道等环境遮挡信号、设备之间的信号干扰、金属或磁性保护套遮挡天线、无辅助定位数据、网络连接异常等原因,这些原因造成的定位异常是可以根据环境、位置变化等自动恢复的。For example, in a positioning request, when the positioning is normal, the electronic device can obtain GPS position data within 5 seconds to achieve a successful positioning for the first time, and update and report new GPS position data every second. However, if the electronic device does not obtain GPS location data within 5 seconds after initiating a positioning request, or no new GPS location data is updated and reported every second, the GPS location data is abnormal, and a positioning abnormality occurs. In actual use, there are many reasons for abnormal positioning, such as poor contact or damage to the internal hardware of the electronic device. The abnormal positioning caused by this reason cannot be automatically recovered and needs to be repaired; for example, indoors or tunnels, etc. Environmental obstruction signals, signal interference between devices, metal or magnetic protective covers blocking antennas, no auxiliary positioning data, abnormal network connection and other reasons. Positioning abnormalities caused by these reasons can be automatically restored according to environment and location changes.
因此,在本实施例中,可根据不同数据出现的异常,确定是哪种原因导致的定位异常,从而输出对应的提示消息。在提示消息中,至少可以提示用户造成定位异常的原因,以及提示用户消除异常的操作,从而用户可针对性地进行操作,以解决这些问题,恢复目标数据正常,使电子设备尽快恢复定位功能,进而确保电子设备发起的定位请求成功。Therefore, in this embodiment, according to the abnormality of different data, it is possible to determine which cause the positioning abnormality is caused by, so as to output the corresponding prompt message. In the prompt message, at least the user can be prompted to the cause of the abnormal positioning, and the user can be prompted to eliminate the abnormal operation, so that the user can perform targeted operations to solve these problems, restore the target data to normal, and make the electronic device restore the positioning function as soon as possible. In turn, it is ensured that the positioning request initiated by the electronic device is successful.
这样,在本发明实施例中,在电子设备发起定位请求的情况下,电子设备内部可在持续的定位请求中监听并获取网络位置数据、卫星状态数据、网络状态数据、GPS位置数据、辅助定位数据等与定位请求关联的一项数据或者多项数据。进一步地,针对获取的关联数据进行异常检测,在检测到其中的目标数据为异常数据的情况下,判定出现定位异常现象,从而根据出现异常的目标数据,输出提示消息,提示消息的内容包括用于恢复目标数据为正常数据的操作信息,进而用户可根据提示消息中的内容,尽快解决定位异常问题。可见,本实施例能够尽快帮助用户排查出是因目标数据异常导致定位异常的,并及时提供给用户解决定位异常的操作方法,使得用户能够针对性地操作,操作快捷,从而帮助用户快速恢复设备GPS定位的正常功能,提高用户解决定位异常的效率。In this way, in the embodiment of the present invention, when the electronic device initiates a positioning request, the electronic device can monitor and obtain network location data, satellite status data, network status data, GPS location data, and assisted positioning in the continuous positioning request. A piece of data or multiple pieces of data associated with a positioning request, such as data. Further, anomaly detection is performed on the acquired associated data. In the case where the target data is detected as abnormal data, it is determined that a positioning abnormality occurs, and a prompt message is output based on the abnormal target data. The content of the prompt message includes In order to restore the operation information that the target data is normal data, the user can solve the abnormal location problem as soon as possible according to the content in the prompt message. It can be seen that this embodiment can help the user to find out the abnormal positioning caused by the abnormal target data as soon as possible, and provide the user with the operation method to solve the abnormal positioning in time, so that the user can operate in a targeted manner and operate quickly, thereby helping the user to quickly restore the device The normal function of GPS positioning improves the efficiency of users in solving abnormal positioning.
在图1所示实施例的基础上,图2示出了本发明另一个实施例的定位提示方法的流程图,步骤S2包括:On the basis of the embodiment shown in FIG. 1, FIG. 2 shows a flowchart of a positioning prompt method according to another embodiment of the present invention. Step S2 includes:
步骤S21:在网络状态数据、辅助定位数据和GPS位置数据均为异常数据的情况下,输出第一提示消息。Step S21: When the network status data, auxiliary positioning data and GPS position data are all abnormal data, output a first prompt message.
其中,第一提示消息至少用于提示连接网络。Wherein, the first prompt message is at least used to prompt to connect to the network.
在本实施例中,可通过网络状态接口获取网络状态数据,当网络状态为未连接时,则网络状态数据为异常数据;同时,基于定位请求开始定位后,GPS位置数据超过5秒未通过框架上报给应用,则GPS位置数据为异常数据;再者,当定位模块底层通过特定接口上报的信息表明辅助定位数据无效时,辅助定位信息为异常数据。当满足上述三种数据异常时,可输出第一提示消息。In this embodiment, the network status data can be obtained through the network status interface. When the network status is not connected, the network status data is abnormal data; at the same time, after positioning based on the positioning request, the GPS location data does not pass the frame for more than 5 seconds When reported to the application, the GPS location data is abnormal data; in addition, when the information reported by the bottom layer of the positioning module through a specific interface indicates that the auxiliary positioning data is invalid, the auxiliary positioning information is abnormal data. When the above three data abnormalities are met, the first prompt message may be output.
其中,辅助定位数据指联网下载到本地的星历等数据。辅助定位数据可以加快定位模块搜星和解算位置,原理是通过辅助定位数据计算出当前上空可见的卫星,集中对于这些卫星的信号进行扫描和解算,一般在5秒内就可以成功定位开始上报位置。当两小时内无其他GPS定位记录,并且没有联网来获取网络位置数据和辅助定位数据时,就会花费较长时间做定位。Among them, the auxiliary positioning data refers to data such as ephemeris and other data downloaded to the local network. The auxiliary positioning data can speed up the positioning module to search for satellites and solve the position. The principle is to calculate the satellites currently visible in the sky through the auxiliary positioning data, and concentrate on scanning and solving the signals of these satellites. Generally, the positioning can be successfully located within 5 seconds and the position can be reported. . When there is no other GPS positioning record within two hours, and there is no network to obtain network position data and auxiliary positioning data, it will take a long time to do the positioning.
优选地,第一提示消息的内容包括“请用户连接网络以加速定位”。Preferably, the content of the first prompt message includes "please connect the user to the network to speed up positioning".
在本实施例中,首先针对因网络状态不佳,以及辅助定位数据无效,导致短时间内无GPS位置数据上报的定位异常情况,提示用户连接网络,以恢复网络状态和/或下载辅助定位数据,从而使得5秒内就可以成功定位并开始上报GPS位置数据。In this embodiment, firstly, in response to a positioning abnormal situation where no GPS location data is reported in a short period of time due to poor network status and invalid auxiliary positioning data, the user is prompted to connect to the network to restore the network state and/or download auxiliary positioning data , So that it can successfully locate and start reporting GPS location data within 5 seconds.
在图1所示实施例的基础上,图3示出了本发明另一个实施例的定位提示方法的流程图,步骤S2包括:On the basis of the embodiment shown in FIG. 1, FIG. 3 shows a flowchart of a positioning prompt method according to another embodiment of the present invention, and step S2 includes:
步骤S22:在网络状态数据和辅助定位数据中至少有一项为正常数据、且GPS位置数据为异常数据的情况下,检测信号干扰。Step S22: When at least one of the network status data and the auxiliary positioning data is normal data, and the GPS location data is abnormal data, signal interference is detected.
在网络状态数据和辅助定位数据中至少有一项为正常数据的情况下,可排除因网络未连接造成定位异常的现象。进一步地,在本实施例中,GPS位置数据没有连续正常上报,导致GPS位置数据出现异常,从而进一步从定位模块底层上报的信息中,检测是否存在信 号干扰。When at least one of the network status data and the auxiliary positioning data is normal data, the abnormal positioning caused by the disconnection of the network can be ruled out. Further, in this embodiment, GPS location data is not continuously and normally reported, resulting in an abnormality in the GPS location data, so that it can further detect whether there is signal interference from the information reported by the bottom layer of the positioning module.
步骤S23:在检测到信号干扰的情况下,输出第二提示消息。Step S23: In the case of detecting signal interference, output a second prompt message.
其中,第二提示消息至少用于提示排除设备外部干扰信号或设备内部干扰信号。Wherein, the second prompt message is at least used to prompt to eliminate interference signals external to the device or interference signals internal to the device.
其中,信号干扰具体可分为设备外部的干扰信号和设备内部的干扰信号。Among them, signal interference can be specifically divided into interference signals outside the equipment and interference signals inside the equipment.
优选地,在从定位模块底层上报的信息中,检测到存在信号干扰的情况下,可结合最近几次的定位记录进行进一步地判断。一方面,如果不是每次定位记录都存在信号干扰,第二提示消息的内容包括“当前环境存在信号干扰影响GPS定位,请排查是否是其他电子设备或金属支架导致”;另一方面,如果多次定位记录都存在信号干扰,则提示用户“当前设备存在内部干扰影响GPS定位,请查看帮助联系售后排查问题原因”。Preferably, in the case where signal interference is detected in the information reported from the bottom layer of the positioning module, further judgment can be made in combination with the recent positioning records. On the one hand, if signal interference does not exist in every location record, the content of the second prompt message includes "There is signal interference in the current environment that affects GPS positioning, please check whether it is caused by other electronic equipment or metal brackets"; on the other hand, if there is more If there is signal interference in each positioning record, the user is prompted "The current device has internal interference that affects GPS positioning. Please check the help and contact after-sales service to troubleshoot the cause of the problem."
示例性地,一次定位记录是指满足预设时长的持续定位。例如,从开始定位到结束定位超过2分钟为一次定位记录。Exemplarily, one-time positioning record refers to continuous positioning that meets a preset duration. For example, a positioning record is recorded once more than 2 minutes from the start of the positioning to the end of the positioning.
优选地,可将一次定位请求从发起到释放期间,即定位结束,获取的定位数据看作是一次定位记录。Preferably, during the period from initiation to release of a positioning request, that is, the end of positioning, the acquired positioning data can be regarded as a positioning record.
在本实施例中,在排除因网络未连接导致定位异常的情况下,若无法获取到连续的GPS位置数据,则进一步判断是否因信号干扰造成定位异常。而在实际应用中,若是信号干扰导致定位异常,则又需考虑是外部设备造成的信号干扰,还是设备内部器件造成的信号干扰。因此,可进一步获取近期的多次定位记录,在多次定位中,有部分定位记录是在远离外部设备的情况下产生的,因此,若每次定位记录均存在信号干扰,则可能与外部设备无关,是设备内部存在干扰;若不是每次定位记录都存在信号干扰,则可能是外部设备造成的信号干扰,提示用户远离这些外部设备,以避免信号干扰。In this embodiment, in the case of excluding the abnormal positioning caused by the disconnection of the network, if continuous GPS position data cannot be obtained, it is further determined whether the abnormal positioning is caused by signal interference. In practical applications, if signal interference causes abnormal positioning, then it is necessary to consider whether it is signal interference caused by external equipment or signal interference caused by internal components of the equipment. Therefore, the recent multiple positioning records can be further obtained. Among the multiple positionings, some of the positioning records are generated far away from the external equipment. Therefore, if there is signal interference in each positioning record, it may be connected to the external equipment. It is irrelevant, because there is interference inside the device; if there is not signal interference every time the location record is recorded, it may be signal interference caused by external devices, and remind users to stay away from these external devices to avoid signal interference.
在图3所示实施例的基础上,图4示导致的出了本发明另一个实施例的定位提示方法的流程图,步骤S22之后,还包括:On the basis of the embodiment shown in FIG. 3, FIG. 4 shows a flow chart of the positioning prompt method according to another embodiment of the present invention. After step S22, it further includes:
步骤S24:在未检测到信号干扰的情况下,根据卫星状态数据获取卫星信号值。Step S24: In the case that no signal interference is detected, the satellite signal value is obtained according to the satellite state data.
在本实施例中,在排除信号干扰导致定位异常后,可进一步确定卫星状态数据是否导致定位异常。In this embodiment, after the abnormal positioning caused by signal interference is eliminated, it can be further determined whether the satellite status data causes the abnormal positioning.
在定位期间,卫星状态数据是每秒持续上报的,因此可根据上报的卫星状态数据,得到上报的卫星信号值,从而根据卫星信号值的大小确定卫星状态数据是否导致定位异常。During the positioning period, the satellite status data is continuously reported every second. Therefore, the reported satellite signal value can be obtained according to the reported satellite status data, so as to determine whether the satellite status data causes a positioning abnormality according to the magnitude of the satellite signal value.
步骤S25:在卫星信号值全部为零的情况下,输出第三提示消息。Step S25: When the satellite signal values are all zero, output a third prompt message.
其中,第三提示信息至少用于提示排除室内环境遮挡因素或硬件损坏因素。Among them, the third prompt information is used to at least prompt to exclude indoor environment occlusion factors or hardware damage factors.
在一种情况下,定位期间卫星信号值全部为零,则考虑可能是用户处于室内,因室内环境的封闭遮挡导致定位异常。In one case, if the satellite signal values are all zero during the positioning period, it may be considered that the user is indoors, and the positioning is abnormal due to the closed occlusion of the indoor environment.
优选地,第三提示信息的内容包括“当前GPS信号弱,请用户确认是否在室外无遮挡环境”。Preferably, the content of the third prompt message includes "The current GPS signal is weak, please confirm whether the user is in an outdoor unobstructed environment".
进一步地,若用户处于室外无遮挡环境,则可以进一步排除室内环境遮挡因素造成的定位异常。优选地,第三提示信息的内容还包括“如果确认是室外空旷环境,判断存在硬件问题,需要维修人员配合分析”。Further, if the user is in an outdoor unobstructed environment, the abnormal positioning caused by the indoor environment obstructing factor can be further excluded. Preferably, the content of the third prompt message further includes "If it is confirmed that it is an outdoor open environment, it is judged that there is a hardware problem, and the maintenance personnel need to cooperate and analyze."
在另一种情况下,定位期间卫星信号值的平均值大于零且小于第一阈值,则输出对应的提示消息。其中,提示消息至少用于提示排除室外环境遮挡因素或电子设备装饰物遮挡因素。In another case, if the average value of the satellite signal value during the positioning period is greater than zero and less than the first threshold, a corresponding prompt message is output. Wherein, the prompt message is used at least to prompt to exclude the outdoor environment occlusion factor or the occlusion factor of the electronic device decoration.
通常,卫星信号值越大,越利于定位,当卫星信号值小于一定数值时,就会造成定位异常。Generally, the larger the satellite signal value, the better the positioning. When the satellite signal value is less than a certain value, it will cause abnormal positioning.
优选地,在本实施例中,第一阈值为室外环境下可定位的卫星信号值的最小值。Preferably, in this embodiment, the first threshold value is the minimum value of the satellite signal value that can be located in an outdoor environment.
在定位期间,若卫星信号值持续大于零,则排除处于用户处于封闭室内的情况,以及硬件损坏的情况,而卫星信号值持续小于第一阈值,出现定位异常,这时,需考虑是否由室外的一些遮挡或是电子设备装饰物遮挡所引起。例如,用户坐在窗户边,电子设备根据卫星信号值默认为用户处于室外,但实际上受窗户的局限,还是会因遮挡造成定位异常,因此需要排除窗边等室外环境遮挡因素;又如,电子设备根据卫星信号值默认为用户处于室外,人为排除上述室外环境遮挡因素后,需要排除金属或磁性保护套等电子设备装饰物遮挡因素。During the positioning period, if the satellite signal value continues to be greater than zero, the user is in a closed room and the hardware is damaged. If the satellite signal value continues to be less than the first threshold, abnormal positioning occurs. At this time, it is necessary to consider whether it is from outdoors. Some of the occlusion or the occlusion of the electronic equipment decoration. For example, if a user sits by a window, the electronic device defaults to the user's outdoor location based on the satellite signal value, but in fact, due to the limitation of the window, the positioning may be abnormal due to occlusion. Therefore, it is necessary to eliminate the outdoor environment occlusion factors such as the window; The electronic device defaults that the user is outdoors according to the satellite signal value. After the above-mentioned outdoor environment occlusion factors are artificially excluded, it is necessary to exclude the occlusion factors of electronic device decorations such as metal or magnetic protective covers.
优选地,这种情况下,提示消息的内容包括“请协助确认是否使用金属或磁性保护套, 或窗边等有遮挡的弱信号环境”。Preferably, in this case, the content of the prompt message includes "please assist in confirming whether to use a metal or magnetic protective cover, or a weak signal environment that is blocked by a window, etc.".
优选地,可获取卫星信号值的平均值,以判断平均值是否小于第一阈值。进一步地,可获取最大的TOP6的卫星信号值的平均值。Preferably, the average value of the satellite signal values can be obtained to determine whether the average value is less than the first threshold. Further, the average value of the largest TOP6 satellite signal value can be obtained.
可见,在排除因网络未连接、信号干扰造成定位异常之后,需进一步对卫星状态数据进行检测。在卫星状态数据中的卫星信号值全部为零的情况下,分析得到用户处于封闭室内,因室内的遮挡造成卫星信号值全部为零,也有可能是电子设备硬件损坏造成卫星信号值全部为零,从而造成定位异常,则提示用户排除造成定位异常的原因。在卫星状态数据中的卫星信号值不全为零,但平均值小于第一阈值的情况下分析得到用户处于室外,但由于卫星信号值太低,有可能是用户处于被遮挡的室外环境中,也可能是电子设备外部的保护套等装饰物,造成定位异常,则提示用户排除造成定位异常的原因。It can be seen that after eliminating the abnormal positioning caused by network disconnection and signal interference, further detection of satellite status data is required. In the case that the satellite signal values in the satellite status data are all zero, the analysis shows that the user is in a closed room, and the satellite signal values are all zero due to the indoor occlusion. It is also possible that the electronic equipment hardware is damaged and the satellite signal values are all zero. As a result, the positioning abnormality is caused, and the user is prompted to eliminate the cause of the positioning abnormality. When the satellite signal value in the satellite status data is not all zero, but the average value is less than the first threshold, the analysis shows that the user is outdoors. However, because the satellite signal value is too low, it may be that the user is in a sheltered outdoor environment. It may be a protective cover or other decorations on the outside of the electronic device that caused the abnormal positioning, and the user is prompted to eliminate the cause of the abnormal positioning.
进一步地,本实施例中的步骤S2还可包括:Further, step S2 in this embodiment may further include:
步骤S26:在卫星信号值的平均值大于零且小于第一阈值、且电子设备处于移动状态的情况下,根据GPS位置数据获取电子设备的最大速度值。Step S26: In a case where the average value of the satellite signal value is greater than zero and less than the first threshold, and the electronic device is in a moving state, obtain the maximum speed value of the electronic device according to the GPS position data.
因多数情况下,电子设备处于移动状态时,默认为用户处于室外环境,因此在上述卫星信号值的平均值大于零且小于第一阈值的情况下,可在电子设备处于移动状态时,进一步分为步行移动状态、乘车移动状态等,来进一步帮助用户排除造成定位异常的原因。In most cases, when the electronic device is in a mobile state, the user is in an outdoor environment by default. Therefore, when the average value of the satellite signal value is greater than zero and less than the first threshold, the electronic device can be further divided when the electronic device is in a mobile state. It is the walking state, the traveling state by car, etc., to further help the user to eliminate the cause of the abnormal positioning.
优选地,可在定位结束时,根据网络位置数据,得到电子设备的移动距离大于500米,且定位时间超过2分钟,则认为电子设备处于移动状态。Preferably, at the end of the positioning, according to the network location data, it is obtained that the moving distance of the electronic device is greater than 500 meters, and the positioning time exceeds 2 minutes, then the electronic device is considered to be in a moving state.
步骤S27:在无法获取GPS位置数据的情况下,输出第四提示消息。Step S27: In the case that the GPS location data cannot be obtained, a fourth prompt message is output.
在一种情况下,定位请求从发起到释放期间,即定位结束时,都没有GPS位置数据上报,无法获取移动状态下的速度值,则直接输出第四提示消息。In one case, during the period from the initiation of the positioning request to the release, that is, at the end of the positioning, no GPS position data is reported, and the speed value in the moving state cannot be obtained, and the fourth prompt message is directly output.
或者,步骤S28:在最大速度值小于速度阈值、且卫星信号值的平均值小于第二阈值的情况下,输出第四提示信息。Alternatively, step S28: when the maximum speed value is less than the speed threshold value and the average value of the satellite signal value is less than the second threshold value, the fourth prompt information is output.
在另一种情况下,定位请求从发起到释放期间,即定位结束时,如果有GPS位置数据上报,则统计GPS位置数据中的最大速度值。其中,GPS位置数据中除了经纬度等数据外, 还有同时计算出的WGS-84高度、速度等数据。如果定位结束后得到的最大速度值小于速度阈值,则判断为用户在步行或低速运动,则进一步判断卫星信号值的平均值是否小于第二阈值,如果是,则输出第四提示消息。In another case, during the period from the initiation of the positioning request to the release, that is, when the positioning ends, if there is GPS position data reported, the maximum speed value in the GPS position data will be counted. Among them, in addition to the latitude and longitude data in the GPS location data, there are also data such as the height and speed of the WGS-84 calculated at the same time. If the maximum speed value obtained after the positioning is completed is less than the speed threshold value, it is determined that the user is walking or moving at a low speed, and then it is further determined whether the average value of the satellite signal value is less than the second threshold value, and if so, a fourth prompt message is output.
或者,步骤S29:在最大速度值大于或者等于速度阈值、且卫星信号值的平均值小于第三阈值的情况下,输出第四提示消息。Alternatively, step S29: when the maximum speed value is greater than or equal to the speed threshold value and the average value of the satellite signal value is less than the third threshold value, a fourth prompt message is output.
在另一种情况下,定位请求从发起到释放期间,即定位结束时,如果有GPS位置数据上报,则统计GPS位置数据中的最大速度值。如果定位结束后得到的最大速度值大于或者等于速度阈值,则判断为用户处于乘车运动,如乘坐高铁等,则进一步判断卫星信号值的平均值是否小于第三阈值,如果是,则输出第四提示消息。In another case, during the period from the initiation of the positioning request to the release, that is, when the positioning ends, if there is GPS position data reported, the maximum speed value in the GPS position data will be counted. If the maximum speed value obtained after the positioning is greater than or equal to the speed threshold, it is determined that the user is in a car movement, such as taking a high-speed rail, etc., then it is further determined whether the average value of the satellite signal value is less than the third threshold, and if so, the output Four prompt messages.
其中,第四提示消息至少用于提示排除室外环境遮挡因素或电子设备装饰物遮挡因素。Wherein, the fourth prompt message is at least used to prompt to exclude the outdoor environment occlusion factor or the occlusion factor of the electronic device decoration.
优选地,第四提示消息的内容包括“请协助确认是否使用金属或磁性保护套,或窗边等有遮挡的弱信号环境”。Preferably, the content of the fourth prompt message includes "Please assist in confirming whether to use a metal or magnetic protective cover, or a weak signal environment that is blocked by a window, etc.".
可见,在排除一系列数据导致定位异常现象后,根据电子设备处于移动状态,确定用户处于无遮挡的室外环境中,但卫星信号值偏低,则进一步分析导致定位异常的原因。其中,考虑到电子设备处于移动状态下,相比于静止状态时,卫星信号值要低一些,而在乘车时,有车的遮挡,卫星信号值会比在车外要低一些,所以又设定了适用于车外步行、跑步或骑行的卫星信号最小值,即第二阈值,以及适用于车内的卫星信号最小值,即第三阈值,且第一阈值大于第二阈值,第二阈值大于第三阈值,从而针对不同的情况,分别考虑不同范围的卫星信号值造成定位异常的情况,并建议用户检查电子设备的装饰物,以及室外遮挡物。It can be seen that after excluding a series of data leading to abnormal positioning, according to the mobile state of the electronic device, it is determined that the user is in an unobstructed outdoor environment, but the satellite signal value is low, and the cause of the abnormal positioning is further analyzed. Among them, considering that the electronic equipment is in a mobile state, the satellite signal value is lower than when it is in a stationary state, and when riding in a car, the satellite signal value will be lower than that outside the car. Set the minimum value of the satellite signal suitable for walking, running or cycling outside the car, namely the second threshold, and the minimum value of the satellite signal suitable for the inside of the car, namely the third threshold, and the first threshold is greater than the second threshold, the first The second threshold is greater than the third threshold. Therefore, for different situations, different ranges of satellite signal values cause positioning abnormalities to be considered respectively, and users are advised to check the decorations of the electronic equipment and outdoor obstructions.
在图1所示实施例的基础上,图5示出了本发明另一个实施例的定位提示方法的流程图,步骤S2包括:On the basis of the embodiment shown in FIG. 1, FIG. 5 shows a flowchart of a positioning prompt method according to another embodiment of the present invention. Step S2 includes:
步骤S210:在连续预设次数的定位请求中,在与定位请求关联的目标数据均为异常数据的情况下,输出提示消息。Step S210: In the positioning request for a preset number of consecutive times, when the target data associated with the positioning request are all abnormal data, a prompt message is output.
在本实施例中,为了提高检测定位异常原因的准确性,可连续在多次定位请求中进行检测,以根据多次检测结果,输出提示消息。In this embodiment, in order to improve the accuracy of detecting the cause of abnormal positioning, the detection may be performed continuously in multiple positioning requests, so as to output a prompt message based on the multiple detection results.
本实施例与图4所示的实施例相结合,在一次定位请求中,若符合步骤S27~步骤S29中任一项中的预设条件,则将统计定位异常的次数的值count值加1。进一步地,若在连续三次的定位中,定位异常的次数的值count值均加1,则输出第四提示消息。This embodiment is combined with the embodiment shown in FIG. 4, in a positioning request, if the preset condition in any one of steps S27 to S29 is met, the count value of the number of times of statistical positioning abnormalities is increased by 1. . Further, if the count value of the number of abnormal positioning times is increased by 1, in the three consecutive positioning, the fourth prompt message is output.
其中,一次定位请求可看作一次定位,在上述结合的实施例中,电子设备的移动距离大于500米,且定位时间超过2分钟看作是一次定位。Wherein, one positioning request may be regarded as one positioning. In the above-mentioned combined embodiment, the moving distance of the electronic device is greater than 500 meters and the positioning time exceeds 2 minutes as one positioning.
优选地,提示消息还可包括多种选项,以满足给用户多种需求。例如,用户可点击“知道了”的选项,则提示消息可自动隐藏至通知栏,用户可随时在通知栏中查看提示消息;又如,用户可点击“查看帮助”的选项,从而跳转进入到有详细说明、或售后点推荐等内容的界面;又如,用户可点击“不再提示”的选项,则提示消息自动隐藏。Preferably, the prompt message may also include multiple options to meet multiple needs for the user. For example, the user can click the option "I know", the prompt message can be automatically hidden in the notification bar, and the user can view the prompt message in the notification bar at any time; for another example, the user can click the option "View Help" to jump into Go to the interface with detailed instructions, or after-sales recommendations, etc.; for another example, the user can click the "Don't prompt again" option, and the prompt message will be automatically hidden.
综上,现有技术中,仅有应用根据是否成功获取到GPS位置数据给出提示,提示内容一般为“GPS信号弱”或“正在定位”。不难看出,应用单一的提示对用户复杂的使用场景来说是没有多大帮助的,不能帮助用户分场景地排查问题原因,对于不了解GPS定位原理的用户来说还会产生误导。In summary, in the prior art, only the application gives a prompt based on whether the GPS location data is successfully obtained, and the prompt content is generally "GPS signal weak" or "positioning". It is not difficult to see that the application of a single prompt is not very helpful to users in complex usage scenarios. It cannot help users to troubleshoot the cause of the problem by scenario, and it will also be misleading for users who do not understand the principle of GPS positioning.
本发明和现有的方案相比,从系统层面,结合底层定位模块,增加了对不同场景造成信号弱的检测提示,利用电子设备内监听系统内的网络位置数据、卫星状态数据、网络状态数据和GPS位置数据等判断GPS信号弱或信号异常原因的方法,并通过提示、消息或通知等方式给用户给出操作指导。可见,从系统定位层面,对GPS定位未正常上报的原因进行了分场景的判断和提示,给用户提供了排查异常和恢复正常定位的方法。Compared with the existing solutions, the present invention adds detection prompts for weak signals caused by different scenarios from the system level, combined with the underlying positioning module, and utilizes the network position data, satellite status data, and network status data in the monitoring system in the electronic device. Use GPS location data and other methods to determine the cause of GPS signal weakness or signal abnormality, and provide users with operating instructions through prompts, messages, or notifications. It can be seen that from the system positioning level, the reasons for the failure of GPS positioning to be reported are judged and prompted by scenes, providing users with methods to troubleshoot abnormalities and restore normal positioning.
图6示出了本发明另一个实施例的电子设备的框图,包括:Fig. 6 shows a block diagram of an electronic device according to another embodiment of the present invention, including:
数据获取模块10,用于在电子设备发起定位请求的情况下,获取与定位请求关联的数据;其中,与定位请求关联的数据包括网络状态数据、辅助定位数据、GPS位置数据、网络位置数据和卫星状态数据;The data acquisition module 10 is used to acquire data associated with the positioning request when the electronic device initiates a positioning request; wherein the data associated with the positioning request includes network status data, auxiliary positioning data, GPS position data, network position data, and Satellite status data;
提示输出模块20,用于在与定位请求关联的目标数据为异常数据的情况下,输出提示消息;其中,提示消息的内容包括用于恢复目标数据为正常数据的操作信息。The prompt output module 20 is configured to output a prompt message when the target data associated with the positioning request is abnormal data; wherein the content of the prompt message includes operation information for restoring the target data to normal data.
这样,在本发明实施例中,在电子设备发起定位请求的情况下,电子设备内部可在持续的定位请求中监听并获取网络位置数据、卫星状态数据、网络状态数据、GPS位置数据、 辅助定位数据等与定位请求关联的一项数据或者多项数据。进一步地,针对获取的关联数据进行异常检测,在检测到其中的目标数据为异常数据的情况下,判定出现定位异常现象,从而根据出现异常的目标数据,输出提示消息,提示消息的内容包括用于恢复目标数据为正常数据的操作信息,进而用户可根据提示消息中的内容,尽快解决定位异常问题。可见,本实施例能够尽快帮助用户排查出是因目标数据异常导致定位异常的,并及时提供给用户解决定位异常的操作方法,使得用户能够针对性地操作,操作快捷,从而帮助用户快速恢复设备GPS定位的正常功能,提高用户解决定位异常的效率。In this way, in the embodiment of the present invention, when the electronic device initiates a positioning request, the internal electronic device can monitor and obtain network position data, satellite status data, network status data, GPS position data, and assisted positioning in the continuous positioning request. A piece of data or multiple pieces of data associated with a positioning request, such as data. Further, anomaly detection is performed on the acquired associated data, and when the target data is detected as anomalous data, it is determined that a positioning abnormality occurs, and a prompt message is output based on the abnormal target data. The content of the prompt message includes In order to restore the operation information that the target data is normal data, the user can solve the abnormal location problem as soon as possible according to the content in the prompt message. It can be seen that this embodiment can help the user find out the abnormal positioning caused by the abnormal target data as soon as possible, and provide the user with an operation method to solve the abnormal positioning in a timely manner, so that the user can operate in a targeted manner and operate quickly, thereby helping the user to quickly restore the device The normal function of GPS positioning improves the efficiency of users in solving abnormal positioning.
优选地,提示输出模块20包括:Preferably, the prompt output module 20 includes:
第一输出单元,用于在网络状态数据、辅助定位数据和GPS位置数据均为异常数据的情况下,输出第一提示消息;The first output unit is configured to output a first prompt message when the network status data, auxiliary positioning data, and GPS position data are all abnormal data;
其中,第一提示消息至少用于提示连接网络。Wherein, the first prompt message is at least used to prompt to connect to the network.
优选地,提示输出模块20包括:Preferably, the prompt output module 20 includes:
检测单元,用于在网络状态数据和辅助定位数据中至少有一项为正常数据、且GPS位置数据为异常数据的情况下,检测信号干扰;The detection unit is used to detect signal interference when at least one of the network status data and the auxiliary positioning data is normal data and the GPS location data is abnormal data;
第二输出单元,用于在检测到信号干扰的情况下,输出第二提示消息;The second output unit is configured to output a second prompt message when signal interference is detected;
其中,第二提示消息至少用于提示排除设备外部干扰信号或设备内部干扰信号。Wherein, the second prompt message is at least used to prompt to eliminate interference signals external to the device or interference signals internal to the device.
优选地,提示输出模块20还包括:Preferably, the prompt output module 20 further includes:
信号值获取单元,用于在未检测到信号干扰的情况下,根据卫星状态数据获取卫星信号值;The signal value acquisition unit is used to acquire the satellite signal value according to the satellite state data when no signal interference is detected;
第三输出单元,用于在卫星信号值全部为零的情况下,输出第三提示消息;其中,第三提示信息至少用于提示排除室内环境遮挡因素或硬件损坏因素;The third output unit is configured to output a third prompt message when the satellite signal values are all zero; wherein, the third prompt information is used to at least prompt the elimination of indoor environment occlusion factors or hardware damage factors;
速度值获取单元,用于在卫星信号值的平均值大于零且小于第一阈值、且电子设备处于移动状态的情况下,根据GPS位置数据获取电子设备的最大速度值;The speed value acquisition unit is configured to acquire the maximum speed value of the electronic device according to GPS position data when the average value of the satellite signal value is greater than zero and less than the first threshold, and the electronic device is in a moving state;
第四输出单元,用于在无法获取GPS位置数据的情况下,输出第四提示消息;The fourth output unit is used to output a fourth prompt message when the GPS location data cannot be obtained;
第五输出子单元,用于在最大速度值小于速度阈值、且卫星信号值的平均值小于第二 阈值的情况下,输出第四提示信息;The fifth output subunit is used for outputting the fourth prompt message when the maximum speed value is less than the speed threshold value and the average value of the satellite signal value is less than the second threshold value;
第六输出单元,用于在最大速度值大于或者等于速度阈值、且卫星信号值的平均值小于第三阈值的情况下,输出第四提示消息;The sixth output unit is configured to output a fourth prompt message when the maximum speed value is greater than or equal to the speed threshold value and the average value of the satellite signal value is less than the third threshold value;
其中,第四提示消息至少用于提示排除电子设备装饰物遮挡因素;Wherein, the fourth prompt message is used at least to prompt to exclude the occlusion factor of the electronic device decoration;
且第一阈值大于第二阈值,第二阈值大于第三阈值。And the first threshold is greater than the second threshold, and the second threshold is greater than the third threshold.
优选地,提示输出模块20包括:Preferably, the prompt output module 20 includes:
第七输出单元,用于在连续预设次数的定位请求中,在与定位请求关联的目标数据均为异常数据的情况下,输出提示消息。The seventh output unit is configured to output a prompt message when the target data associated with the positioning request are all abnormal data in the positioning request for a preset number of consecutive times.
本发明实施例提供的电子设备能够实现图1至图5的方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of FIGS. 1 to 5, and to avoid repetition, details are not described herein again.
图7为实现本发明各个实施例的一种电子设备的硬件结构示意图,该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、以及计步器等。7 is a schematic diagram of the hardware structure of an electronic device implementing various embodiments of the present invention. The electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 7 does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout. In the embodiments of the present invention, electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, in-vehicle electronic devices, wearable devices, and pedometers.
其中,处理器110,用于在电子设备发起定位请求的情况下,获取与定位请求关联的数据;其中,与定位请求关联的数据包括网络状态数据、辅助定位数据、GPS位置数据、网络位置数据和卫星状态数据;在与定位请求关联的目标数据为异常数据的情况下,输出提示消息;其中,提示消息的内容包括用于恢复目标数据为正常数据的操作信息。The processor 110 is configured to obtain data associated with the positioning request when the electronic device initiates a positioning request; wherein the data associated with the positioning request includes network status data, auxiliary positioning data, GPS location data, and network location data And satellite status data; when the target data associated with the positioning request is abnormal data, a prompt message is output; wherein the content of the prompt message includes operation information for restoring the target data to normal data.
这样,在本发明实施例中,在电子设备发起定位请求的情况下,电子设备内部可在持续的定位请求中监听并获取网络位置数据、卫星状态数据、网络状态数据、GPS位置数据、辅助定位数据等与定位请求关联的一项数据或者多项数据。进一步地,针对获取的关联数据进行异常检测,在检测到其中的目标数据为异常数据的情况下,判定出现定位异常现象,从而根据出现异常的目标数据,输出提示消息,提示消息的内容包括用于恢复目标数据为 正常数据的操作信息,进而用户可根据提示消息中的内容,尽快解决定位异常问题。可见,本实施例能够尽快帮助用户排查出是因目标数据异常导致定位异常的,并及时提供给用户解决定位异常的操作方法,使得用户能够针对性地操作,操作快捷,从而帮助用户快速恢复设备GPS定位的正常功能,提高用户解决定位异常的效率。In this way, in the embodiment of the present invention, when the electronic device initiates a positioning request, the internal electronic device can monitor and obtain network position data, satellite status data, network status data, GPS position data, and assisted positioning in the continuous positioning request. A piece of data or multiple pieces of data associated with a positioning request, such as data. Further, anomaly detection is performed on the acquired associated data, and when the target data is detected as anomalous data, it is determined that a positioning abnormality occurs, and a prompt message is output based on the abnormal target data. The content of the prompt message includes In order to restore the target data as normal data, the user can solve the abnormal location problem as soon as possible according to the content in the prompt message. It can be seen that this embodiment can help the user find out the abnormal positioning caused by the abnormal target data as soon as possible, and provide the user with an operation method to solve the abnormal positioning in a timely manner, so that the user can operate in a targeted manner and operate quickly, thereby helping the user to quickly restore the device The normal function of GPS positioning improves the efficiency of users in solving abnormal positioning.
应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station. Generally, the radio frequency unit 101 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 101 can also communicate with the network and other devices through a wireless communication system.
电子设备通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与电子设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。The audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。The input unit 104 is used to receive audio or video signals. The input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102. The microphone 1042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
电子设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在电子设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上 (一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 100 further includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light. The proximity sensor can close the display panel 1061 and the display panel 1061 when the electronic device 100 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer posture calibration), vibration recognition related functions (such as pedometer, tap), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元107可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071, also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating). The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed. In addition, the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图7中,触控面板1071与显示面板1061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 1071 can be overlaid on the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch. The type of event provides corresponding visual output on the display panel 1061. Although in FIG. 7, the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.
接口单元108为外部装置与电子设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端 口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备100内的一个或多个元件或者可以用于在电子设备100和外部装置之间传输数据。The interface unit 108 is an interface for connecting an external device with the electronic device 100. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 100 or can be used to connect to the electronic device 100 and the external device. Transfer data between devices.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器110是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器110可包括一个或多个处理单元;优选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
电子设备100还可以包括给各个部件供电的电源111(比如电池),优选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components. Preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
另外,电子设备100包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 100 includes some functional modules not shown, which will not be repeated here.
优选的,本发明实施例还提供一种电子设备,包括处理器110,存储器109,存储在存储器109上并可在所述处理器110上运行的计算机程序,该计算机程序被处理器110执行时实现上述定位提示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides an electronic device, including a processor 110, a memory 109, a computer program stored on the memory 109 and capable of running on the processor 110, and when the computer program is executed by the processor 110 Each process of the foregoing positioning prompt method embodiment is realized, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述定位提示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只 读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned positioning prompt method embodiment is realized, and the same technology can be achieved. The effect, in order to avoid repetition, will not be repeated here. Among them, the computer-readable storage medium, such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk, or optical disk, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above implementation manners, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention are described above with reference to the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of the present invention, many forms can be made without departing from the purpose of the present invention and the scope of protection of the claims, and they all fall within the protection of the present invention.

Claims (16)

  1. 一种定位提示方法,应用于电子设备,包括:A positioning prompt method applied to electronic equipment, including:
    在所述电子设备发起定位请求的情况下,获取与所述定位请求关联的数据;其中,与所述定位请求关联的数据包括网络状态数据、辅助定位数据、GPS位置数据、网络位置数据和卫星状态数据;When the electronic device initiates a positioning request, acquire data associated with the positioning request; wherein the data associated with the positioning request includes network status data, assisted positioning data, GPS position data, network position data, and satellites Status data
    在与所述定位请求关联的目标数据为异常数据的情况下,输出提示消息;其中,所述提示消息的内容包括用于恢复所述目标数据为正常数据的操作信息。When the target data associated with the positioning request is abnormal data, a prompt message is output; wherein the content of the prompt message includes operation information for restoring the target data to normal data.
  2. 根据权利要求1所述的方法,其中,所述在与所述定位请求关联的目标数据为异常数据的情况下,输出提示消息,包括:The method according to claim 1, wherein said outputting a prompt message when the target data associated with the positioning request is abnormal data comprises:
    在所述网络状态数据、所述辅助定位数据和所述GPS位置数据均为异常数据的情况下,输出第一提示消息;Output a first prompt message when the network status data, the auxiliary positioning data, and the GPS position data are all abnormal data;
    其中,所述第一提示消息至少用于提示连接网络。Wherein, the first prompt message is at least used for prompting to connect to the network.
  3. 根据权利要求1所述的方法,其中,所述在与所述定位请求关联的目标数据为异常数据的情况下,输出提示消息,包括:The method according to claim 1, wherein said outputting a prompt message when the target data associated with the positioning request is abnormal data comprises:
    在所述网络状态数据和所述辅助定位数据中至少有一项为正常数据、且所述GPS位置数据为异常数据的情况下,检测信号干扰;In a case where at least one of the network status data and the auxiliary positioning data is normal data, and the GPS location data is abnormal data, detecting signal interference;
    在检测到信号干扰的情况下,输出第二提示消息;In the case of detecting signal interference, output a second prompt message;
    其中,所述第二提示消息至少用于提示排除设备外部干扰信号或设备内部干扰信号。Wherein, the second prompt message is at least used to prompt to eliminate interference signals external to the device or interference signals internal to the device.
  4. 根据权利要求3所述的方法,其中,所述在所述网络状态数据和所述辅助定位数据中至少有一项为正常数据、且所述GPS位置数据为异常数据的情况下,检测信号干扰之后,还包括:The method according to claim 3, wherein, when at least one of the network status data and the auxiliary positioning data is normal data, and the GPS position data is abnormal data, after detecting signal interference ,Also includes:
    在未检测到信号干扰的情况下,根据所述卫星状态数据获取卫星信号值;In the case that no signal interference is detected, obtaining a satellite signal value according to the satellite state data;
    在所述卫星信号值全部为零的情况下,输出第三提示消息;其中,所述第三提示信息至少用于提示排除室内环境遮挡因素或硬件损坏因素;When the satellite signal values are all zero, output a third prompt message; wherein, the third prompt information is used to at least prompt the elimination of indoor environment occlusion factors or hardware damage factors;
    在所述卫星信号值的平均值大于零且小于第一阈值、且所述电子设备处于移动状态的情况下,根据所述GPS位置数据获取所述电子设备的最大速度值;In a case where the average value of the satellite signal value is greater than zero and less than the first threshold, and the electronic device is in a moving state, acquiring the maximum speed value of the electronic device according to the GPS position data;
    在无法获取所述GPS位置数据的情况下,输出第四提示消息;或者,If the GPS location data cannot be obtained, output a fourth prompt message; or,
    在所述最大速度值小于速度阈值、且所述卫星信号值的平均值小于第二阈值的情况下,输出第四提示信息;或者,When the maximum speed value is less than the speed threshold value and the average value of the satellite signal value is less than the second threshold value, output fourth prompt information; or,
    在所述最大速度值大于或者等于所述速度阈值、且所述卫星信号值的平均值小于第三阈值的情况下,输出第四提示消息;In a case where the maximum speed value is greater than or equal to the speed threshold value, and the average value of the satellite signal value is less than the third threshold value, output a fourth prompt message;
    其中,所述第四提示消息至少用于提示排除室外环境遮挡因素或电子设备装饰物遮挡因素;Wherein, the fourth prompt message is at least used to prompt to exclude the outdoor environment occlusion factor or the occlusion factor of the electronic device decoration;
    且所述第一阈值大于所述第二阈值,所述第二阈值大于所述第三阈值。And the first threshold is greater than the second threshold, and the second threshold is greater than the third threshold.
  5. 根据权利要求3所述的方法,其中,所述在检测到信号干扰的情况下,输出第二提示消息,包括:The method according to claim 3, wherein said outputting a second prompt message when signal interference is detected comprises:
    在检测到信号干扰、且多次定位记录中的部分定位记录存在信号干扰的情况下,输出第二提示消息,所述第二提示消息至少用于提示排除设备外部干扰信号;When signal interference is detected and signal interference exists in part of the positioning records in the multiple positioning records, outputting a second prompt message, where the second prompt message is at least used to prompt to eliminate the external interference signal of the device;
    或者,or,
    在检测到信号干扰、且多次定位记录中的所有定位记录存在信号干扰的情况下,输出第二提示消息,所述第二提示消息至少用于提示排除设备内部干扰信号。When signal interference is detected and signal interference exists in all the positioning records in the multiple positioning records, a second prompt message is output, and the second prompt message is at least used for prompting to eliminate the interference signal inside the device.
  6. 根据权利要求1所述的方法,其中,所述在与所述定位请求关联的目标数据为异常数据的情况下,输出提示消息,包括:The method according to claim 1, wherein said outputting a prompt message when the target data associated with the positioning request is abnormal data comprises:
    在连续预设次数的定位请求中,在与所述定位请求关联的目标数据均为异常数据的情况下,输出提示消息。In the positioning request for a preset number of consecutive times, in the case where the target data associated with the positioning request are all abnormal data, a prompt message is output.
  7. 一种电子设备,包括:An electronic device including:
    数据获取模块,用于在所述电子设备发起定位请求的情况下,获取与所述定位请求关联的数据;其中,与所述定位请求关联的数据包括网络状态数据、辅助定位数据、GPS位置数据、网络位置数据和卫星状态数据;A data acquisition module for acquiring data associated with the positioning request when the electronic device initiates a positioning request; wherein the data associated with the positioning request includes network status data, assisted positioning data, and GPS position data , Network location data and satellite status data;
    提示输出模块,用于在与所述定位请求关联的目标数据为异常数据的情况下,输出提示消息;其中,所述提示消息的内容包括用于恢复所述目标数据为正常数据的操作信息。The prompt output module is configured to output a prompt message when the target data associated with the positioning request is abnormal data; wherein the content of the prompt message includes operation information for restoring the target data to normal data.
  8. 根据权利要求7所述的电子设备,其中,所述提示输出模块包括:The electronic device according to claim 7, wherein the prompt output module comprises:
    第一输出单元,用于在所述网络状态数据、所述辅助定位数据和所述GPS位置数据均为异常数据的情况下,输出第一提示消息;The first output unit is configured to output a first prompt message when the network status data, the auxiliary positioning data, and the GPS location data are all abnormal data;
    其中,所述第一提示消息至少用于提示连接网络。Wherein, the first prompt message is at least used for prompting to connect to the network.
  9. 根据权利要求7所述的电子设备,其中,所述提示输出模块包括:The electronic device according to claim 7, wherein the prompt output module comprises:
    检测单元,用于在所述网络状态数据和所述辅助定位数据中至少有一项为正常数据、且所述GPS位置数据为异常数据的情况下,检测信号干扰;The detection unit is configured to detect signal interference when at least one of the network status data and the auxiliary positioning data is normal data, and the GPS location data is abnormal data;
    第二输出单元,用于在检测到信号干扰的情况下,输出第二提示消息;The second output unit is configured to output a second prompt message when signal interference is detected;
    其中,所述第二提示消息至少用于提示排除设备外部干扰信号或设备内部干扰信号。Wherein, the second prompt message is at least used to prompt to eliminate interference signals external to the device or interference signals internal to the device.
  10. 根据权利要求9所述的电子设备,其中,所述提示输出模块还包括:The electronic device according to claim 9, wherein the prompt output module further comprises:
    信号值获取单元,用于在未检测到信号干扰的情况下,根据所述卫星状态数据获取卫星信号值;A signal value acquisition unit, configured to acquire a satellite signal value according to the satellite state data when no signal interference is detected;
    第三输出单元,用于在所述卫星信号值全部为零的情况下,输出第三提示消息;其中,所述第三提示信息至少用于提示排除室内环境遮挡因素或硬件损坏因素;The third output unit is configured to output a third prompt message when the satellite signal values are all zero; wherein the third prompt information is used to at least prompt the elimination of indoor environment occlusion factors or hardware damage factors;
    速度值获取单元,用于在所述卫星信号值的平均值大于零且小于第一阈值、且所述电子设备处于移动状态的情况下,根据所述GPS位置数据获取所述电子设备的最大速度值;The speed value acquiring unit is configured to acquire the maximum speed of the electronic device according to the GPS position data when the average value of the satellite signal value is greater than zero and less than the first threshold, and the electronic device is in a moving state value;
    第四输出单元,用于在无法获取所述GPS位置数据的情况下,输出第四提示消息;The fourth output unit is configured to output a fourth prompt message when the GPS location data cannot be obtained;
    第五输出子单元,用于在所述最大速度值小于速度阈值、且所述卫星信号值的平均值小于第二阈值的情况下,输出第四提示信息;The fifth output subunit is configured to output fourth prompt information when the maximum speed value is less than the speed threshold value and the average value of the satellite signal value is less than the second threshold value;
    第六输出单元,用于在所述最大速度值大于或者等于所述速度阈值、且所述卫星信号值的平均值小于第三阈值的情况下,输出第四提示消息;The sixth output unit is configured to output a fourth prompt message when the maximum speed value is greater than or equal to the speed threshold value and the average value of the satellite signal value is less than the third threshold value;
    其中,所述第四提示消息至少用于提示排除室外环境遮挡因素或电子设备装饰物遮挡因素;Wherein, the fourth prompt message is at least used to prompt to exclude the outdoor environment occlusion factor or the occlusion factor of the electronic device decoration;
    且所述第一阈值大于所述第二阈值,所述第二阈值大于所述第三阈值。And the first threshold is greater than the second threshold, and the second threshold is greater than the third threshold.
  11. 根据权利要求9所述的电子设备,其中,所述提示输出模块包括:The electronic device according to claim 9, wherein the prompt output module comprises:
    第八输出单元,用于在检测到信号干扰、且多次定位记录中的部分定位记录存在 信号干扰的情况下,输出第二提示消息,所述第二提示消息至少用于提示排除设备外部干扰信号;或者,在检测到信号干扰、且多次定位记录中的所有定位记录存在信号干扰的情况下,输出第二提示消息,所述第二提示消息至少用于提示排除设备内部干扰信号。The eighth output unit is configured to output a second prompt message when signal interference is detected and signal interference exists in part of the positioning records in multiple positioning records, and the second prompt message is at least used to prompt to eliminate external interference from the device Signal; or, in the case where signal interference is detected and all positioning records in multiple positioning records have signal interference, a second prompt message is output, the second prompt message is at least used to prompt the elimination of internal interference signals of the device.
  12. 根据权利要求7所述的电子设备,其中,所述提示输出模块包括:The electronic device according to claim 7, wherein the prompt output module comprises:
    第七输出单元,用于在连续预设次数的定位请求中,在与所述定位请求关联的目标数据均为异常数据的情况下,输出提示消息。The seventh output unit is configured to output a prompt message when the target data associated with the positioning request is abnormal data in the positioning request for a preset number of consecutive times.
  13. 一种电子设备,包括处理器,存储器,存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6中任一项所述的定位提示方法的步骤。An electronic device, comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program being executed by the processor to implement any of claims 1 to 6 The steps of the positioning prompt method described in one item.
  14. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至6中任一项所述的定位提示方法的步骤。A readable storage medium storing a program or instruction on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the positioning prompt method according to any one of claims 1 to 6 are realized.
  15. 一种计算机程序产品,所述程序产品被至少一个处理器执行以实现如权利要求1至6中任一项所述的定位提示方法。A computer program product, which is executed by at least one processor to implement the positioning prompt method according to any one of claims 1 to 6.
  16. 一种电子设备,包括所述电子设备被配置成用于执行如权利要求1至6中任一项所述的定位提示方法。An electronic device, comprising the electronic device configured to execute the positioning prompt method according to any one of claims 1 to 6.
PCT/CN2020/140208 2019-12-30 2020-12-28 Positioning prompting method and electronic device WO2021136189A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911405858.5A CN111103607B (en) 2019-12-30 2019-12-30 Positioning prompting method and electronic equipment
CN201911405858.5 2019-12-30

Publications (1)

Publication Number Publication Date
WO2021136189A1 true WO2021136189A1 (en) 2021-07-08

Family

ID=70424718

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/140208 WO2021136189A1 (en) 2019-12-30 2020-12-28 Positioning prompting method and electronic device

Country Status (2)

Country Link
CN (1) CN111103607B (en)
WO (1) WO2021136189A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679215A (en) * 2022-05-30 2022-06-28 中移(上海)信息通信科技有限公司 Communication method, device and satellite convergence gateway

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111103607B (en) * 2019-12-30 2022-04-29 维沃移动通信有限公司 Positioning prompting method and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005241383A (en) * 2004-02-25 2005-09-08 Matsushita Electric Works Ltd Gps positioning device
CN102036165A (en) * 2010-12-16 2011-04-27 中兴通讯股份有限公司 Positioning method and user terminal supporting multiple positioning modes
CN102647663A (en) * 2012-04-11 2012-08-22 中兴通讯股份有限公司 Method for realizing prompt on basis of position and mobile terminal
CN103377094A (en) * 2012-04-12 2013-10-30 金蝶软件(中国)有限公司 Abnormity monitoring method and abnormity monitoring device
CN106908821A (en) * 2017-02-28 2017-06-30 北京交通大学 A kind of indoor and outdoor seamless positioning changing method
CN107655474A (en) * 2017-10-11 2018-02-02 上海展扬通信技术有限公司 A kind of air navigation aid and navigation system based on intelligent terminal
CN111103607A (en) * 2019-12-30 2020-05-05 维沃移动通信有限公司 Positioning prompting method and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103335662A (en) * 2013-05-20 2013-10-02 江苏新科软件有限公司 Vehicle-mounted navigation device and fault diagnosis method thereof
CN104320792B (en) * 2014-07-15 2017-12-01 奉化波导软件有限公司 A kind of processing method after communication equipment GPRS network exception
CN105682197A (en) * 2016-01-13 2016-06-15 广东欧珀移动通信有限公司 Network positioning process control method and device and mobile terminal
JP2019052977A (en) * 2017-09-15 2019-04-04 株式会社東芝 Automatic fault diagnosing system of dvor device, automatic fault diagnosing system of dme device, automatic fault diagnosing system of ils device, automatic fault diagnosing method of dvor device
CN109839649A (en) * 2019-03-25 2019-06-04 吉旗(成都)科技有限公司 A kind of Intelligent drainage checking method of the GPS device delocalization for portion's mark protocol devices
CN109932733A (en) * 2019-03-28 2019-06-25 北京汇通天下物联科技有限公司 A kind of Intelligent drainage checking method of the GPS device delocalization for non-portion mark protocol devices

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005241383A (en) * 2004-02-25 2005-09-08 Matsushita Electric Works Ltd Gps positioning device
CN102036165A (en) * 2010-12-16 2011-04-27 中兴通讯股份有限公司 Positioning method and user terminal supporting multiple positioning modes
CN102647663A (en) * 2012-04-11 2012-08-22 中兴通讯股份有限公司 Method for realizing prompt on basis of position and mobile terminal
CN103377094A (en) * 2012-04-12 2013-10-30 金蝶软件(中国)有限公司 Abnormity monitoring method and abnormity monitoring device
CN106908821A (en) * 2017-02-28 2017-06-30 北京交通大学 A kind of indoor and outdoor seamless positioning changing method
CN107655474A (en) * 2017-10-11 2018-02-02 上海展扬通信技术有限公司 A kind of air navigation aid and navigation system based on intelligent terminal
CN111103607A (en) * 2019-12-30 2020-05-05 维沃移动通信有限公司 Positioning prompting method and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679215A (en) * 2022-05-30 2022-06-28 中移(上海)信息通信科技有限公司 Communication method, device and satellite convergence gateway

Also Published As

Publication number Publication date
CN111103607A (en) 2020-05-05
CN111103607B (en) 2022-04-29

Similar Documents

Publication Publication Date Title
WO2021017763A1 (en) Transaction processing method, terminal device, and computer-readable storage medium
WO2019080775A1 (en) Notification message prompting method and mobile terminal
WO2019206077A1 (en) Video call processing method and mobile terminal
CN108573189B (en) Method and device for acquiring queuing information
WO2021136189A1 (en) Positioning prompting method and electronic device
CN108919883A (en) A kind of camera head protecting method and mobile terminal
WO2021098676A1 (en) Control method and electronic device
CN109309761B (en) Emergency call method, mobile terminal and computer readable storage medium
CN108022446A (en) A kind of parking spot acquisition methods, mobile terminal
WO2021027466A1 (en) Positioning method and terminal device
CN108551525B (en) State determination method of movement track and mobile terminal
CN108051010A (en) Determine the method and mobile terminal of the time arrived at
CN108429856A (en) A kind of location information acquisition methods and mobile terminal
CN108063869B (en) Safety early warning method and mobile terminal
CN112566037A (en) Article tracking method, terminal and computer-readable storage medium
CN111427644B (en) Target behavior identification method and electronic equipment
CN110826115B (en) Management method, wearable device and electronic device
CN109474889B (en) Information transmission method, mobile terminal and server
CN109618278A (en) A kind of localization method and mobile terminal
CN110096863B (en) Alarm method and mobile terminal
WO2018227757A1 (en) Prompting method and vr device
CN108347692A (en) A kind of network connection based reminding method, device and mobile terminal
CN110795777B (en) Screen brightness adjusting method and mobile terminal
CN109040459B (en) Terminal device control method, terminal device and computer readable storage medium
CN110210197B (en) Screen sensitivity adjusting method and mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20910890

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20910890

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10/01/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20910890

Country of ref document: EP

Kind code of ref document: A1