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

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

Info

Publication number
WO2023035319A1
WO2023035319A1 PCT/CN2021/119439 CN2021119439W WO2023035319A1 WO 2023035319 A1 WO2023035319 A1 WO 2023035319A1 CN 2021119439 W CN2021119439 W CN 2021119439W WO 2023035319 A1 WO2023035319 A1 WO 2023035319A1
Authority
WO
WIPO (PCT)
Prior art keywords
auxiliary
information
target device
location information
target
Prior art date
Application number
PCT/CN2021/119439
Other languages
French (fr)
Chinese (zh)
Inventor
李川川
姜波
Original Assignee
深圳市雪球科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市雪球科技有限公司 filed Critical 深圳市雪球科技有限公司
Publication of WO2023035319A1 publication Critical patent/WO2023035319A1/en

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

Definitions

  • the present application relates to the technical field of information processing, and in particular, relates to a device positioning method, device, device, wallet and storage medium.
  • Electronic wallets are commonly used payment tools in e-commerce shopping activities. Electronic money, such as electronic cash, electronic change, electronic credit card, etc., is stored in the electronic wallet. There are two concepts of electronic wallets: one is based on software, which is mainly used for online consumption and account management. Such software is usually connected with bank accounts or bank card accounts. The second is the smart stored-value card. The cardholder deposits a certain amount of money in the card in advance, and the transaction amount is directly deducted from the stored-value account during the transaction.
  • the purpose of the embodiment of the present application is to provide a device location method, device, device, wallet and storage medium, so that when the target device is not near the terminal carried by the user, the target device can be remotely located, and the lost device can be found in time. Target equipment, reducing user property losses.
  • the first aspect of the embodiment of the present application provides a device positioning method, including: sending a query request to a server, the query request carrying the identification information of the target device to be queried; receiving the server's return information based on the query request , the returned information carries the broadcast information received by the auxiliary terminal from the target device and the auxiliary location information of the auxiliary terminal when receiving the broadcast information; according to the broadcast information and the auxiliary location information , to determine the target location information of the target device.
  • 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; according to the broadcast information and the auxiliary location information , determining the target location information of the target device, including: calculating the relationship between each of the auxiliary terminals and the The relative distance between the target devices; according to the auxiliary position information corresponding to each of the auxiliary terminals and the relative distance, calculate a plurality of position estimation values of the target device; calculate the average of the plurality of position estimation values value, using the average value as the target location information of the target device.
  • the calculation of the distance between each of the auxiliary terminals and the target device is based on the broadcast information received by each of the auxiliary terminals and the auxiliary location information of each of the auxiliary terminals.
  • the relative distance includes: for each of the auxiliary terminals, calculating the relative distance between the auxiliary terminal and the target device according to the signal strength of the broadcast information and the auxiliary location information.
  • the calculating multiple estimated position values of the target device according to the auxiliary position information and the relative distance corresponding to each of the auxiliary terminals includes: calculating the auxiliary position information every two pairs A center point position of the information, using the center point position as the estimated position value of the target device.
  • the calculating the average value of the plurality of position estimation values and using the average value as the target position information of the target device includes: calculating the average position of all the center point positions, The average position is used as the target position information of the target device.
  • the number of the auxiliary terminal is one; the determining the location information of the target device according to the broadcast information and the location information of the auxiliary terminal includes: The auxiliary location information is used as the target location information of the target device.
  • the returned information is ciphertext encrypted by the public key of the target device; before determining the target location information of the target device according to the broadcast information and the auxiliary location information , further comprising: decrypting the returned information according to a preset private key to obtain the decrypted broadcast information and the auxiliary location information, where the private key and the public key are a pair of key pairs.
  • the second aspect of the embodiment of the present application provides a device locating device, including: a sending module, configured to send a query request to the server, the query request carrying identification information of the target device to be queried; a receiving module, configured to receive the The server returns information based on the query request, the returned information carries the broadcast information received by the auxiliary terminal from the target device and the auxiliary location information of the auxiliary terminal when receiving the broadcast information; determine A module, configured to determine target location information of the target device according to the broadcast information and the auxiliary location information.
  • 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; the determining module is configured to: according to each auxiliary terminal received The broadcast information and the auxiliary location information of each of the auxiliary terminals, calculate the relative distance between each of the auxiliary terminals and the target device; according to the auxiliary location corresponding to each of the auxiliary terminals information and the relative distance, and calculate multiple estimated position values of the target device; calculate an average value of the multiple estimated position values, and use the average value as the target position information of the target device.
  • the calculation of the distance between each of the auxiliary terminals and the target device is based on the broadcast information received by each of the auxiliary terminals and the auxiliary location information of each of the auxiliary terminals.
  • the relative distance includes: for each of the auxiliary terminals, calculating the relative distance between the auxiliary terminal and the target device according to the signal strength of the broadcast information and the auxiliary location information.
  • the calculating multiple estimated position values of the target device according to the auxiliary position information and the relative distance corresponding to each of the auxiliary terminals includes: calculating the auxiliary position information every two pairs A center point position of the information, using the center point position as the estimated position value of the target device.
  • the calculating the average value of the plurality of position estimation values and using the average value as the target position information of the target device includes: calculating the average position of all the center point positions, The average position is used as the target position information of the target device.
  • the number of the auxiliary terminal is one; the determining module is configured to: use the auxiliary location information of the auxiliary terminal as the target location information of the target device.
  • the returned information is a ciphertext encrypted by the public key of the target device; the device further includes: a decryption module, configured to transmit the information according to the broadcast information and the auxiliary location information , before determining the target location information of the target device, decrypt the returned information according to a preset private key to obtain the decrypted broadcast information and the auxiliary location information, the private key and the public The key is a pair of key pairs.
  • the third aspect of the embodiment of the present application provides an electronic device, including: a memory for storing a computer program; a processor for executing the computer program, so as to realize the first aspect of the embodiment of the present application and any embodiment thereof Methods.
  • the fourth aspect of the embodiment of the present application provides an electronic wallet, including: a security module, used to load virtual card information; a communication module, used to establish a communication connection with a bound external device; a main control module, respectively connected to the security module and the communication module are used to control the virtual card of the security module to perform data interaction with the external device through the communication module; the main control module is also used to: receive the offline protection sent by the external device instruction, the offline protection instruction carries an offline protection duration; when the electronic wallet does not establish a communication connection with the external device within the offline protection duration, control the security module to close the virtual card data interaction permissions.
  • the fifth aspect of the embodiment of the present application provides a non-transitory electronic device-readable storage medium, including: a program that, when run by the electronic device, enables the electronic device to execute the first aspect of the embodiment of the present application and any other A method of an embodiment.
  • the device positioning method, device, device, wallet and storage medium provided in this application can query the server for the broadcast information sent by the target device and the auxiliary location information of the auxiliary terminal when receiving the broadcast information through the user terminal, based on the broadcast information and
  • the auxiliary location information can locate the location of the target device, so that when the target device is not in the vicinity of the user terminal, the target device can also be remotely located, and then the target device can be found in time when the target device is lost, reducing the user's property loss.
  • FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIGS. 2A to 2F are schematic diagrams of 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.
  • 5A to 5C are schematic diagrams for calculating the center point between two auxiliary points according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an equipment positioning device according to an embodiment of the present application.
  • this embodiment provides an electronic device 1 , including: at least one processor 11 and a memory 12 , and one processor is taken as an example in FIG. 1 .
  • Processor 11 and memory 12 are connected via bus 10 .
  • the memory 12 stores instructions that can be executed 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 process of the method in the following embodiments to remotely locate the target device, and then the target device When the device is lost, the target device can be found in time to reduce the user's property loss.
  • the electronic device 1 may be a mobile phone, a tablet computer, a notebook computer, a desktop computer and other devices.
  • the target device may be a mobile device with e-wallet function.
  • FIG. 2A it is a schematic diagram of a device positioning system according to an embodiment of the present application, including: an electronic wallet 2, an electronic device 1 and a server 3, wherein:
  • the server 3 may include: a location search module, a virtual card management module and a device management module.
  • the electronic wallet 2 stores the user's smart virtual card information, such as access control cards, bus cards, bank cards, and digital RMB wallets.
  • the electronic wallet 2 can perform data interaction with the electronic device 1 through a data connection.
  • the electronic device 1 is loaded with application program, the electronic device 1 can perform data interaction with the electronic wallet 2 and the server 3 based on the application program, so as to complete the control of the electronic wallet 2 .
  • FIG. 2B it is a schematic diagram of an electronic wallet 2 according to an embodiment of the present application, including: a main control module, a security module, and a communication module, wherein the communication module may include: an NFC module, a Bluetooth module, and a UWB (Ultra Wide Band, Ultra Wide Band) Broadband) module, in which:
  • the security module is used for loading virtual card information.
  • the private information of the user is stored in the security module, for example, it may include: the key data of the electronic wallet 2 itself, bus card, access control card, bank card, digital RMB and other application data.
  • the security module has the function of anti-attack and anti-cracking, which can guarantee the security of user data.
  • the communication module is used to establish a communication connection with the bound external device.
  • the NFC module supports an external NFC card reader, transmits data through the NFC antenna, and can interact with the security module to complete the card swiping recharge transaction of virtual cards such as bus cards, and can complete the identity verification transaction of the access control card and the deduction of the bank card. Remittance transactions, as well as digital RMB consumption transactions and other types of transactions that comply with industry norms.
  • the NFC module can also accept instructions from the main control module to perform read and write operations on external physical cards.
  • the main control module is respectively connected to the security module and the communication module, and the virtual card used to control the security module performs data interaction with external devices through the communication module.
  • the electronic wallet 2 can control the bluetooth antenna of the bluetooth module to broadcast messages to the outside through the main control module, and can establish communication with the electronic device 1 supporting bluetooth.
  • the electronic wallet 2 can be connected with the user's mobile phone or computer to complete operations such as activation and management of the electronic wallet 2 and virtual card management.
  • the bluetooth module can also be connected with the acceptance terminal of the electronic wallet 2 to complete the transaction.
  • the access control card reader (acceptance terminal) that supports Bluetooth can establish a connection with the electronic wallet 2, complete the transaction logic through the main control module, and use the security key stored in the security module to open the door after identity verification.
  • the e-wallet 2 has a built-in UWB module, which can be used for data interaction with other UWB devices to complete precise positioning.
  • the main control module establishes a connection with the external auxiliary terminal 4 or electronic device 1 that supports UWB by controlling the UWB module, so that the electronic device 1 can accurately locate the electronic wallet 2, thereby facilitating the user to find the location of the electronic wallet 2.
  • the electronic wallet 2 can also use the bus card application or digital RMB application stored in the security module to complete consumption transactions. Take out the e-wallet 2 to complete the premium experience of the transaction.
  • the main control module is further configured to: receive an offline protection instruction sent by an external device, and the offline protection instruction carries an offline protection duration.
  • the control security module closes the data interaction authority of the virtual card.
  • the user can set the offline time of the electronic wallet 2 through the smart phone application, where the definition of offline can be a state where the user's mobile phone and the electronic wallet 2 are not connected. That is, when the communication between the electronic wallet 2 and the user's mobile phone stops, the timing starts. Within the offline time range, the electronic wallet 2 normally performs various functions, including the use of virtual cards.
  • the e-wallet 2 After the e-wallet 2 counts beyond the offline time, it will set itself to the lost mode, and the virtual card simulation function will be closed, thereby protecting the fund security and identity security in the virtual card, so that the person who picks up or steals the e-wallet 2 It is impossible to use the e-wallet 2 to take a car, or to swipe the card to enter and exit the community or company access control, so as to realize the loss protection of the e-wallet 2.
  • the electronic wallet 2 When the electronic wallet 2 is successfully connected with the user's mobile phone again, check the enabling status of the virtual card and keep it in an available mode. At the same time, the internal timer of the electronic wallet 2 is reset. User can choose to disable this feature.
  • the electronic wallet 2 i.e., the smart wallet
  • the electronic device 1 takes the user's smart phone as an example. The specific process is as follows:
  • the electronic wallet 2 needs its own battery, such as a button battery or a lithium battery. After purchasing the electronic wallet 2, the user needs to ensure that the electronic wallet 2 has sufficient power. After turning on the power of the electronic wallet 2, it will automatically enter the waiting state.
  • a button battery or a lithium battery After purchasing the electronic wallet 2, the user needs to ensure that the electronic wallet 2 has sufficient power. After turning on the power of the electronic wallet 2, it will automatically enter the waiting state.
  • the electronic wallet 2 sends Bluetooth broadcasts waiting for pairing at regular intervals.
  • the user opens the corresponding application on the smart phone, selects to add a device, and actively scans the electronic wallet 2 through Bluetooth. After the electronic wallet 2 is found, the user is prompted to bind it.
  • the smart phone application establishes a connection with the e-wallet 2 and performs a device verification process to ensure that the e-wallet 2 is a real and legal device, allowing the establishment of a binding relationship with the application.
  • the Wallet 2 may require the user to click a button or vibrate the Wallet 2 to authorize the smartphone connection.
  • a secure channel between the smart phone application program and the electronic wallet 2 is established to protect subsequent data transmission.
  • the smartphone application generates an asymmetric public-private key pair, and securely stores the private key with the smartphone.
  • the private key will be used to decrypt the geographic location information encrypted by the public key in the future.
  • the smart phone application writes the public key into the electronic wallet 2 through a secure channel.
  • the smart phone application sends the device identification information of the electronic wallet 2 and the account currently logged in by the user to the server 3 to realize the registration of the electronic wallet 2 and bind the electronic wallet 2 to the current account. In the future, the user can obtain the location information of the electronic wallet 2 through the current account.
  • the pairing process is now complete.
  • the smart phone application program reads the information of the electronic wallet 2, including information such as the brand, model, serial number, and opened virtual card of the electronic wallet 2.
  • the smart phone application displays the information that the user cares about, and prompts the user that the device is successfully bound.
  • the electronic wallet 2 that is, the smart wallet
  • the user wants to use a certain virtual card he first needs to complete the opening process of the relevant virtual card.
  • the electronic device 1 takes the user's smart phone as an example. The process is as follows:
  • the electronic wallet 2 repeatedly sends broadcast information at regular intervals.
  • the smart phone application initiates a connection action to establish a connection with the electronic wallet 2 .
  • Virtual card applications can be bus cards, access control cards, bank cards or digital renminbi, etc.
  • the application program of the smart phone applies to the server 3 for opening a virtual card.
  • the virtual card management module of the server 3 requests the payment result from the payment channel.
  • the payment channel returns the successful payment result to the virtual card management module.
  • the virtual card management module of the server 3 requests a card issuing authority from the card issuing institution.
  • the card issuer authorizes the application for card issuance, and returns the authorization result to the server 3 .
  • the virtual card management module of the server 3 generates a virtual card activation instruction and sends it to the application program of the smart phone.
  • the main control module of the electronic wallet 2 can receive the activation instruction of the virtual card through the Bluetooth module, and then forward the instruction to the security module for execution.
  • the security module returns the execution result to the main control module.
  • the main control module of the electronic wallet 2 returns the execution result of the activation instruction of the virtual card to the application program of the smart phone through the Bluetooth module.
  • the application program of the smart phone then verifies the execution result through the server 3 to determine that the virtual card is activated successfully.
  • the smart phone application prompts the user that the virtual card is activated successfully, and displays the activation result to the user.
  • the user can manage the virtual card through the application program of the smart phone: for example, the user can delete the virtual card. Users can specify the bus card, access control card, bank card or digital RMB wallet application to delete in the smartphone application.
  • the application program requests a virtual card deletion instruction through the virtual card management module to complete the deletion process.
  • the virtual bus card can also be recharged through an application program on a smart phone.
  • the recharging process is similar to the opening process of a virtual card. The user needs to select the recharge amount and pay the corresponding amount, and then the application virtual card management module of the smart phone applies for a recharge instruction to complete the recharge process.
  • the electronic device 1 can be the user's mobile phone.
  • the electronic wallet 2 is lost.
  • the user can use the UWB function of the mobile phone to check the exact location of the electronic wallet 2. display.
  • the user can search for the electronic wallet 2 according to the position and direction displayed on the screen of the mobile phone.
  • the positioning method of the short-distance electronic wallet 2 is as follows:
  • the e-wallet 2 will continuously send broadcast information through bluetooth at regular intervals.
  • the user's mobile phone establishes a connection with the electronic wallet 2 via Bluetooth, and negotiates a UWB communication key.
  • the user's mobile phone uses its own UWB module to locate the electronic wallet 2, calculate the distance by calculating the transmission and return time of communication data, and calculate the angle of the electronic wallet 2 through the arrival angle of the UWB signal, so as to accurately calculate the electronic wallet 2.
  • the user's mobile phone displays the location information of the electronic wallet 2 and the current location information of the user to the user based on the application program, and assists the user in locating and finding the lost electronic wallet 2 .
  • the electronic wallet 2 In actual scenarios, after the electronic wallet 2 is lost, it often occurs that the electronic wallet 2 is not within the UWB positioning range of the mobile phone. At this time, the user can initiate a remote positioning operation by starting an application program on the mobile phone.
  • FIG. 2F it is a schematic diagram of a device positioning system according to an embodiment of the present application, which also includes: an auxiliary terminal 4, where the auxiliary terminal 4 can be any other user's mobile phone, tablet computer, smart bracelet and other devices.
  • the electronic wallet 2 will automatically broadcast messages at certain intervals.
  • the auxiliary terminal 4 can establish a connection with the electronic wallet 2 , and then encrypt and upload its location information to the server 3 .
  • the user downloads and decrypts the location information of the auxiliary terminal 4 through the application program on the mobile phone, and then obtains the location of the electronic wallet 2 based on the location information of the auxiliary terminal 4 .
  • the specific process can be as follows:
  • FIG. 3 is a device positioning method according to an embodiment of the present application.
  • This method can be executed by the electronic device 1 shown in FIG. 1 as the current terminal, and can be applied to the electronic wallet 2 shown in FIG. 2A to FIG. 2F
  • the electronic wallet 2 can also be remotely located, and then the lost electronic wallet 2 can be found in time to reduce the user's property loss.
  • the method comprises the steps of:
  • Step 301 Send a query request to the server 3, where the query request carries identification information of the target device to be queried.
  • the target device is an electronic wallet 2
  • the electronic device 1 is an example of a user's mobile phone.
  • the identification information can be the unique product number of the electronic wallet 2, or self-defined identification information, and the identification information can be searched Wallet 2 distinguishes itself from other devices.
  • the user's electronic wallet 2 is lost, the user can actively send an inquiry request to the server 3 through the mobile phone to perform remote location search.
  • Step 302 Receiving the information returned by the server 3 based on the query request, the returned information carries the broadcast information received by the auxiliary terminal 4 from the target device and the auxiliary location information of the auxiliary terminal 4 when receiving the broadcast information.
  • the electronic wallet 2 will continuously send broadcast information via bluetooth at a certain interval.
  • the public key of the electronic wallet 2 may be carried in the broadcast information.
  • Any smart device including mobile phones, tablets, computers, routers and Internet of Things devices, etc., as long as it can support the establishment of data communication with the electronic wallet 2, can be used as the auxiliary terminal 4.
  • the auxiliary terminal 4 appears near the electronic wallet 2 , can accept the broadcast information sent by electronic wallet 2, and read the public key of electronic wallet 2.
  • the auxiliary terminal 4 After the auxiliary terminal 4 receives the broadcast information, it can read the geographic location information of itself in real time, and then use the public key to encrypt the geographic location information of the auxiliary terminal 4 (ie, auxiliary location information).
  • the geographic location information of the auxiliary terminal 4 itself is encrypted and uploaded to the server 3 . Since the geographic location information of the auxiliary terminal 4 itself is encrypted by the public key of the electronic wallet 2, the corresponding private key only exists in the mobile phone device bound to the electronic wallet 2. Therefore, only the mobile phone bound with the electronic wallet 2 can decrypt and view the information, which ensures the security of user information.
  • the mobile phone can receive the return information from the server 3 in real time, and the return information is the specific information returned by the server 3 based on the query request.
  • the returned information may be the encrypted geographic location information uploaded by the auxiliary terminal 4 within a period of time and the broadcast information received by the auxiliary terminal 4 from the electronic wallet 2 .
  • Step 303 Determine the target location information of the target device according to the broadcast information and the auxiliary location information.
  • the electronic wallet 2 can be located indirectly based on the geographic location information of other auxiliary devices stored in the server 3 and related broadcast information , on the mobile phone side, the current location and track of the electronic wallet 2 can be displayed to the user based on the application program, and then assist the user to find the lost electronic wallet 2 .
  • the returned information is a ciphertext encrypted by the public key of the target device. That is, the information returned by the server 3 is encrypted by the public key of the e-wallet 2, and the private key of the e-wallet 2 is stored in the mobile phone of the user bound to the e-wallet 2, and the private key and the above-mentioned public key are a pair key pair. Therefore, before step 303, the return information is firstly decrypted according to the preset private key to obtain the decrypted broadcast information and auxiliary location information, and then the geographic location information of the auxiliary device and related broadcast information are indirectly connected to the electronic wallet 2 for remote positioning.
  • the user terminal can query the server 3 for the broadcast information sent by the target device and the auxiliary location information when the auxiliary terminal 4 receives the broadcast information, and based on the broadcast information and the auxiliary location information, the target can be located
  • the location of the device realizes that when the target device is not near the user terminal, the target device can also be located remotely, and then the target device can be found in time when the target device is lost, reducing the user's property loss.
  • FIG. 4 is a device positioning method according to an embodiment of the present application.
  • This method can be executed by the electronic device 1 shown in FIG. 1 as the current terminal, and can be applied to the electronic wallet 2 shown in FIG. 2A to FIG. 2F
  • the electronic wallet 2 can also be remotely located, and then the lost electronic wallet 2 can be found in time to reduce the user's property loss.
  • the method comprises the steps of:
  • Step 401 Send a query request to the server 3, where the query request carries the identification information of the target device to be queried.
  • the query request carries the identification information of the target device to be queried.
  • Step 402 Receiving the information returned by the server 3 based on the query request, the returned information carries the broadcast information received by the auxiliary terminal 4 from the target device and the auxiliary location information of the auxiliary terminal 4 when receiving the broadcast information.
  • the returned information carries the broadcast information received by the auxiliary terminal 4 from the target device and the auxiliary location information of the auxiliary terminal 4 when receiving the broadcast information.
  • Step 403 Calculate 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 .
  • each auxiliary terminal 4 corresponds to one piece of broadcast information and one piece of auxiliary location information. That is to say, when remote positioning, at the same time, there may be multiple smart devices that can be used as auxiliary terminals 4 near the electronic wallet 2, and each smart device will upload the broadcast information received by the electronic wallet 2 to the server. 3.
  • each auxiliary terminal 4 calculates the target location information of the target device according to the broadcast information and the auxiliary location information.
  • step 403 may include: for each auxiliary terminal 4 , calculating the relative distance between the auxiliary terminal 4 and the target device according to the signal strength of the broadcast information and the auxiliary location information.
  • the broadcast information may include broadcast content and broadcast signal strength RSSI (Received Signal Strength Indication, signal strength indication) information.
  • RSSI information is a commonly used indicator in Bluetooth communication.
  • Each auxiliary terminal 4 will upload the received broadcast content and RSSI information to the server 3.
  • RSSI information can be used to estimate the distance between the sender and receiver of the Bluetooth signal .
  • the auxiliary terminal 4 receives the broadcast information sent by the electronic wallet 2, it will carry RSSI. From the RSSI, the relative distance between the auxiliary terminal 4 and the smart wallet can be estimated.
  • Step 404 According to the auxiliary position information and relative distance corresponding to each auxiliary terminal 4, calculate multiple position estimation values of the target device.
  • the information returned by the server 3 includes auxiliary location information of a plurality of auxiliary terminals 4, then the same amount of relative location information can be obtained in the corresponding step 403, considering the positioning information uploaded by each auxiliary terminal 4 comprehensively, To calculate multiple position estimates of the electronic wallet 2, the accuracy of remote positioning can be improved.
  • step 403 may include: calculating a center point position of every pair of auxiliary position information, and using the center point position as an estimated position value of the target device.
  • auxiliary terminal 4 positioning information P1...Pn in the information returned by the server 3 (i.e. auxiliary position information, wherein Pn represents the auxiliary point corresponding to the auxiliary position information of the nth auxiliary terminal 4, and n is an integer greater than 1 )
  • the relative distances between the auxiliary position information P1...Pn corresponding to each auxiliary terminal 4 and the electronic wallet 2 are L1...Ln respectively, and the center positions are calculated pair by pair for n auxiliary points.
  • a circle A is drawn with the auxiliary point Pa as the center and the relative distance La as the radius.
  • a circle B is drawn with the auxiliary point Pb as the center and the relative distance Lb as the radius. It is calculated as follows:
  • Step 405 Calculate the average value of multiple estimated position values, and use the average value as the target position information of the target device.
  • the remote positioning of the electronic wallet 2 can be realized by averaging multiple estimated positions of the electronic wallet 2, and the more the auxiliary position information is, the more accurate the calculation result will be.
  • step 405 may include: calculating an average position of all center point positions, and using the average position as target position information of the target device.
  • the point Q(x, y) is used as the target position information of the electronic wallet 2 .
  • the number of the auxiliary terminal 4 is one.
  • the auxiliary location information of the auxiliary terminal 4 may be directly used as the target location information of the target device. That is to say, if the information returned by the server 3 only includes the location information P of one smart device and its relative distance L to the electronic wallet 2, then the location information P is directly used as the target location information of the electronic wallet 2.
  • FIG. 5 is a device positioning device 600 according to an embodiment of the present application.
  • This device can be applied to the electronic device 1 shown in FIG.
  • the electronic wallet 2 can also be remotely located, and then the lost electronic wallet 2 can be found in time to reduce the user's property loss.
  • the device includes: a sending module 601, a receiving module 602 and a determining module 603, and the principle relationship of each module 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 the target device to be queried.
  • the receiving module 602 is configured to receive the information returned by the server 3 based on the query request, the returned information carries the broadcast information received by the auxiliary terminal 4 from the target device and the auxiliary location information of the auxiliary terminal 4 when receiving the broadcast information.
  • the determining module 603 is configured to determine the target location information of the target device according to the broadcast information and the auxiliary location information.
  • each auxiliary terminal 4 corresponds to a piece of broadcast information and a piece of auxiliary location information.
  • the determining module 603 is configured to: calculate 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 . According to the auxiliary position information and the relative distance corresponding to each auxiliary terminal 4, multiple estimated position values of the target device are calculated. Calculate an average value of a plurality of position estimation values, and use the average value as target position information of the target device.
  • calculating the relative distance between each auxiliary terminal 4 and the target device includes: for each auxiliary terminal 4 , calculate the relative distance between the auxiliary terminal 4 and the target device according to the signal strength of the broadcast information and the auxiliary location information.
  • the calculation of multiple estimated position values of the target device includes: calculating the center point position of every pair of auxiliary position information, and taking the center point position as The location estimate of the target device.
  • calculating the average value of multiple position estimation values and using the average value as the target position information of the target device includes: calculating the average position of all center points, and using the average position as the target position information of the target device.
  • the number of the auxiliary terminal 4 is one.
  • the determining module 603 is configured to: use the auxiliary location information of the auxiliary terminal 4 as the target location information of the target device.
  • the returned information is a ciphertext encrypted by the public key of the target device.
  • the device also includes: a decryption module 604, configured to decrypt the returned information according to the preset private key before determining the target location information of the target device according to the broadcast information and the auxiliary location information, to obtain the decrypted broadcast information and the auxiliary location Information, the private key and the public key are a pair of key pairs.
  • the embodiment of the present application also provides a non-transitory electronic device 1 readable storage medium, including: a program, when running on the electronic device 1, the electronic device 1 can execute all or part of the process of the method in the above embodiment .
  • the storage medium can be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, Abbreviation: HDD) or Solid-State Drive (SSD), etc.
  • the storage medium may also include a combination of the above-mentioned kinds of memories.

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

Provided in the present application are a device positioning method and apparatus, and a device, a wallet and a storage medium. The method comprises: sending a query request to a server, wherein the query request carries identification information of a target device to be subjected to a query; receiving returned information of the server based on the query request, wherein the returned information carries broadcast information, which is received by an auxiliary terminal and from the target device, and auxiliary location information when the auxiliary terminal receives the broadcast information; and determining target location information of the target device according to the broadcast information and the auxiliary location information. By means of the present application, when the target device is not in the vicinity of a terminal carried by a user, the target device may also be remotely positioned, so as to find the lost target device in a timely manner, thereby reducing property losses of the user.

Description

设备定位方法、装置、设备、钱包和存储介质Device location method, device, device, wallet and storage medium
相关申请的交叉引用Cross References to Related Applications
本申请要求于2021年09月09日提交中国专利局的申请号为2021110535845、名称为“设备定位方法、装置、设备、钱包和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application No. 2021110535845 entitled "Device Locating Method, Device, Device, Wallet, and Storage Medium" filed with the China Patent Office on September 09, 2021, the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请涉及信息处理技术领域,具体而言,涉及一种设备定位方法、装置、设备、钱包和存储介质。The present application relates to the technical field of information processing, and in particular, relates to a device positioning method, device, device, wallet and storage medium.
背景技术Background technique
电子钱包是电子商务购物活动中常用的支付工具。在电子钱包内存放有电子货币,如电子现金、电子零钱、电子信用卡等。电子钱包有两种概念:一是基于软件,主要用于网上消费、帐户管理,这类软件通常与银行账户或银行卡账户是连接在一起的。二是智能储值卡,持卡人预先在卡中存入一定的金额,交易时直接从储值帐户中扣除交易金额。Electronic wallets are commonly used payment tools in e-commerce shopping activities. Electronic money, such as electronic cash, electronic change, electronic credit card, etc., is stored in the electronic wallet. There are two concepts of electronic wallets: one is based on software, which is mainly used for online consumption and account management. Such software is usually connected with bank accounts or bank card accounts. The second is the smart stored-value card. The cardholder deposits a certain amount of money in the card in advance, and the transaction amount is directly deducted from the stored-value account during the transaction.
随着信息技术的发展,智能储值卡越来越普及,公交卡、门禁卡、银行卡等被普通用户所熟知并使用,并且基于软件类的电子钱包设备也逐渐进入人们的生活。然而,实际场景中,无论是储值卡还是电子钱包设备都非常容易遗失,给人们的生活带来了财产损失。因此,如何自动定位和查找丢失的电子钱包成为一个亟待解决的技术问题。With the development of information technology, smart stored-value cards are becoming more and more popular, bus cards, access control cards, bank cards, etc. are well known and used by ordinary users, and software-based electronic wallet devices are gradually entering people's lives. However, in actual scenarios, both stored-value cards and electronic wallet devices are very easy to lose, which brings property losses to people's lives. Therefore, how to automatically locate and find lost electronic wallets has become an urgent technical problem to be solved.
发明内容Contents of the invention
本申请实施例的目的在于提供一种设备定位方法、装置、设备、钱包和存储介质,实现了当目标设备不在用户携带的终端的附近时,也可以远程定位到目标设备,进而及时找到遗失的目标设备,减少用户财产损失。The purpose of the embodiment of the present application is to provide a device location method, device, device, wallet and storage medium, so that when the target device is not near the terminal carried by the user, the target device can be remotely located, and the lost device can be found in time. Target equipment, reducing user property losses.
本申请实施例第一方面提供了一种设备定位方法,包括:发送查询请求至服务器,所述查询请求中携带有待查询的目标设备的标识信息;接收所述服务器基于所述查询请求的返回信息,所述返回信息中携带有辅助终端接收到的来自所述目标设备的广播信息和所述辅助终端在接收到所述广播信息时的辅助位置信息;根据所述广播信息和所述辅助位置信息,确定所述目标设备的目标位置信息。The first aspect of the embodiment of the present application provides a device positioning method, including: sending a query request to a server, the query request carrying the identification information of the target device to be queried; receiving the server's return information based on the query request , the returned information carries the broadcast information received by the auxiliary terminal from the target device and the auxiliary location information of the auxiliary terminal when receiving the broadcast information; according to the broadcast information and the auxiliary location information , to determine the target location information of the target device.
于一实施例中,所述辅助终端的数量为多个,每个所述辅助终端分别对应一个所述广播信息和一个所述辅助位置信息;所述根据所述广播信息和所述辅助位置信息,确定所述目标设备的目标位置信息,包括:根据每个所述辅助终端接收的所述广播信息和每个所述辅助终端的所述辅助位置信息,计算每个所述辅助终端与所述目标设备之间的相对距离;根据每个所述辅助终端对应的所述辅助位置信息和所述相对距离,计算所述目标设备的多 个位置估计值;计算所述多个位置估计值的平均值,将所述平均值作为所述目标设备的所述目标位置信息。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; according to the broadcast information and the auxiliary location information , determining the target location information of the target device, including: calculating the relationship between each of the auxiliary terminals and the The relative distance between the target devices; according to the auxiliary position information corresponding to each of the auxiliary terminals and the relative distance, calculate a plurality of position estimation values of the target device; calculate the average of the plurality of position estimation values value, using the average value as the target location information of the target device.
于一实施例中,所述根据每个所述辅助终端接收的所述广播信息和每个所述辅助终端的所述辅助位置信息,计算每个所述辅助终端与所述目标设备之间的相对距离,包括:针对每个所述辅助终端,根据所述广播信息的信号强度和所述辅助位置信息,计算所述辅助终端与所述目标设备之间的相对距离。In an embodiment, the calculation of the distance between each of the auxiliary terminals and the target device is based on the broadcast information received by each of the auxiliary terminals and the auxiliary location information of each of the auxiliary terminals. The relative distance includes: for each of the auxiliary terminals, calculating the relative distance between the auxiliary terminal and the target device according to the signal strength of the broadcast information and the auxiliary location information.
于一实施例中,所述根据每个所述辅助终端对应的所述辅助位置信息和所述相对距离,计算所述目标设备的多个位置估计值,包括:计算每两两所述辅助位置信息的中心点位置,将所述中心点位置作为所述目标设备的所述位置估计值。In an embodiment, the calculating multiple estimated position values of the target device according to the auxiliary position information and the relative distance corresponding to each of the auxiliary terminals includes: calculating the auxiliary position information every two pairs A center point position of the information, using the center point position as the estimated position value of the target device.
于一实施例中,所述计算所述多个位置估计值的平均值,将所述平均值作为所述目标设备的所述目标位置信息,包括:计算全部所述中心点位置的平均位置,将所述平均位置作为所述目标设备的所述目标位置信息。In an embodiment, the calculating the average value of the plurality of position estimation values and using the average value as the target position information of the target device includes: calculating the average position of all the center point positions, The average position is used as the target position information of the target device.
于一实施例中,所述辅助终端的数量为1个;所述根据所述广播信息和所述辅助终端的位置信息,确定所述目标设备的位置信息,包括:将所述辅助终端的所述辅助位置信息作为所述目标设备的目标位置信息。In one embodiment, the number of the auxiliary terminal is one; the determining the location information of the target device according to the broadcast information and the location information of the auxiliary terminal includes: The auxiliary location information is used as the target location information of the target device.
于一实施例中,所述返回信息为由所述目标设备的公钥加密后的密文;在所述根据所述广播信息和所述辅助位置信息,确定所述目标设备的目标位置信息之前,还包括:根据预设的私钥对所述返回信息进行解密处理,得到解密后的所述广播信息和所述辅助位置信息,所述私钥与所述公钥为一对密钥对。In one embodiment, the returned information is ciphertext encrypted by the public key of the target device; before determining the target location information of the target device according to the broadcast information and the auxiliary location information , further comprising: decrypting the returned information according to a preset private key to obtain the decrypted broadcast information and the auxiliary location information, where the private key and the public key are a pair of key pairs.
本申请实施例第二方面提供了一种设备定位装置,包括:发送模块,用于发送查询请求至服务器,所述查询请求中携带有待查询的目标设备的标识信息;接收模块,用于接收所述服务器基于所述查询请求的返回信息,所述返回信息中携带有辅助终端接收到的来自所述目标设备的广播信息和所述辅助终端在接收到所述广播信息时的辅助位置信息;确定模块,用于根据所述广播信息和所述辅助位置信息,确定所述目标设备的目标位置信息。The second aspect of the embodiment of the present application provides a device locating device, including: a sending module, configured to send a query request to the server, the query request carrying identification information of the target device to be queried; a receiving module, configured to receive the The server returns information based on the query request, the returned information carries the broadcast information received by the auxiliary terminal from the target device and the auxiliary location information of the auxiliary terminal when receiving the broadcast information; determine A module, configured to determine target location information of the target device according to the broadcast information and the auxiliary location information.
于一实施例中,所述辅助终端的数量为多个,每个所述辅助终端分别对应一个所述广播信息和一个所述辅助位置信息;确定模块用于:根据每个所述辅助终端接收的所述广播信息和每个所述辅助终端的所述辅助位置信息,计算每个所述辅助终端与所述目标设备之间的相对距离;根据每个所述辅助终端对应的所述辅助位置信息和所述相对距离,计算所述目标设备的多个位置估计值;计算所述多个位置估计值的平均值,将所述平均值作为所述目标设备的所述目标位置信息。In one 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; the determining module is configured to: according to each auxiliary terminal received The broadcast information and the auxiliary location information of each of the auxiliary terminals, calculate the relative distance between each of the auxiliary terminals and the target device; according to the auxiliary location corresponding to each of the auxiliary terminals information and the relative distance, and calculate multiple estimated position values of the target device; calculate an average value of the multiple estimated position values, and use the average value as the target position information of the target device.
于一实施例中,所述根据每个所述辅助终端接收的所述广播信息和每个所述辅助终端的所述辅助位置信息,计算每个所述辅助终端与所述目标设备之间的相对距离,包括:针 对每个所述辅助终端,根据所述广播信息的信号强度和所述辅助位置信息,计算所述辅助终端与所述目标设备之间的相对距离。In an embodiment, the calculation of the distance between each of the auxiliary terminals and the target device is based on the broadcast information received by each of the auxiliary terminals and the auxiliary location information of each of the auxiliary terminals. The relative distance includes: for each of the auxiliary terminals, calculating the relative distance between the auxiliary terminal and the target device according to the signal strength of the broadcast information and the auxiliary location information.
于一实施例中,所述根据每个所述辅助终端对应的所述辅助位置信息和所述相对距离,计算所述目标设备的多个位置估计值,包括:计算每两两所述辅助位置信息的中心点位置,将所述中心点位置作为所述目标设备的所述位置估计值。In an embodiment, the calculating multiple estimated position values of the target device according to the auxiliary position information and the relative distance corresponding to each of the auxiliary terminals includes: calculating the auxiliary position information every two pairs A center point position of the information, using the center point position as the estimated position value of the target device.
于一实施例中,所述计算所述多个位置估计值的平均值,将所述平均值作为所述目标设备的所述目标位置信息,包括:计算全部所述中心点位置的平均位置,将所述平均位置作为所述目标设备的所述目标位置信息。In an embodiment, the calculating the average value of the plurality of position estimation values and using the average value as the target position information of the target device includes: calculating the average position of all the center point positions, The average position is used as the target position information of the target device.
于一实施例中,所述辅助终端的数量为1个;所述确定模块用于:将所述辅助终端的所述辅助位置信息作为所述目标设备的目标位置信息。In an embodiment, the number of the auxiliary terminal is one; the determining module is configured to: use the auxiliary location information of the auxiliary terminal as the target location information of the target device.
于一实施例中,所述返回信息为由所述目标设备的公钥加密后的密文;所述装置还包括:解密模块,用于在所述根据所述广播信息和所述辅助位置信息,确定所述目标设备的目标位置信息之前,根据预设的私钥对所述返回信息进行解密处理,得到解密后的所述广播信息和所述辅助位置信息,所述私钥与所述公钥为一对密钥对。In an embodiment, the returned information is a ciphertext encrypted by the public key of the target device; the device further includes: a decryption module, configured to transmit the information according to the broadcast information and the auxiliary location information , before determining the target location information of the target device, decrypt the returned information according to a preset private key to obtain the decrypted broadcast information and the auxiliary location information, the private key and the public The key is a pair of key pairs.
本申请实施例第三方面提供了一种电子设备,包括:存储器,用以存储计算机程序;处理器,用以执行所述计算机程序,以实现本申请实施例第一方面及其任一实施例的方法。The third aspect of the embodiment of the present application provides an electronic device, including: a memory for storing a computer program; a processor for executing the computer program, so as to realize the first aspect of the embodiment of the present application and any embodiment thereof Methods.
本申请实施例第四方面提供了一种电子钱包,包括:安全模块,用于装载虚拟卡信息;通信模块,用于与绑定的外部设备建立通信连接;主控模块,分别连接所述安全模块和所述通信模块,用于控制所述安全模块的虚拟卡通过所述通信模块与所述外部设备进行数据交互;所述主控模块还用于:接收所述外部设备发送的脱机保护指令,所述脱机保护指令中携带有脱机保护时长;当所述电子钱包未在所述脱机保护时长内与所述外部设备建立通信连接时,控制所述安全模块关闭所述虚拟卡的数据交互权限。The fourth aspect of the embodiment of the present application provides an electronic wallet, including: a security module, used to load virtual card information; a communication module, used to establish a communication connection with a bound external device; a main control module, respectively connected to the security module and the communication module are used to control the virtual card of the security module to perform data interaction with the external device through the communication module; the main control module is also used to: receive the offline protection sent by the external device instruction, the offline protection instruction carries an offline protection duration; when the electronic wallet does not establish a communication connection with the external device within the offline protection duration, control the security module to close the virtual card data interaction permissions.
本申请实施例第五方面提供了一种非暂态电子设备可读存储介质,包括:程序,当其藉由电子设备运行时,使得所述电子设备执行本申请实施例第一方面及其任一实施例的方法。The fifth aspect of the embodiment of the present application provides a non-transitory electronic device-readable storage medium, including: a program that, when run by the electronic device, enables the electronic device to execute the first aspect of the embodiment of the present application and any other A method of an embodiment.
本申请提供的设备定位方法、装置、设备、钱包和存储介质,可以通过用户终端向服务器查询目标设备发出的广播信息和辅助终端在接收到该广播信息时的辅助位置信息,基于该广播信息和该辅助位置信息,即可定位出目标设备的位置,实现了当目标设备不在用户终端的附近时,也可以远程定位到目标设备,进而在目标设备遗失时及时找到目标设备,减少用户财产损失。The device positioning method, device, device, wallet and storage medium provided in this application can query the server for the broadcast information sent by the target device and the auxiliary location information of the auxiliary terminal when receiving the broadcast information through the user terminal, based on the broadcast information and The auxiliary location information can locate the location of the target device, so that when the target device is not in the vicinity of the user terminal, the target device can also be remotely located, and then the target device can be found in time when the target device is lost, reducing the user's property loss.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例中所需要使用的 附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the accompanying drawings that need to be used in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application, so It should not be regarded as a limitation on the scope, and those skilled in the art can also obtain other related drawings according to these drawings without creative work.
图1为本申请一实施例的电子设备的结构示意图;FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
图2A至图2F为本申请一实施例的设备定位方法的应用场景示意图;2A to 2F are schematic diagrams of application scenarios of a device positioning method according to an embodiment of the present application;
图3为本申请一实施例的设备定位方法的流程示意图;FIG. 3 is a schematic flowchart of a device positioning method according to an embodiment of the present application;
图4为本申请一实施例的设备定位方法的流程示意图;FIG. 4 is a schematic flowchart of a device positioning method according to an embodiment of the present application;
图5A至图5C为本申请一实施例的两个辅助点之间的中心点的计算示意图;5A to 5C are schematic diagrams for calculating the center point between two auxiliary points according to an embodiment of the present application;
图6为本申请一实施例的设备定位装置的结构示意图。FIG. 6 is a schematic structural diagram of an equipment positioning device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。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 only used for distinguishing descriptions, and cannot be understood as indicating or implying relative importance.
如图1所示,本实施例提供一种电子设备1,包括:至少一个处理器11和存储器12,图1中以一个处理器为例。处理器11和存储器12通过总线10连接。存储器12存储有可被处理器11执行的指令,指令被处理器11执行,以使电子设备1可执行下述的实施例中方法的全部或部分流程,以远程定位到目标设备,进而在目标设备遗失时及时找到目标设备,减少用户财产损失。As shown in FIG. 1 , this embodiment provides an electronic device 1 , including: at least one processor 11 and a memory 12 , and one processor is taken as an example in FIG. 1 . Processor 11 and memory 12 are connected via bus 10 . The memory 12 stores instructions that can be executed 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 process of the method in the following embodiments to remotely locate the target device, and then the target device When the device is lost, the target device can be found in time to reduce the user's property loss.
于一实施例中,电子设备1可以是手机、平板电脑、笔记本电脑、台式计算机等设备。In one embodiment, the electronic device 1 may be a mobile phone, a tablet computer, a notebook computer, a desktop computer and other devices.
于一实施例中,目标设备可以是电子钱包功能的移动设备。In one embodiment, the target device may be a mobile device with e-wallet function.
如图2A所示,为本申请一实施例的设备定位系统的示意图,包括:电子钱包2、电子设备1和服务器3,其中:As shown in FIG. 2A, it is a schematic diagram of a device positioning system according to an embodiment of the present application, including: an electronic wallet 2, an electronic device 1 and a server 3, wherein:
服务器3中可以包括:定位查找模块、虚拟卡管理模块和设备管理模块。The server 3 may include: a location search module, a virtual card management module and a device management module.
电子钱包2中存储有用户的智能虚拟卡信息,比如门禁卡、公交卡、银行卡以及数字人民币钱包等,电子钱包2可以通过数据连接与电子设备1进行数据交互,电子设备1上装载有应用程序,电子设备1可以基于该应用程序与电子钱包2和服务器3进行数据交互,以完成对电子钱包2的控制。The electronic wallet 2 stores the user's smart virtual card information, such as access control cards, bus cards, bank cards, and digital RMB wallets. The electronic wallet 2 can perform data interaction with the electronic device 1 through a data connection. The electronic device 1 is loaded with application program, the electronic device 1 can perform data interaction with the electronic wallet 2 and the server 3 based on the application program, so as to complete the control of the electronic wallet 2 .
如图2B所示,为本申请一实施例的电子钱包2的示意图,包括:主控模块、安全模块和通信模块,其中通信模块可以包括:NFC模块、蓝牙模块和UWB(Ultra Wide Band,超宽带)模块,其中:As shown in Figure 2B, it is a schematic diagram of an electronic wallet 2 according to an embodiment of the present application, including: a main control module, a security module, and a communication module, wherein the communication module may include: an NFC module, a Bluetooth module, and a UWB (Ultra Wide Band, Ultra Wide Band) Broadband) module, in which:
安全模块,用于装载虚拟卡信息。安全模块中存储了用户的私密信息,比如可以包括:电子钱包2自身的密钥数据、公交卡、门禁卡、银行卡以及数字人民币等应用数据等。安 全模块具有防攻击防破解的功能,能够保障用户数据的安全。The security module is used for loading virtual card information. The private information of the user is stored in the security module, for example, it may include: the key data of the electronic wallet 2 itself, bus card, access control card, bank card, digital RMB and other application data. The security module has the function of anti-attack and anti-cracking, which can guarantee the security of user data.
通信模块,用于与绑定的外部设备建立通信连接。比如NFC模块支持外部NFC读卡器,通过NFC天线传输数据,可以与安全模块进行数据交互,从而完成公交卡等虚拟卡的刷卡充值交易,并可以完成门禁卡的身份验证交易、银行卡的扣款交易,以及数字人民币的消费交易等各种符合行业规范的交易类型。NFC模块也可以接受主控模块的指令,对外部实体卡片执行读写操作。The communication module is used to establish a communication connection with the bound external device. For example, the NFC module supports an external NFC card reader, transmits data through the NFC antenna, and can interact with the security module to complete the card swiping recharge transaction of virtual cards such as bus cards, and can complete the identity verification transaction of the access control card and the deduction of the bank card. Remittance transactions, as well as digital RMB consumption transactions and other types of transactions that comply with industry norms. The NFC module can also accept instructions from the main control module to perform read and write operations on external physical cards.
主控模块,分别连接安全模块和通信模块,用于控制安全模块的虚拟卡通过通信模块与外部设备进行数据交互。电子钱包2可以通过主控模块控制蓝牙模块的蓝牙天线向外部广播消息,并可以与支持蓝牙的电子设备1建立通讯。比如可以将电子钱包2与用户的手机或电脑建立联系,完成电子钱包2的激活和管理、虚拟卡的管理等操作。同时,蓝牙模块还可以与电子钱包2的受理终端连接,完成交易。比如支持蓝牙的门禁读卡器(受理终端),可以与电子钱包2建立连接,通过主控模块完成交易逻辑,并利用安全模块中存储的安全密钥,完成身份验证后开门。The main control module is respectively connected to the security module and the communication module, and the virtual card used to control the security module performs data interaction with external devices through the communication module. The electronic wallet 2 can control the bluetooth antenna of the bluetooth module to broadcast messages to the outside through the main control module, and can establish communication with the electronic device 1 supporting bluetooth. For example, the electronic wallet 2 can be connected with the user's mobile phone or computer to complete operations such as activation and management of the electronic wallet 2 and virtual card management. At the same time, the bluetooth module can also be connected with the acceptance terminal of the electronic wallet 2 to complete the transaction. For example, the access control card reader (acceptance terminal) that supports Bluetooth can establish a connection with the electronic wallet 2, complete the transaction logic through the main control module, and use the security key stored in the security module to open the door after identity verification.
电子钱包2内置UWB模块,可用于与其他UWB设备进行数据交互,完成精准定位。比如主控模块通过控制UWB模块与外部支持UWB的辅助终端4或者电子设备1建立连接,可使得电子设备1对电子钱包2进行精准定位,从而方便用户查找电子钱包2的位置。The e-wallet 2 has a built-in UWB module, which can be used for data interaction with other UWB devices to complete precise positioning. For example, the main control module establishes a connection with the external auxiliary terminal 4 or electronic device 1 that supports UWB by controlling the UWB module, so that the electronic device 1 can accurately locate the electronic wallet 2, thereby facilitating the user to find the location of the electronic wallet 2.
另外,对于支持UWB协议通讯的外部设备来说,电子钱包2也可以利用安全模块中存储的公交卡应用或数字人民币应用等,完成消费交易,交易过程可以不受限于NFC模块,实现用户无需拿出电子钱包2即可完成交易的优质体验。In addition, for external devices that support UWB protocol communication, the electronic wallet 2 can also use the bus card application or digital RMB application stored in the security module to complete consumption transactions. Take out the e-wallet 2 to complete the premium experience of the transaction.
于一实施例中,主控模块还用于:接收外部设备发送的脱机保护指令,脱机保护指令中携带有脱机保护时长。当电子钱包2未在脱机保护时长内与外部设备建立通信连接时,控制安全模块关闭虚拟卡的数据交互权限。In an embodiment, the main control module is further configured to: receive an offline protection instruction sent by an external device, and the offline protection instruction carries an offline protection duration. When the electronic wallet 2 does not establish a communication connection with the external device within the offline protection period, the control security module closes the data interaction authority of the virtual card.
实际场景中,用户可以通过智能手机应用程序设置电子钱包2的脱机时间,此处脱机的定义可以是用户手机与电子钱包2没有建立连接的状态。即当电子钱包2与用户手机停止通讯时开始计时,在脱机时间范围内,电子钱包2正常行使各项功能,包括虚拟卡的使用。当电子钱包2计时超过脱机时间之后,则将自身设置为丢失模式,并且将虚拟卡模拟功能关闭,从而保护虚拟卡内的资金安全和身份安全,使得捡到或盗取电子钱包2的人无法使用电子钱包2乘车,或刷卡出入小区或公司门禁,实现电子钱包2的丢失保护。当电子钱包2再次与用户手机连接成功时,检查虚拟卡的使能状态,并将其保持为可用模式。同时将电子钱包2内部计时器重置。用户可选禁用该功能。In an actual scenario, the user can set the offline time of the electronic wallet 2 through the smart phone application, where the definition of offline can be a state where the user's mobile phone and the electronic wallet 2 are not connected. That is, when the communication between the electronic wallet 2 and the user's mobile phone stops, the timing starts. Within the offline time range, the electronic wallet 2 normally performs various functions, including the use of virtual cards. After the e-wallet 2 counts beyond the offline time, it will set itself to the lost mode, and the virtual card simulation function will be closed, thereby protecting the fund security and identity security in the virtual card, so that the person who picks up or steals the e-wallet 2 It is impossible to use the e-wallet 2 to take a car, or to swipe the card to enter and exit the community or company access control, so as to realize the loss protection of the e-wallet 2. When the electronic wallet 2 is successfully connected with the user's mobile phone again, check the enabling status of the virtual card and keep it in an available mode. At the same time, the internal timer of the electronic wallet 2 is reset. User can choose to disable this feature.
如图2C所示,在电子钱包2(即智能钱包)使用时,首先需要完成电子钱包2的激活和电子钱包2与电子设备1的绑定过程,电子设备1以用户的智能手机为例,具体流程如 下:As shown in Figure 2C, when using the electronic wallet 2 (i.e., the smart wallet), it is first necessary to complete the activation of the electronic wallet 2 and the binding process between the electronic wallet 2 and the electronic device 1. The electronic device 1 takes the user's smart phone as an example. The specific process is as follows:
1.首先电子钱包2需要自带电池,比如可以使用纽扣电池或者锂电池。用户购买电子钱包2后,需要确保电子钱包2电量足够。将电子钱包2开启电源后,自动进入待配对状态。1. First of all, the electronic wallet 2 needs its own battery, such as a button battery or a lithium battery. After purchasing the electronic wallet 2, the user needs to ensure that the electronic wallet 2 has sufficient power. After turning on the power of the electronic wallet 2, it will automatically enter the waiting state.
2.电子钱包2间隔一定的时间发送等待配对的蓝牙广播。用户在智能手机上打开相应的应用程序,选择添加设备,通过蓝牙主动扫描电子钱包2。发现电子钱包2后,提示用户进行绑定。2. The electronic wallet 2 sends Bluetooth broadcasts waiting for pairing at regular intervals. The user opens the corresponding application on the smart phone, selects to add a device, and actively scans the electronic wallet 2 through Bluetooth. After the electronic wallet 2 is found, the user is prompted to bind it.
3.用户确认绑定后,智能手机应用程序通过与电子钱包2建立连接,执行设备校验过程,确保电子钱包2是真实合法的设备,允许与应用程序建立绑定关系。可选地,电子钱包2可要求用户点击按钮或震动电子钱包2以授权智能手机连接。连接成功后,建立智能手机应用程序与电子钱包2之间的安全通道,保护后续数据的传输。3. After the user confirms the binding, the smart phone application establishes a connection with the e-wallet 2 and performs a device verification process to ensure that the e-wallet 2 is a real and legal device, allowing the establishment of a binding relationship with the application. Alternatively, the Wallet 2 may require the user to click a button or vibrate the 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 to protect subsequent data transmission.
4.智能手机应用程序生成非对称公私密钥对,将私钥安全存储与智能手机。该私钥未来将被用于解密公钥加密的地理位置信息。根据安全要求以及设备能力,可以选择将私钥存储在eSE(Embedded SE,嵌入式安全元件)、TEE((Trusted Execution Environment,可信执行环境)或以其他安全的存储方式存储在操作系统中。4. The smartphone application generates an asymmetric public-private key pair, and securely stores the private key with the smartphone. The private key will be used to decrypt the geographic location information encrypted by the public key in the future. According to security requirements and device capabilities, you can choose to store the private key in eSE (Embedded SE, Embedded Secure Element), TEE ((Trusted Execution Environment, Trusted Execution Environment) or other secure storage methods in the operating system.
5.智能手机应用程序通过安全通道将公钥写入电子钱包2。5. The smart phone application writes the public key into the electronic wallet 2 through a secure channel.
6.智能手机应用程序将电子钱包2的设备标识信息与用户当前登录的账号发送到服务器3,实现该电子钱包2的注册,将该电子钱包2绑定在当前账号下。未来用户可通过当前账号获取电子钱包2的位置信息。至此配对过程完成。6. The smart phone application sends the device identification information of the electronic wallet 2 and the account currently logged in by the user to the server 3 to realize the registration of the electronic wallet 2 and bind the electronic wallet 2 to the current account. In the future, the user can obtain the location information of the electronic wallet 2 through the current account. The pairing process is now complete.
7.智能手机应用程序读取电子钱包2的信息,包括电子钱包2的品牌、型号、序列号、以及开通的虚拟卡等信息。7. The smart phone application program reads the information of the electronic wallet 2, including information such as the brand, model, serial number, and opened virtual card of the electronic wallet 2.
8.智能手机应用程序展示用户所关心的信息,并提示用户设备绑定成功。8. The smart phone application displays the information that the user cares about, and prompts the user that the device is successfully bound.
如图2D所示,在电子钱包2(即智能钱包)使用时,如果用户想要使用某个虚拟卡,首先需要完成相关虚拟卡的开通过程,电子设备1以用户的智能手机为例,具体流程如下:As shown in Figure 2D, when the electronic wallet 2 (that is, the smart wallet) is used, if the user wants to use a certain virtual card, he first needs to complete the opening process of the relevant virtual card. The electronic device 1 takes the user's smart phone as an example. The process is as follows:
1.电子钱包2间隔一定的时间反复发送广播信息。1. The electronic wallet 2 repeatedly sends broadcast information at regular intervals.
2.智能手机应用程序发起连接动作,与电子钱包2建立连接。2. The smart phone application initiates a connection action to establish a connection with the electronic wallet 2 .
3.用户可以在智能手机的应用程序中选择一个虚拟卡应用申请开通。虚拟卡应用可以是公交卡、门禁卡、银行卡或者是数字人民币等。3. The user can select a virtual card application in the application program of the smartphone to apply for activation. Virtual card applications can be bus cards, access control cards, bank cards or digital renminbi, etc.
4.根据虚拟卡的设置,需要支付时,用户首先在智能手机的应用程序中完成支付动作。4. According to the settings of the virtual card, when payment is required, the user first completes the payment action in the application program of the smartphone.
5.完成支付后,智能手机的应用程序向服务器3申请开通虚拟卡。5. After completing the payment, the application program of the smart phone applies to the server 3 for opening a virtual card.
6.服务器3的虚拟卡管理模块向支付渠道请求支付结果。6. The virtual card management module of the server 3 requests the payment result from the payment channel.
7.支付渠道返回支付成功的结果给虚拟卡管理模块。7. The payment channel returns the successful payment result to the virtual card management module.
8.服务器3的虚拟卡管理模块向发卡机构请求发卡授权。8. The virtual card management module of the server 3 requests a card issuing authority from the card issuing institution.
9.发卡机构授权发卡申请,返回授权结果给服务器3。9. The card issuer authorizes the application for card issuance, and returns the authorization result to the server 3 .
10.服务器3的虚拟卡管理模块生成虚拟卡开通指令,下发给智能手机的应用程序。10. The virtual card management module of the server 3 generates a virtual card activation instruction and sends it to the application program of the smart phone.
11.智能手机的应用程序获得虚拟卡开通指令后,转发给电子钱包2执行,以便电子钱包2将虚拟卡应用下载到电子钱包2中。11. After the application program of the smart phone obtains the activation instruction of the virtual card, it forwards it to the electronic wallet 2 for execution, so that the electronic wallet 2 downloads the virtual card application into the electronic wallet 2.
12.电子钱包2的主控模块可以通过蓝牙模块接收到虚拟卡开通指令,然后将指令转发给安全模块执行。安全模块将执行结果返回给主控模块。12. The main control module of the electronic wallet 2 can receive the activation instruction of the virtual card through the Bluetooth module, and then forward the instruction to the security module for execution. The security module returns the execution result to the main control module.
13.电子钱包2的主控模块通过蓝牙模块将虚拟卡开通指令的执行结果返回给智能手机的应用程序。智能手机的应用程序则通过服务器3对执行结果进行验证,确定虚拟卡开通成功。13. The main control module of the electronic wallet 2 returns the execution result of the activation instruction of the virtual card to the application program of the smart phone through the Bluetooth module. The application program of the smart phone then verifies the execution result through the server 3 to determine that the virtual card is activated successfully.
14.智能手机应用程序提示用户虚拟卡开通成功,并将开通的结果显示给用户。14. The smart phone application prompts the user that the virtual card is activated successfully, and displays the activation result to the user.
在虚拟卡开通后,用户可以通过智能手机的应用程序对虚拟卡进行管理:比如用户可以将虚拟卡删除。用户可以在智能手机的应用程序中指定公交卡、门禁卡、银行卡或数字人民币钱包应用进行删除。用户通过应用程序发起删除请求后,应用程序通过虚拟卡管理模块请求虚拟卡的删除指令,完成删除过程。After the virtual card is opened, the user can manage the virtual card through the application program of the smart phone: for example, the user can delete the virtual card. Users can specify the bus card, access control card, bank card or digital RMB wallet application to delete in the smartphone application. After the user initiates a deletion request through the application program, the application program requests a virtual card deletion instruction through the virtual card management module to complete the deletion process.
于一实施例中,虚拟公交卡还可以通过智能手机的应用程序进行充值。充值过程类似于虚拟卡的开通过程。用户需要选择充值金额,并支付相应的金额,然后智能手机的应用程序虚拟卡管理模块申请充值指令,完成充值过程。In one embodiment, the virtual bus card can also be recharged through an application program on a smart phone. The recharging process is similar to the opening process of a virtual card. The user needs to select the recharge amount and pay the corresponding amount, and then the application virtual card management module of the smart phone applies for a recharge instruction to complete the recharge process.
虚拟卡的使用:用户通过智能手机相关应用程序开通相关虚拟卡之后,即可携带电子钱包2在公交POS机、小区或公司门禁、商店消费POS机等受理终端上使用。Use of virtual card: After the user activates the relevant virtual card through the relevant application program of the smart phone, the user can carry the electronic wallet 2 and use it on the acceptance terminals such as bus POS machines, community or company access control, and store consumption POS machines.
于一实施例中,电子设备1可以是用户的手机,假设电子钱包2遗失,当电子钱包2处于用户所在位置附近时,用户可通过手机上自带的UWB功能,将电子钱包2的准确位置显示出来。用户可以根据手机屏幕显示位置和方向寻找电子钱包2。如图2E所示,近距离的电子钱包2定位方式具体如下:In one embodiment, the electronic device 1 can be the user's mobile phone. Suppose the electronic wallet 2 is lost. When the electronic wallet 2 is near the user's location, the user can use the UWB function of the mobile phone to check the exact location of the electronic wallet 2. display. The user can search for the electronic wallet 2 according to the position and direction displayed on the screen of the mobile phone. As shown in Figure 2E, the positioning method of the short-distance electronic wallet 2 is as follows:
1.电子钱包2会间隔一定的时间通过蓝牙不断地发送广播信息。1. The e-wallet 2 will continuously send broadcast information through bluetooth at regular intervals.
2.用户手机与电子钱包2通过蓝牙建立连接,并协商UWB通讯密钥。2. The user's mobile phone establishes a connection with the electronic wallet 2 via Bluetooth, and negotiates a UWB communication key.
3.用户手机利用自身的UWB模块对电子钱包2进行定位,通过计算通讯数据的发送和返回时间计算距离,并通过UWB信号到达的角度计算电子钱包2所在位置的角度,从而精准地计算出电子钱包2的位置。3. The user's mobile phone uses its own UWB module to locate the electronic wallet 2, calculate the distance by calculating the transmission and return time of communication data, and calculate the angle of the electronic wallet 2 through the arrival angle of the UWB signal, so as to accurately calculate the electronic wallet 2. The location of wallet 2.
4.用户手机基于应用程序将电子钱包2的位置信息以及用户自身当前所处位置信息展示给用户,协助用户定位和查找遗失的电子钱包2。4. The user's mobile phone displays the location information of the electronic wallet 2 and the current location information of the user to the user based on the application program, and assists the user in locating and finding the lost electronic wallet 2 .
而实际场景中,电子钱包2遗失后,往往出现电子钱包2不在手机的UWB定位范围 内,此时用户可以通过启动手机上的应用程序,发起远程定位操作。In actual scenarios, after the electronic wallet 2 is lost, it often occurs that the electronic wallet 2 is not within the UWB positioning range of the mobile phone. At this time, the user can initiate a remote positioning operation by starting an application program on the mobile phone.
如图2F所示,为本申请一实施例的设备定位系统的示意图,还包括:辅助终端4,此处辅助终端4可以是其他任意用户的手机、平板电脑、智能手环等设备。As shown in FIG. 2F , it is a schematic diagram of a device positioning system according to an embodiment of the present application, which also includes: an auxiliary terminal 4, where the auxiliary terminal 4 can be any other user's mobile phone, tablet computer, smart bracelet and other devices.
实际场景中,电子钱包2会自动间隔一定时间广播消息。当附近有可以与电子钱包2通信的相关辅助终端4存在时,该辅助终端4可以与电子钱包2建立连接,然后将自身的定位信息加密上传至服务器3。用户则通过手机上的应用程序,将辅助终端4的位置信息下载并解密,进而基于辅助终端4的位置信息获得电子钱包2所在的位置。具体流程可以如下:In actual scenarios, the electronic wallet 2 will automatically broadcast messages at certain intervals. When there is an auxiliary terminal 4 nearby that can communicate with the electronic wallet 2 , the auxiliary terminal 4 can establish a connection with the electronic wallet 2 , and then encrypt and upload its location information to the server 3 . The user downloads and decrypts the location information of the auxiliary terminal 4 through the application program on the mobile phone, and then obtains the location of the electronic wallet 2 based on the location information of the auxiliary terminal 4 . The specific process can be as follows:
请参看图3,其为本申请一实施例的设备定位方法,该方法可由图1所示的电子设备1作为当前终端来执行,并可以应用于如图2A至图2F所示的电子钱包2定位场景中,以实现当电子钱包2不在电子设备1的附近时,也可以远程定位到电子钱包2,进而及时找到遗失的电子钱包2,减少用户财产损失。该方法包括如下步骤:Please refer to FIG. 3 , which is a device positioning method according to an embodiment of the present application. This method can be executed by the electronic device 1 shown in FIG. 1 as the current terminal, and can be applied to the electronic wallet 2 shown in FIG. 2A to FIG. 2F In the positioning scenario, to realize that when the electronic wallet 2 is not near the electronic device 1, the electronic wallet 2 can also be remotely located, and then the lost electronic wallet 2 can be found in time to reduce the user's property loss. The method comprises the steps of:
步骤301:发送查询请求至服务器3,查询请求中携带有待查询的目标设备的标识信息。Step 301: Send a query request to the server 3, where the query request carries identification information of the target device to be queried.
在本步骤中,目标设备以电子钱包2为例,电子设备1以用户手机为例,标识信息可以是电子钱包2的产品唯一编号,或者自定义的标识信息,该标识信息可以将被查找的电子钱包2与其他的设备区分出来。当用户的电子钱包2遗失时,可以主动通过手机发送查询请求给服务器3,进行远程定位查找。In this step, the target device is an electronic wallet 2, and the electronic device 1 is an example of a user's mobile phone. The identification information can be the unique product number of the electronic wallet 2, or self-defined identification information, and the identification information can be searched Wallet 2 distinguishes itself from other devices. When the user's electronic wallet 2 is lost, the user can actively send an inquiry request to the server 3 through the mobile phone to perform remote location search.
步骤302:接收服务器3基于查询请求的返回信息,返回信息中携带有辅助终端4接收到的来自目标设备的广播信息和辅助终端4在接收到广播信息时的辅助位置信息。Step 302: Receiving the information returned by the server 3 based on the query request, the returned information carries the broadcast information received by the auxiliary terminal 4 from the target device and the auxiliary location information of the auxiliary terminal 4 when receiving the broadcast information.
在本步骤中,在电子设备1向服务发送查询请求之前,电子钱包2会间隔一定的时间通过蓝牙不断地发送广播信息。广播信息中可以携带该电子钱包2的公钥。任意一台智能设备,包括手机、平板、电脑、路由器以及物联网设备等,只要它能够支持与电子钱包2建立数据通信,均可以作为辅助终端4,当辅助终端4出现在电子钱包2附近时,可以接受电子钱包2发送的广播信息,读取电子钱包2的公钥。辅助终端4接收到广播信息后,可以实时读取自身所处地理位置信息,然偶利用公钥将该辅助终端4的地理位置信息(即辅助位置信息)加密。辅助终端4自身的地理位置信息加密后上传到服务器3。由于该辅助终端4自身的地理位置信息是由电子钱包2的公钥加密的,其所对应的私钥只存在于与电子钱包2绑定的手机设备中。因此仅有电子钱包2绑定的手机才可以解密和查看该信息,保证了用户信息安全。经过步骤301后,手机可以实时接收服务器3的返回信息,该返回信息为服务器3基于查询请求返回的特定信息。该返回信息可以是在一段时间内的辅助终端4上传的加密的地理位置信息以及辅助终端4接收到的来自电子钱包2的广播信息。In this step, before the electronic device 1 sends a query request to the service, the electronic wallet 2 will continuously send broadcast information via bluetooth at a certain interval. The public key of the electronic wallet 2 may be carried in the broadcast information. Any smart device, including mobile phones, tablets, computers, routers and Internet of Things devices, etc., as long as it can support the establishment of data communication with the electronic wallet 2, can be used as the auxiliary terminal 4. When the auxiliary terminal 4 appears near the electronic wallet 2 , can accept the broadcast information sent by electronic wallet 2, and read the public key of electronic wallet 2. After the auxiliary terminal 4 receives the broadcast information, it can read the geographic location information of itself in real time, and then use the public key to encrypt the geographic location information of the auxiliary terminal 4 (ie, auxiliary location information). The geographic location information of the auxiliary terminal 4 itself is encrypted and uploaded to the server 3 . Since the geographic location information of the auxiliary terminal 4 itself is encrypted by the public key of the electronic wallet 2, the corresponding private key only exists in the mobile phone device bound to the electronic wallet 2. Therefore, only the mobile phone bound with the electronic wallet 2 can decrypt and view the information, which ensures the security of user information. After step 301, the mobile phone can receive the return information from the server 3 in real time, and the return information is the specific information returned by the server 3 based on the query request. The returned information may be the encrypted geographic location information uploaded by the auxiliary terminal 4 within a period of time and the broadcast information received by the auxiliary terminal 4 from the electronic wallet 2 .
步骤303:根据广播信息和辅助位置信息,确定目标设备的目标位置信息。Step 303: Determine the target location information of the target device according to the broadcast information and the auxiliary location information.
在本步骤中,在用户的手机无法近距离对电子钱包2进行直接定位的情况下,可以基于服务器3中存储的其他辅助设备的地理位置信息以及相关的广播信息来间接对电子钱包2进行定位,在手机端,可以基于应用程序将电子钱包2的当前所处位置和轨迹展示给用户,进而协助用户寻找遗失的电子钱包2。In this step, when the user's mobile phone cannot directly locate the electronic wallet 2 at close range, the electronic wallet 2 can be located indirectly based on the geographic location information of other auxiliary devices stored in the server 3 and related broadcast information , on the mobile phone side, the current location and track of the electronic wallet 2 can be displayed to the user based on the application program, and then assist the user to find the lost electronic wallet 2 .
于一实施例中,返回信息为由目标设备的公钥加密后的密文。即服务器3返回的信息时经过电子钱包2的公钥加密后的信息,与该电子钱包2绑定的用户手机中存储有该电子钱包2的私钥,该私钥与上述公钥为一对密钥对。因此在步骤303之前,首先根据预设的私钥对返回信息进行解密处理,得到解密后的广播信息和辅助位置信息,然后再辅助设备的地理位置信息以及相关的广播信息来间接对电子钱包2进行远程定位。In one embodiment, the returned information is a ciphertext encrypted by the public key of the target device. That is, the information returned by the server 3 is encrypted by the public key of the e-wallet 2, and the private key of the e-wallet 2 is stored in the mobile phone of the user bound to the e-wallet 2, and the private key and the above-mentioned public key are a pair key pair. Therefore, before step 303, the return information is firstly decrypted according to the preset private key to obtain the decrypted broadcast information and auxiliary location information, and then the geographic location information of the auxiliary device and related broadcast information are indirectly connected to the electronic wallet 2 for remote positioning.
上述设备定位方法,可以通过用户终端向服务器3查询目标设备发出的广播信息和辅助终端4在接收到该广播信息时的辅助位置信息,基于该广播信息和该辅助位置信息,即可定位出目标设备的位置,实现了当目标设备不在用户终端的附近时,也可以远程定位到目标设备,进而在目标设备遗失时及时找到目标设备,减少用户财产损失。In the above device positioning method, the user terminal can query the server 3 for the broadcast information sent by the target device and the auxiliary location information when the auxiliary terminal 4 receives the broadcast information, and based on the broadcast information and the auxiliary location information, the target can be located The location of the device realizes that when the target device is not near the user terminal, the target device can also be located remotely, and then the target device can be found in time when the target device is lost, reducing the user's property loss.
请参看图4,其为本申请一实施例的设备定位方法,该方法可由图1所示的电子设备1作为当前终端来执行,并可以应用于如图2A至图2F所示的电子钱包2定位场景中,以实现当电子钱包2不在电子设备1的附近时,也可以远程定位到电子钱包2,进而及时找到遗失的电子钱包2,减少用户财产损失。该方法包括如下步骤:Please refer to FIG. 4, which is a device positioning method according to an embodiment of the present application. This method can be executed by the electronic device 1 shown in FIG. 1 as the current terminal, and can be applied to the electronic wallet 2 shown in FIG. 2A to FIG. 2F In the positioning scenario, to realize that when the electronic wallet 2 is not near the electronic device 1, the electronic wallet 2 can also be remotely located, and then the lost electronic wallet 2 can be found in time to reduce the user's property loss. The method comprises the steps of:
步骤401:发送查询请求至服务器3,查询请求中携带有待查询的目标设备的标识信息。详细参见上述实施例中对步骤301的描述。Step 401: Send a query request to the server 3, where the query request carries the identification information of the target device to be queried. For details, refer to the description of step 301 in the foregoing embodiments.
步骤402:接收服务器3基于查询请求的返回信息,返回信息中携带有辅助终端4接收到的来自目标设备的广播信息和辅助终端4在接收到广播信息时的辅助位置信息。详细参见上述实施例中对步骤302的描述。Step 402: Receiving the information returned by the server 3 based on the query request, the returned information carries the broadcast information received by the auxiliary terminal 4 from the target device and the auxiliary location information of the auxiliary terminal 4 when receiving the broadcast information. For details, refer to the description of step 302 in the foregoing embodiments.
步骤403:根据每个辅助终端4接收的广播信息和每个辅助终端4的辅助位置信息,计算每个辅助终端4与目标设备之间的相对距离。Step 403: Calculate 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 .
在本步骤中,如果辅助终端4的数量为多个,每个辅助终端4分别对应一个广播信息和一个辅助位置信息。也就是说当远程定位时,同一时刻,电子钱包2附近可能会存在多个可以作为辅助终端4的智能设备,每一台智能设备都会将其所接收到的电子钱包2的广播信息上传到服务器3,此时在根据广播信息和辅助位置信息,确定目标设备的目标位置信息时,首先根据每个辅助终端4接收的广播信息和该辅助终端4对应的辅助位置信息,计算每个辅助终端4与目标设备之间的相对距离。In this step, if there are multiple auxiliary terminals 4, each auxiliary terminal 4 corresponds to one piece of broadcast information and one piece of auxiliary location information. That is to say, when remote positioning, at the same time, there may be multiple smart devices that can be used as auxiliary terminals 4 near the electronic wallet 2, and each smart device will upload the broadcast information received by the electronic wallet 2 to the server. 3. At this time, when determining the target location information of the target device according to the broadcast information and the auxiliary location information, firstly, according to the broadcast information received by each auxiliary terminal 4 and the auxiliary location information corresponding to the auxiliary terminal 4, calculate each auxiliary terminal 4 The relative distance to the target device.
于一实施例中,步骤403可以包括:针对每个辅助终端4,根据广播信息的信号强度和辅助位置信息,计算辅助终端4与目标设备之间的相对距离。广播信息中可以包括广播内 容和广播信号强度RSSI(Received Signal Strength Indication,信号强度指示)信息。RSSI信息是蓝牙通讯中的一个常用指标,每一台辅助终端4都会将其所接收到的广播内容和RSSI信息上传到服务器3,RSSI信息可用于估算蓝牙信号发送方和接收方之间的距离。辅助终端4接收到电子钱包2发送的广播信息时,会携带RSSI。根据RSSI,可以估算辅助终端4与智能钱包之间的相对距离。In an embodiment, step 403 may include: for each auxiliary terminal 4 , calculating the relative distance between the auxiliary terminal 4 and the target device according to the signal strength of the broadcast information and the auxiliary location information. The broadcast information may include broadcast content and broadcast signal strength RSSI (Received Signal Strength Indication, signal strength indication) information. RSSI information is a commonly used indicator in Bluetooth communication. Each auxiliary terminal 4 will upload the received broadcast content and RSSI information to the server 3. RSSI information can be used to estimate the distance between the sender and receiver of the Bluetooth signal . When the auxiliary terminal 4 receives the broadcast information sent by the electronic wallet 2, it will carry RSSI. From the RSSI, the relative distance between the auxiliary terminal 4 and the smart wallet can be estimated.
步骤404:根据每个辅助终端4对应的辅助位置信息和相对距离,计算目标设备的多个位置估计值。Step 404: According to the auxiliary position information and relative distance corresponding to each auxiliary terminal 4, calculate multiple position estimation values of the target device.
在本步骤中,如果服务器3返回的信息中包括多个辅助终端4的辅助位置信息,则对应的步骤403中可以得到相同数量的相对位置信息,综合考虑每个辅助终端4上传的定位信息,来计算电子钱包2的多个位置估计值,可以提高远程定位的准确度。In this step, if the information returned by the server 3 includes auxiliary location information of a plurality of auxiliary terminals 4, then the same amount of relative location information can be obtained in the corresponding step 403, considering the positioning information uploaded by each auxiliary terminal 4 comprehensively, To calculate multiple position estimates of the electronic wallet 2, the accuracy of remote positioning can be improved.
于一实施例中,步骤403可以包括:计算每两两辅助位置信息的中心点位置,将中心点位置作为目标设备的位置估计值。In an embodiment, step 403 may include: calculating a center point position of every pair of auxiliary position information, and using the center point position as an estimated position value of the target device.
如果服务器3返回的信息中有超过一个辅助终端4的定位信息P1……Pn(即辅助位置信息,其中Pn表示第n个辅助终端4的辅助位置信息对应的辅助点,n为大于1的整数),此时每个辅助终端4对应的辅助位置信息P1……Pn与电子钱包2之间的相对距离分别为L1……Ln,则对n个辅助点两两计算中心位置。If there is more than one auxiliary terminal 4 positioning information P1...Pn in the information returned by the server 3 (i.e. auxiliary position information, wherein Pn represents the auxiliary point corresponding to the auxiliary position information of the nth auxiliary terminal 4, and n is an integer greater than 1 ), the relative distances between the auxiliary position information P1...Pn corresponding to each auxiliary terminal 4 and the electronic wallet 2 are L1...Ln respectively, and the center positions are calculated pair by pair for n auxiliary points.
于一实施例中,假设需计算辅助点Pa和辅助点Pb之间的中心点位置:以辅助点Pa为中心,相对距离La为半径画圆得圆A。并且以辅助点Pb为中心,相对距离Lb为半径画圆的圆B。计算方式如下:In one embodiment, it is assumed that the position of the center point between the auxiliary point Pa and the auxiliary point Pb needs to be calculated: a circle A is drawn with the auxiliary point Pa as the center and the relative distance La as the radius. And a circle B is drawn with the auxiliary point Pb as the center and the relative distance Lb as the radius. It is calculated as follows:
1、如图5A所示,如果圆A和圆B有两个交叉点:R和S,则取点R、点S连线的中间点作为辅助点Pa和辅助点Pb之间的中心点位置P。1. As shown in Figure 5A, if circle A and circle B have two intersection points: R and S, then take the middle point of the line connecting point R and point S as the center point position between auxiliary point Pa and auxiliary point Pb p.
2、如图5B所示,如果圆A和圆B有一个交叉点:P,则取点P作为辅助点Pa和辅助点Pb之间中心点。2. As shown in FIG. 5B, if circle A and circle B have an intersection point: P, then take point P as the center point between auxiliary point Pa and auxiliary point Pb.
3、如图5C所示,如果圆A和圆B没有交叉点,作圆A和圆B的圆心连线与圆周的交叉点分别为R和S。取点R和点S连线的中间点P作为辅助点Pa和辅助点Pb之间中心点。3. As shown in Figure 5C, if there is no intersection point between circle A and circle B, the intersection points of the line connecting the centers of circle A and circle B and the circumference are R and S respectively. Take the middle point P of the line connecting point R and point S as the center point between auxiliary point Pa and auxiliary point Pb.
步骤405:计算多个位置估计值的平均值,将平均值作为目标设备的目标位置信息。Step 405: Calculate the average value of multiple estimated position values, and use the average value as the target position information of the target device.
在本步骤中,通过对电子钱包2的多个位置估计值取平均,可以实现对电子钱包2的远程定位,并且辅助位置信息数量越多,计算结果也就越准确。In this step, the remote positioning of the electronic wallet 2 can be realized by averaging multiple estimated positions of the electronic wallet 2, and the more the auxiliary position information is, the more accurate the calculation result will be.
于一实施例中,步骤405可以包括:计算全部中心点位置的平均位置,将平均位置作为目标设备的目标位置信息。In an embodiment, step 405 may include: calculating an average position of all center point positions, and using the average position as target position information of the target device.
基于上述步骤404中分别计算出两个辅助点的中心点的方式,对于n个辅助点P1…… Pn两两计算,可以得出
Figure PCTCN2021119439-appb-000001
个中心点。假如
Figure PCTCN2021119439-appb-000002
m为正整数,P'1……P'm为m个中心点,其坐标分别是(x 1,y 1)……(x m,y m)。则可以采用如下公式计算m个中心点的平均点Q坐标:
Based on the method of calculating the central points of the two auxiliary points in the above step 404, for n auxiliary points P1...Pn two-by-two calculation, it can be obtained
Figure PCTCN2021119439-appb-000001
a central point. if
Figure PCTCN2021119439-appb-000002
m is a positive integer, P'1...P'm are m center points, and their coordinates are (x 1 ,y 1 )...(x m ,y m ). Then the average point Q coordinates of m center points can be calculated by the following formula:
Figure PCTCN2021119439-appb-000003
Figure PCTCN2021119439-appb-000003
Figure PCTCN2021119439-appb-000004
Figure PCTCN2021119439-appb-000004
最后,将点Q(x,y)作为电子钱包2的目标位置信息。Finally, the point Q(x, y) is used as the target position information of the electronic wallet 2 .
于一实施例中,辅助终端4的数量为1个。在根据广播信息和辅助终端4的位置信息,确定目标设备的位置信息时,可以直接将辅助终端4的辅助位置信息作为目标设备的目标位置信息。也就是说如果服务器3返回的信息中只有一个智能设备的定位信息P及其与电子钱包2的相对距离L,则直接将定位信息P作为电子钱包2的目标位置信息。In one embodiment, the number of the auxiliary terminal 4 is one. When determining the location information of the target device according to 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 to say, if the information returned by the server 3 only includes the location information P of one smart device and its relative distance L to the electronic wallet 2, then the location information P is directly used as the target location information of the electronic wallet 2.
请参看图5,其为本申请一实施例的设备定位装置600,该装置可应用于图1所示的电子设备1,并可以应用于如图2A至图2F所示的电子钱包2定位场景中,以实现当电子钱包2不在电子设备1的附近时,也可以远程定位到电子钱包2,进而及时找到遗失的电子钱包2,减少用户财产损失。该装置包括:发送模块601、接收模块602和确定模块603,各个模块的原理关系如下:Please refer to FIG. 5, which is a device positioning device 600 according to an embodiment of the present application. This device can be applied to the electronic device 1 shown in FIG. In order to realize that when the electronic wallet 2 is not in the vicinity of the electronic device 1, the electronic wallet 2 can also be remotely located, and then the lost electronic wallet 2 can be found in time to reduce the user's property loss. The device includes: a sending module 601, a receiving module 602 and a determining module 603, and the principle relationship of each module is as follows:
发送模块601,用于发送查询请求至服务器3,查询请求中携带有待查询的目标设备的标识信息。The sending module 601 is configured to send a query request to the server 3, where the query request carries identification information of the target device to be queried.
接收模块602,用于接收服务器3基于查询请求的返回信息,返回信息中携带有辅助终端4接收到的来自目标设备的广播信息和辅助终端4在接收到广播信息时的辅助位置信息。The receiving module 602 is configured to receive the information returned by the server 3 based on the query request, the returned information carries the broadcast information received by the auxiliary terminal 4 from the target device and the auxiliary location information of the auxiliary terminal 4 when receiving the broadcast information.
确定模块603,用于根据广播信息和辅助位置信息,确定目标设备的目标位置信息。The determining module 603 is configured to determine the target location information of the target device according to the broadcast information and the auxiliary location information.
于一实施例中,辅助终端4的数量为多个,每个辅助终端4分别对应一个广播信息和一个辅助位置信息。确定模块603用于:根据每个辅助终端4接收的广播信息和每个辅助终端4的辅助位置信息,计算每个辅助终端4与目标设备之间的相对距离。根据每个辅助终端4对应的辅助位置信息和相对距离,计算目标设备的多个位置估计值。计算多个位置估计值的平均值,将平均值作为目标设备的目标位置信息。In one embodiment, there are multiple auxiliary terminals 4, and each auxiliary terminal 4 corresponds to a piece of broadcast information and a piece of auxiliary location information. The determining module 603 is configured to: calculate 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 . According to the auxiliary position information and the relative distance corresponding to each auxiliary terminal 4, multiple estimated position values of the target device are calculated. Calculate an average value of a plurality of position estimation values, and use the average value as target position information of the target device.
于一实施例中,根据每个辅助终端4接收的广播信息和每个辅助终端4的辅助位置信息,计算每个辅助终端4与目标设备之间的相对距离,包括:针对每个辅助终端4,根据广播信息的信号强度和辅助位置信息,计算辅助终端4与目标设备之间的相对距离。In one embodiment, according to the broadcast information received by each auxiliary terminal 4 and the auxiliary location information of each auxiliary terminal 4, calculating the relative distance between each auxiliary terminal 4 and the target device includes: for each auxiliary terminal 4 , calculate the relative distance between the auxiliary terminal 4 and the target device according to the signal strength of the broadcast information and the auxiliary location information.
于一实施例中,根据每个辅助终端4对应的辅助位置信息和相对距离,计算目标设备的多个位置估计值,包括:计算每两两辅助位置信息的中心点位置,将中心点位置作为目 标设备的位置估计值。In one embodiment, according to the auxiliary position information and relative distance corresponding to each auxiliary terminal 4, the calculation of multiple estimated position values of the target device includes: calculating the center point position of every pair of auxiliary position information, and taking the center point position as The location estimate of the target device.
于一实施例中,计算多个位置估计值的平均值,将平均值作为目标设备的目标位置信息,包括:计算全部中心点位置的平均位置,将平均位置作为目标设备的目标位置信息。In one embodiment, calculating the average value of multiple position estimation values and using the average value as the target position information of the target device includes: calculating the average position of all center points, and using the average position as the target position information of the target device.
于一实施例中,辅助终端4的数量为1个。确定模块603用于:将辅助终端4的辅助位置信息作为目标设备的目标位置信息。In one embodiment, the number of the auxiliary terminal 4 is one. The determining module 603 is configured to: use the auxiliary location information of the auxiliary terminal 4 as the target location information of the target device.
于一实施例中,返回信息为由目标设备的公钥加密后的密文。装置还包括:解密模块604,用于在根据广播信息和辅助位置信息,确定目标设备的目标位置信息之前,根据预设的私钥对返回信息进行解密处理,得到解密后的广播信息和辅助位置信息,私钥与公钥为一对密钥对。In one embodiment, the returned information is a ciphertext encrypted by the public key of the target device. The device also includes: a decryption module 604, configured to decrypt the returned information according to the preset private key before determining the target location information of the target device according to the broadcast information and the auxiliary location information, to obtain the decrypted broadcast information and the auxiliary location Information, the private key and the public key are a pair of key pairs.
上述设备定位装置600的详细描述,请参见上述实施例中相关方法步骤的描述。For the detailed description of the device locating apparatus 600, please refer to the description of relevant method steps in the above embodiments.
本申请实施例还提供了一种非暂态电子设备1可读存储介质,包括:程序,当其在电子设备1上运行时,使得电子设备1可执行上述实施例中方法的全部或部分流程。其中,存储介质可为磁盘、光盘、只读存储记忆体(Read-Only Memory,ROM)、随机存储记忆体(Random Access Memory,RAM)、快闪存储器(Flash Memory)、硬盘(Hard Disk Drive,缩写:HDD)或固态硬盘(Solid-State Drive,SSD)等。存储介质还可以包括上述种类的存储器的组合。The embodiment of the present application also provides a non-transitory electronic device 1 readable storage medium, including: a program, when running on the electronic device 1, the electronic device 1 can execute all or part of the process of the method in the above embodiment . Wherein, the storage medium can be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, Abbreviation: HDD) or Solid-State Drive (SSD), etc. The storage medium may also include a combination of the above-mentioned kinds of memories.
虽然结合附图描述了本申请的实施例,但是本领域技术人员可以在不脱离本申请的精神和范围的情况下作出各种修改和变型,这样的修改和变型均落入由所附权利要求所限定的范围之内。Although the embodiment of the application has been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the application, and such modifications and variations all fall into the scope defined by the appended claims. within the limited range.

Claims (17)

  1. 一种设备定位方法,其特征在于,包括:A device positioning method, characterized in that, comprising:
    发送查询请求至服务器,所述查询请求中携带有待查询的目标设备的标识信息;Sending a query request to the server, the query request carrying identification information of the target device to be queried;
    接收所述服务器基于所述查询请求的返回信息,所述返回信息中携带有辅助终端接收到的来自所述目标设备的广播信息和所述辅助终端在接收到所述广播信息时的辅助位置信息;receiving the return information from the server based on the query request, the return information carrying the broadcast information received by the auxiliary terminal from the target device and the auxiliary location information of the auxiliary terminal when receiving the broadcast information ;
    根据所述广播信息和所述辅助位置信息,确定所述目标设备的目标位置信息。Determine target location information of the target device according to the broadcast information and the auxiliary location information.
  2. 根据权利要求1所述的方法,其特征在于,所述辅助终端的数量为多个,每个所述辅助终端分别对应一个所述广播信息和一个所述辅助位置信息;所述根据所述广播信息和所述辅助位置信息,确定所述目标设备的目标位置信息,包括:The method according to claim 1, wherein 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; Information and the auxiliary location information, determining the target location information of the target device, including:
    根据每个所述辅助终端接收的所述广播信息和每个所述辅助终端的所述辅助位置信息,计算每个所述辅助终端与所述目标设备之间的相对距离;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;
    根据每个所述辅助终端对应的所述辅助位置信息和所述相对距离,计算所述目标设备的多个位置估计值;calculating a plurality of estimated position values of the target device according to the assisted position information and the relative distance corresponding to each assisted terminal;
    计算所述多个位置估计值的平均值,将所述平均值作为所述目标设备的所述目标位置信息。calculating an average value of the plurality of estimated position values, and using the average value as the target position information of the target device.
  3. 根据权利要求2所述的方法,其特征在于,所述根据每个所述辅助终端接收的所述广播信息和每个所述辅助终端的所述辅助位置信息,计算每个所述辅助终端与所述目标设备之间的相对距离,包括:The method according to claim 2, characterized in that, according to the broadcast information received by each of the auxiliary terminals and the auxiliary location information of each of the auxiliary terminals, the distance between each of the auxiliary terminals is calculated. The relative distance between the target devices, including:
    针对每个所述辅助终端,根据所述广播信息的信号强度和所述辅助位置信息,计算所述辅助终端与所述目标设备之间的相对距离。For each of the auxiliary terminals, the relative distance between the auxiliary terminal and the target device is calculated according to the signal strength of the broadcast information and the auxiliary location information.
  4. 根据权利要求2所述的方法,其特征在于,所述根据每个所述辅助终端对应的所述辅助位置信息和所述相对距离,计算所述目标设备的多个位置估计值,包括:The method according to claim 2, wherein the calculating multiple estimated position values of the target device according to the auxiliary position information and the relative distance corresponding to each of the auxiliary terminals includes:
    计算每两两所述辅助位置信息的中心点位置,将所述中心点位置作为所述目标设备的所述位置估计值。Calculate the center point position of every pair of the auxiliary position information, and use the center point position as the estimated position value of the target device.
  5. 根据权利要求4所述的方法,其特征在于,所述计算所述多个位置估计值的平均值,将所述平均值作为所述目标设备的所述目标位置信息,包括:The method according to claim 4, wherein the calculating the average value of the plurality of position estimation values and using the average value as the target position information of the target device comprises:
    计算全部所述中心点位置的平均位置,将所述平均位置作为所述目标设备的所述目标位置信息。Calculate the average position of all the central point positions, and use the average position as the target position information of the target device.
  6. 根据权利要求1所述的方法,其特征在于,所述辅助终端的数量为1个;所述根据所述广播信息和所述辅助终端的位置信息,确定所述目标设备的位置信息,包括:The method according to claim 1, wherein the number of the auxiliary terminal is one; determining the location information of the target device according to the broadcast information and the location information of the auxiliary terminal includes:
    将所述辅助终端的所述辅助位置信息作为所述目标设备的目标位置信息。The auxiliary location information of the auxiliary terminal is used as the target location information of the target device.
  7. 根据权利要求1所述的方法,其特征在于,所述返回信息为由所述目标设备的公钥加密后的密文;在所述根据所述广播信息和所述辅助位置信息,确定所述目标设备的目标位置信息之前,还包括:The method according to claim 1, wherein the returned information is a ciphertext encrypted by the public key of the target device; and determining the Before the target location information of the target device, also include:
    根据预设的私钥对所述返回信息进行解密处理,得到解密后的所述广播信息和所述辅助位置信息,所述私钥与所述公钥为一对密钥对。Decrypting the returned information according to a preset private key to obtain the decrypted broadcast information and the auxiliary location information, where the private key and the public key are a pair of key pairs.
  8. 一种设备定位装置,其特征在于,包括:A device positioning device, characterized in that it comprises:
    发送模块,用于发送查询请求至服务器,所述查询请求中携带有待查询的目标设备的标识信息;A sending module, configured to send a query request to the server, where the query request carries identification information of the target device to be queried;
    接收模块,用于接收所述服务器基于所述查询请求的返回信息,所述返回信息中携带有辅助终端接收到的来自所述目标设备的广播信息和所述辅助终端在接收到所述广播信息时的辅助位置信息;A receiving module, configured to receive the information returned by the server based on the query request, the returned information carries the broadcast information received by the auxiliary terminal from the target device and the broadcast information received by the auxiliary terminal after receiving the broadcast information Auxiliary location information at the time;
    确定模块,用于根据所述广播信息和所述辅助位置信息,确定所述目标设备的目标位置信息。A determining module, configured to determine target location information of the target device according to the broadcast information and the auxiliary location information.
  9. 根据权利要求8所述的装置,其特征在于,所述辅助终端的数量为多个,每个所述辅助终端分别对应一个所述广播信息和一个所述辅助位置信息;确定模块用于:The device according to claim 8, wherein 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; the determining module is used for:
    根据每个所述辅助终端接收的所述广播信息和每个所述辅助终端的所述辅助位置信息,计算每个所述辅助终端与所述目标设备之间的相对距离;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;
    根据每个所述辅助终端对应的所述辅助位置信息和所述相对距离,计算所述目标设备的多个位置估计值;calculating a plurality of estimated position values of the target device according to the assisted position information and the relative distance corresponding to each assisted terminal;
    计算所述多个位置估计值的平均值,将所述平均值作为所述目标设备的所述目标位置信息。calculating an average value of the plurality of estimated position values, and using the average value as the target position information of the target device.
  10. 根据权利要求9所述的装置,其特征在于,所述根据每个所述辅助终端接收的所述广播信息和每个所述辅助终端的所述辅助位置信息,计算每个所述辅助终端与所述目标设备之间的相对距离,包括:The device according to claim 9, wherein, according to the broadcast information received by each of the auxiliary terminals and the auxiliary location information of each of the auxiliary terminals, the distance between each of the auxiliary terminals is calculated. The relative distance between the target devices, including:
    针对每个所述辅助终端,根据所述广播信息的信号强度和所述辅助位置信息,计算所述辅助终端与所述目标设备之间的相对距离。For each of the auxiliary terminals, the relative distance between the auxiliary terminal and the target device is calculated according to the signal strength of the broadcast information and the auxiliary location information.
  11. 根据权利要求9所述的装置,其特征在于,所述根据每个所述辅助终端对应的所述辅助位置信息和所述相对距离,计算所述目标设备的多个位置估计值,包括:The device according to claim 9, wherein the calculating multiple estimated position values of the target device according to the auxiliary position information and the relative distance corresponding to each of the auxiliary terminals includes:
    计算每两两所述辅助位置信息的中心点位置,将所述中心点位置作为所述目标设备的所述位置估计值。Calculate the center point position of every pair of the auxiliary position information, and use the center point position as the estimated position value of the target device.
  12. 根据权利要求11所述的装置,其特征在于,所述计算所述多个位置估计值的平均 值,将所述平均值作为所述目标设备的所述目标位置信息,包括:The device according to claim 11, wherein the calculating the average value of the plurality of estimated position values, using the average value as the target position information of the target device, comprises:
    计算全部所述中心点位置的平均位置,将所述平均位置作为所述目标设备的所述目标位置信息。Calculate the average position of all the central point positions, and use the average position as the target position information of the target device.
  13. 根据权利要求8所述的装置,其特征在于,所述辅助终端的数量为1个;所述确定模块用于:The device according to claim 8, wherein the number of the auxiliary terminal is one; the determining module is used for:
    将所述辅助终端的所述辅助位置信息作为所述目标设备的目标位置信息。The auxiliary location information of the auxiliary terminal is used as the target location information of the target device.
  14. 根据权利要求8所述的装置,其特征在于,所述返回信息为由所述目标设备的公钥加密后的密文;所述装置还包括:The device according to claim 8, wherein the returned information is a ciphertext encrypted by the public key of the target device; the device further comprises:
    解密模块,用于在所述根据所述广播信息和所述辅助位置信息,确定所述目标设备的目标位置信息之前,根据预设的私钥对所述返回信息进行解密处理,得到解密后的所述广播信息和所述辅助位置信息,所述私钥与所述公钥为一对密钥对。A decryption module, 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, to obtain the decrypted The broadcast information and the auxiliary location information, the private key and the public key are a key pair.
  15. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    存储器,用以存储计算机程序;memory for storing computer programs;
    处理器,用以执行所述计算机程序,以实现如权利要求1至7中任一项所述的方法。A processor, configured to execute the computer program to implement the method according to any one of claims 1-7.
  16. 一种电子钱包,其特征在于,包括:An electronic wallet, characterized in that it comprises:
    安全模块,用于装载虚拟卡信息;A security module for loading virtual card information;
    通信模块,用于与绑定的外部设备建立通信连接;A communication module, configured to establish a communication connection with a bound external device;
    主控模块,分别连接所述安全模块和所述通信模块,用于控制所述安全模块的虚拟卡通过所述通信模块与所述外部设备进行数据交互;The main control module is connected to the security module and the communication module respectively, and is used to control the virtual card of the security module to perform data interaction with the external device through the communication module;
    所述主控模块还用于:The main control module is also used for:
    接收所述外部设备发送的脱机保护指令,所述脱机保护指令中携带有脱机保护时长;receiving an offline protection instruction sent by the external device, the offline protection instruction carrying an offline protection duration;
    当所述电子钱包未在所述脱机保护时长内与所述外部设备建立通信连接时,控制所述安全模块关闭所述虚拟卡的数据交互权限。When the electronic wallet does not establish a communication connection with the external device within the offline protection duration, the security module is controlled to close the data interaction authority of the virtual card.
  17. 一种非暂态电子设备可读存储介质,其特征在于,包括:程序,当其藉由电子设备运行时,使得所述电子设备执行权利要求1至7中任一项所述的方法。A storage medium readable by a non-transitory electronic device, characterized by comprising: a program, which, when run by the electronic device, causes the electronic device to execute the method described in any one of claims 1-7.
PCT/CN2021/119439 2021-09-09 2021-09-18 Device positioning method and apparatus, and device, wallet and storage medium WO2023035319A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2023035319A1 true WO2023035319A1 (en) 2023-03-16

Family

ID=78794092

Family Applications (1)

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

Country Status (2)

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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106060773A (en) * 2016-05-09 2016-10-26 腾讯科技(深圳)有限公司 Object positioning system, method and device
CN106412819A (en) * 2015-07-31 2017-02-15 腾讯科技(深圳)有限公司 Method and device for positioning device
CN111601293A (en) * 2020-05-12 2020-08-28 北京三快在线科技有限公司 Positioning method and device based on Bluetooth beacon equipment

Family Cites Families (7)

* 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
CN104735783B (en) * 2015-04-21 2019-01-01 北京云迹科技有限公司 A kind of method, apparatus that realizing position enquiring and server
CN106291461B (en) * 2016-09-30 2019-01-11 香港中文大学深圳研究院 A kind of method, apparatus, server and the system of RFID indoor positioning
CN108322886B (en) * 2017-12-15 2019-12-06 腾讯科技(深圳)有限公司 Authentication method and device for terminal positioning data
CN112312319A (en) * 2019-07-23 2021-02-02 西安中兴新软件有限责任公司 Equipment 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
CN112040394B (en) * 2020-08-05 2022-06-10 深圳市微能信息科技有限公司 Bluetooth positioning method and system based on AI deep learning algorithm

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
CN111601293A (en) * 2020-05-12 2020-08-28 北京三快在线科技有限公司 Positioning method and device based on Bluetooth beacon equipment

Also Published As

Publication number Publication date
CN113766429A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
US20230153808A1 (en) Expedited virtual currency transaction system
CN112118227B (en) Card binding method and terminal
KR101971329B1 (en) Provisioning and authenticating credentials on an electronic device
US10192214B2 (en) Pending deposit for payment processing system
US10055740B2 (en) Payment selection and authorization
KR20180100369A (en) Performing transactions using electronic devices with non-native credentials
US20140052637A1 (en) Portable device wireless reader and payment transaction terminal secure memory functionality
US20130185208A1 (en) Handling transaction and trip data
KR20180017222A (en) Online payments using a secure element of an electronic device
EP2805536B1 (en) Secure communications between devices and a trusted server
WO2017036249A1 (en) Method and device using mobile terminal to make payment
US20130103524A1 (en) System for offline processing of purchases
CA3172690A1 (en) Intelligent card unlock
US10083443B1 (en) Persistent authentication of a wearable device
US10262505B1 (en) Anti-skimming solution
WO2023035319A1 (en) Device positioning method and apparatus, and device, wallet and storage medium
RU2616154C1 (en) Means, method and system for transaction implementation
US20160283927A1 (en) Authentication for mobile transactions
WO2013109372A1 (en) Mobile card processing using multiple wireless devices
CA2994833A1 (en) Systems and methods for interaction authentication using dynamic wireless beacon devices
AU2012244201B2 (en) System for offline processing of purchases
US11539676B2 (en) Encrypted tagging system for protection of network-based resource transfers
KR20240018983A (en) Noncontact payment system using ultra-wide band communication and method thereof
KR20120005320A (en) Location based transaction method and financial company server supporting the method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21956495

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE