Disclosure of Invention
The embodiment of the application provides an information recommendation method and device, which can improve the positioning precision of a terminal when a GPS signal is weak, so that more accurate travel information is provided for a user.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, an embodiment of the present application provides an information recommendation method, including: the method comprises the steps that a terminal detects the signal intensity of a preset subway public Wi-Fi network to obtain the signal intensity change condition of the subway public Wi-Fi network within T (T is more than 0); when the signal strength change condition of the subway public Wi-Fi network meets a preset rule of strong and weak, the terminal can prompt the user of the travel information associated with the first subway station (namely the subway station where the subway public Wi-Fi network is located).
Therefore, in the subway station with weak GPS signals, the terminal can still position the user according to the strength change of the Wi-Fi signals at the position of the terminal, the travel intention of the user at the subway station is identified, when the user has the travel intention, the terminal can recommend travel information related to the subway station for the user, the positioning precision of the terminal is improved when the GPS signals are weak, and accurate travel information matched with the travel intention is provided for the user. The power consumption of the mobile phone increased by starting the GPS positioning function can be reduced.
In one possible design method, a terminal stores a list of cell IDs around a first subway station; then, when the signal strength variation condition of the subway public Wi-Fi network meets a preset rule which is weakened by strength, the method further comprises the following steps: a terminal acquires a current cell ID of the terminal; the terminal determines that the current cell ID of the terminal is located in a cell ID list around the first subway station.
In one possible design method, when the signal strength variation condition of the subway public Wi-Fi network meets a preset rule of being weakened by strength, the method further comprises the following steps: the terminal acquires the motion state information of a user; and the terminal determines that the motion state of the user is the walking state or the motion state of the user is converted into the walking state from the riding state according to the motion state information.
In one possible design method, when the signal strength variation condition of the subway public Wi-Fi network meets a preset rule of being weakened by strength, the method further comprises the following steps: the terminal determines that the terminal executes the NFC card swiping event within the preset time by inquiring the recorded information of the NFC card swiping event.
In one possible design method, when the signal strength variation condition of the subway public Wi-Fi network meets a preset rule of being weakened by strength, the method further comprises the following steps: the terminal acquires current environmental sound through a microphone; and the terminal determines that the terminal is located in a public place according to the acquired environmental sound.
That is to say, the terminal can further confirm the travel intention of the user leaving the subway station through the auxiliary conditions, and the phenomenon that the terminal incorrectly confirms the travel intention of the user due to the instability of the WiFi signal of the target WiFi network is avoided, so that the accuracy of the terminal in determining the travel intention of the user is improved, and more accurate travel information is subsequently provided for the user.
In one possible design method, the signal strength variation of the subway public Wi-Fi network satisfies a preset rule of strong and weak, and the method includes: the signal intensity of the Wi-Fi is reduced to be lower than a preset signal intensity threshold value, and/or the attenuation rate of the signal of the Wi-Fi is larger than a preset rate threshold value.
In one possible design method, the travel information includes: the method comprises the steps of taking a first subway station as the starting place of transportation means information, and/or route information from the first subway station to a second position; the vehicle information comprises at least one item of quantity information, position information, reservation information and real-time bus information of target vehicles around the first subway station.
In one possible design method, before the terminal prompts the user with travel information associated with the first subway station, the method further includes: the terminal displays the prompt information of the travel information in a pull-down menu, a negative one-screen menu or a screen locking interface of the terminal, and the prompt information is used for prompting the user to check the travel information, so that the user can check the travel information recommended by the terminal for the user in time through the prompt information, and the travel efficiency is improved
In a second aspect, an embodiment of the present application provides an information recommendation method, including: the terminal detects the signal intensity of a target Wi-Fi network, so that the signal change condition of the target Wi-Fi network within T (T is greater than 0) time is obtained; when the signal strength change condition of the target Wi-Fi network meets a preset rule of strong and weak, the terminal prompts the user with travel information associated with a first position, wherein the first position is an area covered by the target Wi-Fi network.
Therefore, in a position with a weak GPS signal, the terminal can still position the user according to the strength change of the Wi-Fi signal at the position, identify the travel intention of the user at the position, and when the user has the travel intention, the terminal can recommend relevant travel information to the user by taking the position as a starting point, so that the positioning precision of the terminal is improved when the GPS signal is weak, and more accurate travel information matched with the travel intention is provided for the user. The power consumption of the mobile phone increased by starting the GPS positioning function can be reduced.
In one possible design method, before the terminal prompts the user with travel information associated with the current location, the method further includes: the method comprises the steps that a terminal obtains scene description data, and the scene description data are used for indicating an application scene where the terminal is located; the terminal determines that the scene description data meets a preset assistance condition, wherein the assistance condition is used for indicating that the user is ready to leave the first position.
For example, when the scene description data includes the current cell ID of the terminal, the auxiliary condition includes that the current cell ID of the terminal is one of preset target cell IDs, and the target cell ID is a cell ID around the first position; when the scene description data comprises the motion state of the user, the auxiliary condition comprises that the motion state of the user is a walking state, or the motion state of the user is converted from a riding state to a walking state; when the scene description data comprises an NFC card swiping event executed by the terminal, the auxiliary condition comprises that the NFC card swiping event executed by the terminal occurs in preset time; when the scene description data includes environment information of the terminal, the assistance condition includes the environment information for indicating that the terminal is located in a public place.
That is to say, the terminal can further confirm the travel intention of the user leaving the first position through the auxiliary conditions, and the phenomenon that the terminal incorrectly confirms the travel intention of the user due to unstable WiFi signals of the target WiFi network is avoided, so that the accuracy of the terminal in determining the travel intention of the user is improved, and more accurate travel information is subsequently provided for the user.
In one possible design method, the terminal stores the description information of the target Wi-Fi network in advance, wherein the description information of the target Wi-Fi network is input by a user in advance and/or downloaded by the terminal in advance.
For example, the description information of the target Wi-Fi network identifies an SSID for a service set of the target Wi-Fi network; at this time, before the terminal detects the signal strength of the target Wi-Fi network, the method further includes: the terminal detects N (N is more than 0) Wi-Fi networks covered at the first position; further, the terminal selects a Wi-Fi network identical to the pre-stored SSID from the N Wi-Fi networks as a target Wi-Fi network. Therefore, the user can be accurately positioned through the Wi-Fi device of the terminal, and the power consumption of the mobile phone is reduced.
In one possible design method, the signal strength variation of the target Wi-Fi network satisfies a preset rule of strong and weak, including: the signal strength of the target Wi-Fi is reduced below a preset signal strength threshold, and/or the attenuation rate of the signal of the target Wi-Fi is greater than a preset rate threshold.
In one possible design method, the travel information includes vehicle information with the first position as a starting point, and the vehicle information includes: at least one of quantity information, location information, reservation information of the target vehicles, and real-time bus information of a nearest target bus stop from the first location.
In one possible design method, when the signal strength variation of the target Wi-Fi network satisfies a preset rule of strong and weak, the method further includes: the terminal determines that the destination of the user trip is a second position; wherein the terminal prompts the user for travel information associated with the first location, including: the terminal prompts the user for a travel route from the first location to the second location.
In a possible design method, the terminal displays the prompt information of the travel information in a pull-down menu, a negative one-screen menu or a screen locking interface of the terminal, and the prompt information is used for prompting a user to check the travel information, so that the user can check the travel information recommended by the terminal for the user in time through the prompt information, and the travel efficiency is improved.
In a third aspect, an embodiment of the present application provides a terminal, including: a detection unit to: detecting the signal intensity of a preset subway public Wi-Fi network to obtain the signal intensity change condition of the subway public Wi-Fi network within T time, wherein T is more than 0; a display unit for: and when the signal intensity change condition of the subway public Wi-Fi network meets a preset rule of strong weakness, prompting the user of travel information associated with a first subway station, wherein the first subway station is the detected subway station where the subway public Wi-Fi network is located.
In one possible design method, the terminal further includes: an acquisition unit configured to: acquiring the current cell ID of the terminal; a determination unit configured to: and determining that the current cell ID of the terminal is located in a cell ID list around the first subway station, wherein the cell ID list around the first subway station is stored in the terminal.
In one possible design approach, the obtaining unit is further configured to: acquiring motion state information of a user; the determining unit is further configured to: and determining that the motion state of the user is the walking state according to the motion state information, or the motion state of the user is converted into the walking state from the riding state.
In one possible design approach, the determining unit is further configured to: and determining that the terminal executes the NFC card swiping event within the preset time by inquiring the recorded information of the NFC card swiping event in the short-distance wireless communication.
In one possible design approach, the obtaining unit is further configured to: acquiring current environmental sound through a microphone; the determining unit is further configured to: and determining that the terminal is located in a public place according to the acquired environmental sound.
In one possible design approach, the display unit is further configured to: and displaying prompt information of the travel information in a pull-down menu, a negative one-screen menu or a screen locking interface of the terminal, wherein the prompt information is used for prompting a user to check the travel information.
In a fourth aspect, an embodiment of the present application provides a terminal, including: a detection unit to: detecting the signal intensity of a target wireless fidelity Wi-Fi network to obtain the signal intensity change condition of the target Wi-Fi network within T time, wherein T is more than 0; a display unit for: and when the signal strength change condition of the target Wi-Fi network meets a preset rule of strong and weak, prompting the user of travel information associated with a first position, wherein the first position is an area covered by the target Wi-Fi network.
In one possible design method, the terminal further includes: an acquisition unit configured to: acquiring scene description data, wherein the scene description data is used for indicating an application scene where the terminal is located; a determination unit configured to: determining that the scene description data satisfies a preset assistance condition indicating that the user is ready to leave the first location.
In a possible design method, the terminal stores the SSID of the target Wi-Fi network in advance; the detection unit is further configured to: detecting N Wi-Fi networks covered currently, wherein N is greater than 0; the determining unit is further configured to: and selecting the Wi-Fi network which is the same as the prestored SSID from the N Wi-Fi networks as the target Wi-Fi network.
In one possible design approach, the determining unit is further configured to: determining that the destination of the user trip is a second position; the display unit is specifically configured to: the user is prompted for a travel route from the first location to the second location.
In one possible design approach, the display unit is further configured to: and displaying prompt information of the travel information in a pull-down menu, a negative one-screen menu or a screen locking interface of the terminal, wherein the prompt information is used for prompting a user to check the travel information.
In a fifth aspect, an embodiment of the present application provides a terminal, including: a processor, a memory, a bus, and a communication interface; the memory is used for storing computer execution instructions, the processor is connected with the memory through the bus, and when the terminal runs, the processor executes the computer execution instructions stored in the memory so as to enable the terminal to execute any one of the information recommendation methods.
In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on any one of the terminals, the instructions cause the terminal to execute any one of the information recommendation methods.
In a seventh aspect, an embodiment of the present application provides a computer program product including instructions, which, when run on any one of the above terminals, causes the terminal to execute any one of the above information recommendation methods.
In the embodiments of the present application, the names of the above-mentioned terminals do not limit the devices themselves, and in practical implementations, the devices may appear by other names. Provided that the function of each device is similar to the embodiments of the present application, they are within the scope of the claims of the present application and their equivalents.
In addition, the technical effects brought by any one of the design manners in the second aspect to the seventh aspect can be referred to the technical effects brought by the different design methods in the first aspect, and are not described herein again.
Detailed Description
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of the present application, "a plurality" means two or more unless otherwise specified.
The embodiment of the application provides an information recommendation method, which can be applied to a Wireless Fidelity (Wi-Fi) network architecture shown in fig. 1.
In one possible design method, as shown in fig. 1 (a), the Wi-Fi network includes a server 11 on the network side, an Access Point (AP) 12 of a wireless local area network connected to the server 11, and at least one Station (STA) 13 connected to the Access Point 12.
The access point 12 is a creator of a wireless network, and may provide a Wi-Fi signal source for the station 13, and meanwhile, the access point 12 may communicate with the server 11 on the network side, so that the station 13 may interact with the server 11 on the network side in a wireless manner. For example, a router or a Wi-Fi signal transmitting terminal used in a general home or office may be used as the access point 11. And each terminal connected to the Wi-Fi network (e.g., cell phones, laptops, PDAs, and other network-enabled user devices) may be referred to as a site 13.
In a possible design method, as shown in fig. 1 (b), when the area of a certain area is large, one access point 12 may not cover the whole area, for example, public places such as a large mall or a subway station, and in this case, a method of performing wireless relay by using the access point 12 may be used to realize large-area coverage of the same WiFi network. In such a Wi-Fi network, a plurality of access points 12 are included, for example a plurality of wireless routers, each of which displays the name of the same WiFi network for each station 13.
Taking the mobile phone 100 as the station 13 and the wireless router 200 as the access point 12, for example, when the mobile phone 100 starts the wlan function, as shown in fig. 2, the mobile phone may obtain a Probe Request (Probe Request) frame periodically sent by the wireless router 200, where the Probe Request carries a Service Set Identifier (SSID) of the wlan, that is, a name of the Wi-Fi network. In this way, the handset 100 can detect the SSID of the wireless local area network (e.g., Xyzd) provided by the wireless router 200 and the SSIDs of other wireless local area networks that the handset 100 detects in its area.
At this time, if the user opens the setting interface of the wireless lan in the cellular phone 100, the wireless lan interface 201 as shown in fig. 3 may be displayed. As shown in fig. 3, the wireless lan interface 201 may include: a plurality of SSIDs such as a subway public Wi-Fi 203, Xyzd 204 (i.e., SSID of Wi-Fi network provided by wireless router 200), and Zhangsan 205.
Optionally, after the terminal detects an SSID of at least one wireless lan currently covered, the user may select a wireless lan corresponding to the SSID in the wireless lan interface 201, and input a preset access password, at this time, as shown in fig. 2, the mobile phone 100 may send an Authentication Request (Authentication Request) to the wireless router 200, and when receiving an Authentication Response (Authentication Response) sent by the wireless router 200, the mobile phone 100 may send a connection Request (Association Request) to the wireless router 200, and when receiving an Association completion Response (Association Response) sent by the wireless router 200, the mobile phone 100 establishes Wi-Fi connection with the wireless router 200, so that data interaction may be performed.
Exemplarily, fig. 4 shows a schematic diagram of an example of a frame structure of a Probe Request frame provided in the present application. As shown in fig. 4, the Probe Request frame 220 may include: a Frame header (i.e., MAC header) 221, a Frame entity (Frame Body)222, and a Frame Check (FCS) field 223.
As shown in fig. 4, the MAC header 221 may include a Frame Control field (Frame Control), a Duration/identifier (Duration/ID), an Address field (Address), a Sequence Control field (Sequence Control), and the like.
The frame control field may include a Protocol Version field (Protocol Version) and a type field. The protocol version field is used to indicate the protocol version, typically 0, to which the Probe Request frame 220 conforms. The Type field may include a Type for indicating that the corresponding frame is a management frame, a data frame, or a control frame, and a Subtype for indicating a Subtype of the frame, and for example, when the Type is 00, the corresponding frame may be indicated as a management frame. The address field may include address information such as a source address, a destination address, a transmitting station address, and a receiving station address, where the destination address may be any one of a Unicast address (Unicast address), a Multicast address (Multicast address), and a Broadcast address (Broadcast address).
As shown in fig. 4, the frame entity 222 specifically includes an SSID field 2221, a Supported rate (Supported Rates)2222, and an Extended Supported rate (Extended Supported Rates) 2223. The SSID field 2221 carries a service set identifier of the wireless local area network, for example, the SSID is Xyzd 204 shown in fig. 3; supported rate 2222 and extended supported rate 2223 are used to indicate the set of rates supported by the handset or wireless router.
The above-mentioned Probe Request Frame may be a Management Frame (Management Frame) in IEEE 802.11. Station 13 (such as handset 100 described above) may also Probe Wi-Fi signals by actively sending Probe Request frames.
For example, as shown in fig. 5, after the handset 100 starts the wlan function, the handset may periodically send a Probe Request (Probe Request) frame to the wireless router 200, where an SSID field in the Probe Request sent by the handset 100 is empty, that is, does not carry the name of the Wi-Fi network. Then, after receiving the Probe request sent by the handset 100, the wireless router 200 sends the SSID (e.g., Xyzd) of the wireless local area network provided by the wireless router to the handset 100 in a Probe Response (Probe Response), so that the handset 100 can detect the SSID (e.g., Xyzd) of the wireless local area network provided by the wireless router 200 and the SSIDs of other wireless local area networks detected by the handset 100 in its area.
Optionally, the terminal may further access the corresponding wireless local area network after detecting the wireless local area network. Similar to the way in which the wireless router 200 actively sends the Probe Request frame in fig. 2, the user may select a wireless local area network with a corresponding SSID in the wireless local area network interface 201, and after inputting a preset access password, as shown in fig. 5, the mobile phone 100 may send an authentication Request to the wireless router 200, when receiving an authentication pass response sent by the wireless router 200, the mobile phone 100 may send a connection Request to the wireless router 200, and when receiving a connection complete response sent by the wireless router 200, the mobile phone 100 establishes a Wi-Fi connection with the wireless router 200, so that data interaction may be performed.
Based on the detection process of the wireless local area network shown in fig. 2 or fig. 5, in the embodiment of the present application, after a terminal (for example, the above-mentioned mobile phone 100) detects or accesses a Wi-Fi network at a certain location, a travel intention of a user at the certain location may be identified according to a variation of strength of a Wi-Fi signal in the Wi-Fi network.
For example, the handset 100 detects and accesses a Wi-Fi network with SSID "xyz", that is, Wi-Fi network named "xyz", which is a Wi-Fi network set in the home of the user.
Then, when the mobile phone 100 detects that the Wi-Fi signal of the Wi-Fi network named "Xyzd" is weakened by strong until the signal strength of the Wi-Fi signal is lower than a certain preset value, for example, when the mobile phone 100 is connected to the Wi-Fi network named "Xyzd" and is suddenly disconnected, it indicates that the user gradually leaves the coverage of the Wi-Fi network named "Xyzd" with the mobile phone 100, and then the mobile phone 100 may determine that the user has an intention to go out of home at this time. Further, the mobile phone 100 may recommend the starting place for the user as: travel information when the user is at home, for example, travel information such as the number and position of bicycles near the user's home is displayed on the cellular phone 100.
In this way, at a location where the GPS signal is weak, the mobile phone 100 may locate the user according to the intensity variation of the Wi-Fi signal at the location, and identify the travel intention of the user at the location, and when the user has the travel intention, the mobile phone 100 may recommend relevant travel information to the user by taking the location as a departure point, so as to improve the positioning accuracy of the mobile phone 100 when the GPS signal is weak, and provide the user with more accurate travel information matched with the travel intention. The power consumption of the mobile phone increased by starting the GPS positioning function can be reduced.
Certainly, the mobile phone 100 may also determine the travel intention of the user without accessing the Wi-Fi network, for example, after the mobile phone 100 detects the Wi-Fi network named "Xyzd" above, the signal strength of the Wi-Fi signal in the Wi-Fi network may be detected, and when the signal strength of the Wi-Fi signal is lower than a certain preset value, it may also be stated that the user carries the mobile phone 100 to gradually leave the coverage area of the Wi-Fi network named "Xyzd", so the mobile phone 100 may determine that the user has the travel intention to leave home at this time. In addition, the website 13 provided in this embodiment of the present application may specifically be any terminal such as a mobile phone, a wearable device, an AR (augmented reality) \ VR (virtual reality) device, a tablet computer, a notebook computer, a UMPC (ultra mobile personal computer), a netbook, and a PDA (personal digital assistant), which is not limited in this embodiment of the present application.
As shown in fig. 6, the terminal in the embodiment of the present application may be a mobile phone 100. The embodiment will be specifically described below by taking the mobile phone 100 as an example. It should be understood that the illustrated handset 100 is only one example of a terminal and that the handset 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components.
As shown in fig. 6, the mobile phone 100 may specifically include: processor 101, Radio Frequency (RF) circuitry 102, memory 103, touch screen 104, bluetooth device 105, one or more sensors 106, Wi-Fi device 107, positioning device 108, audio circuitry 109, peripherals interface 110, and power system 111. These components may communicate over one or more communication buses or signal lines (not shown in fig. 6). Those skilled in the art will appreciate that the hardware configuration shown in fig. 6 is not intended to be limiting, and that the handset 100 may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes the components of the handset 100 in detail with reference to fig. 6:
the processor 101 is a control center of the mobile phone 100, connects various parts of the mobile phone 100 by various interfaces and lines, and executes various functions of the mobile phone 100 and processes data by running or executing an application program (hereinafter, may be abbreviated as App) stored in the memory 103 and calling data stored in the memory 103. In some embodiments, processor 101 may include one or more processing units; for example, the processor 101 may be an kylin 960 chip manufactured by Huanti technologies, Inc.
The rf circuit 102 may be used for receiving and transmitting wireless signals during the transmission and reception of information or calls. In particular, the rf circuit 102 may receive downlink data of the base station and then process the received downlink data to the processor 101; in addition, data relating to uplink is transmitted to the base station. Typically, the radio frequency circuitry 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 circuitry 102 may also communicate with other devices via wireless communication. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications, general packet radio service, code division multiple access, wideband code division multiple access, long term evolution, email, short message service, and the like.
The memory 103 is used for storing application programs and data, and the processor 101 executes various functions and data processing of the mobile phone 100 by running the application programs and data stored in the memory 103. The memory 103 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system and application programs (such as a sound playing function and an image playing function) required by at least one function; the storage data area may store data (e.g., audio data, a phonebook, etc.) created from use of the handset 100. Further, the memory 103 may include high speed random access memory, and may also include non-volatile memory, such as a magnetic disk storage device, a flash memory device, or other volatile solid state storage device. The memory 103 may store various operating systems, such as the iOS operating system developed by apple inc, the Android operating system developed by google, inc.
The touch screen 104 may include a touch pad 104-1 and a display 104-2. Wherein the touch pad 104-1 can capture touch events on or near the touch pad 104-1 by a user of the cell phone 100 (e.g., user operation on or near the touch pad 104-1 using any suitable object such as a finger, a stylus, etc.), and transmit the captured touch information to other devices, such as the processor 101.
Among them, a touch event of a user near the touch pad 104-1 can be called a hover touch; hover touch may refer to a user not needing to directly contact the touchpad in order to select, move, or drag a target (e.g., an icon, etc.), but only needing to be located near the terminal in order to perform a desired function. In the context of a hover touch application, the terms "touch," "contact," and the like do not imply a direct contact to the touch screen, but rather a nearby or near contact.
Specifically, two types of capacitive sensors, i.e., a mutual capacitive sensor and a self capacitive sensor, may be disposed in the touch pad 104-1, and the two types of capacitive sensors may be alternately arrayed on the touch pad 104-1. The mutual capacitance sensor is used for realizing normal traditional multi-point touch control; while self-capacitance sensors can generate signals that are more powerful than mutual capacitance, thereby detecting finger touches that are farther from the touch pad 104-1. Thus, when the user's finger is hovering over the screen, as shown in FIG. 3, the self-capacitance sensor generates a signal that is greater than the mutual-capacitance sensor, such that the cell phone 100 can detect a user's gesture over the screen, e.g., 20mm above the touch pad 104-1.
Optionally, the touch pad 104-1 capable of performing floating touch may be implemented by using capacitive type, infrared sensing, ultrasonic wave, or the like. In addition, the touch pad 104-1 can be implemented by various types, such as resistive, capacitive, infrared, and surface acoustic wave. Display (also referred to as a display screen) 104-2 may be used to display information entered by or provided to the user as well as various menus for handset 100. The display 104-2 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The trackpad 104-1 may be overlaid on the display 104-2, and when the trackpad 104-1 detects a touch event thereon or nearby, it is communicated to the processor 101 to determine the type of touch event, and the processor 101 may then provide a corresponding visual output on the display 104-2 based on the type of touch event. Although in FIG. 6, the touch pad 104-1 and the display screen 104-2 are shown as two separate components to implement the input and output functions of the cell phone 100, in some embodiments, the touch pad 104-1 and the display screen 104-2 may be integrated to implement the input and output functions of the cell phone 100. It is understood that the touch screen 104 is formed by stacking multiple layers of materials, and only the touch pad (layer) and the display screen (layer) are shown in the embodiment of the present application, and other layers are not described in the embodiment of the present application. In addition, in some other embodiments of the present application, the touch pad 104-1 may be covered on the display 104-2, and the size of the touch pad 104-1 is larger than that of the display screen 104-2, so that the display screen 104-2 is completely covered under the touch pad 104-1, or the touch pad 104-1 may be disposed on the front surface of the mobile phone 100 in a full-panel manner, that is, the touch of the user on the front surface of the mobile phone 100 can be sensed by the mobile phone, so that the full-touch experience on the front surface of the mobile phone can be achieved. In other embodiments, the touch pad 104-1 is disposed on the front surface of the mobile phone 100 in a full-panel manner, and the display screen 104-2 may also be disposed on the front surface of the mobile phone 100 in a full-panel manner, so that a frameless structure can be implemented on the front surface of the mobile phone.
In the embodiment of the present application, the mobile phone 100 may further have a fingerprint recognition function. For example, the fingerprint identifier 112 may be disposed on the back side of the handset 100 (e.g., below the rear facing camera), or the fingerprint identifier 112 may be disposed on the front side of the handset 100 (e.g., below the touch screen 104). For another example, the fingerprint acquisition device 112 may be configured in the touch screen 104 to realize the fingerprint identification function, i.e., the fingerprint acquisition device 112 may be integrated with the touch screen 104 to realize the fingerprint identification function of the mobile phone 100. In this case, the fingerprint acquisition device 112 is disposed in the touch screen 104, may be a part of the touch screen 104, and may be disposed in the touch screen 104 in other manners. Additionally, the fingerprint acquisition device 112 may also be implemented as a full panel fingerprint acquisition device. Thus, the touch screen 104 can be viewed as a panel that can be fingerprinted anywhere. The fingerprint acquisition device 112 may send the acquired fingerprint to the processor 101 for processing (e.g., fingerprint verification, etc.) by the processor 101. The main component of the fingerprint acquisition device 112 in the present embodiment is a fingerprint sensor, which may employ any type of sensing technology, including but not limited to optical, capacitive, piezoelectric, or ultrasonic sensing technologies, among others.
The handset 100 may also include a bluetooth device 105 for enabling data exchange between the handset 100 and other short-range terminals (e.g., cell phones, smart watches, etc.). The bluetooth device in the embodiment of the present application may be an integrated circuit or a bluetooth chip.
The handset 100 may also include at least one sensor 106, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display of the touch screen 104 according to the brightness of ambient light, and a proximity sensor that turns off the power of the display when the mobile phone 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone 100, further description is omitted here.
The Wi-Fi device 107 is used for providing network access for the mobile phone 100 according to Wi-Fi related standard protocols, the mobile phone 100 can be accessed to a Wi-Fi access point through the Wi-Fi device 107, so that the mobile phone helps a user to send and receive e-mails, browse webpages, access streaming media and the like, and wireless broadband internet access is provided for the user. In other embodiments, the Wi-Fi device 107 can also act as a Wi-Fi wireless access point and can provide Wi-Fi network access to other terminals.
And a positioning device 108 for providing a geographical position for the handset 100. It is understood that the positioning device 108 may be a receiver of a Global Positioning System (GPS) or a positioning system such as the beidou satellite navigation system, russian GLONASS, etc. After receiving the geographical location transmitted by the positioning system, the positioning device 108 transmits the information to the processor 101 for processing or transmits the information to the memory 103 for storage. In still other embodiments, the positioning device 108 may also be a receiver of an Assisted Global Positioning System (AGPS) that assists the positioning device 108 in performing ranging and positioning services by acting as an assistance server, in which case the assistance positioning server provides positioning assistance by communicating with the positioning device 108 (i.e., GPS receiver) of the terminal, such as the handset 100, over a wireless communication network. In other embodiments, the location device 108 may also be a Wi-Fi access point based location technology. Each Wi-Fi access point has a globally unique MAC address, so that the terminal can scan and collect broadcast signals of the surrounding Wi-Fi access points under the condition of starting Wi-Fi, and the MAC address broadcasted by the Wi-Fi access points can be acquired; the terminal sends the data (such as the MAC address) capable of indicating the Wi-Fi access point to the location server through the wireless communication network, the location server retrieves the geographical location of each Wi-Fi access point, and calculates the geographical location of the terminal according to the strength of the Wi-Fi broadcast signal and sends the geographical location of the terminal to the positioning device 108 of the terminal.
The audio circuitry 109, speaker 113, microphone 114 can provide an audio interface between a user and the handset 100. The audio circuit 109 may transmit the electrical signal converted from the received audio data to the speaker 113, and convert the electrical signal into a sound signal by the speaker 113 for output; on the other hand, the microphone 114 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 109, and outputs the audio data to the RF circuit 102 to be transmitted to, for example, another cellular phone, or outputs the audio data to the memory 103 for further processing.
Peripheral interface 110, which is used to provide various interfaces for external input/output devices (e.g., keyboard, mouse, external display, external memory, SIM card, etc.). For example, a mouse via a Universal Serial Bus (USB) interface, and a subscriber identity module card (SIM) card provided by a telecommunications carrier via metal contacts on a SIM card slot. Peripheral interface 110 may be used to couple the aforementioned external input/output peripherals to processor 101 and memory 103.
The mobile phone 100 may further include a power supply device 111 (such as a battery and a power management chip) for supplying power to each component, and the battery may be logically connected to the processor 101 through the power management chip, so as to implement functions of managing charging, discharging, and power consumption through the power supply device 111.
Although not shown in fig. 6, the mobile phone 100 may further include a camera (front camera and/or rear camera), a flash, a micro-projector, a Near Field Communication (NFC) device, and the like, which are not described in detail herein.
Hereinafter, an information recommendation method provided by the embodiment of the present application will be described in detail with reference to a specific embodiment by taking the mobile phone 100 as an example, as shown in fig. 7, the method includes:
301. and the mobile phone selects a target Wi-Fi network from the detected N Wi-Fi networks, wherein N is greater than 0.
The method for detecting the Wi-Fi network covered by the mobile phone at the location of the mobile phone may refer to the description related to fig. 2 or fig. 5, and therefore, the description thereof is omitted here.
It should be noted that, after the mobile phone detects the Wi-Fi network, the detected Wi-Fi network may be automatically accessed or manually accessed by the user, for example, the mobile phone has already accessed the Wi-Fi network named "Xyzd", and then, when the mobile phone detects the Wi-Fi network named "Xyzd" again, because the access password of the Wi-Fi network is stored in the mobile phone, the mobile phone may automatically access the Wi-Fi network. Certainly, the mobile phone may not access the detected Wi-Fi network after detecting the Wi-Fi network, for example, when the mobile phone is in a black screen state, the Wi-Fi device in the mobile phone may detect the Wi-Fi network currently covered in the background, but does not need to access the detected Wi-Fi network, which is not limited in this embodiment of the present application.
Additionally, the handset may detect the currently covered Wi-Fi network through its Wi-Fi device (e.g., Wi-Fi device 107 in fig. 6), at which time the processor of the handset (e.g., processor 101 in fig. 6) may be in a sleep state or a low power state, thereby reducing the power consumption of the handset.
Specifically, when the mobile phone detects N Wi-Fi networks covered by the current location, for example, the N Wi-Fi networks include: Wi-Fi networks named "Xyzd", Wi-Fi networks named "subway public Wi-Fi", and Wi-Fi networks named "Zhangsan". Then, the mobile phone may select one of the 3 Wi-Fi networks as a target Wi-Fi network, where the target Wi-Fi network may be a Wi-Fi network preset by the user, for example, a Wi-Fi network in the home of the user (named "home of Tom"), or a Wi-Fi network that the user has accessed, for example, a Wi-Fi network named "kendz 123" accessed by the user at kendz meal in road, or a Wi-Fi network named "shenzhen subway" accessed by the user at a subway station.
For example, when a user is at a subway station, the mobile phone detects that both the Wi-Fi network named "shenzhen subway" and the Wi-Fi network named "kentucky 123" are the Wi-Fi networks that have been accessed, and at this time, the mobile phone can detect the strength of Wi-Fi signals in the two Wi-Fi networks respectively, and use the Wi-Fi network with the greatest strength of the Wi-Fi signals, for example, the Wi-Fi network named "shenzhen subway", as the target Wi-Fi network.
Or, after the mobile phone detects N Wi-Fi networks currently covered, if the user enters the wireless lan interface 201 shown in fig. 3 to select a certain Wi-Fi network and accesses the certain Wi-Fi network, the mobile phone may use the accessed Wi-Fi network as the target Wi-Fi network.
Or, the SSID of the target Wi-Fi network may be stored in the mobile phone in advance, for example, the prestored SSID is "shenzhen subway", and then, after the mobile phone detects N Wi-Fi networks currently covered, the mobile phone may search whether the SSIDs of the N Wi-Fi networks include a Wi-Fi network whose prestored SSID is "shenzhen subway", and if the Wi-Fi network whose SSID is "shenzhen subway" is searched, take the Wi-Fi network whose SSID is "shenzhen subway" as the target Wi-Fi network.
That is to say, in step 301, the mobile phone may determine the current geographic location of the user by selecting the target Wi-Fi network, that is, locate the user, so that, in some scenarios where the GPS signal is weak or the mobile phone has insufficient power, the mobile phone may locate the user more accurately through the Wi-Fi device thereof, and at the same time, power consumption of the mobile phone is reduced.
It should be noted that, there may be one or more target Wi-Fi networks, and the embodiments of the present application do not limit this.
302. And the mobile phone detects the signal intensity of the target Wi-Fi network to obtain the signal change condition of the target Wi-Fi within T time, wherein T is larger than 0.
In step 302, after the mobile phone determines the target Wi-Fi network, the change condition of the signal strength of the target Wi-Fi network within the time T may be obtained by detecting the Wi-Fi signal strength in the target Wi-Fi network.
Wherein, the strength of the Wi-Fi signal can be expressed in dB (decibel) and is used for indicating the gain of the Wi-Fi signal transmission power; and may also be expressed in dBm (decibel-milliwatt) to indicate the absolute value of the Wi-Fi signal transmit power. Or, the mobile phone may further calculate a Received Signal Strength Indicator (RSSI) value of a target Wi-Fi signal in the target Wi-Fi network, where the RSSI value of the target Wi-Fi signal indicates the signal strength of the target Wi-Fi, and the embodiment of the present application does not limit this.
For example, the mobile phone determines that the target Wi-Fi network is a subway public Wi-Fi network named Shenzhen subway, and then the mobile phone can periodically detect M (M > 1) Wi-Fi signal strength values of the target Wi-Fi network at different moments. For example, the mobile phone can detect the signal strength of the Wi-Fi network named "Shenzhen subway" in the next 20 seconds by taking 5 seconds as a period, and obtain the signal strength values of 4 target Wi-Fi networks. The signal strength values of the 4 target Wi-Fi networks reflect the signal change condition of the Wi-Fi network named Shenzhen subway within 20 seconds, and meanwhile, the signal change condition of the target Wi-Fi also reflects the movement rule of the user in the coverage range of the target Wi-Fi network.
303. When the signal strength of the target Wi-Fi is weakened from strong, the mobile phone determines the travel intention of the user at the first position.
The first location is the area covered by the target Wi-Fi network determined by the mobile phone in step 301. For example, as shown in fig. 8, when the target Wi-Fi network is a Wi-Fi network 1 named "home of Tom", the first location corresponding to the target Wi-Fi network is the network coverage area of the Wi-Fi network 1, i.e., home of Tom (e.g., 88 number of middle mountain street); as shown in fig. 9, when the target Wi-Fi network is the Wi-Fi network 2 named "kentucky 123", the first location corresponding to the target Wi-Fi network is the network coverage area of the Wi-Fi network 2, that is, the geographic location (for example, west-ampere road No. 38) where the kentucky is located; as shown in fig. 10, when the target Wi-Fi network is the Wi-Fi network 3 named "shenzhen subway", the first position corresponding to the target Wi-Fi network is the network coverage area of the Wi-Fi network 3, i.e. the geographical position (e.g. number five and 47 of the main road) where the subway station is located.
Since Wi-Fi signals emitted by the Wi-Fi network are generally propagated in a form of radiation from the center to the periphery, when the strength of the signal of the target Wi-Fi network is detected to be weakened, it indicates that the user may carry the mobile phone away from the first position covered by the target Wi-Fi network, and at this time, the mobile phone may be triggered to determine whether the user has an intent to go at the first position, that is, whether the user is ready to leave the first position.
For example, a signal strength threshold may be pre-stored in the handset, and then, when the signal strength of the target WiFi network is detected to be less than the signal strength threshold, it indicates that the user has just left the first location at that time, so that the handset may determine the travel intention that the user has at the first location at that time.
For another example, if the mobile phone has accessed the target Wi-Fi network, when the signal strength of the Wi-Fi signal received by the mobile phone in the target Wi-Fi network is lower than a certain signal strength threshold, the mobile phone may automatically disconnect the target Wi-Fi network, and at this time, the mobile phone may also confirm the travel intention of the user when the user leaves the first location.
For another example, a rate threshold of the signal attenuation rate may be stored in the mobile phone in advance, and then, when it is detected that the attenuation rates of the M target Wi-Fi signal strengths acquired in step 302 are greater than the rate threshold within a preset time, for example, within 10 seconds, it indicates that the user wants to leave the first location at this time, and therefore, the mobile phone may determine the travel intention of the user at the first location at this time.
For another example, a signal attenuation model for instructing the user to leave or prepare to leave the first location may be stored in advance in the mobile phone, and the signal attenuation model may include: and determining the attenuation rate range of the target Wi-Fi signal in the process that the user leaves the first position according to the walking speed of the user, and determining the lowest signal strength threshold value when the user leaves the first position according to the signal transmitting power of the target Wi-Fi.
Then, in step 303, the mobile phone may compare the M target Wi-Fi signal strengths obtained in step 302 with a preset signal attenuation model. When the signal attenuation rate reflected by the M target Wi-Fi signal strengths is within the attenuation rate range in the signal attenuation model, and the last detected target Wi-Fi signal strength in the M target Wi-Fi signal strengths is lower than the minimum signal strength threshold value, the mobile phone may determine the user's travel intention at the first location, that is, the user is ready to leave the first location.
As also shown in fig. 8, when the user Tom is at home, his/her mobile phone uses the detected Wi-Fi network 1 named "home of Tom" as the target Wi-Fi network, and then the mobile phone can continuously detect the Wi-Fi signal strength of the Wi-Fi network 1. In the process that Tom carries the mobile phone to move from the home position a to the home position B, the mobile phone may detect that the Wi-Fi signal strength of the Wi-Fi network 1 is weakened from strong, and when it is detected that the Wi-Fi signal strength of the Wi-Fi network 1 is smaller than the signal strength threshold, the mobile phone may determine the travel intention that the user Tom leaves from the home.
For another example, as shown in fig. 9, when the user Tom is at kend restaurant in west ann 38, the mobile phone may use the detected Wi-Fi network 2 named "kend 123" as the target Wi-Fi network, and further, the mobile phone may continuously detect the Wi-Fi signal strength of the Wi-Fi network 2. During the process that Tom moves from the location a inside the kentucky restaurant to the location B outside the kentucky restaurant, if the mobile phone detects that the attenuation rate of the Wi-Fi signal strength of the Wi-Fi network 2 within 20 seconds is greater than the rate threshold, the mobile phone may determine that the user Tom has the travel intention to leave the kentucky restaurant in west anlu 38.
For another example, as shown in fig. 10, when the user Tom is at a station of five subways, the mobile phone of the user Tom takes the detected Wi-Fi network 3 named "shenzhen subway" as the target Wi-Fi network, and further, the mobile phone can continuously detect the Wi-Fi signal strength of the Wi-Fi network 3. In the process that the Tom carries the mobile phone to move from the position A of the five-way station and the subway station to the position B close to the exit, if the mobile phone detects that the Wi-Fi signal strength of the Wi-Fi network 3 is weakened from strong, and the attenuation rule of the Wi-Fi signal strength meets the signal attenuation model, at the moment, the mobile phone can determine the travel intention of the user Tom to leave from the five-way station and the subway station.
It can be seen that, in the above embodiment, the mobile phone may locate the first location where the user is located by turning on the Wi-Fi device, and identify the travel intention of the user at the first location, so that the mobile phone may also implement an accurate positioning function for the user in an application scenario where the GPS signal is not good, and may reduce power consumption overhead of the mobile phone caused by turning on the GPS positioning function.
Further, when the mobile phone detects that the signal strength of the target Wi-Fi is weakened by strong, or detects that the attenuation law of the signal of the target Wi-Fi satisfies the signal attenuation model, the mobile phone may further obtain scene description data indicating an application scene where the current mobile phone is located, and determine whether the current application scene satisfies a preset auxiliary condition according to the scene description data, that is, further determine the travel intention of the user leaving the first location by some auxiliary measures, so as to improve the accuracy of the mobile phone in determining the travel intention of the user.
For example, the list of cell IDs at the first location may be pre-stored in the mobile phone, and then, taking fig. 10 as an example, when the mobile phone detects that the signal strength of the target Wi-Fi is weakened from strong, the mobile phone may be further triggered to acquire the current cell ID through a modem (modem), and when the acquired cell ID is located in the list of cell IDs around five pre-stored and subway stations, the travel intention of the user leaving from five and subway stations may be confirmed.
For another example, when the mobile phone detects the target Wi-Fi signal strength, the mobile phone or the wearable device connected to the mobile phone may detect a motion state of the mobile phone, and the mobile phone or the wearable device may record the motion state detected at different times as motion state information. Then, still taking fig. 10 as an example, when the mobile phone detects that the signal strength of the target Wi-Fi is weakened by strong, the mobile phone may be further triggered to query the motion state information stored by the mobile phone or the wearable device within a last period of time, for example, within a last 20 seconds, for example, when the motion state of the mobile phone within the last 20 seconds is converted from a speed of 50 kilometers per second to a speed of 1 meter per second, it may be considered that the user is converted from a riding state to a walking state, and then the mobile phone may confirm the travel intention of the user to leave from five and a subway station.
For another example, when the mobile phone detects the target Wi-Fi signal strength, it may also detect whether the mobile phone performs an NFC card swiping behavior within a preset time. As shown in fig. 11, a user can use the NFC function to swipe a card out of a subway station, at this time, an NFC module in the mobile phone reports an NFC card swipe event, and the mobile phone can record the detected NFC card swipe event to form record information of the NFC card swipe event. Then, still taking fig. 10 as an example, after the mobile phone detects that the signal strength of the target Wi-Fi is weakened by strong, the mobile phone may be triggered to further query, from the recorded information, whether the mobile phone has reported an NFC card swiping event within the last 1 minute, and if the NFC card swiping event within the last 1 minute is queried, the mobile phone may further confirm the travel intention of the user leaving from the station and the subway station.
For another example, when the mobile phone detects that the target Wi-Fi signal strength is weakened from strong, a microphone of the mobile phone may be turned on to detect a current environmental sound, whether the environment where the mobile phone is located is a public place may be identified by the acquired environmental sound, and when the environment where the mobile phone is located is identified as the public place, the mobile phone may further confirm the travel intention of the user leaving from the first location.
Of course, the mobile phone may further turn on the GPS positioning function to further confirm the travel intention of the user leaving from the first location, which is not limited in this embodiment of the present application.
The mobile phone can further confirm the travel intention of the user leaving the first position by executing the auxiliary measures, and the phenomenon that the travel intention of the user is mistakenly confirmed by the mobile phone due to the fact that the WiFi signal of the target WiFi network is unstable is avoided, so that the accuracy of the mobile phone in determining the travel intention of the user is improved, and more accurate travel information is subsequently provided for the user.
In addition, when there are a plurality of target Wi-Fi networks, the mobile phone can determine the travel intention of the user by using the method for each target Wi-Fi network. For example, when a subway station or a high-speed railway station is large, a user may pass through an area covered by a plurality of Wi-Fi networks in the process of going out, and SSIDs of the plurality of Wi-Fi networks may be all the SSIDs of target Wi-Fi networks stored in advance by a mobile phone. Then, for each target Wi-Fi network, when the Wi-Fi signal intensity of the target Wi-Fi network is detected to meet the preset law with strong weakness, the mobile phone can be triggered to confirm the intention of the user to leave the network coverage area; of course, when the signal strengths of the multiple target Wi-Fi networks all satisfy the preset law with strong weakness, the mobile phone may be triggered to confirm the travel intention of the user leaving the subway station or the high-speed railway station, which is not limited in this embodiment of the present application.
Optionally, the step 301-.
304. And the mobile phone prompts the travel information associated with the first position to the user.
Specifically, in step 304, after the mobile phone determines the travel intention of the user at the first location, the mobile phone may generate corresponding travel information and recommend the travel information to the user, taking the landmark geographical location, such as a station, an entrance, and the like at or near the first location, as a departure place.
In one possible design method, the mobile phone may prompt the determined first location where the user is currently located to the user in a display interface (e.g., a pull-down menu of the mobile phone, a negative one-screen menu of the mobile phone).
In another possible design method, the mobile phone may further be connected to a server of a public transportation service provider, obtain vehicle information with the first location as a departure place, and display the vehicle information on the mobile phone as the travel information, so as to recommend the travel information to the user.
For example, after determining the travel intention of the user at the port C of the station five and the subway station, the mobile phone may interact with the server sharing the bicycle APP, and acquire information such as the number and the position of the bicycles located near the port C of the station five and the subway station as the travel information. Further, an interface as shown in fig. 12 may be displayed in a pull-down menu 401 of the mobile phone, wherein a prompt message 402 is displayed in the pull-down menu 401, and the prompt message 402 is used for prompting the user to view the bicycles near the mouths of five and subway stations C. Then, after the user clicks the prompt information 402, the mobile phone may call an Application Programming Interface (API) of the shared bicycle APP, jump to an Application Interface of the shared bicycle APP to view functions of nearby bicycles, and display trip information such as the number and positions of the bicycles near the ports C of the subway station and the fifth train, so that the user can timely and accurately obtain the trip information recommended by the mobile phone.
For another example, after determining the travel intentions of the user at the fifth and C ports of the subway station, the mobile phone can interact with the server sharing the single car APP to provide single car reservation service for the user. At this time, as shown in fig. 13, the mobile phone may display a prompt message 502 in its minus one-screen menu 501, the prompt message 402 being used to prompt the user to reserve five and a single car near the mouth C of the subway station. Then, after the user clicks the prompt message 502, the mobile phone may call the API of the shared bicycle APP, jump to the application interface 503 with the bicycle reservation function as shown in fig. 14, and display the bicycle reservation result near the mouths C of the five and subway stations for the user, so that the user can quickly reserve a bicycle according to the travel information recommended by the mobile phone, and the travel efficiency is improved.
In another possible design method, the mobile phone may further plan a corresponding travel route for the user by using the first position as a departure point, and display the planned travel route on the mobile phone as the travel information, so as to recommend the travel information to the user.
For example, after the mobile phone determines the travel intention of the user at five subway stations, if the five subway stations are located on the home-returning-to-work route set by the user and the current time (18: 11 shown in fig. 15) is within the preset time range set by the user, the travel destination (i.e. the second position) of the user can be determined to be the home of the user. The cell phone may then automatically plan a route for the user to go home from five and the subway station (e.g., the user has previously set a specific geographic location of the home in a mapping application). At this time, if the mobile phone is in a black screen state, as shown in fig. 15, the mobile phone may light up the screen of the mobile phone, and display a prompt message 602 on a screen locking interface 601 presented by the mobile phone, where the prompt message 602 is used to prompt the user to view a planned route from five and the subway station to home. Then, after the user clicks the prompt message 602, the mobile phone can call the API of the Baidu map APP and jump to a route navigation interface from the fifth place to the subway station, so that the user can quickly determine a travel route according to travel information recommended by the mobile phone, and travel efficiency is improved.
For another example, after determining the travel intention of the user at the station five and the subway station, the mobile phone may further obtain the bus information near the first position, for example, the bus station closest to the station five and the subway station is the station five and the station five. Then, the mobile phone may obtain real-time bus information of one or more buses passing through the fifth and the fifth stations, where taking M461 buses as an example, the real-time bus information may include position and station information of a bus closest to the fifth and the fifth stations. Furthermore, as shown in fig. 16, the mobile phone may display the acquired real-time bus information 701 in a current display interface 702 of the mobile phone, so that the user can view and select a corresponding bus trip.
Of course, if the station five and the subway station are located on the route from work to home set by the user and the current time (18: 11 shown in fig. 16) is within the preset time range from work, the mobile phone may only obtain or display the real-time bus information of one or more buses passing through the station five and the station home of the user, which is not limited in this embodiment of the present application.
In addition, the mobile phone may further prompt the user of the travel information associated with the first location in various forms, such as voice, vibration, and the like, which is not limited in this embodiment of the application.
Further, the user may also manually turn on or off the travel information recommendation function provided in the above embodiment by entering the setting interface shown in fig. 17. After the user starts the travel information recommendation function, the corresponding target Wi-Fi can be added manually, and certainly, the mobile phone can also prompt the user whether to add the target Wi-Fi when the Wi-Fi network is recommended for the travel information or not when accessing the Wi-Fi network every time.
In addition, the mobile phone may also manually customize the travel information according to the travel habits or travel requirements of the user, for example, when the user opens two options, i.e., "bus information" and "nearby bicycle" shown in fig. 17, the mobile phone may provide the two items of travel information, i.e., the bus information near the first location and the bicycle near the first location, at the same time after determining the travel intention of the user at the first location.
Further, when the user selects to add the setting function of the target Wi-Fi network, as shown in fig. 18, the mobile phone may provide the user with two adding modes, that is, manually adding the target Wi-Fi network and automatically downloading the target Wi-Fi network. When a target Wi-Fi network is added manually, a user can manually input description information such as SSID (service set identifier) and IP (Internet protocol) address of the target Wi-Fi network to be added; when the target Wi-Fi network is automatically downloaded, the server connected with the mobile phone can periodically update public Wi-Fi networks at subway stations, airports, railway stations and other positions of various cities, so that a user can select the required target Wi-Fi network, and the mobile phone downloads description information of the target Wi-Fi network selected by the user from the server so as to recommend relevant travel information to the user according to the signal intensity change condition of the target Wi-Fi network.
Therefore, through the step 301 and the step 304, the mobile phone can determine the travel intention of the user at the first position by detecting the signal intensity change of the target Wi-Fi network, and then recommend various travel information associated with the first position for the user, so that the travel information matched with the travel intention of the user can be obtained on the mobile phone in time when the user leaves the first position, and the travel efficiency and the travel experience of the user are improved.
It is to be understood that the above-mentioned terminal and the like include hardware structures and/or software modules corresponding to the respective functions for realizing the above-mentioned functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the embodiments of the present application.
In the embodiment of the present application, the terminal and the like may be divided into functional modules according to the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
In the case of dividing the functional modules by corresponding functions, fig. 19 shows a possible structural diagram of the terminal according to the above embodiment, where the terminal includes: a detection unit 1101, an acquisition unit 1102, a determination unit 1103, and a display unit 1104.
The detection unit 1101 is configured to support the terminal to execute the process 304 in fig. 7; the obtaining unit 1102 is configured to support the terminal to execute the process 302 in fig. 7; the determining unit 1103 is configured to support the terminal to perform the processes 301 and 303 in fig. 7; the display unit 1104 is used to support the terminal to perform the process 304 in fig. 7. All relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
In the case of an integrated unit, fig. 20 shows a possible structural diagram of the terminal involved in the above-described embodiment. The terminal includes: a processing module 1302 and a communication module 1303. The processing module 1302 is configured to control and manage actions of the terminal. The communication module 1303 is used for supporting the communication between the terminal and other network entities. The terminal may also include a memory module 1301 for storing program codes and data for the terminal.
The Processing module 1302 may be a Processor or a controller, such as a Central Processing Unit (CPU), a general purpose Processor, a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others. The communication module 1303 may be a transceiver, a transceiver circuit, a communication interface, or the like. The storage module 1301 may be a memory.
When the processing module 1302 is a processor, the communication module 1303 is an RF transceiver circuit, and the storage module 1301 is a memory, the terminal provided in the embodiment of the present application may be the mobile phone 100 shown in fig. 6.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware or any combination thereof. When implemented using a software program, may take the form of a computer program product, either entirely or partially. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.