WO2021114359A1 - Positioning data processing method, terminal to be positioned, and positioning server - Google Patents

Positioning data processing method, terminal to be positioned, and positioning server Download PDF

Info

Publication number
WO2021114359A1
WO2021114359A1 PCT/CN2019/126765 CN2019126765W WO2021114359A1 WO 2021114359 A1 WO2021114359 A1 WO 2021114359A1 CN 2019126765 W CN2019126765 W CN 2019126765W WO 2021114359 A1 WO2021114359 A1 WO 2021114359A1
Authority
WO
WIPO (PCT)
Prior art keywords
positioning
data
terminal
device information
encrypted
Prior art date
Application number
PCT/CN2019/126765
Other languages
French (fr)
Chinese (zh)
Inventor
刁幸华
许祥滨
高峰
Original Assignee
泰斗微电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 泰斗微电子科技有限公司 filed Critical 泰斗微电子科技有限公司
Publication of WO2021114359A1 publication Critical patent/WO2021114359A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Definitions

  • This application belongs to the field of positioning technology, and in particular relates to a positioning data processing method, a positioning terminal and a positioning server.
  • Indoor positioning refers to the collection of data in the surrounding environment through positioning terminals, such as the received signal strength (RSSI), media access control (MAC), frequency, etc. of wireless signals such as Bluetooth and Wi-Fi Then upload these data to the positioning server in the cloud, and obtain the position of the positioning terminal after processing and solving by the positioning server, thereby completing a service for terminal positioning.
  • RSSI received signal strength
  • MAC media access control
  • Wi-Fi wireless signals
  • manufacturers that provide positioning services can provide users with corresponding terminal products, and users can use the products to complete corresponding positioning without paying attention to the specific process.
  • some positioning products on the market are not actually authorized by the manufacturer.
  • Such unauthorized products can access the positioning server by pretending to be an authorized product to complete positioning.
  • such unauthorized products are prone to data interception and misappropriation by others during data transmission, which not only affects the accuracy of positioning, but also causes the leakage of user privacy more seriously.
  • the embodiments of the present application provide a positioning data processing method, a positioning terminal, and a positioning server to solve the problem of using unauthorized products for positioning in the prior art, which may cause positioning data to be intercepted and misappropriated by others and affect positioning Accuracy, causing the problem of user privacy leakage.
  • the first aspect of the embodiments of the present application provides a positioning data processing method, which is applied to a positioning terminal, and the positioning data processing method includes:
  • the positioning data packet is transmitted to the positioning server to notify the positioning server to process the positioning data packet, extract the device information and the positioning data, and pair according to the device information and the positioning data
  • the positioning terminal performs positioning.
  • the second aspect of the embodiments of the present application provides a positioning data processing method, which is applied to a server, and the positioning data processing method includes:
  • a third aspect of the embodiments of the present application provides a positioning data processing device, which is applied to a positioning terminal, and the positioning data device method includes:
  • the device information encryption module is used to obtain device information of the positioning terminal, encrypt the device information, and obtain the first encrypted data;
  • the positioning data encryption module is used to collect positioning data, encrypt the positioning data, and obtain second encrypted data;
  • a positioning data packet encapsulation module configured to encapsulate the first encrypted data and the second encrypted data into a positioning data packet
  • the positioning data packet transmission module is used to transmit the positioning data packet to the positioning server to notify the positioning server to process the positioning data packet, extract the device information and the positioning data, and according to the The device information and the positioning data position the positioning terminal.
  • a fourth aspect of the embodiments of the present application provides a positioning data processing device, which is applied to a server, and the positioning data processing device includes:
  • the positioning data packet receiving module is used to receive the positioning data packet transmitted by the positioning terminal;
  • An encrypted data extraction module for extracting the first encrypted data and the second encrypted data in the positioning data packet
  • An encrypted data decryption module configured to decrypt the first encrypted data and the second encrypted data, respectively, to obtain device information and positioning data of the positioning terminal;
  • the positioning module is used for positioning the positioning terminal according to the device information and the positioning data.
  • the fifth aspect of the embodiments of the present application provides a positioning terminal, including a memory, a processor, and a computer program stored in the memory and running on the processor.
  • a positioning terminal including a memory, a processor, and a computer program stored in the memory and running on the processor.
  • the processor executes the computer program, The positioning data processing method as described in the above first aspect is implemented.
  • a sixth aspect of the embodiments of the present application provides a positioning server, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the computer-readable storage medium stores a computer A program, when the computer program is executed by a processor, the positioning data processing method as described in the second aspect is implemented.
  • the seventh aspect of the embodiments of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of a positioning terminal, the implementation of the above-mentioned first aspect is The positioning data processing method.
  • the eighth aspect of the embodiments of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of a positioning server, the implementation of the above-mentioned second aspect is The positioning data processing method.
  • the embodiments of the present application include the following advantages:
  • the above-mentioned device information and positioning data are respectively encrypted, and then the encrypted data is encapsulated into a positioning data packet, and then transmitted to the positioning server for positioning , Can ensure the security of data transmission, prevent data from being stolen and misappropriated by others, and reduce the possibility of user privacy leakage.
  • this embodiment also transmits its own device information to the positioning server.
  • the positioning server can identify whether the current positioning terminal is an authorized terminal based on the device information, which reduces unauthorized terminals. The possibility of illegally embezzling the location service by disguising as an authorized terminal improves the security and privacy of the data interaction of the location terminal.
  • FIG. 1 is a schematic flowchart of steps of a positioning data processing method according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of a positioning data packet encapsulation process according to an embodiment of the present application
  • FIG. 3 is a schematic flowchart of steps of another positioning data processing method according to an embodiment of the present application.
  • Figure 4 is a schematic diagram of a location data packet decryption process according to an embodiment of the present application.
  • Fig. 5 is a schematic diagram of a positioning data processing device according to an embodiment of the present application.
  • Fig. 6 is a schematic diagram of another positioning data processing device according to an embodiment of the present application.
  • Fig. 7 is a schematic diagram of a positioning terminal according to an embodiment of the present application.
  • this method can be applied to positioning terminals. That is, the execution subject of this embodiment is the positioning terminal, and this embodiment introduces the method from the side of the positioning terminal.
  • the processing the device information of the positioning terminal itself and the collected positioning data on the positioning terminal side under the premise of ensuring data security, the processed data is transmitted to the positioning server, and the positioning server completes the positioning of the positioning terminal.
  • the positioning terminal in this embodiment may refer to a terminal device produced or authorized to produce by a manufacturer that provides positioning services.
  • the terminal device may exist in the form of a separate terminal product, or it may be integrated in other terminal products in the form of a software service.
  • this embodiment does not limit the product form or type of the positioning terminal.
  • unauthorized terminal devices can access the positioning server by pretending to be authorized terminal devices to complete positioning.
  • the use of such unauthorized terminal equipment is likely to bring some risks to users, and it will also affect the actual rights and interests of vendors that provide location services.
  • this embodiment can determine whether the terminal device can provide positioning services by verifying whether the positioning terminal is an authorized device.
  • the positioning terminal when the positioning terminal realizes positioning through interaction with the positioning server, it can first obtain the device information of the positioning terminal itself, and then encrypt the device information through a preset encryption method to obtain the first encrypted data . After the above-mentioned first encrypted data is transmitted to the positioning server, the positioning server verifies the identity of the positioning terminal, thereby determining whether the positioning service can be provided to the positioning terminal.
  • the device information of the positioning terminal may include the device ID of the device itself, and the device ID may be pre-allocated by the manufacturer before leaving the factory.
  • the positioning terminal with the device ID assigned by the manufacturer can be regarded as an authorized device.
  • the device information encryption key may be a key configured in advance for the positioning terminal and used to encrypt device information such as a device ID.
  • the encryption key and the decryption key should appear as a pair.
  • the device information encryption key in this embodiment can be stored in the positioning terminal, and the corresponding device information decryption key can be stored in the positioning server.
  • the positioning terminal can collect positioning data, such as Bluetooth, Wi-Fi, RSSI, MAC, channel, frequency and other data in the surrounding environment. These data can be used to determine the current specific location of the positioning terminal after being transmitted to the server.
  • positioning data such as Bluetooth, Wi-Fi, RSSI, MAC, channel, frequency and other data in the surrounding environment. These data can be used to determine the current specific location of the positioning terminal after being transmitted to the server.
  • the data in order to ensure the security of positioning data transmission, after the positioning terminal collects the positioning data, the data can be encrypted according to a preset encryption method to obtain the second encrypted data to be transmitted.
  • the data collected by the positioning terminal can include multiple types, but not all the collected data can be used for subsequent positioning. For example, due to signal strength issues, some of the final collected data may have obvious errors, and other data may not be suitable for subsequent positioning due to certain missing values. Therefore, after the positioning terminal collects the positioning data, it can first identify the target positioning data to be transmitted among the positioning data.
  • the target positioning data may include data with a moderate amount of data and no obvious missing or incorrect values. Then read the pre-configured location data encryption key, and use the location data encryption key to encrypt the target location data to obtain the second encrypted data.
  • the location data encryption key may also be a key configured for the location terminal in advance and used to encrypt the location data.
  • the location data encryption key can be stored in the location terminal, and the corresponding location data decryption key can be stored in the location server.
  • the amount of data that needs to be transmitted is reduced, and the pressure of processing positioning data on the positioning server is reduced.
  • FIG. 2 it is a schematic diagram of the positioning data packet encapsulation process of this embodiment.
  • the positioning terminal After encrypting the device information to obtain the first encrypted data, and encrypting the positioning data to obtain the second encrypted data, the positioning terminal can encapsulate the first encrypted data and the second encrypted data into positioning data packets according to certain rules for subsequent use Transmission.
  • the corresponding encapsulation format can be selected according to actual needs, which is not limited in this embodiment.
  • the encapsulated positioning data packet can be transmitted to the positioning server, and the server processes the data packet, extracts the device information and positioning data therein, and completes the positioning of the positioning terminal.
  • this embodiment can also read the pre-configured data packet encryption key before transmitting the positioning data packet, and then use the data packet encryption key to encrypt the positioning data packet, and then The encrypted positioning data packet is transmitted to the positioning server.
  • the device information encryption key, location data encryption key, and data packet encryption key in this embodiment may be different, and all three encryption keys can be pre-configured in the positioning terminal for use in Encrypt different data.
  • the decryption keys corresponding to the three types of encryption keys can be stored in the positioning server. After the positioning server receives the data transmitted by the positioning terminal, it uses the decryption key to decrypt it, and then extracts the device information and information used for positioning. Positioning data.
  • the positioning server when the positioning server locates the positioning terminal based on the device information and positioning data, it can first verify whether the positioning terminal currently needs to be positioned is an authorized terminal according to the device information, and if so, continue to use the positioning data for the terminal Positioning. If the positioning server recognizes that the current positioning terminal does not authorize the terminal according to the device information, it may refuse to provide positioning services for the terminal.
  • the above-mentioned device information and positioning data are respectively encrypted, and then the encrypted data is encapsulated into a positioning data packet, and then transmitted to the positioning server Positioning can ensure the security of data transmission, prevent data from being stolen and misappropriated by others, and reduce the possibility of user privacy leakage.
  • this embodiment also transmits its own device information to the positioning server.
  • the positioning server can identify whether the current positioning terminal is an authorized terminal based on the device information, which reduces unauthorized terminals. The possibility of illegally embezzling the location service by disguising as an authorized terminal improves the security and privacy of the data interaction of the location terminal.
  • FIG. 3 there is shown a schematic flow diagram of the steps of another positioning data processing method according to an embodiment of the present application, which may specifically include the following steps:
  • S301 Receive a positioning data packet transmitted by a positioning terminal
  • this method can be applied to a positioning server, and the execution subject of this embodiment is the positioning server. That is, this embodiment introduces the method from the side of the positioning server.
  • the positioning data packet may be transmitted from the positioning terminal to the positioning server.
  • the positioning terminal needs to perform positioning, it can collect the surrounding positioning data, encrypt the positioning data, and then transmit it to the positioning server.
  • the location server can instruct the location terminal to transmit its own device information to the location server for verification when transmitting location data. Whether the positioning terminal has been authorized to use the current positioning service.
  • the positioning data packet may include the device information of the positioning terminal and the positioning data collected by the terminal.
  • the positioning terminal in order to ensure the security of the transmitted data, can respectively encrypt its own device information and positioning data to generate the first encrypted data and the second encrypted data, and then encrypt the first encrypted data and the second encrypted data.
  • the data is encapsulated into positioning data packets, and then transmitted to the positioning server.
  • the positioning server can first extract the first encrypted data and the second encrypted data from the positioning data packet, and then decrypt the first encrypted data and the second encrypted data, Obtain the device information of the positioning terminal and the positioning data used for positioning.
  • the positioning terminal when the positioning terminal encapsulates the first encrypted data and the second encrypted data, they may also be encrypted again. That is, the positioning data packet in this embodiment may be a data packet encrypted by using a preset data packet encryption key.
  • the positioning server can first determine the data packet decryption key corresponding to the data packet encryption key, and then use the data packet decryption key to locate The data packet is decrypted, and the first encrypted data and the second encrypted data are extracted from the decrypted positioning data packet.
  • the positioning server When the positioning server decrypts the first encrypted data and the second encrypted data, it may first determine the device information decryption key corresponding to the device information encryption key, and the positioning data decryption key corresponding to the location data encryption key Key.
  • the above-mentioned device information encryption key may be a key for encrypting the device information of the positioning terminal, and the positioning data encryption key is a key for encrypting the positioning data collected by the positioning terminal.
  • the device information encryption key and the device information decryption key, and the location data encryption key and location data decryption key should correspond.
  • the device information encryption key and the positioning data encryption key can be stored in the positioning terminal.
  • the decryption keys corresponding to the above two types of encryption keys can be stored in the positioning server for verification.
  • the encrypted data is decrypted by the above two encryption keys.
  • FIG 4 it is a schematic diagram of the decryption process of the positioning data packet of the present application.
  • the positioning server extracts the first encrypted data and the second encrypted data from the positioning data packet, it can first decrypt the first encrypted data with the device information decryption key to obtain the device information of the positioning terminal, and then identify whether the positioning terminal is As a target positioning terminal, the target positioning terminal in this embodiment may refer to a positioning terminal authorized by a positioning server.
  • the device information of the positioning terminal may include the device ID of the terminal, and the device ID of any positioning terminal may be unique.
  • the positioning terminal authorized by the server its device ID can be stored through the device information database process in the positioning server.
  • the device ID of the positioning terminal can be searched in the preset device information database. If the device ID of the positioning terminal is found, then it can be determined that the positioning terminal is obtained.
  • Authorized target location terminal when identifying whether a certain positioning terminal is an authorized terminal, the device ID of the positioning terminal can be searched in the preset device information database. If the device ID of the positioning terminal is found, then it can be determined that the positioning terminal is obtained.
  • Authorized target location terminal when identifying whether a certain positioning terminal is an authorized terminal, the device ID of the positioning terminal can be searched in the preset device information database. If the device ID of the positioning terminal is found, then it can be determined that the positioning terminal is obtained.
  • Authorized target location terminal If the device ID of the positioning terminal is found, then it can be determined that the positioning terminal is obtained.
  • the positioning server can use the positioning data decryption key to decrypt the second encrypted data to obtain the positioning data collected by the positioning terminal .
  • the positioning server does not need to decrypt the second encrypted data.
  • the positioning server can verify whether the current positioning terminal is an authorized terminal according to the device information, which solves the problem of unauthorized access.
  • Authorized terminal equipment pretends to be an authorized terminal to illegally steal the location service provided by the location server.
  • the positioning data is encrypted by the positioning terminal and then transmitted to the positioning server to ensure the security of data transmission.
  • each of the above embodiments introduces the method from the side of the positioning terminal and the side of the positioning server, and some details can be referred to each other.
  • the positioning data device may be applied to a positioning terminal, and may specifically include the following modules:
  • the device information encryption module 501 is configured to obtain device information of the positioning terminal, encrypt the device information, and obtain first encrypted data;
  • the positioning data encryption module 502 is configured to collect positioning data, encrypt the positioning data, and obtain second encrypted data;
  • the positioning data packet transmission module 504 is configured to transmit the positioning data packet to a positioning server to notify the positioning server to process the positioning data packet, extract the device information and the positioning data, and perform the The device information and the positioning data position the positioning terminal.
  • the device information may include a device ID
  • the device information encryption module 501 may specifically include the following sub-modules:
  • the device ID obtaining sub-module is used to obtain the device ID of the positioning terminal
  • the device ID encryption sub-module is used to read a pre-configured device information encryption key, and use the device information encryption key to encrypt the device ID to obtain first encrypted data.
  • the positioning data encryption module 502 may specifically include the following sub-modules:
  • the target positioning data identification sub-module is used to collect positioning data and identify the target positioning data to be transmitted in the positioning data;
  • the target positioning data encryption sub-module is used to read a pre-configured positioning data encryption key, and use the positioning data encryption key to encrypt the target positioning data to obtain second encrypted data.
  • the positioning data packet transmission module 504 may specifically include the following sub-modules:
  • the location data packet encryption sub-module is used to read a pre-configured data packet encryption key, and use the data packet encryption key to encrypt the location data packet;
  • the positioning data packet transmission sub-module is used to transmit the encrypted positioning data packet to the positioning server.
  • the positioning data apparatus may be applied to a positioning server, and may specifically include the following modules:
  • the positioning data packet receiving module 601 is configured to receive the positioning data packet transmitted by the positioning terminal;
  • the encrypted data extraction module 602 is configured to extract the first encrypted data and the second encrypted data in the positioning data packet;
  • the encrypted data decryption module 603 is configured to decrypt the first encrypted data and the second encrypted data respectively to obtain the device information and positioning data of the positioning terminal;
  • the positioning module 604 is configured to position the positioning terminal according to the device information and the positioning data.
  • the location data packet may be a data packet encrypted using a preset data packet encryption key
  • the encrypted data extraction module 602 may specifically include the following sub-modules:
  • a data packet decryption key determining sub-module which is used to determine a data packet decryption key corresponding to the data packet encryption key
  • the encrypted data extraction sub-module is used to extract the first encrypted data and the second encrypted data from the decrypted positioning data packet.
  • the encrypted data decryption module 603 may specifically include the following submodules:
  • the decryption key determination sub-module is used to determine the device information decryption key corresponding to the device information encryption key, and to determine the location data decryption key corresponding to the location data encryption key; wherein the device information is encrypted
  • the key is a key for encrypting the device information of the positioning terminal
  • the positioning data encryption key is a key for encrypting the positioning data collected by the positioning terminal;
  • the first decryption submodule is configured to decrypt the first encrypted data using the device information decryption key to obtain device information of the positioning terminal;
  • the target positioning terminal identification sub-module is used to identify whether the positioning terminal is a target positioning terminal, and the target positioning terminal is a positioning terminal authorized by the positioning server;
  • the second decryption submodule is configured to, if the positioning terminal is a target positioning terminal, decrypt the second encrypted data using the positioning data decryption key to obtain the positioning data collected by the positioning terminal.
  • the device information may include a device ID
  • the target positioning terminal identification sub-module may specifically include the following units:
  • the device ID searching unit is used for searching the device ID of the positioning terminal in a preset device information database
  • the target positioning terminal determining unit is configured to determine that the positioning terminal is a target positioning terminal if the device ID of the positioning terminal is found.
  • the description is relatively simple, and for related parts, please refer to the description of the method embodiment.
  • the positioning terminal 700 of this embodiment includes: a processor 710, a memory 720, and a computer program 721 stored in the memory 720 and running on the processor 710.
  • the processor 710 executes the computer program 721
  • the steps in each embodiment of the foregoing data processing method are implemented, for example, steps S101 to S104 shown in FIG. 1.
  • the processor 710 executes the computer program 721
  • the functions of the modules/units in the foregoing device embodiments are implemented, for example, the functions of the modules 501 to 504 shown in FIG. 5.
  • the computer program 721 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 720 and executed by the processor 710 to complete This application.
  • the one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments may be used to describe the execution process of the computer program 721 in the positioning terminal 700.
  • the computer program 721 can be divided into a device information encryption module, a location data encryption module, a location data packet encapsulation module, and a location data packet transmission module.
  • the specific functions of each module are as follows:
  • the device information encryption module is used to obtain device information of the positioning terminal, encrypt the device information, and obtain the first encrypted data;
  • the positioning data encryption module is used to collect positioning data, encrypt the positioning data, and obtain second encrypted data;
  • a positioning data packet encapsulation module configured to encapsulate the first encrypted data and the second encrypted data into a positioning data packet
  • the positioning data packet transmission module is used to transmit the positioning data packet to the positioning server to notify the positioning server to process the positioning data packet, extract the device information and the positioning data, and according to the The device information and the positioning data position the positioning terminal.
  • the positioning terminal 700 may be a computing device such as a desktop computer, a notebook, or a palmtop computer.
  • the positioning terminal 700 may include, but is not limited to, a processor 710 and a memory 720.
  • FIG. 7 is only an example of the positioning terminal 700, and does not constitute a limitation on the positioning terminal 700. It may include more or less components than shown in the figure, or combine certain components, or different
  • the positioning terminal 700 may also include input and output devices, network access devices, buses, and so on.
  • the processor 710 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (ASIC), Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 720 may be an internal storage unit of the positioning terminal 700, such as a hard disk or a memory of the positioning terminal 700.
  • the memory 720 may also be an external storage device of the positioning terminal 700, such as a plug-in hard disk equipped on the positioning terminal 700, a smart media card (SMC), or a secure digital (SD) Card, Flash Card, etc. Further, the memory 720 may also include both an internal storage unit of the positioning terminal 700 and an external storage device.
  • the memory 720 is used to store the computer program 721 and other programs and data required by the positioning terminal 700.
  • the memory 720 can also be used to temporarily store data that has been output or will be output.
  • This embodiment also discloses a positioning server, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, the computer-readable storage medium stores the computer program, and When the computer program is executed by the processor, the positioning data processing method on the positioning server side is realized.
  • This embodiment also discloses a computer-readable storage medium that stores a computer program that, when executed by a processor of the positioning server, implements the positioning data processing method on the positioning server side.

Abstract

A positioning data processing method, a terminal to be positioned, and a positioning server. The method comprises: acquiring device information of a terminal to be positioned, and encrypting the device information to obtain first encrypted data (S101); collecting positioning data, and encrypting the positioning data to obtain second encrypted data (S102); encapsulating the first encrypted data and the second encrypted data into a positioning data packet (S103); and transmitting the positioning data packet to a server, and notifying the server to process the positioning data packet, extract the device information and the positioning data, and perform positioning, according to the device information and the positioning data, for the terminal to be positioned (S104). The present embodiment can reduce the possibility of an unlicensed terminal impersonating a licensed terminal and using positioning services without authorization, thus improving the security and privacy of data interaction for terminals to be positioned.

Description

定位数据处理方法、定位终端和定位服务器Positioning data processing method, positioning terminal and positioning server 技术领域Technical field
本申请属于定位技术领域,特别是涉及一种定位数据处理方法、定位终端和定位服务器。This application belongs to the field of positioning technology, and in particular relates to a positioning data processing method, a positioning terminal and a positioning server.
背景技术Background technique
室内定位,是指通过定位终端采集周围环境中的数据,如蓝牙、Wi-Fi等无线信号的接收信号强度(Received Signal Strength Indication,RSSI)、介质访问控制(Media Access Control,MAC)、频率等数据,然后将这些数据上传至云端的定位服务器,通过定位服务器的处理解算后得到定位终端的位置,从而完成对终端定位的一种服务。Indoor positioning refers to the collection of data in the surrounding environment through positioning terminals, such as the received signal strength (RSSI), media access control (MAC), frequency, etc. of wireless signals such as Bluetooth and Wi-Fi Then upload these data to the positioning server in the cloud, and obtain the position of the positioning terminal after processing and solving by the positioning server, thereby completing a service for terminal positioning.
通常,提供定位服务的厂商可以向用户提供相应的终端产品,用户使用该产品即可完成相应的定位,无需关注具体的过程。但是,市面上销售的部分定位产品并非是经过厂商实际授权的,这类未被授权的产品可以通过伪装成授权产品的方式去访问定位服务器,从而完成定位。但是,这类未被授权的产品在进行数据传输时容易出现数据被他人拦截盗用的情况,不仅影响定位的准确性,更严重地还会造成用户隐私的泄露。Generally, manufacturers that provide positioning services can provide users with corresponding terminal products, and users can use the products to complete corresponding positioning without paying attention to the specific process. However, some positioning products on the market are not actually authorized by the manufacturer. Such unauthorized products can access the positioning server by pretending to be an authorized product to complete positioning. However, such unauthorized products are prone to data interception and misappropriation by others during data transmission, which not only affects the accuracy of positioning, but also causes the leakage of user privacy more seriously.
发明内容Summary of the invention
有鉴于此,本申请实施例提供了一种定位数据处理方法、定位终端和定位服务器,以解决现有技术中使用未被授权的产品进行定位,容易出现定位数据被他人拦截盗用,影响定位的准确性,造成用户隐私泄露的问题。In view of this, the embodiments of the present application provide a positioning data processing method, a positioning terminal, and a positioning server to solve the problem of using unauthorized products for positioning in the prior art, which may cause positioning data to be intercepted and misappropriated by others and affect positioning Accuracy, causing the problem of user privacy leakage.
本申请实施例的第一方面提供了一种定位数据处理方法,应用于定位终端,所述定位数据处理方法包括:The first aspect of the embodiments of the present application provides a positioning data processing method, which is applied to a positioning terminal, and the positioning data processing method includes:
获取定位终端的设备信息,对所述设备信息进行加密,获得第一加密数据;Obtaining device information of the positioning terminal, encrypting the device information, and obtaining first encrypted data;
采集定位数据,对所述定位数据进行加密,获得第二加密数据;Collecting positioning data, encrypting the positioning data, and obtaining second encrypted data;
将所述第一加密数据和所述第二加密数据封装为定位数据包;Encapsulating the first encrypted data and the second encrypted data into a positioning data packet;
将所述定位数据包传输至定位服务器,以通知所述定位服务器对所述定位数据包进行处理,提取出所述设备信息和所述定位数据,并根据所述设备信息和所述定位数据对所述定位终端进行定位。The positioning data packet is transmitted to the positioning server to notify the positioning server to process the positioning data packet, extract the device information and the positioning data, and pair according to the device information and the positioning data The positioning terminal performs positioning.
本申请实施例的第二方面提供了一种定位数据处理方法,应用于服务器,所述定位数据处理方法包括:The second aspect of the embodiments of the present application provides a positioning data processing method, which is applied to a server, and the positioning data processing method includes:
接收定位终端传输的定位数据包;Receive the positioning data packet transmitted by the positioning terminal;
提取所述定位数据包中的第一加密数据和第二加密数据;Extracting the first encrypted data and the second encrypted data in the positioning data packet;
分别对所述第一加密数据和所述第二加密数据进行解密,获得所述定位终端的设备信息和定位数据;Respectively decrypt the first encrypted data and the second encrypted data to obtain the device information and positioning data of the positioning terminal;
根据所述设备信息和所述定位数据,对所述定位终端进行定位。Position the positioning terminal according to the device information and the positioning data.
本申请实施例的第三方面提供了一种定位数据处理装置,应用于定位终端,所述定位数据装置方法包括:A third aspect of the embodiments of the present application provides a positioning data processing device, which is applied to a positioning terminal, and the positioning data device method includes:
设备信息加密模块,用于获取定位终端的设备信息,对所述设备信息进行加密,获得第一加密数据;The device information encryption module is used to obtain device information of the positioning terminal, encrypt the device information, and obtain the first encrypted data;
定位数据加密模块,用于采集定位数据,对所述定位数据进行加密,获得第二加密数据;The positioning data encryption module is used to collect positioning data, encrypt the positioning data, and obtain second encrypted data;
定位数据包封装模块,用于将所述第一加密数据和所述第二加密数据封装为定位数据包;A positioning data packet encapsulation module, configured to encapsulate the first encrypted data and the second encrypted data into a positioning data packet;
定位数据包传输模块,用于将所述定位数据包传输至定位服务器,以通知所述定位服务器对所述定位数据包进行处理,提取出所述设备信息和所述定位数据,并根据所述设备信息和所述定位数据对所述定位终端进行定位。The positioning data packet transmission module is used to transmit the positioning data packet to the positioning server to notify the positioning server to process the positioning data packet, extract the device information and the positioning data, and according to the The device information and the positioning data position the positioning terminal.
本申请实施例的第四方面提供了一种定位数据处理装置,应用于服务器,所述定位数据处理装置包括:A fourth aspect of the embodiments of the present application provides a positioning data processing device, which is applied to a server, and the positioning data processing device includes:
定位数据包接收模块,用于接收定位终端传输的定位数据包;The positioning data packet receiving module is used to receive the positioning data packet transmitted by the positioning terminal;
加密数据提取模块,用于提取所述定位数据包中的第一加密数据和第二加密数据;An encrypted data extraction module for extracting the first encrypted data and the second encrypted data in the positioning data packet;
加密数据解密模块,用于分别对所述第一加密数据和所述第二加密数据进行解密,获得所述定位终端的设备信息和定位数据;An encrypted data decryption module, configured to decrypt the first encrypted data and the second encrypted data, respectively, to obtain device information and positioning data of the positioning terminal;
定位模块,用于根据所述设备信息和所述定位数据,对所述定位终端进行定位。The positioning module is used for positioning the positioning terminal according to the device information and the positioning data.
本申请实施例的第五方面提供了一种定位终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第一方面所述的定位数据处理方法。The fifth aspect of the embodiments of the present application provides a positioning terminal, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, The positioning data processing method as described in the above first aspect is implemented.
本申请实施例的第六方面提供了一种定位服务器,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述第二方面所述的定位数据处理方法。A sixth aspect of the embodiments of the present application provides a positioning server, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the computer-readable storage medium stores a computer A program, when the computer program is executed by a processor, the positioning data processing method as described in the second aspect is implemented.
本申请实施例的第七方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被定位终端的处理器执行时实现如上述第一方面所述的定位数据处理方法。The seventh aspect of the embodiments of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of a positioning terminal, the implementation of the above-mentioned first aspect is The positioning data processing method.
本申请实施例的第八方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被定位服务器的处理器执行时实现如上述第二方面所述的定位数据处理方法。The eighth aspect of the embodiments of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of a positioning server, the implementation of the above-mentioned second aspect is The positioning data processing method.
与现有技术相比,本申请实施例包括以下优点:Compared with the prior art, the embodiments of the present application include the following advantages:
本申请实施例,通过在获取定位终端的设备信息并采集到定位数据后,分别对上述设备信息和定位数据进行加密,然后将加密后的数据封装成定位数据包,再传输至定位服务器进行定位,可以保证数据传输的安全性,防止数据被他人窃取盗用,降低了用户隐私泄露的可能性。另一方面,本实施例在传输定位数据时,还将自身的设备信息一并传输至定位服务器,定位服务器可以根据该设备信息识别出当前进行定位的终端是否为授权终端,降低了非授权终端通过伪装成授权终端的方式非法盗用定位服务的可能,提高了定位终端数据交互的安全性与私密性。In the embodiment of this application, after acquiring the device information of the positioning terminal and collecting the positioning data, the above-mentioned device information and positioning data are respectively encrypted, and then the encrypted data is encapsulated into a positioning data packet, and then transmitted to the positioning server for positioning , Can ensure the security of data transmission, prevent data from being stolen and misappropriated by others, and reduce the possibility of user privacy leakage. On the other hand, when transmitting positioning data, this embodiment also transmits its own device information to the positioning server. The positioning server can identify whether the current positioning terminal is an authorized terminal based on the device information, which reduces unauthorized terminals. The possibility of illegally embezzling the location service by disguising as an authorized terminal improves the security and privacy of the data interaction of the location terminal.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创 造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1是本申请一个实施例的一种定位数据处理方法的步骤流程示意图;FIG. 1 is a schematic flowchart of steps of a positioning data processing method according to an embodiment of the present application;
图2是本申请一个实施例的一种定位数据包封装过程示意图;FIG. 2 is a schematic diagram of a positioning data packet encapsulation process according to an embodiment of the present application;
图3是本申请一个实施例的另一种定位数据处理方法的步骤流程示意图;FIG. 3 is a schematic flowchart of steps of another positioning data processing method according to an embodiment of the present application;
图4是本申请一个实施例的一种定位数据包解密过程示意图;Figure 4 is a schematic diagram of a location data packet decryption process according to an embodiment of the present application;
图5是本申请一个实施例的一种定位数据处理装置的示意图;Fig. 5 is a schematic diagram of a positioning data processing device according to an embodiment of the present application;
图6是本申请一个实施例的另一种定位数据处理装置的示意图;Fig. 6 is a schematic diagram of another positioning data processing device according to an embodiment of the present application;
图7是本申请一个实施例的一种定位终端的示意图。Fig. 7 is a schematic diagram of a positioning terminal according to an embodiment of the present application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域技术人员应当清楚,在没有这些具体细节的其他实施例中也可以实现本申请。在其他情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are proposed for a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from obstructing the description of this application.
下面通过具体实施例来说明本申请的技术方案。The technical solution of the present application will be described below through specific embodiments.
参照图1,示出了本申请一个实施例的一种定位数据处理方法的步骤流程示意图,具体可以包括如下步骤:1, it shows a schematic flow chart of the steps of a positioning data processing method according to an embodiment of the present application, which may specifically include the following steps:
S101、获取定位终端的设备信息,对所述设备信息进行加密,获得第一加密数据;S101. Obtain device information of a positioning terminal, encrypt the device information, and obtain first encrypted data;
需要说明的是,本方法可以应用于定位终端。即,本实施例的执行主体为定位终端,本实施例是从定位终端侧来对本方法进行的介绍。通过在定位终端侧对定位终端自身的设备信息以及采集的定位数据进行处理,在保证数据安全的前提下,将处理后的数据传输至定位服务器,由定位服务器完成对定位终端的定位。It should be noted that this method can be applied to positioning terminals. That is, the execution subject of this embodiment is the positioning terminal, and this embodiment introduces the method from the side of the positioning terminal. By processing the device information of the positioning terminal itself and the collected positioning data on the positioning terminal side, under the premise of ensuring data security, the processed data is transmitted to the positioning server, and the positioning server completes the positioning of the positioning terminal.
本实施例中的定位终端可以是指由提供定位服务的厂商生产或授权生产的终端设备,该终端设备可以以单独的终端产品的形式存在,也可以通过软件服务的形式集成在其他终端产品如手机、平板电脑、可穿戴设备等设备 中,本实施例对定位终端的产品形态或类型不作限定。The positioning terminal in this embodiment may refer to a terminal device produced or authorized to produce by a manufacturer that provides positioning services. The terminal device may exist in the form of a separate terminal product, or it may be integrated in other terminal products in the form of a software service. Among devices such as mobile phones, tablet computers, and wearable devices, this embodiment does not limit the product form or type of the positioning terminal.
通常,部分未经授权的终端设备可以通过伪装成已授权的终端设备的方式去访问定位服务器,从而完成定位。但使用这类未经授权的终端设备容易给用户带来一些风险,同时还会影响提供定位服务的厂商的实际权益。Generally, some unauthorized terminal devices can access the positioning server by pretending to be authorized terminal devices to complete positioning. However, the use of such unauthorized terminal equipment is likely to bring some risks to users, and it will also affect the actual rights and interests of vendors that provide location services.
因此,为了维护提供定位服务的厂商的实际权益,保障用户使用定位终端的安全性,本实施例可以通过验证定位终端是否属于已授权设备的方式来确定是否可以向该终端设备提供定位服务。Therefore, in order to maintain the actual rights and interests of manufacturers that provide positioning services and ensure the safety of users using positioning terminals, this embodiment can determine whether the terminal device can provide positioning services by verifying whether the positioning terminal is an authorized device.
在具体实现中,当定位终端通过与定位服务器之间的交互来实现定位时,可以首先获取定位终端自身的设备信息,然后通过预先设定的加密方式对设备信息进行加密,获得第一加密数据。上述第一加密数据在被传输至定位服务器后,由定位服务器对该定位终端的身份进行验证,从而决定是否可以向该定位终端提供定位服务。In specific implementation, when the positioning terminal realizes positioning through interaction with the positioning server, it can first obtain the device information of the positioning terminal itself, and then encrypt the device information through a preset encryption method to obtain the first encrypted data . After the above-mentioned first encrypted data is transmitted to the positioning server, the positioning server verifies the identity of the positioning terminal, thereby determining whether the positioning service can be provided to the positioning terminal.
在本实施例中,定位终端的设备信息可以包括该设备自身的设备ID,上述设备ID可以在出厂前由厂商预先分配获得。具有由厂商分配的设备ID的定位终端可以看作是经过授权的设备。In this embodiment, the device information of the positioning terminal may include the device ID of the device itself, and the device ID may be pre-allocated by the manufacturer before leaving the factory. The positioning terminal with the device ID assigned by the manufacturer can be regarded as an authorized device.
因此,在对定位终端的设备信息进行处理时,可以首先获取定位终端的设备ID,然后再读取预先配置的设备信息加密密钥,采用设备信息加密密钥对设备ID进行加密,获得第一加密数据。Therefore, when processing the device information of the positioning terminal, you can first obtain the device ID of the positioning terminal, and then read the pre-configured device information encryption key, and use the device information encryption key to encrypt the device ID to obtain the first Encrypt data.
需要说明的是,设备信息加密密钥可以是预先为定位终端配置的,用于对设备ID等设备信息进行加密的密钥。通常,加密密钥和解密密钥应当是成对出现的,本实施例中的设备信息加密密钥可以存储于定位终端中,而相应的设备信息解密密钥可以存储于定位服务器中。It should be noted that the device information encryption key may be a key configured in advance for the positioning terminal and used to encrypt device information such as a device ID. Generally, the encryption key and the decryption key should appear as a pair. The device information encryption key in this embodiment can be stored in the positioning terminal, and the corresponding device information decryption key can be stored in the positioning server.
S102、采集定位数据,对所述定位数据进行加密,获得第二加密数据;S102. Collect positioning data, encrypt the positioning data, and obtain second encrypted data;
定位终端可以采集定位数据,如周围环境中蓝牙、Wi-Fi、RSSI、MAC、信道、频率等数据,这些数据在传输至服务器后,可以用于确定定位终端当前的具体位置。The positioning terminal can collect positioning data, such as Bluetooth, Wi-Fi, RSSI, MAC, channel, frequency and other data in the surrounding environment. These data can be used to determine the current specific location of the positioning terminal after being transmitted to the server.
在本实施例中,为了保证定位数据传输的安全性,定位终端在采集到定位数据后,可以按照预设的加密方式对这些数据进行加密,获得待传输的第 二加密数据。In this embodiment, in order to ensure the security of positioning data transmission, after the positioning terminal collects the positioning data, the data can be encrypted according to a preset encryption method to obtain the second encrypted data to be transmitted.
通常,定位终端采集的数据可以包括多种,但并非采集到的全部数据均可以用于后续的定位。例如,由于信号强度的问题,可能最终采集得到的某些数据存在明显的误差,另一些数据则可能由于存在一定的缺失值也不适于用于后续的定位。因此,定位终端在采集到定位数据后,可以首先识别这些定位数据中待传输的目标定位数据,这些目标定位数据可以包括数据量适中且没有明显的缺失值或错误值的数据。然后再读取预先配置的定位数据加密密钥,采用定位数据加密密钥对目标定位数据进行加密,获得第二加密数据。Generally, the data collected by the positioning terminal can include multiple types, but not all the collected data can be used for subsequent positioning. For example, due to signal strength issues, some of the final collected data may have obvious errors, and other data may not be suitable for subsequent positioning due to certain missing values. Therefore, after the positioning terminal collects the positioning data, it can first identify the target positioning data to be transmitted among the positioning data. The target positioning data may include data with a moderate amount of data and no obvious missing or incorrect values. Then read the pre-configured location data encryption key, and use the location data encryption key to encrypt the target location data to obtain the second encrypted data.
需要说明的是,与设备信息加密密钥类似,定位数据加密密钥也可以是预先为定位终端配置的,用于对定位数据进行加密的密钥。定位数据加密密钥可以存储于定位终端中,而相应的定位数据解密密钥可以存储于定位服务器中。It should be noted that, similar to the device information encryption key, the location data encryption key may also be a key configured for the location terminal in advance and used to encrypt the location data. The location data encryption key can be stored in the location terminal, and the corresponding location data decryption key can be stored in the location server.
本实施例通过从采集到的定位数据中识别出可以目标定位数据,减少了需要传输的数据量,降低了定位服务器端对定位数据的处理压力。In this embodiment, by identifying target positioning data from the collected positioning data, the amount of data that needs to be transmitted is reduced, and the pressure of processing positioning data on the positioning server is reduced.
S103、将所述第一加密数据和所述第二加密数据封装为定位数据包;S103. Encapsulate the first encrypted data and the second encrypted data into a positioning data packet;
如图2所示,是本实施例的定位数据包封装过程示意图。在对设备信息进行加密得到第一加密数据,对定位数据进行加密得到第二加密数据后,定位终端可以按照一定的规则将第一加密数据和第二加密数据封装为定位数据包,用于后续的传输。As shown in Figure 2, it is a schematic diagram of the positioning data packet encapsulation process of this embodiment. After encrypting the device information to obtain the first encrypted data, and encrypting the positioning data to obtain the second encrypted data, the positioning terminal can encapsulate the first encrypted data and the second encrypted data into positioning data packets according to certain rules for subsequent use Transmission.
需要说明的是,对第一加密数据和第二加密数据的封装可以根据实际需要选择相应的封装格式,本实施例对此不作限定。It should be noted that for the encapsulation of the first encrypted data and the second encrypted data, the corresponding encapsulation format can be selected according to actual needs, which is not limited in this embodiment.
S104、将所述定位数据包传输至定位服务器,以通知所述定位服务器对所述定位数据包进行处理,提取出所述设备信息和所述定位数据,并根据所述设备信息和所述定位数据对所述定位终端进行定位。S104. Transmit the positioning data packet to a positioning server to notify the positioning server to process the positioning data packet, extract the device information and the positioning data, and according to the device information and the positioning The data locates the positioning terminal.
在本实施例中,封装得到的定位数据包可以被传输至定位服务器,由服务器对该数据包进行处理,提取出其中的设备信息和定位数据,完成对定位终端的定位。In this embodiment, the encapsulated positioning data packet can be transmitted to the positioning server, and the server processes the data packet, extracts the device information and positioning data therein, and completes the positioning of the positioning terminal.
为了进一步保证数据传输过程的安全性,本实施例在进行定位数据包的 传输前,还可以读取预先配置的数据包加密密钥,然后采用数据包加密密钥对定位数据包进行加密,再将加密后的定位数据包传输至定位服务器。In order to further ensure the security of the data transmission process, this embodiment can also read the pre-configured data packet encryption key before transmitting the positioning data packet, and then use the data packet encryption key to encrypt the positioning data packet, and then The encrypted positioning data packet is transmitted to the positioning server.
需要说明的是,本实施例中的设备信息加密密钥、定位数据加密密钥和数据包加密密钥可以是不相同的,这三种加密密钥均可以预先配置于定位终端中,用于对不同的数据进行加密。相应地,与三种加密密钥对应的解密密钥可以存储于定位服务器中,待定位服务器接收到定位终端传输的数据后,采用解密密钥进行解密,然后提取出用于定位的设备信息和定位数据。It should be noted that the device information encryption key, location data encryption key, and data packet encryption key in this embodiment may be different, and all three encryption keys can be pre-configured in the positioning terminal for use in Encrypt different data. Correspondingly, the decryption keys corresponding to the three types of encryption keys can be stored in the positioning server. After the positioning server receives the data transmitted by the positioning terminal, it uses the decryption key to decrypt it, and then extracts the device information and information used for positioning. Positioning data.
在本实施例中,定位服务器在依据设备信息和定位数据对定位终端进行定位时,可以首先根据设备信息验证当前需要定位的定位终端是否为授权终端,如果是,则继续采用定位数据对该终端进行定位。如果定位服务器根据设备信息识别出当前的定位终端并未授权终端,则可以拒绝为该终端提供定位服务。In this embodiment, when the positioning server locates the positioning terminal based on the device information and positioning data, it can first verify whether the positioning terminal currently needs to be positioned is an authorized terminal according to the device information, and if so, continue to use the positioning data for the terminal Positioning. If the positioning server recognizes that the current positioning terminal does not authorize the terminal according to the device information, it may refuse to provide positioning services for the terminal.
在本申请实施例中,通过在获取定位终端的设备信息并采集到定位数据后,分别对上述设备信息和定位数据进行加密,然后将加密后的数据封装成定位数据包,再传输至定位服务器进行定位,可以保证数据传输的安全性,防止数据被他人窃取盗用,降低了用户隐私泄露的可能性。另一方面,本实施例在传输定位数据时,还将自身的设备信息一并传输至定位服务器,定位服务器可以根据该设备信息识别出当前进行定位的终端是否为授权终端,降低了非授权终端通过伪装成授权终端的方式非法盗用定位服务的可能,提高了定位终端数据交互的安全性与私密性。In the embodiment of this application, after acquiring the device information of the positioning terminal and collecting the positioning data, the above-mentioned device information and positioning data are respectively encrypted, and then the encrypted data is encapsulated into a positioning data packet, and then transmitted to the positioning server Positioning can ensure the security of data transmission, prevent data from being stolen and misappropriated by others, and reduce the possibility of user privacy leakage. On the other hand, when transmitting positioning data, this embodiment also transmits its own device information to the positioning server. The positioning server can identify whether the current positioning terminal is an authorized terminal based on the device information, which reduces unauthorized terminals. The possibility of illegally embezzling the location service by disguising as an authorized terminal improves the security and privacy of the data interaction of the location terminal.
参照图3,示出了本申请一个实施例的另一种定位数据处理方法的步骤流程示意图,具体可以包括如下步骤:Referring to FIG. 3, there is shown a schematic flow diagram of the steps of another positioning data processing method according to an embodiment of the present application, which may specifically include the following steps:
S301、接收定位终端传输的定位数据包;S301: Receive a positioning data packet transmitted by a positioning terminal;
需要说明的是,本方法可以应用于定位服务器,本实施例的执行主体为定位服务器。即,本实施例是从定位服务器侧对本方法进行的介绍。It should be noted that this method can be applied to a positioning server, and the execution subject of this embodiment is the positioning server. That is, this embodiment introduces the method from the side of the positioning server.
在本实施例中,定位数据包可以是由定位终端传输至定位服务器的。定位终端在需要进行定位时,可以采集周围的定位数据,并对定位数据进行加 密,然后传输至定位服务器。In this embodiment, the positioning data packet may be transmitted from the positioning terminal to the positioning server. When the positioning terminal needs to perform positioning, it can collect the surrounding positioning data, encrypt the positioning data, and then transmit it to the positioning server.
需要说明的是,为了防止未经授权的终端通过伪装成授权终端来非法使用定位服务,定位服务器可以指示定位终端在传输定位数据时,一并将自身的设备信息传输至定位服务器,用于验证该定位终端是否已被授权可以使用当前的定位服务。It should be noted that in order to prevent unauthorized terminals from using location services illegally by pretending to be authorized terminals, the location server can instruct the location terminal to transmit its own device information to the location server for verification when transmitting location data. Whether the positioning terminal has been authorized to use the current positioning service.
因此,在本实施例中,定位数据包可以包括定位终端的设备信息以及该终端采集的定位数据。Therefore, in this embodiment, the positioning data packet may include the device information of the positioning terminal and the positioning data collected by the terminal.
S302、提取所述定位数据包中的第一加密数据和第二加密数据;S302. Extract the first encrypted data and the second encrypted data in the positioning data packet.
在本实施例,为了保证传输的数据安全性,定位终端可以分别对自身的设备信息和定位数据进行加密,生成第一加密数据和第二加密数据,然后将上述第一加密数据和第二加密数据封装成定位数据包,再传输至定位服务器。In this embodiment, in order to ensure the security of the transmitted data, the positioning terminal can respectively encrypt its own device information and positioning data to generate the first encrypted data and the second encrypted data, and then encrypt the first encrypted data and the second encrypted data. The data is encapsulated into positioning data packets, and then transmitted to the positioning server.
定位终端对自身的设备信息和定位数据进行加密的过程可以参见前述实施例的介绍,本实施例对此不再赘述。For the process of the positioning terminal encrypting its own device information and positioning data, reference may be made to the introduction of the foregoing embodiment, which will not be repeated in this embodiment.
因此,定位服务器在接收到定位终端传输的定位数据包后,可以首先从定位数据包中提取出第一加密数据和第二加密数据,然后通过对第一加密数据和第二加密数据进行解密,得到定位终端的设备信息和用于定位的定位数据。Therefore, after receiving the positioning data packet transmitted by the positioning terminal, the positioning server can first extract the first encrypted data and the second encrypted data from the positioning data packet, and then decrypt the first encrypted data and the second encrypted data, Obtain the device information of the positioning terminal and the positioning data used for positioning.
在本实施例中,定位终端在对第一加密数据和第二加密数据进行封装时,也可以对其进行再次加密。即,本实施例中的定位数据包可以是采用预设的数据包加密密钥进行加密的数据包。In this embodiment, when the positioning terminal encapsulates the first encrypted data and the second encrypted data, they may also be encrypted again. That is, the positioning data packet in this embodiment may be a data packet encrypted by using a preset data packet encryption key.
因此,在从定位数据包中提取第一加密数据和第二加密数据时,定位服务器可以首先确定与数据包加密密钥相对应的数据包解密密钥,然后再采用数据包解密密钥对定位数据包进行解密,从解密后的定位数据包中提取出第一加密数据和第二加密数据。Therefore, when extracting the first encrypted data and the second encrypted data from the positioning data packet, the positioning server can first determine the data packet decryption key corresponding to the data packet encryption key, and then use the data packet decryption key to locate The data packet is decrypted, and the first encrypted data and the second encrypted data are extracted from the decrypted positioning data packet.
S303、分别对所述第一加密数据和所述第二加密数据进行解密,获得所述定位终端的设备信息和定位数据;S303. Decrypt the first encrypted data and the second encrypted data respectively to obtain device information and positioning data of the positioning terminal;
定位服务器在对第一加密数据和第二加密数据进行解密时,可以首先确 定与与设备信息加密密钥相对应的设备信息解密密钥,以及,与定位数据加密密钥相对应的定位数据解密密钥。上述设备信息加密密钥可以是对定位终端的设备信息进行加密的密钥,而定位数据加密密钥则是对定位终端采集的定位数据进行加密的密钥。When the positioning server decrypts the first encrypted data and the second encrypted data, it may first determine the device information decryption key corresponding to the device information encryption key, and the positioning data decryption key corresponding to the location data encryption key Key. The above-mentioned device information encryption key may be a key for encrypting the device information of the positioning terminal, and the positioning data encryption key is a key for encrypting the positioning data collected by the positioning terminal.
设备信息加密密钥与设备信息解密密钥,定位数据加密密钥与定位数据解密密钥应当是对应的。在定位终端出厂前,可以将设备信息加密密钥越定位数据加密密钥存储于定位终端中,同时,上述两种加密密钥对应的解密密钥可以被存储至定位服务器中,以用于对经上述两种加密密钥进行加密后的数据的解密。The device information encryption key and the device information decryption key, and the location data encryption key and location data decryption key should correspond. Before the positioning terminal leaves the factory, the device information encryption key and the positioning data encryption key can be stored in the positioning terminal. At the same time, the decryption keys corresponding to the above two types of encryption keys can be stored in the positioning server for verification. The encrypted data is decrypted by the above two encryption keys.
如图4所示,是本申请的定位数据包解密过程示意图。定位服务器在从定位数据包中提取出第一加密数据和第二加密数据后,可以首先采用设备信息解密密钥对第一加密数据进行解密,获得定位终端的设备信息,然后识别该定位终端是否为目标定位终端,本实施例中的目标定位终端可以是指获得定位服务器授权的定位终端。As shown in Figure 4, it is a schematic diagram of the decryption process of the positioning data packet of the present application. After the positioning server extracts the first encrypted data and the second encrypted data from the positioning data packet, it can first decrypt the first encrypted data with the device information decryption key to obtain the device information of the positioning terminal, and then identify whether the positioning terminal is As a target positioning terminal, the target positioning terminal in this embodiment may refer to a positioning terminal authorized by a positioning server.
在本实施例中,定位终端的设备信息可以包括该终端的设备ID,任一定位终端的设备ID可以是唯一的。对于获得服务器授权的定位终端,其设备ID可以通过定位服务器中的设备信息数据库进程存储。In this embodiment, the device information of the positioning terminal may include the device ID of the terminal, and the device ID of any positioning terminal may be unique. For the positioning terminal authorized by the server, its device ID can be stored through the device information database process in the positioning server.
因此,在识别某一定位终端是否为授权终端时,可以在预设的设备信息数据库中查找该定位终端的设备ID,若查找到该定位终端的设备ID,则可以判定这一个定位终端为获得授权的目标定位终端。Therefore, when identifying whether a certain positioning terminal is an authorized terminal, the device ID of the positioning terminal can be searched in the preset device information database. If the device ID of the positioning terminal is found, then it can be determined that the positioning terminal is obtained. Authorized target location terminal.
对于目标定位终端,由于其已经获得了服务器的授权,可以使用定位服务器提供的定位服务,此时,定位服务器可以采用定位数据解密密钥对第二加密数据进行解密,获得定位终端采集的定位数据。For the target positioning terminal, since it has been authorized by the server, it can use the positioning service provided by the positioning server. At this time, the positioning server can use the positioning data decryption key to decrypt the second encrypted data to obtain the positioning data collected by the positioning terminal .
若经识别,某一定位终端并非已获得授权的目标定位终端,定位服务器则无需对第二加密数据进行解密。If it is identified that a certain positioning terminal is not an authorized target positioning terminal, the positioning server does not need to decrypt the second encrypted data.
S304、根据所述设备信息和所述定位数据,对所述定位终端进行定位。S304. Position the positioning terminal according to the device information and the positioning data.
在本申请实施例中,通过指示定位终端在传输定位数据时,将自身的设备进行一并传输至定位服务器,使得定位服务器可以根据设备信息验证当前 的定位终端是否为授权终端,解决了未经授权的终端设备通过伪装成授权终端非法盗用定位服务器提供的定位服务的问题。同时,通过定位终端对定位数据进行加密,然后再传输至定位服务器,保证了数据传输的安全性。In the embodiment of the present application, by instructing the positioning terminal to transmit its own equipment to the positioning server when transmitting positioning data, the positioning server can verify whether the current positioning terminal is an authorized terminal according to the device information, which solves the problem of unauthorized access. Authorized terminal equipment pretends to be an authorized terminal to illegally steal the location service provided by the location server. At the same time, the positioning data is encrypted by the positioning terminal and then transmitted to the positioning server to ensure the security of data transmission.
需要说明的是,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。另外,上述各个实施例分别是从定位终端侧和定位服务器侧来对本方法进行的介绍,部分细节可以互相参阅。It should be noted that the size of the sequence number of each step in the above embodiment does not mean the sequence of execution. The execution sequence of each process should be determined by its function and inherent logic, and should not constitute any implementation process of the embodiments of this application. limited. In addition, each of the above embodiments introduces the method from the side of the positioning terminal and the side of the positioning server, and some details can be referred to each other.
参照图5,示出了本申请一个实施例的一种定位数据处理装置的示意图,所述定位数据装置可以应用于定位终端,具体可以包括如下模块:Referring to FIG. 5, a schematic diagram of a positioning data processing device according to an embodiment of the present application is shown. The positioning data device may be applied to a positioning terminal, and may specifically include the following modules:
设备信息加密模块501,用于获取定位终端的设备信息,对所述设备信息进行加密,获得第一加密数据;The device information encryption module 501 is configured to obtain device information of the positioning terminal, encrypt the device information, and obtain first encrypted data;
定位数据加密模块502,用于采集定位数据,对所述定位数据进行加密,获得第二加密数据;The positioning data encryption module 502 is configured to collect positioning data, encrypt the positioning data, and obtain second encrypted data;
定位数据包封装模块503,用于将所述第一加密数据和所述第二加密数据封装为定位数据包;A location data packet encapsulation module 503, configured to encapsulate the first encrypted data and the second encrypted data into a location data packet;
定位数据包传输模块504,用于将所述定位数据包传输至定位服务器,以通知所述定位服务器对所述定位数据包进行处理,提取出所述设备信息和所述定位数据,并根据所述设备信息和所述定位数据对所述定位终端进行定位。The positioning data packet transmission module 504 is configured to transmit the positioning data packet to a positioning server to notify the positioning server to process the positioning data packet, extract the device information and the positioning data, and perform the The device information and the positioning data position the positioning terminal.
在本申请实施例中,所述设备信息可以包括设备ID,所述设备信息加密模块501具体可以包括如下子模块:In the embodiment of the present application, the device information may include a device ID, and the device information encryption module 501 may specifically include the following sub-modules:
设备ID获取子模块,用于获取定位终端的设备ID;The device ID obtaining sub-module is used to obtain the device ID of the positioning terminal;
设备ID加密子模块,用于读取预先配置的设备信息加密密钥,采用所述设备信息加密密钥对所述设备ID进行加密,获得第一加密数据。The device ID encryption sub-module is used to read a pre-configured device information encryption key, and use the device information encryption key to encrypt the device ID to obtain first encrypted data.
在本申请实施例中,所述定位数据加密模块502具体可以包括如下子模块:In the embodiment of the present application, the positioning data encryption module 502 may specifically include the following sub-modules:
目标定位数据识别子模块,用于采集定位数据,识别所述定位数据中待 传输的目标定位数据;The target positioning data identification sub-module is used to collect positioning data and identify the target positioning data to be transmitted in the positioning data;
目标定位数据加密子模块,用于读取预先配置的定位数据加密密钥,采用所述定位数据加密密钥对所述目标定位数据进行加密,获得第二加密数据。The target positioning data encryption sub-module is used to read a pre-configured positioning data encryption key, and use the positioning data encryption key to encrypt the target positioning data to obtain second encrypted data.
在本申请实施例中,所述定位数据包传输模块504具体可以包括如下子模块:In the embodiment of the present application, the positioning data packet transmission module 504 may specifically include the following sub-modules:
定位数据包加密子模块,用于读取预先配置的数据包加密密钥,采用所述数据包加密密钥对所述定位数据包进行加密;The location data packet encryption sub-module is used to read a pre-configured data packet encryption key, and use the data packet encryption key to encrypt the location data packet;
定位数据包传输子模块,用于将加密后的所述定位数据包传输至定位服务器。The positioning data packet transmission sub-module is used to transmit the encrypted positioning data packet to the positioning server.
参照图6,示出了本申请一个实施例的另一种定位数据处理装置的示意图,所述定位数据装置可以应用于定位服务器,具体可以包括如下模块:Referring to FIG. 6, there is shown a schematic diagram of another positioning data processing apparatus according to an embodiment of the present application. The positioning data apparatus may be applied to a positioning server, and may specifically include the following modules:
定位数据包接收模块601,用于接收定位终端传输的定位数据包;The positioning data packet receiving module 601 is configured to receive the positioning data packet transmitted by the positioning terminal;
加密数据提取模块602,用于提取所述定位数据包中的第一加密数据和第二加密数据;The encrypted data extraction module 602 is configured to extract the first encrypted data and the second encrypted data in the positioning data packet;
加密数据解密模块603,用于分别对所述第一加密数据和所述第二加密数据进行解密,获得所述定位终端的设备信息和定位数据;The encrypted data decryption module 603 is configured to decrypt the first encrypted data and the second encrypted data respectively to obtain the device information and positioning data of the positioning terminal;
定位模块604,用于根据所述设备信息和所述定位数据,对所述定位终端进行定位。The positioning module 604 is configured to position the positioning terminal according to the device information and the positioning data.
在本申请实施例中,所述定位数据包可以为采用预设的数据包加密密钥进行加密的数据包,所述加密数据提取模块602具体可以包括如下子模块:In the embodiment of the present application, the location data packet may be a data packet encrypted using a preset data packet encryption key, and the encrypted data extraction module 602 may specifically include the following sub-modules:
数据包解密密钥确定子模块,用于确定与所述数据包加密密钥相对应的数据包解密密钥;A data packet decryption key determining sub-module, which is used to determine a data packet decryption key corresponding to the data packet encryption key;
数据包解密子模块,用于采用所述数据包解密密钥对所述定位数据包进行解密;A data packet decryption sub-module for decrypting the positioning data packet by using the data packet decryption key;
加密数据提取子模块,用于从解密后的定位数据包中提取出所述第一加密数据和所述第二加密数据。The encrypted data extraction sub-module is used to extract the first encrypted data and the second encrypted data from the decrypted positioning data packet.
在本申请实施例中,所述加密数据解密模块603具体可以包括如下子模块:In the embodiment of the present application, the encrypted data decryption module 603 may specifically include the following submodules:
解密密钥确定子模块,用于确定与设备信息加密密钥相对应的设备信息解密密钥,以及,确定与定位数据加密密钥相对应的定位数据解密密钥;其中,所述设备信息加密密钥为对所述定位终端的设备信息进行加密的密钥,所述定位数据加密密钥为对所述定位终端采集的定位数据进行加密的密钥;The decryption key determination sub-module is used to determine the device information decryption key corresponding to the device information encryption key, and to determine the location data decryption key corresponding to the location data encryption key; wherein the device information is encrypted The key is a key for encrypting the device information of the positioning terminal, and the positioning data encryption key is a key for encrypting the positioning data collected by the positioning terminal;
第一解密子模块,用于采用所述设备信息解密密钥对所述第一加密数据进行解密,获得所述定位终端的设备信息;The first decryption submodule is configured to decrypt the first encrypted data using the device information decryption key to obtain device information of the positioning terminal;
目标定位终端识别子模块,用于识别所述定位终端是否为目标定位终端,所述目标定位终端为获得所述定位服务器授权的定位终端;The target positioning terminal identification sub-module is used to identify whether the positioning terminal is a target positioning terminal, and the target positioning terminal is a positioning terminal authorized by the positioning server;
第二解密子模块,用于若所述定位终端为目标定位终端,则采用所述定位数据解密密钥对所述第二加密数据进行解密,获得所述定位终端采集的定位数据。The second decryption submodule is configured to, if the positioning terminal is a target positioning terminal, decrypt the second encrypted data using the positioning data decryption key to obtain the positioning data collected by the positioning terminal.
在本申请实施例中,所述设备信息可以包括设备ID,所述目标定位终端识别子模块具体可以包括如下单元:In the embodiment of the present application, the device information may include a device ID, and the target positioning terminal identification sub-module may specifically include the following units:
设备ID查找单元,用于在预设的设备信息数据库中查找所述定位终端的设备ID;The device ID searching unit is used for searching the device ID of the positioning terminal in a preset device information database;
目标定位终端判定单元,用于若查找到所述定位终端的设备ID,则判定所述定位终端为目标定位终端。The target positioning terminal determining unit is configured to determine that the positioning terminal is a target positioning terminal if the device ID of the positioning terminal is found.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述得比较简单,相关之处参见方法实施例部分的说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the description of the method embodiment.
参照图7,示出了本申请一个实施例的一种定位终端的示意图。如图7所示,本实施例的定位终端700包括:处理器710、存储器720以及存储在所述存储器720中并可在所述处理器710上运行的计算机程序721。所述处理器710执行所述计算机程序721时实现上述数据处理方法各个实施例中的步骤,例如图1所示的步骤S101至S104。或者,所述处理器710执行所述计算机程序721时实现上述各装置实施例中各模块/单元的功能,例如图5 所示模块501至504的功能。Referring to FIG. 7, a schematic diagram of a positioning terminal according to an embodiment of the present application is shown. As shown in FIG. 7, the positioning terminal 700 of this embodiment includes: a processor 710, a memory 720, and a computer program 721 stored in the memory 720 and running on the processor 710. When the processor 710 executes the computer program 721, the steps in each embodiment of the foregoing data processing method are implemented, for example, steps S101 to S104 shown in FIG. 1. Alternatively, when the processor 710 executes the computer program 721, the functions of the modules/units in the foregoing device embodiments are implemented, for example, the functions of the modules 501 to 504 shown in FIG. 5.
示例性的,所述计算机程序721可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器720中,并由所述处理器710执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段可以用于描述所述计算机程序721在所述定位终端700中的执行过程。例如,所述计算机程序721可以被分割成设备信息加密模块、定位数据加密模块、定位数据包封装模块和定位数据包传输模块,各模块具体功能如下:Exemplarily, the computer program 721 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 720 and executed by the processor 710 to complete This application. The one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments may be used to describe the execution process of the computer program 721 in the positioning terminal 700. For example, the computer program 721 can be divided into a device information encryption module, a location data encryption module, a location data packet encapsulation module, and a location data packet transmission module. The specific functions of each module are as follows:
设备信息加密模块,用于获取定位终端的设备信息,对所述设备信息进行加密,获得第一加密数据;The device information encryption module is used to obtain device information of the positioning terminal, encrypt the device information, and obtain the first encrypted data;
定位数据加密模块,用于采集定位数据,对所述定位数据进行加密,获得第二加密数据;The positioning data encryption module is used to collect positioning data, encrypt the positioning data, and obtain second encrypted data;
定位数据包封装模块,用于将所述第一加密数据和所述第二加密数据封装为定位数据包;A positioning data packet encapsulation module, configured to encapsulate the first encrypted data and the second encrypted data into a positioning data packet;
定位数据包传输模块,用于将所述定位数据包传输至定位服务器,以通知所述定位服务器对所述定位数据包进行处理,提取出所述设备信息和所述定位数据,并根据所述设备信息和所述定位数据对所述定位终端进行定位。The positioning data packet transmission module is used to transmit the positioning data packet to the positioning server to notify the positioning server to process the positioning data packet, extract the device information and the positioning data, and according to the The device information and the positioning data position the positioning terminal.
所述定位终端700可以是桌上型计算机、笔记本、掌上电脑等计算设备。所述定位终端700可包括,但不仅限于,处理器710、存储器720。本领域技术人员可以理解,图7仅仅是定位终端700的一种示例,并不构成对定位终端700的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述定位终端700还可以包括输入输出设备、网络接入设备、总线等。The positioning terminal 700 may be a computing device such as a desktop computer, a notebook, or a palmtop computer. The positioning terminal 700 may include, but is not limited to, a processor 710 and a memory 720. Those skilled in the art can understand that FIG. 7 is only an example of the positioning terminal 700, and does not constitute a limitation on the positioning terminal 700. It may include more or less components than shown in the figure, or combine certain components, or different For example, the positioning terminal 700 may also include input and output devices, network access devices, buses, and so on.
所述处理器710可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器 或者该处理器也可以是任何常规的处理器等。The processor 710 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (ASIC), Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
所述存储器720可以是所述定位终端700的内部存储单元,例如定位终端700的硬盘或内存。所述存储器720也可以是所述定位终端700的外部存储设备,例如所述定位终端700上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等等。进一步地,所述存储器720还可以既包括所述定位终端700的内部存储单元也包括外部存储设备。所述存储器720用于存储所述计算机程序721以及所述定位终端700所需的其他程序和数据。所述存储器720还可以用于暂时地存储已经输出或者将要输出的数据。The memory 720 may be an internal storage unit of the positioning terminal 700, such as a hard disk or a memory of the positioning terminal 700. The memory 720 may also be an external storage device of the positioning terminal 700, such as a plug-in hard disk equipped on the positioning terminal 700, a smart media card (SMC), or a secure digital (SD) Card, Flash Card, etc. Further, the memory 720 may also include both an internal storage unit of the positioning terminal 700 and an external storage device. The memory 720 is used to store the computer program 721 and other programs and data required by the positioning terminal 700. The memory 720 can also be used to temporarily store data that has been output or will be output.
本实施例还公开了一种定位服务器,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述定位服务器侧的定位数据处理方法。This embodiment also discloses a positioning server, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, the computer-readable storage medium stores the computer program, and When the computer program is executed by the processor, the positioning data processing method on the positioning server side is realized.
本实施例还公开了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被定位服务器的处理器执行时实现上述定位服务器侧的定位数据处理方法。This embodiment also discloses a computer-readable storage medium that stores a computer program that, when executed by a processor of the positioning server, implements the positioning data processing method on the positioning server side.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制。尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solution of the present application, but not to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or equivalently replace some of the technical features; and these Modification or replacement does not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims (10)

  1. 一种定位数据处理方法,其特征在于,应用于定位终端,所述定位数据处理方法包括:A positioning data processing method, characterized in that it is applied to a positioning terminal, and the positioning data processing method includes:
    获取定位终端的设备信息,对所述设备信息进行加密,获得第一加密数据;Obtaining device information of the positioning terminal, encrypting the device information, and obtaining first encrypted data;
    采集定位数据,对所述定位数据进行加密,获得第二加密数据;Collecting positioning data, encrypting the positioning data, and obtaining second encrypted data;
    将所述第一加密数据和所述第二加密数据封装为定位数据包;Encapsulating the first encrypted data and the second encrypted data into a positioning data packet;
    将所述定位数据包传输至定位服务器,以通知所述定位服务器对所述定位数据包进行处理,提取出所述设备信息和所述定位数据,并根据所述设备信息和所述定位数据对所述定位终端进行定位。The positioning data packet is transmitted to the positioning server to notify the positioning server to process the positioning data packet, extract the device information and the positioning data, and pair according to the device information and the positioning data The positioning terminal performs positioning.
  2. 根据权利要求1所述的定位数据处理方法,其特征在于,所述设备信息包括设备ID,所述获取定位终端的设备信息,对所述定位信息进行加密,获得第一加密数据,包括:The positioning data processing method according to claim 1, wherein the device information includes a device ID, and the obtaining device information of the positioning terminal, encrypting the positioning information to obtain the first encrypted data, comprises:
    获取定位终端的设备ID;Obtain the device ID of the positioning terminal;
    读取预先配置的设备信息加密密钥,采用所述设备信息加密密钥对所述设备ID进行加密,获得第一加密数据。Read the pre-configured device information encryption key, and use the device information encryption key to encrypt the device ID to obtain the first encrypted data.
  3. 根据权利要求2所述的定位数据处理方法,其特征在于,所述采集定位数据,对所述定位数据进行加密,获得第二加密数据,包括:The positioning data processing method according to claim 2, wherein the collecting positioning data and encrypting the positioning data to obtain the second encrypted data comprises:
    采集定位数据,识别所述定位数据中待传输的目标定位数据;Collecting positioning data, and identifying target positioning data to be transmitted in the positioning data;
    读取预先配置的定位数据加密密钥,采用所述定位数据加密密钥对所述目标定位数据进行加密,获得第二加密数据。Read the pre-configured location data encryption key, and use the location data encryption key to encrypt the target location data to obtain second encrypted data.
  4. 根据权利要求1-3任一所述的定位数据处理方法,其特征在于,所述将所述定位数据包传输至定位服务器,包括:The positioning data processing method according to any one of claims 1-3, wherein the transmitting the positioning data packet to a positioning server comprises:
    读取预先配置的数据包加密密钥,采用所述数据包加密密钥对所述定位数据包进行加密;Read a pre-configured data packet encryption key, and use the data packet encryption key to encrypt the location data packet;
    将加密后的所述定位数据包传输至定位服务器。The encrypted positioning data packet is transmitted to the positioning server.
  5. 一种定位数据处理方法,其特征在于,应用于定位服务器,所述定位数据处理方法包括:A positioning data processing method, characterized in that it is applied to a positioning server, and the positioning data processing method includes:
    接收定位终端传输的定位数据包;Receive the positioning data packet transmitted by the positioning terminal;
    提取所述定位数据包中的第一加密数据和第二加密数据;Extracting the first encrypted data and the second encrypted data in the positioning data packet;
    分别对所述第一加密数据和所述第二加密数据进行解密,获得所述定位终端的设备信息和定位数据;Respectively decrypt the first encrypted data and the second encrypted data to obtain the device information and positioning data of the positioning terminal;
    根据所述设备信息和所述定位数据,对所述定位终端进行定位。Position the positioning terminal according to the device information and the positioning data.
  6. 根据权利要求5所述的定位数据处理方法,其特征在于,所述定位数据包为采用预设的数据包加密密钥进行加密的数据包,所述提取所述定位数据包中的第一加密数据和第二加密数据,包括:The positioning data processing method according to claim 5, wherein the positioning data packet is a data packet encrypted using a preset data packet encryption key, and the first encryption in the positioning data packet is extracted Data and second encrypted data, including:
    确定与所述数据包加密密钥相对应的数据包解密密钥;Determining a data packet decryption key corresponding to the data packet encryption key;
    采用所述数据包解密密钥对所述定位数据包进行解密;Decrypt the positioning data packet by using the data packet decryption key;
    从解密后的定位数据包中提取出所述第一加密数据和所述第二加密数据。The first encrypted data and the second encrypted data are extracted from the decrypted positioning data packet.
  7. 根据权利要求5所述的定位数据处理方法,其特征在于,所述分别对所述第一加密数据和所述第二加密数据进行解密,获得所述定位终端的设备信息和定位数据,包括:The positioning data processing method according to claim 5, wherein said decrypting said first encrypted data and said second encrypted data respectively to obtain device information and positioning data of said positioning terminal comprises:
    确定与设备信息加密密钥相对应的设备信息解密密钥,以及,确定与定位数据加密密钥相对应的定位数据解密密钥;其中,所述设备信息加密密钥为对所述定位终端的设备信息进行加密的密钥,所述定位数据加密密钥为对所述定位终端采集的定位数据进行加密的密钥;Determine the device information decryption key corresponding to the device information encryption key, and determine the location data decryption key corresponding to the location data encryption key; wherein the device information encryption key is for the location terminal A key for encrypting device information, where the positioning data encryption key is a key for encrypting the positioning data collected by the positioning terminal;
    采用所述设备信息解密密钥对所述第一加密数据进行解密,获得所述定位终端的设备信息;Decrypt the first encrypted data by using the device information decryption key to obtain device information of the positioning terminal;
    识别所述定位终端是否为目标定位终端,所述目标定位终端为获得所述定位服务器授权的定位终端;Identifying whether the positioning terminal is a target positioning terminal, and the target positioning terminal is a positioning terminal authorized by the positioning server;
    若所述定位终端为目标定位终端,则采用所述定位数据解密密钥对所述第二加密数据进行解密,获得所述定位终端采集的定位数据。If the positioning terminal is a target positioning terminal, the positioning data decryption key is used to decrypt the second encrypted data to obtain the positioning data collected by the positioning terminal.
  8. 根据权利要求7所述的定位数据处理方法,其特征在于,所述设备信息包括设备ID,所述识别所述定位终端是否为目标定位终端,包括:The positioning data processing method according to claim 7, wherein the device information includes a device ID, and the identifying whether the positioning terminal is a target positioning terminal includes:
    在预设的设备信息数据库中查找所述定位终端的设备ID;Searching the device ID of the positioning terminal in a preset device information database;
    若查找到所述定位终端的设备ID,则判定所述定位终端为目标定位终端。If the device ID of the positioning terminal is found, it is determined that the positioning terminal is a target positioning terminal.
  9. 一种定位终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至4任一项所述的定位数据处理方法。A positioning terminal, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program as claimed in claims 1 to 4 Any of the positioning data processing methods.
  10. 一种定位服务器,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求5至8任一项所述的定位数据处理方法。A positioning server, the computer-readable storage medium stores a computer program, wherein the computer program is executed by a processor to implement the positioning data processing method according to any one of claims 5 to 8.
PCT/CN2019/126765 2019-12-12 2019-12-19 Positioning data processing method, terminal to be positioned, and positioning server WO2021114359A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911274075.8 2019-12-12
CN201911274075.8A CN111083693A (en) 2019-12-12 2019-12-12 Positioning data processing method, positioning terminal and positioning server

Publications (1)

Publication Number Publication Date
WO2021114359A1 true WO2021114359A1 (en) 2021-06-17

Family

ID=70314061

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/126765 WO2021114359A1 (en) 2019-12-12 2019-12-19 Positioning data processing method, terminal to be positioned, and positioning server

Country Status (2)

Country Link
CN (1) CN111083693A (en)
WO (1) WO2021114359A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291282A (en) * 2007-04-19 2008-10-22 研华股份有限公司 Information transmission method for terminal device
CN105678474A (en) * 2012-05-31 2016-06-15 国网山东省电力公司青岛供电公司 Mobile operating terminal system having display function
CN106062750A (en) * 2014-03-31 2016-10-26 迈克菲股份有限公司 Provable geo-location
CN106652855A (en) * 2016-12-28 2017-05-10 天津恒达文博科技有限公司 Navigation method for gathering and intensively displaying information
WO2019103212A1 (en) * 2017-11-22 2019-05-31 주식회사 에프에스알엔티 Monitoring system for iot smart terminal in ship using communication network
CN109905425A (en) * 2017-12-08 2019-06-18 华平信息技术股份有限公司 Localization method and system, the intelligent terminal and server of multimedia communication
CN110519755A (en) * 2019-09-05 2019-11-29 北京百度网讯科技有限公司 Localization method, device, electronic equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931888A (en) * 2010-09-01 2010-12-29 华为技术有限公司 Service processing method and device and base station controller
CN103384368B (en) * 2012-05-03 2016-05-04 高德软件有限公司 A kind of mobile terminal location system and method
CN105591742A (en) * 2014-10-22 2016-05-18 上海为臻信息科技有限公司 Data encryption method for mobile phone positioning data and server communication
CN107643508A (en) * 2017-08-25 2018-01-30 重庆慧联无限科技有限公司 Indoor locating system
CN109286892B (en) * 2018-10-11 2021-03-02 上海庆科信息技术有限公司 Employee encryption positioning method and employee positioning system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291282A (en) * 2007-04-19 2008-10-22 研华股份有限公司 Information transmission method for terminal device
CN105678474A (en) * 2012-05-31 2016-06-15 国网山东省电力公司青岛供电公司 Mobile operating terminal system having display function
CN106062750A (en) * 2014-03-31 2016-10-26 迈克菲股份有限公司 Provable geo-location
CN106652855A (en) * 2016-12-28 2017-05-10 天津恒达文博科技有限公司 Navigation method for gathering and intensively displaying information
WO2019103212A1 (en) * 2017-11-22 2019-05-31 주식회사 에프에스알엔티 Monitoring system for iot smart terminal in ship using communication network
CN109905425A (en) * 2017-12-08 2019-06-18 华平信息技术股份有限公司 Localization method and system, the intelligent terminal and server of multimedia communication
CN110519755A (en) * 2019-09-05 2019-11-29 北京百度网讯科技有限公司 Localization method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111083693A (en) 2020-04-28

Similar Documents

Publication Publication Date Title
US11876917B2 (en) Authentication apparatus and method
CN111314274B (en) Vehicle-mounted terminal and center platform bidirectional authentication method and system
WO2015180691A1 (en) Key agreement method and device for verification information
CN101098222B (en) Wireless communication system, wireless communication apparatus, and method of exchanging cryptography key between wireless communication apparatuses
US10033760B2 (en) Secure wireless ranging
CN109862560B (en) Bluetooth authentication method, device, equipment and medium
WO2019184740A1 (en) Data encryption, decryption method and device
CN112823503B (en) Data access method, data access device and mobile terminal
US11159329B2 (en) Collaborative operating system
WO2020186457A1 (en) Authentication method and apparatus for ip camera
CN110598429B (en) Data encryption storage and reading method, terminal equipment and storage medium
WO2022048318A1 (en) Method for establishing communication channel, and user terminal
JP7145916B2 (en) Privacy Secure Edge Zone Computing for Secure Operation Authorization
WO2020078225A1 (en) Key downloading method, client, cryptographic device and terminal device
CN107026730B (en) Data processing method, device and system
CN114095277A (en) Power distribution network secure communication method, secure access device and readable storage medium
CN107437997B (en) Radio frequency communication device and method
WO2021114359A1 (en) Positioning data processing method, terminal to be positioned, and positioning server
CN103514540B (en) A kind of excellent shield service implementation method and system
US9185106B2 (en) Access control method and mobile terminal which employs an access control method
CN107317925B (en) Mobile terminal
CN114692120B (en) National password authentication method, virtual machine, terminal equipment, system and storage medium
CN108882344A (en) A kind of method for network access of wireless device, apparatus and system
WO2015176364A1 (en) Payment method, mobile terminal and subscriber identity module, and computer storage medium
CN114938304A (en) Method and system for safely transmitting data of industrial Internet of things

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 07/11/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19955701

Country of ref document: EP

Kind code of ref document: A1