WO2018082104A1 - Assisted positioning data sharing method, and terminal - Google Patents

Assisted positioning data sharing method, and terminal Download PDF

Info

Publication number
WO2018082104A1
WO2018082104A1 PCT/CN2016/104939 CN2016104939W WO2018082104A1 WO 2018082104 A1 WO2018082104 A1 WO 2018082104A1 CN 2016104939 W CN2016104939 W CN 2016104939W WO 2018082104 A1 WO2018082104 A1 WO 2018082104A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
positioning data
auxiliary positioning
shared
information
Prior art date
Application number
PCT/CN2016/104939
Other languages
French (fr)
Chinese (zh)
Inventor
张康
秦伟
刘杰
程国红
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201680077431.5A priority Critical patent/CN108474858A/en
Priority to PCT/CN2016/104939 priority patent/WO2018082104A1/en
Publication of WO2018082104A1 publication Critical patent/WO2018082104A1/en

Links

Images

Classifications

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

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a method and a terminal for sharing positioning data.
  • A-GNSS Assisted Global Navigation Satellite System
  • A-GNSS Assisted Global Navigation Satellite System
  • the terminal needs to establish a network connection with the A-GNSS server, and obtain auxiliary positioning data from the A-GNSS server according to the established connection, thereby increasing the network load.
  • the present invention provides a method and a terminal for assisting positioning data sharing, which are used to solve the technical problem that a terminal needs to communicate with an A-GNSS server to obtain auxiliary positioning data and increase network load in the prior art.
  • a method for sharing auxiliary positioning data includes:
  • the shared terminal sends a probe request frame, and the probe request frame includes the auxiliary positioning data.
  • Ask for information
  • the to-be-shared terminal receives the probe response frame that is sent by the at least one shared terminal according to the request information of the auxiliary positioning data, and the probe response frame sent by each shared terminal in the at least one shared terminal includes the each share Response information of the auxiliary positioning data of the terminal;
  • the to-be-shared terminal updates the auxiliary positioning data in the to-be-shared terminal according to the response information of the auxiliary positioning data of the at least one shared terminal.
  • the to-be-shared terminal sends the request information of the auxiliary positioning data based on the probe request frame, and receives the response information of the auxiliary positioning data of the at least one shared terminal by detecting the response frame, so that the terminal to be shared can be not connected to the network, and the network does not need to be added.
  • the auxiliary positioning data in the shared terminal is updated to realize the sharing of the auxiliary positioning data between different terminals.
  • the terminal needs to communicate with the A-GNSS server to obtain the auxiliary positioning data.
  • the method reduces the network burden; and the communication between the shared terminal and the shared terminal is realized by the probe request frame and the probe response frame, and the network connection is not required to be established between the shared terminal and the shared terminal, so that the communication efficiency can be further improved. It is beneficial to improve the positioning speed based on auxiliary positioning data.
  • the response information of the auxiliary positioning data of each shared terminal includes the auxiliary positioning data of each shared terminal and the time information of the auxiliary positioning data of each shared terminal;
  • the auxiliary positioning data in the to-be-shared terminal Updating, by the to-be-shared terminal, the auxiliary positioning data in the to-be-shared terminal according to the response information of the auxiliary positioning data of the at least one shared terminal, including:
  • the time to be shared by the terminal to be shared in the time information of the auxiliary positioning data of the at least one shared terminal is determined to be the smallest time interval from the current time interval;
  • the to-be-shared terminal determines the auxiliary positioning data corresponding to the time information with the smallest current time interval as the auxiliary positioning data after the terminal to be shared.
  • the to-be-shared terminal updates the auxiliary positioning data based on the time information, and determines the auxiliary positioning data corresponding to the time information with the smallest current time interval (ie, the auxiliary positioning data with the largest utilization value) as the updated auxiliary positioning data. , so that subsequent positioning is more accurate.
  • the request information of the auxiliary positioning data is located between a frame header of the probe request frame and a frame check sequence FCS.
  • the response information of the auxiliary positioning data is located between a frame header of the probe response frame and the FCS.
  • the frame body of the probe response frame can be extended. Therefore, the request information and the response information in the present application can be located between the frame header of the probe response frame and the FCS, that is, the frame body, thereby minimizing Changes to existing communication protocols.
  • the application provides a method for sharing positioning data, the method comprising:
  • the sharing terminal receives the probe request frame sent by the terminal to be shared, and the probe request frame includes request information for assisting the positioning data;
  • the sharing terminal sends a probe response frame to the to-be-shared terminal according to the request information of the auxiliary positioning data in the probe request frame, where the probe response frame includes response information of the auxiliary positioning data.
  • the shared terminal receives the probe request frame and sends the response information of the auxiliary positioning data through the probe response frame, so that the auxiliary positioning data sharing between different terminals can be realized without networking, without increasing the network side configuration.
  • the terminal needs to communicate with the A-GNSS server to obtain the auxiliary positioning data, which reduces the network burden; and the communication between the to-be-shared terminal and the shared terminal is achieved by detecting the request frame and the probe response frame. There is no need to establish a network connection between the shared terminal and the shared terminal, so that the communication efficiency can be further improved, and the positioning speed based on the auxiliary positioning data is improved.
  • the request information of the auxiliary positioning data includes a request identifier of the auxiliary positioning data and time information of the auxiliary positioning data of the terminal to be shared;
  • the sharing terminal After the sharing terminal determines that the request identifier of the auxiliary positioning data is a valid request identifier, according to the time information of the auxiliary positioning data of the to-be-shared terminal and the time information of the auxiliary positioning data of the shared terminal, if the sharing is determined If the auxiliary positioning data of the terminal is valid, the probe response frame is sent to the to-be-shared terminal, and the probe response frame includes the auxiliary positioning data of the shared terminal.
  • the shared terminal can be determined.
  • the probe response frame may be sent to the to-be-shared terminal, and after the above two judging processes, and after the judging result meets the corresponding requirement, the method is sent to the to-be-shared terminal.
  • the response frame is detected, thereby avoiding unnecessary information transmission, effectively saving transmission resources, and effectively avoiding excessive invalid information received by the terminal to be shared, thereby saving processing resources of the terminal to be shared.
  • the sharing terminal determines that the auxiliary positioning data of the sharing terminal is valid according to the time information of the auxiliary positioning data of the to-be-shared terminal and the time information of the auxiliary positioning data of the shared terminal, including:
  • the sharing terminal determines the time and current time of the auxiliary positioning data of the shared terminal according to the time information of the auxiliary positioning data of the shared terminal. After the time interval is less than or equal to the first threshold, determining that the auxiliary positioning data of the shared terminal is valid; or
  • the application provides a terminal, where the terminal includes:
  • a sending module configured to send a probe request frame, where the probe request frame includes request information for assisting positioning data
  • a receiving module configured to receive a probe response frame that is sent by the at least one shared terminal according to the request information of the auxiliary positioning data, where each of the at least one shared terminal includes the probe response frame Response information of the auxiliary positioning data of the terminal;
  • a processing module configured to respond information according to the auxiliary positioning data of the at least one shared terminal, The auxiliary positioning data in the terminal is updated.
  • the response information of the auxiliary positioning data of each shared terminal includes the auxiliary positioning data of each shared terminal and the time information of the auxiliary positioning data of each shared terminal;
  • the processing module is specifically configured to:
  • the auxiliary positioning data corresponding to the time information with the smallest current time interval is determined as the auxiliary positioning data after the terminal is updated.
  • the request information of the auxiliary positioning data is located between a frame header of the probe request frame and a frame check sequence FCS.
  • the response information of the auxiliary positioning data is located between a frame header of the probe response frame and the FCS.
  • the application provides a terminal, where the terminal includes:
  • a receiving module configured to receive a probe request frame sent by the terminal to be shared, where the probe request frame includes request information for assisting positioning data;
  • a sending module configured to send a probe response frame to the to-be-shared terminal according to the request information of the auxiliary positioning data in the probe request frame, where the probe response frame includes response information of the auxiliary positioning data.
  • the request information of the auxiliary positioning data includes a request identifier of the auxiliary positioning data and time information of the auxiliary positioning data of the terminal to be shared;
  • the sending module is specifically configured to:
  • determining that the request identifier of the auxiliary positioning data is a valid request identifier determining that the auxiliary positioning data of the terminal is valid according to time information of the auxiliary positioning data of the to-be-shared terminal and time information of the auxiliary positioning data of the terminal And sending a probe response frame to the to-be-shared terminal, where the probe response frame includes auxiliary positioning data of the terminal.
  • the sending module is specifically configured to:
  • the root Determining, according to the time information of the auxiliary positioning data of the terminal, that the auxiliary positioning data of the terminal is valid after determining that the interval between the time of the auxiliary positioning data of the terminal and the current time is less than or equal to the first threshold; or
  • auxiliary positioning of the terminal Determining the auxiliary positioning of the terminal according to the time information of the auxiliary positioning data of the terminal and the time information of the auxiliary positioning data of the terminal to be shared when determining that the time information of the auxiliary positioning data of the terminal to be shared is the effective time After the time of the data is later than the time of the auxiliary positioning data of the terminal to be shared, it is determined that the auxiliary positioning data of the terminal is valid.
  • the application provides a terminal, where the terminal includes:
  • a transmitter configured to send a probe request frame, where the probe request frame includes request information for assisting positioning data
  • a receiver configured to receive a probe response frame that is sent by the at least one shared terminal according to the request information of the auxiliary positioning data, where each of the at least one shared terminal includes the probe response frame Response information of the auxiliary positioning data of the terminal;
  • a processor configured to update the auxiliary positioning data in the terminal according to the response information of the auxiliary positioning data of the at least one shared terminal.
  • the response information of the auxiliary positioning data of each shared terminal includes the auxiliary positioning data of each shared terminal and the time information of the auxiliary positioning data of each shared terminal;
  • the processor is specifically configured to:
  • the auxiliary positioning data corresponding to the time information with the smallest current time interval is determined as the auxiliary positioning data after the terminal is updated.
  • the request information of the auxiliary positioning data is located between a frame header of the probe request frame and a frame check sequence FCS.
  • the response information of the auxiliary positioning data is located between a frame header of the probe response frame and the FCS.
  • the application provides a terminal, where the terminal includes:
  • a receiver configured to receive a probe request frame sent by the terminal to be shared, where the probe request frame includes request information for assisting positioning data;
  • a transmitter configured to send a probe response frame to the to-be-shared terminal according to the request information of the auxiliary positioning data in the probe request frame, where the probe response frame includes response information of the auxiliary positioning data.
  • the request information of the auxiliary positioning data includes a request identifier of the auxiliary positioning data and time information of the auxiliary positioning data of the terminal to be shared;
  • the transmitter is specifically configured to:
  • determining that the request identifier of the auxiliary positioning data is a valid request identifier determining that the auxiliary positioning data of the terminal is valid according to time information of the auxiliary positioning data of the to-be-shared terminal and time information of the auxiliary positioning data of the terminal And sending a probe response frame to the to-be-shared terminal, where the probe response frame includes auxiliary positioning data of the terminal.
  • the transmitter is specifically configured to:
  • the time information of the auxiliary positioning data of the terminal to be shared is determined to be invalid time information, according to the time information of the auxiliary positioning data of the terminal, the interval between the time of determining the auxiliary positioning data of the terminal and the current time is less than or equal to After a threshold, determining that the auxiliary positioning data of the terminal is valid; or
  • auxiliary positioning of the terminal Determining the auxiliary positioning of the terminal according to the time information of the auxiliary positioning data of the terminal and the time information of the auxiliary positioning data of the terminal to be shared when determining that the time information of the auxiliary positioning data of the terminal to be shared is the effective time After the time of the data is later than the time of the auxiliary positioning data of the terminal to be shared, it is determined that the auxiliary positioning data of the terminal is valid.
  • the application sends the request information of the auxiliary positioning data based on the probe request frame by the to-be-shared terminal, and receives the response information of the auxiliary positioning data of the at least one shared terminal by detecting the response frame, so that the terminal to be shared can be not connected to the network, and does not need to be added.
  • the auxiliary positioning data in the shared terminal is updated to realize the sharing of the auxiliary positioning data between different terminals.
  • the terminal needs to communicate with the A-GNSS server to obtain the auxiliary positioning.
  • the way of data reduces the network burden; and between the shared terminal and the shared terminal is detected
  • the request frame and the probe response frame are used for communication, and the network connection between the shared terminal and the shared terminal is not required, so that the communication efficiency can be further improved, and the positioning speed based on the auxiliary positioning data is improved.
  • FIG. 1a is a schematic structural diagram of a probe request frame in a Wi-Fi 802.11 communication protocol
  • FIG. 1b is a schematic structural diagram of a probe response frame in a Wi-Fi 802.11 communication protocol
  • FIG. 1c is a schematic structural diagram of a probe request frame in the present application.
  • 1d is a schematic structural diagram of a probe response frame in the present application.
  • FIG. 2 is a schematic diagram of a system architecture applicable to the present application
  • FIG. 3 is a schematic flowchart of a method for sharing auxiliary positioning data according to Embodiment 1 of the present application;
  • FIG. 4 is a schematic overall flow chart of a method for sharing auxiliary positioning data in an application
  • FIG. 5 is a schematic structural diagram of a terminal according to Embodiment 2 of the present application.
  • FIG. 6 is a schematic structural diagram of a terminal according to Embodiment 3 of the present application.
  • FIG. 7 is a schematic structural diagram of a terminal according to Embodiment 4 of the present application.
  • FIG. 8 is a schematic structural diagram of a terminal according to Embodiment 5 of the present application.
  • the terminal needs to establish a network connection with the A-GNSS server to obtain the auxiliary positioning data, thereby increasing the network burden.
  • the embodiment of the present application proposes to share between multiple terminals. A method for assisting in locating data, so that the terminal that needs to be located does not need to obtain auxiliary positioning data from the A-GNSS server, thereby effectively reducing the network burden.
  • the embodiment of the present application realizes the sharing of the auxiliary positioning data between the terminals by extending the existing short-distance communication protocol.
  • the existing short-range communication protocol may not be affected.
  • the probe response frame Probe Response
  • the data format of the existing probe request frame and the probe response frame is expanded, and then the extended probe request frame is extended.
  • the probe response frame is used to realize the sharing of the auxiliary positioning data, and in this way, the auxiliary positioning data can be shared without establishing a network connection between the terminals.
  • the probe request frame and the probe response frame involved in the sharing method of the embodiment of the present application refer to the extended probe request frame and the probe response frame.
  • the short-distance communication protocol may be a Wireless Fidelity (Wi-Fi) 802.11 communication protocol or a Bluetooth communication protocol, and other various short-range communication protocols, which are not limited.
  • Wi-Fi Wireless Fidelity
  • Bluetooth Bluetooth
  • the embodiment of the present application is only described by taking an example that the probe request frame and the probe response frame are extended according to the probe request frame and the probe response frame in the Wi-Fi 802.11 communication protocol.
  • the probe request frame and the probe response frame involved in the sharing method of the present application are first introduced below.
  • FIG. 1a is a schematic structural diagram of a probe request frame in a Wi-Fi 802.11 communication protocol.
  • the probe request frame in the Wi-Fi 802.11 communication protocol includes the following three parts: a header (Header), Frame Body, Frame Check Sequence (FCS).
  • the frame header includes a Frame Control structure, a Duration/ID, an Address Field, and a Sequence Control.
  • FIG. 1b is a schematic structural diagram of a probe response frame in a Wi-Fi 802.11 communication protocol.
  • the probe response frame in the Wi-Fi 802.11 communication protocol also includes the following three parts: a frame header, a frame body, and an FCS.
  • the frame header includes a frame control structure, a duration/identity, an address field, and a sequence control field.
  • the Frame Body of the probe request frame may include a Service Set Identity (SSID), a Supported Rate, and an Extended Supported Rate.
  • the Frame Body of the probe response frame includes various contents such as an SSID, an extended support rate, a Robust Security Network (RSN), and the like.
  • SSID Service Set Identity
  • RSN Robust Security Network
  • the probe request frame involved in the sharing method of the present application may be a request added in the probe request frame in the Wi-Fi 802.11 communication protocol.
  • the request information unit is used to carry the request information of the auxiliary positioning data.
  • the frame body of the probe request frame may be extended. Therefore, the request information unit in the present application may be located between the frame header of the probe request frame and the FCS, that is, the frame body, thereby minimizing Changes to existing communication protocols.
  • the specific location of the request information element in the frame body is not limited. In the case where the probe request frame is as shown in FIG. 1a, the request information unit may be located in any of the following areas:
  • the request information unit is located between the extended support rate and the FCS, as shown in FIG. 1c, which is a schematic structural diagram of the probe request frame in this application.
  • the probe response frame involved in the present application may be obtained by adding a response information unit to the probe response frame in the Wi-Fi 802.11 communication protocol, and the response information unit is configured to carry the response information of the auxiliary positioning data. Due to Wi-Fi 802.11
  • the communication protocol stipulates that the frame body of the probe response frame can be extended. Therefore, the response information unit in the present application can be located between the frame header of the probe response frame and the FCS, that is, the frame body, thereby minimizing the existing communication protocol. change. In this application, the specific location of the response information unit in the frame body is not limited.
  • the response information unit may be located between the robust security network and the FCS, as shown in FIG. 1d, which is a schematic structural diagram of the probe response frame in this application. . Since the content of the frame body in the probe response frame is large, the position of the response information unit is not exemplified here.
  • the method for sharing the auxiliary positioning data between the multiple terminals in the present application may be applicable to the terminal positioning scenario described above, and may also be applicable to other scenarios involving the terminal acquiring the auxiliary positioning data. Make a limit.
  • FIG. 2 is a schematic diagram of a system architecture applicable to the present application.
  • the system architecture may include multiple terminals, and one or more terminals to be shared and one or more shared terminals may exist in multiple terminals. In FIG. 2, only one terminal to be shared and three shared terminals are used. The example is explained.
  • the system architecture includes a to-be-shared terminal 201, a first shared terminal 2021, a second shared terminal 2022, and a third shared terminal 2023.
  • the to-be-shared terminal 201 sends a probe request frame, and after receiving the probe request frame, the first shared terminal 2021, the second shared terminal 2022, and the third shared terminal 2023 may return a probe response frame to the to-be-shared terminal 201, and the probe response frame includes the assistance.
  • the response information of the positioning data that is, the communication between the to-be-shared terminal 201 and the first shared terminal 2021, the second shared terminal 2022, and the third shared terminal 2023 can be communicated through the probe request frame and the probe response frame.
  • the terminal to be shared refers to a terminal that needs to obtain auxiliary positioning data
  • the shared terminal is a terminal that sends auxiliary positioning data to the terminal to be shared.
  • the terminal to be shared can also be a shared terminal
  • the shared terminal can also be a terminal to be shared.
  • the first sharing terminal 2021 determines that the auxiliary positioning data needs to be acquired
  • the sharing terminal 201, the second sharing terminal 2022, and the third sharing terminal 2023 do not need the auxiliary positioning data.
  • the first shared terminal 2021 can be a shared terminal, and the shared terminal 201, the second shared terminal 2022, and the third shared terminal 2023 can become shared terminals.
  • the terminal to be shared and the shared terminal refer to the terminal that can support the A-GNSS positioning function.
  • the terminal may be a wired terminal or a wireless terminal, and the wireless terminal may be a handheld device with a wireless connection function or another processing device connected to the wireless modem, and the mobile terminal communicates with one or more core networks via the wireless access network.
  • the wireless terminal can be a mobile phone, a tablet, a personal digital assistant (PDA), a mobile Internet device (MID), a wearable device, and an e-book reader (e-book). Reader) and so on.
  • the wireless terminal can also be a portable, pocket, handheld, computer built-in or in-vehicle mobile device.
  • Some technical solutions of the present application may be specifically implemented based on the system architecture shown in FIG. 2 or its variant architecture.
  • FIG. 3 is a schematic flowchart of a method for sharing auxiliary positioning data according to Embodiment 1 of the present application. As shown in FIG. 3, the method includes:
  • Step 301 The to-be-shared terminal sends a probe request frame, where the probe request frame includes request information for assisting positioning data.
  • Step 302 The sharing terminal receives a probe request frame sent by the terminal to be shared.
  • Step 303 The sharing terminal sends a probe response frame to the to-be-shared terminal according to the request information of the auxiliary location data in the probe request frame, where the probe response frame includes response information of the auxiliary location data of the shared terminal.
  • Step 304 The to-be-shared terminal receives a probe response frame that is sent by the at least one shared terminal according to the request information of the auxiliary positioning data in the probe request frame.
  • Step 305 The to-be-shared terminal updates the auxiliary positioning data in the to-be-shared terminal according to the response information of the auxiliary positioning data of the at least one shared terminal.
  • step 301, step 304, and step 305 may be performed by the terminal to be shared 201 shown in FIG. 2, and step 302 and step 303 may be performed by the first sharing terminal 2021 and the second sharing terminal 2022 shown in FIG. 2. Any of the third sharing terminals 2023 is executed.
  • the to-be-shared terminal sends the request information of the auxiliary positioning data through the probe request frame, and receives the response information of the auxiliary positioning data of the at least one shared terminal by detecting the response frame, so that the terminal to be shared can be not connected to the network, and Increase the network side configuration, treat the total
  • the auxiliary positioning data in the terminal is updated, that is, the auxiliary positioning data sharing between different terminals is realized, and the method is similar to the method in the prior art that the terminal needs to communicate with the A-GNSS server to obtain the auxiliary positioning data.
  • the network load is reduced, which is more convenient and effective; and the communication between the shared terminal and the shared terminal is realized by the probe request frame and the probe response frame, and the network connection is not required to be established between the shared terminal and the shared terminal, thereby further improving communication efficiency. It is beneficial to improve the positioning speed based on the auxiliary positioning data.
  • the request information of the auxiliary positioning data may include the request identifier of the auxiliary positioning data and the time information of the auxiliary positioning data of the terminal to be shared.
  • the request information unit in the probe request frame may be divided into two data bits: AGNSS DATA REQUEST and CURRENT DATA TIMESTSMP, AGNSS DATA REQUEST is used to carry the request identifier of the auxiliary positioning data, and CURRENT DATA TIMESTSMP is used to carry the time information of the auxiliary positioning data of the terminal to be shared, as shown in FIG. 1c.
  • the request identifier of the auxiliary positioning data is used to indicate whether the probe request frame requests the auxiliary positioning data. For example, the first setting, if the probe request frame requests the assisted positioning data, the request identifier of the auxiliary positioning data may be “1” or “ TRUE”, at this time, the request identifier of the auxiliary positioning data is a valid request identifier; if the probe request frame does not request the auxiliary positioning data, the request identifier of the auxiliary positioning data may be "0" or "FALSE", and the request identifier of the auxiliary positioning data at this time Identifies the invalid request.
  • the request identifier of the auxiliary positioning data may be “0” or “FALSE”, and the request identifier of the auxiliary positioning data is a valid request identifier; if the probe request frame If the auxiliary positioning data is not requested, the request identifier of the auxiliary positioning data may be “1” or “TRUE”, and the request identifier of the auxiliary positioning data is an invalid request identifier.
  • the first setting is taken as an example for explanation.
  • the time information of the auxiliary positioning data of the terminal to be shared is used to indicate the time of the auxiliary positioning data of the terminal to be shared (specifically, the acquisition time of the auxiliary positioning data of the terminal to be shared), for example, the auxiliary positioning data of the terminal to be shared is x years.
  • the time information may be x-year x-month x-day x
  • the time information of the auxiliary positioning data of the terminal to be shared is the effective time information. If the auxiliary positioning data does not exist in the terminal to be shared, the time information can be set to 0, and the time is to be shared.
  • the time information of the auxiliary positioning data of the terminal is invalid time information.
  • the manner in which the request identifier and the time information are expressed may be set by a person skilled in the art according to experience, and the above is merely an example.
  • the request identifier of the auxiliary positioning data in the probe request frame may be set as an invalid request identifier, and according to the existing short-range communication protocol, according to the existing short-distance communication protocol.
  • the fixed-cycle broadcast probe request frame after the terminal to be shared determines that the location needs to be located, the request identifier of the auxiliary positioning data in the probe request frame may be set as a valid request identifier, and the probe request frame may be sent, and the specific sending manner may also be broadcast.
  • the time information of the auxiliary positioning data of the terminal to be shared in the probe request frame is changed only according to the update situation of the auxiliary positioning data of the terminal to be shared in the probe request frame in the case that the positioning and the positioning are not required.
  • the sharing terminal receives the probe request frame sent by the terminal to be shared, and parses the request identifier of the auxiliary positioning data in the probe request frame and the time information of the auxiliary positioning data of the terminal to be shared.
  • the probe request frame may be processed according to the manner in the existing short-range communication protocol. Specifically, the probe response frame or feedback may not be fed back. The probe response frame does not include the auxiliary positioning data of the shared terminal, thereby effectively saving transmission resources.
  • the shared positioning data of the shared terminal may be determined according to the time information of the auxiliary positioning data of the terminal to be shared and the time information of the auxiliary positioning data of the shared terminal. If it is valid, the auxiliary positioning data of the shared terminal is sent to the terminal to be shared by the probe response frame. If invalid, the probe request frame may be processed according to the manner in the existing short-range communication protocol. Specifically, the feedback request may not be fed back. The probe response frame or the feedback probe response frame does not include the auxiliary positioning data of the shared terminal, thereby effectively saving transmission resources.
  • the specific manner of determining whether the auxiliary positioning data of the shared terminal is valid is that the sharing terminal first determines whether the time information of the auxiliary positioning data of the terminal to be shared is valid time information:
  • the time information of the auxiliary positioning data of the terminal to be shared is invalid time information
  • the sharing terminal Determining, according to the time information of the auxiliary positioning data of the shared terminal, whether the interval between the time of the auxiliary positioning data of the shared terminal and the current time is less than or equal to the first threshold, and if yes, determining that the auxiliary positioning data of the sharing terminal is valid; And determining that the auxiliary positioning data of the shared terminal is invalid.
  • the first threshold can be set empirically by those skilled in the art, for example, can be set to 2h.
  • the time information of the auxiliary positioning data of the shared terminal is 8:00 on October 11, 2016, and the shared terminal determines the time information of the auxiliary positioning data of the terminal to be shared as the invalid time information, and then determines the auxiliary positioning data of the shared terminal.
  • the interval between the time (8:00 on October 11, 2016) and the current time (9:00 on October 11, 2016) is 1h, which is less than the first threshold (2h), so it can be determined that the auxiliary positioning data of the shared terminal is valid. .
  • the utilization value is larger, and the positioning accuracy and accuracy are higher when the positioning is performed according to the auxiliary positioning data, so if the terminal to be shared is in the terminal If there is no auxiliary positioning data, the shared terminal needs to locate the auxiliary positioning data when the time for determining its own auxiliary positioning data is relatively new (that is, the auxiliary positioning data is recently acquired and the current time interval is small).
  • the probe response frame is sent to the to-be-shared terminal, so that the auxiliary positioning data received by the terminal to be shared is the auxiliary positioning data with large utilization value, which effectively avoids transmitting the non-utilization value or using the auxiliary positioning data with less value to waste resources. .
  • the sharing terminal determines that its own auxiliary positioning data is older (that is, the auxiliary positioning data is acquired a long time ago, and the current time interval is larger), the feedback response frame may not be fed back or the feedback detection response frame is not included.
  • the auxiliary positioning data of the shared terminal saves transmission resources.
  • the time information of the auxiliary positioning data of the shared terminal is the effective time information
  • the sharing terminal determines, according to the time information of the auxiliary positioning data of the shared terminal and the time information of the auxiliary positioning data of the terminal to be shared, Whether the time of the auxiliary positioning data of the shared terminal is later than the time of the auxiliary positioning data of the terminal to be shared, that is, whether the interval between the time of the auxiliary positioning data of the shared terminal and the current time is smaller than the auxiliary positioning of the terminal to be shared.
  • the interval between the time of the data and the current time if yes, determining that the auxiliary positioning data of the shared terminal is valid, and if not, determining that the auxiliary positioning data of the shared terminal is invalid.
  • the time information of the auxiliary terminal's auxiliary positioning data is 8:00 on October 11, 2016.
  • the time information of the auxiliary positioning data of the terminal to be shared is determined as the effective time information (the time information of the auxiliary positioning data of the terminal to be shared is 7:00 on October 11, 2016)
  • the auxiliary positioning data of the shared terminal is determined.
  • the time (8:00 on October 11, 2016) is later than the time of the auxiliary positioning data of the terminal to be shared (7:00 on October 11, 2016), so it can be determined that the auxiliary positioning data of the shared terminal is valid.
  • the time at which the shared terminal needs to determine its own auxiliary positioning data is later than the auxiliary positioning data of the terminal to be shared, that is, the auxiliary positioning data of the sharing terminal is newer.
  • the utilization value is greater than the utilization value of the auxiliary positioning data of the terminal to be shared, the auxiliary positioning data can be sent to the to-be-shared terminal through the probe response frame, thereby ensuring that the auxiliary positioning data received by the terminal to be shared is The use value of the auxiliary positioning data itself is large.
  • the time for the shared terminal to determine its own auxiliary positioning data is earlier than the time of the auxiliary positioning data of the terminal to be shared, that is, the utilization value is smaller than the utilization value of the auxiliary positioning data of the terminal to be shared. Then, the auxiliary positioning data is not transmitted to the terminal to be shared, so that the transmission resource is saved, and the auxiliary positioning data is not received by the terminal to be shared, and the processing burden of the terminal to be shared is reduced.
  • the to-be-shared terminal receives the probe response frame sent by the at least one shared terminal. Specifically, if only one shared terminal feeds the probe response frame around the terminal to be shared, the to-be-shared terminal only receives the probe sent by the shared terminal. In response to the frame, if there are multiple shared terminal feedback probe response frames around the shared terminal, the to-be-shared terminal may receive the probe response frames sent by multiple shared terminals.
  • the to-be-shared terminal may start a timer after determining that the probe needs to be located and sent the probe response frame, and determine that the timer reaches the first time threshold, and then according to the receiving
  • the response information of the auxiliary positioning data sent by the at least one shared terminal is updated to the auxiliary positioning data of the shared terminal.
  • the first time threshold can be set empirically by those skilled in the art. That is, the to-be-shared terminal may update the auxiliary positioning data of the shared terminal according to the response information of the auxiliary positioning data sent by the shared terminal received within the set duration after transmitting the probe response frame, thereby avoiding feedback feedback of some shared terminals. The frame takes longer and the update speed is reduced.
  • the to-be-shared terminal can acquire the auxiliary positioning data from the A-GNSS server in an existing manner.
  • the response information of the auxiliary positioning data of the sharing terminal may include the auxiliary positioning data of the sharing terminal and the time information of the auxiliary positioning data of the sharing terminal.
  • the response information unit in the probe response frame may also be divided into two data bits, which are respectively used to carry the auxiliary positioning data of the shared terminal and the time information of the auxiliary positioning data of the shared terminal, as shown in FIG. 1d.
  • the time information of the auxiliary positioning data of the shared terminal is used to indicate the time of the auxiliary positioning data of the shared terminal (specifically, the acquisition time of the auxiliary positioning data of the shared terminal), and the specific representation manner may refer to the to-be-included in the foregoing probe request frame.
  • the to-be-shared terminal determines the time information with the smallest time interval from the current time interval according to the time information of the auxiliary positioning data of the multiple shared terminals, and determines the auxiliary positioning data corresponding to the time information with the smallest current time interval as Auxiliary positioning data after the shared terminal is updated.
  • the previous auxiliary positioning data may be deleted, and the auxiliary positioning data corresponding to the time information with the smallest current time interval is determined as the auxiliary positioning after the terminal to be shared is updated.
  • the time information of the auxiliary positioning data of the terminal to be shared in the probe request frame sent by the probe request frame is determined according to the time of the updated auxiliary positioning data.
  • the shared terminal receives the response information of the auxiliary positioning data sent by the two shared terminals (the shared terminal a and the shared terminal)
  • the time for the auxiliary positioning data of the shared terminal a is 8:30 on October 11, 2016.
  • the time for sharing the auxiliary positioning data of the terminal b is 8:40 on October 11, 2016, and the current time is 9:00 on October 11, 2016.
  • the shared terminal with a new time can be added.
  • the auxiliary positioning data is determined as the updated auxiliary positioning data.
  • the to-be-shared terminal may send the updated auxiliary positioning data to the GNSS engine of the terminal to be shared for subsequent positioning.
  • FIG. 4 is a schematic overall flow chart of a method for sharing auxiliary positioning data in the present application, as shown in FIG. 4, including:
  • Step 401 After the terminal to be shared determines that the location needs to be located, the request identifier of the auxiliary positioning data in the probe request frame may be set as a valid request identifier, and the probe request frame is sent;
  • Step 402 The sharing terminal receives the probe request frame sent by the terminal to be shared, and parses the request identifier of the auxiliary positioning data in the probe request frame and the time information of the auxiliary positioning data of the terminal to be shared.
  • Step 403 the sharing terminal determines whether the request identifier of the auxiliary positioning data is a valid request identifier, and if so, step 404 is performed, and if no, step 409 is performed;
  • Step 404 the sharing terminal determines whether the time information of the auxiliary positioning data of the terminal to be shared is valid time information, and if so, step 405 is performed, and if not, step 406 is performed;
  • Step 405 the sharing terminal determines whether the time of the auxiliary positioning data of the shared terminal is later than the time of the auxiliary positioning data of the terminal to be shared, if yes, step 407 is performed, and if not, step 409 is performed;
  • Step 406 the sharing terminal determines whether the interval between the time of the auxiliary positioning data of the shared terminal and the current time is less than or equal to the first threshold, and if so, step 407 is performed, and if not, step 409 is performed;
  • Step 407 The sharing terminal sends a probe response frame to the to-be-shared terminal, where the response response frame includes response information of the auxiliary positioning data.
  • Step 408 The to-be-shared terminal receives the probe response frame sent by the at least one shared terminal, and updates the auxiliary positioning data in the shared terminal according to the response information of the auxiliary positioning data of the at least one shared terminal. Subsequently, the to-be-shared terminal may update.
  • the subsequent auxiliary positioning data is sent to the GNSS engine of the terminal to be shared, so as to facilitate subsequent positioning of the shared terminal;
  • Step 409 The shared terminal processes the received probe request frame according to the manner in the existing short-range communication protocol.
  • the request information of the auxiliary positioning data is sent by the to-be-shared terminal based on the probe request frame, and the response information of the auxiliary positioning data of the at least one shared terminal is received by the probe response frame, so that the terminal to be shared may not be connected to the network. If the network side configuration is not required, the auxiliary positioning data in the shared terminal is updated to implement the sharing of the auxiliary positioning data between different terminals, and the terminal needs to communicate with the A-GNSS server to obtain the communication in the prior art.
  • the method of assisting the positioning of the data reduces the network burden; and the communication between the to-be-shared terminal and the shared terminal is realized by the probe request frame and the probe response frame, and the network connection is not required to be established between the shared terminal and the shared terminal, thereby further improving the communication.
  • Efficiency is beneficial to improve the positioning speed based on auxiliary positioning data.
  • the application further provides a terminal, and the specific content of the terminal can be implemented by referring to the foregoing method.
  • FIG. 5 is a schematic structural diagram of a terminal according to Embodiment 2 of the present application.
  • the terminal may be used to perform operations performed by a terminal to be shared in the process of the foregoing method.
  • the terminal 500 includes:
  • the sending module 501 is configured to send a probe request frame, where the probe request frame includes request information for assisting positioning data.
  • the receiving module 502 is configured to receive a probe response frame that is sent by the at least one shared terminal according to the request information of the auxiliary positioning data, where the probe response frame sent by each of the at least one shared terminal includes the Response information of the auxiliary positioning data of the shared terminal;
  • the processing module 503 is configured to update the auxiliary positioning data in the terminal according to the response information of the auxiliary positioning data of the at least one shared terminal.
  • the response information of the auxiliary positioning data of each shared terminal includes the auxiliary positioning data of each shared terminal and the time information of the auxiliary positioning data of each shared terminal;
  • the processing module 503 is specifically configured to:
  • the request information of the auxiliary positioning data is located between a frame header of the probe request frame and a frame check sequence FCS.
  • the response information of the auxiliary positioning data is located between a frame header of the probe response frame and the FCS.
  • FIG. 6 is a schematic structural diagram of a terminal according to Embodiment 3 of the present application.
  • the terminal may be used to perform operations performed by a shared terminal in the foregoing method process.
  • the terminal 600 includes:
  • the receiving module 601 is configured to receive a probe request frame sent by the terminal to be shared, where the probe request frame includes request information for assisting positioning data.
  • the sending module 602 is configured to send a probe response frame to the to-be-shared terminal according to the request information of the auxiliary positioning data in the probe request frame, where the probe response frame includes response information of the auxiliary positioning data.
  • the request information of the auxiliary positioning data includes a request identifier of the auxiliary positioning data and time information of the auxiliary positioning data of the terminal to be shared;
  • the sending module 602 is specifically configured to:
  • determining that the request identifier of the auxiliary positioning data is a valid request identifier determining that the auxiliary positioning data of the terminal is valid according to time information of the auxiliary positioning data of the to-be-shared terminal and time information of the auxiliary positioning data of the terminal And sending a probe response frame to the to-be-shared terminal, where the probe response frame includes auxiliary positioning data of the terminal.
  • the sending module 602 is specifically configured to:
  • the time information of the auxiliary positioning data of the terminal to be shared is determined to be invalid time information, according to the time information of the auxiliary positioning data of the terminal, the interval between the time of determining the auxiliary positioning data of the terminal and the current time is less than or equal to After a threshold, determining that the auxiliary positioning data of the terminal is valid; or
  • auxiliary positioning of the terminal Determining the auxiliary positioning of the terminal according to the time information of the auxiliary positioning data of the terminal and the time information of the auxiliary positioning data of the terminal to be shared when determining that the time information of the auxiliary positioning data of the terminal to be shared is the effective time The time of the data is later than the auxiliary positioning of the terminal to be shared After the time of the data, it is determined that the auxiliary positioning data of the terminal is valid.
  • FIG. 7 is a schematic structural diagram of a terminal according to Embodiment 4 of the present application.
  • the terminal is configured to perform operations performed by a terminal to be shared in the foregoing method, and the terminal 700 includes: the terminal 700 includes: a receiver 701a, a transmitter 701b, a processor 702, a memory 703, and a bus system 704;
  • the memory 703 is used to store a program.
  • the program can include program code, the program code including computer operating instructions.
  • the memory 703 may be a random access memory (RAM) or a non-volatile memory such as at least one disk storage. Only one memory is shown in the figure, of course, the memory can also be set to a plurality as needed. Memory 703 can also be a memory in processor 702.
  • the memory 703 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:
  • Operation instructions include various operation instructions for implementing various operations.
  • Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
  • the processor 702 controls the operation of the terminal 700, which may also be referred to as a CPU (Central Processing Unit).
  • the various components of the terminal 700 are coupled together by a bus system 704.
  • the bus system 704 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus.
  • various buses are labeled as bus system 704 in the figure. For ease of representation, only the schematic drawing is shown in FIG.
  • Processor 702 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 702 or an instruction in a form of software.
  • the processor 702 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the microprocessor or the processor can also be any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 703, and the processor 702 reads the information in the memory 703 and performs the following steps in conjunction with its hardware:
  • the transmitter 701b is configured to send a probe request frame, where the probe request frame includes request information for assisting positioning data.
  • the receiver 701a is configured to receive a probe response frame that is sent by the at least one shared terminal according to the request information of the auxiliary positioning data, where the probe response frame sent by each of the at least one shared terminal includes the Response information of auxiliary positioning data of each shared terminal;
  • the processor 702 is configured to update the auxiliary positioning data in the terminal according to the response information of the auxiliary positioning data of the at least one shared terminal.
  • the response information of the auxiliary positioning data of each shared terminal includes the auxiliary positioning data of each shared terminal and the time information of the auxiliary positioning data of each shared terminal;
  • the processor 702 is specifically configured to:
  • the auxiliary positioning data corresponding to the time information with the smallest current time interval is determined as the auxiliary positioning data after the terminal is updated.
  • the request information of the auxiliary positioning data is located between a frame header of the probe request frame and a frame check sequence FCS.
  • the response information of the auxiliary positioning data is located between a frame header of the probe response frame and the FCS.
  • FIG. 8 is a schematic structural diagram of a terminal according to Embodiment 5 of the present application.
  • the terminal may be used to perform operations performed by a shared terminal in the foregoing method process.
  • the terminal 800 includes: the terminal 800 includes: receiving 801a, transmitter 801b, processor 802, memory 803, and total Line system 804;
  • the memory 803 is used to store a program.
  • the program can include program code, the program code including computer operating instructions.
  • the memory 803 may be a random access memory (RAM) or a non-volatile memory, such as at least one disk storage. Only one memory is shown in the figure, of course, the memory can also be set to a plurality as needed. Memory 803 can also be a memory in processor 802.
  • the memory 803 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:
  • Operation instructions include various operation instructions for implementing various operations.
  • Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
  • the processor 802 controls the operation of the terminal 800, which may also be referred to as a CPU (Central Processing Unit).
  • the various components of the terminal 800 are coupled together by a bus system 804.
  • the bus system 804 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus.
  • various buses are labeled as bus system 804 in the figure. For ease of representation, only the schematic drawing is shown in FIG.
  • Processor 802 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 802 or an instruction in a form of software.
  • the processor 802 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers And other mature storage media in the field.
  • the storage medium is located in the memory 803, and the processor 802 reads the information in the memory 803 and performs the following steps in conjunction with its hardware:
  • the receiver 801a is configured to receive a probe request frame sent by the terminal to be shared, where the probe request frame includes request information for assisting positioning data.
  • the transmitter 801b is configured to send a probe response frame to the to-be-shared terminal according to the request information of the auxiliary positioning data in the probe request frame, where the probe response frame includes response information of the auxiliary positioning data.
  • the request information of the auxiliary positioning data includes a request identifier of the auxiliary positioning data and time information of the auxiliary positioning data of the terminal to be shared;
  • the transmitter 801b is specifically configured to:
  • determining that the request identifier of the auxiliary positioning data is a valid request identifier determining that the auxiliary positioning data of the terminal is valid according to time information of the auxiliary positioning data of the to-be-shared terminal and time information of the auxiliary positioning data of the terminal And sending a probe response frame to the to-be-shared terminal, where the probe response frame includes auxiliary positioning data of the terminal.
  • the transmitter 801b is specifically configured to:
  • the time information of the auxiliary positioning data of the terminal to be shared is determined to be invalid time information, according to the time information of the auxiliary positioning data of the terminal, the interval between the time of determining the auxiliary positioning data of the terminal and the current time is less than or equal to After a threshold, determining that the auxiliary positioning data of the terminal is valid; or
  • auxiliary positioning of the terminal Determining the auxiliary positioning of the terminal according to the time information of the auxiliary positioning data of the terminal and the time information of the auxiliary positioning data of the terminal to be shared when determining that the time information of the auxiliary positioning data of the terminal to be shared is the effective time After the time of the data is later than the time of the auxiliary positioning data of the terminal to be shared, it is determined that the auxiliary positioning data of the terminal is valid.
  • the request information of the auxiliary positioning data is sent by the terminal to be shared based on the probe request frame, and the response information of the auxiliary positioning data of the at least one shared terminal is received by the probe response frame, thereby
  • the shared terminal can update the auxiliary positioning data in the shared terminal without networking, without increasing the configuration on the network side.
  • the sharing of the auxiliary positioning data between the terminal and the terminal is compared with the method in the prior art that the terminal needs to communicate with the A-GNSS server to obtain the auxiliary positioning data, thereby reducing the network burden; and between the shared terminal and the shared terminal is The communication is realized by detecting the request frame and the probe response frame, and the network connection is not required to be established between the shared terminal and the shared terminal, so that the communication efficiency can be further improved, and the positioning speed based on the auxiliary positioning data is improved.
  • embodiments of the present application can be provided as a method, or a computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware.
  • the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

An assisted positioning data sharing method, and a terminal. The method comprises: a terminal to be shared sending a detection request frame and receiving a detection response frame sent by at least one sharing terminal according to request information about assisted positioning data in the detection request frame, wherein the detection response frame sent by each sharing terminal of the at least one sharing terminal comprises response information about the assisted positioning data of each sharing terminal; and the terminal to be shared updating the assisted positioning data of the terminal to be shared according to the response information about the assisted positioning data of the at least one sharing terminal. In the present application, a terminal to be shared can update assisted positioning data of the terminal to be shared without a network connection, thereby achieving the sharing of assisted positioning data between different terminals.

Description

一种辅助定位数据的共享方法及终端Method and terminal for sharing auxiliary positioning data 技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种辅助定位数据的共享方法及终端。The present application relates to the field of communications technologies, and in particular, to a method and a terminal for sharing positioning data.
背景技术Background technique
随着智能化时代的到来,终端的配置越来越强大,终端上的应用也越来越多。目前,大部分应用为便于给用户提供更加人性化的服务,需要获取终端的位置信息,因此,如何确定终端的位置(即定位)已成为一个重要的研究问题。With the advent of the intelligent era, the configuration of terminals is becoming more and more powerful, and the applications on the terminals are also increasing. At present, most applications need to obtain the location information of the terminal in order to provide users with more humanized services. Therefore, how to determine the location (ie, positioning) of the terminal has become an important research problem.
辅助GNSS技术(Assisted Global Navigation Satellite System,A-GNSS)是目前广泛采用的一种定位方法。采用辅助GNSS技术对终端进行定位时,需要依据辅助定位数据,因此,辅助定位数据在终端的定位过程中具有重要作用,且直接影响到定位的效率和准确性。然而,采用A-GNSS定位技术,终端需要和A-GNSS服务器建立网络连接,根据建立的连接从A-GNSS服务器获取辅助定位数据,从而会增加网络负担。Assisted Global Navigation Satellite System (A-GNSS) is a widely used positioning method. When using the auxiliary GNSS technology to locate the terminal, it needs to be based on the auxiliary positioning data. Therefore, the auxiliary positioning data plays an important role in the positioning process of the terminal, and directly affects the efficiency and accuracy of the positioning. However, with the A-GNSS positioning technology, the terminal needs to establish a network connection with the A-GNSS server, and obtain auxiliary positioning data from the A-GNSS server according to the established connection, thereby increasing the network load.
综上,目前亟需一种辅助定位数据的共享方法,用于解决现有技术中终端需要和A-GNSS服务器进行通讯来获取辅助定位数据而导致增加网络负担的技术问题。In summary, there is a need for a method for sharing positioning data to solve the technical problem that the terminal needs to communicate with the A-GNSS server to obtain the auxiliary positioning data and increase the network burden.
发明内容Summary of the invention
本申请提供一种辅助定位数据的共享方法及终端,用于解决现有技术中终端需要和A-GNSS服务器进行通讯来获取辅助定位数据而增加网络负担的技术问题。The present invention provides a method and a terminal for assisting positioning data sharing, which are used to solve the technical problem that a terminal needs to communicate with an A-GNSS server to obtain auxiliary positioning data and increase network load in the prior art.
本申请提供的一种辅助定位数据的共享方法,包括:A method for sharing auxiliary positioning data provided by the present application includes:
待共享终端发送探测请求帧,所述探测请求帧中包括辅助定位数据的请 求信息;The shared terminal sends a probe request frame, and the probe request frame includes the auxiliary positioning data. Ask for information;
所述待共享终端接收至少一个共享终端根据所述辅助定位数据的的请求信息发送的探测响应帧,所述至少一个共享终端中的每一共享终端发送的探测响应帧中包括所述每一共享终端的辅助定位数据的响应信息;The to-be-shared terminal receives the probe response frame that is sent by the at least one shared terminal according to the request information of the auxiliary positioning data, and the probe response frame sent by each shared terminal in the at least one shared terminal includes the each share Response information of the auxiliary positioning data of the terminal;
所述待共享终端根据所述至少一个共享终端的辅助定位数据的响应信息,对所述待共享终端中的辅助定位数据进行更新。The to-be-shared terminal updates the auxiliary positioning data in the to-be-shared terminal according to the response information of the auxiliary positioning data of the at least one shared terminal.
如此,待共享终端基于探测请求帧来发送辅助定位数据的请求信息,以及通过探测响应帧来接收至少一个共享终端的辅助定位数据的响应信息,从而使得待共享终端可以在不联网,无需增加网络侧配置的情况下,对待共享终端中的辅助定位数据进行更新,实现不同终端之间的辅助定位数据的共享,相比于现有技术中终端需要和A-GNSS服务器进行通讯来获取辅助定位数据的方式,降低了网络负担;且待共享终端和共享终端之间是通过探测请求帧和探测响应帧来实现通信的,无需待共享终端和共享终端建立网络连接,因此能够进一步提高通信效率,有利于提高基于辅助定位数据的定位速度。In this way, the to-be-shared terminal sends the request information of the auxiliary positioning data based on the probe request frame, and receives the response information of the auxiliary positioning data of the at least one shared terminal by detecting the response frame, so that the terminal to be shared can be not connected to the network, and the network does not need to be added. In the case of the side configuration, the auxiliary positioning data in the shared terminal is updated to realize the sharing of the auxiliary positioning data between different terminals. Compared with the prior art, the terminal needs to communicate with the A-GNSS server to obtain the auxiliary positioning data. The method reduces the network burden; and the communication between the shared terminal and the shared terminal is realized by the probe request frame and the probe response frame, and the network connection is not required to be established between the shared terminal and the shared terminal, so that the communication efficiency can be further improved. It is beneficial to improve the positioning speed based on auxiliary positioning data.
可选地,所述每一共享终端的辅助定位数据的响应信息中包括所述每一共享终端的辅助定位数据和所述每一共享终端的辅助定位数据的时间信息;Optionally, the response information of the auxiliary positioning data of each shared terminal includes the auxiliary positioning data of each shared terminal and the time information of the auxiliary positioning data of each shared terminal;
所述待共享终端根据所述至少一个共享终端的辅助定位数据的响应信息,对所述待共享终端中的辅助定位数据进行更新,包括:Updating, by the to-be-shared terminal, the auxiliary positioning data in the to-be-shared terminal according to the response information of the auxiliary positioning data of the at least one shared terminal, including:
所述待共享终端在所述至少一个共享终端的辅助定位数据的时间信息中,确定出与当前时间间隔最小的时间信息;The time to be shared by the terminal to be shared in the time information of the auxiliary positioning data of the at least one shared terminal is determined to be the smallest time interval from the current time interval;
所述待共享终端将与当前时间间隔最小的时间信息对应的辅助定位数据确定为所述待共享终端更新后的辅助定位数据。The to-be-shared terminal determines the auxiliary positioning data corresponding to the time information with the smallest current time interval as the auxiliary positioning data after the terminal to be shared.
如此,待共享终端基于时间信息来对辅助定位数据进行更新,并将与当前时间间隔最小的时间信息对应的辅助定位数据(即利用价值最大的辅助定位数据),确定为更新后的辅助定位数据,从而使得后续定位更为准确。In this way, the to-be-shared terminal updates the auxiliary positioning data based on the time information, and determines the auxiliary positioning data corresponding to the time information with the smallest current time interval (ie, the auxiliary positioning data with the largest utilization value) as the updated auxiliary positioning data. , so that subsequent positioning is more accurate.
可选地,所述辅助定位数据的请求信息位于所述探测请求帧的帧头和帧校验序列FCS之间。 Optionally, the request information of the auxiliary positioning data is located between a frame header of the probe request frame and a frame check sequence FCS.
可选地,所述辅助定位数据的响应信息位于所述探测响应帧的帧头和FCS之间。Optionally, the response information of the auxiliary positioning data is located between a frame header of the probe response frame and the FCS.
根据现有的通信协议中规定,可以对探测响应帧的帧体进行扩展,因此,本申请中请求信息和响应信息可以位于探测响应帧的帧头和FCS之间,即帧体,从而尽量减少对现有通信协议的更改。According to the provisions of the existing communication protocol, the frame body of the probe response frame can be extended. Therefore, the request information and the response information in the present application can be located between the frame header of the probe response frame and the FCS, that is, the frame body, thereby minimizing Changes to existing communication protocols.
本申请提供一种辅助定位数据的共享方法,所述方法包括:The application provides a method for sharing positioning data, the method comprising:
共享终端接收待共享终端发送的探测请求帧,所述探测请求帧中包括辅助定位数据的请求信息;The sharing terminal receives the probe request frame sent by the terminal to be shared, and the probe request frame includes request information for assisting the positioning data;
所述共享终端根据所述探测请求帧中的辅助定位数据的请求信息向所述待共享终端发送探测响应帧,所述探测响应帧中包括所述辅助定位数据的响应信息。And the sharing terminal sends a probe response frame to the to-be-shared terminal according to the request information of the auxiliary positioning data in the probe request frame, where the probe response frame includes response information of the auxiliary positioning data.
如此,共享终端接收探测请求帧,并通过探测响应帧发送辅助定位数据的响应信息,从而可以在不联网,无需增加网络侧配置的情况下,实现不同终端之间的辅助定位数据的共享,相比于现有技术中终端需要和A-GNSS服务器进行通讯来获取辅助定位数据的方式,降低了网络负担;且待共享终端和共享终端之间是通过探测请求帧和探测响应帧来实现通信的,无需待共享终端和共享终端建立网络连接,因此能够进一步提高通信效率,有利于提高基于辅助定位数据的定位速度。In this way, the shared terminal receives the probe request frame and sends the response information of the auxiliary positioning data through the probe response frame, so that the auxiliary positioning data sharing between different terminals can be realized without networking, without increasing the network side configuration. Compared with the prior art, the terminal needs to communicate with the A-GNSS server to obtain the auxiliary positioning data, which reduces the network burden; and the communication between the to-be-shared terminal and the shared terminal is achieved by detecting the request frame and the probe response frame. There is no need to establish a network connection between the shared terminal and the shared terminal, so that the communication efficiency can be further improved, and the positioning speed based on the auxiliary positioning data is improved.
可选地,所述辅助定位数据的请求信息包括所述辅助定位数据的请求标识和所述待共享终端的辅助定位数据的时间信息;Optionally, the request information of the auxiliary positioning data includes a request identifier of the auxiliary positioning data and time information of the auxiliary positioning data of the terminal to be shared;
所述共享终端根据所述探测请求帧中的请求信息向所述待共享终端发送探测响应帧,包括:And sending, by the sharing terminal, the probe response frame to the to-be-shared terminal according to the request information in the probe request frame, including:
所述共享终端确定所述辅助定位数据的请求标识为有效请求标识后,根据所述待共享终端的辅助定位数据的时间信息和所述共享终端的辅助定位数据的时间信息,若确定所述共享终端的辅助定位数据有效,则向所述待共享终端发送探测响应帧,所述探测响应帧中包括所述共享终端的辅助定位数据。After the sharing terminal determines that the request identifier of the auxiliary positioning data is a valid request identifier, according to the time information of the auxiliary positioning data of the to-be-shared terminal and the time information of the auxiliary positioning data of the shared terminal, if the sharing is determined If the auxiliary positioning data of the terminal is valid, the probe response frame is sent to the to-be-shared terminal, and the probe response frame includes the auxiliary positioning data of the shared terminal.
如此,共享终端确定请求标识为有效请求标识后,方可判断共享终端的 辅助定位数据是否有效,并在确定辅助定位数据有效后,方可向待共享终端发送探测响应帧,由此,经过上述两个判断过程,并在判断结果符合相应要求后,向待共享终端发送探测响应帧,从而能够避免不必要的信息传输,有效节省传输资源,并能够有效避免待共享终端接收到过多的无效信息,节省待共享终端的处理资源。In this way, after the shared terminal determines that the request identifier is a valid request identifier, the shared terminal can be determined. Whether the auxiliary positioning data is valid, and after determining that the auxiliary positioning data is valid, the probe response frame may be sent to the to-be-shared terminal, and after the above two judging processes, and after the judging result meets the corresponding requirement, the method is sent to the to-be-shared terminal. The response frame is detected, thereby avoiding unnecessary information transmission, effectively saving transmission resources, and effectively avoiding excessive invalid information received by the terminal to be shared, thereby saving processing resources of the terminal to be shared.
可选地,所述共享终端根据所述待共享终端的辅助定位数据的时间信息和所述共享终端的辅助定位数据的时间信息,确定所述共享终端的辅助定位数据有效,包括:Optionally, the sharing terminal determines that the auxiliary positioning data of the sharing terminal is valid according to the time information of the auxiliary positioning data of the to-be-shared terminal and the time information of the auxiliary positioning data of the shared terminal, including:
所述共享终端确定所述待共享终端的辅助定位数据的时间信息为无效时间信息时,根据所述共享终端的辅助定位数据的时间信息,在判断所述共享终端的辅助定位数据的时间与当前时间的间隔小于等于第一阈值后,确定所述共享终端的辅助定位数据有效;或者,When the time information of the auxiliary positioning data of the to-be-shared terminal is determined to be invalid time information, the sharing terminal determines the time and current time of the auxiliary positioning data of the shared terminal according to the time information of the auxiliary positioning data of the shared terminal. After the time interval is less than or equal to the first threshold, determining that the auxiliary positioning data of the shared terminal is valid; or
所述共享终端确定所述待共享终端的辅助定位数据的时间信息为有效时间信息时,根据所述共享终端的辅助定位数据的时间信息和所述待共享终端的辅助定位数据的时间信息,确定所述共享终端的辅助定位数据的时间晚于所述待共享终端的辅助定位数据的时间后,确定所述共享终端的辅助定位数据有效。Determining, according to the time information of the auxiliary positioning data of the shared terminal and the time information of the auxiliary positioning data of the to-be-shared terminal, when the sharing terminal determines that the time information of the auxiliary positioning data of the to-be-shared terminal is the valid time information. After the time of the auxiliary positioning data of the shared terminal is later than the time of the auxiliary positioning data of the to-be-shared terminal, it is determined that the auxiliary positioning data of the shared terminal is valid.
如此,针对待共享终端的辅助定位数据的时间信息是否有效,可采用不同的判断方式来确定共享终端的辅助定位数据是否有效,从而能够针对两种情况作出准确合理的判断。In this way, whether the time information of the auxiliary positioning data of the terminal to be shared is valid, different judgment manners may be used to determine whether the auxiliary positioning data of the shared terminal is valid, so that accurate and reasonable judgment can be made for the two situations.
本申请提供一种终端,所述终端包括:The application provides a terminal, where the terminal includes:
发送模块,用于发送探测请求帧,所述探测请求帧中包括辅助定位数据的请求信息;a sending module, configured to send a probe request frame, where the probe request frame includes request information for assisting positioning data;
接收模块,用于接收至少一个共享终端根据所述辅助定位数据的的请求信息发送的探测响应帧,所述至少一个共享终端中的每一共享终端发送的探测响应帧中包括所述每一共享终端的辅助定位数据的响应信息;a receiving module, configured to receive a probe response frame that is sent by the at least one shared terminal according to the request information of the auxiliary positioning data, where each of the at least one shared terminal includes the probe response frame Response information of the auxiliary positioning data of the terminal;
处理模块,用于根据所述至少一个共享终端的辅助定位数据的响应信息, 对所述终端中的辅助定位数据进行更新。a processing module, configured to respond information according to the auxiliary positioning data of the at least one shared terminal, The auxiliary positioning data in the terminal is updated.
可选地,所述每一共享终端的辅助定位数据的响应信息中包括所述每一共享终端的辅助定位数据和所述每一共享终端的辅助定位数据的时间信息;Optionally, the response information of the auxiliary positioning data of each shared terminal includes the auxiliary positioning data of each shared terminal and the time information of the auxiliary positioning data of each shared terminal;
所述处理模块具体用于:The processing module is specifically configured to:
在所述至少一个共享终端的辅助定位数据的时间信息中,确定出与当前时间间隔最小的时间信息;Determining, in time information of the auxiliary positioning data of the at least one shared terminal, time information that is the smallest time interval from the current time interval;
将与当前时间间隔最小的时间信息对应的辅助定位数据确定为所述终端更新后的辅助定位数据。The auxiliary positioning data corresponding to the time information with the smallest current time interval is determined as the auxiliary positioning data after the terminal is updated.
可选地,所述辅助定位数据的请求信息位于所述探测请求帧的帧头和帧校验序列FCS之间。Optionally, the request information of the auxiliary positioning data is located between a frame header of the probe request frame and a frame check sequence FCS.
可选地,所述辅助定位数据的响应信息位于所述探测响应帧的帧头和FCS之间。Optionally, the response information of the auxiliary positioning data is located between a frame header of the probe response frame and the FCS.
本申请提供一种终端,所述终端包括:The application provides a terminal, where the terminal includes:
接收模块,用于接收待共享终端发送的探测请求帧,所述探测请求帧中包括辅助定位数据的请求信息;a receiving module, configured to receive a probe request frame sent by the terminal to be shared, where the probe request frame includes request information for assisting positioning data;
发送模块,用于根据所述探测请求帧中的辅助定位数据的请求信息向所述待共享终端发送探测响应帧,所述探测响应帧中包括所述辅助定位数据的响应信息。And a sending module, configured to send a probe response frame to the to-be-shared terminal according to the request information of the auxiliary positioning data in the probe request frame, where the probe response frame includes response information of the auxiliary positioning data.
可选地,所述辅助定位数据的请求信息包括所述辅助定位数据的请求标识和所述待共享终端的辅助定位数据的时间信息;Optionally, the request information of the auxiliary positioning data includes a request identifier of the auxiliary positioning data and time information of the auxiliary positioning data of the terminal to be shared;
所述发送模块具体用于:The sending module is specifically configured to:
确定所述辅助定位数据的请求标识为有效请求标识后,根据所述待共享终端的辅助定位数据的时间信息和所述终端的辅助定位数据的时间信息,若确定所述终端的辅助定位数据有效,则向所述待共享终端发送探测响应帧,所述探测响应帧中包括所述终端的辅助定位数据。After determining that the request identifier of the auxiliary positioning data is a valid request identifier, determining that the auxiliary positioning data of the terminal is valid according to time information of the auxiliary positioning data of the to-be-shared terminal and time information of the auxiliary positioning data of the terminal And sending a probe response frame to the to-be-shared terminal, where the probe response frame includes auxiliary positioning data of the terminal.
可选地,所述发送模块具体用于:Optionally, the sending module is specifically configured to:
确定所述待共享终端的辅助定位数据的时间信息为无效时间信息时,根 据所述终端的辅助定位数据的时间信息,在判断所述终端的辅助定位数据的时间与当前时间的间隔小于等于第一阈值后,确定所述终端的辅助定位数据有效;或者,When it is determined that the time information of the auxiliary positioning data of the terminal to be shared is invalid time information, the root Determining, according to the time information of the auxiliary positioning data of the terminal, that the auxiliary positioning data of the terminal is valid after determining that the interval between the time of the auxiliary positioning data of the terminal and the current time is less than or equal to the first threshold; or
确定所述待共享终端的辅助定位数据的时间信息为有效时间时,根据所述终端的辅助定位数据的时间信息和所述待共享终端的辅助定位数据的时间信息,确定所述终端的辅助定位数据的时间晚于所述待共享终端的辅助定位数据的时间后,确定所述终端的辅助定位数据有效。Determining the auxiliary positioning of the terminal according to the time information of the auxiliary positioning data of the terminal and the time information of the auxiliary positioning data of the terminal to be shared when determining that the time information of the auxiliary positioning data of the terminal to be shared is the effective time After the time of the data is later than the time of the auxiliary positioning data of the terminal to be shared, it is determined that the auxiliary positioning data of the terminal is valid.
本申请提供一种终端,所述终端包括:The application provides a terminal, where the terminal includes:
发送器,用于发送探测请求帧,所述探测请求帧中包括辅助定位数据的请求信息;a transmitter, configured to send a probe request frame, where the probe request frame includes request information for assisting positioning data;
接收器,用于接收至少一个共享终端根据所述辅助定位数据的的请求信息发送的探测响应帧,所述至少一个共享终端中的每一共享终端发送的探测响应帧中包括所述每一共享终端的辅助定位数据的响应信息;a receiver, configured to receive a probe response frame that is sent by the at least one shared terminal according to the request information of the auxiliary positioning data, where each of the at least one shared terminal includes the probe response frame Response information of the auxiliary positioning data of the terminal;
处理器,用于根据所述至少一个共享终端的辅助定位数据的响应信息,对所述终端中的辅助定位数据进行更新。And a processor, configured to update the auxiliary positioning data in the terminal according to the response information of the auxiliary positioning data of the at least one shared terminal.
可选地,所述每一共享终端的辅助定位数据的响应信息中包括所述每一共享终端的辅助定位数据和所述每一共享终端的辅助定位数据的时间信息;Optionally, the response information of the auxiliary positioning data of each shared terminal includes the auxiliary positioning data of each shared terminal and the time information of the auxiliary positioning data of each shared terminal;
所述处理器具体用于:The processor is specifically configured to:
在所述至少一个共享终端的辅助定位数据的时间信息中,确定出与当前时间间隔最小的时间信息;Determining, in time information of the auxiliary positioning data of the at least one shared terminal, time information that is the smallest time interval from the current time interval;
将与当前时间间隔最小的时间信息对应的辅助定位数据确定为所述终端更新后的辅助定位数据。The auxiliary positioning data corresponding to the time information with the smallest current time interval is determined as the auxiliary positioning data after the terminal is updated.
可选地,所述辅助定位数据的请求信息位于所述探测请求帧的帧头和帧校验序列FCS之间。Optionally, the request information of the auxiliary positioning data is located between a frame header of the probe request frame and a frame check sequence FCS.
可选地,所述辅助定位数据的响应信息位于所述探测响应帧的帧头和FCS之间。Optionally, the response information of the auxiliary positioning data is located between a frame header of the probe response frame and the FCS.
本申请提供一种终端,所述终端包括: The application provides a terminal, where the terminal includes:
接收器,用于接收待共享终端发送的探测请求帧,所述探测请求帧中包括辅助定位数据的请求信息;a receiver, configured to receive a probe request frame sent by the terminal to be shared, where the probe request frame includes request information for assisting positioning data;
发送器,用于根据所述探测请求帧中的辅助定位数据的请求信息向所述待共享终端发送探测响应帧,所述探测响应帧中包括所述辅助定位数据的响应信息。And a transmitter, configured to send a probe response frame to the to-be-shared terminal according to the request information of the auxiliary positioning data in the probe request frame, where the probe response frame includes response information of the auxiliary positioning data.
可选地,所述辅助定位数据的请求信息包括所述辅助定位数据的请求标识和所述待共享终端的辅助定位数据的时间信息;Optionally, the request information of the auxiliary positioning data includes a request identifier of the auxiliary positioning data and time information of the auxiliary positioning data of the terminal to be shared;
所述发送器具体用于:The transmitter is specifically configured to:
确定所述辅助定位数据的请求标识为有效请求标识后,根据所述待共享终端的辅助定位数据的时间信息和所述终端的辅助定位数据的时间信息,若确定所述终端的辅助定位数据有效,则向所述待共享终端发送探测响应帧,所述探测响应帧中包括所述终端的辅助定位数据。After determining that the request identifier of the auxiliary positioning data is a valid request identifier, determining that the auxiliary positioning data of the terminal is valid according to time information of the auxiliary positioning data of the to-be-shared terminal and time information of the auxiliary positioning data of the terminal And sending a probe response frame to the to-be-shared terminal, where the probe response frame includes auxiliary positioning data of the terminal.
可选地,所述发送器具体用于:Optionally, the transmitter is specifically configured to:
确定所述待共享终端的辅助定位数据的时间信息为无效时间信息时,根据所述终端的辅助定位数据的时间信息,在判断所述终端的辅助定位数据的时间与当前时间的间隔小于等于第一阈值后,确定所述终端的辅助定位数据有效;或者,When the time information of the auxiliary positioning data of the terminal to be shared is determined to be invalid time information, according to the time information of the auxiliary positioning data of the terminal, the interval between the time of determining the auxiliary positioning data of the terminal and the current time is less than or equal to After a threshold, determining that the auxiliary positioning data of the terminal is valid; or
确定所述待共享终端的辅助定位数据的时间信息为有效时间时,根据所述终端的辅助定位数据的时间信息和所述待共享终端的辅助定位数据的时间信息,确定所述终端的辅助定位数据的时间晚于所述待共享终端的辅助定位数据的时间后,确定所述终端的辅助定位数据有效。Determining the auxiliary positioning of the terminal according to the time information of the auxiliary positioning data of the terminal and the time information of the auxiliary positioning data of the terminal to be shared when determining that the time information of the auxiliary positioning data of the terminal to be shared is the effective time After the time of the data is later than the time of the auxiliary positioning data of the terminal to be shared, it is determined that the auxiliary positioning data of the terminal is valid.
本申请通过待共享终端基于探测请求帧来发送辅助定位数据的请求信息,以及通过探测响应帧来接收至少一个共享终端的辅助定位数据的响应信息,从而使得待共享终端可以在不联网,无需增加网络侧配置的情况下,对待共享终端中的辅助定位数据进行更新,实现不同终端之间的辅助定位数据的共享,相比于现有技术中终端需要和A-GNSS服务器进行通讯来获取辅助定位数据的方式,降低了网络负担;且待共享终端和共享终端之间是通过探测 请求帧和探测响应帧来实现通信的,无需待共享终端和共享终端建立网络连接,因此能够进一步提高通信效率,有利于提高基于辅助定位数据的定位速度。The application sends the request information of the auxiliary positioning data based on the probe request frame by the to-be-shared terminal, and receives the response information of the auxiliary positioning data of the at least one shared terminal by detecting the response frame, so that the terminal to be shared can be not connected to the network, and does not need to be added. In the case of the network side configuration, the auxiliary positioning data in the shared terminal is updated to realize the sharing of the auxiliary positioning data between different terminals. Compared with the prior art, the terminal needs to communicate with the A-GNSS server to obtain the auxiliary positioning. The way of data reduces the network burden; and between the shared terminal and the shared terminal is detected The request frame and the probe response frame are used for communication, and the network connection between the shared terminal and the shared terminal is not required, so that the communication efficiency can be further improved, and the positioning speed based on the auxiliary positioning data is improved.
附图说明DRAWINGS
为了更清楚地说明本申请中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application, For ordinary technicians, other drawings can be obtained based on these drawings without paying for creative labor.
图1a为Wi-Fi802.11通信协议中的探测请求帧的结构示意图;FIG. 1a is a schematic structural diagram of a probe request frame in a Wi-Fi 802.11 communication protocol;
图1b为Wi-Fi802.11通信协议中的探测响应帧的结构示意图;FIG. 1b is a schematic structural diagram of a probe response frame in a Wi-Fi 802.11 communication protocol;
图1c为本申请中的探测请求帧的结构示意图;FIG. 1c is a schematic structural diagram of a probe request frame in the present application;
图1d为本申请中的探测响应帧的结构示意图;1d is a schematic structural diagram of a probe response frame in the present application;
图2为本申请适用的一种系统架构示意图;2 is a schematic diagram of a system architecture applicable to the present application;
图3为本申请实施例一提供的一种辅助定位数据的共享方法所对应的流程示意图;FIG. 3 is a schematic flowchart of a method for sharing auxiliary positioning data according to Embodiment 1 of the present application;
图4为申请中辅助定位数据的共享方法的整体流程示意图;4 is a schematic overall flow chart of a method for sharing auxiliary positioning data in an application;
图5为本申请实施例二提供的一种终端的结构示意图;FIG. 5 is a schematic structural diagram of a terminal according to Embodiment 2 of the present application;
图6为本申请实施例三提供的一种终端的结构示意图;FIG. 6 is a schematic structural diagram of a terminal according to Embodiment 3 of the present application;
图7为本申请实施例四提供的一种终端的结构示意图;FIG. 7 is a schematic structural diagram of a terminal according to Embodiment 4 of the present application;
图8为本申请实施例五提供的一种终端的结构示意图。FIG. 8 is a schematic structural diagram of a terminal according to Embodiment 5 of the present application.
具体实施方式detailed description
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。The present invention will be further described in detail with reference to the accompanying drawings, in which FIG.
本申请实施例的说明书和权利要求书及上述附图中的术语“第一”、“第二” 等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包括。例如包括了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first" and "second" in the specification and claims of the embodiments of the present application and the above drawings Etc. is used to distinguish between different objects, not to describe a specific order. Moreover, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units not listed, or, optionally, Other steps or units inherent to these processes, methods, products or equipment.
基于现有的A-GNSS定位技术中,终端需要和A-GNSS服务器建立网络连接来获取辅助定位数据,从而会增加网络负担这一技术问题,本申请实施例提出一种多个终端之间共享辅助定位数据的方法,从而使得需要定位的终端无需从A-GNSS服务器来获取辅助定位数据,有效降低了网络负担。Based on the existing A-GNSS positioning technology, the terminal needs to establish a network connection with the A-GNSS server to obtain the auxiliary positioning data, thereby increasing the network burden. The embodiment of the present application proposes to share between multiple terminals. A method for assisting in locating data, so that the terminal that needs to be located does not need to obtain auxiliary positioning data from the A-GNSS server, thereby effectively reducing the network burden.
为实现多个终端之间共享辅助定位数据,本申请实施例通过扩展现有的短距通信协议来实现终端之间共享辅助定位数据,具体来说,可以在不影响现有的短距通信协议中探测请求帧(Probe Request)和探测响应帧(Probe Response)原有通信协议功能的基础上,对现有的探测请求帧和探测响应帧的数据格式进行扩展,进而通过扩展后的探测请求帧和探测响应帧来实现辅助定位数据的共享,而且采用这种方式,能够使得终端之间无需建立网络连接即可进行辅助定位数据的共享。In order to realize the sharing of the auxiliary positioning data between the multiple terminals, the embodiment of the present application realizes the sharing of the auxiliary positioning data between the terminals by extending the existing short-distance communication protocol. Specifically, the existing short-range communication protocol may not be affected. Based on the original communication protocol function of the probe request frame and the probe response frame (Probe Response), the data format of the existing probe request frame and the probe response frame is expanded, and then the extended probe request frame is extended. And the probe response frame is used to realize the sharing of the auxiliary positioning data, and in this way, the auxiliary positioning data can be shared without establishing a network connection between the terminals.
本申请实施例的共享方法所涉及到的探测请求帧和探测响应帧均是指扩展后的探测请求帧和探测响应帧。The probe request frame and the probe response frame involved in the sharing method of the embodiment of the present application refer to the extended probe request frame and the probe response frame.
需要说明的是,上述短距通信协议可以为无线保真(Wireless Fidelity,Wi-Fi)802.11通信协议或蓝牙通信协议,以及其它多种短距通信协议,具体不做限定。It should be noted that the short-distance communication protocol may be a Wireless Fidelity (Wi-Fi) 802.11 communication protocol or a Bluetooth communication protocol, and other various short-range communication protocols, which are not limited.
本申请实施例仅以探测请求帧和探测响应帧是根据Wi-Fi802.11通信协议中的探测请求帧和探测响应帧扩展后得到的为例进行说明。The embodiment of the present application is only described by taking an example that the probe request frame and the probe response frame are extended according to the probe request frame and the probe response frame in the Wi-Fi 802.11 communication protocol.
为更清楚地介绍本申请在的共享方法涉及到的探测请求帧和探测响应帧,下面首先对Wi-Fi802.11通信协议中的探测请求帧和探测响应帧进行介绍。In order to more clearly introduce the probe request frame and the probe response frame involved in the sharing method of the present application, the probe request frame and the probe response frame in the Wi-Fi 802.11 communication protocol are first introduced below.
图1a为Wi-Fi802.11通信协议中的探测请求帧的结构示意图。如图1a所示,Wi-Fi802.11通信协议中的探测请求帧包括以下3个部分:帧头(Header)、 帧体(Frame Body)、帧校验序列(Frame Check Sequence,FCS)。其中,帧头包括帧控制结构(Frame Control)、持续时间/标识(Duration/ID)、地址域(Address Fields)、序列控制域(Sequence Control)。FIG. 1a is a schematic structural diagram of a probe request frame in a Wi-Fi 802.11 communication protocol. As shown in FIG. 1a, the probe request frame in the Wi-Fi 802.11 communication protocol includes the following three parts: a header (Header), Frame Body, Frame Check Sequence (FCS). The frame header includes a Frame Control structure, a Duration/ID, an Address Field, and a Sequence Control.
图1b为Wi-Fi802.11通信协议中的探测响应帧的结构示意图。如图1b所示,Wi-Fi802.11通信协议中的探测响应帧也包括以下3个部分:帧头、帧体、FCS。其中,帧头包括帧控制结构、持续时间/标识、地址域、序列控制域。FIG. 1b is a schematic structural diagram of a probe response frame in a Wi-Fi 802.11 communication protocol. As shown in FIG. 1b, the probe response frame in the Wi-Fi 802.11 communication protocol also includes the following three parts: a frame header, a frame body, and an FCS. The frame header includes a frame control structure, a duration/identity, an address field, and a sequence control field.
Wi-Fi802.11通信协议中的探测请求帧和探测响应帧中Frame Body所包含的内容存在差异。具体来说,探测请求帧的Frame Body可包括服务集标识(Service Set Identity,SSID)、支持速率(Supported Rate)、扩展支持速率(Extended Supported Rate)。探测响应帧的Frame Body中包括多种内容,例如,SSID、扩展支持速率、强健安全网络(Robust Security Network,RSN)等。There is a difference between the content of the Frame Body contained in the probe request frame and the probe response frame in the Wi-Fi 802.11 communication protocol. Specifically, the Frame Body of the probe request frame may include a Service Set Identity (SSID), a Supported Rate, and an Extended Supported Rate. The Frame Body of the probe response frame includes various contents such as an SSID, an extended support rate, a Robust Security Network (RSN), and the like.
基于上述Wi-Fi802.11通信协议中的探测请求帧和探测响应帧的结构,本申请共享方法涉及到的探测请求帧可以是在Wi-Fi802.11通信协议中的探测请求帧中增加一个请求信息单元后得到的,请求信息单元用于携带辅助定位数据的请求信息。由于Wi-Fi802.11通信协议中规定,可以对探测请求帧的帧体进行扩展,因此,本申请中请求信息单元可以位于探测请求帧的帧头和FCS之间,即帧体,从而尽量减少对现有通信协议的更改。本申请中对请求信息单元在帧体中的具体位置不做限定,在探测请求帧如图1a中所示的情况下,请求信息单元可以位于以下任一区域:Based on the structure of the probe request frame and the probe response frame in the Wi-Fi 802.11 communication protocol, the probe request frame involved in the sharing method of the present application may be a request added in the probe request frame in the Wi-Fi 802.11 communication protocol. After the information unit is obtained, the request information unit is used to carry the request information of the auxiliary positioning data. As specified in the Wi-Fi 802.11 communication protocol, the frame body of the probe request frame may be extended. Therefore, the request information unit in the present application may be located between the frame header of the probe request frame and the FCS, that is, the frame body, thereby minimizing Changes to existing communication protocols. In the present application, the specific location of the request information element in the frame body is not limited. In the case where the probe request frame is as shown in FIG. 1a, the request information unit may be located in any of the following areas:
(1)帧头和SSID之间;(1) between the frame header and the SSID;
(2)SSID和支持速率之间;(2) between the SSID and the support rate;
(3)支持速率和扩展支持速率之间;(3) between the support rate and the extended support rate;
(4)扩展支持速率和FCS之间。(4) Extended support between the rate and the FCS.
本申请实施例以请求信息单元位于扩展支持速率和FCS之间为例,如图1c所示,为本申请中的探测请求帧的结构示意图。本申请涉及到的探测响应帧可以是在Wi-Fi802.11通信协议中的探测响应帧中增加一个响应信息单元后得到的,响应信息单元用于携带辅助定位数据的响应信息。由于Wi-Fi802.11 通信协议中规定,可以对探测响应帧的帧体进行扩展,因此,本申请中响应信息单元可以位于探测响应帧的帧头和FCS之间,即帧体,从而尽量减少对现有通信协议的更改。本申请中对响应信息单元在帧体中的具体位置不做限定,例如,响应信息单元可以位于强健安全网络和FCS之间,如图1d所示,为本申请中的探测响应帧的结构示意图。由于探测响应帧中帧体的内容较多,此处不再对响应信息单元的位置做过多示例性说明。For example, the request information unit is located between the extended support rate and the FCS, as shown in FIG. 1c, which is a schematic structural diagram of the probe request frame in this application. The probe response frame involved in the present application may be obtained by adding a response information unit to the probe response frame in the Wi-Fi 802.11 communication protocol, and the response information unit is configured to carry the response information of the auxiliary positioning data. Due to Wi-Fi 802.11 The communication protocol stipulates that the frame body of the probe response frame can be extended. Therefore, the response information unit in the present application can be located between the frame header of the probe response frame and the FCS, that is, the frame body, thereby minimizing the existing communication protocol. change. In this application, the specific location of the response information unit in the frame body is not limited. For example, the response information unit may be located between the robust security network and the FCS, as shown in FIG. 1d, which is a schematic structural diagram of the probe response frame in this application. . Since the content of the frame body in the probe response frame is large, the position of the response information unit is not exemplified here.
需要说明的是,本申请所提出的多个终端之间共享辅助定位数据的方法可以适用于上述所介绍的终端定位场景中,也可以适用于其它涉及到终端获取辅助定位数据的场景,具体不做限定。It should be noted that the method for sharing the auxiliary positioning data between the multiple terminals in the present application may be applicable to the terminal positioning scenario described above, and may also be applicable to other scenarios involving the terminal acquiring the auxiliary positioning data. Make a limit.
图2为本申请适用的一种系统架构示意图。该系统架构中可包括多个终端,多个终端中可以存在一个或一个以上的待共享终端以及一个或一个以上的共享终端,图2中仅以一个待共享终端和三个共享终端的情形为例进行说明。如图2所示,该系统架构中包括待共享终端201、第一共享终端2021、第二共享终端2022、第三共享终端2023。待共享终端201发送探测请求帧,第一共享终端2021、第二共享终端2022、第三共享终端2023接收到探测请求帧后,可向待共享终端201返回探测响应帧,探测响应帧中包括辅助定位数据的响应信息,也就是说,待共享终端201和第一共享终端2021、第二共享终端2022、第三共享终端2023之间可通过探测请求帧和探测响应帧进行通信。FIG. 2 is a schematic diagram of a system architecture applicable to the present application. The system architecture may include multiple terminals, and one or more terminals to be shared and one or more shared terminals may exist in multiple terminals. In FIG. 2, only one terminal to be shared and three shared terminals are used. The example is explained. As shown in FIG. 2, the system architecture includes a to-be-shared terminal 201, a first shared terminal 2021, a second shared terminal 2022, and a third shared terminal 2023. The to-be-shared terminal 201 sends a probe request frame, and after receiving the probe request frame, the first shared terminal 2021, the second shared terminal 2022, and the third shared terminal 2023 may return a probe response frame to the to-be-shared terminal 201, and the probe response frame includes the assistance. The response information of the positioning data, that is, the communication between the to-be-shared terminal 201 and the first shared terminal 2021, the second shared terminal 2022, and the third shared terminal 2023 can be communicated through the probe request frame and the probe response frame.
本申请中,待共享终端是指需要获取辅助定位数据的终端,共享终端是指向待共享终端发送辅助定位数据的终端。在不同的场景中,待共享终端也可以成为共享终端,共享终端也可以成为待共享终端。例如,在图1所示的架构中,在某一时刻,若第一共享终端2021确定需要获取辅助定位数据,而共享终端201、第二共享终端2022、第三共享终端2023不需要辅助定位数据,则第一共享终端2021可成为待共享终端,共享终端201、第二共享终端2022、第三共享终端2023可成为共享终端。In this application, the terminal to be shared refers to a terminal that needs to obtain auxiliary positioning data, and the shared terminal is a terminal that sends auxiliary positioning data to the terminal to be shared. In different scenarios, the terminal to be shared can also be a shared terminal, and the shared terminal can also be a terminal to be shared. For example, in the architecture shown in FIG. 1, at a certain moment, if the first sharing terminal 2021 determines that the auxiliary positioning data needs to be acquired, the sharing terminal 201, the second sharing terminal 2022, and the third sharing terminal 2023 do not need the auxiliary positioning data. The first shared terminal 2021 can be a shared terminal, and the shared terminal 201, the second shared terminal 2022, and the third shared terminal 2023 can become shared terminals.
本申请中,待共享终端和共享终端是指能够支持A-GNSS定位功能的终 端,可以为有线终端或无线终端,无线终端可以是具有无线连接功能的手持式设备、或连接到无线调制解调器的其他处理设备,经无线接入网与一个或多个核心网进行通信的移动终端。例如,无线终端可以为移动电话、平板电脑、个人数码助理(personal digital assistant,缩写:PDA)、移动互联网设备(mobile Internet device,缩写:MID)、可穿戴设备和电子书阅读器(e-book reader)等。又如,无线终端也可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动设备。In this application, the terminal to be shared and the shared terminal refer to the terminal that can support the A-GNSS positioning function. The terminal may be a wired terminal or a wireless terminal, and the wireless terminal may be a handheld device with a wireless connection function or another processing device connected to the wireless modem, and the mobile terminal communicates with one or more core networks via the wireless access network. . For example, the wireless terminal can be a mobile phone, a tablet, a personal digital assistant (PDA), a mobile Internet device (MID), a wearable device, and an e-book reader (e-book). Reader) and so on. As another example, the wireless terminal can also be a portable, pocket, handheld, computer built-in or in-vehicle mobile device.
本申请的一些技术方案可以基于图2举例所示的系统架构或其变形架构来具体实施。Some technical solutions of the present application may be specifically implemented based on the system architecture shown in FIG. 2 or its variant architecture.
图3为本申请实施例一提供的一种辅助定位数据的共享方法所对应的流程示意图,如图3所示,该方法包括:FIG. 3 is a schematic flowchart of a method for sharing auxiliary positioning data according to Embodiment 1 of the present application. As shown in FIG. 3, the method includes:
步骤301,待共享终端发送探测请求帧,所述探测请求帧中包括辅助定位数据的请求信息;Step 301: The to-be-shared terminal sends a probe request frame, where the probe request frame includes request information for assisting positioning data.
步骤302,共享终端接收待共享终端发送的探测请求帧;Step 302: The sharing terminal receives a probe request frame sent by the terminal to be shared.
步骤303,共享终端根据所述探测请求帧中的辅助定位数据的请求信息向所述待共享终端发送探测响应帧,所述探测响应帧中包括所述共享终端的辅助定位数据的响应信息;Step 303: The sharing terminal sends a probe response frame to the to-be-shared terminal according to the request information of the auxiliary location data in the probe request frame, where the probe response frame includes response information of the auxiliary location data of the shared terminal.
步骤304,待共享终端接收至少一个共享终端根据所述探测请求帧中的辅助定位数据的的请求信息发送的探测响应帧;Step 304: The to-be-shared terminal receives a probe response frame that is sent by the at least one shared terminal according to the request information of the auxiliary positioning data in the probe request frame.
步骤305,待共享终端根据所述至少一个共享终端的辅助定位数据的响应信息,对所述待共享终端中的辅助定位数据进行更新。Step 305: The to-be-shared terminal updates the auxiliary positioning data in the to-be-shared terminal according to the response information of the auxiliary positioning data of the at least one shared terminal.
上述流程中,步骤301、步骤304、步骤305可由图2中所示的待共享终端201来执行,步骤302、步骤303可由图2中所示的第一共享终端2021、第二共享终端2022、第三共享终端2023中的任一终端来执行。In the above process, step 301, step 304, and step 305 may be performed by the terminal to be shared 201 shown in FIG. 2, and step 302 and step 303 may be performed by the first sharing terminal 2021 and the second sharing terminal 2022 shown in FIG. 2. Any of the third sharing terminals 2023 is executed.
本申请中,待共享终端通过探测请求帧来发送辅助定位数据的请求信息,以及通过探测响应帧来接收至少一个共享终端的辅助定位数据的响应信息,从而使得待共享终端可以在不联网,无需增加网络侧配置的情况下,对待共 享终端中的辅助定位数据进行更新,即实现不同终端之间的辅助定位数据的共享,相比于现有技术中终端需要和A-GNSS服务器进行通讯来获取辅助定位数据的方式,本申请明显降低了网络负担,更加便捷有效;且待共享终端和共享终端之间是通过探测请求帧和探测响应帧来实现通信的,无需待共享终端和共享终端建立网络连接,因此能够进一步提高通信效率,有利于提高基于辅助定位数据的定位速度。In this application, the to-be-shared terminal sends the request information of the auxiliary positioning data through the probe request frame, and receives the response information of the auxiliary positioning data of the at least one shared terminal by detecting the response frame, so that the terminal to be shared can be not connected to the network, and Increase the network side configuration, treat the total The auxiliary positioning data in the terminal is updated, that is, the auxiliary positioning data sharing between different terminals is realized, and the method is similar to the method in the prior art that the terminal needs to communicate with the A-GNSS server to obtain the auxiliary positioning data. The network load is reduced, which is more convenient and effective; and the communication between the shared terminal and the shared terminal is realized by the probe request frame and the probe response frame, and the network connection is not required to be established between the shared terminal and the shared terminal, thereby further improving communication efficiency. It is beneficial to improve the positioning speed based on the auxiliary positioning data.
本申请中,辅助定位数据的请求信息可以包括辅助定位数据的请求标识和待共享终端的辅助定位数据的时间信息,具体来说,探测请求帧中的请求信息单元可以分为两个数据位:AGNSS DATA REQUEST和CURRENT DATA TIMESTSMP,AGNSS DATA REQUEST用于携带辅助定位数据的请求标识,CURRENT DATA TIMESTSMP用于携带待共享终端的辅助定位数据的时间信息,参见图1c所示。In this application, the request information of the auxiliary positioning data may include the request identifier of the auxiliary positioning data and the time information of the auxiliary positioning data of the terminal to be shared. Specifically, the request information unit in the probe request frame may be divided into two data bits: AGNSS DATA REQUEST and CURRENT DATA TIMESTSMP, AGNSS DATA REQUEST is used to carry the request identifier of the auxiliary positioning data, and CURRENT DATA TIMESTSMP is used to carry the time information of the auxiliary positioning data of the terminal to be shared, as shown in FIG. 1c.
辅助定位数据的请求标识用于来表明探测请求帧是否请求辅助定位数据,例如,第一种设定,若探测请求帧请求辅助定位数据,则辅助定位数据的请求标识可以为“1”或“TRUE”,此时辅助定位数据的请求标识为有效请求标识;若探测请求帧不请求辅助定位数据,则辅助定位数据的请求标识可以“0”或“FALSE”,此时辅助定位数据的请求标识为无效请求标识。或者第二种设定,若探测请求帧请求辅助定位数据,则辅助定位数据的请求标识可以为“0”或“FALSE”,此时辅助定位数据的请求标识为有效请求标识;若探测请求帧不请求辅助定位数据,则辅助定位数据的请求标识可以“1”或“TRUE”,此时辅助定位数据的请求标识为无效请求标识。本申请中仅以第一种设定为例进行说明。The request identifier of the auxiliary positioning data is used to indicate whether the probe request frame requests the auxiliary positioning data. For example, the first setting, if the probe request frame requests the assisted positioning data, the request identifier of the auxiliary positioning data may be “1” or “ TRUE", at this time, the request identifier of the auxiliary positioning data is a valid request identifier; if the probe request frame does not request the auxiliary positioning data, the request identifier of the auxiliary positioning data may be "0" or "FALSE", and the request identifier of the auxiliary positioning data at this time Identifies the invalid request. Or the second setting, if the probe request frame requests the auxiliary positioning data, the request identifier of the auxiliary positioning data may be “0” or “FALSE”, and the request identifier of the auxiliary positioning data is a valid request identifier; if the probe request frame If the auxiliary positioning data is not requested, the request identifier of the auxiliary positioning data may be “1” or “TRUE”, and the request identifier of the auxiliary positioning data is an invalid request identifier. In the present application, only the first setting is taken as an example for explanation.
待共享终端的辅助定位数据的时间信息用于表明待共享终端的辅助定位数据的时间(具体是指待共享终端的辅助定位数据的获取时间),例如,待共享终端的辅助定位数据是x年x月x日x时获取到的,则时间信息可以为x年x月x日x时,此时待共享终端的辅助定位数据的时间信息为有效时间信息。若待共享终端中不存在辅助定位数据,则时间信息可以设置为0,此时待共享 终端的辅助定位数据的时间信息为无效时间信息。The time information of the auxiliary positioning data of the terminal to be shared is used to indicate the time of the auxiliary positioning data of the terminal to be shared (specifically, the acquisition time of the auxiliary positioning data of the terminal to be shared), for example, the auxiliary positioning data of the terminal to be shared is x years. When the x-day x-day x is obtained, the time information may be x-year x-month x-day x, and the time information of the auxiliary positioning data of the terminal to be shared is the effective time information. If the auxiliary positioning data does not exist in the terminal to be shared, the time information can be set to 0, and the time is to be shared. The time information of the auxiliary positioning data of the terminal is invalid time information.
其中,请求标识和时间信息的表示方式均可由本领域技术人员根据经验设置,上述仅为示例说明。The manner in which the request identifier and the time information are expressed may be set by a person skilled in the art according to experience, and the above is merely an example.
在步骤301中,以定位场景为例,待共享终端在无需定位的情况下,可将探测请求帧中辅助定位数据的请求标识设置为无效请求标识,并根据现有短距通信协议,按照设定周期广播探测请求帧;当待共享终端确定需要定位后,则可将探测请求帧中辅助定位数据的请求标识设置为有效请求标识,并发送探测请求帧,具体的发送方式也可以为广播。其中,在无需定位和需要定位的情形中,探测请求帧中待共享终端的辅助定位数据的时间信息均是仅根据探测请求帧中待共享终端的辅助定位数据的更新情况来变化的。In step 301, taking the location scenario as an example, if the terminal to be shared does not need to be located, the request identifier of the auxiliary positioning data in the probe request frame may be set as an invalid request identifier, and according to the existing short-range communication protocol, according to the existing short-distance communication protocol. The fixed-cycle broadcast probe request frame; after the terminal to be shared determines that the location needs to be located, the request identifier of the auxiliary positioning data in the probe request frame may be set as a valid request identifier, and the probe request frame may be sent, and the specific sending manner may also be broadcast. The time information of the auxiliary positioning data of the terminal to be shared in the probe request frame is changed only according to the update situation of the auxiliary positioning data of the terminal to be shared in the probe request frame in the case that the positioning and the positioning are not required.
步骤302中,共享终端接收待共享终端发送的探测请求帧,并解析出探测请求帧中辅助定位数据的请求标识和待共享终端的辅助定位数据的时间信息。In step 302, the sharing terminal receives the probe request frame sent by the terminal to be shared, and parses the request identifier of the auxiliary positioning data in the probe request frame and the time information of the auxiliary positioning data of the terminal to be shared.
步骤303中,若共享终端确定辅助定位数据的请求标识为无效请求标识,则可按照现有短距通信协议中的方式对该探测请求帧进行处理,具体来说,可不反馈探测响应帧或者反馈的探测响应帧中不包括共享终端的辅助定位数据,从而有效节省传输资源。In step 303, if the sharing terminal determines that the request identifier of the auxiliary positioning data is an invalid request identifier, the probe request frame may be processed according to the manner in the existing short-range communication protocol. Specifically, the probe response frame or feedback may not be fed back. The probe response frame does not include the auxiliary positioning data of the shared terminal, thereby effectively saving transmission resources.
若共享终端确定辅助定位数据的请求标识为有效请求标识,则可根据待共享终端的辅助定位数据的时间信息和共享终端的辅助定位数据的时间信息,确定共享终端的辅助定位数据是否有效。若有效,则通过探测响应帧将共享终端的辅助定位数据发送给待共享终端,若无效,则可按照现有短距通信协议中的方式对该探测请求帧进行处理,具体来说,可不反馈探测响应帧或者反馈的探测响应帧中不包括共享终端的辅助定位数据,从而有效节省传输资源。If the request identifier of the shared positioning data is determined to be a valid request identifier, the shared positioning data of the shared terminal may be determined according to the time information of the auxiliary positioning data of the terminal to be shared and the time information of the auxiliary positioning data of the shared terminal. If it is valid, the auxiliary positioning data of the shared terminal is sent to the terminal to be shared by the probe response frame. If invalid, the probe request frame may be processed according to the manner in the existing short-range communication protocol. Specifically, the feedback request may not be fed back. The probe response frame or the feedback probe response frame does not include the auxiliary positioning data of the shared terminal, thereby effectively saving transmission resources.
其中,确定共享终端的辅助定位数据是否有效的具体方式为,共享终端首先判断待共享终端的辅助定位数据的时间信息是否为有效时间信息:The specific manner of determining whether the auxiliary positioning data of the shared terminal is valid is that the sharing terminal first determines whether the time information of the auxiliary positioning data of the terminal to be shared is valid time information:
(1)待共享终端的辅助定位数据的时间信息为无效时间信息,则共享终端 根据共享终端的辅助定位数据的时间信息,判断所述共享终端的辅助定位数据的时间与当前时间的间隔是否小于等于第一阈值,若是,则确定所述共享终端的辅助定位数据有效;若不是,则确定所述共享终端的辅助定位数据无效。第一阈值可由本领域技术人员根据经验设置,例如,可以设置为2h。(1) The time information of the auxiliary positioning data of the terminal to be shared is invalid time information, and the sharing terminal Determining, according to the time information of the auxiliary positioning data of the shared terminal, whether the interval between the time of the auxiliary positioning data of the shared terminal and the current time is less than or equal to the first threshold, and if yes, determining that the auxiliary positioning data of the sharing terminal is valid; And determining that the auxiliary positioning data of the shared terminal is invalid. The first threshold can be set empirically by those skilled in the art, for example, can be set to 2h.
举个例子,共享终端的辅助定位数据的时间信息为2016年10月11日8:00,共享终端确定待共享终端的辅助定位数据的时间信息为无效时间信息后,判断共享终端的辅助定位数据的时间(2016年10月11日8:00)与当前时间(2016年10月11日9:00)的间隔为1h,小于第一阈值(2h),故可确定共享终端的辅助定位数据有效。For example, the time information of the auxiliary positioning data of the shared terminal is 8:00 on October 11, 2016, and the shared terminal determines the time information of the auxiliary positioning data of the terminal to be shared as the invalid time information, and then determines the auxiliary positioning data of the shared terminal. The interval between the time (8:00 on October 11, 2016) and the current time (9:00 on October 11, 2016) is 1h, which is less than the first threshold (2h), so it can be determined that the auxiliary positioning data of the shared terminal is valid. .
也就是说,由于辅助定位数据的获取时间与当前时间间隔较小,其利用价值越大,后续根据该辅助定位数据进行定位时,定位的精度和准确性较高,因此,若待共享终端中不存在辅助定位数据,则共享终端需在确定其本身的辅助定位数据的时间较新(即辅助定位数据是最近获取到的,与当前时间间隔较小)的情况下,方可将辅助定位数据通过探测响应帧发送给待共享终端,从而保证待共享终端接收到的辅助定位数据均为利用价值较大的辅助定位数据,有效避免传输无利用价值或利用价值较小的辅助定位数据而浪费资源。That is to say, since the acquisition time of the auxiliary positioning data is smaller than the current time interval, the utilization value is larger, and the positioning accuracy and accuracy are higher when the positioning is performed according to the auxiliary positioning data, so if the terminal to be shared is in the terminal If there is no auxiliary positioning data, the shared terminal needs to locate the auxiliary positioning data when the time for determining its own auxiliary positioning data is relatively new (that is, the auxiliary positioning data is recently acquired and the current time interval is small). The probe response frame is sent to the to-be-shared terminal, so that the auxiliary positioning data received by the terminal to be shared is the auxiliary positioning data with large utilization value, which effectively avoids transmitting the non-utilization value or using the auxiliary positioning data with less value to waste resources. .
若共享终端确定其本身的辅助定位数据的时间较旧(即辅助定位数据是好久之前获取到的,与当前时间间隔较大),则可不再反馈探测响应帧或者反馈的探测响应帧中不包括共享终端的辅助定位数据,节省传输资源。If the sharing terminal determines that its own auxiliary positioning data is older (that is, the auxiliary positioning data is acquired a long time ago, and the current time interval is larger), the feedback response frame may not be fed back or the feedback detection response frame is not included. The auxiliary positioning data of the shared terminal saves transmission resources.
(2)待共享终端的辅助定位数据的时间信息为有效时间信息,则共享终端根据所述共享终端的辅助定位数据的时间信息和所述待共享终端的辅助定位数据的时间信息,判断所述共享终端的辅助定位数据的时间是否晚于所述待共享终端的辅助定位数据的时间,即判断所述共享终端的辅助定位数据的时间与当前时间的间隔是否小于所述待共享终端的辅助定位数据的时间与当前时间的间隔,若是,则确定所述共享终端的辅助定位数据有效,若不是,则确定所述共享终端的辅助定位数据无效。(2) The time information of the auxiliary positioning data of the shared terminal is the effective time information, and the sharing terminal determines, according to the time information of the auxiliary positioning data of the shared terminal and the time information of the auxiliary positioning data of the terminal to be shared, Whether the time of the auxiliary positioning data of the shared terminal is later than the time of the auxiliary positioning data of the terminal to be shared, that is, whether the interval between the time of the auxiliary positioning data of the shared terminal and the current time is smaller than the auxiliary positioning of the terminal to be shared. The interval between the time of the data and the current time, if yes, determining that the auxiliary positioning data of the shared terminal is valid, and if not, determining that the auxiliary positioning data of the shared terminal is invalid.
举个例子,共享终端的辅助定位数据的时间信息为2016年10月11日8:00 时,共享终端确定待共享终端的辅助定位数据的时间信息为有效时间信息(待共享终端的辅助定位数据的时间信息为2016年10月11日7:00)后,判断共享终端的辅助定位数据的时间(2016年10月11日8:00)晚于待共享终端的辅助定位数据的时间(2016年10月11日7:00),故可确定所述共享终端的辅助定位数据有效。For example, the time information of the auxiliary terminal's auxiliary positioning data is 8:00 on October 11, 2016. When the time information of the auxiliary positioning data of the terminal to be shared is determined as the effective time information (the time information of the auxiliary positioning data of the terminal to be shared is 7:00 on October 11, 2016), the auxiliary positioning data of the shared terminal is determined. The time (8:00 on October 11, 2016) is later than the time of the auxiliary positioning data of the terminal to be shared (7:00 on October 11, 2016), so it can be determined that the auxiliary positioning data of the shared terminal is valid.
也就是说,若待共享终端中存在辅助定位数据,则共享终端需在确定其本身的辅助定位数据的时间晚于待共享终端的辅助定位数据的时间,即共享终端的辅助定位数据较新,其利用价值比待共享终端的辅助定位数据的利用价值大的情况下,方可将辅助定位数据通过探测响应帧发送给待共享终端,从而可保证待共享终端接收到的辅助定位数据均为比其本身的辅助定位数据利用价值大,若共享终端确定其本身的辅助定位数据的时间早于待共享终端的辅助定位数据的时间,即利用价值比待共享终端的辅助定位数据的利用价值小,则可不再向待共享终端传输辅助定位数据,从而节约传输资源,且避免待共享终端接收到过多的辅助定位数据,降低后续待共享终端的处理负担。That is to say, if there is auxiliary positioning data in the terminal to be shared, the time at which the shared terminal needs to determine its own auxiliary positioning data is later than the auxiliary positioning data of the terminal to be shared, that is, the auxiliary positioning data of the sharing terminal is newer. When the utilization value is greater than the utilization value of the auxiliary positioning data of the terminal to be shared, the auxiliary positioning data can be sent to the to-be-shared terminal through the probe response frame, thereby ensuring that the auxiliary positioning data received by the terminal to be shared is The use value of the auxiliary positioning data itself is large. If the time for the shared terminal to determine its own auxiliary positioning data is earlier than the time of the auxiliary positioning data of the terminal to be shared, that is, the utilization value is smaller than the utilization value of the auxiliary positioning data of the terminal to be shared. Then, the auxiliary positioning data is not transmitted to the terminal to be shared, so that the transmission resource is saved, and the auxiliary positioning data is not received by the terminal to be shared, and the processing burden of the terminal to be shared is reduced.
步骤304中,待共享终端接收至少一个共享终端发送的探测响应帧,具体来说,若待共享终端周围仅有一个共享终端反馈探测响应帧,则待共享终端仅接收到一个共享终端发送的探测响应帧,若待共享终端周围有多个共享终端反馈探测响应帧,则待共享终端可以接收到多个共享终端发送的探测响应帧。In step 304, the to-be-shared terminal receives the probe response frame sent by the at least one shared terminal. Specifically, if only one shared terminal feeds the probe response frame around the terminal to be shared, the to-be-shared terminal only receives the probe sent by the shared terminal. In response to the frame, if there are multiple shared terminal feedback probe response frames around the shared terminal, the to-be-shared terminal may receive the probe response frames sent by multiple shared terminals.
本申请中,为进一步提高待共享终端更新辅助定位数据的速度,待共享终端可以在确定需要定位并发送探测响应帧后,启动计时器,确定计时器到达第一时间阈值后,即可根据接收到的至少一个共享终端发送的辅助定位数据的响应信息对待共享终端的辅助定位数据进行更新。第一时间阈值可由本领域技术人员根据经验设置。也就是说,待共享终端可在发送探测响应帧后,根据设定时长内接收到的共享终端发送的辅助定位数据的响应信息对待共享终端的辅助定位数据进行更新,避免有些共享终端反馈探测响应帧的时间较长,而降低更新速度的现象。 In this application, in order to further improve the speed of updating the auxiliary positioning data of the terminal to be shared, the to-be-shared terminal may start a timer after determining that the probe needs to be located and sent the probe response frame, and determine that the timer reaches the first time threshold, and then according to the receiving The response information of the auxiliary positioning data sent by the at least one shared terminal is updated to the auxiliary positioning data of the shared terminal. The first time threshold can be set empirically by those skilled in the art. That is, the to-be-shared terminal may update the auxiliary positioning data of the shared terminal according to the response information of the auxiliary positioning data sent by the shared terminal received within the set duration after transmitting the probe response frame, thereby avoiding feedback feedback of some shared terminals. The frame takes longer and the update speed is reduced.
考虑到待共享终端周围可能不存在共享终端,或者存在共享终端,但共享终端的辅助定位数据无效,从而可能使得待共享终端确定计时器到达第一时间阈值后,仍未收到共享终端发送的辅助定位数据的响应信息,此种情况下,待共享终端可采用现有方式从A-GNSS服务器获取辅助定位数据。Considering that there may be no shared terminal around the terminal to be shared, or there is a shared terminal, but the auxiliary positioning data of the shared terminal is invalid, so that the terminal to be shared may determine that the timer has not received the shared terminal after receiving the first time threshold. Auxiliary positioning data response information. In this case, the to-be-shared terminal can acquire the auxiliary positioning data from the A-GNSS server in an existing manner.
本申请中,共享终端的辅助定位数据的响应信息可以包括共享终端的辅助定位数据和共享终端的辅助定位数据的时间信息。具体来说,探测响应帧中的响应信息单元也可以分为两个数据位,分别用于携带共享终端的辅助定位数据和共享终端的辅助定位数据的时间信息,参见图1d所示。In this application, the response information of the auxiliary positioning data of the sharing terminal may include the auxiliary positioning data of the sharing terminal and the time information of the auxiliary positioning data of the sharing terminal. Specifically, the response information unit in the probe response frame may also be divided into two data bits, which are respectively used to carry the auxiliary positioning data of the shared terminal and the time information of the auxiliary positioning data of the shared terminal, as shown in FIG. 1d.
共享终端的辅助定位数据的时间信息用于表明共享终端的辅助定位数据的时间(具体是指共享终端的辅助定位数据的获取时间),其具体表示方式可以参照上述探测请求帧中所包括的待共享终端的辅助定位数据的时间信息的介绍。The time information of the auxiliary positioning data of the shared terminal is used to indicate the time of the auxiliary positioning data of the shared terminal (specifically, the acquisition time of the auxiliary positioning data of the shared terminal), and the specific representation manner may refer to the to-be-included in the foregoing probe request frame. An introduction to the time information of the auxiliary terminal's auxiliary positioning data.
步骤305中,待共享终端根据所述多个共享终端的辅助定位数据的时间信息,确定出与当前时间间隔最小的时间信息,并将与当前时间间隔最小的时间信息对应的辅助定位数据确定为待共享终端更新后的辅助定位数据。In step 305, the to-be-shared terminal determines the time information with the smallest time interval from the current time interval according to the time information of the auxiliary positioning data of the multiple shared terminals, and determines the auxiliary positioning data corresponding to the time information with the smallest current time interval as Auxiliary positioning data after the shared terminal is updated.
具体来说,若待共享终端中之前有辅助定位数据,则可将之前的辅助定位数据删除,并将与当前时间间隔最小的时间信息对应的辅助定位数据确定为待共享终端更新后的辅助定位数据;若待共享终端中之前没有辅助定位数据,则可直接将与当前时间间隔最小的时间信息对应的辅助定位数据确定为待共享终端更新后的辅助定位数据;相应地,待共享终端下一次确定需要定位时,其发送的探测请求帧中待共享终端的辅助定位数据的时间信息是根据更新后的辅助定位数据的时间来确定的。Specifically, if there is auxiliary positioning data in the to-be-shared terminal, the previous auxiliary positioning data may be deleted, and the auxiliary positioning data corresponding to the time information with the smallest current time interval is determined as the auxiliary positioning after the terminal to be shared is updated. Data; if there is no auxiliary positioning data in the terminal to be shared, the auxiliary positioning data corresponding to the time information with the smallest current time interval may be directly determined as the auxiliary positioning data after the terminal to be shared is updated; correspondingly, the terminal to be shared next time When it is determined that the positioning is required, the time information of the auxiliary positioning data of the terminal to be shared in the probe request frame sent by the probe request frame is determined according to the time of the updated auxiliary positioning data.
举个例子,若待共享终端接收到两个共享终端(共享终端a和共享终端)发送的辅助定位数据的响应信息,共享终端a的辅助定位数据的时间为2016年10月11日8:30,共享终端b的辅助定位数据的时间为2016年10月11日8:40,当前时间为2016年10月11日9:00,则待共享终端经过判断,可将时间较新的共享终端b的辅助定位数据确定为更新后的辅助定位数据。 For example, if the shared terminal receives the response information of the auxiliary positioning data sent by the two shared terminals (the shared terminal a and the shared terminal), the time for the auxiliary positioning data of the shared terminal a is 8:30 on October 11, 2016. The time for sharing the auxiliary positioning data of the terminal b is 8:40 on October 11, 2016, and the current time is 9:00 on October 11, 2016. After the shared terminal is judged, the shared terminal with a new time can be added. The auxiliary positioning data is determined as the updated auxiliary positioning data.
随后,待共享终端可将更新后的辅助定位数据发送给待共享终端的GNSS引擎,以便于后续定位。Subsequently, the to-be-shared terminal may send the updated auxiliary positioning data to the GNSS engine of the terminal to be shared for subsequent positioning.
为更清楚地对本申请中辅助定位数据的共享方法的整体流程进行介绍,下面结合图4进行进一步的说明。图4为本申请中辅助定位数据的共享方法的整体流程示意图,如图4所示,包括:In order to more clearly introduce the overall flow of the method for sharing the auxiliary positioning data in the present application, further explanation will be given below with reference to FIG. 4. FIG. 4 is a schematic overall flow chart of a method for sharing auxiliary positioning data in the present application, as shown in FIG. 4, including:
步骤401,待共享终端确定需要定位后,则可将探测请求帧中辅助定位数据的请求标识设置为有效请求标识,并发送探测请求帧;Step 401: After the terminal to be shared determines that the location needs to be located, the request identifier of the auxiliary positioning data in the probe request frame may be set as a valid request identifier, and the probe request frame is sent;
步骤402,共享终端接收待共享终端发送的探测请求帧,并解析出探测请求帧中辅助定位数据的请求标识和待共享终端的辅助定位数据的时间信息。Step 402: The sharing terminal receives the probe request frame sent by the terminal to be shared, and parses the request identifier of the auxiliary positioning data in the probe request frame and the time information of the auxiliary positioning data of the terminal to be shared.
步骤403,共享终端判断辅助定位数据的请求标识是否为有效请求标识,若是,则执行步骤404,若否,则执行步骤409; Step 403, the sharing terminal determines whether the request identifier of the auxiliary positioning data is a valid request identifier, and if so, step 404 is performed, and if no, step 409 is performed;
步骤404,共享终端判断待共享终端的辅助定位数据的时间信息是否为有效时间信息,若是,则执行步骤405,若否,则执行步骤406; Step 404, the sharing terminal determines whether the time information of the auxiliary positioning data of the terminal to be shared is valid time information, and if so, step 405 is performed, and if not, step 406 is performed;
步骤405,共享终端判断共享终端的辅助定位数据的时间是否晚于所述待共享终端的辅助定位数据的时间,若是,则执行步骤407,若否,则执行步骤409; Step 405, the sharing terminal determines whether the time of the auxiliary positioning data of the shared terminal is later than the time of the auxiliary positioning data of the terminal to be shared, if yes, step 407 is performed, and if not, step 409 is performed;
步骤406,共享终端判断共享终端的辅助定位数据的时间与当前时间的间隔是否小于等于第一阈值,若是,则执行步骤407,若否,则执行步骤409; Step 406, the sharing terminal determines whether the interval between the time of the auxiliary positioning data of the shared terminal and the current time is less than or equal to the first threshold, and if so, step 407 is performed, and if not, step 409 is performed;
步骤407,共享终端向待共享终端发送探测响应帧,探测响应帧中包括辅助定位数据的响应信息;Step 407: The sharing terminal sends a probe response frame to the to-be-shared terminal, where the response response frame includes response information of the auxiliary positioning data.
步骤408,待共享终端接收至少一个共享终端发送的探测响应帧,并根据至少一个共享终端的辅助定位数据的响应信息,对待共享终端中的辅助定位数据进行更新;随后,待共享终端可将更新后的辅助定位数据发送给待共享终端的GNSS引擎,以便于后续对待共享终端进行定位;Step 408: The to-be-shared terminal receives the probe response frame sent by the at least one shared terminal, and updates the auxiliary positioning data in the shared terminal according to the response information of the auxiliary positioning data of the at least one shared terminal. Subsequently, the to-be-shared terminal may update. The subsequent auxiliary positioning data is sent to the GNSS engine of the terminal to be shared, so as to facilitate subsequent positioning of the shared terminal;
步骤409,共享终端按照现有短距通信协议中的方式对接收到的探测请求帧进行处理。Step 409: The shared terminal processes the received probe request frame according to the manner in the existing short-range communication protocol.
需要说明的是,上述各个步骤的编号仅为一种执行过程的示例性说明, 并不对各个步骤做明确具体的先后顺序限定。It should be noted that the numbering of each step described above is merely an exemplary description of an execution process. There is no clear and specific order for each step.
本申请实施例通过待共享终端基于探测请求帧来发送辅助定位数据的请求信息,以及通过探测响应帧来接收至少一个共享终端的辅助定位数据的响应信息,从而使得待共享终端可以在不联网,无需增加网络侧配置的情况下,对待共享终端中的辅助定位数据进行更新,实现不同终端之间的辅助定位数据的共享,相比于现有技术中终端需要和A-GNSS服务器进行通讯来获取辅助定位数据的方式,降低了网络负担;且待共享终端和共享终端之间是通过探测请求帧和探测响应帧来实现通信的,无需待共享终端和共享终端建立网络连接,因此能够进一步提高通信效率,有利于提高基于辅助定位数据的定位速度。In the embodiment of the present application, the request information of the auxiliary positioning data is sent by the to-be-shared terminal based on the probe request frame, and the response information of the auxiliary positioning data of the at least one shared terminal is received by the probe response frame, so that the terminal to be shared may not be connected to the network. If the network side configuration is not required, the auxiliary positioning data in the shared terminal is updated to implement the sharing of the auxiliary positioning data between different terminals, and the terminal needs to communicate with the A-GNSS server to obtain the communication in the prior art. The method of assisting the positioning of the data reduces the network burden; and the communication between the to-be-shared terminal and the shared terminal is realized by the probe request frame and the probe response frame, and the network connection is not required to be established between the shared terminal and the shared terminal, thereby further improving the communication. Efficiency is beneficial to improve the positioning speed based on auxiliary positioning data.
针对上述方法流程,本申请还提供一种终端,该终端的具体内容可以参照上述方法实施。For the above method flow, the application further provides a terminal, and the specific content of the terminal can be implemented by referring to the foregoing method.
图5为本申请实施例二提供的一种终端的结构示意图,该终端可用于执行上述方法流程中待共享终端所执行的操作,如图5所示,该终端500包括:FIG. 5 is a schematic structural diagram of a terminal according to Embodiment 2 of the present application. The terminal may be used to perform operations performed by a terminal to be shared in the process of the foregoing method. As shown in FIG. 5, the terminal 500 includes:
发送模块501,用于发送探测请求帧,所述探测请求帧中包括辅助定位数据的请求信息;The sending module 501 is configured to send a probe request frame, where the probe request frame includes request information for assisting positioning data.
接收模块502,用于接收至少一个共享终端根据所述辅助定位数据的的请求信息发送的探测响应帧,所述至少一个共享终端中的每一共享终端发送的探测响应帧中包括所述每一共享终端的辅助定位数据的响应信息;The receiving module 502 is configured to receive a probe response frame that is sent by the at least one shared terminal according to the request information of the auxiliary positioning data, where the probe response frame sent by each of the at least one shared terminal includes the Response information of the auxiliary positioning data of the shared terminal;
处理模块503,用于根据所述至少一个共享终端的辅助定位数据的响应信息,对所述终端中的辅助定位数据进行更新。The processing module 503 is configured to update the auxiliary positioning data in the terminal according to the response information of the auxiliary positioning data of the at least one shared terminal.
可选地,所述每一共享终端的辅助定位数据的响应信息中包括所述每一共享终端的辅助定位数据和所述每一共享终端的辅助定位数据的时间信息;Optionally, the response information of the auxiliary positioning data of each shared terminal includes the auxiliary positioning data of each shared terminal and the time information of the auxiliary positioning data of each shared terminal;
所述处理模块503具体用于:The processing module 503 is specifically configured to:
在所述至少一个共享终端的辅助定位数据的时间信息中,确定出与当前时间间隔最小的时间信息;Determining, in time information of the auxiliary positioning data of the at least one shared terminal, time information that is the smallest time interval from the current time interval;
将与当前时间间隔最小的时间信息对应的辅助定位数据确定为所述终端 更新后的辅助定位数据。Determining the auxiliary positioning data corresponding to the time information with the smallest current time interval as the terminal Updated assisted positioning data.
可选地,所述辅助定位数据的请求信息位于所述探测请求帧的帧头和帧校验序列FCS之间。Optionally, the request information of the auxiliary positioning data is located between a frame header of the probe request frame and a frame check sequence FCS.
可选地,所述辅助定位数据的响应信息位于所述探测响应帧的帧头和FCS之间。Optionally, the response information of the auxiliary positioning data is located between a frame header of the probe response frame and the FCS.
图6为本申请实施例三提供的一种终端的结构示意图,该终端可用于执行上述方法流程中共享终端所执行的操作,如图6所示,该终端600包括:FIG. 6 is a schematic structural diagram of a terminal according to Embodiment 3 of the present application. The terminal may be used to perform operations performed by a shared terminal in the foregoing method process. As shown in FIG. 6, the terminal 600 includes:
接收模块601,用于接收待共享终端发送的探测请求帧,所述探测请求帧中包括辅助定位数据的请求信息;The receiving module 601 is configured to receive a probe request frame sent by the terminal to be shared, where the probe request frame includes request information for assisting positioning data.
发送模块602,用于根据所述探测请求帧中的辅助定位数据的请求信息向所述待共享终端发送探测响应帧,所述探测响应帧中包括所述辅助定位数据的响应信息。The sending module 602 is configured to send a probe response frame to the to-be-shared terminal according to the request information of the auxiliary positioning data in the probe request frame, where the probe response frame includes response information of the auxiliary positioning data.
可选地,所述辅助定位数据的请求信息包括所述辅助定位数据的请求标识和所述待共享终端的辅助定位数据的时间信息;Optionally, the request information of the auxiliary positioning data includes a request identifier of the auxiliary positioning data and time information of the auxiliary positioning data of the terminal to be shared;
所述发送模块602具体用于:The sending module 602 is specifically configured to:
确定所述辅助定位数据的请求标识为有效请求标识后,根据所述待共享终端的辅助定位数据的时间信息和所述终端的辅助定位数据的时间信息,若确定所述终端的辅助定位数据有效,则向所述待共享终端发送探测响应帧,所述探测响应帧中包括所述终端的辅助定位数据。After determining that the request identifier of the auxiliary positioning data is a valid request identifier, determining that the auxiliary positioning data of the terminal is valid according to time information of the auxiliary positioning data of the to-be-shared terminal and time information of the auxiliary positioning data of the terminal And sending a probe response frame to the to-be-shared terminal, where the probe response frame includes auxiliary positioning data of the terminal.
可选地,所述发送模块602具体用于:Optionally, the sending module 602 is specifically configured to:
确定所述待共享终端的辅助定位数据的时间信息为无效时间信息时,根据所述终端的辅助定位数据的时间信息,在判断所述终端的辅助定位数据的时间与当前时间的间隔小于等于第一阈值后,确定所述终端的辅助定位数据有效;或者,When the time information of the auxiliary positioning data of the terminal to be shared is determined to be invalid time information, according to the time information of the auxiliary positioning data of the terminal, the interval between the time of determining the auxiliary positioning data of the terminal and the current time is less than or equal to After a threshold, determining that the auxiliary positioning data of the terminal is valid; or
确定所述待共享终端的辅助定位数据的时间信息为有效时间时,根据所述终端的辅助定位数据的时间信息和所述待共享终端的辅助定位数据的时间信息,确定所述终端的辅助定位数据的时间晚于所述待共享终端的辅助定位 数据的时间后,确定所述终端的辅助定位数据有效。Determining the auxiliary positioning of the terminal according to the time information of the auxiliary positioning data of the terminal and the time information of the auxiliary positioning data of the terminal to be shared when determining that the time information of the auxiliary positioning data of the terminal to be shared is the effective time The time of the data is later than the auxiliary positioning of the terminal to be shared After the time of the data, it is determined that the auxiliary positioning data of the terminal is valid.
图7为本申请实施例四提供的一种终端的结构示意图,该终端可用于执行上述方法流程中待共享终端所执行的操作,如图7所示,该终端700包括:该终端700包括:接收器701a、发送器701b、处理器702、存储器703和总线系统704;FIG. 7 is a schematic structural diagram of a terminal according to Embodiment 4 of the present application. The terminal is configured to perform operations performed by a terminal to be shared in the foregoing method, and the terminal 700 includes: the terminal 700 includes: a receiver 701a, a transmitter 701b, a processor 702, a memory 703, and a bus system 704;
其中,存储器703,用于存放程序。具体地,程序可以包括程序代码,程序代码包括计算机操作指令。存储器703可能为随机存取存储器(random access memory,简称RAM),也可能为非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。图中仅示出了一个存储器,当然,存储器也可以根据需要,设置为多个。存储器703也可以是处理器702中的存储器。The memory 703 is used to store a program. In particular, the program can include program code, the program code including computer operating instructions. The memory 703 may be a random access memory (RAM) or a non-volatile memory such as at least one disk storage. Only one memory is shown in the figure, of course, the memory can also be set to a plurality as needed. Memory 703 can also be a memory in processor 702.
存储器703存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:The memory 703 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:
操作指令:包括各种操作指令,用于实现各种操作。Operation instructions: include various operation instructions for implementing various operations.
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating system: Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
处理器702控制终端700的操作,处理器702还可以称为CPU(Central Processing Unit,中央处理单元)。具体的应用中,终端700的各个组件通过总线系统704耦合在一起,其中总线系统704除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统704。为便于表示,图7中仅是示意性画出。The processor 702 controls the operation of the terminal 700, which may also be referred to as a CPU (Central Processing Unit). In a specific application, the various components of the terminal 700 are coupled together by a bus system 704. The bus system 704 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 704 in the figure. For ease of representation, only the schematic drawing is shown in FIG.
上述本申请实施例揭示的方法可以应用于处理器702中,或者由处理器702实现。处理器702可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器702中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器702可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可 以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器703,处理器702读取存储器703中的信息,结合其硬件执行以下步骤:The method disclosed in the foregoing embodiment of the present application may be applied to the processor 702 or implemented by the processor 702. Processor 702 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 702 or an instruction in a form of software. The processor 702 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. General purpose processor The microprocessor or the processor can also be any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 703, and the processor 702 reads the information in the memory 703 and performs the following steps in conjunction with its hardware:
所述发送器701b,用于发送探测请求帧,所述探测请求帧中包括辅助定位数据的请求信息;The transmitter 701b is configured to send a probe request frame, where the probe request frame includes request information for assisting positioning data.
所述接收器701a,用于接收至少一个共享终端根据所述辅助定位数据的的请求信息发送的探测响应帧,所述至少一个共享终端中的每一共享终端发送的探测响应帧中包括所述每一共享终端的辅助定位数据的响应信息;The receiver 701a is configured to receive a probe response frame that is sent by the at least one shared terminal according to the request information of the auxiliary positioning data, where the probe response frame sent by each of the at least one shared terminal includes the Response information of auxiliary positioning data of each shared terminal;
所述处理器702,用于根据所述至少一个共享终端的辅助定位数据的响应信息,对所述终端中的辅助定位数据进行更新。The processor 702 is configured to update the auxiliary positioning data in the terminal according to the response information of the auxiliary positioning data of the at least one shared terminal.
可选地,所述每一共享终端的辅助定位数据的响应信息中包括所述每一共享终端的辅助定位数据和所述每一共享终端的辅助定位数据的时间信息;Optionally, the response information of the auxiliary positioning data of each shared terminal includes the auxiliary positioning data of each shared terminal and the time information of the auxiliary positioning data of each shared terminal;
所述处理器702具体用于:The processor 702 is specifically configured to:
在所述至少一个共享终端的辅助定位数据的时间信息中,确定出与当前时间间隔最小的时间信息;Determining, in time information of the auxiliary positioning data of the at least one shared terminal, time information that is the smallest time interval from the current time interval;
将与当前时间间隔最小的时间信息对应的辅助定位数据确定为所述终端更新后的辅助定位数据。The auxiliary positioning data corresponding to the time information with the smallest current time interval is determined as the auxiliary positioning data after the terminal is updated.
可选地,所述辅助定位数据的请求信息位于所述探测请求帧的帧头和帧校验序列FCS之间。Optionally, the request information of the auxiliary positioning data is located between a frame header of the probe request frame and a frame check sequence FCS.
可选地,所述辅助定位数据的响应信息位于所述探测响应帧的帧头和FCS之间。Optionally, the response information of the auxiliary positioning data is located between a frame header of the probe response frame and the FCS.
图8为本申请实施例五提供的一种终端的结构示意图,该终端可用于执行上述方法流程中共享终端所执行的操作,如图8所示,该终端800包括:该终端800包括:接收器801a、发送器801b、处理器802、存储器803和总 线系统804;FIG. 8 is a schematic structural diagram of a terminal according to Embodiment 5 of the present application. The terminal may be used to perform operations performed by a shared terminal in the foregoing method process. As shown in FIG. 8, the terminal 800 includes: the terminal 800 includes: receiving 801a, transmitter 801b, processor 802, memory 803, and total Line system 804;
其中,存储器803,用于存放程序。具体地,程序可以包括程序代码,程序代码包括计算机操作指令。存储器803可能为随机存取存储器(random access memory,简称RAM),也可能为非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。图中仅示出了一个存储器,当然,存储器也可以根据需要,设置为多个。存储器803也可以是处理器802中的存储器。The memory 803 is used to store a program. In particular, the program can include program code, the program code including computer operating instructions. The memory 803 may be a random access memory (RAM) or a non-volatile memory, such as at least one disk storage. Only one memory is shown in the figure, of course, the memory can also be set to a plurality as needed. Memory 803 can also be a memory in processor 802.
存储器803存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:The memory 803 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:
操作指令:包括各种操作指令,用于实现各种操作。Operation instructions: include various operation instructions for implementing various operations.
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating system: Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
处理器802控制终端800的操作,处理器802还可以称为CPU(Central Processing Unit,中央处理单元)。具体的应用中,终端800的各个组件通过总线系统804耦合在一起,其中总线系统804除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统804。为便于表示,图8中仅是示意性画出。The processor 802 controls the operation of the terminal 800, which may also be referred to as a CPU (Central Processing Unit). In a specific application, the various components of the terminal 800 are coupled together by a bus system 804. The bus system 804 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 804 in the figure. For ease of representation, only the schematic drawing is shown in FIG.
上述本申请实施例揭示的方法可以应用于处理器802中,或者由处理器802实现。处理器802可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器802中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器802可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器 等本领域成熟的存储介质中。该存储介质位于存储器803,处理器802读取存储器803中的信息,结合其硬件执行以下步骤:The method disclosed in the foregoing embodiment of the present application may be applied to the processor 802 or implemented by the processor 802. Processor 802 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 802 or an instruction in a form of software. The processor 802 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor. The software module can be located in random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers And other mature storage media in the field. The storage medium is located in the memory 803, and the processor 802 reads the information in the memory 803 and performs the following steps in conjunction with its hardware:
所述接收器801a,用于接收待共享终端发送的探测请求帧,所述探测请求帧中包括辅助定位数据的请求信息;The receiver 801a is configured to receive a probe request frame sent by the terminal to be shared, where the probe request frame includes request information for assisting positioning data.
所述发送器801b,用于根据所述探测请求帧中的辅助定位数据的请求信息向所述待共享终端发送探测响应帧,所述探测响应帧中包括所述辅助定位数据的响应信息。The transmitter 801b is configured to send a probe response frame to the to-be-shared terminal according to the request information of the auxiliary positioning data in the probe request frame, where the probe response frame includes response information of the auxiliary positioning data.
可选地,所述辅助定位数据的请求信息包括所述辅助定位数据的请求标识和所述待共享终端的辅助定位数据的时间信息;Optionally, the request information of the auxiliary positioning data includes a request identifier of the auxiliary positioning data and time information of the auxiliary positioning data of the terminal to be shared;
所述发送器801b具体用于:The transmitter 801b is specifically configured to:
确定所述辅助定位数据的请求标识为有效请求标识后,根据所述待共享终端的辅助定位数据的时间信息和所述终端的辅助定位数据的时间信息,若确定所述终端的辅助定位数据有效,则向所述待共享终端发送探测响应帧,所述探测响应帧中包括所述终端的辅助定位数据。After determining that the request identifier of the auxiliary positioning data is a valid request identifier, determining that the auxiliary positioning data of the terminal is valid according to time information of the auxiliary positioning data of the to-be-shared terminal and time information of the auxiliary positioning data of the terminal And sending a probe response frame to the to-be-shared terminal, where the probe response frame includes auxiliary positioning data of the terminal.
可选地,所述发送器801b具体用于:Optionally, the transmitter 801b is specifically configured to:
确定所述待共享终端的辅助定位数据的时间信息为无效时间信息时,根据所述终端的辅助定位数据的时间信息,在判断所述终端的辅助定位数据的时间与当前时间的间隔小于等于第一阈值后,确定所述终端的辅助定位数据有效;或者,When the time information of the auxiliary positioning data of the terminal to be shared is determined to be invalid time information, according to the time information of the auxiliary positioning data of the terminal, the interval between the time of determining the auxiliary positioning data of the terminal and the current time is less than or equal to After a threshold, determining that the auxiliary positioning data of the terminal is valid; or
确定所述待共享终端的辅助定位数据的时间信息为有效时间时,根据所述终端的辅助定位数据的时间信息和所述待共享终端的辅助定位数据的时间信息,确定所述终端的辅助定位数据的时间晚于所述待共享终端的辅助定位数据的时间后,确定所述终端的辅助定位数据有效。Determining the auxiliary positioning of the terminal according to the time information of the auxiliary positioning data of the terminal and the time information of the auxiliary positioning data of the terminal to be shared when determining that the time information of the auxiliary positioning data of the terminal to be shared is the effective time After the time of the data is later than the time of the auxiliary positioning data of the terminal to be shared, it is determined that the auxiliary positioning data of the terminal is valid.
从上述内容可以看出:本申请实施例通过待共享终端基于探测请求帧来发送辅助定位数据的请求信息,以及通过探测响应帧来接收至少一个共享终端的辅助定位数据的响应信息,从而使得待共享终端可以在不联网,无需增加网络侧配置的情况下,对待共享终端中的辅助定位数据进行更新,实现不 同终端之间的辅助定位数据的共享,相比于现有技术中终端需要和A-GNSS服务器进行通讯来获取辅助定位数据的方式,降低了网络负担;且待共享终端和共享终端之间是通过探测请求帧和探测响应帧来实现通信的,无需待共享终端和共享终端建立网络连接,因此能够进一步提高通信效率,有利于提高基于辅助定位数据的定位速度。It can be seen from the above that the request information of the auxiliary positioning data is sent by the terminal to be shared based on the probe request frame, and the response information of the auxiliary positioning data of the at least one shared terminal is received by the probe response frame, thereby The shared terminal can update the auxiliary positioning data in the shared terminal without networking, without increasing the configuration on the network side. The sharing of the auxiliary positioning data between the terminal and the terminal is compared with the method in the prior art that the terminal needs to communicate with the A-GNSS server to obtain the auxiliary positioning data, thereby reducing the network burden; and between the shared terminal and the shared terminal is The communication is realized by detecting the request frame and the probe response frame, and the network connection is not required to be established between the shared terminal and the shared terminal, so that the communication efficiency can be further improved, and the positioning speed based on the auxiliary positioning data is improved.
本领域内的技术人员应明白,本申请的实施例可提供为方法、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, or a computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware. Moreover, the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了 基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。Although a preferred embodiment of the present application has been described, one of ordinary skill in the art will recognize Additional changes and modifications to these embodiments can be made in the basic inventive concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。 It will be apparent to those skilled in the art that various modifications and changes can be made in the present application without departing from the spirit and scope of the application. Thus, it is intended that the present invention cover the modifications and variations of the present invention.

Claims (21)

  1. 一种辅助定位数据的共享方法,其特征在于,所述方法包括:A method for sharing auxiliary positioning data, characterized in that the method comprises:
    待共享终端发送探测请求帧,所述探测请求帧中包括辅助定位数据的请求信息;The to-be-shared terminal sends a probe request frame, where the probe request frame includes request information for assisting positioning data;
    所述待共享终端接收至少一个共享终端根据所述辅助定位数据的的请求信息发送的探测响应帧,所述至少一个共享终端中的每一共享终端发送的探测响应帧中包括所述每一共享终端的辅助定位数据的响应信息;The to-be-shared terminal receives the probe response frame that is sent by the at least one shared terminal according to the request information of the auxiliary positioning data, and the probe response frame sent by each shared terminal in the at least one shared terminal includes the each share Response information of the auxiliary positioning data of the terminal;
    所述待共享终端根据所述至少一个共享终端的辅助定位数据的响应信息,对所述待共享终端中的辅助定位数据进行更新。The to-be-shared terminal updates the auxiliary positioning data in the to-be-shared terminal according to the response information of the auxiliary positioning data of the at least one shared terminal.
  2. 如权利要求1所述的方法,其特征在于,所述每一共享终端的辅助定位数据的响应信息中包括所述每一共享终端的辅助定位数据和所述每一共享终端的辅助定位数据的时间信息;The method according to claim 1, wherein the response information of the auxiliary positioning data of each shared terminal includes auxiliary positioning data of each sharing terminal and auxiliary positioning data of each sharing terminal. Time information
    所述待共享终端根据所述至少一个共享终端的辅助定位数据的响应信息,对所述待共享终端中的辅助定位数据进行更新,包括:Updating, by the to-be-shared terminal, the auxiliary positioning data in the to-be-shared terminal according to the response information of the auxiliary positioning data of the at least one shared terminal, including:
    所述待共享终端在所述至少一个共享终端的辅助定位数据的时间信息中,确定出与当前时间间隔最小的时间信息;The time to be shared by the terminal to be shared in the time information of the auxiliary positioning data of the at least one shared terminal is determined to be the smallest time interval from the current time interval;
    所述待共享终端将与当前时间间隔最小的时间信息对应的辅助定位数据确定为所述待共享终端更新后的辅助定位数据。The to-be-shared terminal determines the auxiliary positioning data corresponding to the time information with the smallest current time interval as the auxiliary positioning data after the terminal to be shared.
  3. 如权利要求1或2所述的方法,其特征在于,所述辅助定位数据的请求信息位于所述探测请求帧的帧头和帧校验序列FCS之间。The method according to claim 1 or 2, wherein the request information of the auxiliary positioning data is located between a frame header of the probe request frame and a frame check sequence FCS.
  4. 如权利要求1-3中任一项所述的方法,其特征在于,所述辅助定位数据的响应信息位于所述探测响应帧的帧头和FCS之间。The method according to any one of claims 1 to 3, wherein the response information of the auxiliary positioning data is located between a frame header of the probe response frame and the FCS.
  5. 一种辅助定位数据的共享方法,其特征在于,所述方法包括:A method for sharing auxiliary positioning data, characterized in that the method comprises:
    共享终端接收待共享终端发送的探测请求帧,所述探测请求帧中包括辅助定位数据的请求信息;The sharing terminal receives the probe request frame sent by the terminal to be shared, and the probe request frame includes request information for assisting the positioning data;
    所述共享终端根据所述探测请求帧中的辅助定位数据的请求信息向所述 待共享终端发送探测响应帧,所述探测响应帧中包括所述辅助定位数据的响应信息。The sharing terminal according to the request information of the auxiliary positioning data in the probe request frame to the The to-be-shared terminal sends a probe response frame, where the probe response frame includes response information of the auxiliary positioning data.
  6. 如权利要求5所述的方法,其特征在于,所述辅助定位数据的请求信息包括所述辅助定位数据的请求标识和所述待共享终端的辅助定位数据的时间信息;The method according to claim 5, wherein the request information of the auxiliary positioning data comprises a request identifier of the auxiliary positioning data and time information of the auxiliary positioning data of the terminal to be shared;
    所述共享终端根据所述探测请求帧中的请求信息向所述待共享终端发送探测响应帧,包括:And sending, by the sharing terminal, the probe response frame to the to-be-shared terminal according to the request information in the probe request frame, including:
    所述共享终端确定所述辅助定位数据的请求标识为有效请求标识后,根据所述待共享终端的辅助定位数据的时间信息和所述共享终端的辅助定位数据的时间信息,若确定所述共享终端的辅助定位数据有效,则向所述待共享终端发送探测响应帧,所述探测响应帧中包括所述共享终端的辅助定位数据。After the sharing terminal determines that the request identifier of the auxiliary positioning data is a valid request identifier, according to the time information of the auxiliary positioning data of the to-be-shared terminal and the time information of the auxiliary positioning data of the shared terminal, if the sharing is determined If the auxiliary positioning data of the terminal is valid, the probe response frame is sent to the to-be-shared terminal, and the probe response frame includes the auxiliary positioning data of the shared terminal.
  7. 如权利要求6所述的方法,其特征在于,所述共享终端根据所述待共享终端的辅助定位数据的时间信息和所述共享终端的辅助定位数据的时间信息,确定所述共享终端的辅助定位数据有效,包括:The method according to claim 6, wherein the sharing terminal determines the assistance of the shared terminal according to the time information of the auxiliary positioning data of the terminal to be shared and the time information of the auxiliary positioning data of the shared terminal. The positioning data is valid, including:
    所述共享终端确定所述待共享终端的辅助定位数据的时间信息为无效时间信息时,根据所述共享终端的辅助定位数据的时间信息,在判断所述共享终端的辅助定位数据的时间与当前时间的间隔小于等于第一阈值后,确定所述共享终端的辅助定位数据有效;或者,When the time information of the auxiliary positioning data of the to-be-shared terminal is determined to be invalid time information, the sharing terminal determines the time and current time of the auxiliary positioning data of the shared terminal according to the time information of the auxiliary positioning data of the shared terminal. After the time interval is less than or equal to the first threshold, determining that the auxiliary positioning data of the shared terminal is valid; or
    所述共享终端确定所述待共享终端的辅助定位数据的时间信息为有效时间信息时,根据所述共享终端的辅助定位数据的时间信息和所述待共享终端的辅助定位数据的时间信息,确定所述共享终端的辅助定位数据的时间晚于所述待共享终端的辅助定位数据的时间后,确定所述共享终端的辅助定位数据有效。Determining, according to the time information of the auxiliary positioning data of the shared terminal and the time information of the auxiliary positioning data of the to-be-shared terminal, when the sharing terminal determines that the time information of the auxiliary positioning data of the to-be-shared terminal is the valid time information. After the time of the auxiliary positioning data of the shared terminal is later than the time of the auxiliary positioning data of the to-be-shared terminal, it is determined that the auxiliary positioning data of the shared terminal is valid.
  8. 一种终端,其特征在于,所述终端包括:A terminal, wherein the terminal comprises:
    发送模块,用于发送探测请求帧,所述探测请求帧中包括辅助定位数据的请求信息;a sending module, configured to send a probe request frame, where the probe request frame includes request information for assisting positioning data;
    接收模块,用于接收至少一个共享终端根据所述辅助定位数据的的请求 信息发送的探测响应帧,所述至少一个共享终端中的每一共享终端发送的探测响应帧中包括所述每一共享终端的辅助定位数据的响应信息;a receiving module, configured to receive, according to the request for the auxiliary positioning data, the at least one sharing terminal a probe response frame for transmitting information, wherein the probe response frame sent by each of the at least one shared terminal includes response information of the auxiliary positioning data of each shared terminal;
    处理模块,用于根据所述至少一个共享终端的辅助定位数据的响应信息,对所述终端中的辅助定位数据进行更新。And a processing module, configured to update the auxiliary positioning data in the terminal according to the response information of the auxiliary positioning data of the at least one shared terminal.
  9. 如权利要求8所述的终端,其特征在于,所述每一共享终端的辅助定位数据的响应信息中包括所述每一共享终端的辅助定位数据和所述每一共享终端的辅助定位数据的时间信息;The terminal according to claim 8, wherein the response information of the auxiliary positioning data of each shared terminal includes auxiliary positioning data of each shared terminal and auxiliary positioning data of each shared terminal. Time information
    所述处理模块具体用于:The processing module is specifically configured to:
    在所述至少一个共享终端的辅助定位数据的时间信息中,确定出与当前时间间隔最小的时间信息;Determining, in time information of the auxiliary positioning data of the at least one shared terminal, time information that is the smallest time interval from the current time interval;
    将与当前时间间隔最小的时间信息对应的辅助定位数据确定为所述终端更新后的辅助定位数据。The auxiliary positioning data corresponding to the time information with the smallest current time interval is determined as the auxiliary positioning data after the terminal is updated.
  10. 如权利要求8或9所述的终端,其特征在于,所述辅助定位数据的请求信息位于所述探测请求帧的帧头和帧校验序列FCS之间。The terminal according to claim 8 or 9, wherein the request information of the auxiliary positioning data is located between a frame header of the probe request frame and a frame check sequence FCS.
  11. 如权利要求8-10中任一项所述的终端,其特征在于,所述辅助定位数据的响应信息位于所述探测响应帧的帧头和FCS之间。The terminal according to any one of claims 8 to 10, wherein the response information of the auxiliary positioning data is located between a frame header of the probe response frame and the FCS.
  12. 一种终端,其特征在于,所述终端包括:A terminal, wherein the terminal comprises:
    接收模块,用于接收待共享终端发送的探测请求帧,所述探测请求帧中包括辅助定位数据的请求信息;a receiving module, configured to receive a probe request frame sent by the terminal to be shared, where the probe request frame includes request information for assisting positioning data;
    发送模块,用于根据所述探测请求帧中的辅助定位数据的请求信息向所述待共享终端发送探测响应帧,所述探测响应帧中包括所述辅助定位数据的响应信息。And a sending module, configured to send a probe response frame to the to-be-shared terminal according to the request information of the auxiliary positioning data in the probe request frame, where the probe response frame includes response information of the auxiliary positioning data.
  13. 如权利要求12所述的终端,其特征在于,所述辅助定位数据的请求信息包括所述辅助定位数据的请求标识和所述待共享终端的辅助定位数据的时间信息;The terminal according to claim 12, wherein the request information of the auxiliary positioning data includes a request identifier of the auxiliary positioning data and time information of the auxiliary positioning data of the terminal to be shared;
    所述发送模块具体用于:The sending module is specifically configured to:
    确定所述辅助定位数据的请求标识为有效请求标识后,根据所述待共享 终端的辅助定位数据的时间信息和所述终端的辅助定位数据的时间信息,若确定所述终端的辅助定位数据有效,则向所述待共享终端发送探测响应帧,所述探测响应帧中包括所述终端的辅助定位数据。After determining that the request identifier of the auxiliary positioning data is a valid request identifier, according to the to-be-shared The time information of the auxiliary positioning data of the terminal and the time information of the auxiliary positioning data of the terminal, if it is determined that the auxiliary positioning data of the terminal is valid, sending a probe response frame to the to-be-shared terminal, where the probe response frame includes Auxiliary positioning data of the terminal.
  14. 如权利要求13所述的终端,其特征在于,所述发送模块具体用于:The terminal according to claim 13, wherein the sending module is specifically configured to:
    确定所述待共享终端的辅助定位数据的时间信息为无效时间信息时,根据所述终端的辅助定位数据的时间信息,在判断所述终端的辅助定位数据的时间与当前时间的间隔小于等于第一阈值后,确定所述终端的辅助定位数据有效;或者,When the time information of the auxiliary positioning data of the terminal to be shared is determined to be invalid time information, according to the time information of the auxiliary positioning data of the terminal, the interval between the time of determining the auxiliary positioning data of the terminal and the current time is less than or equal to After a threshold, determining that the auxiliary positioning data of the terminal is valid; or
    确定所述待共享终端的辅助定位数据的时间信息为有效时间时,根据所述终端的辅助定位数据的时间信息和所述待共享终端的辅助定位数据的时间信息,确定所述终端的辅助定位数据的时间晚于所述待共享终端的辅助定位数据的时间后,确定所述终端的辅助定位数据有效。Determining the auxiliary positioning of the terminal according to the time information of the auxiliary positioning data of the terminal and the time information of the auxiliary positioning data of the terminal to be shared when determining that the time information of the auxiliary positioning data of the terminal to be shared is the effective time After the time of the data is later than the time of the auxiliary positioning data of the terminal to be shared, it is determined that the auxiliary positioning data of the terminal is valid.
  15. 一种终端,其特征在于,所述终端包括:A terminal, wherein the terminal comprises:
    发送器,用于发送探测请求帧,所述探测请求帧中包括辅助定位数据的请求信息;a transmitter, configured to send a probe request frame, where the probe request frame includes request information for assisting positioning data;
    接收器,用于接收至少一个共享终端根据所述辅助定位数据的的请求信息发送的探测响应帧,所述至少一个共享终端中的每一共享终端发送的探测响应帧中包括所述每一共享终端的辅助定位数据的响应信息;a receiver, configured to receive a probe response frame that is sent by the at least one shared terminal according to the request information of the auxiliary positioning data, where each of the at least one shared terminal includes the probe response frame Response information of the auxiliary positioning data of the terminal;
    处理器,用于根据所述至少一个共享终端的辅助定位数据的响应信息,对所述终端中的辅助定位数据进行更新。And a processor, configured to update the auxiliary positioning data in the terminal according to the response information of the auxiliary positioning data of the at least one shared terminal.
  16. 如权利要求15所述的终端,其特征在于,所述每一共享终端的辅助定位数据的响应信息中包括所述每一共享终端的辅助定位数据和所述每一共享终端的辅助定位数据的时间信息;The terminal according to claim 15, wherein the response information of the auxiliary positioning data of each shared terminal includes auxiliary positioning data of each shared terminal and auxiliary positioning data of each shared terminal. Time information
    所述处理器具体用于:The processor is specifically configured to:
    在所述至少一个共享终端的辅助定位数据的时间信息中,确定出与当前时间间隔最小的时间信息;Determining, in time information of the auxiliary positioning data of the at least one shared terminal, time information that is the smallest time interval from the current time interval;
    将与当前时间间隔最小的时间信息对应的辅助定位数据确定为所述终端 更新后的辅助定位数据。Determining the auxiliary positioning data corresponding to the time information with the smallest current time interval as the terminal Updated assisted positioning data.
  17. 如权利要求15或16所述的终端,其特征在于,所述辅助定位数据的请求信息位于所述探测请求帧的帧头和帧校验序列FCS之间。The terminal according to claim 15 or 16, wherein the request information of the auxiliary positioning data is located between a frame header of the probe request frame and a frame check sequence FCS.
  18. 如权利要求15-17中任一项所述的终端,其特征在于,所述辅助定位数据的响应信息位于所述探测响应帧的帧头和FCS之间。The terminal according to any one of claims 15-17, wherein the response information of the auxiliary positioning data is located between a frame header of the probe response frame and the FCS.
  19. 一种终端,其特征在于,所述终端包括:A terminal, wherein the terminal comprises:
    接收器,用于接收待共享终端发送的探测请求帧,所述探测请求帧中包括辅助定位数据的请求信息;a receiver, configured to receive a probe request frame sent by the terminal to be shared, where the probe request frame includes request information for assisting positioning data;
    发送器,用于根据所述探测请求帧中的辅助定位数据的请求信息向所述待共享终端发送探测响应帧,所述探测响应帧中包括所述辅助定位数据的响应信息。And a transmitter, configured to send a probe response frame to the to-be-shared terminal according to the request information of the auxiliary positioning data in the probe request frame, where the probe response frame includes response information of the auxiliary positioning data.
  20. 如权利要求19所述的终端,其特征在于,所述辅助定位数据的请求信息包括所述辅助定位数据的请求标识和所述待共享终端的辅助定位数据的时间信息;The terminal according to claim 19, wherein the request information of the auxiliary positioning data comprises a request identifier of the auxiliary positioning data and time information of the auxiliary positioning data of the terminal to be shared;
    所述发送器具体用于:The transmitter is specifically configured to:
    确定所述辅助定位数据的请求标识为有效请求标识后,根据所述待共享终端的辅助定位数据的时间信息和所述终端的辅助定位数据的时间信息,若确定所述终端的辅助定位数据有效,则向所述待共享终端发送探测响应帧,所述探测响应帧中包括所述终端的辅助定位数据。After determining that the request identifier of the auxiliary positioning data is a valid request identifier, determining that the auxiliary positioning data of the terminal is valid according to time information of the auxiliary positioning data of the to-be-shared terminal and time information of the auxiliary positioning data of the terminal And sending a probe response frame to the to-be-shared terminal, where the probe response frame includes auxiliary positioning data of the terminal.
  21. 如权利要求20所述的终端,其特征在于,所述发送器具体用于:The terminal according to claim 20, wherein the transmitter is specifically configured to:
    确定所述待共享终端的辅助定位数据的时间信息为无效时间信息时,根据所述终端的辅助定位数据的时间信息,在判断所述终端的辅助定位数据的时间与当前时间的间隔小于等于第一阈值后,确定所述终端的辅助定位数据有效;或者,When the time information of the auxiliary positioning data of the terminal to be shared is determined to be invalid time information, according to the time information of the auxiliary positioning data of the terminal, the interval between the time of determining the auxiliary positioning data of the terminal and the current time is less than or equal to After a threshold, determining that the auxiliary positioning data of the terminal is valid; or
    确定所述待共享终端的辅助定位数据的时间信息为有效时间时,根据所述终端的辅助定位数据的时间信息和所述待共享终端的辅助定位数据的时间信息,确定所述终端的辅助定位数据的时间晚于所述待共享终端的辅助定位 数据的时间后,确定所述终端的辅助定位数据有效。 Determining the auxiliary positioning of the terminal according to the time information of the auxiliary positioning data of the terminal and the time information of the auxiliary positioning data of the terminal to be shared when determining that the time information of the auxiliary positioning data of the terminal to be shared is the effective time The time of the data is later than the auxiliary positioning of the terminal to be shared After the time of the data, it is determined that the auxiliary positioning data of the terminal is valid.
PCT/CN2016/104939 2016-11-07 2016-11-07 Assisted positioning data sharing method, and terminal WO2018082104A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201680077431.5A CN108474858A (en) 2016-11-07 2016-11-07 A kind of sharing method and terminal of auxiliary positioning data
PCT/CN2016/104939 WO2018082104A1 (en) 2016-11-07 2016-11-07 Assisted positioning data sharing method, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/104939 WO2018082104A1 (en) 2016-11-07 2016-11-07 Assisted positioning data sharing method, and terminal

Publications (1)

Publication Number Publication Date
WO2018082104A1 true WO2018082104A1 (en) 2018-05-11

Family

ID=62076240

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/104939 WO2018082104A1 (en) 2016-11-07 2016-11-07 Assisted positioning data sharing method, and terminal

Country Status (2)

Country Link
CN (1) CN108474858A (en)
WO (1) WO2018082104A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113625322B (en) * 2021-08-12 2024-03-15 西安广和通无线软件有限公司 Satellite positioning method, satellite positioning device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009129844A1 (en) * 2008-04-21 2009-10-29 Nokia Corporation Providing positioning assistance data
CN102047136A (en) * 2008-05-30 2011-05-04 波音公司 Internet hotspots localization using satellite systems
CN102149070A (en) * 2010-02-09 2011-08-10 中兴通讯股份有限公司 Positioning auxiliary data notification method, device and positioning method in long-term evolution system
CN103969670A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Mobile terminal satellite positioning method and mobile network terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101715163B (en) * 2009-11-24 2012-09-26 中兴通讯股份有限公司 Method and device for acquiring auxiliary positioning data
CN105517142B (en) * 2014-09-24 2020-09-15 中兴通讯股份有限公司 WLAN positioning method, terminal and WLAN access server
CN104320847B (en) * 2014-11-03 2018-08-28 中国科学院深圳先进技术研究院 Based on the low power targeting methods and system for closing on perception and mobile base station

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009129844A1 (en) * 2008-04-21 2009-10-29 Nokia Corporation Providing positioning assistance data
CN102047136A (en) * 2008-05-30 2011-05-04 波音公司 Internet hotspots localization using satellite systems
CN102149070A (en) * 2010-02-09 2011-08-10 中兴通讯股份有限公司 Positioning auxiliary data notification method, device and positioning method in long-term evolution system
CN103969670A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Mobile terminal satellite positioning method and mobile network terminal

Also Published As

Publication number Publication date
CN108474858A (en) 2018-08-31

Similar Documents

Publication Publication Date Title
US11457082B2 (en) Service processing method and apparatus of service-based architecture
US11184764B2 (en) Methods and systems of establishing communication between devices
CN109315004B (en) PDU type setting method and related entity
WO2019010686A1 (en) Data processing method and data processing apparatus
EP3761679B1 (en) Location method and related device
US11172530B2 (en) Communication establishment method and terminal
JP2017502396A (en) Application program update processing method and terminal device
WO2017219609A1 (en) Parking stall reservation method, related terminal, server, and device
US20160075272A1 (en) Vehicle remote start attempts messaging system and method
CN109743757B (en) Data processing method and device, wireless module and Internet of things equipment
EP3979676A1 (en) Method and apparatus for identifying dual-mode wireless device, ios device, and medium
JP2024016285A (en) Software upgrade methods, equipment, and systems
CN113452770B (en) Data synchronization method, device, computer equipment and storage medium
WO2018082104A1 (en) Assisted positioning data sharing method, and terminal
CN111314273A (en) Data transmission method and connection device based on UDP (user Datagram protocol)
JP2021504989A (en) Methods and equipment for negotiation of user equipment policy transmission
WO2013091449A1 (en) Connecting wireless devices
CN107682939B (en) Communication method based on LORA ad hoc protocol
CN108206853B (en) Method and device for communication between vehicles
CN106231538B (en) Method and device for binding OneM2M architecture equipment
US20180192448A1 (en) Method, device, and system for audio bluetooth pairing and connecting
CN111373709B (en) Terminal pairing method, server and terminal
CN109639698B (en) Data processing method and server
JP2009088934A (en) Wireless lan access point, and wireless lan access point program
WO2017063437A1 (en) Wearable device and method thereof for receiving and sending data

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

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

Country of ref document: EP

Kind code of ref document: A1