CN113766429A - Device positioning method, device, wallet and storage medium - Google Patents

Device positioning method, device, wallet and storage medium Download PDF

Info

Publication number
CN113766429A
CN113766429A CN202111053584.5A CN202111053584A CN113766429A CN 113766429 A CN113766429 A CN 113766429A CN 202111053584 A CN202111053584 A CN 202111053584A CN 113766429 A CN113766429 A CN 113766429A
Authority
CN
China
Prior art keywords
information
auxiliary
target
position information
calculating
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.)
Pending
Application number
CN202111053584.5A
Other languages
Chinese (zh)
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.)
Shenzhen Snowball Technology Co ltd
Original Assignee
Shenzhen Snowball Technology 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 Shenzhen Snowball Technology Co ltd filed Critical Shenzhen Snowball Technology Co ltd
Priority to CN202111053584.5A priority Critical patent/CN113766429A/en
Priority to PCT/CN2021/119439 priority patent/WO2023035319A1/en
Publication of CN113766429A publication Critical patent/CN113766429A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a device positioning method, a device, a wallet and a storage medium, wherein the method comprises the following steps: sending a query request to a server, wherein the query request carries identification information of target equipment to be queried; receiving return information of the server based on the query request, wherein the return information carries broadcast information received by an auxiliary terminal from the target equipment and auxiliary position information of the auxiliary terminal when the auxiliary terminal receives the broadcast information; and determining the target position information of the target equipment according to the broadcast information and the auxiliary position information. According to the method and the device, when the target equipment is not near the terminal carried by the user, the target equipment can be remotely positioned, and then the lost target equipment can be found in time, so that the property loss of the user is reduced.

Description

Device positioning method, device, wallet and storage medium
Technical Field
The present application relates to the field of information processing technologies, and in particular, to a device positioning method, apparatus, device, wallet, and storage medium.
Background
Electronic purses are a common payment instrument used in e-commerce shopping activities. Electronic money, such as electronic cash, electronic change, electronic credit card, etc., is stored in the electronic wallet. Electronic purses have two concepts: one is software-based, mainly used for online consumption and account management, and such software is usually connected with a bank account or a bank card account. The other is an intelligent value-stored card, in which the cardholder stores a certain amount in the card in advance, and the transaction amount is directly deducted from the value-stored account during transaction.
With the development of information technology, smart value cards are becoming more popular, public transport cards, access cards, bank cards and the like are well known and used by common users, and electronic wallet devices based on software also gradually enter people's lives. However, in practical situations, both the stored-value card and the electronic wallet device are very easy to lose, which brings property loss to people's life. Therefore, how to automatically locate and find the lost electronic wallet becomes a technical problem to be solved urgently.
Disclosure of Invention
An object of the embodiments of the present application is to provide a device positioning method, apparatus, device, wallet and storage medium, which enable remote positioning of a target device when the target device is not near a terminal carried by a user, so as to find a lost target device in time and reduce property loss of the user.
A first aspect of an embodiment of the present application provides an apparatus positioning method, including: sending a query request to a server, wherein the query request carries identification information of target equipment to be queried; receiving return information of the server based on the query request, wherein the return information carries broadcast information received by an auxiliary terminal from the target equipment and auxiliary position information of the auxiliary terminal when the auxiliary terminal receives the broadcast information; and determining the target position information of the target equipment according to the broadcast information and the auxiliary position information.
In an embodiment, the number of the auxiliary terminals is multiple, and each of the auxiliary terminals corresponds to one of the broadcast information and one of the auxiliary location information respectively; the determining the target location information of the target device according to the broadcast information and the auxiliary location information includes: calculating a relative distance between each auxiliary terminal and the target device according to the broadcast information received by each auxiliary terminal and the auxiliary position information of each auxiliary terminal; calculating a plurality of position estimation values of the target equipment according to the auxiliary position information and the relative distance corresponding to each auxiliary terminal; calculating an average value of the plurality of position estimation values, the average value being the target position information of the target device.
In an embodiment, the calculating a relative distance between each of the auxiliary terminals and the target device according to the broadcast information received by each of the auxiliary terminals and the auxiliary location information of each of the auxiliary terminals includes: and for each auxiliary terminal, calculating the relative distance between the auxiliary terminal and the target equipment according to the signal strength of the broadcast information and the auxiliary position information.
In an embodiment, the calculating a plurality of position estimation values of the target device according to the assistant position information and the relative distance corresponding to each assistant terminal includes: and calculating the position of the central point of each two pairs of auxiliary position information, and taking the position of the central point as the position estimation value of the target equipment.
In one embodiment, the calculating an average value of the plurality of position estimation values, the taking the average value as the target position information of the target device, includes: and calculating the average position of all the central point positions, and taking the average position as the target position information of the target equipment.
In an embodiment, the number of the auxiliary terminals is 1; the determining the location information of the target device according to the broadcast information and the location information of the auxiliary terminal includes: and taking the auxiliary position information of the auxiliary terminal as the target position information of the target equipment.
In an embodiment, the return information is a ciphertext encrypted by a public key of the target device; before the determining the target location information of the target device according to the broadcast information and the auxiliary location information, further comprising: and decrypting the returned information according to a preset private key to obtain the decrypted broadcast information and the decrypted auxiliary position information, wherein the private key and the public key are a pair of key pairs.
A second aspect of the embodiments of the present application provides an apparatus positioning device, including: the system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a query request to a server, and the query request carries identification information of target equipment to be queried; a receiving module, configured to receive return information of the server based on the query request, where the return information carries broadcast information from the target device received by an auxiliary terminal and auxiliary location information of the auxiliary terminal when the auxiliary terminal receives the broadcast information; a determining module, configured to determine target location information of the target device according to the broadcast information and the auxiliary location information.
In an embodiment, the number of the auxiliary terminals is multiple, and each of the auxiliary terminals corresponds to one of the broadcast information and one of the auxiliary location information respectively; the determination module is to: calculating a relative distance between each auxiliary terminal and the target device according to the broadcast information received by each auxiliary terminal and the auxiliary position information of each auxiliary terminal; calculating a plurality of position estimation values of the target equipment according to the auxiliary position information and the relative distance corresponding to each auxiliary terminal; calculating an average value of the plurality of position estimation values, the average value being the target position information of the target device.
In an embodiment, the calculating a relative distance between each of the auxiliary terminals and the target device according to the broadcast information received by each of the auxiliary terminals and the auxiliary location information of each of the auxiliary terminals includes: and for each auxiliary terminal, calculating the relative distance between the auxiliary terminal and the target equipment according to the signal strength of the broadcast information and the auxiliary position information.
In an embodiment, the calculating a plurality of position estimation values of the target device according to the assistant position information and the relative distance corresponding to each assistant terminal includes: and calculating the position of the central point of each two pairs of auxiliary position information, and taking the position of the central point as the position estimation value of the target equipment.
In one embodiment, the calculating an average value of the plurality of position estimation values, the taking the average value as the target position information of the target device, includes: and calculating the average position of all the central point positions, and taking the average position as the target position information of the target equipment.
In an embodiment, the number of the auxiliary terminals is 1; the determination module is to: and taking the auxiliary position information of the auxiliary terminal as the target position information of the target equipment.
In an embodiment, the return information is a ciphertext encrypted by a public key of the target device; the device further comprises: and the decryption module is used for decrypting the return information according to a preset private key before determining the target position information of the target device according to the broadcast information and the auxiliary position information to obtain the decrypted broadcast information and the decrypted auxiliary position information, wherein the private key and the public key are a pair of keys.
A third aspect of embodiments of the present application provides an electronic device, including: a memory to store a computer program; a processor configured to execute the computer program to implement the method of the first aspect and any embodiment of the present application.
A fourth aspect of embodiments of the present application provides an electronic wallet, including: the safety module is used for loading the virtual card information; the communication module is used for establishing communication connection with the bound external equipment; the main control module is respectively connected with the security module and the communication module and is used for controlling the virtual card of the security module to perform data interaction with the external equipment through the communication module; the main control module is further configured to: receiving an offline protection instruction sent by the external equipment, wherein the offline protection instruction carries an offline protection duration; and when the electronic wallet does not establish communication connection with the external equipment within the offline protection duration, controlling the security module to close the data interaction authority of the virtual card.
A fifth aspect of embodiments of the present application provides a non-transitory electronic device-readable storage medium, including: a program which, when run by an electronic device, causes the electronic device to perform the method of the first aspect of an embodiment of the present application and any embodiment thereof.
According to the equipment positioning method, the device, the equipment, the wallet and the storage medium, the broadcast information sent by the target equipment and the auxiliary position information of the auxiliary terminal when the auxiliary terminal receives the broadcast information can be inquired from the server through the user terminal, and the position of the target equipment can be positioned based on the broadcast information and the auxiliary position information, so that when the target equipment is not near the user terminal, the target equipment can be remotely positioned, the target equipment can be found in time when the target equipment is lost, and the property loss of a user is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2A to fig. 2F are schematic application scenarios of a device positioning method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a device positioning method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a device positioning method according to an embodiment of the present application;
FIGS. 5A-5C are schematic diagrams illustrating the calculation of a center point between two auxiliary points according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an apparatus positioning device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the present application, the terms "first," "second," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
As shown in fig. 1, the present embodiment provides an electronic apparatus 1 including: at least one processor 11 and a memory 12, one processor being exemplified in fig. 1. The processor 11 and the memory 12 are connected by a bus 10. The memory 12 stores instructions executable by the processor 11, and the instructions are executed by the processor 11, so that the electronic device 1 can execute all or part of the processes of the methods in the embodiments described below, to remotely locate the target device, and then find the target device in time when the target device is lost, thereby reducing property loss of users.
In an embodiment, the electronic device 1 may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, or the like.
In one embodiment, the target device may be an electronic wallet-capable mobile device.
Fig. 2A is a schematic diagram of an apparatus positioning system according to an embodiment of the present application, including: electronic wallet 2, electronic device 1 and server 3, wherein:
the server 3 may include: the device comprises a positioning searching module, a virtual card management module and an equipment management module.
The electronic wallet 2 stores intelligent virtual card information of a user, such as an access card, a bus card, a bank card, a digital RMB wallet and the like, the electronic wallet 2 can perform data interaction with the electronic device 1 through data connection, an application program is loaded on the electronic device 1, and the electronic device 1 can perform data interaction with the electronic wallet 2 and the server 3 based on the application program to complete control over the electronic wallet 2.
Fig. 2B is a schematic diagram of an electronic wallet 2 according to an embodiment of the present application, including: the system comprises a main control module, a safety module and a communication module, wherein the communication module can comprise: NFC module, bluetooth module and UWB (Ultra Wide Band ) module, wherein:
and the safety module is used for loading the virtual card information. The security module stores private information of the user, and may include: the electronic wallet 2 itself has key data, bus card, access card, bank card, and application data such as digital rmb. The security module has the functions of preventing attack and cracking and can guarantee the security of user data.
And the communication module is used for establishing communication connection with the bound external equipment. For example, the NFC module supports an external NFC card reader, transmits data through an NFC antenna, and can perform data interaction with the security module, so that card swiping recharging transactions of virtual cards such as public transport cards can be completed, authentication transactions of access control cards, money deduction transactions of bank cards, consumption transactions of digital RMB and other transaction types meeting the industrial standards can be completed. The NFC module can also receive the instruction of the main control module and execute read-write operation on the external entity card.
And the main control module is respectively connected with the security module and the communication module and is used for controlling the virtual card of the security module to perform data interaction with external equipment through the communication module. The electronic wallet 2 may control the bluetooth antenna of the bluetooth module to broadcast a message to the outside through the main control module, and may establish communication with the bluetooth-enabled electronic device 1. For example, the electronic wallet 2 may be connected to a mobile phone or a computer of the user to complete the operations of activating and managing the electronic wallet 2, managing the virtual card, and the like. Meanwhile, the Bluetooth module can be connected with the acceptance terminal of the electronic wallet 2 to complete the transaction. For example, an entrance guard card reader (acceptance terminal) supporting bluetooth can be connected with the electronic wallet 2, transaction logic is completed through the main control module, and the door is opened after authentication is completed by using a security key stored in the security module.
The built-in UWB module of electronic wallet 2 can be used to carry out the data interaction with other UWB equipment, accomplishes accurate location. For example, the main control module establishes a connection with the external UWB-enabled auxiliary terminal 4 or the electronic device 1 by controlling the UWB module, so that the electronic device 1 can accurately locate the electronic wallet 2, thereby facilitating a user to find the location of the electronic wallet 2.
In addition, for external devices supporting UWB protocol communication, the electronic wallet 2 may also complete a consumption transaction by using a public transportation card application or a digital rmb application stored in the security module, and the transaction process may not be limited to the NFC module, so that a user may complete a high-quality experience of the transaction without taking out the electronic wallet 2.
In an embodiment, the main control module is further configured to: and receiving an offline protection instruction sent by the external equipment, wherein the offline protection instruction carries offline protection duration. And when the electronic wallet 2 does not establish communication connection with the external equipment within the offline protection time length, controlling the security module to close the data interaction authority of the virtual card.
In a practical scenario, the user may set the offline time of the e-wallet 2 via the smartphone application, where offline is defined as a state where the user's phone is not connected to the e-wallet 2. That is, when the electronic wallet 2 stops communicating with the user's mobile phone, the electronic wallet 2 starts to count time, and in the off-line time range, the electronic wallet 2 normally performs various functions including the use of a virtual card. When the electronic wallet 2 counts the time and exceeds the offline time, the electronic wallet is set to be in a loss mode, and the virtual card simulation function is closed, so that the fund security and the identity security in the virtual card are protected, people who pick up or steal the electronic wallet 2 cannot use the electronic wallet 2 to take a bus, or swipe a card to access a community or a company entrance guard, and the loss protection of the electronic wallet 2 is realized. When the electronic wallet 2 is successfully connected to the user's mobile phone again, the enable status of the virtual card is checked and kept in the available mode. While the timer inside the electronic wallet 2 is reset. The user may optionally disable this functionality.
As shown in fig. 2C, when the electronic wallet 2 (i.e. the smart wallet) is used, it is first required to complete the activation of the electronic wallet 2 and the binding process between the electronic wallet 2 and the electronic device 1, where the electronic device 1 takes a smart phone of a user as an example, and the specific flow is as follows:
1. firstly, the electronic wallet 2 needs a self-contained battery, such as a button battery or a lithium battery can be used. After the user purchases the electronic wallet 2, it is necessary to ensure that the electronic wallet 2 has sufficient power. After the electronic wallet 2 is powered on, the electronic wallet automatically enters a state to be paired.
2. The electronic wallet 2 transmits the bluetooth broadcast waiting for pairing at regular intervals. The user opens the corresponding application on the smart phone, selects an add-on device, and actively scans the electronic wallet 2 through bluetooth. After discovering the e-wallet 2, the user is prompted to bind.
3. After the user confirms the binding, the smart phone application program establishes connection with the electronic wallet 2 to execute a device verification process, so that the electronic wallet 2 is ensured to be a real and legal device, and the binding relation with the application program is allowed to be established. Alternatively, the e-wallet 2 may require the user to click a button or shake the e-wallet 2 to authorize the smartphone connection. After the connection is successful, a secure channel between the smart phone application program and the electronic wallet 2 is established, and the transmission of subsequent data is protected.
4. And the smart phone application program generates an asymmetric public and private key pair, and the private key is safely stored in the smart phone. The private key will not be used to decrypt the public key encrypted geographic location information. Depending on the security requirements and device capabilities, the private key may be optionally stored in the eSE (Embedded SE), TEE (Trusted Execution Environment), or in other secure storage.
5. The smartphone application writes the public key into the e-wallet 2 through the secure channel.
6. The smart phone application program sends the device identification information of the electronic wallet 2 and the current account number of the user to the server 3, so as to register the electronic wallet 2 and bind the electronic wallet 2 under the current account number. The future user can acquire the location information of the electronic wallet 2 through the current account. This completes the pairing process.
7. The smart phone application reads the information of the electronic wallet 2, including the brand, model, serial number, and opened virtual card of the electronic wallet 2.
8. The smart phone application shows the information the user is interested in and prompts the user that the binding is successful.
As shown in fig. 2D, when the electronic wallet 2 (i.e. smart wallet) is used, if a user wants to use a certain virtual card, the process of opening the relevant virtual card needs to be completed first, and the electronic device 1 takes a smart phone of the user as an example, and the specific flow is as follows:
1. the electronic wallet 2 repeatedly transmits broadcast information at regular intervals.
2. The smartphone application initiates a connection action to establish a connection with the e-wallet 2.
3. The user can select a virtual card application from the application programs of the smart phone to apply for opening. The virtual card application may be a bus card, an access card, a bank card, or a digital rmb, etc.
4. According to the setting of the virtual card, when payment is needed, a user firstly completes payment action in an application program of the smart phone.
5. After the payment is completed, the application program of the smart phone applies for opening the virtual card to the server 3.
6. The virtual card management module of the server 3 requests a payment result from the payment channel.
7. And the payment channel returns a successful payment result to the virtual card management module.
8. The virtual card management module of the server 3 requests card issuing authorization from the card issuing authority.
9. The card issuing institution authorizes the card issuing application and returns an authorization result to the server 3.
10. And the virtual card management module of the server 3 generates a virtual card opening instruction and sends the virtual card opening instruction to the application program of the smart phone.
11. After obtaining the virtual card opening instruction, the application program of the smart phone forwards the virtual card opening instruction to the electronic wallet 2 for execution, so that the electronic wallet 2 downloads the virtual card application into the electronic wallet 2.
12. The main control module of the electronic wallet 2 can receive the virtual card opening instruction through the Bluetooth module and then forward the instruction to the security module for execution. The safety module returns the execution result to the main control module.
13. And the main control module of the electronic wallet 2 returns the execution result of the virtual card opening instruction to the application program of the smart phone through the Bluetooth module. The application program of the smart phone verifies the execution result through the server 3, and the virtual card is successfully opened.
14. The smart phone application program prompts the user that the virtual card is successfully opened, and the opening result is displayed to the user.
After the virtual card is opened, the user can manage the virtual card through an application program of the smart phone: such as the user may delete the virtual card. The user can designate a bus card, an access card, a bank card or a digital RMB wallet application in the application program of the smart phone to delete. After the user initiates a deletion request through the application program, the application program requests a deletion instruction of the virtual card through the virtual card management module, and the deletion process is completed.
In an embodiment, the virtual bus card can also be recharged through an application program of the smart phone. The recharge process is similar to the provisioning process for a virtual card. The user needs to select the recharging amount and pay the corresponding amount, and then the application program virtual card management module of the smart phone applies for a recharging instruction to complete the recharging process.
Use of virtual cards: after the user opens the relevant virtual card through the relevant application program of the smart phone, the user can carry the electronic wallet 2 to use on the acceptance terminals such as a public transportation POS machine, a community or company entrance guard, a store consumption POS machine and the like.
In one embodiment, the electronic device 1 may be a mobile phone of the user, and if the electronic wallet 2 is lost, when the electronic wallet 2 is located near the location of the user, the user may display the accurate location of the electronic wallet 2 through the UWB function of the mobile phone. The user can look for the electronic wallet 2 according to the position and orientation of the mobile phone screen display. As shown in fig. 2E, the short distance electronic wallet 2 is located as follows:
1. the electronic wallet 2 will constantly send broadcast information via bluetooth at regular intervals.
2. The user mobile phone establishes connection with the electronic wallet 2 through Bluetooth and negotiates a UWB communication key.
3. The user mobile phone utilizes a UWB module of the user mobile phone to position the electronic wallet 2, calculates the distance by calculating the sending and returning time of communication data, and calculates the angle of the position of the electronic wallet 2 by the angle of the UWB signal, thereby accurately calculating the position of the electronic wallet 2.
4. The mobile phone of the user displays the position information of the electronic wallet 2 and the current position information of the user to the user based on the application program, and assists the user in positioning and searching for the lost electronic wallet 2.
In an actual scene, after the electronic wallet 2 is lost, the electronic wallet 2 is often out of the UWB positioning range of the mobile phone, and at this time, the user can initiate a remote positioning operation by starting an application program on the mobile phone.
As shown in fig. 2F, which is a schematic diagram of an apparatus positioning system according to an embodiment of the present application, further includes: the auxiliary terminal 4, here the auxiliary terminal 4 may be a mobile phone, a tablet computer, an intelligent bracelet, or other devices of any other user.
In a practical scenario, the wallet 2 will automatically broadcast messages at intervals. When there is an associated secondary terminal 4 in the vicinity that can communicate with the electronic wallet 2, the secondary terminal 4 can establish a connection with the electronic wallet 2 and then upload its own positioning information to the server 3 in an encrypted manner. The user downloads and decrypts the position information of the auxiliary terminal 4 through the application program on the mobile phone, and then obtains the position of the electronic wallet 2 based on the position information of the auxiliary terminal 4. The specific process can be as follows:
please refer to fig. 3, which is a device location method according to an embodiment of the present application, the method can be executed by the electronic device 1 shown in fig. 1 as a current terminal, and can be applied to the electronic wallet 2 location scenario shown in fig. 2A to 2F, so as to remotely locate the electronic wallet 2 when the electronic wallet 2 is not near the electronic device 1, and further find out the lost electronic wallet 2 in time, thereby reducing property loss of the user. The method comprises the following steps:
step 301: and sending an inquiry request to the server 3, wherein the inquiry request carries the identification information of the target equipment to be inquired.
In this step, the target device is exemplified by the electronic wallet 2, the electronic device 1 is exemplified by a mobile phone of the user, and the identification information may be a product unique number of the electronic wallet 2 or customized identification information, which can distinguish the electronic wallet 2 to be searched from other devices. When the electronic wallet 2 of the user is lost, the user can actively send a query request to the server 3 through the mobile phone to perform remote positioning and searching.
Step 302: the receiving server 3 receives the return information based on the query request, where the return information carries the broadcast information from the target device received by the auxiliary terminal 4 and the auxiliary location information of the auxiliary terminal 4 when receiving the broadcast information.
In this step, the electronic wallet 2 continuously transmits broadcast information via bluetooth at certain intervals before the electronic device 1 transmits an inquiry request to the service. The public key of the electronic wallet 2 may be carried in the broadcast information. Any intelligent device, including a mobile phone, a tablet, a computer, a router, an internet of things device, etc., can be used as the auxiliary terminal 4 as long as it can support data communication with the electronic wallet 2, and when the auxiliary terminal 4 appears near the electronic wallet 2, it can receive the broadcast information sent by the electronic wallet 2 and read the public key of the electronic wallet 2. After receiving the broadcast information, the auxiliary terminal 4 can read the geographical location information of itself in real time, and then encrypt the geographical location information (i.e., the auxiliary location information) of the auxiliary terminal 4 by using the public key. The geographical position information of the auxiliary terminal 4 itself is encrypted and uploaded to the server 3. Since the geographical location information of the auxiliary terminal 4 itself is encrypted by the public key of the electronic wallet 2, the corresponding private key exists only in the mobile phone device bound with the electronic wallet 2. Therefore, only the mobile phone bound by the electronic wallet 2 can decrypt and view the information, and the information security of the user is ensured. After step 301, the mobile phone may receive, in real time, the return information of the server 3, where the return information is the specific information returned by the server 3 based on the query request. The return information may be encrypted geographical location information uploaded by the secondary terminal 4 over a period of time and broadcast information received by the secondary terminal 4 from the electronic wallet 2.
Step 303: and determining target position information of the target device according to the broadcast information and the auxiliary position information.
In this step, under the condition that the mobile phone of the user cannot directly locate the electronic wallet 2 in a close range, the electronic wallet 2 may be indirectly located based on the geographical location information of other auxiliary devices stored in the server 3 and related broadcast information, and at the mobile phone end, the current location and track of the electronic wallet 2 may be displayed to the user based on the application program, so as to assist the user in finding the lost electronic wallet 2.
In one embodiment, the return information is a ciphertext encrypted by a public key of the target device. That is, the information returned by the server 3 is encrypted by the public key of the electronic wallet 2, and the private key of the electronic wallet 2 is stored in the mobile phone of the user bound to the electronic wallet 2, and the private key and the public key form a pair of key pairs. Therefore, before step 303, the return information is decrypted according to the preset private key to obtain the decrypted broadcast information and the auxiliary location information, and then the geographic location information of the auxiliary device and the related broadcast information are used to indirectly remotely locate the electronic wallet 2.
According to the equipment positioning method, the broadcast information sent by the target equipment and the auxiliary position information of the auxiliary terminal 4 when receiving the broadcast information can be inquired from the server 3 through the user terminal, and the position of the target equipment can be positioned based on the broadcast information and the auxiliary position information, so that when the target equipment is not near the user terminal, the target equipment can be remotely positioned, the target equipment can be found in time when the target equipment is lost, and the property loss of a user is reduced.
Please refer to fig. 4, which is a device location method according to an embodiment of the present application, the method can be executed by the electronic device 1 shown in fig. 1 as a current terminal, and can be applied to the electronic wallet 2 location scenario shown in fig. 2A to 2F, so as to remotely locate the electronic wallet 2 when the electronic wallet 2 is not near the electronic device 1, and further find out the lost electronic wallet 2 in time, thereby reducing property loss of the user. The method comprises the following steps:
step 401: and sending an inquiry request to the server 3, wherein the inquiry request carries the identification information of the target equipment to be inquired. See the description of step 301 in the above embodiments for details.
Step 402: the receiving server 3 receives the return information based on the query request, where the return information carries the broadcast information from the target device received by the auxiliary terminal 4 and the auxiliary location information of the auxiliary terminal 4 when receiving the broadcast information. See the description of step 302 in the above embodiments for details.
Step 403: the relative distance between each auxiliary terminal 4 and the target device is calculated based on the broadcast information received by each auxiliary terminal 4 and the auxiliary location information of each auxiliary terminal 4.
In this step, if the number of the auxiliary terminals 4 is plural, each of the auxiliary terminals 4 corresponds to one broadcast information and one auxiliary position information, respectively. That is, when the electronic wallet 2 is remotely located, a plurality of intelligent devices which can be used as auxiliary terminals 4 may exist near the electronic wallet 2 at the same time, each intelligent device uploads the broadcast information of the electronic wallet 2 received by each intelligent device to the server 3, and when the target position information of the target device is determined according to the broadcast information and the auxiliary position information, the relative distance between each auxiliary terminal 4 and the target device is calculated according to the broadcast information received by each auxiliary terminal 4 and the auxiliary position information corresponding to the auxiliary terminal 4.
In one embodiment, step 403 may include: for each secondary terminal 4, the relative distance between the secondary terminal 4 and the target device is calculated from the signal strength of the broadcast information and the secondary location information. The broadcast information may include broadcast content and broadcast Signal Strength RSSI (Received Signal Strength Indication) information. The RSSI information is a common indicator in bluetooth communication, each auxiliary terminal 4 uploads the received broadcast content and RSSI information to the server 3, and the RSSI information can be used to estimate the distance between the sender and receiver of the bluetooth signal. The auxiliary terminal 4 carries the RSSI when receiving the broadcast information sent by the electronic wallet 2. From the RSSI, the relative distance between the secondary terminal 4 and the smart wallet can be estimated.
Step 404: and calculating a plurality of position estimation values of the target equipment according to the auxiliary position information and the relative distance corresponding to each auxiliary terminal 4.
In this step, if the information returned by the server 3 includes the auxiliary location information of the plurality of auxiliary terminals 4, the same amount of relative location information can be obtained in the corresponding step 403, and the plurality of location estimation values of the electronic wallet 2 are calculated by comprehensively considering the location information uploaded by each auxiliary terminal 4, so that the accuracy of remote location can be improved.
In one embodiment, step 403 may include: and calculating the central point position of each two pairs of auxiliary position information, and taking the central point position as the position estimation value of the target equipment.
If the information returned by the server 3 includes the positioning information P1 … … Pn of more than one assistant terminal 4 (i.e., assistant position information, where Pn represents an assistant point corresponding to the assistant position information of the nth assistant terminal 4, and n is an integer greater than 1), and the relative distance between the assistant position information P1 … … Pn corresponding to each assistant terminal 4 and the electronic wallet 2 is L1 … … Ln, the center positions are calculated for n assistant points two by two.
In one embodiment, it is assumed that the center point position between the auxiliary point Pa and the auxiliary point Pb is calculated: a circle A is drawn by taking the auxiliary point Pa as the center and the relative distance La as the radius. And a circle B having a radius of the relative distance Lb with the auxiliary point Pb as the center. The calculation method is as follows:
1. as shown in fig. 5A, if circle a and circle B have two intersections: and R and S, taking the middle point of the connecting line of the point R and the point S as the central point position P between the auxiliary point Pa and the auxiliary point Pb.
2. As shown in fig. 5B, if circle a and circle B have an intersection: p, then the point P is taken as the center point between the auxiliary point Pa and the auxiliary point Pb.
3. As shown in fig. 5C, if the circle a and the circle B do not have an intersection, the intersections between the line connecting the centers of the circle a and the circle B and the circumference are made R and S, respectively. The intermediate point P between the connecting line of the point R and the point S is taken as the center point between the auxiliary point Pa and the auxiliary point Pb.
Step 405: an average value of the plurality of position estimation values is calculated, and the average value is used as target position information of the target device.
In this step, by averaging a plurality of position estimates of the electronic wallet 2, remote positioning of the electronic wallet 2 can be achieved, and the larger the amount of auxiliary position information, the more accurate the calculation result.
In one embodiment, step 405 may include: and calculating the average position of all the central point positions, and taking the average position as the target position information of the target device.
Based on the way of calculating the center points of the two auxiliary points in step 404, the n auxiliary points P are calculated1……PnTwo by two are calculated to obtain
Figure BDA0003253625800000151
A center point. Suppose that
Figure BDA0003253625800000152
m is a positive integer, P'1……P'mIs m central points, the coordinates of which are (x)1,y1)……(xm,ym). The average point Q coordinate of the m center points can be calculated using the following formula:
Figure BDA0003253625800000153
Figure BDA0003253625800000154
finally, the point Q (x, y) is taken as the target position information of the electronic wallet 2.
In one embodiment, the number of the auxiliary terminals 4 is 1. When the location information of the target device is determined based on the broadcast information and the location information of the auxiliary terminal 4, the auxiliary location information of the auxiliary terminal 4 may be directly used as the target location information of the target device. That is, if there is only the location information P of one smart device and its relative distance L from the electronic wallet 2 among the information returned by the server 3, the location information P is directly taken as the target location information of the electronic wallet 2.
Please refer to fig. 5, which is a device positioning apparatus 600500 according to an embodiment of the present application, the apparatus can be applied to the electronic device 1 shown in fig. 1, and can be applied to the electronic wallet 2 positioning scenario shown in fig. 2A to 2F, so as to realize that when the electronic wallet 2 is not near the electronic device 1, the electronic wallet 2 can be remotely positioned, and then the lost electronic wallet 2 can be found in time, thereby reducing property loss of the user. The device includes: the system comprises a sending module 601, a receiving module 602 and a determining module 603, wherein the principle relationship of the modules is as follows:
the sending module 601 is configured to send a query request to the server 3, where the query request carries identification information of a target device to be queried.
A receiving module 602, configured to receive return information of the server 3 based on the query request, where the return information carries broadcast information from the target device received by the auxiliary terminal 4 and auxiliary location information of the auxiliary terminal 4 when receiving the broadcast information.
A determining module 603, configured to determine target location information of the target device according to the broadcast information and the auxiliary location information.
In an embodiment, the number of the assistant terminals 4 is multiple, and each assistant terminal 4 corresponds to one broadcast message and one assistant location message. The determining module 603 is configured to: the relative distance between each auxiliary terminal 4 and the target device is calculated based on the broadcast information received by each auxiliary terminal 4 and the auxiliary location information of each auxiliary terminal 4. And calculating a plurality of position estimation values of the target equipment according to the auxiliary position information and the relative distance corresponding to each auxiliary terminal 4. An average value of the plurality of position estimation values is calculated, and the average value is used as target position information of the target device.
In an embodiment, calculating the relative distance between each auxiliary terminal 4 and the target device according to the broadcast information received by each auxiliary terminal 4 and the auxiliary location information of each auxiliary terminal 4 includes: for each secondary terminal 4, the relative distance between the secondary terminal 4 and the target device is calculated from the signal strength of the broadcast information and the secondary location information.
In an embodiment, calculating a plurality of position estimation values of the target device according to the assistant position information and the relative distance corresponding to each assistant terminal 4 includes: and calculating the central point position of each two pairs of auxiliary position information, and taking the central point position as the position estimation value of the target equipment.
In one embodiment, calculating an average value of the plurality of position estimation values, and using the average value as the target position information of the target device includes: and calculating the average position of all the central point positions, and taking the average position as the target position information of the target device.
In one embodiment, the number of the auxiliary terminals 4 is 1. The determining module 603 is configured to: the auxiliary position information of the auxiliary terminal 4 is taken as the target position information of the target device.
In one embodiment, the return information is a ciphertext encrypted by a public key of the target device. The device still includes: the decryption module 604 is configured to decrypt the returned information according to a preset private key before determining the target location information of the target device according to the broadcast information and the auxiliary location information, so as to obtain decrypted broadcast information and auxiliary location information, where the private key and the public key are a pair of key pairs.
For a detailed description of the device positioning apparatus 600, please refer to the description of the related method steps in the above embodiments.
An embodiment of the present invention further provides a non-transitory electronic device 1 readable storage medium, including: a program that, when run on the electronic device 1, causes the electronic device 1 to perform all or part of the flow of the method in the above-described embodiments. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like. The storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (17)

1. A method for locating a device, comprising:
sending a query request to a server, wherein the query request carries identification information of target equipment to be queried;
receiving return information of the server based on the query request, wherein the return information carries broadcast information received by an auxiliary terminal from the target equipment and auxiliary position information of the auxiliary terminal when the auxiliary terminal receives the broadcast information;
and determining the target position information of the target equipment according to the broadcast information and the auxiliary position information.
2. The method according to claim 1, wherein the number of the auxiliary terminals is plural, and each of the auxiliary terminals corresponds to one of the broadcast information and one of the auxiliary location information; the determining the target location information of the target device according to the broadcast information and the auxiliary location information includes:
calculating a relative distance between each auxiliary terminal and the target device according to the broadcast information received by each auxiliary terminal and the auxiliary position information of each auxiliary terminal;
calculating a plurality of position estimation values of the target equipment according to the auxiliary position information and the relative distance corresponding to each auxiliary terminal;
calculating an average value of the plurality of position estimation values, the average value being the target position information of the target device.
3. The method according to claim 2, wherein the calculating a relative distance between each of the secondary terminals and the target device according to the broadcast information received by each of the secondary terminals and the secondary position information of each of the secondary terminals comprises:
and for each auxiliary terminal, calculating the relative distance between the auxiliary terminal and the target equipment according to the signal strength of the broadcast information and the auxiliary position information.
4. The method of claim 2, wherein the calculating a plurality of position estimates of the target device according to the assistant position information and the relative distance corresponding to each assistant terminal comprises:
and calculating the position of the central point of each two pairs of auxiliary position information, and taking the position of the central point as the position estimation value of the target equipment.
5. The method of claim 4, wherein the calculating an average of the plurality of position estimation values, the average being the target position information of the target device, comprises:
and calculating the average position of all the central point positions, and taking the average position as the target position information of the target equipment.
6. The method according to claim 1, wherein the number of the auxiliary terminals is 1; the determining the location information of the target device according to the broadcast information and the location information of the auxiliary terminal includes:
and taking the auxiliary position information of the auxiliary terminal as the target position information of the target equipment.
7. The method of claim 1, wherein the return information is a ciphertext encrypted by a public key of the target device; before the determining the target location information of the target device according to the broadcast information and the auxiliary location information, further comprising:
and decrypting the returned information according to a preset private key to obtain the decrypted broadcast information and the decrypted auxiliary position information, wherein the private key and the public key are a pair of key pairs.
8. An apparatus positioning device, comprising:
the system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a query request to a server, and the query request carries identification information of target equipment to be queried;
a receiving module, configured to receive return information of the server based on the query request, where the return information carries broadcast information from the target device received by an auxiliary terminal and auxiliary location information of the auxiliary terminal when the auxiliary terminal receives the broadcast information;
a determining module, configured to determine target location information of the target device according to the broadcast information and the auxiliary location information.
9. The apparatus according to claim 8, wherein the number of the secondary terminals is plural, and each of the secondary terminals corresponds to one of the broadcast information and one of the secondary location information; the determination module is to:
calculating a relative distance between each auxiliary terminal and the target device according to the broadcast information received by each auxiliary terminal and the auxiliary position information of each auxiliary terminal;
calculating a plurality of position estimation values of the target equipment according to the auxiliary position information and the relative distance corresponding to each auxiliary terminal;
calculating an average value of the plurality of position estimation values, the average value being the target position information of the target device.
10. The apparatus of claim 9, wherein the calculating a relative distance between each of the secondary terminals and the target device according to the broadcast information received by each of the secondary terminals and the secondary position information of each of the secondary terminals comprises:
and for each auxiliary terminal, calculating the relative distance between the auxiliary terminal and the target equipment according to the signal strength of the broadcast information and the auxiliary position information.
11. The apparatus of claim 9, wherein the calculating a plurality of position estimates of the target device according to the assistant position information and the relative distance corresponding to each assistant terminal comprises:
and calculating the position of the central point of each two pairs of auxiliary position information, and taking the position of the central point as the position estimation value of the target equipment.
12. The apparatus of claim 11, wherein the calculating an average of the plurality of position estimation values, the average being the target position information of the target device, comprises:
and calculating the average position of all the central point positions, and taking the average position as the target position information of the target equipment.
13. The apparatus of claim 8, wherein the number of the secondary terminals is 1; the determination module is to:
and taking the auxiliary position information of the auxiliary terminal as the target position information of the target equipment.
14. The apparatus of claim 8, wherein the return information is a ciphertext encrypted by a public key of the target device; the device further comprises:
and the decryption module is used for decrypting the return information according to a preset private key before determining the target position information of the target device according to the broadcast information and the auxiliary position information to obtain the decrypted broadcast information and the decrypted auxiliary position information, wherein the private key and the public key are a pair of keys.
15. An electronic device, comprising:
a memory to store a computer program;
a processor to execute the computer program to implement the method of any one of claims 1 to 7.
16. An electronic wallet, comprising:
the safety module is used for loading the virtual card information;
the communication module is used for establishing communication connection with the bound external equipment;
the main control module is respectively connected with the security module and the communication module and is used for controlling the virtual card of the security module to perform data interaction with the external equipment through the communication module;
the main control module is further configured to:
receiving an offline protection instruction sent by the external equipment, wherein the offline protection instruction carries an offline protection duration;
and when the electronic wallet does not establish communication connection with the external equipment within the offline protection duration, controlling the security module to close the data interaction authority of the virtual card.
17. A non-transitory electronic device readable storage medium, comprising: program which, when run by an electronic device, causes the electronic device to perform the method of any one of claims 1 to 7.
CN202111053584.5A 2021-09-09 2021-09-09 Device positioning method, device, wallet and storage medium Pending CN113766429A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111053584.5A CN113766429A (en) 2021-09-09 2021-09-09 Device positioning method, device, wallet and storage medium
PCT/CN2021/119439 WO2023035319A1 (en) 2021-09-09 2021-09-18 Device positioning method and apparatus, and device, wallet and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111053584.5A CN113766429A (en) 2021-09-09 2021-09-09 Device positioning method, device, wallet and storage medium

Publications (1)

Publication Number Publication Date
CN113766429A true CN113766429A (en) 2021-12-07

Family

ID=78794092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111053584.5A Pending CN113766429A (en) 2021-09-09 2021-09-09 Device positioning method, device, wallet and storage medium

Country Status (2)

Country Link
CN (1) CN113766429A (en)
WO (1) WO2023035319A1 (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103874014A (en) * 2012-12-17 2014-06-18 中兴通讯股份有限公司 Terminal location information-based business service method, service provision device and terminal
US20140227972A1 (en) * 2013-02-13 2014-08-14 Nxp B.V. NFC-enable Mobile Device, NFC reader and NFC system for Supporting a Plurality of Proximity Services
CN104735783A (en) * 2015-04-21 2015-06-24 北京云迹科技有限公司 Method, device and server for querying locations
CN105427106A (en) * 2014-09-17 2016-03-23 苏州海博智能系统有限公司 Electronic cash data authorization processing method, electronic cash data payment processing method and virtual card
CN106060773A (en) * 2016-05-09 2016-10-26 腾讯科技(深圳)有限公司 Object positioning system, method and device
CN106291461A (en) * 2016-09-30 2017-01-04 香港中文大学深圳研究院 Method, device, server and the system of a kind of RFID indoor positioning
CN106412819A (en) * 2015-07-31 2017-02-15 腾讯科技(深圳)有限公司 Method and device for positioning device
CN108322886A (en) * 2017-12-15 2018-07-24 腾讯科技(深圳)有限公司 The method for authenticating and device of terminal positioning data
CN111132014A (en) * 2019-12-31 2020-05-08 南京烽火星空通信发展有限公司 Wireless sensor network node positioning method based on unmanned aerial vehicle mobile beacon
CN111601293A (en) * 2020-05-12 2020-08-28 北京三快在线科技有限公司 Positioning method and device based on Bluetooth beacon equipment
CN112040394A (en) * 2020-08-05 2020-12-04 深圳市微能信息科技有限公司 Bluetooth positioning method and system based on AI deep learning algorithm
WO2021012792A1 (en) * 2019-07-23 2021-01-28 西安中兴新软件有限责任公司 Device positioning method, terminal, server, and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103874014A (en) * 2012-12-17 2014-06-18 中兴通讯股份有限公司 Terminal location information-based business service method, service provision device and terminal
US20140227972A1 (en) * 2013-02-13 2014-08-14 Nxp B.V. NFC-enable Mobile Device, NFC reader and NFC system for Supporting a Plurality of Proximity Services
CN105427106A (en) * 2014-09-17 2016-03-23 苏州海博智能系统有限公司 Electronic cash data authorization processing method, electronic cash data payment processing method and virtual card
CN104735783A (en) * 2015-04-21 2015-06-24 北京云迹科技有限公司 Method, device and server for querying locations
CN106412819A (en) * 2015-07-31 2017-02-15 腾讯科技(深圳)有限公司 Method and device for positioning device
CN106060773A (en) * 2016-05-09 2016-10-26 腾讯科技(深圳)有限公司 Object positioning system, method and device
CN106291461A (en) * 2016-09-30 2017-01-04 香港中文大学深圳研究院 Method, device, server and the system of a kind of RFID indoor positioning
CN108322886A (en) * 2017-12-15 2018-07-24 腾讯科技(深圳)有限公司 The method for authenticating and device of terminal positioning data
WO2021012792A1 (en) * 2019-07-23 2021-01-28 西安中兴新软件有限责任公司 Device positioning method, terminal, server, and storage medium
CN111132014A (en) * 2019-12-31 2020-05-08 南京烽火星空通信发展有限公司 Wireless sensor network node positioning method based on unmanned aerial vehicle mobile beacon
CN111601293A (en) * 2020-05-12 2020-08-28 北京三快在线科技有限公司 Positioning method and device based on Bluetooth beacon equipment
CN112040394A (en) * 2020-08-05 2020-12-04 深圳市微能信息科技有限公司 Bluetooth positioning method and system based on AI deep learning algorithm

Also Published As

Publication number Publication date
WO2023035319A1 (en) 2023-03-16

Similar Documents

Publication Publication Date Title
CN112118227B (en) Card binding method and terminal
US9717108B2 (en) Midrange contactless transactions
US10657582B2 (en) Method, user terminal, and service terminal for processing service data
US10055740B2 (en) Payment selection and authorization
WO2014028926A1 (en) Wireless reader and payment transaction terminal functionality
CN104182874A (en) All-purpose card device, all-purpose card system and card information loading method
CA2839150A1 (en) Payment selection and authorization by a mobile device
CN108475372B (en) Access control bypass on mobile devices for public transportation
US20160189131A1 (en) Low battery and digital wallet
CN105046489A (en) Mobile payment method, mobile payment device and mobile payment
US20170357798A1 (en) Removal of credentials from an electronic device
JP2023539633A (en) Use of NFC field from phone to power card to phone Bluetooth communication
US20130103524A1 (en) System for offline processing of purchases
WO2021222562A1 (en) Intelligent card unlock
JP7223753B2 (en) payment processing
KR20140001442A (en) System, apparatus, method and computer readable recording medium for paymenting on the mobile terminal by the short message service
CN115018479A (en) Digital currency payment method and device, payment equipment, terminal and storage medium
KR101178473B1 (en) Method for providing safe payment using Near Filed Communication terminal , Near Field Communication terminal, and Radio Frequency payment apparatus
CN113766429A (en) Device positioning method, device, wallet and storage medium
US11663580B2 (en) Transaction token that stores and presents location-specific token identifiers
RU2616154C1 (en) Means, method and system for transaction implementation
US8819431B2 (en) Methods and device for electronic entities for the exchange and use of rights
US8290870B2 (en) Method and device for exchanging values between personal portable electronic entities
US20160283927A1 (en) Authentication for mobile transactions
EP2960844A1 (en) Transaction management

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20211207

RJ01 Rejection of invention patent application after publication