WO2021179849A1 - Station prediction method and apparatus, terminal, and storage medium - Google Patents

Station prediction method and apparatus, terminal, and storage medium Download PDF

Info

Publication number
WO2021179849A1
WO2021179849A1 PCT/CN2021/074717 CN2021074717W WO2021179849A1 WO 2021179849 A1 WO2021179849 A1 WO 2021179849A1 CN 2021074717 W CN2021074717 W CN 2021074717W WO 2021179849 A1 WO2021179849 A1 WO 2021179849A1
Authority
WO
WIPO (PCT)
Prior art keywords
site
terminal
target
station
base station
Prior art date
Application number
PCT/CN2021/074717
Other languages
French (fr)
Chinese (zh)
Inventor
刘善朴
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2021179849A1 publication Critical patent/WO2021179849A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • H04W4/026Services making use of location information using location based information parameters using orientation information, e.g. compass
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/382Monitoring; Testing of propagation channels for resource allocation, admission control or handover
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • H04W4/027Services making use of location information using location based information parameters using movement velocity, acceleration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/42Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for mass transport vehicles, e.g. buses, trains or aircraft
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the embodiments of the present application relate to the field of artificial intelligence technology, and in particular to a method, device, terminal, and storage medium for site prediction.
  • the arrival reminder function is a function that reminds passengers to get off the bus when they arrive at the target stop.
  • the terminal usually uses data collected by sensors (such as acceleration sensors, gravity sensors, and magnetic sensors) to calculate whether a vehicle enters or exits the station through acceleration and deceleration, and combines the map to predict the station, or recognize the traffic through voice
  • sensors such as acceleration sensors, gravity sensors, and magnetic sensors
  • the embodiments of the present application provide a site prediction method, device, terminal, and storage medium.
  • the technical solution is as follows:
  • an embodiment of the present application provides a method for site prediction, the method is used for a first terminal, and the method includes:
  • BSSID Basic Service Set Identity Document
  • the site matching result is determined by the server according to a second data packet of at least one second terminal, the second data packet including the BSSID of the AP scanned by the second terminal , And the second predicted site determined by the second terminal according to the registered base station;
  • an embodiment of the present application provides a site prediction device, the device is used in a first terminal, and the device includes:
  • An obtaining module configured to obtain a target BSSID of at least one target AP in response to the subway being in a station state, where the target AP is the AP scanned by the first terminal;
  • a data sending module configured to upload a first data packet to a server, the first data packet including the target BSSID and a first prediction site, and the first prediction site is determined by the first terminal according to the currently registered base station;
  • a data receiving module configured to receive a site matching result sent by the server, the site matching result being determined by the server according to a second data packet of at least one second terminal, the second data packet including the second terminal The scanned BSSID of the AP, and the second predicted site determined by the second terminal according to the registered base station;
  • the first update module is configured to update the current site according to the first predicted site and the site matching result.
  • an embodiment of the present application provides a terminal, the terminal includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the foregoing aspects.
  • a computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the terminal reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the terminal executes the site prediction method provided in the various optional implementation manners of the foregoing aspects.
  • Fig. 1 is a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application
  • Fig. 2 is a flow chart showing a method for site prediction according to an exemplary embodiment
  • Fig. 3 is a flow chart showing a method for site prediction according to another exemplary embodiment
  • Fig. 4 is a frame diagram of a subway mode system according to an exemplary embodiment
  • Fig. 5 is a flow chart showing a method for site prediction according to another exemplary embodiment
  • Fig. 6 shows a schematic diagram of a base station and corresponding sites according to an exemplary embodiment
  • Fig. 7 is a distribution diagram showing acceleration sensor data according to an exemplary embodiment
  • Fig. 8 is a flow chart showing a method for site prediction according to another exemplary embodiment
  • Fig. 9 is a structural block diagram of a site prediction device according to an exemplary embodiment
  • Fig. 10 is a structural block diagram of a terminal according to an exemplary embodiment.
  • the "plurality” mentioned herein means two or more.
  • “And/or” describes the association relationship of the associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone.
  • the character “/” generally indicates that the associated objects before and after are in an "or” relationship.
  • the terminal uses the acceleration sensor to obtain the acceleration direction and acceleration value of the subway, and when the acceleration meets preset conditions, it generates a prompt message to remind the user that the user is about to enter the station; or obtains the subway station announcement voice through the microphone, from the station announcement voice
  • the site information is extracted, and the site information is compared with the pre-obtained destination site information. If the site information is consistent with the destination site information, the user will be reminded of arrival.
  • the speed, direction and position of the subway cannot be accurately analyzed by simply using the data of the acceleration sensor.
  • the acceleration sensor inside the terminal has low accuracy, and the error of the acquired data is large, and the posture of the passenger holding the terminal, Actions and walking inside the vehicle will also have a certain impact on the terminal’s sensors, so the actual application value is not great; for the method of recognizing station announcements and extracting station information, the environment inside the vehicle is very noisy, and the terminal uses noise reduction technology. It is not possible to accurately recognize the content of the voice broadcast. For the site information displayed on the screen, the camera needs to be photographed, which does not have actual operability.
  • FIG. 1 shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application.
  • the implementation environment includes a first terminal 101, a server 102, and a second terminal 103.
  • the first terminal 101 has a data transmission function. When detecting that the subway enters the station, it obtains the target BSSID by scanning the AP in the station, and uploads the first data packet containing the target BSSID and the first predicted station obtained in advance to the server 102 , And then receive the site matching result from the server 102 to update the current site.
  • the second terminal 102 has the same function as the first terminal 101, or is installed with the same client, uploads the second data packet containing the second prediction site and the corresponding BSSID to the server 102, and receives it from the server 102 site matching results, update the current site.
  • FIG. 1 Only four terminals are shown in FIG. 1, but there are multiple other second terminals 103 that can access the server 102 in different embodiments.
  • the first terminal 101 and the second terminal 103 are connected to the server 102 through a wireless network.
  • the server 102 includes at least one of a server, multiple servers, a cloud computing platform, and a virtualization center.
  • the server 102 is used to provide background services for clients supporting virtual scenes.
  • the server 102 is responsible for the main calculation work and the terminal is responsible for the secondary calculation work; or the server 102 is responsible for the secondary calculation work and the terminal is responsible for the main calculation work.
  • the server 102 receives the data packets uploaded by each terminal, and filters other data packets that meet the conditions according to the BSSID and time information in the data packets to ensure that the terminals corresponding to these data packets are at the same time within a similar period of time.
  • the server 102 uses the predicted site of the filtered data packet to determine the site matching result corresponding to the BSSID, and delivers the site matching result to the corresponding terminal.
  • the target BSSID of at least one target AP In response to the subway being in the station state, obtain the target BSSID of at least one target AP, where the target AP is the AP scanned by the first terminal;
  • the first data packet includes the target BSSID and the first prediction site, and the first prediction site is determined by the first terminal according to the currently registered base station;
  • the site matching result is determined by the server according to the second data packet of at least one second terminal, the second data packet includes the BSSID of the AP scanned by the second terminal, and the second terminal determines according to the registered base station Second prediction site;
  • the first data packet further includes a first identification moment, the first identification moment is the moment when the first terminal obtains the target BSSID, and the second data packet further includes a second identification moment, the second identification moment is when the second terminal obtains the BSSID
  • the site matching result is that the second identification time in the second data packet belongs to the target time period, and the second predicted site corresponding to the target BSSID with the most occurrences.
  • the target time period is determined according to the first recognition time and the predetermined duration.
  • acquiring the target BSSID of at least one target AP includes:
  • the method before obtaining the target BSSID of at least one target AP in response to the subway being in the station state, the method further includes:
  • mapping table contains the corresponding relationship between the site and the base stations around the site;
  • the first predicted site is determined.
  • determining the first predicted site according to the mapping table and the base station information of the currently registered base station includes:
  • the site found is determined as the first predicted site
  • the first predicted site is determined based on the previous site, and the previous site is the site to which the subway arrived last time.
  • the first prediction site is determined based on the previous site, including:
  • Get the neighboring site of the previous site determine the intersection site of the found site and the neighboring site as the first predicted site.
  • update the current site according to the first predicted site and site matching results including:
  • the current site is updated to the site matching result.
  • the method before obtaining the target BSSID of at least one target AP in response to the subway being in the station state, the method further includes:
  • the operating state of the subway is determined according to the acceleration sensor data.
  • the operating state includes an inbound state, an outbound state, a stopped state, and an inter-station driving state.
  • FIG. 2 shows a flowchart of a site prediction method shown in an embodiment of the present application.
  • the site prediction method is used as an example for a first terminal with a data transmission function.
  • the method includes:
  • Step 201 in response to the subway being in a station state, acquire a target BSSID of at least one target AP, where the target AP is the AP scanned by the first terminal.
  • the AP is a wireless switch of the wireless network, including wireless gateways, wireless bridges and other devices, which can connect various wireless terminals.
  • wireless gateways including wireless gateways, wireless bridges and other devices, which can connect various wireless terminals.
  • one or more AP devices are usually installed in subway stations.
  • BSSID refers to the Media Access Control Address (MAC address) of the site, and the Basic Service Set (BSS) is defined by the Institute of Electrical and Electronics Engineers (IEEE) 802.11- Defined in the 1999 wireless local area network specification, it is used to indicate the coverage of an AP. In the service area of the BSS, terminals can communicate with each other.
  • BSSID is a locally managed IEEEMAC address, generated from a 46-bit arbitrary code, the individual/group bit of the address is set to 0, and the general/local address bit is set to 1, so a BSSID can uniquely identify an AP device .
  • the target BSSID of the target AP scanned after the first terminal enters the station can be used to indicate the current station.
  • Step 202 Upload the first data packet to the server.
  • the first data packet includes the target BSSID and the first prediction site, and the first prediction site is determined by the first terminal according to the currently registered base station.
  • the first terminal cannot directly obtain the corresponding site based on the scanned AP.
  • the base stations around the site are relatively fixed and usually do not move or change.
  • the first terminal First, the current site is predicted based on the currently registered base station, that is, the site corresponding to the currently registered base station is used as the first predicted site.
  • the first terminal uploads the first data packet containing the target BSSID and the first prediction site to the server, and the server further determines whether the prediction result of the first terminal is correct.
  • Step 203 Receive a site matching result sent by the server, and the site matching result is determined by the server according to the second data packet of the at least one second terminal.
  • the second data packet includes the BSSID of the AP scanned by the second terminal, and the second predicted site determined by the second terminal according to the registered base station.
  • the server after receiving the first data packet uploaded by the server, the server queries the predicted site of the second terminal according to the target BSSID, and determines the site matching based on the second predicted site corresponding to the target BSSID result.
  • Step 204 Update the current site according to the first predicted site and the site matching result.
  • the first terminal after determining the first predicted site, updates the current site to the first predicted site, and when receiving the site matching result sent by the server, updates the current site according to the site matching result.
  • the first terminal after determining the first predicted site, does not update the current site.
  • the first terminal updates the current site according to the first predicted site and the site matching result.
  • the terminal uploads the BSSID of the first predicted site and the scanned AP to the server when entering the site, and the server collects a large number of data uploaded by the terminal to filter out the site matching results corresponding to each BSSID , And deliver the site matching results to the terminal.
  • the prediction process does not require a complex neural network model, which is easy to implement and has high accuracy; the terminal first uses the current registered base station to obtain the first prediction site, and then based on the second prediction of a large number of other terminals.
  • the predicted site is corrected to obtain the current site, which avoids untimely site updates due to base station update delays, improves the accuracy and timeliness of site prediction, and avoids the power consumption caused by high-frequency scanning of APs when simply using APs to predict sites. .
  • FIG. 3 shows a flowchart of a site prediction method according to another embodiment of the present application.
  • the site prediction method is used as an example for a first terminal with a data transmission function.
  • the method includes:
  • Step 301 in response to the subway being in the station state, turn on the AP scanning function.
  • an AP scanning function is provided in the first terminal, and the AP scanning function is turned on when it is detected that the subway enters the station.
  • the first terminal After the first terminal turns on the AP scanning function, it scans nearby AP devices at a fixed frequency, and stops scanning when there is no new AP device within a certain period of time (for example, 3 seconds); or, the first terminal follows A fixed frequency scans nearby AP devices until the subway exits the station or the current station update is completed.
  • a wireless fidelity (Wireless Fidelity, WiFi) scanning tool is provided in the first terminal.
  • the first terminal reminds the user to turn on the corresponding control of the WiFi scanning tool through a message prompt.
  • the first terminal scans the WiFi devices in the subway station through the WiFi scanning tool.
  • Step 302 Determine an AP whose signal strength is within a preset interval as a target AP.
  • the AP device is directly determined as the target AP; if the first terminal scans multiple AP devices, each AP device is further obtained The AP whose signal strength belongs to the preset interval is determined as the target AP.
  • the first terminal selects APs whose signal strength is between -30dBm and -120dBm from the scanned APs as the target AP. If there is no AP whose signal strength belongs to the preset interval among the traced APs, then the signal strength The AP closest to the preset interval is determined as the target AP.
  • the first terminal After the first terminal turns on the AP scanning function, it scans four APs with signal strengths of -100dBm, -70dBm, -25dBm, and -10dBm respectively, and the first terminal sets the signal strength to -100dBm and -70dBm. Two APs are determined as target APs.
  • Step 303 Obtain the target BSSID of the target AP.
  • the BSSID can uniquely identify the address of an AP, so after determining the target AP, the first terminal obtains the target BSSID of each target AP.
  • the first terminal obtains the target BSSID06:69:6c:2f:d2:95 of the target AP with a signal strength of -100dBm, and the target BSSID06 of the target AP with a signal strength of -70dBm: 14:4b:72:2f:f8.
  • Step 304 Upload the first data packet to the server.
  • the first data packet includes the target BSSID and the first prediction site, and the first prediction site is determined by the first terminal according to the currently registered base station.
  • the first data packet further includes a first identification moment and signal strength, where the first identification moment is the moment when the first terminal obtains the target BSSID.
  • the first terminal obtains the first recognition moment of 06:69:6c:2f:d2:95 as 15:46:45.323 on November 28, and obtains the first recognition moment of 06:14:4b:72:2f:f8 It is 15:46:45.324 on November 28.
  • Table 1 shows data contained in a first data packet.
  • FIG. 4 shows a framework diagram of a subway mode.
  • the first terminal uploads the first data packet to the server through the data upload mechanism 402.
  • Step 305 Receive a site matching result sent by the server, and the site matching result is determined by the server according to the second data packet of the at least one second terminal.
  • the first data packet includes the first identification time, the target BSSID and the first prediction site
  • the first identification time is the time when the first terminal obtains the target BSSID
  • the second data packet also includes the second identification time
  • the second identification time is
  • the site matching result is that the second identification time in the second data packet belongs to the target time period, and the second predicted station with the most occurrences corresponding to the target BSSID.
  • the target time period is based on the first recognition time and the predetermined time period. The duration is determined.
  • the server acquires the data in the first data packet. First, determine the second data packet within the target time period according to the first recognition time, where the target time period is the time period corresponding to the pre-time before the first recognition time, for example, the first recognition time is 15:11, 28th: 46:45.323, the predetermined duration is 10s, the target time period is 15:46:35.323 on November 28 to 15:46:45.323 on November 28; the server then filters out the second data in the target time period according to the target BSSID In the package, the data packets with the same BSSID and the target BSSID, count the number of occurrences of each second predicted site in these data packets, and determine the second predicted site with the most occurrences as the site matching result, where the second predicted site is the second The terminal is determined according to the registered base station.
  • the server screens out 10 second data packets for the first data packet, and counts the occurrences of each second predicted site and its site.
  • the statistical results are shown in Table 2.
  • the ratio of the three second predicted sites is 14 :3:2, therefore, according to the maximum matching principle, Longhua Middle Road is determined as the site matching result corresponding to the target BSSID.
  • Target BSSID Second prediction site Site occurrences 06:69:6c:2f:d2:95 Longhua Middle Road 8 06:69:6c:2f:d2:95 Back beach 2
  • Step 306 In response to the site matching result being the same as the first predicted site, update the current site to the first predicted site.
  • the first terminal after receiving the site matching result, compares it with the first predicted site, and if the two are the same, the current site is updated as the first predicted site.
  • the first predicted site and the site matching result are both Longhua Middle Road, so the first terminal updates the current site to Longhua Middle Road.
  • the first terminal after determining the first prediction site, directly updates the current site to the first prediction site.
  • the server determines the site matching result, if it is the same as the first prediction site uploaded by the first terminal, no processing is performed , That is, the site matching result is not delivered to the first terminal.
  • Step 307 In response to the site matching result being different from the first predicted site, update the current site to the site matching result.
  • the first terminal updates the current site to Dong'an Road.
  • the site prediction method in the embodiment of the present application further includes the following steps:
  • the current site is updated as the first predicted site. That is, when the server determines that the site matching result is the same as the first predicted site sent by the first terminal, there is no need to feed back the site matching result to the first terminal, so that the first terminal does not receive the data sent by the server when the preset time is reached. After that, the site is updated automatically, thereby reducing the amount of data transmission of the server.
  • the first terminal obtains the target BSSID by filtering APs whose signal strength belongs to a preset interval, and the server queries the second data packet in the target time period according to the target BSSID, and feeds back the statistical result of the second prediction site to The first terminal, the first terminal corrects the predicted site according to the prediction results of a large number of second terminals in the same site, which improves the accuracy of site prediction, and the accurate site matching work is completed by the server, which reduces the power consumption of the first terminal .
  • the first terminal In order to further reduce power consumption, the first terminal only performs AP scanning and uploads data when detecting that the subway enters the station. Therefore, the first terminal needs to accurately determine the operating status of the subway. In a possible implementation manner, the first terminal uses sensor data to determine the operating status of the subway, and makes a preliminary prediction based on the currently registered base station and the corresponding relationship between the base station and the station to obtain the first prediction result.
  • steps 308 to 313 are further included:
  • Step 308 When in the subway mode, obtain the currently registered base station.
  • a subway mode 401 is preset in the first terminal, and the steps in the embodiment of the present application are executed after the first terminal enters the subway mode 401.
  • the first terminal determines the first predicted site by using the base station to locate the site. Due to the limited coverage of base stations, usually 2 to 5 kilometers, and because the signal quality in the subway is poor, major operators will deploy more base stations in the subway line to ensure the signal in the subway, so in different sites, terminals Will be registered to different base stations.
  • the first terminal When the first terminal receives the subway mode opening instruction, it acquires the currently registered base station in real time.
  • the user manually triggers the subway mode control to make the first terminal enter the subway mode;
  • the first terminal can use the system to bury the point, and automatically enter the subway mode when it detects that the current interface is switched to the interface that has successfully entered the station by brushing the code;
  • the first terminal can obtain the ambient sound through the microphone, and automatically enter the subway mode when it detects the alarm bell of the subway door being opened or closed.
  • Step 309 In response to the change of the currently registered base station, a mapping table is obtained, and the mapping table contains the corresponding relationship between the station and the base stations around the station.
  • mapping table is stored in the terminal.
  • the mapping table contains the corresponding relationship between each site and the base stations around the site.
  • the first terminal detects that the currently registered base station has changed, it accesses the database 404 through the base station-site query mechanism 403 in the subway mode 401 to obtain the mapping table.
  • Step 310 Determine the first predicted site according to the mapping table and the base station information of the currently registered base station.
  • the terminal obtains the base station information of the currently registered base station, and queries the corresponding base station in the mapping table to obtain the corresponding site, which is the first predicted site.
  • the current registered base station of the terminal is mcc-460-mnc-00-ci-25935874-pci-435-tac-6270, and the first predicted site is determined to be Shanghai Metro_Line 12_Longhua Middle Road according to the mapping table.
  • step 310 includes the following steps:
  • the site found is determined as the first predicted site.
  • the site corresponding to the currently registered base station in the mapping table is unique, the site can be determined as the first predicted site.
  • step 310b In response to finding the site corresponding to the currently registered base station from the mapping table, and the number of sites is at least two, determine the first predicted site based on the previous site, which is the site to which the subway arrived last time. If the number of sites corresponding to the currently registered base station in the mapping table is greater than 1, the first predicted site cannot be directly determined. Considering that the proximity relationship of each station in a subway line is fixed, and before the first terminal determines the first predicted station, the displayed station is the previous station, so you can take the neighboring station corresponding to the current base station and the previous station The intersection of the sites determines the first predicted site. In a possible implementation manner, step 310b further includes the following steps:
  • Step 1 Get the neighboring sites of the previous site.
  • Step 2 Determine the intersection site between the found site and the neighboring site as the first predicted site.
  • the first terminal stores information about each site of the current line, including neighboring sites corresponding to each site.
  • the number of sites corresponding to the currently registered base station obtained by the first terminal from the mapping table is greater than one
  • the terminal can also first determine the subway driving line based on the last n times the subway has reached the station, and each station is at There are only two adjacent stations in a subway running route, so the terminal can determine the two effective adjacent stations of the previous station based on the previous station and the subway running route.
  • the database of the back-end server stores the subway lines of each city
  • the first terminal can upload the name of the previous site to the server
  • the server queries the neighboring sites from the database and feeds it back to the first terminal.
  • the coverage area of the base station 601 corresponds to the station A
  • the coverage area of the base station 602 corresponds to the station B
  • the coverage area of the base station 603 corresponds to the station C and D
  • site E corresponds to the coverage of base station 604.
  • the subway where the user is traveling is from station B to station C.
  • the station currently displayed by the first terminal is station B.
  • the stations obtained by the current registered base station 603 are station C and station D.
  • the first predicted site is determined. Therefore, the first terminal obtains the neighboring sites of site B, and obtains the neighboring sites as sites A and C. By taking the intersection of neighboring sites A and C and sites C and D corresponding to the currently registered base station 603, Obtain the first predicted site as site C.
  • Step 311 Acquire acceleration sensor data when in the subway mode.
  • the first terminal Since the first terminal turns on the AP scanning function to obtain the BSSID of the target AP when entering the station, the first terminal needs to determine the operating status of the subway.
  • the terminal uses sensor data to determine the operating status of the subway.
  • an acceleration sensor is installed in the terminal, and the sensor data collected by the acceleration sensor is analyzed and calculated through the subway start-stop recognition algorithm 405, and the operating state of the subway is determined according to the sensor data.
  • the terminal may also use sensor data collected by other sensors such as a speed sensor and a position sensor to determine the operating status of the subway, which is not limited in this embodiment of the application.
  • sensor data collected by other sensors such as a speed sensor and a position sensor to determine the operating status of the subway, which is not limited in this embodiment of the application.
  • Step 312 Acquire vibration sensor data in response to the acceleration sensor data instructing the first terminal to accelerate or decelerate to move.
  • the acceleration sensor instructs the first terminal to accelerate or decelerate, it means that the subway may be decelerating to enter the station or accelerate out of the station.
  • the user holds the terminal to move around in the car, or transfers in the subway station, which will also cause the acceleration of the first terminal A change occurs, which affects the judgment result of the first terminal on the subway operating state. Therefore, it is necessary to determine whether the user is in a vibration state caused by the user's walking through the vibration sensor, so as to determine the subway operating state.
  • the vibration sensor may be a pedometer in the first terminal.
  • the first terminal combines the pedometer algorithm 406 on the basis of the subway start-stop recognition algorithm 405.
  • the acceleration sensor data indicates the first terminal
  • a threshold for example, 10 steps
  • the current change in the value of the acceleration sensor is caused by the subway operation.
  • Step 313 In response to the vibration sensor data indicating that the first terminal is in a non-vibrating state, the operating state of the subway is determined according to the acceleration sensor data.
  • the operating state includes an inbound state, an outbound state, a stopped state, and an inter-station driving state.
  • FIG. 7 Schematically, as shown in Figure 7, it shows a data distribution diagram of an acceleration sensor.
  • the data of this segment is the subway acceleration value within 800s, the sampling rate is 100Hz, and there are a total of 80,000 data points.
  • the acceleration in the figure is relatively stable. Part of it corresponds to the stop state of the subway, the denser part with a small amount of change corresponds to the driving state of the subway between stations, and the part where the acceleration changes drastically corresponds to the state of exiting or entering the subway.
  • Steps 308 to 310 and steps 311 to 313 do not have a strict sequence, and can be executed synchronously.
  • the first terminal determines the first predicted site by acquiring the currently registered base station and the site corresponding to the base station, without using a voice recognition model to acquire the station announcement voice, with low power consumption and high accuracy; combining acceleration sensor data and vibration
  • the sensor data judges the running status of the subway, avoids the influence of the user's walking on the judgment of the subway running status, and prevents the terminal from incorrectly judging the running status of the subway to perform unnecessary station prediction operations.
  • the flow of the site prediction method is shown in FIG. 8.
  • Step 801 Determine the first predicted site according to the currently registered base station.
  • step 802 when an incoming station is detected, the AP scanning function is turned on.
  • Step 803 Determine the target AP.
  • Step 804 Report the first data packet to the server.
  • the first data packet includes the target BSSID of the target AP, the first identification moment, and the first predicted station.
  • Step 805 The server determines the site matching result according to the first data packet and the second data packet.
  • Step 806 Determine whether the first predicted site is consistent with the site matching result. If yes, the first terminal directly updates the current station to the first predicted station, and returns to step 801 until exiting the subway mode; if not, execute step 807.
  • Step 807 The first terminal updates the current site to the site matching result. And return to step 801 until exiting the subway mode.
  • FIG. 9 shows a structural block diagram of a site prediction apparatus provided by an exemplary embodiment of the present application.
  • the device can be implemented as all or a part of the terminal through software, hardware or a combination of the two.
  • the device includes:
  • An obtaining module 901 configured to obtain a target BSSID of at least one target AP in response to the subway being in a station state, where the target AP is the AP scanned by the first terminal;
  • the data sending module 902 is configured to upload a first data packet to a server, the first data packet including the target BSSID and a first prediction site, and the first prediction site is determined by the first terminal according to the currently registered base station ;
  • the data receiving module 903 is configured to receive a site matching result sent by the server, where the site matching result is determined by the server according to a second data packet of at least one second terminal, and the second data packet includes the second The BSSID of the AP scanned by the terminal, and the second predicted site determined by the second terminal according to the registered base station;
  • the first update module 904 is configured to update the current site according to the first predicted site and the site matching result.
  • the first data packet further includes a first identification moment
  • the first identification moment is a moment when the first terminal obtains the target BSSID
  • the second data packet further includes a second identification moment
  • the second identification moment is the moment when the second terminal obtains the BSSID
  • the site matching result is that the second identification moment in the second data packet belongs to a target time period
  • the number of occurrences corresponding to the target BSSID For the second most predicted station, the target time period is determined according to the first identification moment and a predetermined time length.
  • the obtaining module 901 includes:
  • the scanning unit is configured to enable the AP scanning function in response to the subway being in the station state;
  • a first determining unit configured to determine an AP whose signal strength is within a preset interval as the target AP
  • the acquiring unit is configured to acquire the target BSSID of the target AP.
  • the device further includes:
  • the base station acquisition module is used to acquire the currently registered base station when in the subway mode
  • the relationship acquisition module is configured to acquire a mapping table in response to the change of the currently registered base station, and the mapping table contains the corresponding relationship between the site and the base stations around the site;
  • the determining module is configured to determine the first predicted site according to the mapping table and the base station information of the currently registered base station.
  • the determining module includes:
  • the second determining unit is configured to respond to finding a site corresponding to the currently registered base station from the mapping table, and the number of sites is one, and determining the site found as the first predicted site;
  • the third determining unit is configured to determine the first predicted site based on the previous site in response to finding the site corresponding to the currently registered base station from the mapping table, and the number of sites is at least two.
  • the station is the station where the subway arrived last time.
  • the third determining unit is also used for:
  • the first update module 904 includes:
  • a first update unit configured to update the current site to the first predicted site in response to the site matching result being the same as the first predicted site
  • the second update unit is configured to update the current site to the site matching result in response to the site matching result being different from the first predicted site.
  • the device further includes:
  • the second update module is configured to update the current site to the first predicted site in response to not receiving the site matching result sent by the server within a preset time period.
  • the device further includes:
  • the first data acquisition module is used to acquire acceleration sensor data when in subway mode
  • the second data acquisition module is configured to acquire vibration sensor data in response to the acceleration sensor data instructing the first terminal to accelerate or decelerate movement;
  • the state determination module is configured to determine the operating state of the subway according to the acceleration sensor data in response to the vibration sensor data indicating that the first terminal is in a non-vibrating state, and the operating state includes an inbound state, an outbound state, and a stop Status and driving status between stations.
  • FIG. 10 shows a structural block diagram of a terminal 1000 according to an exemplary embodiment of the present application.
  • the terminal 1000 may be an electronic device with an application program installed and running, such as a smart phone, a tablet computer, an e-book, a portable personal computer, and the like.
  • the terminal 1000 in this application may include one or more of the following components: a processor 1020, a memory 1010, and a screen 1030.
  • the processor 1020 may include one or more processing cores.
  • the processor 1020 uses various interfaces and lines to connect various parts of the entire terminal 1000, and executes the terminal by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1110, and calling data stored in the memory 1010.
  • Various functions and processing data of 1000 may use at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 1020 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like.
  • the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is used for rendering and drawing the content that needs to be displayed on the screen 1030; the modem is used for processing wireless communication. It is understandable that the above-mentioned modem may not be integrated into the processor 1020, but may be implemented by a communication chip alone.
  • the memory 1010 may include random access memory (RAM) or read-only memory (ROM).
  • the memory 1010 includes a non-transitory computer-readable storage medium.
  • the memory 1010 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 1010 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing an operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) ,
  • the instructions used to implement the foregoing various method embodiments, etc., the operating system may be the Android system (including the system based on the in-depth development of the Android system), the IOS system developed by Apple (including the system based on the in-depth development of the IOS system) Or other systems.
  • the data storage area can also store data created during use of the terminal 1000 (such as phone book, audio and video data, chat record data) and the like.
  • the screen 1030 may be a capacitive touch display screen, which is used to receive a user's touch operation on or near any suitable object such as a finger, a touch pen, etc., and display the user interface of each application program.
  • the touch screen is usually set on the front panel of the terminal 1000.
  • the touch screen can be designed as a full screen, curved screen or special-shaped screen.
  • the touch display screen can also be designed as a combination of a full screen and a curved screen, and a combination of a special-shaped screen and a curved screen, which is not limited in the embodiment of the present application.
  • the structure of the terminal 1000 shown in the above drawings does not constitute a limitation on the terminal 1000, and the terminal may include more or less components than those shown in the figure, or a combination of certain components. Components, or different component arrangements.
  • the terminal 1000 also includes components such as a radio frequency circuit, a photographing component, a sensor, an audio circuit, a Wi-Fi component, a power supply, and a Bluetooth component, which will not be repeated here.
  • the embodiments of the present application also provide a computer-readable storage medium that stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the site described in each of the above embodiments. method of prediction.
  • a computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the terminal reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the terminal executes the site prediction method provided in the various optional implementation manners of the foregoing aspects.
  • the functions described in the embodiments of the present application may be implemented by hardware, software, firmware, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on the computer-readable storage medium.
  • the computer-readable storage medium includes a computer storage medium and a communication medium, where the communication medium includes any medium that facilitates the transfer of a computer program from one place to another.
  • the storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiments of the present application belong to the field of artificial intelligence. Disclosed are a station prediction method and apparatus, a terminal, and a storage medium. Said method comprises: in response to a subway train being in a state of entering a station, acquiring a target BSSID of at least one target AP, the target AP being an AP scanned by a first terminal; uploading a first data packet to a server, the first data packet comprising the target BSSID and a first prediction station, and the first prediction station being determined by the first terminal according to a currently registered base station; receiving a station matching result sent by the server, the station matching result being determined by the server according to a second data packet of at least one second terminal; and updating a current station according to the first prediction station and the station matching result. The embodiments of the present application avoid not-timely station updating caused by update delay of a base station, improve the accuracy and timeliness of station prediction, and can avoid cases where high-frequency scanning of APs is needed when station prediction is performed by merely using APs, reducing the power consumption.

Description

站点预测方法、装置、终端及存储介质Site prediction method, device, terminal and storage medium
本申请要求于2020年03月09日提交的申请号为202010156632.2、发明名称为“站点预测方法、装置、终端及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application with an application number of 202010156632.2 and an invention title of "site prediction method, device, terminal and storage medium" filed on March 9, 2020, the entire content of which is incorporated into this application by reference .
技术领域Technical field
本申请实施例涉及人工智能技术领域,特别涉及一种站点预测方法、装置、终端及存储介质。The embodiments of the present application relate to the field of artificial intelligence technology, and in particular to a method, device, terminal, and storage medium for site prediction.
背景技术Background technique
人们在乘坐地铁等公共交通工具出行时,需要时刻注意当前停靠站点是否为自己的目标站点,而到站提醒功能则是一种提醒乘客在到达目标站时及时下车的功能。When people travel by subway or other public transportation, they need to always pay attention to whether the current stop is their target stop. The arrival reminder function is a function that reminds passengers to get off the bus when they arrive at the target stop.
相关技术中,终端通常利用传感器(例如加速度传感器、重力传感器和磁力传感器等)采集的数据,通过加速与减速计算交通工具是否进站或出站,并结合地图进行站点预测,或者通过语音识别交通工具的报站信息,识别当前所在的站点。In related technologies, the terminal usually uses data collected by sensors (such as acceleration sensors, gravity sensors, and magnetic sensors) to calculate whether a vehicle enters or exits the station through acceleration and deceleration, and combines the map to predict the station, or recognize the traffic through voice The station announcement information of the tool, to identify the current station.
发明内容Summary of the invention
本申请实施例提供了一种站点预测方法、装置、终端及存储介质。所述技术方案如下:The embodiments of the present application provide a site prediction method, device, terminal, and storage medium. The technical solution is as follows:
一方面,本申请实施例提供了一种站点预测方法,所述方法用于第一终端,所述方法包括:On the one hand, an embodiment of the present application provides a method for site prediction, the method is used for a first terminal, and the method includes:
响应于地铁处于进站状态,获取至少一个目标无线访问接入点(AccessPoint,AP)的目标基本服务集标识(Basic Service Set Identity Document,BSSID),所述目标AP是所述第一终端扫描到的AP;In response to the subway being in the station state, obtain the target basic service set identity (Basic Service Set Identity Document, BSSID) of at least one target wireless access point (AccessPoint, AP), and the target AP is scanned by the first terminal AP;
将第一数据包上传至服务器,所述第一数据包包括所述目标BSSID和第一预测站点,所述第一预测站点由所述第一终端根据当前注册基站确定;Uploading a first data packet to a server, the first data packet including the target BSSID and a first prediction site, the first prediction site being determined by the first terminal according to the currently registered base station;
接收所述服务器发送的站点匹配结果,所述站点匹配结果由所述服务器根据至少一个第二终端的第二数据包确定,所述第二数据包包括所述第二终端扫描到的AP的BSSID,以及所述第二终端根据注册基站确定出的第二预测站点;Receive a site matching result sent by the server, where the site matching result is determined by the server according to a second data packet of at least one second terminal, the second data packet including the BSSID of the AP scanned by the second terminal , And the second predicted site determined by the second terminal according to the registered base station;
根据所述第一预测站点和所述站点匹配结果更新当前站点。Update the current site according to the first predicted site and the site matching result.
另一方面,本申请实施例提供了一种站点预测装置,所述装置用于第一终端,所述装置包括:On the other hand, an embodiment of the present application provides a site prediction device, the device is used in a first terminal, and the device includes:
获取模块,用于响应于地铁处于进站状态,获取至少一个目标AP的目标BSSID,所述目标AP是所述第一终端扫描到的AP;An obtaining module, configured to obtain a target BSSID of at least one target AP in response to the subway being in a station state, where the target AP is the AP scanned by the first terminal;
数据发送模块,用于将第一数据包上传至服务器,所述第一数据包包括所述目标BSSID和第一预测站点,所述第一预测站点由所述第一终端根据当前注册基站确定;A data sending module, configured to upload a first data packet to a server, the first data packet including the target BSSID and a first prediction site, and the first prediction site is determined by the first terminal according to the currently registered base station;
数据接收模块,用于接收所述服务器发送的站点匹配结果,所述站点匹配结果由所述服务器根据至少一个第二终端的第二数据包确定,所述第二数据包包括所述第二终端扫描到的AP的BSSID,以及所述第二终端根据注册基站确定出的第二预测站点;A data receiving module, configured to receive a site matching result sent by the server, the site matching result being determined by the server according to a second data packet of at least one second terminal, the second data packet including the second terminal The scanned BSSID of the AP, and the second predicted site determined by the second terminal according to the registered base station;
第一更新模块,用于根据所述第一预测站点和所述站点匹配结果更新当前站点。The first update module is configured to update the current site according to the first predicted site and the site matching result.
另一方面,本申请实施例提供了一种终端,所述终端包括处理器和存储器;所述存储器存储有至少一条指令,所述至少一条指令用于被所述处理器执行以实现上述方面所述的站点预测方法。On the other hand, an embodiment of the present application provides a terminal, the terminal includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the foregoing aspects. The site prediction method described.
根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。终端的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该终端执行上述方面的各种可选实现方式中提供的站点预测方法。According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the terminal reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the terminal executes the site prediction method provided in the various optional implementation manners of the foregoing aspects.
附图说明Description of the drawings
图1是本申请一个示例性实施例提供的实施环境的示意图;Fig. 1 is a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;
图2是根据一示例性实施例示出的站点预测方法的流程图;Fig. 2 is a flow chart showing a method for site prediction according to an exemplary embodiment;
图3是根据另一示例性实施例示出的站点预测方法的流程图;Fig. 3 is a flow chart showing a method for site prediction according to another exemplary embodiment;
图4是根据一示例性实施例示出的地铁模式系统框架图;Fig. 4 is a frame diagram of a subway mode system according to an exemplary embodiment;
图5是根据另一示例性实施例示出的站点预测方法的流程图;Fig. 5 is a flow chart showing a method for site prediction according to another exemplary embodiment;
图6根据一示例性实施例示出的基站及对应站点的示意图;Fig. 6 shows a schematic diagram of a base station and corresponding sites according to an exemplary embodiment;
图7是根据一示例性实施例示出的加速度传感器数据的分布图;Fig. 7 is a distribution diagram showing acceleration sensor data according to an exemplary embodiment;
图8是根据另一示例性实施例示出的站点预测方法的流程图;Fig. 8 is a flow chart showing a method for site prediction according to another exemplary embodiment;
图9是根据一示例性实施例示出的站点预测装置的结构框图;Fig. 9 is a structural block diagram of a site prediction device according to an exemplary embodiment;
图10是根据一示例性实施例示出的终端的结构框图。Fig. 10 is a structural block diagram of a terminal according to an exemplary embodiment.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solutions, and advantages of the present application clearer, the implementation manners of the present application will be described in further detail below in conjunction with the accompanying drawings.
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。The "plurality" mentioned herein means two or more. "And/or" describes the association relationship of the associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects before and after are in an "or" relationship.
相关技术中,终端利用加速度传感器获取地铁的加速度方向和加速度值, 当加速度满足预设条件时,生成提示消息,提醒用户即将进站;或者通过麦克风获取地铁的报站语音,从报站语音中提取站点信息,将站点信息与预先获取的目的站点信息进行对比,若该站点信息与目的站点信息一致,则对用户进行到站提醒。In related technologies, the terminal uses the acceleration sensor to obtain the acceleration direction and acceleration value of the subway, and when the acceleration meets preset conditions, it generates a prompt message to remind the user that the user is about to enter the station; or obtains the subway station announcement voice through the microphone, from the station announcement voice The site information is extracted, and the site information is compared with the pre-obtained destination site information. If the site information is consistent with the destination site information, the user will be reminded of arrival.
然而,相关技术中单纯利用加速度传感器的数据无法准确分析出地铁的运动速度、方向和位置,终端内部的加速度传感器精确度较低,获取的数据误差较大,并且乘客的握持终端的姿态、动作以及在交通工具内部的行走也会对终端的传感器产生一定影响,因此实际应用价值不大;对于识别报站语音提取站点信息的方式,交通工具内环境噪声很大,终端利用降噪技术也无法准确识别语音播报内容,对于利用屏幕显示的站点信息,则需要摄像头拍摄,不具备实际可操作性。However, in the related art, the speed, direction and position of the subway cannot be accurately analyzed by simply using the data of the acceleration sensor. The acceleration sensor inside the terminal has low accuracy, and the error of the acquired data is large, and the posture of the passenger holding the terminal, Actions and walking inside the vehicle will also have a certain impact on the terminal’s sensors, so the actual application value is not great; for the method of recognizing station announcements and extracting station information, the environment inside the vehicle is very noisy, and the terminal uses noise reduction technology. It is not possible to accurately recognize the content of the voice broadcast. For the site information displayed on the screen, the camera needs to be photographed, which does not have actual operability.
为了解决上述问题,本申请实施例提供了一种站点预测方法,请参考图1,其示出了本申请一个示例性实施例提供的实施环境的示意图。该实施环境中包括第一终端101、服务器102和第二终端103。In order to solve the foregoing problems, an embodiment of the present application provides a site prediction method. Please refer to FIG. 1, which shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application. The implementation environment includes a first terminal 101, a server 102, and a second terminal 103.
第一终端101具有数据传输功能,当检测到地铁进站时,通过扫描站点内的AP,获取目标BSSID,并将包含目标BSSID和事先得到的第一预测站点的第一数据包上传至服务器102,再接收来自服务器102的站点匹配结果,从而更新当前站点。The first terminal 101 has a data transmission function. When detecting that the subway enters the station, it obtains the target BSSID by scanning the AP in the station, and uploads the first data packet containing the target BSSID and the first predicted station obtained in advance to the server 102 , And then receive the site matching result from the server 102 to update the current site.
可选的,第二终端102与第一终端101具备相同的功能,或安装有相同的客户端,将包含第二预测站点和对应的BSSID的第二数据包上传至服务器102,并接收来自服务器102的站点匹配结果,更新当前站点。Optionally, the second terminal 102 has the same function as the first terminal 101, or is installed with the same client, uploads the second data packet containing the second prediction site and the corresponding BSSID to the server 102, and receives it from the server 102 site matching results, update the current site.
图1中仅示出了四个终端,但在不同实施例中存在多个其它第二终端103可以接入服务器102。Only four terminals are shown in FIG. 1, but there are multiple other second terminals 103 that can access the server 102 in different embodiments.
第一终端101和第二终端103通过无线网络与服务器102相连。The first terminal 101 and the second terminal 103 are connected to the server 102 through a wireless network.
服务器102包括一台服务器、多台服务器、云计算平台和虚拟化中心中的至少一种。服务器102用于为支持虚拟场景的客户端提供后台服务。可选地,服务器102承担主要计算工作,终端承担次要计算工作;或者,服务器102承担次要计算工作,终端承担主要计算工作。The server 102 includes at least one of a server, multiple servers, a cloud computing platform, and a virtualization center. The server 102 is used to provide background services for clients supporting virtual scenes. Optionally, the server 102 is responsible for the main calculation work and the terminal is responsible for the secondary calculation work; or the server 102 is responsible for the secondary calculation work and the terminal is responsible for the main calculation work.
在一个示意性的例子中,服务器102接收各个终端上传的数据包,并根据数据包中的BSSID和时间信息筛选符合条件的其它数据包,保证这些数据包对应的终端在相近的时间内处于同一地铁站中,服务器102利用筛选出的数据包的预测站点确定该BSSID对应的站点匹配结果,并将站点匹配结果下发至对应的终端。In an illustrative example, the server 102 receives the data packets uploaded by each terminal, and filters other data packets that meet the conditions according to the BSSID and time information in the data packets to ensure that the terminals corresponding to these data packets are at the same time within a similar period of time. In a subway station, the server 102 uses the predicted site of the filtered data packet to determine the site matching result corresponding to the BSSID, and delivers the site matching result to the corresponding terminal.
本申请实施例提供的站点预测方法包括:The site prediction method provided by the embodiment of the present application includes:
响应于地铁处于进站状态,获取至少一个目标AP的目标BSSID,目标AP是第一终端扫描到的AP;In response to the subway being in the station state, obtain the target BSSID of at least one target AP, where the target AP is the AP scanned by the first terminal;
将第一数据包上传至服务器,第一数据包包括目标BSSID和第一预测站点,第一预测站点由第一终端根据当前注册基站确定;Upload the first data packet to the server, the first data packet includes the target BSSID and the first prediction site, and the first prediction site is determined by the first terminal according to the currently registered base station;
接收服务器发送的站点匹配结果,站点匹配结果由服务器根据至少一个第二终端的第二数据包确定,第二数据包包括第二终端扫描到的AP的BSSID,以及第二终端根据注册基站确定出的第二预测站点;Receive the site matching result sent by the server, the site matching result is determined by the server according to the second data packet of at least one second terminal, the second data packet includes the BSSID of the AP scanned by the second terminal, and the second terminal determines according to the registered base station Second prediction site;
根据第一预测站点和站点匹配结果更新当前站点。Update the current site according to the first predicted site and the site matching result.
可选的,第一数据包还包括第一识别时刻,第一识别时刻是第一终端获取目标BSSID的时刻,第二数据包还包括第二识别时刻,第二识别时刻是第二终端获取BSSID的时刻,站点匹配结果为第二数据包中第二识别时刻属于目标时间段,且目标BSSID对应的出现次数最多的第二预测站点,目标时间段根据第一识别时刻和预定时长确定。Optionally, the first data packet further includes a first identification moment, the first identification moment is the moment when the first terminal obtains the target BSSID, and the second data packet further includes a second identification moment, the second identification moment is when the second terminal obtains the BSSID The site matching result is that the second identification time in the second data packet belongs to the target time period, and the second predicted site corresponding to the target BSSID with the most occurrences. The target time period is determined according to the first recognition time and the predetermined duration.
可选的,响应于地铁处于进站状态,获取至少一个目标AP的目标BSSID,包括:Optionally, in response to the subway being in a station state, acquiring the target BSSID of at least one target AP includes:
响应于地铁处于进站状态,开启AP扫描功能;In response to the subway entering the station, turn on the AP scanning function;
将扫描到的信号强度属于预设区间的AP确定为目标AP;Determine the AP whose signal strength is in the preset interval as the target AP;
获取目标AP的目标BSSID。Obtain the target BSSID of the target AP.
可选的,响应于地铁处于进站状态,获取至少一个目标AP的目标BSSID之前,方法还包括:Optionally, before obtaining the target BSSID of at least one target AP in response to the subway being in the station state, the method further includes:
处于地铁模式时,获取当前注册基站;When in subway mode, get the current registered base station;
响应于当前注册基站改变,获取映射表,映射表中包含站点与站点周侧基站之间的对应关系;In response to the change of the current registered base station, a mapping table is obtained, and the mapping table contains the corresponding relationship between the site and the base stations around the site;
根据映射表和当前注册基站的基站信息,确定第一预测站点。According to the mapping table and the base station information of the currently registered base station, the first predicted site is determined.
可选的,根据映射表和当前注册基站的基站信息,确定第一预测站点,包括:Optionally, determining the first predicted site according to the mapping table and the base station information of the currently registered base station includes:
响应于从映射表中查找到当前注册基站对应的站点,且站点数量为一个,将查找到的站点确定为第一预测站点;In response to finding the site corresponding to the currently registered base station from the mapping table, and the number of sites is one, the site found is determined as the first predicted site;
响应于从映射表中查找到当前注册基站对应的站点,且站点数量为至少两个,基于上一站点确定第一预测站点,上一站点为最近一次确定地铁到达的站点。In response to finding the site corresponding to the currently registered base station from the mapping table, and the number of sites is at least two, the first predicted site is determined based on the previous site, and the previous site is the site to which the subway arrived last time.
可选的,基于上一站点确定第一预测站点,包括:Optionally, the first prediction site is determined based on the previous site, including:
获取上一站点的相邻站点;将查找到的站点与相邻站点的交集站点确定为第一预测站点。Get the neighboring site of the previous site; determine the intersection site of the found site and the neighboring site as the first predicted site.
可选的,根据第一预测站点和站点匹配结果更新当前站点,包括:Optionally, update the current site according to the first predicted site and site matching results, including:
响应于站点匹配结果与第一预测站点相同,将当前站点更新为第一预测站点;In response to the site matching result being the same as the first predicted site, update the current site to the first predicted site;
响应于站点匹配结果与第一预测站点不同,将当前站点更新为站点匹配结果。In response to the site matching result being different from the first predicted site, the current site is updated to the site matching result.
可选的,响应于地铁处于进站状态,获取至少一个目标AP的目标BSSID之前,方法还包括:Optionally, before obtaining the target BSSID of at least one target AP in response to the subway being in the station state, the method further includes:
处于地铁模式时,获取加速度传感器数据;Obtain acceleration sensor data when in subway mode;
响应于加速度传感器数据指示第一终端加速移动或减速移动,获取振动传 感器数据;In response to the acceleration sensor data instructing the first terminal to accelerate or decelerate to move, acquiring vibration sensor data;
响应于振动传感器数据指示第一终端处于非振动状态,根据加速度传感器数据确定地铁的运行状态,运行状态包括进站状态、出站状态、停止状态和站间行驶状态。In response to the vibration sensor data indicating that the first terminal is in a non-vibrating state, the operating state of the subway is determined according to the acceleration sensor data. The operating state includes an inbound state, an outbound state, a stopped state, and an inter-station driving state.
请参考图2,其示出了本申请的一个实施例示出的站点预测方法的流程图。本实施例以站点预测方法用于具备数据传输功能的第一终端为例进行说明,该方法包括:Please refer to FIG. 2, which shows a flowchart of a site prediction method shown in an embodiment of the present application. In this embodiment, the site prediction method is used as an example for a first terminal with a data transmission function. The method includes:
步骤201,响应于地铁处于进站状态,获取至少一个目标AP的目标BSSID,目标AP是第一终端扫描到的AP。 Step 201, in response to the subway being in a station state, acquire a target BSSID of at least one target AP, where the target AP is the AP scanned by the first terminal.
其中,AP是无线网络的无线交换机,包含无线网关、无线网桥等设备,能够把各个无线终端连接起来。为了保证乘客和工作人员能够正常连接网络,地铁站中通常设置有一台或多台AP设备。Among them, the AP is a wireless switch of the wireless network, including wireless gateways, wireless bridges and other devices, which can connect various wireless terminals. In order to ensure that passengers and staff can connect to the network normally, one or more AP devices are usually installed in subway stations.
BSSID是指站点的媒体存取控制位址(Media Access Control Address,MAC地址),基本服务集(Basic Service Set,BSS)是由电气和电子工程师协会(Institute of Electrical and Electronics Engineers,IEEE)802.11-1999无线局域网规范定义的,用于指示一个AP的覆盖范围,在BSS的服务区域内,终端可以相互通信。BSSID是一个本地管理的IEEEMAC地址,从一个46位的任意编码中产生,地址的个体/组位被设置为0,通用/本地地址位被设置为1,所以一个BSSID可以唯一标识一台AP设备。BSSID refers to the Media Access Control Address (MAC address) of the site, and the Basic Service Set (BSS) is defined by the Institute of Electrical and Electronics Engineers (IEEE) 802.11- Defined in the 1999 wireless local area network specification, it is used to indicate the coverage of an AP. In the service area of the BSS, terminals can communicate with each other. BSSID is a locally managed IEEEMAC address, generated from a 46-bit arbitrary code, the individual/group bit of the address is set to 0, and the general/local address bit is set to 1, so a BSSID can uniquely identify an AP device .
在一种可能的实施方式中,由于BSSID可以唯一标识地铁站内的一台AP设备,因此可以利用第一终端进站后扫描到的目标AP的目标BSSID表示当前所在的站点。In a possible implementation manner, since the BSSID can uniquely identify an AP device in a subway station, the target BSSID of the target AP scanned after the first terminal enters the station can be used to indicate the current station.
步骤202,将第一数据包上传至服务器,第一数据包包括目标BSSID和第一预测站点,第一预测站点由第一终端根据当前注册基站确定。Step 202: Upload the first data packet to the server. The first data packet includes the target BSSID and the first prediction site, and the first prediction site is determined by the first terminal according to the currently registered base station.
由于地铁站内的AP设备更新和变动比较频繁,因此第一终端无法直接根据扫描到的AP得到对应的站点,而站点周围的基站比较固定,通常不会移动或更换,可选的,第一终端首先根据当前注册基站预测当前站点,即将当前注册基站对应的站点作为第一预测站点。Because the AP equipment in the subway station is updated and changed frequently, the first terminal cannot directly obtain the corresponding site based on the scanned AP. The base stations around the site are relatively fixed and usually do not move or change. Optional, the first terminal First, the current site is predicted based on the currently registered base station, that is, the site corresponding to the currently registered base station is used as the first predicted site.
在一种可能的实施方式中,第一终端将包含目标BSSID和第一预测站点的第一数据包上传至服务器,由服务器进一步判断第一终端的预测结果是否正确。In a possible implementation manner, the first terminal uploads the first data packet containing the target BSSID and the first prediction site to the server, and the server further determines whether the prediction result of the first terminal is correct.
步骤203,接收服务器发送的站点匹配结果,站点匹配结果由服务器根据至少一个第二终端的第二数据包确定。Step 203: Receive a site matching result sent by the server, and the site matching result is determined by the server according to the second data packet of the at least one second terminal.
其中,第二数据包包括第二终端扫描到的AP的BSSID,以及第二终端根据注册基站确定出的第二预测站点。The second data packet includes the BSSID of the AP scanned by the second terminal, and the second predicted site determined by the second terminal according to the registered base station.
在一种可能的实施方式中,对于第一终端,服务器接收到其上传的第一数据包后,根据目标BSSID查询第二终端的预测站点,基于该目标BSSID对应的第二预测站点确定站点匹配结果。In a possible implementation manner, for the first terminal, after receiving the first data packet uploaded by the server, the server queries the predicted site of the second terminal according to the target BSSID, and determines the site matching based on the second predicted site corresponding to the target BSSID result.
步骤204,根据第一预测站点和站点匹配结果更新当前站点。Step 204: Update the current site according to the first predicted site and the site matching result.
在一种可能的实施方式中,第一终端确定第一预测站点后,将当前站点更新为第一预测站点,当接收到服务器发送的站点匹配结果时,根据站点匹配结果更新当前站点。In a possible implementation manner, after determining the first predicted site, the first terminal updates the current site to the first predicted site, and when receiving the site matching result sent by the server, updates the current site according to the site matching result.
可选的,第一终端确定第一预测站点后,并不更新当前站点,当接收到站点匹配结果时,再根据第一预测站点和站点匹配结果更新当前站点。Optionally, after determining the first predicted site, the first terminal does not update the current site. When receiving the site matching result, the first terminal updates the current site according to the first predicted site and the site matching result.
综上所述,本申请实施例中,终端在进站时将第一预测站点和扫描到的AP的BSSID上传到服务器,服务器通过收集大量终端上传的数据,筛选出各个BSSID对应的站点匹配结果,并将该站点匹配结果下发至终端,预测过程中不需要复杂的神经网络模型,容易实现且准确率高;终端首先利用当前注册基站获取第一预测站点,再根据大量其他终端的第二预测站点进行修正,得到当前站点,避免了由于基站更新延迟导致的站点更新不及时,提高了站点预测的准确性和时效性,同时避免了单纯利用AP预测站点时高频率扫描AP造成的功耗。To sum up, in the embodiment of this application, the terminal uploads the BSSID of the first predicted site and the scanned AP to the server when entering the site, and the server collects a large number of data uploaded by the terminal to filter out the site matching results corresponding to each BSSID , And deliver the site matching results to the terminal. The prediction process does not require a complex neural network model, which is easy to implement and has high accuracy; the terminal first uses the current registered base station to obtain the first prediction site, and then based on the second prediction of a large number of other terminals. The predicted site is corrected to obtain the current site, which avoids untimely site updates due to base station update delays, improves the accuracy and timeliness of site prediction, and avoids the power consumption caused by high-frequency scanning of APs when simply using APs to predict sites. .
请参考图3,其示出了本申请的另一个实施例示出的站点预测方法的流程图。本实施例以站点预测方法用于具备数据传输功能的第一终端为例进行说明,该方法包括:Please refer to FIG. 3, which shows a flowchart of a site prediction method according to another embodiment of the present application. In this embodiment, the site prediction method is used as an example for a first terminal with a data transmission function. The method includes:
步骤301,响应于地铁处于进站状态,开启AP扫描功能。 Step 301, in response to the subway being in the station state, turn on the AP scanning function.
在一种可能的实施方式中,第一终端内设置有AP扫描功能,当检测到地铁进站时,开启该AP扫描功能。In a possible implementation manner, an AP scanning function is provided in the first terminal, and the AP scanning function is turned on when it is detected that the subway enters the station.
可选的,第一终端开启AP扫描功能后,按照固定的频率扫描附近的AP设备,当一定时长(例如3秒钟)内没有新增的AP设备时,停止扫描;或者,第一终端按照固定的频率扫描附近的AP设备,直到地铁出站或当前站点更新完成。Optionally, after the first terminal turns on the AP scanning function, it scans nearby AP devices at a fixed frequency, and stops scanning when there is no new AP device within a certain period of time (for example, 3 seconds); or, the first terminal follows A fixed frequency scans nearby AP devices until the subway exits the station or the current station update is completed.
示意性的,第一终端内设置有无线保真(Wireless Fidelity,WiFi)扫描工具,在用户进站乘车时,第一终端通过消息提示提醒用户开启WiFi扫描工具的相应控件。当检测到地铁进站时,第一终端通过WiFi扫描工具扫描地铁站内的WiFi设备。Illustratively, a wireless fidelity (Wireless Fidelity, WiFi) scanning tool is provided in the first terminal. When the user enters the station and rides, the first terminal reminds the user to turn on the corresponding control of the WiFi scanning tool through a message prompt. When detecting that the subway enters the station, the first terminal scans the WiFi devices in the subway station through the WiFi scanning tool.
步骤302,将扫描到的信号强度属于预设区间的AP确定为目标AP。Step 302: Determine an AP whose signal strength is within a preset interval as a target AP.
在一种可能的实施方式中,若第一终端只扫描到一台AP设备,则直接将该AP设备确定为目标AP;若第一终端扫描到多台AP设备,则进一步获取各台AP设备的信号强度,将信号强度属于预设区间的AP确定为目标AP。In a possible implementation manner, if the first terminal only scans one AP device, the AP device is directly determined as the target AP; if the first terminal scans multiple AP devices, each AP device is further obtained The AP whose signal strength belongs to the preset interval is determined as the target AP.
可选的,第一终端从扫描到的AP中筛选信号强度属于-30dBm至-120dBm的AP作为目标AP,若描到的AP中不存在信号强度属于该预设区间的AP,则将信号强度最接近该预设区间的AP确定为目标AP。Optionally, the first terminal selects APs whose signal strength is between -30dBm and -120dBm from the scanned APs as the target AP. If there is no AP whose signal strength belongs to the preset interval among the traced APs, then the signal strength The AP closest to the preset interval is determined as the target AP.
示意性的,第一终端开启AP扫描功能后,扫描到四台AP,其信号强度分别为-100dBm、-70dBm、-25dBm和-10dBm,则第一终端将信号强度为-100dBm和-70dBm的两台AP确定为目标AP。Illustratively, after the first terminal turns on the AP scanning function, it scans four APs with signal strengths of -100dBm, -70dBm, -25dBm, and -10dBm respectively, and the first terminal sets the signal strength to -100dBm and -70dBm. Two APs are determined as target APs.
步骤303,获取目标AP的目标BSSID。Step 303: Obtain the target BSSID of the target AP.
BSSID可以唯一标识一台AP的地址,因此第一终端确定出目标AP后,获取各个目标AP的目标BSSID。The BSSID can uniquely identify the address of an AP, so after determining the target AP, the first terminal obtains the target BSSID of each target AP.
示意性的,基于步骤302中的示例,第一终端获取信号强度为-100dBm的目标AP的目标BSSID06:69:6c:2f:d2:95,以及信号强度为-70dBm的目标AP的目标BSSID06:14:4b:72:2f:f8。Illustratively, based on the example in step 302, the first terminal obtains the target BSSID06:69:6c:2f:d2:95 of the target AP with a signal strength of -100dBm, and the target BSSID06 of the target AP with a signal strength of -70dBm: 14:4b:72:2f:f8.
步骤304,将第一数据包上传至服务器,第一数据包包括目标BSSID和第一预测站点,第一预测站点由第一终端根据当前注册基站确定。Step 304: Upload the first data packet to the server. The first data packet includes the target BSSID and the first prediction site, and the first prediction site is determined by the first terminal according to the currently registered base station.
可选的,第一数据包除目标BSSID和第一预测站点之外,还包括第一识别时刻和信号强度,其中第一识别时刻是第一终端获取目标BSSID的时刻。例如,第一终端获取06:69:6c:2f:d2:95的第一识别时刻为11月28日15:46:45.323,获取06:14:4b:72:2f:f8的第一识别时刻为11月28日15:46:45.324。示意性的,请参考表1,其示出了一种第一数据包所包含的数据。Optionally, in addition to the target BSSID and the first predicted station, the first data packet further includes a first identification moment and signal strength, where the first identification moment is the moment when the first terminal obtains the target BSSID. For example, the first terminal obtains the first recognition moment of 06:69:6c:2f:d2:95 as 15:46:45.323 on November 28, and obtains the first recognition moment of 06:14:4b:72:2f:f8 It is 15:46:45.324 on November 28. Schematically, please refer to Table 1, which shows data contained in a first data packet.
Figure PCTCN2021074717-appb-000001
Figure PCTCN2021074717-appb-000001
表1Table 1
示意性的,请参考图4,其示出了一种地铁模式的框架图,第一终端通过数据上传机制402将第一数据包上传至服务器。Schematically, please refer to FIG. 4, which shows a framework diagram of a subway mode. The first terminal uploads the first data packet to the server through the data upload mechanism 402.
步骤305,接收服务器发送的站点匹配结果,站点匹配结果由服务器根据至少一个第二终端的第二数据包确定。Step 305: Receive a site matching result sent by the server, and the site matching result is determined by the server according to the second data packet of the at least one second terminal.
其中,第一数据包包括第一识别时刻、目标BSSID和第一预测站点,第一识别时刻是第一终端获取目标BSSID的时刻,第二数据包还包括第二识别时刻,第二识别时刻是第二终端获取BSSID的时刻,站点匹配结果为第二数据包中第二识别时刻属于目标时间段,且目标BSSID对应的出现次数最多的第二预测站点,目标时间段根据第一识别时刻和预定时长确定。Wherein, the first data packet includes the first identification time, the target BSSID and the first prediction site, the first identification time is the time when the first terminal obtains the target BSSID, the second data packet also includes the second identification time, and the second identification time is When the second terminal obtains the BSSID, the site matching result is that the second identification time in the second data packet belongs to the target time period, and the second predicted station with the most occurrences corresponding to the target BSSID. The target time period is based on the first recognition time and the predetermined time period. The duration is determined.
可选的,服务器接收到来自第一设备的第一数据包后,获取第一数据包中的数据。首先根据第一识别时刻,确定出目标时间段内的第二数据包,其中,目标时间段为第一识别时刻之前预时长对应的时间段,例如,第一识别时刻为11月28日15:46:45.323,预定时长为10s,则目标时间段为11月28日15:46:35.323至11月28日15:46:45.323;服务器再根据目标BSSID,筛选出目标时间段内的第二数据包中,BSSID与目标BSSID一致的数据包,统计这些数据包中各个第二预测站点出现的次数,将出现次数最多的第二预测站点确定为站点匹配结果,其中,第二预测站点是第二终端根据注册基站确定的。Optionally, after receiving the first data packet from the first device, the server acquires the data in the first data packet. First, determine the second data packet within the target time period according to the first recognition time, where the target time period is the time period corresponding to the pre-time before the first recognition time, for example, the first recognition time is 15:11, 28th: 46:45.323, the predetermined duration is 10s, the target time period is 15:46:35.323 on November 28 to 15:46:45.323 on November 28; the server then filters out the second data in the target time period according to the target BSSID In the package, the data packets with the same BSSID and the target BSSID, count the number of occurrences of each second predicted site in these data packets, and determine the second predicted site with the most occurrences as the site matching result, where the second predicted site is the second The terminal is determined according to the registered base station.
示意性的,服务器针对第一数据包筛选出10个第二数据包,并统计各个第二预测站点及其站点出现次数,统计结果如表2所示,三种第二预测站点的比例为14:3:2,因此依据最大匹配原则,确定龙华中路为目标BSSID对应的站点匹配结果。Illustratively, the server screens out 10 second data packets for the first data packet, and counts the occurrences of each second predicted site and its site. The statistical results are shown in Table 2. The ratio of the three second predicted sites is 14 :3:2, therefore, according to the maximum matching principle, Longhua Middle Road is determined as the site matching result corresponding to the target BSSID.
目标BSSIDTarget BSSID 第二预测站点Second prediction site 站点出现次数Site occurrences
06:69:6c:2f:d2:9506:69:6c:2f:d2:95 龙华中路Longhua Middle Road 88
06:69:6c:2f:d2:9506:69:6c:2f:d2:95 后滩Back beach 22
06:14:4b:72:2f:f806:14:4b:72:2f:f8 龙华中路Longhua Middle Road 66
06:14:4b:72:2f:f806:14:4b:72:2f:f8 东安路Dong'an Road 33
表2Table 2
步骤306,响应于站点匹配结果与第一预测站点相同,将当前站点更新为第一预测站点。Step 306: In response to the site matching result being the same as the first predicted site, update the current site to the first predicted site.
在一种可能的实施方式中,第一终端接收到站点匹配结果后,与第一预测站点比较,若二者相同,则将当前站点更新为第一预测站点,示意性的,基于步骤305中的示例,第一预测站点和站点匹配结果均为龙华中路,因此第一终端将当前站点更新为龙华中路。In a possible implementation manner, after receiving the site matching result, the first terminal compares it with the first predicted site, and if the two are the same, the current site is updated as the first predicted site. Illustratively, based on step 305 For example, the first predicted site and the site matching result are both Longhua Middle Road, so the first terminal updates the current site to Longhua Middle Road.
可选的,第一终端确定出第一预测站点后,直接将当前站点更新为第一预测站点,服务器确定出站点匹配结果后,若与第一终端上传的第一预测站点相同,则不作处理,即不向第一终端下发站点匹配结果。Optionally, after determining the first prediction site, the first terminal directly updates the current site to the first prediction site. After the server determines the site matching result, if it is the same as the first prediction site uploaded by the first terminal, no processing is performed , That is, the site matching result is not delivered to the first terminal.
步骤307,响应于站点匹配结果与第一预测站点不同,将当前站点更新为站点匹配结果。Step 307: In response to the site matching result being different from the first predicted site, update the current site to the site matching result.
示意性的,第一预测站点为龙华中路,而第一终端接收到的站点匹配结果为东安路,则第一终端将当前站点更新为东安路。Illustratively, if the first prediction site is Longhua Middle Road, and the site matching result received by the first terminal is Dong'an Road, the first terminal updates the current site to Dong'an Road.
在另一种可能的实施方式中,上述步骤304之后,本申请实施例中的站点预测方法还包括如下步骤:In another possible implementation manner, after the above step 304, the site prediction method in the embodiment of the present application further includes the following steps:
响应于预设时长内未接收到服务器发送的站点匹配结果,将当前站点更新为第一预测站点。即,当服务器确定站点匹配结果与第一终端所发送的第一预测站点相同时,无需向第一终端反馈站点匹配结果,使第一终端在达到预设时长且未接收到服务器所发送的数据后,自动进行站点更新,从而减少服务器的数据传输量。In response to not receiving the site matching result sent by the server within the preset time period, the current site is updated as the first predicted site. That is, when the server determines that the site matching result is the same as the first predicted site sent by the first terminal, there is no need to feed back the site matching result to the first terminal, so that the first terminal does not receive the data sent by the server when the preset time is reached. After that, the site is updated automatically, thereby reducing the amount of data transmission of the server.
本申请实施例中,第一终端通过筛选信号强度属于预设区间的AP,得到目标BSSID,服务器根据目标BSSID查询目标时间段内的第二数据包,并将第二预测站点的统计结果反馈至第一终端,第一终端根据同站点内大量第二终端的预测结果对预测站点进行修正,提高了站点预测的准确率,并且精确的站点匹配工作由服务器完成,降低了第一终端的功耗。In the embodiment of this application, the first terminal obtains the target BSSID by filtering APs whose signal strength belongs to a preset interval, and the server queries the second data packet in the target time period according to the target BSSID, and feeds back the statistical result of the second prediction site to The first terminal, the first terminal corrects the predicted site according to the prediction results of a large number of second terminals in the same site, which improves the accuracy of site prediction, and the accurate site matching work is completed by the server, which reduces the power consumption of the first terminal .
为了进一步降低功耗,第一终端只在检测到地铁进站时进行AP扫描并上传数据,因此第一终端需要准确判断地铁的运行状态。在一种可能的实施方式中,第一终端利用传感器数据判断地铁的运行状态,并根据当前注册基站以及基站和站点的对应关系进行初步的预测,得到第一预测结果。In order to further reduce power consumption, the first terminal only performs AP scanning and uploads data when detecting that the subway enters the station. Therefore, the first terminal needs to accurately determine the operating status of the subway. In a possible implementation manner, the first terminal uses sensor data to determine the operating status of the subway, and makes a preliminary prediction based on the currently registered base station and the corresponding relationship between the base station and the station to obtain the first prediction result.
在一种可能的实施方式中,在图3的基础上,请参考图5,上述步骤301之前,还包括步骤308至313:In a possible implementation manner, on the basis of FIG. 3, please refer to FIG. 5. Before step 301, steps 308 to 313 are further included:
步骤308,处于地铁模式时,获取当前注册基站。Step 308: When in the subway mode, obtain the currently registered base station.
示意性的,如图4所示,第一终端中预先设置有地铁模式401,本申请实施例中的步骤在第一终端进入地铁模式401后执行。Schematically, as shown in FIG. 4, a subway mode 401 is preset in the first terminal, and the steps in the embodiment of the present application are executed after the first terminal enters the subway mode 401.
在一种可能的实施方式中,第一终端采用基站定位站点的方式确定第一预 测站点。由于基站的覆盖范围有限,通常在2至5公里,并且由于地铁内信号质量较差,各大运营商会在地铁线路中部署更多的基站,确保地铁内的信号,因此在不同的站点,终端会注册到不同的基站。In a possible implementation manner, the first terminal determines the first predicted site by using the base station to locate the site. Due to the limited coverage of base stations, usually 2 to 5 kilometers, and because the signal quality in the subway is poor, major operators will deploy more base stations in the subway line to ensure the signal in the subway, so in different sites, terminals Will be registered to different base stations.
当第一终端接收到地铁模式开启指令时,实时获取当前注册基站。可选的,用户通过手动触发地铁模式的控件,使第一终端进入地铁模式;第一终端可以利用系统埋点,在检测到当前界面切换为刷码进站成功的界面时自动进入地铁模式;第一终端可以通过麦克风获取环境音,当检测到地铁开门或关门的警铃声时,自动进入地铁模式。When the first terminal receives the subway mode opening instruction, it acquires the currently registered base station in real time. Optionally, the user manually triggers the subway mode control to make the first terminal enter the subway mode; the first terminal can use the system to bury the point, and automatically enter the subway mode when it detects that the current interface is switched to the interface that has successfully entered the station by brushing the code; The first terminal can obtain the ambient sound through the microphone, and automatically enter the subway mode when it detects the alarm bell of the subway door being opened or closed.
步骤309,响应于当前注册基站改变,获取映射表,映射表中包含站点与站点周侧基站之间的对应关系。Step 309: In response to the change of the currently registered base station, a mapping table is obtained, and the mapping table contains the corresponding relationship between the station and the base stations around the station.
可选的,终端内存储有映射表,如表3所示,该映射表中包含各个站点与站点周侧基站间的对应关系。当第一终端检测到当前注册基站改变时,通过地铁模式401下的基站-站点查询机制403,访问数据库404,获取该映射表。Optionally, a mapping table is stored in the terminal. As shown in Table 3, the mapping table contains the corresponding relationship between each site and the base stations around the site. When the first terminal detects that the currently registered base station has changed, it accesses the database 404 through the base station-site query mechanism 403 in the subway mode 401 to obtain the mapping table.
Figure PCTCN2021074717-appb-000002
Figure PCTCN2021074717-appb-000002
表3table 3
步骤310,根据映射表和当前注册基站的基站信息,确定第一预测站点。Step 310: Determine the first predicted site according to the mapping table and the base station information of the currently registered base station.
在一种可能的实施方式中,终端获取当前注册基站的基站信息,在映射表中查询对应的基站,从而获得对应的站点,该站点为第一预测站点。例如,终端当前注册基站为mcc-460-mnc-00-ci-25935874-pci-435-tac-6270,根据映射表确定第一预测站点为上海地铁_12号线_龙华中路。In a possible implementation manner, the terminal obtains the base station information of the currently registered base station, and queries the corresponding base station in the mapping table to obtain the corresponding site, which is the first predicted site. For example, the current registered base station of the terminal is mcc-460-mnc-00-ci-25935874-pci-435-tac-6270, and the first predicted site is determined to be Shanghai Metro_Line 12_Longhua Middle Road according to the mapping table.
由于一个基站可能对应的站点数量大于1,此时无法直接根据映射表确定第一预测站点,在一种可能的实施方式中,步骤310包括如下步骤:Since the number of sites that a base station may correspond to is greater than 1, at this time, the first predicted site cannot be determined directly according to the mapping table. In a possible implementation manner, step 310 includes the following steps:
310a、响应于从映射表中查找到当前注册基站对应的站点,且站点数量为一个,将查找到的站点确定为第一预测站点。310a. In response to finding the site corresponding to the currently registered base station from the mapping table, and the number of sites is one, the site found is determined as the first predicted site.
若映射表中当前注册基站对应的站点唯一,则该站点可以确定为第一预测站点。If the site corresponding to the currently registered base station in the mapping table is unique, the site can be determined as the first predicted site.
310b、响应于从映射表中查找到当前注册基站对应的站点,且站点数量为至少两个,基于上一站点确定第一预测站点,上一站点为最近一次确定地铁到达的站点。若映射表中当前注册基站对应的站点数大于1,则无法直接确定第一预测站点。考虑到一条地铁线路中各个站点的邻近关系是固定的,并且第一终端确定第一预测站点之前,显示的站点为上一站点,因此可以通过取当前基站对应的站点与上一站点的相邻站点的交集确定第一预测站点。在一种可能的实施方式中,步骤310b还包括如下步骤:310b. In response to finding the site corresponding to the currently registered base station from the mapping table, and the number of sites is at least two, determine the first predicted site based on the previous site, which is the site to which the subway arrived last time. If the number of sites corresponding to the currently registered base station in the mapping table is greater than 1, the first predicted site cannot be directly determined. Considering that the proximity relationship of each station in a subway line is fixed, and before the first terminal determines the first predicted station, the displayed station is the previous station, so you can take the neighboring station corresponding to the current base station and the previous station The intersection of the sites determines the first predicted site. In a possible implementation manner, step 310b further includes the following steps:
步骤一,获取上一站点的相邻站点。Step 1: Get the neighboring sites of the previous site.
步骤二,将查找到的站点与相邻站点的交集站点确定为第一预测站点。Step 2: Determine the intersection site between the found site and the neighboring site as the first predicted site.
在一种可能的实施方式中,第一终端内存储有当前线路各个站点的信息,包括各站点对应的相邻站点,当第一终端从映射表中获取的当前注册基站对应的站点数量大于1时,获取上一站点(即当前终端所显示的站点)的相邻站点。若上一站点对应的相邻站点较多(例如上一站点为多条地铁线路的换乘站),终端还可以先基于最近n次确定地铁到达的站点确定出地铁行驶线路,每个站点在一条地铁行驶线路中只存在两个相邻站点,因此终端可以基于上一站点以及地铁行驶线路,确定出上一站点的两个有效相邻站点。In a possible implementation manner, the first terminal stores information about each site of the current line, including neighboring sites corresponding to each site. When the number of sites corresponding to the currently registered base station obtained by the first terminal from the mapping table is greater than one When, get the neighboring sites of the previous site (that is, the site displayed by the current terminal). If there are many adjacent stations corresponding to the last station (for example, the last station is an interchange station for multiple subway lines), the terminal can also first determine the subway driving line based on the last n times the subway has reached the station, and each station is at There are only two adjacent stations in a subway running route, so the terminal can determine the two effective adjacent stations of the previous station based on the previous station and the subway running route.
可选的,后台服务器的数据库中存储有各个城市的地铁线路,第一终端可以将上一站点的名称上传至服务器,由服务器从数据库中查询相邻站点,并反馈至第一终端。Optionally, the database of the back-end server stores the subway lines of each city, the first terminal can upload the name of the previous site to the server, and the server queries the neighboring sites from the database and feeds it back to the first terminal.
示意性的,请参考图6,第一终端当前所在的地铁线路中,基站601的覆盖范围内对应有站点A,基站602的覆盖范围内对应有站点B,基站603的覆盖范围内对应有站点C和D,基站604的覆盖范围内对应有站点E。用户所在地铁正在由站点B驶往站点C,当前第一终端显示的站点为站点B,当第一终端检测到地铁进站时,根据当前注册基站603获得的站点为站点C和站点D,无法确定第一预测站点,因此第一终端获取站点B的相邻站点,得到相邻站点为站点A和C,通过对相邻站点A和C与当前注册基站603对应的站点C和D取交集,得到第一预测站点为站点C。Schematically, please refer to FIG. 6. In the subway line where the first terminal is currently located, the coverage area of the base station 601 corresponds to the station A, the coverage area of the base station 602 corresponds to the station B, and the coverage area of the base station 603 corresponds to the station C and D, site E corresponds to the coverage of base station 604. The subway where the user is traveling is from station B to station C. The station currently displayed by the first terminal is station B. When the first terminal detects that the subway is entering the station, the stations obtained by the current registered base station 603 are station C and station D. The first predicted site is determined. Therefore, the first terminal obtains the neighboring sites of site B, and obtains the neighboring sites as sites A and C. By taking the intersection of neighboring sites A and C and sites C and D corresponding to the currently registered base station 603, Obtain the first predicted site as site C.
步骤311,处于地铁模式时,获取加速度传感器数据。Step 311: Acquire acceleration sensor data when in the subway mode.
由于第一终端在进站状态时开启AP扫描功能获取目标AP的BSSID,因此第一终端需要判断地铁的运行状态。Since the first terminal turns on the AP scanning function to obtain the BSSID of the target AP when entering the station, the first terminal needs to determine the operating status of the subway.
在一种可能的实施方式中,终端利用传感器数据确定地铁的运行状态。如图4所示,终端内安装有加速度传感器,通过地铁启停识别算法405,将加速度传感器采集到的传感器数据进行分析计算,根据传感器数据确定地铁的运行状态。In a possible implementation manner, the terminal uses sensor data to determine the operating status of the subway. As shown in FIG. 4, an acceleration sensor is installed in the terminal, and the sensor data collected by the acceleration sensor is analyzed and calculated through the subway start-stop recognition algorithm 405, and the operating state of the subway is determined according to the sensor data.
可选的,终端还可以利用速度传感器、位置传感器等其他传感器采集的传感器数据判断地铁的运行状态,本申请实施例对此不作限定。Optionally, the terminal may also use sensor data collected by other sensors such as a speed sensor and a position sensor to determine the operating status of the subway, which is not limited in this embodiment of the application.
步骤312,响应于加速度传感器数据指示第一终端加速移动或减速移动,获取振动传感器数据。Step 312: Acquire vibration sensor data in response to the acceleration sensor data instructing the first terminal to accelerate or decelerate to move.
当加速度传感器指示第一终端加速或减速移动时,说明地铁可能正在减速进站或加速出站,然而,用户握持终端在车厢内走动,或者在地铁站内换乘同样会使第一终端的加速度产生变化,从而影响第一终端对地铁运行状态的判断结果,因此需要通过振动传感器判断用户是否处于用户走动造成的振动状态,从而确定地铁的运行状态。When the acceleration sensor instructs the first terminal to accelerate or decelerate, it means that the subway may be decelerating to enter the station or accelerate out of the station. However, the user holds the terminal to move around in the car, or transfers in the subway station, which will also cause the acceleration of the first terminal A change occurs, which affects the judgment result of the first terminal on the subway operating state. Therefore, it is necessary to determine whether the user is in a vibration state caused by the user's walking through the vibration sensor, so as to determine the subway operating state.
在一种可能的实施方式中,振动传感器可以是第一终端内的计步器,第一终端在地铁启停识别算法405的基础上结合计步器算法406,当加速度传感器数据指示第一终端加速或减速移动时,再根据计步器记录的步数判断用户是否走 动,可选的,当计步器的步数低于阈值(例如10步)时,确定第一终端处于非振动状态,当前加速度传感器的数值变化是由地铁运行产生的。In a possible implementation, the vibration sensor may be a pedometer in the first terminal. The first terminal combines the pedometer algorithm 406 on the basis of the subway start-stop recognition algorithm 405. When the acceleration sensor data indicates the first terminal When accelerating or decelerating the movement, judge whether the user is walking according to the number of steps recorded by the pedometer. Optionally, when the number of steps of the pedometer is lower than a threshold (for example, 10 steps), it is determined that the first terminal is in a non-vibrating state, The current change in the value of the acceleration sensor is caused by the subway operation.
步骤313,响应于振动传感器数据指示第一终端处于非振动状态,根据加速度传感器数据确定地铁的运行状态,运行状态包括进站状态、出站状态、停止状态和站间行驶状态。Step 313: In response to the vibration sensor data indicating that the first terminal is in a non-vibrating state, the operating state of the subway is determined according to the acceleration sensor data. The operating state includes an inbound state, an outbound state, a stopped state, and an inter-station driving state.
示意性的,如图7所示,其示出了一种加速度传感器数据分布图,该段数据为800s内的地铁加速度值,采样率为100Hz,共80000个数据点,图中加速度较平稳的部分对应地铁的停止状态,较密集且变化幅度小的部分对应地铁的站间行驶状态,而加速度剧烈变化的部分对应地铁出站状态或进站状态。Schematically, as shown in Figure 7, it shows a data distribution diagram of an acceleration sensor. The data of this segment is the subway acceleration value within 800s, the sampling rate is 100Hz, and there are a total of 80,000 data points. The acceleration in the figure is relatively stable. Part of it corresponds to the stop state of the subway, the denser part with a small amount of change corresponds to the driving state of the subway between stations, and the part where the acceleration changes drastically corresponds to the state of exiting or entering the subway.
步骤308至310与步骤311至313并无严格的先后顺序,可以同步执行。 Steps 308 to 310 and steps 311 to 313 do not have a strict sequence, and can be executed synchronously.
本申请实施例中,第一终端通过获取当前注册基站以及该基站对应的站点确定第一预测站点,无需通过语音识别模型获取报站语音,功耗低且准确率高;结合加速度传感器数据和振动传感器数据判断地铁的运行状态,避免了用户行走对地铁运行状态判断的影响,防止终端错误判断地铁运行状态而进行不必要的站点预测操作。In the embodiment of the present application, the first terminal determines the first predicted site by acquiring the currently registered base station and the site corresponding to the base station, without using a voice recognition model to acquire the station announcement voice, with low power consumption and high accuracy; combining acceleration sensor data and vibration The sensor data judges the running status of the subway, avoids the influence of the user's walking on the judgment of the subway running status, and prevents the terminal from incorrectly judging the running status of the subway to perform unnecessary station prediction operations.
结合上述实施例,在一个示意性的例子中,站点预测方法的流程如图8所示。With reference to the foregoing embodiment, in an illustrative example, the flow of the site prediction method is shown in FIG. 8.
步骤801,根据当前注册基站确定第一预测站点。Step 801: Determine the first predicted site according to the currently registered base station.
步骤802,检测到进站时,开启AP扫描功能。In step 802, when an incoming station is detected, the AP scanning function is turned on.
步骤803,确定目标AP。Step 803: Determine the target AP.
步骤804,将第一数据包上报至服务器。其中,第一数据包包括目标AP的目标BSSID、第一识别时刻和第一预测站点。Step 804: Report the first data packet to the server. Wherein, the first data packet includes the target BSSID of the target AP, the first identification moment, and the first predicted station.
步骤805,服务器根据第一数据包和第二数据包确定站点匹配结果。Step 805: The server determines the site matching result according to the first data packet and the second data packet.
步骤806,判断第一预测站点与站点匹配结果是否一致。若是,则第一终端直接将当前站点更新为第一预测站点,并返回步骤801,直至退出地铁模式;若否,则执行步骤807。Step 806: Determine whether the first predicted site is consistent with the site matching result. If yes, the first terminal directly updates the current station to the first predicted station, and returns to step 801 until exiting the subway mode; if not, execute step 807.
步骤807,第一终端将当前站点更新为站点匹配结果。并返回步骤801,直至退出地铁模式。Step 807: The first terminal updates the current site to the site matching result. And return to step 801 until exiting the subway mode.
请参考图9,其示出了本申请一个示例性实施例提供的站点预测装置的结构框图。该装置可以通过软件、硬件或者两者的结合实现成为终端的全部或一部分。该装置包括:Please refer to FIG. 9, which shows a structural block diagram of a site prediction apparatus provided by an exemplary embodiment of the present application. The device can be implemented as all or a part of the terminal through software, hardware or a combination of the two. The device includes:
获取模块901,用于响应于地铁处于进站状态,获取至少一个目标AP的目标BSSID,所述目标AP是所述第一终端扫描到的AP;An obtaining module 901, configured to obtain a target BSSID of at least one target AP in response to the subway being in a station state, where the target AP is the AP scanned by the first terminal;
数据发送模块902,用于将第一数据包上传至服务器,所述第一数据包包括所述目标BSSID和第一预测站点,所述第一预测站点由所述第一终端根据当前注册基站确定;The data sending module 902 is configured to upload a first data packet to a server, the first data packet including the target BSSID and a first prediction site, and the first prediction site is determined by the first terminal according to the currently registered base station ;
数据接收模块903,用于接收所述服务器发送的站点匹配结果,所述站点匹 配结果由所述服务器根据至少一个第二终端的第二数据包确定,所述第二数据包包括所述第二终端扫描到的AP的BSSID,以及所述第二终端根据注册基站确定出的第二预测站点;The data receiving module 903 is configured to receive a site matching result sent by the server, where the site matching result is determined by the server according to a second data packet of at least one second terminal, and the second data packet includes the second The BSSID of the AP scanned by the terminal, and the second predicted site determined by the second terminal according to the registered base station;
第一更新模块904,用于根据所述第一预测站点和所述站点匹配结果更新当前站点。The first update module 904 is configured to update the current site according to the first predicted site and the site matching result.
可选的,所述第一数据包还包括第一识别时刻,所述第一识别时刻是所述第一终端获取所述目标BSSID的时刻,所述第二数据包还包括第二识别时刻,所述第二识别时刻是所述第二终端获取BSSID的时刻,所述站点匹配结果为所述第二数据包中所述第二识别时刻属于目标时间段,且所述目标BSSID对应的出现次数最多的第二预测站点,所述目标时间段根据所述第一识别时刻和预定时长确定。Optionally, the first data packet further includes a first identification moment, the first identification moment is a moment when the first terminal obtains the target BSSID, and the second data packet further includes a second identification moment, The second identification moment is the moment when the second terminal obtains the BSSID, the site matching result is that the second identification moment in the second data packet belongs to a target time period, and the number of occurrences corresponding to the target BSSID For the second most predicted station, the target time period is determined according to the first identification moment and a predetermined time length.
可选的,所述获取模块901,包括:Optionally, the obtaining module 901 includes:
扫描单元,用于响应于地铁处于所述进站状态,开启AP扫描功能;The scanning unit is configured to enable the AP scanning function in response to the subway being in the station state;
第一确定单元,用于将扫描到的信号强度属于预设区间的AP确定为所述目标AP;A first determining unit, configured to determine an AP whose signal strength is within a preset interval as the target AP;
获取单元,用于获取所述目标AP的所述目标BSSID。The acquiring unit is configured to acquire the target BSSID of the target AP.
可选的,所述装置还包括:Optionally, the device further includes:
基站获取模块,用于处于地铁模式时,获取所述当前注册基站;The base station acquisition module is used to acquire the currently registered base station when in the subway mode;
关系获取模块,用于响应于所述当前注册基站改变,获取映射表,所述映射表中包含站点与站点周侧基站之间的对应关系;The relationship acquisition module is configured to acquire a mapping table in response to the change of the currently registered base station, and the mapping table contains the corresponding relationship between the site and the base stations around the site;
确定模块,用于根据所述映射表和所述当前注册基站的基站信息,确定所述第一预测站点。The determining module is configured to determine the first predicted site according to the mapping table and the base station information of the currently registered base station.
可选的,所述确定模块,包括:Optionally, the determining module includes:
第二确定单元,用于响应于从所述映射表中查找到所述当前注册基站对应的站点,且站点数量为一个,将查找到的站点确定为所述第一预测站点;The second determining unit is configured to respond to finding a site corresponding to the currently registered base station from the mapping table, and the number of sites is one, and determining the site found as the first predicted site;
第三确定单元,用于响应于从所述映射表中查找到所述当前注册基站对应的站点,且站点数量为至少两个,基于上一站点确定所述第一预测站点,所述上一站点为最近一次确定地铁到达的站点。The third determining unit is configured to determine the first predicted site based on the previous site in response to finding the site corresponding to the currently registered base station from the mapping table, and the number of sites is at least two. The station is the station where the subway arrived last time.
可选的,第三确定单元,还用于:Optionally, the third determining unit is also used for:
获取所述上一站点的相邻站点;将查找到的站点与所述相邻站点的交集站点确定为所述第一预测站点。Acquire neighboring sites of the previous site; determine an intersection site of the found site and the neighboring site as the first predicted site.
可选的,所述第一更新模块904,包括:Optionally, the first update module 904 includes:
第一更新单元,用于响应于所述站点匹配结果与所述第一预测站点相同,将所述当前站点更新为所述第一预测站点;A first update unit, configured to update the current site to the first predicted site in response to the site matching result being the same as the first predicted site;
第二更新单元,用于响应于所述站点匹配结果与所述第一预测站点不同,将所述当前站点更新为所述站点匹配结果。The second update unit is configured to update the current site to the site matching result in response to the site matching result being different from the first predicted site.
可选的,所述装置还包括:Optionally, the device further includes:
第二更新模块,用于响应于预设时长内未接收到所述服务器发送的所述站点匹配结果,将所述当前站点更新为所述第一预测站点。The second update module is configured to update the current site to the first predicted site in response to not receiving the site matching result sent by the server within a preset time period.
可选的,所述装置还包括:Optionally, the device further includes:
第一数据获取模块,用于处于地铁模式时,获取加速度传感器数据;The first data acquisition module is used to acquire acceleration sensor data when in subway mode;
第二数据获取模块,用于响应于所述加速度传感器数据指示所述第一终端加速移动或减速移动,获取振动传感器数据;The second data acquisition module is configured to acquire vibration sensor data in response to the acceleration sensor data instructing the first terminal to accelerate or decelerate movement;
状态确定模块,用于响应于所述振动传感器数据指示所述第一终端处于非振动状态,根据所述加速度传感器数据确定地铁的运行状态,所述运行状态包括进站状态、出站状态、停止状态和站间行驶状态。The state determination module is configured to determine the operating state of the subway according to the acceleration sensor data in response to the vibration sensor data indicating that the first terminal is in a non-vibrating state, and the operating state includes an inbound state, an outbound state, and a stop Status and driving status between stations.
请参考图10,其示出了本申请一个示例性实施例提供的终端1000的结构方框图。该终端1000可以是智能手机、平板电脑、电子书、便携式个人计算机等安装并运行有应用程序的电子设备。本申请中的终端1000可以包括一个或多个如下部件:处理器1020、存储器1010和屏幕1030。Please refer to FIG. 10, which shows a structural block diagram of a terminal 1000 according to an exemplary embodiment of the present application. The terminal 1000 may be an electronic device with an application program installed and running, such as a smart phone, a tablet computer, an e-book, a portable personal computer, and the like. The terminal 1000 in this application may include one or more of the following components: a processor 1020, a memory 1010, and a screen 1030.
处理器1020可以包括一个或者多个处理核心。处理器1020利用各种接口和线路连接整个终端1000内的各个部分,通过运行或执行存储在存储器1110内的指令、程序、代码集或指令集,以及调用存储在存储器1010内的数据,执行终端1000的各种功能和处理数据。可选地,处理器1020可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1020可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责屏幕1030所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1020中,单独通过一块通信芯片进行实现。The processor 1020 may include one or more processing cores. The processor 1020 uses various interfaces and lines to connect various parts of the entire terminal 1000, and executes the terminal by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1110, and calling data stored in the memory 1010. Various functions and processing data of 1000. Optionally, the processor 1020 may use at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). A kind of hardware form to realize. The processor 1020 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is used for rendering and drawing the content that needs to be displayed on the screen 1030; the modem is used for processing wireless communication. It is understandable that the above-mentioned modem may not be integrated into the processor 1020, but may be implemented by a communication chip alone.
存储器1010可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器1010包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1010可用于存储指令、程序、代码、代码集或指令集。存储器1010可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等,该操作系统可以是安卓(Android)系统(包括基于Android系统深度开发的系统)、苹果公司开发的IOS系统(包括基于IOS系统深度开发的系统)或其它系统。存储数据区还可以存储终端1000在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 1010 may include random access memory (RAM) or read-only memory (ROM). Optionally, the memory 1010 includes a non-transitory computer-readable storage medium. The memory 1010 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 1010 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing an operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , The instructions used to implement the foregoing various method embodiments, etc., the operating system may be the Android system (including the system based on the in-depth development of the Android system), the IOS system developed by Apple (including the system based on the in-depth development of the IOS system) Or other systems. The data storage area can also store data created during use of the terminal 1000 (such as phone book, audio and video data, chat record data) and the like.
屏幕1030可以为电容式触摸显示屏,该电容式触摸显示屏用于接收用户使用手指、触摸笔等任何适合的物体在其上或附近的触摸操作,以及显示各个应用程序的用户界面。触摸显示屏通常设置在终端1000的前面板。触摸显示屏可被设计成为全面屏、曲面屏或异型屏。触摸显示屏还可被设计成为全面屏与曲 面屏的结合,异型屏与曲面屏的结合,本申请实施例对此不加以限定。The screen 1030 may be a capacitive touch display screen, which is used to receive a user's touch operation on or near any suitable object such as a finger, a touch pen, etc., and display the user interface of each application program. The touch screen is usually set on the front panel of the terminal 1000. The touch screen can be designed as a full screen, curved screen or special-shaped screen. The touch display screen can also be designed as a combination of a full screen and a curved screen, and a combination of a special-shaped screen and a curved screen, which is not limited in the embodiment of the present application.
除此之外,本领域技术人员可以理解,上述附图所示出的终端1000的结构并不构成对终端1000的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,终端1000中还包括射频电路、拍摄组件、传感器、音频电路、Wi-Fi组件、电源、蓝牙组件等部件,在此不再赘述。In addition, those skilled in the art can understand that the structure of the terminal 1000 shown in the above drawings does not constitute a limitation on the terminal 1000, and the terminal may include more or less components than those shown in the figure, or a combination of certain components. Components, or different component arrangements. For example, the terminal 1000 also includes components such as a radio frequency circuit, a photographing component, a sensor, an audio circuit, a Wi-Fi component, a power supply, and a Bluetooth component, which will not be repeated here.
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如上各个实施例所述的站点预测方法。The embodiments of the present application also provide a computer-readable storage medium that stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the site described in each of the above embodiments. method of prediction.
根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。终端的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该终端执行上述方面的各种可选实现方式中提供的站点预测方法。According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the terminal reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the terminal executes the site prediction method provided in the various optional implementation manners of the foregoing aspects.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读存储介质中或者作为计算机可读存储介质上的一个或多个指令或代码进行传输。计算机可读存储介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that, in one or more of the foregoing examples, the functions described in the embodiments of the present application may be implemented by hardware, software, firmware, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on the computer-readable storage medium. The computer-readable storage medium includes a computer storage medium and a communication medium, where the communication medium includes any medium that facilitates the transfer of a computer program from one place to another. The storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only optional embodiments of this application and are not intended to limit this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the protection of this application. Within range.

Claims (20)

  1. 一种站点预测方法,其中,所述方法用于第一终端,所述方法包括:A method for site prediction, wherein the method is applied to a first terminal, and the method includes:
    响应于地铁处于进站状态,获取至少一个目标无线访问接入点AP的目标基本服务集标识BSSID,所述目标AP是所述第一终端扫描到的AP;In response to the subway being in a station state, acquiring a target basic service set identifier BSSID of at least one target wireless access point AP, where the target AP is the AP scanned by the first terminal;
    将第一数据包上传至服务器,所述第一数据包包括所述目标BSSID和第一预测站点,所述第一预测站点由所述第一终端根据当前注册基站确定;Uploading a first data packet to a server, the first data packet including the target BSSID and a first prediction site, the first prediction site being determined by the first terminal according to the currently registered base station;
    接收所述服务器发送的站点匹配结果,所述站点匹配结果由所述服务器根据至少一个第二终端的第二数据包确定,所述第二数据包包括所述第二终端扫描到的AP的BSSID,以及所述第二终端根据注册基站确定出的第二预测站点;Receive a site matching result sent by the server, where the site matching result is determined by the server according to a second data packet of at least one second terminal, the second data packet including the BSSID of the AP scanned by the second terminal , And the second predicted site determined by the second terminal according to the registered base station;
    根据所述第一预测站点和所述站点匹配结果更新当前站点。Update the current site according to the first predicted site and the site matching result.
  2. 根据权利要求1所述的方法,其中,所述第一数据包还包括第一识别时刻,所述第一识别时刻是所述第一终端获取所述目标BSSID的时刻,所述第二数据包还包括第二识别时刻,所述第二识别时刻是所述第二终端获取BSSID的时刻,所述站点匹配结果为所述第二数据包中所述第二识别时刻属于目标时间段,且所述目标BSSID对应的出现次数最多的第二预测站点,所述目标时间段根据所述第一识别时刻和预定时长确定。The method according to claim 1, wherein the first data packet further includes a first identification moment, the first identification moment is the moment when the first terminal obtains the target BSSID, and the second data packet It also includes a second identification moment, where the second identification moment is the moment when the second terminal obtains the BSSID, and the site matching result is that the second identification moment in the second data packet belongs to the target time period, and so For the second predicted site with the largest number of occurrences corresponding to the target BSSID, the target time period is determined according to the first identification moment and a predetermined duration.
  3. 根据权利要求1或2所述的方法,其中,所述响应于地铁处于进站状态,获取至少一个目标AP的目标BSSID,包括:The method according to claim 1 or 2, wherein the acquiring the target BSSID of at least one target AP in response to the subway being in a station state includes:
    响应于地铁处于所述进站状态,开启AP扫描功能;In response to the subway being in the station state, turn on the AP scanning function;
    将扫描到的信号强度属于预设区间的AP确定为所述目标AP;Determining an AP whose signal strength is within a preset interval as the target AP;
    获取所述目标AP的所述目标BSSID。Acquire the target BSSID of the target AP.
  4. 根据权利要求1或2所述的方法,其中,所述响应于地铁处于进站状态,获取至少一个目标AP的目标BSSID之前,所述方法还包括:The method according to claim 1 or 2, wherein, before obtaining the target BSSID of at least one target AP in response to the subway being in a station state, the method further comprises:
    处于地铁模式时,获取所述当前注册基站;When in subway mode, obtain the currently registered base station;
    响应于所述当前注册基站改变,获取映射表,所述映射表中包含站点与站点周侧基站之间的对应关系;Responsive to the change of the currently registered base station, acquiring a mapping table, the mapping table containing the corresponding relationship between the site and the base stations around the site;
    根据所述映射表和所述当前注册基站的基站信息,确定所述第一预测站点。Determine the first predicted site according to the mapping table and the base station information of the currently registered base station.
  5. 根据权利要求4所述的方法,其中,所述根据所述映射表和所述当前注册基站的基站信息,确定所述第一预测站点,包括:The method according to claim 4, wherein the determining the first prediction site according to the mapping table and the base station information of the currently registered base station comprises:
    响应于从所述映射表中查找到所述当前注册基站对应的站点,且站点数量为一个,将查找到的站点确定为所述第一预测站点;In response to finding a site corresponding to the currently registered base station from the mapping table, and the number of sites is one, determining the site found as the first predicted site;
    响应于从所述映射表中查找到所述当前注册基站对应的站点,且站点数量为至少两个,基于上一站点确定所述第一预测站点,所述上一站点为最近一次确定地铁到达的站点。In response to finding the site corresponding to the currently registered base station from the mapping table, and the number of sites is at least two, the first predicted site is determined based on the previous site, and the previous site is the latest confirmed subway arrival Site.
  6. 根据权利要求5所述的方法,其特征在于,所述基于上一站点确定所述第一预测站点,包括:The method according to claim 5, wherein the determining the first prediction site based on the previous site comprises:
    获取所述上一站点的相邻站点;Acquiring the neighboring sites of the previous site;
    将查找到的站点与所述相邻站点的交集站点确定为所述第一预测站点。Determine an intersection site between the found site and the neighboring site as the first prediction site.
  7. 根据权利要求1或2所述的方法,其中,所述根据所述第一预测站点和所述站点匹配结果更新当前站点,包括:The method according to claim 1 or 2, wherein the updating the current site according to the matching result of the first predicted site and the site comprises:
    响应于所述站点匹配结果与所述第一预测站点相同,将所述当前站点更新为所述第一预测站点;In response to the site matching result being the same as the first prediction site, updating the current site to the first prediction site;
    响应于所述站点匹配结果与所述第一预测站点不同,将所述当前站点更新为所述站点匹配结果。In response to the site matching result being different from the first predicted site, the current site is updated to the site matching result.
  8. 根据权利要求1或2所述的方法,其特征在于,所述将第一数据包上传至服务器之后,所述方法还包括:The method according to claim 1 or 2, wherein after uploading the first data packet to the server, the method further comprises:
    响应于预设时长内未接收到所述服务器发送的所述站点匹配结果,将所述当前站点更新为所述第一预测站点。In response to not receiving the site matching result sent by the server within a preset time period, the current site is updated as the first predicted site.
  9. 根据权利要求1或2所述的方法,其中,所述响应于地铁处于进站状态,获取至少一个目标AP的目标BSSID之前,所述方法还包括:The method according to claim 1 or 2, wherein, before obtaining the target BSSID of at least one target AP in response to the subway being in a station state, the method further comprises:
    处于地铁模式时,获取加速度传感器数据;Obtain acceleration sensor data when in subway mode;
    响应于所述加速度传感器数据指示所述第一终端加速移动或减速移动,获取振动传感器数据;In response to the acceleration sensor data instructing the first terminal to accelerate or decelerate, acquiring vibration sensor data;
    响应于所述振动传感器数据指示所述第一终端处于非振动状态,根据所述加速度传感器数据确定地铁的运行状态,所述运行状态包括进站状态、出站状态、停止状态和站间行驶状态。In response to the vibration sensor data indicating that the first terminal is in a non-vibrating state, the operating state of the subway is determined according to the acceleration sensor data, and the operating state includes an inbound state, an outbound state, a stopped state, and an inter-station driving state .
  10. 一种站点预测装置,所述装置包括:A site prediction device, the device includes:
    获取模块,用于响应于地铁处于进站状态,获取至少一个目标AP的目标BSSID,所述目标AP是所述第一终端扫描到的AP;An obtaining module, configured to obtain a target BSSID of at least one target AP in response to the subway being in a station state, where the target AP is the AP scanned by the first terminal;
    数据发送模块,用于将第一数据包上传至服务器,所述第一数据包包括所述目标BSSID和第一预测站点,所述第一预测站点由所述第一终端根据当前注册基站确定;A data sending module, configured to upload a first data packet to a server, the first data packet including the target BSSID and a first prediction site, and the first prediction site is determined by the first terminal according to the currently registered base station;
    数据接收模块,用于接收所述服务器发送的站点匹配结果,所述站点匹配结果由所述服务器根据至少一个第二终端的第二数据包确定,所述第二数据包包括所述第二终端扫描到的AP的BSSID,以及所述第二终端根据注册基站确定出的第二预测站点;A data receiving module, configured to receive a site matching result sent by the server, the site matching result being determined by the server according to a second data packet of at least one second terminal, the second data packet including the second terminal The scanned BSSID of the AP, and the second predicted site determined by the second terminal according to the registered base station;
    第一更新模块,用于根据所述第一预测站点和所述站点匹配结果更新当前站点。The first update module is configured to update the current site according to the first predicted site and the site matching result.
  11. 根据权利要求10所述的装置,其中,所述第一数据包还包括第一识别时刻,所述第一识别时刻是所述第一终端获取所述目标BSSID的时刻,所述第二数据包还包括第二识别时刻,所述第二识别时刻是所述第二终端获取BSSID的时刻,所述站点匹配结果为所述第二数据包中所述第二识别时刻属于目标时间段,且所述目标BSSID对应的出现次数最多的第二预测站点,所述目标时间段根据所述第一识别时刻和预定时长确定。The apparatus according to claim 10, wherein the first data packet further comprises a first identification moment, the first identification moment is the moment when the first terminal obtains the target BSSID, and the second data packet It also includes a second identification moment, where the second identification moment is the moment when the second terminal obtains the BSSID, and the site matching result is that the second identification moment in the second data packet belongs to the target time period, and so For the second predicted site with the largest number of occurrences corresponding to the target BSSID, the target time period is determined according to the first identification moment and a predetermined duration.
  12. 根据权利要求10或11所述的装置,其中,所述获取模块,包括:The device according to claim 10 or 11, wherein the acquiring module comprises:
    扫描单元,用于响应于地铁处于所述进站状态,开启AP扫描功能;The scanning unit is configured to enable the AP scanning function in response to the subway being in the station state;
    第一确定单元,用于将扫描到的信号强度属于预设区间的AP确定为所述目标AP;A first determining unit, configured to determine an AP whose signal strength is within a preset interval as the target AP;
    获取单元,用于获取所述目标AP的所述目标BSSID。The acquiring unit is configured to acquire the target BSSID of the target AP.
  13. 根据权利要求10或11所述的装置,其中,所述装置还包括:The device according to claim 10 or 11, wherein the device further comprises:
    基站获取模块,用于处于地铁模式时,获取所述当前注册基站;The base station acquisition module is used to acquire the currently registered base station when in the subway mode;
    关系获取模块,用于响应于所述当前注册基站改变,获取映射表,所述映射表中包含站点与站点周侧基站之间的对应关系;The relationship acquisition module is configured to acquire a mapping table in response to the change of the currently registered base station, and the mapping table contains the corresponding relationship between the site and the base stations around the site;
    确定模块,用于根据所述映射表和所述当前注册基站的基站信息,确定所述第一预测站点。The determining module is configured to determine the first predicted site according to the mapping table and the base station information of the currently registered base station.
  14. 根据权利要求13所述的装置,其中,所述确定模块,包括:The device according to claim 13, wherein the determining module comprises:
    第二确定单元,用于响应于从所述映射表中查找到所述当前注册基站对应的站点,且站点数量为一个,将查找到的站点确定为所述第一预测站点;The second determining unit is configured to respond to finding a site corresponding to the currently registered base station from the mapping table, and the number of sites is one, and determining the site found as the first predicted site;
    第三确定单元,用于响应于从所述映射表中查找到所述当前注册基站对应的站点,且站点数量为至少两个,基于上一站点确定所述第一预测站点,所述上一站点为最近一次确定地铁到达的站点。The third determining unit is configured to determine the first predicted site based on the previous site in response to finding the site corresponding to the currently registered base station from the mapping table, and the number of sites is at least two. The station is the station where the subway arrived last time.
  15. 根据权利要求14所述的装置,其中,所述第三确定单元,还用于:The device according to claim 14, wherein the third determining unit is further configured to:
    获取所述上一站点的相邻站点;将查找到的站点与所述相邻站点的交集站点确定为所述第一预测站点。Acquire neighboring sites of the previous site; determine an intersection site of the found site and the neighboring site as the first predicted site.
  16. 根据权利要求10或11所述的装置,其中,所述第一更新模块,包括:The device according to claim 10 or 11, wherein the first update module comprises:
    第一更新单元,用于响应于所述站点匹配结果与所述第一预测站点相同,将所述当前站点更新为所述第一预测站点;A first update unit, configured to update the current site to the first predicted site in response to the site matching result being the same as the first predicted site;
    第二更新单元,用于响应于所述站点匹配结果与所述第一预测站点不同,将所述当前站点更新为所述站点匹配结果。The second update unit is configured to update the current site to the site matching result in response to the site matching result being different from the first predicted site.
  17. 根据权利要求10或11所述的装置,其中,所述装置还包括:The device according to claim 10 or 11, wherein the device further comprises:
    第二更新模块,用于响应于预设时长内未接收到所述服务器发送的所述站 点匹配结果,将所述当前站点更新为所述第一预测站点。The second update module is configured to update the current site to the first predicted site in response to not receiving the site matching result sent by the server within a preset time period.
  18. 根据权利要求10或11所述的装置,其中,所述装置还包括:The device according to claim 10 or 11, wherein the device further comprises:
    第一数据获取模块,用于处于地铁模式时,获取加速度传感器数据;The first data acquisition module is used to acquire acceleration sensor data when in subway mode;
    第二数据获取模块,用于响应于所述加速度传感器数据指示所述第一终端加速移动或减速移动,获取振动传感器数据;The second data acquisition module is configured to acquire vibration sensor data in response to the acceleration sensor data instructing the first terminal to accelerate or decelerate movement;
    状态确定模块,用于响应于所述振动传感器数据指示所述第一终端处于非振动状态,根据所述加速度传感器数据确定地铁的运行状态,所述运行状态包括进站状态、出站状态、停止状态和站间行驶状态。The state determination module is configured to determine the operating state of the subway according to the acceleration sensor data in response to the vibration sensor data indicating that the first terminal is in a non-vibrating state, and the operating state includes an inbound state, an outbound state, and a stop Status and driving status between stations.
  19. 一种终端,所述终端包括处理器和存储器;所述存储器存储有至少一条指令,所述至少一条指令用于被所述处理器执行以实现如权利要求1至9任一所述的站点预测方法。A terminal comprising a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to realize the site prediction according to any one of claims 1 to 9 method.
  20. 一种计算机可读存储介质,所述存储介质存储有至少一条指令,所述至少一条指令用于被处理器执行以实现如权利要求1至9任一所述的站点预测方法。A computer-readable storage medium storing at least one instruction, and the at least one instruction is used to be executed by a processor to implement the site prediction method according to any one of claims 1 to 9.
PCT/CN2021/074717 2020-03-09 2021-02-01 Station prediction method and apparatus, terminal, and storage medium WO2021179849A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010156632.2A CN111356077B (en) 2020-03-09 2020-03-09 Site prediction method, device, terminal and storage medium
CN202010156632.2 2020-03-09

Publications (1)

Publication Number Publication Date
WO2021179849A1 true WO2021179849A1 (en) 2021-09-16

Family

ID=71196117

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/074717 WO2021179849A1 (en) 2020-03-09 2021-02-01 Station prediction method and apparatus, terminal, and storage medium

Country Status (2)

Country Link
CN (1) CN111356077B (en)
WO (1) WO2021179849A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113971891A (en) * 2021-10-19 2022-01-25 Oppo广东移动通信有限公司 Method, device and system for identifying site information, electronic equipment and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111356077B (en) * 2020-03-09 2021-08-03 Oppo广东移动通信有限公司 Site prediction method, device, terminal and storage medium
CN113114752B (en) * 2021-04-07 2023-02-24 Oppo广东移动通信有限公司 Data acquisition method, device, terminal and server based on public traffic scene
CN113780978B (en) * 2021-08-12 2023-12-19 上海瑾盛通信科技有限公司 Arrival reminding method and device, storage medium and electronic equipment
CN114255359B (en) * 2022-03-01 2022-06-24 深圳市北海轨道交通技术有限公司 Intelligent stop reporting verification method and system based on motion image identification
CN116095601B (en) * 2022-05-30 2023-10-20 荣耀终端有限公司 Base station cell feature library updating method and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107204125A (en) * 2016-03-17 2017-09-26 高德软件有限公司 Gather the methods, devices and systems of bus transfering information
CN109151168A (en) * 2018-07-20 2019-01-04 阿里巴巴集团控股有限公司 The switching method of code, device, mobile terminal and readable storage medium storing program for executing by bus
CN110392402A (en) * 2018-04-17 2019-10-29 华为技术有限公司 Communication means, equipment and access point in a kind of WLAN
US20200008095A1 (en) * 2018-06-29 2020-01-02 Qualcomm Incorporated Connectivity and feedback techniques for wireless broadcast services
CN111356077A (en) * 2020-03-09 2020-06-30 Oppo广东移动通信有限公司 Site prediction method, device, terminal and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179511B (en) * 2013-03-26 2015-12-23 清华大学 A kind of subway arrival reminding method based on mobile terminal
CN103826203B (en) * 2014-03-10 2017-10-27 北京百度网讯科技有限公司 Public transport operation Forecasting Methodology and device
CN106303975B (en) * 2016-07-28 2019-09-17 新华三技术有限公司 A kind of arrival reminding method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107204125A (en) * 2016-03-17 2017-09-26 高德软件有限公司 Gather the methods, devices and systems of bus transfering information
CN110392402A (en) * 2018-04-17 2019-10-29 华为技术有限公司 Communication means, equipment and access point in a kind of WLAN
US20200008095A1 (en) * 2018-06-29 2020-01-02 Qualcomm Incorporated Connectivity and feedback techniques for wireless broadcast services
CN109151168A (en) * 2018-07-20 2019-01-04 阿里巴巴集团控股有限公司 The switching method of code, device, mobile terminal and readable storage medium storing program for executing by bus
CN111356077A (en) * 2020-03-09 2020-06-30 Oppo广东移动通信有限公司 Site prediction method, device, terminal and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113971891A (en) * 2021-10-19 2022-01-25 Oppo广东移动通信有限公司 Method, device and system for identifying site information, electronic equipment and storage medium
CN113971891B (en) * 2021-10-19 2022-11-15 Oppo广东移动通信有限公司 Method, device and system for identifying site information, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111356077A (en) 2020-06-30
CN111356077B (en) 2021-08-03

Similar Documents

Publication Publication Date Title
WO2021179849A1 (en) Station prediction method and apparatus, terminal, and storage medium
WO2021175062A1 (en) Service providing method and apparatus, and terminal and storage medium
WO2021184985A1 (en) Station identification method, station arrival prompting method, device and terminal, and storage medium
US8682287B2 (en) Providing information pertaining usage of a mobile wireless communications device
CN105809959B (en) Passenger number counting method, device and system
CN106301429B (en) There is the mobile communication equipment of the public transport detection of determining hands-free mode setting
CN109831689B (en) Data buffering method and mobile terminal
WO2021190145A1 (en) Station identifying method and device, terminal and storage medium
WO2021232962A1 (en) Target site prediction method and apparatus, and electronic device and storage medium
KR20110021665A (en) Method for providing vehicle information and terminal device applying the same
CN108281027A (en) A kind of interactive intelligent arrival reminding method and device
CN102779426B (en) Speech prompting system and method
CN108140303A (en) Method, apparatus, car-mounted terminal and the server that traffic message transmits
CN111818667A (en) Device connection method, device and readable storage medium
CN112492340B (en) Live broadcast audio acquisition method, mobile terminal and computer readable storage medium
EP3843436A1 (en) System and method for routing an emergency call
CN105869430A (en) Method, device and system for bus station reporting
CN108093074B (en) Communication method, device and readable storage medium
CN113810539B (en) Method, device, terminal and storage medium for reminding arrival
WO2021136005A1 (en) Arrival reminding method and related device
CN112532787B (en) Earphone audio data processing method, mobile terminal and computer readable storage medium
US20230292365A1 (en) Method for random access communication device, and storage medium
TW202129558A (en) Vehicle scheduling method, device, computer device and storage medium
CN113022442A (en) Vehicle prompting method and related device
CN109410981A (en) The method and device of detection vehicle safety for net about vehicle

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: 21766843

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: 21766843

Country of ref document: EP

Kind code of ref document: A1