WO2022193771A1 - 基于位置的服务数据处理方法及装置 - Google Patents

基于位置的服务数据处理方法及装置 Download PDF

Info

Publication number
WO2022193771A1
WO2022193771A1 PCT/CN2021/140850 CN2021140850W WO2022193771A1 WO 2022193771 A1 WO2022193771 A1 WO 2022193771A1 CN 2021140850 W CN2021140850 W CN 2021140850W WO 2022193771 A1 WO2022193771 A1 WO 2022193771A1
Authority
WO
WIPO (PCT)
Prior art keywords
location service
location
address
temporary address
service request
Prior art date
Application number
PCT/CN2021/140850
Other languages
English (en)
French (fr)
Inventor
张作义
Original Assignee
京东科技控股股份有限公司
北京同邦卓益科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 京东科技控股股份有限公司, 北京同邦卓益科技有限公司 filed Critical 京东科技控股股份有限公司
Priority to US18/550,476 priority Critical patent/US20240155350A1/en
Priority to JP2023557103A priority patent/JP2024513712A/ja
Publication of WO2022193771A1 publication Critical patent/WO2022193771A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/63Location-dependent; Proximity-dependent
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y30/00IoT infrastructure
    • G16Y30/10Security thereof
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/50Safety; Security of things, users, data or systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2111Location-sensitive, e.g. geographical location, GPS
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/75Information technology; Communication

Definitions

  • the present application relates to the field of computer technology, and more particularly, to a location-based service data processing method, apparatus, electronic device, and computer-readable storage medium.
  • LBS Location Based Services
  • location-based services are provided for IoT terminals through operating systems represented by IOS and Android.
  • IOS operating systems represented by IOS and Android.
  • the operating system belongs to the privatized operation of some companies, the security of the real address of the IoT terminal cannot be guaranteed.
  • One or more embodiments of the present disclosure provide a location-based service data processing method, apparatus, and electronic device and computer-readable storage medium.
  • one or more embodiments of the present disclosure provide a location-based service data processing method applied to a blockchain, including:
  • the location service request includes the real address, location information, location service request type and location service provider of the IoT terminal;
  • the location service response includes the temporary address, response information generated by the location service provider based on the location information and the location service request type;
  • the use of a smart contract to replace the real address of the IoT terminal in the location service request with a temporary address includes:
  • replacing the temporary address in the location service response with the real address by using the smart contract includes:
  • the temporary address in the location service response is replaced with the real address based on the correspondence recorded in the smart contract.
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the blockchain includes a service node corresponding to the location service provider
  • the sending the replaced location service request to the location service provider includes:
  • the receiving a location service response sent by the location service provider includes:
  • the location service response sent by the location service provider is received by the corresponding service node.
  • the blockchain further includes supervision nodes corresponding to the supervision department;
  • the method further includes:
  • the method further includes:
  • the location service response is sent to the supervisory node.
  • the location service provider includes an operating system.
  • One or more embodiments of the present disclosure provide a location-based service data processing apparatus applied to a blockchain, including:
  • a first receiving module configured to receive a location service request sent by an IoT terminal; wherein, the location service request includes the real address, location information, location service request type and location service provider of the IoT terminal;
  • a first replacement module configured to use a smart contract to replace the real address of the IoT terminal in the location service request with a temporary address, and send the replaced location service request to the location service provider;
  • a second receiving module configured to receive a location service response sent by the location service provider; wherein the location service response includes the temporary address, the location service provider based on the location information and the location service request Type of response information generated;
  • the second replacement module is configured to use the smart contract to replace the temporary address in the location service response with the real address, and send the replaced location service response to the IoT terminal.
  • the processor is configured to implement the steps of the above-mentioned location-based service data processing method when executing the computer program.
  • One or more embodiments of the present disclosure provide a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the above-mentioned location-based service data processing steps of the method.
  • a location-based service data processing method includes: receiving a location service request sent by an IoT terminal; wherein the location service request includes the real address and location information of the IoT terminal. , location service request type and location service provider; use a smart contract to replace the real address of the IoT terminal in the location service request with a temporary address, and send the replaced location service request to the location service provider ; Receive a location service response sent by the location service provider; wherein the location service response includes the temporary address, response information generated by the location service provider based on the location information and the location service request type; Use the smart contract to replace the temporary address in the location service response with the real address, and send the replaced location service response to the IoT terminal.
  • FIG. 1 is a flowchart of a method for processing location-based service data according to an exemplary embodiment
  • FIG. 2 is a flowchart of another method for processing location-based service data according to an exemplary embodiment
  • FIG. 3 is a structural diagram of an application embodiment provided by one or more embodiments of the present disclosure.
  • FIG. 4 is a structural diagram of a location-based service data processing apparatus according to an exemplary embodiment
  • FIG. 5 is a structural diagram of an electronic device according to an exemplary embodiment.
  • One or more embodiments of the present disclosure disclose a location-based service data processing method, which improves the security of the real address of an IoT terminal.
  • FIG. 1 a flowchart of a method for processing location-based service data according to an exemplary embodiment, as shown in FIG. 1 , includes:
  • S101 Receive a location service request sent by an IoT terminal; wherein, the location service request includes the real address, location information, location service request type, and location service provider of the IoT terminal;
  • the execution body of this embodiment is a blockchain, which is located between the IoT terminal and the location service provider, and implements communication between the IoT terminal and the location service provider.
  • the IoT terminal in this embodiment may include a mobile phone, a car, etc.
  • the location service provider may include an operating system such as IOS, Android, etc., which is not specifically limited herein.
  • the blockchain in this embodiment includes a service node corresponding to the location service provider, and the blockchain communicates with the corresponding location service provider through the service node.
  • the service node adopts the minimal storage method, and only stores the corresponding location service. Provider-related location service information.
  • the blockchain also includes regulatory nodes corresponding to the regulatory authorities. The regulatory nodes use full storage to store all location service information, enabling the regulatory authorities to effectively supervise the location services provided by location providers and ensuring the compliance of location-based services. sex.
  • the IoT terminal sends a location service request to the blockchain, which includes the real address, location information, location service request type and location service provider of the IoT device, and of course other contents, which are not included in this embodiment.
  • the real address of the IoT device such as the real IP address of the IoT device (full name in Chinese: Internet Protocol, full name in English: Internet Protocol) address, real Mac (full name in Chinese: Media Access Control Bit, full name in English: Media Access Control) address
  • the location service request type is, for example, the weather information corresponding to the location information, that is, the location service request is used to request the weather information corresponding to the location information of the IoT terminal.
  • the location service request may also be sent to the supervisory node for storage, that is, the location service information stored by the supervisory node includes the location service request sent by the terminal device.
  • S102 Use a smart contract to replace the real address of the IoT terminal in the location service request with a temporary address, and send the replaced location service request to the location service provider;
  • the blockchain uploads the location service request sent by the IoT terminal to the chain, and uses the smart contract to automatically replace the real address with the temporary address. Further, the blockchain adopts the off-chain monitoring mechanism, and sends the replaced location service request to the location service provider in the location service request through the corresponding service node, including the temporary address, location information, location service of the IoT device.
  • the request type and location service provider may also include other contents, which are not specifically limited in this embodiment.
  • S103 Receive a location service response sent by the location service provider; wherein the location service response includes the temporary address, response information generated by the location service provider based on the location information and the location service request type ;
  • the location service provider receives the location service request sent by the blockchain through the corresponding service node, and generates response information based on the location information and location service type therein, for example, the weather information corresponding to the location information is minus 12 degrees Celsius.
  • the location service provider returns the location service response to the blockchain through the corresponding service node, that is, the blockchain receives the location service response sent by the location service provider through the corresponding service node, including the temporary address of the IoT device and the above response information. .
  • the location service response may also be sent to the supervisory node for storage, that is, the location service information stored by the supervisory node includes the location service response returned by the location service provider.
  • S104 Use the smart contract to replace the temporary address in the location service response with the real address, and send the replaced location service response to the IoT terminal.
  • the blockchain uploads the location service response returned by the location service provider to the chain, and uses the smart contract to automatically replace the temporary address with the real address. Further, the blockchain returns the replaced location service response to the IoT terminal corresponding to the real address through the off-chain monitoring mechanism, including the real address of the IoT device and the above-mentioned response information. After receiving the replaced location service response, the IoT terminal displays information and provides services to the user.
  • the location-based service data processing method utilizes the blockchain to realize the communication between the IoT terminal and the location service provider.
  • the IoT terminal sends a location service request to the blockchain
  • the blockchain uses a smart contract to replace the real address of the IoT terminal with a temporary address, and sends the replaced location service request to the location service provider.
  • the location service provider returns a location service response to the blockchain based on the location information in the location service request and the response information generated by the location service request type.
  • the blockchain uses smart contracts to replace the temporary address of the IoT terminal with the real address, and returns the replaced location service response to the IoT terminal.
  • the location-based service data processing method realizes the replacement of the real address of the IoT terminal through the smart contract in the blockchain, thereby isolating the location service provider from obtaining the real address of the IoT terminal.
  • the role of the address on the premise of protecting the real address of the IoT terminal from being obtained by the location service provider, can still complete the location-based service and realize the return of the location service response.
  • the embodiment of the present application discloses a location-based service data processing method. Compared with the previous embodiment, the present embodiment further describes and optimizes the technical solution. specific:
  • FIG. 2 a flowchart of another method for processing location-based service data according to an exemplary embodiment, as shown in FIG. 2 , includes:
  • S201 Receive a location service request sent by an IoT terminal; wherein, the location service request includes the real address, location information, location service request type, and location service provider of the IoT terminal;
  • S202 Use the smart contract to select a temporary address in the address pool on the chain, and replace the real address of the IoT terminal in the location service request with the temporary address;
  • the temporary address is maintained through the address pool on the chain.
  • a temporary address is randomly selected in the address pool on the chain to replace the real address in the location service request. address, and record the correspondence between the above real address and temporary address in the smart contract.
  • S205 Receive a location service response sent by the location service provider; wherein the location service response includes the temporary address, response information generated by the location service provider based on the location information and the location service request type ;
  • the block link when the block link receives the location service response returned by the location service provider, the temporary address in the location service response is replaced with the corresponding real address based on the correspondence recorded in the smart contract.
  • S207 Send the replaced location service response to the IoT terminal.
  • the smart contract is used to select a temporary address in the address pool on the chain, and the real address of the IoT terminal in the location service request is replaced by
  • the temporary address includes: using the smart contract to select an unused temporary address in the address pool on the chain; replacing the real address of the IoT terminal in the location service request with the temporary address; replacing The status of the temporary address is updated to be in use; correspondingly, after replacing the temporary address in the location service response with the real address based on the correspondence recorded in the smart contract, the method further includes: The status of the temporary address is updated to unused.
  • the on-chain address pool includes all temporary addresses, and each temporary address corresponds to a state, including in use and unused.
  • the blockchain receives the location service request sent by the IoT terminal, it randomly selects a temporary address with an unused status in the address pool on the chain, and replaces the real address of the IoT terminal in the location service request with the temporary address. , to update the status of the temporary address in the smart contract from unused to in use.
  • the block link receives the location service response returned by the location service provider, it replaces the temporary address in the location service response with the corresponding real address based on the correspondence recorded in the smart contract, and the status of the temporary address is changed from in use. Update to unused.
  • the method further includes: changing the temporary address from the correspondingly, after replacing the temporary address in the location service response with the real address based on the corresponding relationship recorded in the smart contract, the method further includes: replacing the temporary address with the real address. Rejoin the on-chain address pool.
  • the on-chain address pool only includes unused temporary addresses.
  • the blockchain receives the location service request sent by the IoT terminal, it randomly selects a temporary address in the address pool on the chain, replaces the real address of the IoT terminal in the location service request with the temporary address, and then replaces the temporary address with the temporary address. Removed from the on-chain address pool.
  • the blockchain receives the location service response returned by the location service provider, it replaces the temporary address in the location service response with the corresponding real address based on the correspondence recorded in the smart contract, and then re-adds the temporary address to the address on the chain pool.
  • the temporary address is maintained through the address pool on the chain.
  • a temporary address is randomly selected in the address pool on the chain to replace the location service.
  • the real address in the request realizes the replacement of the real address of the IoT terminal through the smart contract in the blockchain, so as to isolate the location service provider from obtaining the real address of the IoT terminal, and protect the real address of the IoT terminal from being used by the location service.
  • the location-based service can still be completed and the response of the location service can be returned.
  • FIG. 3 is a structural diagram of an application embodiment provided by the present application. Specifically, the following steps may be included:
  • Step 1 Form a blockchain LBS conversion service alliance chain:
  • a blockchain LBS conversion service alliance chain is established.
  • the participants in the alliance chain include several regulatory nodes and operating system service provider nodes.
  • the full storage method is used to record the LBS conversion service records stored by all operating system service provider nodes.
  • the minimal storage method is used, and only the LBS conversion service records related to itself are stored.
  • Step 2 Mobile phone, car and other access devices send location information:
  • IoT terminals such as mobile phones and automobiles send location information and service requests to the blockchain LBS conversion service device.
  • the key information fields include "device real Mac address, LBS location information, location service request type: please return the weather information of the current location. Requests to the device side, location service provider: IOS operating system".
  • Step 3 The blockchain LBS conversion service converts the device real Mac address to the device temporary Mac address:
  • the blockchain LBS conversion service uploads the location service request information sent by mobile phones, cars and other IoT terminals to the chain, and automatically replaces the "device real Mac address" with "device temporary Mac address” through smart contracts, where the device temporary Mac address It comes from a "Mac address pool on the chain", which randomly saves Mac addresses in the "unused” state.
  • the smart contract automatically selects a random Mac address from the "Mac address pool on the chain” as the "device” Temporary Mac Address", the status of the address is updated to "In Use”.
  • the blockchain LBS conversion service sends a location service request to the designated location service provider through the off-chain monitoring mechanism.
  • the key information fields include "device temporary Mac address, LBS location information, location service request type: please send the weather at the current location. Information returned to the device-side request, location service provider: IOS operating system”.
  • Step 4 IOS, Android and other operating systems receive the location information converted by LBS:
  • the IOS operating system receives the location service request sent by the blockchain LBS conversion service, and the key information fields include "device temporary Mac address, LBS location information, location service request type: please return the weather information of the current location to the request of the device side, location service Provider: IOS operating system".
  • Step 5 IOS, Android and other operating systems return location service information:
  • the IOS operating system returns the location service information to the blockchain LBS conversion service device according to the type of location service request.
  • the key information fields include "the temporary Mac address of the device, the returned location service request information: the weather information at the current location is minus 12 degrees Celsius”.
  • Step 6 The blockchain LBS conversion service converts the device temporary Mac address to the device real Mac address:
  • the blockchain LBS conversion service uploads the location service information returned by the IOS operating system to the chain, and automatically replaces the "device temporary Mac address" with the "device real Mac address” through a smart contract.
  • the blockchain LBS conversion service sends location service information to the specified device through the off-chain monitoring mechanism.
  • the key information fields include "the real Mac address of the device, the returned location service request information: the weather information at the current location is minus 12 degrees Celsius",
  • the smart contract automatically releases the "device temporary Mac address” to the "unused” state and puts it back into the "Mac address pool on the chain”.
  • Step 7 Access devices such as mobile phones and cars receive LBS-converted location service information:
  • Access devices such as mobile phones and cars receive the LBS-converted location service information from the blockchain.
  • the key information fields include “the real Mac address of the device, the returned location service request information: the weather information at the current location is minus 12 degrees Celsius”, and it is used for face-to-face communication.
  • User information display and service provision are examples of the key information fields.
  • the following describes a location-based service data processing apparatus provided by an embodiment of the present application.
  • the location-based service data processing apparatus described below and the location-based service data processing method described above may refer to each other.
  • FIG. 4 a structural diagram of a location-based service data processing apparatus according to an exemplary embodiment, as shown in FIG. 4, includes:
  • the first receiving module 401 is configured to receive a location service request sent by an IoT terminal; wherein, the location service request includes the real address, location information, location service request type and location service provider of the IoT terminal;
  • a first replacement module 402 configured to use a smart contract to replace the real address of the IoT terminal in the location service request with a temporary address, and send the replaced location service request to the location service provider;
  • the second receiving module 403 is configured to receive a location service response sent by the location service provider; wherein the location service response includes the temporary address, the location service provider based on the location information and the location service The response information generated by the request type;
  • the second replacement module 404 is configured to use the smart contract to replace the temporary address in the location service response with the real address, and send the replaced location service response to the IoT terminal.
  • the location-based service data processing device utilizes the blockchain to realize the communication between the IoT terminal and the location service provider.
  • the IoT terminal sends a location service request to the blockchain
  • the blockchain uses a smart contract to replace the real address of the IoT terminal with a temporary address, and sends the replaced location service request to the location service provider.
  • the location service provider returns a location service response to the blockchain based on the location information in the location service request and the response information generated by the location service request type.
  • the blockchain uses smart contracts to replace the temporary address of the IoT terminal with the real address, and returns the replaced location service response to the IoT terminal.
  • the location-based service data processing device realizes the replacement of the real address of the IoT terminal through the smart contract in the blockchain, thereby isolating the location service provider from obtaining the real address of the IoT terminal.
  • the role of the address on the premise of protecting the real address of the IoT terminal from being obtained by the location service provider, can still complete the location-based service and realize the return of the location service response.
  • the first replacement module 402 includes:
  • a first replacement unit configured to use the smart contract to select a temporary address in the address pool on the chain, and replace the real address of the IoT terminal in the location service request with the temporary address;
  • a recording unit used to record the correspondence between the real address and the temporary address in the smart contract
  • a first sending unit configured to send the replaced location service request to the location service provider
  • the second replacement module 404 includes:
  • a second replacement unit configured to replace the temporary address in the location service response with the real address based on the correspondence recorded in the smart contract
  • the second sending unit is configured to send the replaced location service response to the IoT terminal.
  • the first replacement unit specifically uses the smart contract to select a temporary address whose status is unused in the address pool on the chain, and replaces the real address of the IoT terminal in the location service request with the actual address of the IoT terminal. Replace the address with the temporary address, and update the status of the temporary address to the unit in use;
  • the second replacement module 404 further includes:
  • an update unit configured to update the state of the temporary address to be unused.
  • the first replacement module 402 further includes:
  • a deletion unit used to delete the temporary address from the on-chain address pool
  • the second replacement module 404 further includes:
  • the joining unit is used for re-adding the temporary address to the on-chain address pool.
  • the blockchain includes service nodes corresponding to the location service provider
  • the first replacement module 402 specifically uses a smart contract to replace the real address of the IoT terminal in the location service request with a temporary address, and sends the replaced location service request to the location through the corresponding service node.
  • Service provider modules ;
  • the second receiving module 403 is specifically a module for receiving the location service response sent by the location service provider through the corresponding service node.
  • the blockchain further includes a supervision node corresponding to the supervision department;
  • the device also includes:
  • a first sending module configured to send the location service request to the supervisory node after receiving the location service request sent by the IoT terminal;
  • the second sending module is configured to send the location service response to the supervisory node after receiving the location service response sent by the location service provider.
  • the location service provider includes an operating system.
  • FIG. 5 is a structural diagram of an electronic device according to an exemplary embodiment. As shown in Figure 5, the electronic equipment includes:
  • Communication interface 1 which can exchange information with other devices such as network devices;
  • the processor 2 is connected to the communication interface 1 to realize information interaction with other devices, and is used to execute the location-based service data processing method provided by one or more of the above technical solutions when running the computer program.
  • the computer program is instead stored on the memory 3 .
  • bus system 4 is used to realize the connection communication between these components.
  • the bus system 4 also includes a power bus, a control bus and a status signal bus.
  • the various buses are labeled as bus system 4 in FIG. 5 .
  • the memory 3 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program used to operate on an electronic device.
  • the memory 3 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory.
  • the non-volatile memory can be a read-only memory (ROM, Read Only Memory), a programmable read-only memory (PROM, Programmable Read-Only Memory), an erasable programmable read-only memory (EPROM, Erasable Programmable Read-only memory) Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, ferromagnetic random access memory), Flash Memory (Flash Memory), Magnetic Surface Memory , CD-ROM, or CD-ROM (Compact Disc Read-Only Memory); magnetic surface memory can be disk memory or tape memory.
  • RAM Random Access Memory
  • SRAM Static Random Access Memory
  • SSRAM Synchronous Static Random Access Memory
  • DRAM Dynamic Random Access Memory
  • SDRAM Synchronous Dynamic Random Access Memory
  • DDRSDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • ESDRAM Enhanced Type Synchronous Dynamic Random Access Memory
  • SLDRAM Synchronous Link Dynamic Random Access Memory
  • DRRAM Direct Rambus Random Access Memory
  • the memory 2 described in the embodiments of the present application is intended to include but not limited to these and any other suitable types of memory.
  • the methods disclosed in the above embodiments of the present application may be applied to the processor 2 or implemented by the processor 2 .
  • the processor 2 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method can be completed by a hardware integrated logic circuit in the processor 2 or an instruction in the form of software.
  • the above-mentioned processor 2 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like.
  • the processor 2 may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of this application.
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a storage medium, the storage medium is located in the memory 3, and the processor 2 reads the program in the memory 3, and completes the steps of the foregoing method in combination with its hardware.
  • the embodiment of the present application further provides a storage medium, that is, a computer storage medium, specifically a computer-readable storage medium, for example, including a memory 3 storing a computer program, and the above-mentioned computer program can be executed by the processor 2, to complete the steps described in the preceding method.
  • the computer-readable storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.
  • the aforementioned program can be stored in a computer-readable storage medium, and when the program is executed, execute It includes the steps of the above method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic disk or an optical disk and other media that can store program codes.
  • the above-mentioned integrated units of the present application are implemented in the form of software function modules and sold or used as independent products, they may also be stored in a computer-readable storage medium.
  • the computer software products are stored in a storage medium and include several instructions for An electronic device (which may be a personal computer, a server, or a network device, etc.) is caused to execute all or part of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic disk or an optical disk and other mediums that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Remote Sensing (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Medical Informatics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本公开提供的基于位置的服务数据处理方法、装置及电子设备和计算机可读存储介质,该方法包括:接收物联网终端发送的位置服务请求;位置服务请求包括物联网终端的真实地址、位置信息、位置服务请求类型和位置服务提供方;利用智能合约将位置服务请求中物联网终端的真实地址替换为临时地址,并将替换后的位置服务请求发送至位置服务提供方;接收位置服务提供方发送的位置服务响应;位置服务响应包括临时地址、位置服务提供方基于位置信息和位置服务请求类型生成的响应信息;利用智能合约将位置服务响应中的临时地址替换为真实地址,并将替换后的位置服务响应发送至物联网终端。

Description

基于位置的服务数据处理方法及装置
本申请要求于2021年3月15日提交中国专利局、申请号为202110276087.5、发明名称为“基于位置的服务数据处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,更具体地说,涉及基于位置的服务数据处理方法、装置及电子设备和计算机可读存储介质。
背景技术
在数字经济时代,数据安全和隐私保护的重要性日益突显,特别是以基于位置的服务(Location Based Services,LBS)为代表的用户隐私数据的保护,正成为行业关注的焦点。
在相关技术中,通过以IOS、Android为代表的操作系统为物联网终端提供基于位置的服务。但是,由于操作系统属于某些公司私有化运营,无法保证物联网终端的真实地址的安全性。
因此,如何提高物联网终端的真实地址的安全性是本领域技术人员需要解决的技术问题。
发明内容
本公开的一个或多个实施例提供了基于位置的服务数据处理方法、装置及电子设备和计算机可读存储介质。
其中,本公开的一个或多个实施例提供了基于位置的服务数据处理方法,应用于区块链,包括:
接收物联网终端发送的位置服务请求;其中,所述位置服务请求包括所述物联网终端的真实地址、位置信息、位置服务请求类型和位置服务提供方;
利用智能合约将所述位置服务请求中所述物联网终端的真实地址替换为临时地址,并将替换后的位置服务请求发送至所述位置服务提供方;
接收所述位置服务提供方发送的位置服务响应;其中,所述位置服务响应包括所述临时地址、所述位置服务提供方基于所述位置信息和所述位置服务请求类型生成的响应信息;
利用所述智能合约将所述位置服务响应中的所述临时地址替换为所述真实地址,并将替换后的位置服务响应发送至所述物联网终端。
其中,所述利用智能合约将所述位置服务请求中所述物联网终端的真实地址替换为临时地址,包括:
利用所述智能合约在链上地址池中选择临时地址,将所述位置服务请求中所述物联网终端的真实地址替换为所述临时地址;
在所述智能合约中记录所述真实地址与所述临时地址的对应关系;
相应的,所述利用所述智能合约将所述位置服务响应中的所述临时地址替换为所述真实地址,包括:
基于所述智能合约中记录的对应关系将所述位置服务响应中的所述临时地址替换为所述真实地址。
其中,所述利用所述智能合约在链上地址池中选择临时地址,将所述位置服务请求中所述物联网终端的真实地址替换为所述临时地址,包括:
利用所述智能合约在链上地址池中选择状态为未使用的临时地址;
将所述位置服务请求中所述物联网终端的真实地址替换为所述临时地址;
将所述临时地址的状态更新为使用中;
相应的,所述基于所述智能合约中记录的对应关系将所述位置服务响应中的所述临时地址替换为所述真实地址之后,还包括:
将所述临时地址的状态更新为未使用。
其中,将所述位置服务请求中所述物联网终端的真实地址替换为所述临时地址之后,还包括:
将所述临时地址从所述链上地址池中删除;
相应的,所述基于所述智能合约中记录的对应关系将所述位置服务响应中的所述临时地址替换为所述真实地址之后,还包括:
将所述临时地址重新加入所述链上地址池。
其中,所述区块链包括所述位置服务提供方对应的服务节点;
所述将替换后的位置服务请求发送至所述位置服务提供方,包括:
通过对应的服务节点将替换后的位置服务请求发送至所述位置服务提供方;
所述接收所述位置服务提供方发送的位置服务响应,包括:
通过对应的服务节点接收所述位置服务提供方发送的位置服务响应。
其中,所述区块链还包括监管部门对应的监管节点;
所述接收物联网终端发送的位置服务请求之后,还包括:
将所述位置服务请求发送至所述监管节点;
所述接收所述位置服务提供方发送的位置服务响应之后,还包括:
将所述位置服务响应发送至所述监管节点。
其中,所述位置服务提供方包括操作系统。
本公开的一个或多个实施例提供了一种基于位置的服务数据处理装置,应用于区块链,包括:
第一接收模块,用于接收物联网终端发送的位置服务请求;其中,所述位置服务请求包括所述物联网终端的真实地址、位置信息、位置服务请求类型和位置服务提供方;
第一替换模块,用于利用智能合约将所述位置服务请求中所述物联网终端的真实地址替换为临时地址,并将替换后的位置服务请求发送至所述位置服务提供方;
第二接收模块,用于接收所述位置服务提供方发送的位置服务响应;其中,所述位置服务响应包括所述临时地址、所述位置服务提供方基于所述位置信息和所述位置服务请求类型生成的响应信息;
第二替换模块,用于利用所述智能合约将所述位置服务响应中的所述临时地址替换为所述真实地址,并将替换后的位置服务响应发送至所述物联网终端。
本公开的一个或多个实施例提供了一种电子设备,包括:
存储器,用于存储计算机程序;
处理器,用于执行所述计算机程序时实现如上述基于位置的服务数据处理方法的步骤。
本公开的一个或多个实施例提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述基于位置的服务数据处理方法的步骤。
通过以上方案可知,本申请提供的一种基于位置的服务数据处理方法,包括:接收物联网终端发送的位置服务请求;其中,所述位置服务请求包括所述物联网终端的真实地址、位置信息、位置服务请求类型和位置服务提供方;利用智能合约将所述位置服务请求中所述物联网终端的真实地址替换为临时地址,并将替换后的位置服务请求发送至所述位置服务提供方;接收所述位置服务提供方发送的位置服务响应;其中,所述位置服务响应包括所述临时地址、所述位置服务提供方基于所述位置信息和所述位置服务请求类型生成的响应信息;利用所述智能合约将所述位置服务响应中的所述临时地址替换为所述真实地址,并将替换后的位置服务响应发送至所述物联网终端。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本申请。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。附图是用来提供对本公开的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本公开,但并不构成对本公开的限制。在附图中:
图1为根据一示例性实施例示出的一种基于位置的服务数据处理方法的流程图;
图2为根据一示例性实施例示出的另一种基于位置的服务数据处理方法的流程图;
图3为本公开的一个或多个实施例提供的一种应用实施例的结构图;
图4为根据一示例性实施例示出的一种基于位置的服务数据处理装置的结构图;
图5为根据一示例性实施例示出的一种电子设备的结构图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。另外,在本申请实施例中,“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
本公开的一个或多个实施例公开了一种基于位置的服务数据处理方法,提高了物联网终端的真实地址的安全性。
参见图1,根据一示例性实施例示出的一种基于位置的服务数据处理方法的流程图,如图1所示,包括:
S101:接收物联网终端发送的位置服务请求;其中,所述位置服务请求包括所述物联网终端的真实地址、位置信息、位置服务请求类型和位置服务提供方;
本实施例的执行主体为区块链,其位于物联网终端与位置服务提供方之间,实现物联网终端与位置服务提供方之间的通信。本实施例中的物联网终端可以包括手机、汽车等,位置服务方可以包括如IOS、Android等操作系统,在此不进行具体限定。本实施例中的区块链包括位置服务提供方对应的服务节点,区块链通过该服务节点与对应的位置服务提供方进行通信,服务节点采用最小化存储方式,仅存储与对应的位置服务提供方相关的位置服务信息。区块链还包括监管部门对应的监管节点,监管节点采用 全量存储方式,存储所有位置服务信息,实现了监管部门对位置提供方提供的位置服务的有效监管,确保了基于位置的服务的合规性。
在具体实施中,物联网终端向区块链发送位置服务请求,其中包括物联网设备的真实地址、位置信息、位置服务请求类型和位置服务提供方,当然还可以包括其他内容,本实施例不进行具体限定。物联网设备的真实地址例如物联网设备的真实IP(中文全称:网际互连协议,英文全称:Internet Protocol)地址、真实Mac(中文全称:媒体存取控制位,英文全称:Media Access Control)地址,位置服务请求类型例如位置信息对应的天气信息,即该位置服务请求用于请求物联网终端的位置信息对应的天气信息。
可以理解的是,在本步骤之后,还可以将位置服务请求发送至监管节点进行存储,即监管节点存储的位置服务信息包括终端设备发送的位置服务请求。
S102:利用智能合约将所述位置服务请求中所述物联网终端的真实地址替换为临时地址,并将替换后的位置服务请求发送至所述位置服务提供方;
在本步骤中,区块链将物联网终端发送的位置服务请求上链,并利用智能合约自动将其中的真实地址替换为临时地址。进一步的,区块链采用链外监听机制,通过对应的服务节点将替换后的位置服务请求发送至位置服务请求中的位置服务提供方,其中包括物联网设备的临时地址、位置信息、位置服务请求类型和位置服务提供方,当然还可以包括其他内容,本实施例不进行具体限定。
S103:接收所述位置服务提供方发送的位置服务响应;其中,所述位置服务响应包括所述临时地址、所述位置服务提供方基于所述位置信息和所述位置服务请求类型生成的响应信息;
在具体实施中,位置服务提供方接收区块链通过对应的服务节点发送的位置服务请求,基于其中的位置信息和位置服务类型生成响应信息,例如,位置信息对应的天气信息为零下12摄氏度。位置服务提供方通过对应的服务节点向区块链返回位置服务响应,即区块链通过对应的服务节点接 收位置服务提供方发送的位置服务响应,其中包括物联网设备的临时地址和上述响应信息。
可以理解的是,在本步骤之后,还可以将位置服务响应发送至监管节点进行存储,即监管节点存储的位置服务信息包括位置服务提供方返回的位置服务响应。
S104:利用所述智能合约将所述位置服务响应中的所述临时地址替换为所述真实地址,并将替换后的位置服务响应发送至所述物联网终端。
在本步骤中,区块链将位置服务提供方返回的位置服务响应上链,并利用智能合约自动将其中的临时地址替换为真实地址。进一步的,区块链通过链外监听机制,向真实地址对应的物联网终端返回替换后的位置服务响应,其中包括物联网设备的真实地址和上述响应信息。物联网终端接收到替换后的位置服务响应后,面向使用者进行信息展示和服务提供。
本申请实施例提供的基于位置的服务数据处理方法,利用区块链实现了物联网终端与位置服务提供方之间的通信。具体的,物联网终端向区块链发送位置服务请求,区块链利用智能合约将其中的物联网终端的真实地址替换为临时地址,并将替换后的位置服务请求发送至位置服务提供方。位置服务提供方基于位置服务请求中的位置信息和位置服务请求类型生成的响应信息,向区块链返回位置服务响应。区块链利用智能合约将其中的物联网终端的临时地址重新替换为真实地址,并将替换后的位置服务响应返回至物联网终端。由此可见,本申请实施例提供的基于位置的服务数据处理方法,通过区块链中的智能合约实现物联网终端的真实地址的替换,从而起到隔离位置服务提供方获取物联网终端的真实地址的作用,保护物联网终端的真实地址不被位置服务提供方获取的前提下,仍能完成基于位置的服务,实现位置服务响应的返回。
本申请实施例公开了一种基于位置的服务数据处理方法,相对于上一实施例,本实施例对技术方案作了进一步的说明和优化。具体的:
参见图2,根据一示例性实施例示出的另一种基于位置的服务数据处理方法的流程图,如图2所示,包括:
S201:接收物联网终端发送的位置服务请求;其中,所述位置服务请求包括所述物联网终端的真实地址、位置信息、位置服务请求类型和位置服务提供方;
S202:利用所述智能合约在链上地址池中选择临时地址,将所述位置服务请求中所述物联网终端的真实地址替换为所述临时地址;
S203:在所述智能合约中记录所述真实地址与所述临时地址的对应关系;
本实施例通过链上地址池维护临时地址,当区块链接收到物联网终端发送的位置服务请求时,随机在链上地址池中选择一个临时地址,用于替换该位置服务请求中的真实地址,并在智能合约中记录上述真实地址和临时地址的对应关系。
S204:将替换后的位置服务请求发送至所述位置服务提供方;
S205:接收所述位置服务提供方发送的位置服务响应;其中,所述位置服务响应包括所述临时地址、所述位置服务提供方基于所述位置信息和所述位置服务请求类型生成的响应信息;
S206:基于所述智能合约中记录的对应关系将所述位置服务响应中的所述临时地址替换为所述真实地址;
在具体实施中,当区块链接收到位置服务提供方返回的位置服务响应时,基于智能合约中记录的对应关系将位置服务响应中的临时地址替换为对应的真实地址。
S207:将替换后的位置服务响应发送至所述物联网终端。
在本实施例的基础上,作为一种可行的实施方式,所述利用所述智能合约在链上地址池中选择临时地址,将所述位置服务请求中所述物联网终端的真实地址替换为所述临时地址,包括:利用所述智能合约在链上地址池中选择状态为未使用的临时地址;将所述位置服务请求中所述物联网终端的真实地址替换为所述临时地址;将所述临时地址的状态更新为使用中;相应的,所述基于所述智能合约中记录的对应关系将所述位置服务响应中的所述临时地址替换为所述真实地址之后,还包括:将所述临时地址的状态更新为未使用。
在本实施方式中,链上地址池包括所有临时地址,每个临时地址对应一个状态,包括使用中和未使用。当区块链接收到物联网终端发送的位置服务请求时,随机在链上地址池中选择一个状态为未使用的临时地址,将位置服务请求中物联网终端的真实地址替换为该临时地址后,将智能合约中该临时地址的状态由未使用更新为使用中。当区块链接收到位置服务提供方返回的位置服务响应时,基于智能合约中记录的对应关系将位置服务响应中的临时地址替换为对应的真实地址后,将该临时地址的状态由使用中更新为未使用。
在本实施例的基础上,作为一种可行的实施方式,将所述位置服务请求中所述物联网终端的真实地址替换为所述临时地址之后,还包括:将所述临时地址从所述链上地址池中删除;相应的,所述基于所述智能合约中记录的对应关系将所述位置服务响应中的所述临时地址替换为所述真实地址之后,还包括:将所述临时地址重新加入所述链上地址池。
在本实施方式中,链上地址池仅包括未使用的临时地址。当区块链接收到物联网终端发送的位置服务请求时,随机在链上地址池中选择一个临时地址,将位置服务请求中物联网终端的真实地址替换为该临时地址后,将该临时地址从链上地址池中删除。当区块链接收到位置服务提供方返回的位置服务响应时,基于智能合约中记录的对应关系将位置服务响应中的临时地址替换为对应的真实地址后,将该临时地址重新加入链上地址池。
由此可见,本实施例通过链上地址池维护临时地址,当区块链接收到物联网终端发送的位置服务请求时,随机在链上地址池中选择一个临时地址,用于替换该位置服务请求中的真实地址。本实施例通过区块链中的智能合约实现物联网终端的真实地址的替换,从而起到隔离位置服务提供方获取物联网终端的真实地址的作用,保护物联网终端的真实地址不被位置服务提供方获取的前提下,仍能完成基于位置的服务,实现位置服务响应的返回。
下面介绍本申请提供的一种应用实施例,参见图3,图3为本申请提供的一种应用实施例的结构图,具体可以包括以下步骤:
步骤1:组建区块链LBS转换服务联盟链:
由监管部门牵头,组建区块链LBS转换服务联盟链,联盟链参与方包括若干监管节点和操作系统服务商节点。在监管节点侧,采用全量存储方式,记录所有操作系统服务商节点存储的LBS转换服务记录,在操作系统服务商侧,采用最小化存储方式,仅存储与自己有关的LBS转换服务记录。
步骤2:手机、汽车等接入设备发送位置信息:
手机、汽车等物联网终端,向区块链LBS转换服务装置发送位置信息和服务请求,关键信息字段包括“设备真实Mac地址、LBS位置信息、位置服务请求类型:请将当前位置的天气信息返回给设备端的请求、位置服务提供方:IOS操作系统”。
步骤3:区块链LBS转换服务将设备真实Mac地址转换为设备临时Mac地址:
区块链LBS转换服务,将手机、汽车等物联网终端发送的位置服务请求信息上链,并通过智能合约自动替换“设备真实Mac地址”为“设备临时Mac地址”,其中,设备临时Mac地址来自于一个“链上的Mac地址池”,这个地址池中随机保存“未使用”状态的Mac地址,当智能合约从“链上的Mac地址池”中自动随机抽取一个Mac地址做为“设备临时Mac地址”时,该地址的状态即更新为“使用中”。
区块链LBS转换服务通过链外监听机制,向指定的位置服务提供方,发送位置服务请求,关键信息字段包括“设备临时Mac地址、LBS位置信息、位置服务请求类型:请将当前位置的天气信息返回给设备端的请求、位置服务提供方:IOS操作系统”。
步骤4:IOS、Android等操作系统接收LBS转换后的位置信息:
IOS操作系统接收区块链LBS转换服务发送的位置服务请求,关键信息字段包括“设备临时Mac地址、LBS位置信息、位置服务请求类型:请将当前位置的天气信息返回给设备端的请求、位置服务提供方:IOS操作系统”。
步骤5:IOS、Android等操作系统返回位置服务信息:
IOS操作系统根据位置服务请求类型,向区块链LBS转换服务装置返回位置服务信息,关键信息字段包括“设备临时Mac地址、返回的位置服务请求信息:当前位置的天气信息为零下12摄氏度”。
步骤6:区块链LBS转换服务将设备临时Mac地址转换为设备真实Mac地址:
区块链LBS转换服务将IOS操作系统返回的位置服务信息上链,并通过智能合约自动替换“设备临时Mac地址”为“设备真实Mac地址”。
区块链LBS转换服务通过链外监听机制,向指定的设备,发送位置服务信息,关键信息字段包括“设备真实Mac地址、返回的位置服务请求信息:当前位置的天气信息为零下12摄氏度”,同时智能合约自动将“设备临时Mac地址”释放至“未使用”状态,重新放入“链上的Mac地址池”。
步骤7:手机、汽车等接入设备接收LBS转换后的位置服务信息:
手机、汽车等接入设备接收区块链LBS转换后的位置服务信息,关键信息字段包括“设备真实Mac地址、返回的位置服务请求信息:当前位置的天气信息为零下12摄氏度”,并用于面向使用者的信息展示和服务提供。
下面对本申请实施例提供的一种基于位置的服务数据处理装置进行介绍,下文描述的一种基于位置的服务数据处理装置与上文描述的一种基于位置的服务数据处理方法可以相互参照。
参见图4,根据一示例性实施例示出的一种基于位置的服务数据处理装置的结构图,如图4所示,包括:
第一接收模块401,用于接收物联网终端发送的位置服务请求;其中,所述位置服务请求包括所述物联网终端的真实地址、位置信息、位置服务请求类型和位置服务提供方;
第一替换模块402,用于利用智能合约将所述位置服务请求中所述物联网终端的真实地址替换为临时地址,并将替换后的位置服务请求发送至所述位置服务提供方;
第二接收模块403,用于接收所述位置服务提供方发送的位置服务响应;其中,所述位置服务响应包括所述临时地址、所述位置服务提供方基于所述位置信息和所述位置服务请求类型生成的响应信息;
第二替换模块404,用于利用所述智能合约将所述位置服务响应中的所述临时地址替换为所述真实地址,并将替换后的位置服务响应发送至所述物联网终端。
本申请实施例提供的基于位置的服务数据处理装置,利用区块链实现了物联网终端与位置服务提供方之间的通信。具体的,物联网终端向区块链发送位置服务请求,区块链利用智能合约将其中的物联网终端的真实地址替换为临时地址,并将替换后的位置服务请求发送至位置服务提供方。位置服务提供方基于位置服务请求中的位置信息和位置服务请求类型生成的响应信息,向区块链返回位置服务响应。区块链利用智能合约将其中的物联网终端的临时地址重新替换为真实地址,并将替换后的位置服务响应返回至物联网终端。由此可见,本申请实施例提供的基于位置的服务数据处理装置,通过区块链中的智能合约实现物联网终端的真实地址的替换,从而起到隔离位置服务提供方获取物联网终端的真实地址的作用,保护物联网终端的真实地址不被位置服务提供方获取的前提下,仍能完成基于位置的服务,实现位置服务响应的返回。
在上述实施例的基础上,所述第一替换模块402包括:
第一替换单元,用于利用所述智能合约在链上地址池中选择临时地址,将所述位置服务请求中所述物联网终端的真实地址替换为所述临时地址;
记录单元,用于在所述智能合约中记录所述真实地址与所述临时地址的对应关系;
第一发送单元,用于将替换后的位置服务请求发送至所述位置服务提供方;
相应的,所述第二替换模块404包括:
第二替换单元,用于基于所述智能合约中记录的对应关系将所述位置服务响应中的所述临时地址替换为所述真实地址;
第二发送单元,用于将替换后的位置服务响应发送至所述物联网终端。
在上述实施例的基础上,所述第一替换单元具体为利用所述智能合约在链上地址池中选择状态为未使用的临时地址,将所述位置服务请求中所述物联网终端的真实地址替换为所述临时地址,并将所述临时地址的状态更新为使用中的单元;
相应的,所述第二替换模块404还包括:
更新单元,用于将所述临时地址的状态更新为未使用。
在上述实施例的基础上,所述第一替换模块402还包括:
删除单元,用于将所述临时地址从所述链上地址池中删除;
相应的,所述第二替换模块404还包括:
加入单元,用于将所述临时地址重新加入所述链上地址池。
在上述实施例的基础上,所述区块链包括所述位置服务提供方对应的服务节点;
所述第一替换模块402具体为利用智能合约将所述位置服务请求中所述物联网终端的真实地址替换为临时地址,并通过对应的服务节点将替换后的位置服务请求发送至所述位置服务提供方的模块;
所述第二接收模块403具体为通过对应的服务节点接收所述位置服务提供方发送的位置服务响应的模块。
在上述实施例的基础上,所述区块链还包括监管部门对应的监管节点;
所述装置还包括:
第一发送模块,用于在接收物联网终端发送的位置服务请求之后,将所述位置服务请求发送至所述监管节点;
第二发送模块,用于在接收所述位置服务提供方发送的位置服务响应之后,将所述位置服务响应发送至所述监管节点。
在上述实施例的基础上,所述位置服务提供方包括操作系统。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
基于上述程序模块的硬件实现,且为了实现本申请实施例的方法,本申请实施例还提供了一种电子设备,图5为根据一示例性实施例示出的一种电子设备的结构图,如图5所示,电子设备包括:
通信接口1,能够与其它设备比如网络设备等进行信息交互;
处理器2,与通信接口1连接,以实现与其它设备进行信息交互,用于运行计算机程序时,执行上述一个或多个技术方案提供的基于位置的服务数据处理方法。而所述计算机程序存储在存储器3上。
当然,实际应用时,电子设备中的各个组件通过总线系统4耦合在一起。可理解,总线系统4用于实现这些组件之间的连接通信。总线系统4除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线系统4。
本申请实施例中的存储器3用于存储各种类型的数据以支持电子设备的操作。这些数据的示例包括:用于在电子设备上操作的任何计算机程序。
可以理解,存储器3可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器 (DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本申请实施例描述的存储器2旨在包括但不限于这些和任意其它适合类型的存储器。
上述本申请实施例揭示的方法可以应用于处理器2中,或者由处理器2实现。处理器2可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器2中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器2可以是通用处理器、DSP,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器2可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器3,处理器2读取存储器3中的程序,结合其硬件完成前述方法的步骤。
处理器2执行所述程序时实现本申请实施例的各个方法中的相应流程,为了简洁,在此不再赘述。
在示例性实施例中,本申请实施例还提供了一种存储介质,即计算机存储介质,具体为计算机可读存储介质,例如包括存储计算机程序的存储器3,上述计算机程序可由处理器2执行,以完成前述方法所述步骤。计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、Flash Memory、磁表面存储器、光盘、或CD-ROM等存储器。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤; 而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
或者,本申请上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台电子设备(可以是个人计算机、服务器、或者网络设备等)执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (16)

  1. 一种基于位置的服务数据处理方法,其中,应用于区块链,包括:
    接收物联网终端发送的位置服务请求;其中,所述位置服务请求包括所述物联网终端的真实地址、位置信息、位置服务请求类型和位置服务提供方;
    利用智能合约将所述位置服务请求中所述物联网终端的真实地址替换为临时地址,并将替换后的位置服务请求发送至所述位置服务提供方;
    接收所述位置服务提供方发送的位置服务响应;其中,所述位置服务响应包括所述临时地址、所述位置服务提供方基于所述位置信息和所述位置服务请求类型生成的响应信息;
    利用所述智能合约将所述位置服务响应中的所述临时地址替换为所述真实地址,并将替换后的位置服务响应发送至所述物联网终端。
  2. 根据权利要求1所述基于位置的服务数据处理方法,其中,所述利用智能合约将所述位置服务请求中所述物联网终端的真实地址替换为临时地址,包括:
    利用所述智能合约在链上地址池中选择临时地址,将所述位置服务请求中所述物联网终端的真实地址替换为所述临时地址;
    在所述智能合约中记录所述真实地址与所述临时地址的对应关系;
    相应的,所述利用所述智能合约将所述位置服务响应中的所述临时地址替换为所述真实地址,包括:
    基于所述智能合约中记录的对应关系将所述位置服务响应中的所述临时地址替换为所述真实地址。
  3. 根据权利要求2所述基于位置的服务数据处理方法,其中,所述利用所述智能合约在链上地址池中选择临时地址,将所述位置服务请求中所述物联网终端的真实地址替换为所述临时地址,包括:
    利用所述智能合约在链上地址池中选择状态为未使用的临时地址;
    将所述位置服务请求中所述物联网终端的真实地址替换为所述临时地址;
    将所述临时地址的状态更新为使用中;
    相应的,所述基于所述智能合约中记录的对应关系将所述位置服务响应中的所述临时地址替换为所述真实地址之后,还包括:
    将所述临时地址的状态更新为未使用。
  4. 根据权利要求2所述基于位置的服务数据处理方法,其中,将所述位置服务请求中所述物联网终端的真实地址替换为所述临时地址之后,还包括:
    将所述临时地址从所述链上地址池中删除;
    相应的,所述基于所述智能合约中记录的对应关系将所述位置服务响应中的所述临时地址替换为所述真实地址之后,还包括:
    将所述临时地址重新加入所述链上地址池。
  5. 根据权利要求1所述基于位置的服务数据处理方法,其中,所述区块链包括所述位置服务提供方对应的服务节点;
    所述将替换后的位置服务请求发送至所述位置服务提供方,包括:
    通过对应的服务节点将替换后的位置服务请求发送至所述位置服务提供方;
    所述接收所述位置服务提供方发送的位置服务响应,包括:
    通过对应的服务节点接收所述位置服务提供方发送的位置服务响应。
  6. 根据权利要求5所述基于位置的服务数据处理方法,其中,所述区块链还包括监管部门对应的监管节点;
    所述接收物联网终端发送的位置服务请求之后,还包括:
    将所述位置服务请求发送至所述监管节点;
    所述接收所述位置服务提供方发送的位置服务响应之后,还包括:
    将所述位置服务响应发送至所述监管节点。
  7. 根据权利要求1所述基于位置的服务数据处理方法,其中,所述位置服务提供方包括操作系统。
  8. 一种基于位置的服务数据处理装置,其中,应用于区块链,包括:
    第一接收模块,用于接收物联网终端发送的位置服务请求;其中,所述位置服务请求包括所述物联网终端的真实地址、位置信息、位置服务请求类型和位置服务提供方;
    第一替换模块,用于利用智能合约将所述位置服务请求中所述物联网终端的真实地址替换为临时地址,并将替换后的位置服务请求发送至所述位置服务提供方;
    第二接收模块,用于接收所述位置服务提供方发送的位置服务响应;其中,所述位置服务响应包括所述临时地址、所述位置服务提供方基于所述位置信息和所述位置服务请求类型生成的响应信息;
    第二替换模块,用于利用所述智能合约将所述位置服务响应中的所述临时地址替换为所述真实地址,并将替换后的位置服务响应发送至所述物联网终端。
  9. 根据权利要求8所述基于位置的服务数据处理装置,其中,所述第一替换模块包括:
    第一替换单元,用于利用所述智能合约在链上地址池中选择临时地址,将所述位置服务请求中所述物联网终端的真实地址替换为所述临时地址;
    记录单元,用于在所述智能合约中记录所述真实地址与所述临时地址的对应关系;
    第一发送单元,用于将替换后的位置服务请求发送至所述位置服务提供方;
    相应的,所述第二替换模块包括:
    第二替换单元,用于基于所述智能合约中记录的对应关系将所述位置服务响应中的所述临时地址替换为所述真实地址;
    第二发送单元,用于将替换后的位置服务响应发送至所述物联网终端。
  10. 根据权利要求9所述基于位置的服务数据处理装置,其中,所述第一替换单元具体为利用所述智能合约在链上地址池中选择状态为未使用的临时地址,将所述位置服务请求中所述物联网终端的真实地址替换为所述临时地址,并将所述临时地址的状态更新为使用中的单元;
    相应的,所述第二替换模块还包括:
    更新单元,用于将所述临时地址的状态更新为未使用。
  11. 根据权利要求9所述基于位置的服务数据处理装置,其中,所述第一替换模块还包括:
    删除单元,用于将所述临时地址从所述链上地址池中删除;
    相应的,所述第二替换模块还包括:
    加入单元,用于将所述临时地址重新加入所述链上地址池。
  12. 根据权利要求8所述基于位置的服务数据处理装置,其中,所述区块链包括所述位置服务提供方对应的服务节点;
    所述第一替换模块具体为利用智能合约将所述位置服务请求中所述物联网终端的真实地址替换为临时地址,并通过对应的服务节点将替换后的位置服务请求发送至所述位置服务提供方的模块;
    所述第二接收模块具体为通过对应的服务节点接收所述位置服务提供方发送的位置服务响应的模块。
  13. 根据权利要求12所述基于位置的服务数据处理装置,其中,所述区块链还包括监管部门对应的监管节点;
    所述装置还包括:
    第一发送模块,用于在接收物联网终端发送的位置服务请求之后,将所述位置服务请求发送至所述监管节点;
    第二发送模块,用于在接收所述位置服务提供方发送的位置服务响应之后,将所述位置服务响应发送至所述监管节点。
  14. 根据权利要求8所述基于位置的服务数据处理装置,其中,所述位置服务提供方包括操作系统。
  15. 一种电子设备,其中,包括:
    存储器,用于存储计算机程序;
    处理器,用于执行所述计算机程序时实现如权利要求1至7任一项所述基于位置的服务数据处理方法的步骤。
  16. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述基于位置的服务数据处理方法的步骤。
PCT/CN2021/140850 2021-03-15 2021-12-23 基于位置的服务数据处理方法及装置 WO2022193771A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US18/550,476 US20240155350A1 (en) 2021-03-15 2021-12-23 Method and apparatus for processing location-based service data
JP2023557103A JP2024513712A (ja) 2021-03-15 2021-12-23 ロケーションに基づくサービスデータの処理方法及び装置

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110276087.5A CN115080872A (zh) 2021-03-15 2021-03-15 基于位置的服务数据处理方法及装置
CN202110276087.5 2021-03-15

Publications (1)

Publication Number Publication Date
WO2022193771A1 true WO2022193771A1 (zh) 2022-09-22

Family

ID=83241638

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/140850 WO2022193771A1 (zh) 2021-03-15 2021-12-23 基于位置的服务数据处理方法及装置

Country Status (4)

Country Link
US (1) US20240155350A1 (zh)
JP (1) JP2024513712A (zh)
CN (1) CN115080872A (zh)
WO (1) WO2022193771A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120040681A1 (en) * 2009-04-23 2012-02-16 Huawei Technologies Co., Ltd. Area-triggered location service method, location service server, and location service terminal
CN107045650A (zh) * 2016-10-25 2017-08-15 罗轶 基于区块链的网约车
CN110765472A (zh) * 2019-09-30 2020-02-07 广东工业大学 一种基于区块链和分布式存储的位置隐私保护方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120040681A1 (en) * 2009-04-23 2012-02-16 Huawei Technologies Co., Ltd. Area-triggered location service method, location service server, and location service terminal
CN107045650A (zh) * 2016-10-25 2017-08-15 罗轶 基于区块链的网约车
CN110765472A (zh) * 2019-09-30 2020-02-07 广东工业大学 一种基于区块链和分布式存储的位置隐私保护方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
FENG YAFEI, YAN CHUN;HU CHANGPING: "Structural Features and Hot Spots of Domestic Privacy Research in the Past 20 Years", JOURNAL OF INFORMATION RESOURCES MANAGEMENT, vol. 10, no. 36, 26 January 2020 (2020-01-26), XP055967549, ISSN: 2095-2171, DOI: 10.13365/j.jirm.2020.01.065 *

Also Published As

Publication number Publication date
US20240155350A1 (en) 2024-05-09
JP2024513712A (ja) 2024-03-27
CN115080872A (zh) 2022-09-20

Similar Documents

Publication Publication Date Title
TWI745473B (zh) 網路驗證方法及裝置
US7324490B2 (en) Communication system, address management method, relay device, and management device
CN111460458B (zh) 一种数据处理方法、相关装置及计算机可存储介质
JP2022020946A (ja) 情報処理装置、情報処理システム、通信形式決定方法およびプログラム
TW202021315A (zh) 網路服務系統及網路服務方法
CN109150677B (zh) 跨域访问的处理方法、装置及电子设备
CN111064804B (zh) 网络访问方法和装置
CN110601981A (zh) 服务路由方法、服务提供方云域及服务调用方云域
US10623469B2 (en) Methods and apparatuses for information transmission
WO2020038443A1 (zh) 桥接通信的方法和设备
WO2021088671A1 (zh) 一种端能力的调用方法、设备和计算机存储介质
CN109729121B (zh) 一种云存储系统及用于云存储系统中实现自定义数据处理的方法
US9734307B2 (en) User terminal interworking with peripheral device and method for preventing leakage of information using the same
WO2022193771A1 (zh) 基于位置的服务数据处理方法及装置
CN109547318B (zh) Vpn数据报文的处理方法、装置、电子设备
CN102495987B (zh) 一种电子信息本地防泄密访问的方法和系统
CN115150829B (zh) 一种网络访问权限管理方法及装置
WO2020063725A1 (zh) 一种发送消息的方法、设备及计算机可读存储介质
CN114338527B (zh) IPv6主动标识符处理方法及系统
US11283768B1 (en) Systems and methods for managing connections
CN113497764B (zh) 业务路由方法、系统、计算机存储介质和电子设备
CN113849562A (zh) 一种接入外部服务系统的方法和装置
CN115617537A (zh) 一种数据传输方法及装置、存储介质
EP4099634A1 (en) Information processing method and related network device
CN111767330B (zh) 一种数据交互方法、装置、电子设备及存储介质

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2023557103

Country of ref document: JP

Ref document number: 18550476

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 11202306866X

Country of ref document: SG

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 18.01.2024)