Location-based service data processing method and apparatus - Patents.com

The blockchain-based method and apparatus secure Internet of Things terminals by replacing real addresses with temporary ones, addressing privacy concerns in location-based services and ensuring secure communication with location service providers.

JP7559260B2Active Publication Date: 2024-10-01JINGDONG TECH HLDG CO LTD +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2023557103
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-03-15
Filing Date
2021-12-23
Publication Date
2024-10-01
Estimated Expiration
2041-12-23

AI Technical Summary

Technical Problem

Existing location-based services for Internet of Things terminals lack security, as the real addresses of these devices are not adequately protected due to operating systems being privately owned and operated by companies, leading to potential privacy breaches.

Method used

A method and apparatus utilizing a blockchain with smart contracts to replace the real addresses of Internet of Things terminals with temporary addresses, ensuring secure communication with location service providers while maintaining the integrity of location-based services.

Benefits of technology

The solution effectively isolates the real addresses of Internet of Things terminals from being acquired by location service providers, ensuring data privacy and enabling secure location-based services to be completed and returned to the terminals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007559260000001
    Figure 0007559260000001
  • Figure 0007559260000002
    Figure 0007559260000002
  • Figure 0007559260000003
    Figure 0007559260000003
Patent Text Reader

Abstract

The present disclosure provides a method, apparatus, and electronic device and a computer-readable storage medium for processing location-based service data, the method including: receiving a location service request sent by an Internet of Things terminal, where the location service request includes a real address of the Internet of Things terminal, location information, a type of location service request, and a location service provider; using a smart contract to replace the real address of the Internet of Things terminal in the location service request with a temporary address, and sending the replaced location service request to the location service provider; receiving a location service response sent by the location service provider, where the location service response includes the temporary address and response information generated by the location service provider based on the location information and the type of location service request; using a smart contract to replace the temporary address in the location service response with the real address, and sending the replaced location service response to the Internet of Things terminal.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This disclosure claims priority to a Chinese patent application bearing application number 202110276087.5, filed in China on March 15, 2021, and entitled "Method and device for processing location-based service data," the entire disclosure of which is incorporated herein by reference.

[0002] Technical Field The present application relates to the field of computer technology, and more particularly to a location-based service data processing method, apparatus, and electronic device and computer-readable storage medium. [Background technology]

[0003] In the digital economy era, the importance of data security and privacy protection is being increasingly emphasized, and in particular, the protection of user privacy data, as represented by location-based services (LBS), has become the focus of industry attention.

[0004] In related technologies, operating systems such as IOS and Android provide location-based services to Internet of Things terminals. However, since the operating systems are privately owned and operated by some companies, the security of the real addresses of Internet of Things terminals cannot be guaranteed.

[0005] Therefore, how to improve the security of the real address of an Internet of Things terminal is a technical problem to be solved by those skilled in the art. Summary of the Invention [Means for solving the problem]

[0006] One or more embodiments of the present disclosure provide a method, apparatus, and electronic device and computer-readable storage medium for processing location-based service data.

[0007]

[0013] Here, one or more embodiments of the present disclosure provide a method for processing location-based service data, the method being applied to a blockchain, comprising: Receiving a location service request sent by an Internet of Things terminal, the location service request including a real address, location information, a type of location service request, and a location service provider of the Internet of Things terminal; Using a smart contract to replace the real address of the Internet of Things terminal in the location service request with a temporary address, and sending the replaced location service request to the location service provider; receiving a location service response sent by the location service provider, the location service response including the temporary address and response information generated by the location service provider based on the location information and a type of the location service request; Using the smart contract to replace the temporary address in the location service response with the real address, and sending the replaced location service response to the Internet of Things terminal.

[0008] Wherein, using the smart contract to replace the real address of the Internet of Things terminal in the location service request with a temporary address includes: Using the smart contract to select a temporary address from an address pool on a chain, and replacing the real address of the Internet of Things terminal in the location service request with the temporary address; and recording a correspondence between the real address and the temporary address in the smart contract; Correspondingly, utilizing the smart contract to replace the temporary address with the real address in the location service response includes: and replacing the temporary address in the location service response with the real address based on a correspondence recorded in the smart contract.

[0009] Wherein, using the smart contract to select a temporary address from an address pool in a chain, and replacing the real address of the Internet of Things terminal in the location service request with the temporary address, selecting a currently unused temporary address from a pool of addresses on a chain using the smart contract; replacing a real address of the Internet of Things terminal in the location service request with the temporary address; updating the status of the temporary address while it is 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 updating a status of the temporary address to unused.

[0010] Wherein, after replacing the real address of the Internet of Things terminal in the location service request with the temporary address, removing the temporary address from a pool of addresses in the chain; 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 rejoining the temporary address to a pool of addresses in the chain.

[0011] Wherein the blockchain includes a service node corresponding to the location service provider; Sending the replaced location service request to the location service provider includes: sending a replaced location service request to the location service provider via a corresponding service node; receiving a location service response sent by the location service provider, receiving a location service response sent by the location service provider via a corresponding service node.

[0012] Here, the blockchain further includes a supervisory node corresponding to a supervisory department; After receiving a location service request sent by the Internet of Things terminal, sending the location service request to the supervisor node; After receiving a location service response sent by the location service provider, The method further includes transmitting the location service response to the supervisor node.

[0013] Here, the location service provider includes an operating system.

[0014] One or more embodiments of the present disclosure provide a location-based service data processing device, the device being applied to a blockchain, A first receiving module, which is used to receive a location service request sent by an Internet of Things terminal, the location service request including a real address, location information, a type of the location service request, and a location service provider of the Internet of Things terminal; A first substitution module, which is used for substituting a real address of the Internet of Things terminal in the location service request with a temporary address by using a smart contract, and sending the substituted location service request to the location service provider; a second receiving module, which is used to receive a location service response sent by the location service provider, the location service response including the temporary address and response information generated by the location service provider based on the location information and the type of the location service request; and a second substitution module, used for substituting the temporary address in the location service response with the real address using the smart contract, and sending the substituted location service response to the Internet of Things terminal.

[0015] One or more embodiments of the present disclosure provide an electronic device, comprising: A memory used to store a computer program; and a processor adapted to implement the steps of the location-based service data processing method when executing the computer program.

[0016] One or more embodiments of the present disclosure provide a computer-readable storage medium having a computer program stored therein, the computer program implementing steps of the location-based service data processing method when executed by a processor.

[0017] As can be seen from the above technical solutions, the location-based service data processing method provided in the present application includes: receiving a location service request sent by an Internet of Things terminal, where the location service request includes a real address, location information, a type of location service request, and a location service provider of the Internet of Things terminal; replacing the real address of the Internet of Things terminal in the location service request with a temporary address using a smart contract, and sending the replaced location service request to the location service provider; receiving a location service response sent by the location service provider, where the location service response includes the temporary address and response information generated by the location service provider based on the location information and the type of the location service request; and replacing the temporary address in the location service response with the real address using the smart contract, and sending the replaced location service response to the Internet of Things terminal.

[0018] It should be understood that both the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application.

[0019] In order to more clearly describe the embodiments of the present application or the technical solutions in the prior art, the following will briefly describe the drawings that need to be used in the description of the embodiments or the prior art. It should be apparent that the drawings in the following description are only some embodiments of the present application, and those skilled in the art can further obtain other drawings based on these drawings without creative efforts. The drawings are for further understanding of the present disclosure, and constitute a part of the specification, and are used to interpret the present disclosure together with the following detailed description, but do not limit the present disclosure. In the drawings, [Brief description of the drawings]

[0020] [Figure 1]FIG. 1 is a flowchart of a method for processing location-based service data shown in an exemplary embodiment. [Diagram 2] FIG. 2 is a flowchart of another location-based service data processing method shown in an exemplary embodiment. [Diagram 3] FIG. 3 is a structural diagram of an application example provided by one or more embodiments of the present disclosure. [Figure 4] FIG. 4 is a structural diagram of the location-based service data processing device shown in the exemplary embodiment. [Diagram 5] FIG. 5 is a structural diagram of an electronic device shown in an exemplary embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0021] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, and are not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without any creative effort fall within the scope of protection of the present application. In addition, in the embodiments of the present application, the terms "first", "second", etc. are used to distinguish similar objects, and are not required to describe a specific order or sequence.

[0022] One or more embodiments of the present disclosure disclose a method for processing location-based service data to improve the security of the real address of an Internet of Things terminal.

[0023] Referring to FIG. 1, based on the flowchart of the location-based service data processing method shown in the exemplary embodiment, as shown in FIG. 1, it includes: S101: Receive a location service request sent by an Internet of Things terminal, where the location service request includes a real address, location information, a type of location service request, and a location service provider of the Internet of Things terminal.

[0024] The execution subject of this embodiment is a blockchain, which is located between an Internet of Things terminal and a location service provider, and realizes communication between the Internet of Things terminal and the location service provider. The Internet of Things terminal in this embodiment can include mobile phones, automobiles, etc., and the location service side can include operating systems such as IOS, Android, etc., and is not specifically limited here. 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, and the service node uses a minimized storage method and only stores location service information related to the corresponding location service provider. The blockchain further includes a supervision node corresponding to a supervision department, and the supervision node uses a full storage method and stores all location service information, thereby realizing effective supervision of the location service provided by the location provider by the supervision department, and ensuring compliance of the location-based service.

[0025] In a specific implementation, the Internet of Things terminal sends a location service request to the blockchain, which includes the real address of the Internet of Things device, location information, the type of the location service request and the location service provider, and of course can also include other content, and this embodiment is not specifically limited. The real address of the Internet of Things device is, for example, the real IP (Chinese full name: Internet Protocol, English full name: Internet Protocol) address and the real MAC (Chinese full name: Media Access Control, English full name: Media Access Control) address of the Internet of Things device, and the type of the location service request is, for example, weather information corresponding to the location information, that is, the location service request is used to request weather information corresponding to the location information of the Internet of Things terminal.

[0026] It should be noted that after this step, the location service request can also be sent to and stored in the supervisor node, that is, the location service information stored by the supervisor node includes the location service request sent by the terminal equipment.

[0027] S102: Using a smart contract to replace the real address of the Internet of things terminal in the location service request with a temporary address, and sending the replaced location service request to the location service provider.

[0028] In this step, the blockchain uploads the location service request sent by the Internet of Things terminal to the chain, and automatically replaces the real address therein with a temporary address using a smart contract. In addition, the blockchain uses an off-chain monitoring mechanism to send the replaced location service request through the corresponding service node to the location service provider in the location service request, which includes the temporary address of the Internet of Things device, location information, the type of the location service request and the location service provider, and of course can also include other content, and this embodiment is not specifically limited.

[0029] S103: Receive a location service response sent by the location service provider, where the location service response includes the temporary address and response information generated by the location service provider based on the location information and a type of the location service request.

[0030] In a specific implementation, the location service provider receives the location service request sent by the blockchain through the corresponding service node, and generates response information according to the location information and the type of location service therein, for example, the weather information corresponding to the location information is minus 12 degrees Celsius. The location service provider returns a 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, which includes the temporary address of the Internet of Things device and the above response information.

[0031] It should be noted that after this step, the location service response can also be sent to the supervisor node for storage, that is, the location service information stored by the supervisor node includes the location service response returned by the location service provider.

[0032] S104: Using the smart contract to replace the temporary address in the location service response with the real address, and sending the replaced location service response to the Internet of Things terminal.

[0033] In this step, the blockchain uploads the location service response returned by the location service provider to the chain, and automatically replaces the temporary address therein with a real address using a smart contract. Furthermore, the blockchain returns a replaced location service response to the Internet of Things terminal corresponding to the real address through an off-chain monitoring mechanism, which includes the real address of the Internet of Things device and the above response information. After receiving the replaced location service response, the Internet of Things terminal displays information and provides services to the user.

[0034] The location-based service data processing method provided in the embodiment of the present application uses a blockchain to realize communication between an Internet of Things terminal and a location service provider. Specifically, the Internet of Things terminal sends a location service request to the blockchain, and the blockchain uses a smart contract to replace the real address of the Internet of Things terminal therein 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 according to the location information in the location service request and the response information generated by the type of the location service request. The blockchain uses a smart contract to re-replace the temporary address of the Internet of Things terminal therein with a real address, and returns the replaced location service response to the Internet of Things terminal. As can be seen from the above, the location-based service data processing method provided in the embodiment of the present application realizes the replacement of the real address of the Internet of Things terminal by a smart contract in the blockchain, thereby playing the role of isolating the location service provider from obtaining the real address of the Internet of Things terminal. Under the premise of protecting the real address of the Internet of Things terminal from being obtained by the location service provider, the location-based service can still be completed and the return of the location service response is realized.

[0035] The embodiment of the present application discloses a method for processing location-based service data, and compared with the previous embodiment, the embodiment further describes and optimizes the technical solution. Specifically, Referring to FIG. 2, based on the flowchart of another location-based service data processing method shown in the exemplary embodiment, as shown in FIG. 2, it includes: S201: Receive a location service request sent by an Internet of Things terminal, where the location service request includes a real address, location information, a type of location service request, and a location service provider of the Internet of Things terminal.

[0036] S202: Using the smart contract, select a temporary address from an address pool in a chain, and replace the real address of the Internet of Things terminal in the location service request with the temporary address.

[0037] S203: Record the correspondence between the real address and the temporary address in the smart contract.

[0038] In this embodiment, temporary addresses are maintained by an address pool on the chain. When the blockchain receives a location service request sent by an Internet of Things terminal, a temporary address is randomly selected from the address pool on the chain to replace the real address in the location service request, and the correspondence between the real address and the temporary address is recorded in the smart contract.

[0039] S204: Send a replaced location service request to the location service provider.

[0040] S205: Receive a location service response sent by the location service provider, where the location service response includes the temporary address and response information generated by the location service provider based on the location information and the type of the location service request.

[0041] S206: Replace the temporary address in the location service response with the real address based on the correspondence recorded in the smart contract.

[0042] In a specific implementation, when the blockchain receives a location service response returned from 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.

[0043] S207: Send the replaced location service response to the Internet of Things terminal.

[0044] Based on this embodiment, as a possible embodiment, using the smart contract to select a temporary address from an address pool in a chain and replacing the real address of the Internet of Things terminal in the location service request with the temporary address includes: using the smart contract to select a temporary address with a status of unused from an address pool in a chain, replacing the real address of the Internet of Things terminal in the location service request with the temporary address, and updating the status of the temporary address to in use accordingly, and then replacing the temporary address in the location service response with the real address based on the correspondence recorded in the smart contract, further including updating the status of the temporary address to unused.

[0045] In this embodiment, the address pool in the chain includes all temporary addresses, and each temporary address corresponds to a state, including in use and unused. When the blockchain receives a location service request sent by an Internet of Things terminal, it randomly selects a temporary address with a state of unused from the address pool in the chain, replaces the real address of the Internet of Things terminal in the location service request with the temporary address, and then updates the state of the temporary address in the smart contract from unused to in use. When the blockchain receives a location service response returned by the location service provider, it replaces the temporary address in the location service response with the corresponding real address according to the correspondence recorded in the smart contract, and then updates the state of the temporary address from in use to unused.

[0046] Based on this embodiment, a possible embodiment includes: after replacing the real address of the Internet of Things terminal in the location service request with the temporary address, further removing the temporary address from the address pool in the chain; accordingly, after replacing the temporary address in the location service response with the real address based on the correspondence recorded in the smart contract, further adding the temporary address back to the address pool in the chain.

[0047] In this embodiment, the address pool in the chain only contains unused temporary addresses. When the blockchain receives a location service request sent by an Internet of Things terminal, it randomly selects one temporary address from the address pool in the chain, replaces the real address of the Internet of Things terminal in the location service request with the temporary address, and then deletes the temporary address from the address pool in the chain. When the blockchain receives a location service response returned by the location service provider, it replaces the temporary address in the location service response with the corresponding real address according to the correspondence recorded in the smart contract, and then rejoins the temporary address into the address pool in the chain.

[0048] It can be seen from this that this embodiment maintains temporary addresses by an address pool on the chain, and when the blockchain receives a location service request sent by an Internet of Things terminal, it randomly selects a temporary address from the address pool on the chain to replace the real address in the location service request. This embodiment realizes the replacement of the real address of the Internet of Things terminal by a smart contract in the blockchain, thereby playing the role of isolating the location service provider from obtaining the real address of the Internet of Things terminal, and under the premise of protecting the real address of the Internet of Things terminal from being obtained by the location service provider, it can still complete the location-based service and realize the return of the location service response.

[0049] The application embodiment provided by the present application will be described below. Please refer to FIG. 3, which is a structural diagram of the application embodiment provided by the present application. Specifically, the application embodiment may include the following steps: Step 1: Build the blockchain LBS conversion service alliance chain.

[0050] Under the initiative of the supervision department, a blockchain LBS conversion service alliance chain is established, and the participants of the alliance chain include a plurality of supervision nodes and operating system service provider nodes. The supervision node uses a full-volume storage method to record the LBS conversion service records stored in all operating system service provider nodes, and the operating system service provider uses a minimization storage method to only store the LBS conversion service records related to itself.

[0051] Step 2: The access device, such as a mobile phone, a car, etc., transmits location information. Internet of things terminals such as mobile phones and automobiles send location information and service requests to the blockchain LBS conversion service device, and the key information field includes "real MAC address of the equipment, LBS location information, type of location service request: request to return weather information of the current location to the equipment side, location service provider: IOS operating system".

[0052] Step 3: The blockchain LBS conversion service converts the device's real MAC address into the device's temporary MAC address.

[0053] The blockchain LBS conversion service uploads location service request information sent by Internet of Things terminals such as mobile phones and automobiles to the chain, and automatically replaces the "real MAC address of the equipment" with the "temporary MAC address of the equipment" through a smart contract, where the temporary MAC address of the equipment comes from a "MAC address pool on the chain", and MAC addresses in an "unused" state are randomly stored in this address pool. The smart contract automatically randomly selects a MAC address from the "MAC address pool on the chain" as the "temporary MAC address of the equipment", and the address status is updated to "in use".

[0054] The blockchain LBS conversion service sends a location service request to the designated location service provider through an off-chain monitoring mechanism, and the key information field includes "the temporary MAC address of the device, LBS location information, type of location service request: request to return weather information of the current location to the device side, location service provider: IOS operating system".

[0055] Step 4: The operating system, such as iOS or Android, receives the location information after LBS conversion.

[0056] The IOS operating system receives the location service request sent by the blockchain LBS conversion service, and the key information field includes "the temporary MAC address of the device, LBS location information, type of location service request: request to return weather information of the current location to the device side, location service provider: IOS operating system".

[0057] Step 5: The operating system (iOS, Android, etc.) responds with location service information.

[0058] The IOS operating system returns location service information to the blockchain LBS conversion service device based on the type of location service request, and the key information field includes "the temporary MAC address of the device, the returned location service request information: the weather information of the current location is minus 12 degrees Celsius."

[0059] Step 6: The blockchain LBS conversion service converts the temporary MAC address of the device into the real MAC address of the device.

[0060] The blockchain LBS conversion service chains up the location service information returned by the IOS operating system and automatically replaces the "temporary MAC address of the device" with the "real MAC address of the device" through a smart contract.

[0061] The blockchain LBS conversion service sends location service information to the designated device through an off-chain monitoring mechanism, and the key information field contains "the device's real MAC address, the returned location service request information: the weather information for the current location is minus 12 degrees Celsius". At the same time, the smart contract automatically releases the "device's temporary MAC address" to an "unused" state and rejoins the "on-chain MAC address pool".

[0062] Step 7: Access devices such as mobile phones, cars, etc. receive the location service information after LBS conversion.

[0063] Access devices such as mobile phones and automobiles receive the location service information converted by the blockchain LBS, and the key information field contains "the device's real MAC address, the returned location service request information: the weather information for the current location is minus 12 degrees Celsius", which is used to display information and provide services to users.

[0064] The following describes a location-based service data processing device provided by an embodiment of the present application, and the location-based service data processing device described below and the location-based service data processing method described above can be mutually referenced.

[0065] Referring to FIG. 4, based on the structural diagram of the location-based service data processing device shown in the exemplary embodiment, as shown in FIG. A first receiving module 401, which is used to receive a location service request sent by an Internet of Things terminal, where the location service request includes a real address, location information, a type of location service request, and a location service provider of the Internet of Things terminal; A first substitution module 402, which is used to substitute a real address of the Internet of Things terminal in the location service request with a temporary address by using a smart contract, and send the substituted location service request to the location service provider; a second receiving module 403, which is used to receive a location service response sent by the location service provider, where the location service response includes the temporary address and response information generated by the location service provider based on the location information and the type of the location service request; and a second substitution module 404, used for substituting the temporary address in the location service response with the real address using the smart contract, and sending the substituted location service response to the Internet of Things terminal.

[0066] The location-based service data processing device provided in the embodiment of the present application uses a blockchain to realize the communication between the Internet of Things terminal and the location service provider. Specifically, the Internet of Things terminal sends a location service request to the blockchain, and the blockchain uses a smart contract to replace the real address of the Internet of Things terminal therein 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 according to the location information in the location service request and the response information generated by the type of the location service request. The blockchain uses a smart contract to re-replace the temporary address of the Internet of Things terminal therein with a real address, and returns the replaced location service response to the Internet of Things terminal. As can be seen, the location-based service data processing device provided in the embodiment of the present application realizes the replacement of the real address of the Internet of Things terminal by the smart contract in the blockchain, thereby playing the role of isolating the location service provider from obtaining the real address of the Internet of Things terminal, and under the premise of protecting the real address of the Internet of Things terminal from being obtained by the location service provider, the location-based service can still be completed and the return of the location service response is realized.

[0067] Based on the above embodiment, the first replacement module 402: A first substitution unit, which is used to select a temporary address from an address pool in a chain using the smart contract, and substitute the real address of the Internet of Things terminal in the location service request with the temporary address; A recording unit used for recording the correspondence between the real address and the temporary address in the smart contract; a first sending unit, used for sending the replaced location service request to the location service provider; Correspondingly, the second permutation module 404 A second replacement unit, which is used to replace the temporary address in the location service response with the real address according to the corresponding relationship recorded in the smart contract; and a second sending unit, used for sending the replaced location service response to the Internet of Things terminal.

[0068] Based on the above embodiment, the first replacement unit is specifically a unit that uses the smart contract to select a temporary address with an unused status from an address pool in a chain, replaces the real address of the Internet of Things terminal in the location service request with the temporary address, and updates the status of the temporary address in use.

[0069] Correspondingly, the second permutation module 404 The addressing device further includes an updating unit for updating a status of the temporary address to unused.

[0070] Based on the above embodiment, the first replacement module 402: a deletion unit for deleting the temporary address from an address pool in the chain; Correspondingly, the second permutation module 404 It further includes a joining unit used to rejoin the temporary address to an address pool in the chain.

[0071] Based on the above embodiment, the blockchain includes a service node corresponding to a location service provider.

[0072] The first substitution module 402 is specifically a module that uses a smart contract to substitute the real address of the Internet of Things terminal in the location service request with a temporary address, and sends the replaced location service request to the location service provider via a corresponding service node.

[0073] The second receiving module 403 is specifically a module for receiving a location service response sent by the location service provider via a corresponding service node.

[0074] Based on the above embodiment, the block chain further includes a supervisory node corresponding to a supervisory department; The apparatus comprises: A first sending module is used for sending a location service request sent by an Internet of Things terminal to the supervisor node after receiving the location service request; A second sending module is used for sending the location service response to the supervisor node after receiving the location service response sent by the location service provider.

[0075] According to the above embodiment, the location service provider includes an operating system.

[0076] Regarding the apparatus in the above embodiment, the specific method by which each module performs the operation has already been described in detail in the embodiment relating to the method, and will not be described in detail here.

[0077] Based on the hardware implementation of the above program modules, and for implementing the method of the embodiment of the present application, the embodiment of the present application further provides an electronic device. FIG. 5 is a structural diagram of the electronic device shown in the exemplary embodiment. As shown in FIG. 5, the electronic device includes: A communication interface 1 capable of exchanging information with other equipment, such as a network equipment, and a processor 2, which is connected to the communication interface 1, for implementing information exchange with other devices, and is used for implementing the location-based service data processing method provided by the one or more technical solutions when executing a computer program, where the computer program is stored in a memory 3.

[0078] Of course, in practical application, various assemblies in an electronic device are coupled to each other through a bus system 4. The bus system 4 is used to realize connection communication between these assemblies. In addition to a data bus, the bus system 4 further includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the various buses are referred to as the bus system 4 in FIG. 5.

[0079] The memory 3 in the present embodiment is used to store various types of data to support the operation of the electronic device, examples of which include any computer program for running on the electronic device.

[0080] It should be noted that the memory 3 may be a volatile memory or a non-volatile memory, or may include both a volatile memory and a non-volatile memory. Here, the non-volatile memory may 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), an electrically erasable programmable read-only memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), a magnetic random access memory (FRAM, Ferromagnetic Random Access Memory), a flash memory, a magnetic surface memory, an optical disk, or a read only disk (CD-ROM, Compact Disc Read-Only Memory), and the magnetic surface memory may be a magnetic disk memory or a tape memory. The volatile memory may be a random access memory (RAM, Random Access Memory), which is used as an external cache memory.By way of example and non-limiting explanation, many types of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct Rambus random access memory (DRRAM). The memory 2 described in the embodiments of the present application is intended to include, but is not limited to, these and any other suitable types of memory.

[0081] The method disclosed in the above embodiment of the present application can be applied to or realized by the processor 2. The processor 2 may be an integrated circuit chip and has the ability to process signals. In the process of realization, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 2 or a command in the form of software. The above processor 2 may be a general-purpose processor, a DSP, or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware assembly, etc. The processor 2 can realize or execute each method, step and logic block diagram disclosed in the embodiment of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. With reference to the steps of the method disclosed in the embodiment of the present application, they can be directly embodied to be executed and completed by a hardware decoding processor, or can be executed and completed by combining hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in a memory 3, and the processor 2 reads the program in the memory 3 and combines with the hardware to complete the steps of the method.

[0082] When the processor 2 executes the program, it realizes the corresponding processes in each method of the embodiments of the present application, and the description thereof is omitted here for the sake of brevity.

[0083] In an exemplary embodiment, the embodiment of the present application further provides a storage medium, i.e. a computer storage medium, specifically a computer readable storage medium, including, for example, a memory 3 storing a computer program, the computer program can be executed by the processor 2 to complete the steps of the above method. The computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.

[0084] Those skilled in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware associated with program instructions, and the above program can be stored in a computer-readable storage medium, and when the program is executed, the steps including the above method embodiments are executed. The above storage medium includes various media capable of storing program codes, such as a mobile storage device, a ROM, a RAM, a magnetic disk, or an optical disk.

[0085] Alternatively, the above integrated units of the present application may be realized in the form of a software functional module and stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solutions of the embodiments of the present application may be essentially or in part embodied in the form of a software product, and the computer software product is stored in a storage medium and includes a plurality of instructions for making an electronic device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the methods described in each embodiment of the present application. The above storage medium includes various media capable of storing program codes, such as a mobile storage device, a ROM, a RAM, a magnetic disk, or an optical disk.

[0086] The above description is merely a specific embodiment of the present application, and the scope of protection of the present application is not limited thereto, and any modifications or replacements that a person skilled in the art can easily think of within the technical scope disclosed in the present application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be determined by the appended claims.

Claims

1. A method for processing location-based service data applied to a blockchain, comprising: Receiving a location service request sent by an Internet of Things terminal, the location service request including a real address, location information, a type of location service request, and a location service provider of the Internet of Things terminal; Using a smart contract to replace the real address of the Internet of Things terminal in the location service request with a temporary address, and sending the replaced location service request to the location service provider; receiving a location service response sent by the location service provider, the location service response including the temporary address and response information generated by the location service provider based on the location information and a type of the location service request; and using the smart contract to replace the temporary address in the location service response with the real address, and sending the replaced location service response to the Internet of Things terminal. How we process your Location-Based Service Data.

2. Utilizing the smart contract to replace the real address of the Internet of Things terminal in the location service request with a temporary address, Using the smart contract to select a temporary address from an address pool on a chain, and replacing the real address of the Internet of Things terminal in the location service request with the temporary address; and recording a correspondence between the real address and the temporary address in the smart contract; Utilizing the smart contract to replace the temporary address with the real address in the location service response includes: and replacing the temporary address in the location service response with the real address based on the correspondence recorded in the smart contract. The method for processing location-based service data according to claim 1 .

3. Utilizing the smart contract to select a temporary address from an address pool on a chain and replacing the real address of the Internet of Things terminal in the location service request with the temporary address; selecting a temporary address with an unused status from a pool of addresses on a chain using the smart contract; replacing a real address of the Internet of Things terminal in the location service request with the temporary address; updating the status of the temporary address while it is in use; After replacing the temporary address in the location service response with the real address based on the correspondence recorded in the smart contract, and updating a status of the temporary address to unused. The method for processing location-based service data according to claim 2 .

4. After replacing the real address of the Internet of Things terminal in the location service request with the temporary address, removing the temporary address from a pool of addresses in the chain; After replacing the temporary address in the location service response with the real address based on the correspondence recorded in the smart contract, and rejoining the temporary address to a pool of addresses in the chain. The method for processing location-based service data according to claim 2 .

5. The blockchain includes a service node corresponding to the location service provider; Sending the replaced location service request to the location service provider includes: sending a replaced location service request to the location service provider via a corresponding service node; receiving a location service response sent by the location service provider, receiving a location service response sent by the location service provider via a corresponding service node. The method for processing location-based service data according to claim 1 .

6. The blockchain further includes a supervisory node corresponding to a supervisory department; After receiving a location service request sent by the Internet of Things terminal, sending the location service request to the supervisor node; After receiving a location service response sent by the location service provider, and transmitting the location service response to the supervisor node. The method for processing location-based service data according to claim 5.

7. The location service provider includes an operating system. The method for processing location-based service data according to claim 1 .

8. A location-based service data processing device applied to a blockchain, comprising: A first receiving module, which is used to receive a location service request sent by an Internet of Things terminal, the location service request including a real address, location information, a type of the location service request, and a location service provider of the Internet of Things terminal; A first substitution module, which is used for substituting a real address of the Internet of Things terminal in the location service request with a temporary address by using a smart contract, and sending the substituted location service request to the location service provider; a second receiving module, which is used to receive a location service response sent by the location service provider, the location service response including the temporary address and response information generated by the location service provider based on the location information and the type of the location service request; a second replacement module, which is used to replace the temporary address in the location service response with the real address using the smart contract, and send the replaced location service response to the Internet of Things terminal. A location-based service data processor.

9. The first replacement module comprises: A first substitution unit, which is used to select a temporary address from an address pool in a chain using the smart contract, and substitute the real address of the Internet of Things terminal in the location service request with the temporary address; A recording unit used for recording the correspondence between the real address and the temporary address in the smart contract; a first sending unit, used for sending the replaced location service request to the location service provider; The second replacement module comprises: A second substitution unit, which is used to substitute the temporary address in the location service response with the real address according to the corresponding relationship recorded in the smart contract; and a second sending unit, which is used to send the replaced location service response to the Internet of Things terminal. The location-based service data processing device of claim 8.

10. The first replacement unit is a unit for using the smart contract to select a temporary address with an unused status from an address pool in a chain, replacing the real address of the Internet of Things terminal in the location service request with the temporary address, and updating the status of the temporary address in use; The second replacement module comprises: The address spacer further includes an update unit for updating the status of the temporary address to unused. The location-based service data processing device of claim 9.

11. The first replacement module comprises: a deletion unit for deleting the temporary address from an address pool in the chain; The second replacement module comprises: and a joining unit for rejoining the temporary address to an address pool in the chain. The location-based service data processing device of claim 9.

12. The blockchain includes a service node corresponding to the location service provider; The first substitution module is a module for substituting a real address of the Internet of Things terminal in the location service request with a temporary address by using a smart contract, and sending the substituted location service request to the location service provider through a corresponding service node; The second receiving module is a module for receiving a location service response sent by the location service provider via a corresponding service node. The location-based service data processing device of claim 8.

13. The blockchain further includes a supervisory node corresponding to a supervisory department; The apparatus comprises: A first sending module is used for sending a location service request sent by an Internet of Things terminal to the supervisor node after receiving the location service request; a second sending module, which is used for sending the location service response to the supervisor node after receiving the location service response sent by the location service provider. The location-based service data processing device of claim 12.

14. The location service provider includes an operating system. The location-based service data processing device of claim 8.

15. 1. An electronic device comprising: A memory used to store a computer program; a processor adapted to implement the steps of the location-based service data processing method according to any one of claims 1 to 7 when executing the computer program. Electronic devices.

16. 1. A computer-readable storage medium, comprising: A computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the location-based service data processing method according to any one of claims 1 to 7 are realized. A computer-readable storage medium.

Citation Information

Patent Citations

  • Security risk information management method and device based on blockchain, equipment and medium

    CN111277608A

  • Method and system for address concealed communication, and privacy gateway

    JP2003069605A

  • Message converter and communication method

    JP2005236523A

  • System and method for managing position information, and program

    JP2010282401A

  • System and method for providing interface for interworking between heterogeneous IoT platform devices

    KR102214647B1