CN112380230B - Position parameter updating method and device, computer equipment and storage medium - Google Patents

Position parameter updating method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112380230B
CN112380230B CN202011411527.5A CN202011411527A CN112380230B CN 112380230 B CN112380230 B CN 112380230B CN 202011411527 A CN202011411527 A CN 202011411527A CN 112380230 B CN112380230 B CN 112380230B
Authority
CN
China
Prior art keywords
devices
location parameter
parameter
identifier
position parameter
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202011411527.5A
Other languages
Chinese (zh)
Other versions
CN112380230A (en
Inventor
王少鸣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011411527.5A priority Critical patent/CN112380230B/en
Publication of CN112380230A publication Critical patent/CN112380230A/en
Application granted granted Critical
Publication of CN112380230B publication Critical patent/CN112380230B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/23Updating
    • 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

Abstract

The embodiment of the application discloses a position parameter updating method and device, computer equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: determining the difference value between the position parameters of every two pieces of equipment according to the position parameters of at least three pieces of equipment belonging to the target area, and taking the difference value as the distance between every two pieces of equipment; determining the position parameter of one device corresponding to the minimum distance in the plurality of distances as a reference position parameter; and if at least two distances corresponding to any one of the at least three devices are greater than the first distance threshold value, replacing the position parameter of any one device with the reference position parameter. And replacing the position parameter of any equipment by taking the position parameter of one equipment corresponding to the minimum distance as a reference position parameter, and automatically correcting the wrong position parameter reported by the equipment by referring to the position parameters of other equipment in the same area, thereby ensuring the accuracy of equipment positioning.

Description

Position parameter updating method and device, computer equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a position parameter updating method, a position parameter updating device, computer equipment and a storage medium.
Background
With the development and application of computer technology, the application of biometric technologies such as face recognition and fingerprint recognition is becoming more and more common, and when a service request of a user is processed, the biometric technology can be generally used to authenticate the user, for example, online payment is performed based on face recognition.
In order to ensure information security, when the user is authenticated, security authentication can be performed based on the location parameters reported by the user equipment. For example, if it is determined that the face recognition is performed on the user a by the device in beijing in the previous minute and the face recognition is also performed on the user a by the device in shenzhen in the next minute based on the location parameter of the device, it indicates that the service request of the user a is at risk and needs to be intercepted.
However, the location parameters reported by the device may be abnormal, and the verification result is easily affected. It is therefore desirable to provide a method for automatically updating the location of an anomaly.
Disclosure of Invention
The embodiment of the application provides a method and a device for updating position parameters, computer equipment and a storage medium, which can update the position parameters reported by the equipment. The technical scheme is as follows:
in one aspect, a method for updating location parameters is provided, where the method includes:
determining the difference value between the position parameters of every two pieces of equipment according to the position parameters of at least three pieces of equipment belonging to the target area, and taking the difference value as the distance between every two pieces of equipment;
determining the position parameter of one device corresponding to the minimum distance in the plurality of distances as a reference position parameter;
and if at least two distances corresponding to any one of the at least three devices are greater than a first distance threshold value, replacing the position parameter of any one device with the reference position parameter.
In another aspect, a location parameter updating apparatus is provided, the apparatus including:
the distance determining module is used for determining the difference value between the position parameters of every two pieces of equipment according to the position parameters of at least three pieces of equipment belonging to the target area, and the difference value is used as the distance between every two pieces of equipment;
the position parameter determining module is used for determining the position parameter of one device corresponding to the minimum distance in the plurality of distances as a reference position parameter;
a location parameter updating module, configured to replace the location parameter of any one of the at least three devices with the reference location parameter if at least two distances corresponding to the any one of the at least three devices are greater than a first distance threshold.
Optionally, the apparatus further comprises:
a first identifier query module, configured to query, according to an established first association relationship, a first device identifier corresponding to a target area identifier, where the first association relationship includes an association relationship between an area identifier corresponding to any area and a first device identifier corresponding to any device belonging to the any area;
and the position parameter query module is used for querying the position parameter corresponding to the first equipment identifier.
Optionally, the apparatus further comprises:
the information receiving module is used for receiving POI information reported by a plurality of devices;
and the relationship establishing module is used for establishing the first association relationship between the area identifier and the first equipment identifier contained in each POI message.
Optionally, the location parameter query module includes:
and the position parameter inquiry unit is used for inquiring the position parameter corresponding to the first equipment identifier from the received multiple POI information.
Optionally, the apparatus further comprises:
a second identifier query module, configured to query, according to an established second association relationship, a second device identifier corresponding to the target area identifier, where the second association relationship includes an association relationship between an area identifier corresponding to any area and a second device identifier corresponding to another device connected to any device belonging to the any area, and a connection condition between any two devices is that a distance between any two devices is smaller than a second distance threshold;
the location parameter query module is further configured to query a location parameter corresponding to the second device identifier.
Optionally, the apparatus further comprises:
the information receiving module is used for receiving POI information reported by a plurality of devices;
and the relationship establishing module is used for establishing the second association relationship between the area identifier and the second equipment identifier contained in each POI message.
Optionally, the location parameter query module includes:
the location parameter query unit is further configured to query a location parameter corresponding to the second device identifier from the received multiple pieces of POI information.
Optionally, the location parameter updating module is further configured to determine the reference location parameter as a location parameter corresponding to any first device identifier if the location parameter corresponding to any first device identifier is not queried.
Optionally, the location parameter updating module is further configured to determine, if two first device identifiers corresponding to the target area identifier are queried, and a location parameter corresponding to one of the first device identifiers is queried, but a location parameter corresponding to another one of the first device identifiers is not queried, the queried location parameter as the location parameter corresponding to the another one of the first device identifiers.
Optionally, the location parameter determining module includes:
a minimum distance determination unit for determining a minimum distance of the plurality of distances that is smaller than a third distance threshold;
and the position parameter determining unit is used for determining the position parameter of one device corresponding to the minimum distance as the reference position parameter.
Optionally, the apparatus is applied in a blockchain node, and the apparatus further includes:
a location parameter storage module for storing the reference location parameter in a block chain;
the location parameter updating module comprises:
a reference location parameter querying unit, configured to query the reference location parameter from the block chain if at least two distances corresponding to any one of the at least three devices are greater than the first distance threshold;
a location parameter replacing unit, configured to replace the location parameter of any one of the devices with the reference location parameter.
In another aspect, a computer device is provided, which includes a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the location parameter updating method according to the above aspect.
In another aspect, a computer-readable storage medium is provided, in which at least one computer program is stored, the at least one computer program being loaded and executed by a processor to implement the operations performed in the location parameter updating method according to the above aspect.
In another aspect, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer program code, the computer program code being stored in a computer-readable storage medium, the computer program code being read by a processor of a computer device from the computer-readable storage medium, the computer program code being executed by the processor such that the computer device implements the operations performed in the location parameter updating method according to the above aspect.
In the method provided in the embodiment of the present application, since at least three devices belong to the target area, the true distance between each two devices in the at least three devices is small, and if the location parameter reported by the device is correct, the distance between any two devices determined according to the location parameter of the device should be small. On the contrary, if at least two distances among the distances between any one device and other devices are greater than the first distance threshold, the position parameters of the any one device are not accurate. Therefore, the position parameter of one of the devices corresponding to the minimum distance is used as a reference position parameter to replace the position parameter of any one of the devices, and the wrong position parameter reported by the device is automatically corrected by referring to the position parameters of other devices in the same area, so that the accuracy of device positioning is guaranteed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application.
Fig. 2 is a schematic diagram of another implementation environment provided by the embodiment of the present application.
Fig. 3 is a schematic structural diagram of a blockchain system according to an embodiment of the present disclosure.
Fig. 4 is a schematic diagram of a block structure according to an embodiment of the present disclosure.
Fig. 5 is a schematic diagram of a terminal device according to an embodiment of the present application.
Fig. 6 is a flowchart of a location parameter updating method according to an embodiment of the present application.
Fig. 7 is a flowchart of a location parameter updating method according to an embodiment of the present application.
Fig. 8 is a system architecture diagram provided in an embodiment of the present application.
Fig. 9 is a schematic structural diagram of a location parameter updating apparatus according to an embodiment of the present application.
Fig. 10 is a schematic structural diagram of another location parameter updating apparatus according to an embodiment of the present application.
Fig. 11 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Fig. 12 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application will be further described in detail with reference to the accompanying drawings.
It will be understood that the terms "first," "second," and the like as used herein may be used herein to describe various concepts, which are not limited by these terms unless otherwise specified. These terms are only used to distinguish one concept from another. For example, a first apparatus may be termed a second apparatus, and, similarly, a second apparatus may be termed a first apparatus, without departing from the scope of the present application.
For example, at least one device may be any integer number of devices greater than or equal to one, such as one device, two devices, three devices, and the like. The plurality of devices means two or more, and for example, the plurality of devices may be any integer of two or more, such as two devices or three devices. Each means each of at least one, for example, each device means each of a plurality of devices, and if the plurality of devices is 3 devices, each device means each of the 3 devices.
In order to facilitate understanding of the technical processes of the embodiments of the present application, some terms referred to in the embodiments of the present application are explained below:
blockchain (Blockchain): the method is a novel application mode of distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm computer technology. The blockchain is essentially a decentralized database, which is a string of data blocks associated by cryptography, each data block containing information about a network transaction for verifying the validity (anti-counterfeiting) of the information and generating the next block, each block containing a timestamp and a link to the previous block. In a narrow sense, a blockchain is a distributed ledger of data blocks assembled in a sequential manner into a chain data structure in chronological order and cryptographically secured as non-falsifiable and non-forgeable, i.e. the data in the blockchain will be irreversible once recorded.
Consensus Mechanism (Consensus Mechanism): the block chain system is a mathematical algorithm for establishing trust and obtaining rights and interests among different nodes. In the block chain system, the verification and confirmation of the transaction can be completed in a short time through the voting of special nodes, and if a plurality of nodes with irrelevant benefits can achieve consensus on a transaction, all the nodes in the system can also achieve consensus on the transaction.
An execution subject of the embodiment of the present application is a computer device, where the computer device is a terminal or a server, and the computer device is an information management server capable of updating a location parameter, as shown in fig. 1, to describe an implementation environment of the embodiment of the present application, where the implementation environment includes: the mobile terminal comprises at least three terminal devices 101 and an information management server 102, wherein the at least three terminal devices belong to the same geographical area, the at least three terminal devices 101 are used for reporting position parameters to the information management server 102, and the information management server 102 is used for updating wrong position parameters in the position parameters reported by the at least three terminal devices 101 based on the received position parameters.
The information management server 102 is an independent physical server, or a server cluster or distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, Network service, cloud communication, middleware service, domain name service, security service, CDN (Content Delivery Network), big data and artificial intelligence platform, and the like. The at least three terminal devices 101 are face-brushing payment devices, code-scanning payment devices, cash registers, smart phones, tablet computers, notebook computers, desktop computers, smart speakers, smart watches, or other devices with a biometric function, and the like, which is not limited in the embodiment of the present application. The at least three terminal devices 101 are respectively connected with the information management server 102 directly or indirectly through wired or wireless communication, which is not limited in the embodiment of the present application.
In a possible implementation manner, the information management server 102 manages terminal devices in a plurality of geographic areas, as shown in fig. 2, the information management server 102 is further connected to at least three terminal devices 103 and at least three terminal devices 104, where areas to which the at least three terminal devices 103 belong, areas to which the at least three terminal devices 104 belong, and areas to which the at least three terminal devices 101 belong are different, and in fig. 2, it is shown that the at least three terminal devices 101 belong to an area a, the at least three terminal devices 103 belong to an area B, and the at least three terminal devices 104 belong to an area C. The information management server 102 updates the location parameters of the terminal devices in the same geographic area, such as correcting incorrect location parameters, based on the location parameters of at least three terminal devices in the same geographic area.
In a possible implementation manner, the information management server 102 is a blockchain link point in a blockchain system, such as the structural diagram of the blockchain system shown in fig. 3, where the blockchain system includes a plurality of blockchain nodes, the plurality of blockchain nodes are information management servers, and any one blockchain link point in the blockchain system may perform one or more steps of the location parameter updating method provided by the embodiment of the present application. Wherein the block link point is connected to a plurality of terminal devices. A point-To-point (P2P, Peer To Peer) network formed between blockchain nodes, and the P2P Protocol is an application layer Protocol operating on a Transmission Control Protocol (TCP). In the blockchain system, any computing device such as a server, a user terminal, etc. can be added to form a blockchain node.
Referring to the functions of each blockchain node in the blockchain system shown in fig. 3, the functions involved include routing and application, wherein the routing is used for supporting communication between blockchain nodes, and the application is used for deployment in the blockchain system, and a specific service is realized according to actual service requirements:
(1) routing, a basic function that block-linked points have, is used to support communication between block-linked points.
(2) The application is used for being deployed in a block chain, realizing specific services according to actual service requirements, recording data related to the realization functions to form recording data, carrying a digital signature in the recording data to represent a source of task data, and sending the recording data to other block chain nodes in the block chain system, so that the other block chain nodes add the recording data to a temporary block when the source and integrity of the recording data are verified successfully.
For example, the services implemented by the application include:
(1) the shared account book is used for providing functions of operations such as storage, inquiry and modification of account data, sending the record data of the operations on the account data to other block chain nodes in the block chain system, storing the record data into a temporary block as a response for acknowledging that the account data is effective after the other block chain nodes are verified to be effective, and also sending confirmation to the block chain node initiating the operations.
(2) And the information management is used for storing the position parameters of the terminal equipment and updating the position parameters of a plurality of terminal equipment in the same geographic area.
Referring to fig. 4, fig. 4 is an optional schematic diagram of a Block Structure (Block Structure) provided in this embodiment, each Block includes a hash value of a transaction record stored in the Block (hash value of the Block) and a hash value of a previous Block, and the blocks are connected by the hash values to form a Block chain. The block may include information such as a time stamp at the time of block generation.
The location parameter updating method provided by the embodiment of the application can be applied to any scene for updating location parameters. For example, in a scenario of online shopping and online payment, a plurality of terminal devices 501 for performing face-brushing payment or code-scanning payment are deployed in different stores by dividing The stores into regions, and as shown in fig. 5, The terminal device 501 is a face terminal device of The Internet of Things (IOT).
Each terminal device 501 reports the position parameters to the information management server, and the information management server processes the position parameters reported by at least three terminal devices 501 belonging to the same store by using the method provided by the embodiment of the application, so as to determine the accurate reference position parameters and the wrong position parameters, and replace the wrong position parameters with the reference position parameters, thereby realizing the automatic correction of the wrong position parameters.
Fig. 6 is a flowchart of a location parameter updating method according to an embodiment of the present application. An execution subject of the embodiment of the present application is an information management server, and referring to fig. 6, the method includes:
601. the information management server determines a difference between the position parameters of each two devices as a distance between each two devices according to the position parameters of at least three devices belonging to the target area.
In the embodiment of the application, a plurality of devices for providing services for users, such as terminal devices for code scanning payment or face brushing payment, are deployed in different areas, and the devices can process service requests of the users. Alternatively, the area is divided according to the requirement, for example, the area is divided by stores in the scene of online shopping, and one store is one area. Alternatively, the regions are divided according to geographical location, e.g., one cell is a region, one street is a region, etc.
The information management server is used for managing the position parameters of the devices, and ensuring the safety of the service request of the user according to the position parameters of the devices, namely performing risk control on the service request. For example, if the information management server determines that the face recognition is performed on the user a by the device in beijing in the previous minute and the face recognition is also performed on the user a by the device in shenzhen in the next minute based on the location parameter of the device, it indicates that the service request of the user a is at risk, and the information management server performs interception processing on the service request of the user a.
However, the location parameter stored in the information management server may be an erroneous location parameter, and thus the location parameter needs to be updated to correct the erroneous location parameter. In the embodiment of the application, the position parameters of the devices in the area are updated by taking the position parameters of the devices in the area as a reference, taking into account that the actual position parameters of the devices in the area have small differences.
Taking the example of updating the location parameters of the devices belonging to the target area, the information management server determines the difference between the location parameters of each two of the at least three devices according to the location parameters of the at least three devices belonging to the target area, and determines the distance between each two devices according to the difference between the parameters of each two devices.
602. The information management server determines the position parameter of one of the devices corresponding to the minimum distance among the plurality of distances as a reference position parameter.
Since the at least three devices all belong to the target area, and the actual distance between each two devices in the at least three devices is small, if the location parameter reported by the device is correct, the distance between each two devices determined according to the location parameter should be small, so the information management server selects the minimum distance from the determined multiple distances, and can determine the location parameter of one of the two devices as the reference location parameter, where the reference location parameter is used to correct the wrong location parameter, if the location parameter corresponding to the minimum distance is an accurate location parameter.
603. And if at least two distances corresponding to any one of the at least three devices are greater than a first distance threshold, the information management server replaces the position parameter of any one device with the reference position parameter.
If the distance between any two devices is greater than a certain threshold, the location parameter of one of the two devices may be considered erroneous. In the embodiment of the present application, a first distance threshold is used as a reference, and if a certain distance is greater than the first distance threshold, it is determined that a location parameter of at least one device exists in two devices corresponding to the distance, which is wrong. Optionally, the first distance threshold is a distance between two points that are farthest apart in the target region. Optionally, the first distance threshold is set by the information management server itself, or determined by the information management server according to a setting operation of a maintenance worker, which is not limited in this embodiment of the application.
Since each of the at least three devices corresponds to at least two distances, assuming that the location parameter of a certain device is a wrong location parameter, the at least two distances corresponding to the certain device are both greater than the first distance threshold. Therefore, if at least two distances corresponding to any one of the at least three devices are greater than the first distance threshold, it is indicated that the location parameter of the any one device is erroneous, and the information management server replaces the location parameter of the any one device with the reference location parameter, thereby correcting the erroneous location parameter.
In the method provided by the embodiment of the present application, since at least three devices belong to the target area, the true distance between every two devices in the at least three devices is small, and if the location parameter reported by the device is correct, the distance between any two devices determined according to the location parameter of the device should be small. On the contrary, if at least two distances among the distances between any one device and other devices are greater than the first distance threshold, the position parameters of the any one device are not accurate. Therefore, the position parameter of one of the devices corresponding to the minimum distance is used as a reference position parameter to replace the position parameter of any one of the devices, and the wrong position parameter reported by the device is automatically corrected by referring to the position parameters of other devices in the same area, so that the accuracy of device positioning is guaranteed.
Fig. 7 is a flowchart of a location parameter updating method according to an embodiment of the present application. An execution subject of the embodiment of the present application is an information management server, and referring to fig. 7, the method includes:
701. and the information management server receives POI information reported by the multiple devices.
In the embodiment of the present application, a plurality of devices for providing services for a user are deployed in different areas, and the plurality of devices respectively report Point of Interest (POI) information to an information management server. The POI information of the device includes information related to the device, such as a device identifier, an area identifier of an area to which the device belongs, and a location parameter of the device.
In a possible implementation manner, multiple devices in the same area can be connected to each other, in this embodiment of the application, the connection condition of any two devices is that a distance between any two devices is smaller than a second distance threshold, for example, a bluetooth connection is established between any two devices, and a maximum distance of the bluetooth connection is the second distance threshold. Or, a wired connection is established between any two devices, and the maximum distance of the wired connection is the second distance threshold.
In one possible implementation manner, the POI information of the device includes a first device identifier, a second device identifier, a location parameter of the device, and an area identifier. The first device identifier included in the POI information is used to indicate a device that reports the POI information, for example, the first device identifier is a Serial Number of the device, a Serial Number (SN) of the device, or the like. The area identifier included in the POI information is used to indicate an area to which the device reporting the POI information belongs, for example, if an area is divided into stores, the area identifier is a store identifier, such as a store name. The second device identifier included in the POI information is used to indicate other devices connected to the device reporting the POI information. The location parameters included in the POI information are used to indicate the location where the device is located, and for example, the location parameters are longitude parameters and latitude parameters. The device may perform Positioning in different manners to obtain the location parameter, for example, Positioning via GPS (Global Positioning System), WIFI (wireless internet access), or base station.
For example, the data format of the POI information reported by the device is as follows:
{poi:{latitude,longtitude},b_sn:{sn1,sn3},storeid:store1,sn:sn2};
the POI indicates POI information, latiude indicates a latitude parameter, longtitude indicates a longitude parameter, { latiude, longtitude } indicates a location of the device, b _ SN indicates an SN list of other devices connected to the device, the SN list includes SN1 and SN3, storeid indicates a store identifier of a store to which the device belongs, SN indicates a device identifier of a device reporting the POI information, and the device identifier is SN 2.
And the information management server receives the POI information reported by the multiple devices and manages the POI information of the devices. Wherein the information management server provides location parameter update services based on the POI information of the device, and in addition, the computer device can provide other services, such as risk control services, location parameter query services, and the like, based on the POI information of the device.
In a possible implementation manner, a POI database is arranged in the information management server, and the information management server stores POI information of any device into the POI database when receiving the POI information reported by any device.
702. The information management server establishes a first association relationship between the area identifier and the first device identifier contained in each POI message.
In order to update the location parameters of the devices belonging to the same area based on the location parameters of the devices in the same area, it is necessary to determine the relationship between the areas and the devices, that is, to determine which area each of the multiple devices reporting the POI information belongs to. Therefore, the information management server analyzes the multiple pieces of POI information to obtain the area identifier and the first device identifier included in each piece of POI information.
The area identifier is used for indicating an area to which the device reporting the POI information belongs, and the first device identifier is used for indicating the device reporting the POI information, so that the information management server establishes a first association relationship between the area identifier included in each POI information and the first device identifier, and the first association relationship comprises an association relationship between the area identifier corresponding to any area and the first device identifier corresponding to any device belonging to any area, and can indicate which devices exist in any area.
703. And the information management server establishes a second association relationship between the area identifier and the second equipment identifier contained in each POI message.
The information management server analyzes the multiple pieces of POI information, and obtains a second device identifier included in each piece of POI information, where the second device identifier is used to indicate another device to which the device reporting the POI information is connected, and because a connection condition of any two devices is that a distance between any two devices is smaller than a second distance threshold, a distance between a first device corresponding to the first device identifier and a second device corresponding to the second device identifier is smaller than the second distance threshold, that is, the second device is closer to an area to which the first device belongs, within an acceptable error, the location parameters between the devices connected to each other can be corrected mutually, that is, the location parameters of the second device can also be used to update the location parameters of the devices in the area to which the first device belongs.
The information management server establishes a second association relationship between the area identifier included in each piece of POI information and the second device identifier, where the second association relationship includes an association relationship between the area identifier corresponding to any area and the second device identifier corresponding to another device connected to any device belonging to any area, and can indicate which devices exist in any area or in the vicinity of any area.
It should be noted that, in the embodiment of the present application, only the first association relationship between the first device identifier and the area identifier is respectively established, and the second association relationship between the second device identifier and the area identifier is established as an example for explanation. In another embodiment, the information management server analyzes the POI information to obtain a first device identifier, a second device identifier and an area identifier included in the POI information, and the information management server directly establishes a first association relationship between the first device identifier and the area identifier because the area identifier represents an area to which the first device belongs. Because the second device is connected with the first device, the second device may or may not belong to the area to which the first device belongs, the information management server queries the area to which the second device belongs based on the multiple pieces of POI information, if the area to which the second device belongs is the same as the area to which the first device belongs, the information management server establishes a first association relationship between the second device identifier and the area identifier, and if the area to which the second device belongs is not the same as the area to which the first device belongs, the information management server establishes a second association relationship between the second device identifier and the area identifier.
704. And the information management server inquires a first equipment identifier corresponding to the target area identifier according to the established first incidence relation.
In the embodiment of the present application, the location parameter of the device belonging to the target area is updated as an example, so after the information management server establishes the association relationship between the area identifier and the device identifier, if the location parameter of the device belonging to the target area is to be updated, which devices are included in the target area is queried. The information management server inquires a plurality of first equipment identifications corresponding to the target area identification according to the established first incidence relation, wherein the target area identification is used for indicating the target area.
705. And the information management server inquires the position parameter corresponding to the first equipment identifier.
After the information management server queries the first device identifier, it queries a location parameter corresponding to the first device identifier, that is, a location parameter reported by the first device indicated by the first device identifier.
When the device performs positioning, there may be a situation that positioning fails and the device does not acquire the location parameter, so the device may not report the location parameter, or the reported location parameter is null. Therefore, when the information management server queries the location parameters corresponding to the plurality of first device identifiers, the location parameters corresponding to a certain first device identifier may not be queried. For example, the information management server queries 7 first device identifiers, and when querying the location parameters corresponding to the 7 first device identifiers, only the location parameters corresponding to 5 of the 7 first device identifiers are queried, and the location parameters corresponding to the remaining 2 first device identifiers are not queried.
In one possible implementation manner, the information management server queries the location parameter corresponding to the first device identifier from the received multiple pieces of POI information. That is, the POI information reported by the first device indicated by the first device identifier is queried from the multiple pieces of POI information, and the location parameter included in the POI information is obtained.
706. And the information management server inquires a second equipment identifier corresponding to the target area identifier according to the established second incidence relation.
In the embodiment of the present application, the location parameter of the device belonging to the target area is updated as an example, so after the information management server establishes the association relationship between the area identifier and the device identifier, it is queried which devices are connected to all devices included in the target area, in addition to which devices are included in the target area. And the information management server inquires a plurality of second equipment identifications corresponding to the target area identification according to the established second incidence relation. Since the second devices indicated by the plurality of second device identifications are closer to the target area, the plurality of second devices can be approximately considered to belong to the target area.
707. And the information management server inquires the position parameter corresponding to the second equipment identifier.
After the information management server queries the second device identifier, it queries the location parameter corresponding to the second device identifier, that is, the location parameter reported by the device indicated by the second device identifier.
In one possible implementation manner, the information management server queries the location parameter corresponding to the second device identifier from the received multiple pieces of POI information. That is, the POI information reported by the second device indicated by the second device identifier is queried from the multiple POI information, and the location parameter included in the POI information is obtained.
It should be noted that, in the embodiment of the present application, only the first association relationship and the second association relationship are respectively established, and the first device identifier is queried in the first association relationship, and the second device identifier is queried in the second association relationship. In another embodiment, the information management server only establishes the first association relationship without establishing the second association relationship, that is, the information management server only performs the steps 702 and 704 and 707 without performing the steps 703 and 706 and 707.
708. The information management server determines a difference between the position parameters of each two devices as a distance between each two devices according to the position parameters of at least three devices belonging to the target area.
The information management server determines the difference value between the position parameters of every two devices in the at least three devices according to the inquired position parameters of the at least three devices belonging to the target area, and determines the distance between every two devices according to the difference value between the parameters of every two devices.
Optionally, the information management server obtains, by query, a location parameter corresponding to the first device identifier and a location parameter corresponding to the second device identifier, where the first device indicated by the first device identifier belongs to the target area, and a distance between the second device indicated by the second device identifier and a device in the target area is smaller than a second distance threshold, which may approximately be considered that the second device belongs to the target area. That is, the at least three devices include a device belonging to the target area and a device establishing a connection with a device in the target area.
Optionally, the information management server only queries the location parameter corresponding to the first device identifier, and does not query the location parameter corresponding to the second device identifier. That is, only the devices belonging to the target area are included in the at least three devices, and the devices establishing connection with the devices in the target area are not included.
709. The information management server determines the position parameter of one of the devices corresponding to the minimum distance among the plurality of distances as a reference position parameter.
Since the at least three devices all belong to the target area, and the actual distance between each two devices in the at least three devices is small, if the location parameter reported by the device is correct, the distance between each two devices determined according to the location parameter should be small, so the information management server selects the minimum distance from the determined multiple distances, and can determine the location parameter of one of the two devices as the reference location parameter, where the reference location parameter is used to correct the wrong location parameter, if the location parameter corresponding to the minimum distance is an accurate location parameter. The information management server may randomly select one of the two devices, and determine a location parameter of the selected device as a reference location parameter.
In one possible implementation manner, the information management server determines a minimum distance smaller than a third distance threshold value in the plurality of distances, and determines a location parameter of one of the devices corresponding to the minimum distance as a reference location parameter.
The information management server determines a distance smaller than a third distance threshold value in the plurality of distances, and if the information management server determines only one distance smaller than the third distance threshold value, determines the position parameter of one device corresponding to the distance as a reference position parameter. And if the information management server determines a plurality of distances smaller than the third distance threshold, selecting a minimum distance from the determined distances, and determining the position parameter of one device corresponding to the minimum distance as the reference position parameter.
710. And if at least two distances corresponding to any one of the at least three devices are greater than a first distance threshold, the information management server replaces the position parameter of any one device with the reference position parameter.
Different devices have different positioning modes, such as GPS positioning, WIFI positioning, or base station positioning, due to differences in hardware configuration or differences in device connection networks. The different positioning methods cause differences in the obtained location parameters, and there may be situations where the location parameters are missing or inaccurate, so it is necessary to determine whether the location parameters reported by the device are wrong location parameters.
Since the at least three devices all belong to the target area, the actual distance between every two devices of the at least three devices will be small, and therefore, if the location parameter reported by the device is correct, the distance between every two devices determined according to the location parameter should be small. Since each of the at least three devices corresponds to at least two distances, assuming that the location parameter of a certain device is a wrong location parameter, the at least two distances corresponding to the certain device are both greater than the first distance threshold. Therefore, if at least two distances corresponding to any one of the at least three devices are greater than the first distance threshold, it is indicated that the location parameter of the any one device is erroneous, and the information management server replaces the location parameter of the any one device with the reference location parameter, thereby correcting the erroneous location parameter. In the embodiment of the application, the position parameters of the same area are shared, so that a scheme for correcting the abnormal position parameters of the equipment based on end-to-end data sharing is realized.
Optionally, the first distance threshold is a distance between two points that are farthest apart in the target region. Optionally, the first distance threshold is set by the information management server itself, or determined by the information management server according to a setting operation of a maintenance worker, which is not limited in this embodiment of the application.
In one possible implementation, the location parameters include a longitude parameter and a latitude parameter.
Then, in the above-described step 708, the information management server determines, as a longitude distance between each two devices, a difference between the longitude parameters of each two devices based on the longitude parameters of at least three devices, and determines, as a latitude distance between each two devices, a difference between the latitude parameters of each two devices based on the latitude parameters of at least three devices.
In step 709, the information management server determines a longitude parameter of one of the devices corresponding to a minimum longitude distance of the plurality of longitude distances as a reference longitude parameter; the information management server determines a latitude parameter of one of the devices corresponding to a minimum latitude distance among the plurality of latitude distances as a reference latitude parameter.
In step 710, if at least two longitude distances corresponding to any one of the at least three devices are greater than the longitude distance threshold, the information management server replaces the longitude parameter of the any one device with the reference longitude parameter. If at least two latitude distances corresponding to any one of the at least three devices are greater than the latitude distance threshold, the information management server replaces the latitude parameter of the any one device with the reference latitude parameter.
711. And if the position parameter corresponding to any first equipment identifier is not inquired, the information management server determines the reference position parameter as the position parameter corresponding to any first equipment identifier.
In step 705 above, when the information management server queries the location parameter corresponding to the first device identifier, there may be a case that the location parameter corresponding to a certain first device identifier is not queried, that is, the location parameter not reported by the first device corresponding to the first device identifier or the reported location parameter is null, and the location parameter of the first device identifier needs to be automatically supplemented. Therefore, if the location parameter corresponding to any first device identifier is not queried, the information management server determines the reference location parameter as the location parameter corresponding to any first device identifier after determining the reference location parameter. Therefore, the problem that the position parameters of partial devices in the same area are lost is effectively solved by sharing the position parameters of the devices in the same area, so that the condition that the service is unavailable due to the lack of the position parameters is avoided, and the service availability is improved.
It should be noted that, the embodiment of the present application only describes a process of determining the reference location parameter as the location parameter corresponding to the first device identifier. In another embodiment, in step 707, when the information management server queries the location parameter corresponding to the second device identifier, there may be a case where the location parameter corresponding to a certain second device identifier is not queried, and if the location parameter corresponding to any second device identifier is not queried, the information management server determines the reference location parameter as the location parameter corresponding to the any second device identifier.
It should be noted that the embodiments of the present application only illustrate how to update the location parameters when the location parameters of at least three devices are queried. In another embodiment, if only two first device identifiers corresponding to the target area identifier are queried, and the location parameter corresponding to one of the first device identifiers is queried, but the location parameter corresponding to the other first device identifier is not queried, the information management server cannot determine which location parameter is correct and which location is wrong according to the distance between the devices, and therefore the information management server directly determines the queried location parameter as the location parameter corresponding to the other first device identifier.
For example, when the information management server queries that the target area identifier corresponds to the device identifier 1 and the device identifier 2, and queries the location parameters corresponding to the device identifier 1 and the device identifier 2, the information management server only queries the location parameter corresponding to the device identifier 1, and does not query the location parameter corresponding to the device identifier 2, and then determines the location parameter corresponding to the device identifier 2 as the location parameter corresponding to the device identifier 2.
It should be noted that, in the embodiments of the present application, only the information management server stores the reference location parameter as an example. In another embodiment, the information management server is a blockchain link point in a blockchain system, after the reference location parameter is acquired in step 709, the information management server stores the reference location parameter in the blockchain, and if at least two distances corresponding to any one of the at least three devices are greater than a first distance threshold, queries the reference location parameter from the blockchain, and replaces the location parameter of the any one device with the reference location parameter.
After the information management server determines the reference position parameter, a block including the reference position parameter is generated, the block is broadcasted to block chain nodes in the block chain system, the block is identified by a plurality of block chain nodes in the block chain system, and when the block passes the identification, the block is added to a block chain of the block chain system.
Optionally, the information management server stores the received POI information, the established first association relationship, the established second association relationship, and the like in the blockchain, in addition to storing the reference position parameter in the blockchain.
It should be noted that, in the embodiment of the present application, only the execution subject is taken as an example of the information management server, and in another embodiment, the execution subject may also be a terminal having an information management function, and the terminal executes the above-mentioned step 701 and 711 to implement the location parameter updating method.
Fig. 8 is a system architecture diagram provided in an embodiment of the present application, as shown in fig. 8, a store 802 includes a 4G device 8021, a WIFI device 8022, and a 4G device 8023, and a bluetooth connection is established between the 4G device 8021, the WIFI device 8022, and the 4G device 8023. The store 802 is identified as store 1. The device identification of the 4G device 8021 is SN1, and the location parameters are determined according to GPS positioning; the device identifier of the WIFI device 8022 is SN2, and the location parameters are determined according to WIFI positioning; the device identification of the 4G device 8023 is SN3, determining location parameters from the base station location. Fig. 8 illustrates an example in which the location parameter is a longitude parameter and a latitude parameter, where LO denotes the longitude parameter and LA denotes the latitude parameter. The 4G device 8021, the WIFI device 8022, and the 4G device 8023 report POI information to the information management server 801, respectively, where the POI information includes a location parameter. In addition, a face recognition request and the like may be reported to the information management server 801.
The information management server 801 includes a positioning receiving module 8011, an apparatus management and control module 8012, a positioning decision module 8013, a face recognition module 8014, and a risk control module 8015.
1. The positioning receiving module 8011 is configured to receive POI information reported by devices in a store.
2. The device management and control module 8012 is configured to parse the POI information to establish an association relationship between the area identifier and the device identifier, and the area identifier is taken as a store in fig. 8, and the device identifier is taken as an SN for an example.
3. The location decision module 8013 is configured to correct the location parameters of the abnormal device based on the POI information.
(1) When the position parameters in the POI information are not null values and the number of the devices in the store is at least 3, determining the distance between the devices, determining the position parameter of one device corresponding to the minimum distance as an accurate and spare reference position parameter, and replacing the position parameter of the abnormal device with the reference position parameter.
(2) When the position parameters in the POI information have null values and the number of the devices in the store is 2, the position parameters which are not null values are determined as reference position parameters, and the position parameters of the abnormal devices are replaced by the reference position parameters.
4. The face recognition module 8014 is configured to provide a verification service for face recognition. In the embodiment of the present application, when a user performs face recognition on a device in a store, the terminal may call a face recognition module of the information management server 801 to perform identity authentication. And, the risk control module 8015 is invoked to perform risk judgment in the authentication process, thereby intercepting a high-risk service request.
5. The risk control module 8015 is configured to manage a risk policy of a service, where a location parameter in a POI in the risk policy is a core factor, and is configured to reflect a location where a user requests a service based on a location parameter of a device, for example, if the user a uses a face recognition service on a device in beijing in the previous minute and uses a face recognition service on a device in shenzhen in the next minute, the service request of the user a has a certain risk and needs to be intercepted. In the embodiment of the present application, when a service request of an SN device with an abnormal location parameter is found, the location decision module 8013 is called, the location parameter of the SN device is updated by using a reference location parameter, and if the reference location parameter is not queried, the service request is directly intercepted.
As shown in fig. 8, the information management server 801 stores therein the association relationship between the identification store1 of the store 802 and the device identifications SN1, SN2, and SN3 corresponding to the devices in the store 802. The position parameters corresponding to the SN1 are LA1 and LO1, the position parameters corresponding to the SN2 are LA2 and LO2, and the position parameters corresponding to the SN3 are LA3 and LO 3. Wherein, according to the difference values among LO1, LO2 and LO3, determining that LO1 and LO2 are accurate longitude parameters and LO3 is wrong longitude parameters, replacing LO3 with LO1 or LO2, thereby completing the updating of the position parameters.
In the method provided in the embodiment of the present application, since at least three devices belong to the target area, the true distance between each two devices in the at least three devices is small, and if the location parameter reported by the device is correct, the distance between any two devices determined according to the location parameter of the device should be small. On the contrary, if at least two distances among the distances between any one device and other devices are greater than the first distance threshold, the position parameters of the any one device are not accurate. Therefore, the position parameter of one of the devices corresponding to the minimum distance is used as a reference position parameter to replace the position parameter of any one of the devices, and the wrong position parameter reported by the device is automatically corrected by referring to the position parameters of other devices in the same area, so that the accuracy of device positioning is guaranteed.
And because the connection condition of any two devices is that the distance between any two devices is smaller than the second distance threshold, the position between the devices is further confirmed according to the connection between the devices, so that the second association relationship is established, the position parameters are mutually corrected through the devices connected with each other within an acceptable error, and the accuracy of the device positioning is further ensured.
In addition, the problem that the position parameters of partial devices in the same area are lost is effectively solved by sharing the position parameters of the devices in the same area, so that the condition that the service is unavailable due to the lack of the position parameters is avoided, and the service availability is improved.
Fig. 9 is a schematic structural diagram of a location parameter updating apparatus according to an embodiment of the present application. Referring to fig. 9, the apparatus includes:
a distance determining module 901, configured to determine, according to the location parameters of at least three devices belonging to the target area, a difference between the location parameters of each two devices as a distance between each two devices;
a location parameter determining module 902, configured to determine a location parameter of one of the devices corresponding to a minimum distance in the multiple distances as a reference location parameter;
a location parameter updating module 903, configured to replace the location parameter of any one of the at least three devices with the reference location parameter if at least two distances corresponding to the at least one device are greater than the first distance threshold.
In the location parameter updating apparatus provided in the embodiment of the present application, because at least three devices belong to a target area, a true distance between every two devices of the at least three devices is small, and if a location parameter reported by a device is correct, a distance between any two devices determined according to the location parameter of the device should be small. On the contrary, if at least two distances among the distances between any one device and other devices are greater than the first distance threshold, the position parameters of the any one device are not accurate. Therefore, the position parameter of one of the devices corresponding to the minimum distance is used as a reference position parameter to replace the position parameter of any one of the devices, and the wrong position parameter reported by the device is automatically corrected by referring to the position parameters of other devices in the same area, so that the accuracy of device positioning is guaranteed.
Optionally, referring to fig. 10, the apparatus further comprises:
a first identifier query module 904, configured to query, according to an established first association relationship, a first device identifier corresponding to a target area identifier, where the first association relationship includes an association relationship between an area identifier corresponding to any area and a first device identifier corresponding to any device belonging to any area;
a location parameter query module 905, configured to query a location parameter corresponding to the first device identifier.
Optionally, referring to fig. 10, the apparatus further comprises:
an information receiving module 906, configured to receive point of interest POI information reported by multiple devices;
a relationship establishing module 907, configured to establish a first association relationship between the area identifier and the first device identifier included in each piece of POI information.
Optionally, referring to fig. 10, the location parameter query module 905 includes:
a location parameter querying unit 915, configured to query, from the received multiple pieces of POI information, a location parameter corresponding to the first device identifier.
Optionally, referring to fig. 10, the apparatus further comprises:
a second identifier query module 908, configured to query, according to an established second association relationship, a second device identifier corresponding to the target area identifier, where the second association relationship includes an association relationship between an area identifier corresponding to any area and a second device identifier corresponding to another device connected to any area, and a connection condition of any two devices is that a distance between any two devices is smaller than a second distance threshold;
the location parameter query module 905 is further configured to query a location parameter corresponding to the second device identifier.
Optionally, referring to fig. 10, the apparatus further comprises:
an information receiving module 906, configured to receive POI information reported by multiple devices;
a relationship establishing module 907, configured to establish a second association relationship between the area identifier and the second device identifier included in each piece of POI information.
Optionally, referring to fig. 10, the location parameter query module 905 includes:
the location parameter querying unit 915 is further configured to query, from the received multiple pieces of POI information, a location parameter corresponding to the second device identifier.
Optionally, referring to fig. 10, the location parameter updating module 903 is further configured to determine the reference location parameter as a location parameter corresponding to any first device identifier if the location parameter corresponding to any first device identifier is not queried.
Optionally, referring to fig. 10, the location parameter updating module 903 is further configured to determine, if two first device identifiers corresponding to the target area identifier are queried, and a location parameter corresponding to one of the first device identifiers is queried, but a location parameter corresponding to another one of the first device identifiers is not queried, the queried location parameter as a location parameter corresponding to another one of the first device identifiers.
Optionally, referring to fig. 10, the location parameter determining module 902 includes:
a minimum distance determination unit 912 configured to determine a minimum distance smaller than a third distance threshold among the plurality of distances;
a location parameter determining unit 922, configured to determine a location parameter of one of the devices corresponding to the minimum distance as a reference location parameter.
Optionally, referring to fig. 10, the apparatus is applied in a blockchain node, and the apparatus further includes:
a location parameter storage module 909 for storing the reference location parameter in the block chain;
a location parameter update module 903, comprising:
a reference location parameter querying unit 913, configured to query a reference location parameter from the block chain if at least two distances corresponding to any of the at least three devices are greater than a first distance threshold;
a location parameter replacing unit 923 configured to replace the location parameter of any one of the devices with the reference location parameter.
It should be noted that: in the location parameter updating apparatus provided in the above embodiment, when updating the location parameter, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the location parameter updating apparatus and the location parameter updating method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
The embodiment of the present application further provides a computer device, where the computer device includes a processor and a memory, where the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the location parameter updating method of the foregoing embodiment.
Optionally, the computer device is provided as a terminal. Fig. 11 shows a schematic structural diagram of a terminal 1100 according to an exemplary embodiment of the present application.
The terminal 1100 includes: a processor 1101 and a memory 1102.
Processor 1101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1101 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (field Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1101 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1101 may be integrated with a GPU (Graphics Processing Unit, image Processing interactor) for rendering and drawing content required to be displayed by the display screen. In some embodiments, the processor 1101 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 1102 may include one or more computer-readable storage media, which may be non-transitory. Memory 1102 can also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 1102 is used to store at least one computer program for being possessed by the processor 1101 to implement the location parameter updating methods provided by the method embodiments herein.
In some embodiments, the terminal 1100 may further include: a peripheral interface 1103 and at least one peripheral. The processor 1101, memory 1102 and peripheral interface 1103 may be connected by a bus or signal lines. Various peripheral devices may be connected to the peripheral interface 1103 by buses, signal lines, or circuit boards. Optionally, the peripheral device comprises: at least one of radio frequency circuitry 1104, positioning component 1105, and power supply 1106.
The peripheral interface 1103 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 1101 and the memory 1102. In some embodiments, the processor 1101, memory 1102, and peripheral interface 1103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1101, the memory 1102 and the peripheral device interface 1103 may be implemented on separate chips or circuit boards, which is not limited by this embodiment.
The Radio Frequency circuit 1104 is used to receive and transmit RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1104 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1104 converts an electric signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electric signal. Optionally, the radio frequency circuit 1104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1104 may communicate with other devices via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1104 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The positioning component 1105 is employed to locate the current geographic Location of the terminal 1100 for navigation or LBS (Location Based Service). The Positioning component 1105 may be a Positioning component based on the united states GPS (Global Positioning System), the chinese beidou System, the russian graves System, or the european union's galileo System.
Power supply 1106 is used to provide power to various components in terminal 1100. The power source 1106 may be alternating current, direct current, disposable or rechargeable. When the power supply 1106 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
Those skilled in the art will appreciate that the configuration shown in fig. 11 does not constitute a limitation of terminal 1100, and may include more or fewer components than those shown, or may combine certain components, or may employ a different arrangement of components.
Optionally, the computer device is provided as a server. Fig. 12 is a schematic structural diagram of a server 1200 according to an embodiment of the present application, where the server 1200 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1201 and one or more memories 1202, where the memory 1202 stores at least one computer program, and the at least one computer program is loaded and executed by the processors 1201 to implement the methods provided by the foregoing method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
The embodiment of the present application further provides a computer-readable storage medium, where at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by a processor to implement the operations performed in the location parameter updating method of the foregoing embodiment.
The embodiments of the present application also provide a computer program product or a computer program, where the computer program product or the computer program includes computer program code, the computer program code is stored in a computer-readable storage medium, a processor of the computer device reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the computer device implements the operations performed in the location parameter updating method according to the above-mentioned embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only an alternative embodiment of the present application and should not be construed as limiting the present application, and any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (12)

1. A method for updating location parameters, the method comprising:
receiving POI (point of interest) information reported by a plurality of devices; establishing a first association relation between the area identifier contained in each POI information and the first equipment identifier;
inquiring a first device identifier corresponding to a target area identifier according to the established first association relationship, wherein the first association relationship comprises the association relationship between the area identifier corresponding to any area and the first device identifier corresponding to any device belonging to any area;
inquiring the position parameter corresponding to the first equipment identification;
determining the difference value between the position parameters of every two pieces of equipment according to the position parameters of at least three pieces of equipment belonging to the target area, and taking the difference value as the distance between every two pieces of equipment;
determining the position parameter of one device corresponding to the minimum distance in the plurality of distances as a reference position parameter;
and if at least two distances corresponding to any one of the at least three devices are greater than a first distance threshold value, replacing the position parameter of any one device with the reference position parameter.
2. The method of claim 1, wherein the querying the location parameter corresponding to the first device identifier comprises:
and inquiring the position parameter corresponding to the first equipment identification from the received multiple POI information.
3. The method of claim 1, further comprising:
inquiring a second device identifier corresponding to the target area identifier according to an established second association relationship, wherein the second association relationship comprises the association relationship between the area identifier corresponding to any area and second device identifiers corresponding to other devices connected with any device belonging to any area, and the connection condition of any two devices is that the distance between any two devices is smaller than a second distance threshold;
and inquiring the position parameter corresponding to the second equipment identification.
4. The method according to claim 3, wherein before querying the second device identifier corresponding to the target area identifier according to the established second association relationship, the method further comprises:
receiving POI information reported by a plurality of devices;
and establishing the second association relationship between the area identifier contained in each POI information and the second equipment identifier.
5. The method of claim 4, wherein the querying the location parameter corresponding to the second device identifier comprises:
and inquiring the position parameter corresponding to the second equipment identification from the received multiple POI information.
6. The method of claim 1, further comprising:
and if the position parameter corresponding to any first equipment identifier is not inquired, determining the reference position parameter as the position parameter corresponding to any first equipment identifier.
7. The method of claim 1, further comprising:
and if two first device identifications corresponding to the target area identification are inquired, the position parameter corresponding to one first device identification is inquired, and the position parameter corresponding to the other first device identification is not inquired, determining the inquired position parameter as the position parameter corresponding to the other first device identification.
8. The method of claim 1, wherein determining the location parameter of the device corresponding to the smallest distance of the plurality of distances as the reference location parameter comprises:
determining a minimum distance of the plurality of distances that is less than a third distance threshold;
and determining the position parameter of one device corresponding to the minimum distance as the reference position parameter.
9. The method according to any one of claims 1-8, applied in a blockchain node, wherein after determining the location parameter of one of the devices corresponding to the smallest distance in the plurality of distances as the reference location parameter, the method further comprises:
storing the reference location parameter in a blockchain;
if at least two distances corresponding to any one of the at least three devices are greater than a first distance threshold, replacing the location parameter of the any one device with the reference location parameter includes:
if at least two distances corresponding to any one of the at least three devices are greater than the first distance threshold, querying the reference location parameter from the block chain;
replacing the location parameter of the any device with the reference location parameter.
10. A location parameter updating apparatus, the apparatus comprising:
the information receiving module is used for receiving POI information reported by a plurality of devices;
the relation establishing module is used for establishing a first association relation between the area identifier and the first equipment identifier contained in each POI message;
a first identifier query module, configured to query, according to the established first association relationship, a first device identifier corresponding to a target area identifier, where the first association relationship includes an association relationship between an area identifier corresponding to any area and a first device identifier corresponding to any device belonging to any area;
the position parameter query module is used for querying the position parameter corresponding to the first equipment identifier;
the distance determining module is used for determining the difference value between the position parameters of every two pieces of equipment according to the position parameters of at least three pieces of equipment belonging to the target area, and the difference value is used as the distance between every two pieces of equipment;
the position parameter determining module is used for determining the position parameter of one device corresponding to the minimum distance in the plurality of distances as a reference position parameter;
a location parameter updating module, configured to replace the location parameter of any one of the at least three devices with the reference location parameter if at least two distances corresponding to the any one of the at least three devices are greater than a first distance threshold.
11. A computer device, characterized in that the computer device comprises a processor and a memory, in which at least one computer program is stored, which is loaded and executed by the processor to implement the operations performed in the location parameter updating method according to any one of claims 1 to 9.
12. A computer-readable storage medium, having at least one computer program stored therein, which is loaded and executed by a processor to perform the operations performed in the location parameter updating method according to any one of claims 1 to 9.
CN202011411527.5A 2020-12-03 2020-12-03 Position parameter updating method and device, computer equipment and storage medium Active CN112380230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011411527.5A CN112380230B (en) 2020-12-03 2020-12-03 Position parameter updating method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011411527.5A CN112380230B (en) 2020-12-03 2020-12-03 Position parameter updating method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112380230A CN112380230A (en) 2021-02-19
CN112380230B true CN112380230B (en) 2021-07-06

Family

ID=74590459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011411527.5A Active CN112380230B (en) 2020-12-03 2020-12-03 Position parameter updating method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112380230B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8718927B2 (en) * 2012-03-12 2014-05-06 Strava, Inc. GPS data repair
US20130268232A1 (en) * 2012-04-10 2013-10-10 Qualcomm Incorporated Informative Display for Statistical Positioning System
CN104080054B (en) * 2014-07-18 2018-11-09 百度在线网络技术(北京)有限公司 A kind of acquisition methods and device of exception point of interest
CN105049470B (en) * 2015-05-22 2019-03-01 腾讯科技(北京)有限公司 Event confirmation method, apparatus and system
CN111787075A (en) * 2020-06-18 2020-10-16 支付宝(杭州)信息技术有限公司 Equipment positioning method and device

Also Published As

Publication number Publication date
CN112380230A (en) 2021-02-19

Similar Documents

Publication Publication Date Title
US11461773B2 (en) Blockchain-based node management methods and apparatuses
Lao et al. G-pbft: a location-based and scalable consensus protocol for iot-blockchain applications
EP3335482B1 (en) Generating and publishing validated location information
RU2704750C2 (en) Mobile device identification systems and methods
US20230316273A1 (en) Data processing method and apparatus, computer device, and storage medium
CN111869187A (en) Interworking between IOT service layer system and distributed ledger system
EP3895105A1 (en) Communication network node, methods, and a mobile terminal
EP3817333B1 (en) Method and system for processing requests in a consortium blockchain
US11107079B2 (en) Methods, systems, apparatuses and devices for verifying credibility of consortium blockchain
CN113837760B (en) Data processing method, data processing device, computer equipment and storage medium
WO2021234464A2 (en) Systems and methods for device detection and registration
WO2023000967A1 (en) Device management method, system and apparatus
CN111866993B (en) Wireless local area network connection management method, device, software program and storage medium
CN112380230B (en) Position parameter updating method and device, computer equipment and storage medium
US20230222491A1 (en) Systems and methods for transfer of non-fungible assets across multiple blockchain systems
CN112019603B (en) Transaction data processing method and device
CN117061538A (en) Consensus processing method and related device based on block chain network
CN116614311B (en) Mirror image signature method, device, service node, terminal and readable storage medium
CN115098528B (en) Service processing method, device, electronic equipment and computer readable storage medium
US20240022911A1 (en) Nfc tag verification method and related device
CN116388965A (en) Trusted proving method and communication device
CN116302878A (en) Application data verification method, device, equipment, storage medium and program product
CN115237997A (en) Block chain data management method and device
CN117354140A (en) Configuration data refreshing method, device, system, storage medium and electronic device
CN114374460A (en) System time obtaining method and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40038807

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant