CN111343297A - Bluetooth identifier generation method and device - Google Patents

Bluetooth identifier generation method and device Download PDF

Info

Publication number
CN111343297A
CN111343297A CN202010123345.1A CN202010123345A CN111343297A CN 111343297 A CN111343297 A CN 111343297A CN 202010123345 A CN202010123345 A CN 202010123345A CN 111343297 A CN111343297 A CN 111343297A
Authority
CN
China
Prior art keywords
bluetooth
identifier
user
identification
certain user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010123345.1A
Other languages
Chinese (zh)
Other versions
CN111343297B (en
Inventor
谢振东
付冰凌
温晓丽
顾裕波
邓志
袁勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Yang Cheng Tong Co ltd
Original Assignee
Guangzhou Yang Cheng Tong Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Yang Cheng Tong Co ltd filed Critical Guangzhou Yang Cheng Tong Co ltd
Priority to CN202010123345.1A priority Critical patent/CN111343297B/en
Publication of CN111343297A publication Critical patent/CN111343297A/en
Application granted granted Critical
Publication of CN111343297B publication Critical patent/CN111343297B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3015Name registration, generation or assignment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4547Network directories; Name-to-address mapping for personal communications, i.e. using a personal identifier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0866Generation of secret information including derivation or calculation of cryptographic keys or passwords involving user or device identifiers, e.g. serial number, physical or biometrical information, DNA, hand-signature or measurable physical characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0869Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
    • 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/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

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

Abstract

The invention discloses a method and a device for generating a Bluetooth identifier, wherein the method comprises the following steps: the method comprises the steps that a background server detects a Bluetooth identification generation request triggered by a certain user, account information of the certain user is obtained according to the Bluetooth identification generation request, the user identification is calculated based on a predetermined check key, a check code corresponding to the user identification is obtained, a Bluetooth identification is generated by a Bluetooth identification, the user identification and the check code according to a predetermined generation rule, and the Bluetooth identification is output to the certain user, so that the Bluetooth equipment identification of the mobile equipment is modified into the Bluetooth identification by the certain user. Therefore, the method and the device can improve the recognition rate of the Bluetooth identification of the mobile terminal, thereby improving the accuracy, reliability and safety of the Bluetooth connection between the mobile terminals and further improving the Bluetooth transmission efficiency and accuracy between the mobile terminals; and other equipment can conveniently and quickly know the account information corresponding to the user through the Bluetooth identifier, so that the locking accuracy of the user is improved.

Description

Bluetooth identifier generation method and device
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for generating a Bluetooth identifier.
Background
Bluetooth (Bluetooth) is a short-range wireless communication technology that operates in the globally available 2.4GHz radio band and enables data transmission between mobile terminals. With the development of mobile terminal technology, most mobile terminals have a bluetooth function at present, and more users use the bluetooth function of the mobile terminals to study, entertain and the like, so that the life of the users is enriched, and great convenience is brought to the users.
In practical applications, when data transmission between mobile terminals needs to be performed through bluetooth technology, the mobile terminals to be paired must be found and after successful pairing, the data transmission can be performed through bluetooth technology. Currently, the required mobile terminal is generally found by reading the physical address of the mobile terminal.
However, practice has found that the method for searching for the desired mobile terminal by the physical address has low accuracy, and particularly when the number of mobile terminals in the same range is large, the situation that the desired mobile terminal cannot be found or the mobile terminal is connected incorrectly often occurs. Therefore, it is necessary to provide a technical solution that can accurately identify the mobile terminals through bluetooth, thereby improving the accuracy and reliability of bluetooth connection between the mobile terminals.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and an apparatus for generating a bluetooth identifier, which can improve the accuracy and reliability of bluetooth connection between mobile terminals by generating a unique bluetooth identifier for a mobile terminal of a user.
In order to solve the above technical problem, a first aspect of an embodiment of the present invention discloses a method for generating a bluetooth identifier, where the method is applied to a background server, and the method includes:
the background server detects a Bluetooth identification generation request triggered by a certain user, wherein the Bluetooth identification generation request is used for requesting to generate a Bluetooth identification uniquely corresponding to the certain user;
the background server acquires account information corresponding to the certain user according to the Bluetooth identifier generation request, wherein the account information at least comprises a user identifier of the certain user;
the background server calculates the user identification based on a predetermined verification key to obtain a verification code corresponding to the user identification;
and the background server generates the Bluetooth identification from the predetermined Bluetooth identification, the user identification and the check code according to a predetermined generation rule, and outputs the Bluetooth identification to the certain user, so that the certain user modifies the Bluetooth equipment identification of the mobile equipment corresponding to the certain user into the Bluetooth identification.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, before the background server calculates the user identifier based on a predetermined verification key to obtain a verification code corresponding to the user identifier, the method further includes:
the background server generates a unique identifier corresponding to the user identifier;
the method for calculating the user identifier by the background server based on the predetermined verification key to obtain the verification code corresponding to the user identifier includes:
and the background server calculates the user identification and the unique identification based on a predetermined verification key to obtain a verification code corresponding to the user identification.
As an alternative implementation, in a first aspect of an embodiment of the present invention,
the background server calculates the user identifier based on a predetermined verification key, after obtaining a verification code corresponding to the user identifier, and before the background server generates the bluetooth identifier from the predetermined bluetooth identification identifier, the user identifier and the verification code according to a predetermined generation rule, the method further includes:
the background server determines characteristic parameters of the certain user, wherein the characteristic parameters at least comprise facial characteristics of the certain user;
the background server generates a target random number based on the facial features, and performs encryption operation on the check code based on the target random number to obtain an encrypted check code;
the background server generates the bluetooth identifier from the predetermined bluetooth identification identifier, the user identifier and the check code according to the predetermined generation rule, and the method includes:
and the background server generates the Bluetooth identification from the predetermined Bluetooth identification, the user identification and the encrypted check code according to a predetermined generation rule. As an optional implementation manner, in the first aspect of this embodiment of the present invention, the method further includes:
the background server determines the trigger time of the Bluetooth identifier generation request and generates a character string based on a public key stored in advance and the trigger time;
the background server obtains at least one dynamic factor, calculates the character string based on all the dynamic factors to obtain a target character string, and determines the target character string as a predetermined verification key.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the background server generates the bluetooth identifier from the predetermined bluetooth identification identifier, the user identifier, and the check code according to the predetermined generation rule, and before the background server outputs the bluetooth identifier to the certain user, so that the certain user modifies the bluetooth device identifier of the mobile device corresponding to the certain user to the bluetooth identifier, the method further includes:
the background server acquires a Bluetooth device identifier of a mobile device corresponding to a certain user and a physical address of the mobile device, and performs encryption operation on the Bluetooth device identifier based on the Bluetooth device identifier of the mobile device and the physical address of the mobile device to obtain an encrypted Bluetooth device identifier;
wherein, the background server outputs the bluetooth identifier to the certain user, so that the certain user modifies the bluetooth device identifier of the mobile device corresponding to the certain user into the bluetooth identifier, including:
and the background server outputs the encrypted Bluetooth identification to the certain user so that the certain user modifies the Bluetooth equipment identification of the mobile equipment corresponding to the certain user into the encrypted Bluetooth identification.
The second aspect of the embodiments of the present invention discloses a generating device of a bluetooth identifier, where the generating device is applied in a background server, and the generating device includes:
the device comprises a detection module, a processing module and a control module, wherein the detection module is used for detecting a Bluetooth identification generation request triggered by a certain user, and the Bluetooth identification generation request is used for requesting to generate a Bluetooth identification uniquely corresponding to the certain user;
an obtaining module, configured to obtain account information corresponding to the certain user according to the bluetooth identifier generation request, where the account information at least includes a user identifier of the certain user;
the calculation module is used for calculating the user identification based on a predetermined verification key to obtain a verification code corresponding to the user identification;
the generating module is used for generating the Bluetooth identification from the predetermined Bluetooth identification, the user identification and the check code according to the predetermined generating rule;
and the output module is used for outputting the Bluetooth identifier to the certain user so that the certain user modifies the Bluetooth device identifier of the mobile device corresponding to the certain user into the Bluetooth identifier.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the generating module is further configured to generate a unique identifier corresponding to the user identifier before the calculating module calculates the user identifier based on a predetermined verification key to obtain a verification code corresponding to the user identifier;
the calculation module calculates the user identifier based on a predetermined verification key, and the method for obtaining the verification code corresponding to the user identifier specifically comprises the following steps:
and calculating the user identification and the unique identification based on the predetermined verification key to obtain a verification code corresponding to the user identification.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the generating device further includes:
the first determining module is used for determining the characteristic parameters of the certain user after the calculating module calculates the user identifier based on a predetermined verification key to obtain a verification code corresponding to the user identifier and before the generating module generates the bluetooth identifier from the predetermined bluetooth identification identifier, the user identifier and the verification code according to a predetermined generating rule, wherein the characteristic parameters at least comprise the facial features of the certain user;
the generation module is further used for generating a target random number based on the facial features;
the first encryption module is used for carrying out encryption operation on the check code based on the target random number to obtain an encrypted check code;
the method for generating the bluetooth identifier by the generation module according to the predetermined generation rule by using the predetermined bluetooth identification identifier, the user identifier and the check code specifically comprises the following steps:
and generating the Bluetooth identification by the predetermined Bluetooth identification, the user identification and the encrypted check code according to a predetermined generation rule. As an optional implementation manner, in the second aspect of the embodiment of the present invention, the generating device further includes:
the second determining module is used for determining the trigger time of the Bluetooth identifier generation request;
the generating module is further used for generating a character string based on a public key stored in advance and the trigger time;
the acquisition module is further used for acquiring at least one dynamic factor;
the calculation module is further configured to calculate the character string based on all the dynamic factors to obtain a target character string;
the second determining module is further configured to determine the target character string as a predetermined verification key.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the obtaining module is further configured to, after the generating module generates the bluetooth identifier according to a predetermined generation rule, the predetermined bluetooth identification, the user identifier, and the check code, and before the output module outputs the bluetooth identifier to the certain user, so that the certain user modifies the bluetooth device identifier of the mobile device corresponding to the certain user into the bluetooth identifier, obtain the bluetooth device identifier of the mobile device corresponding to the certain user and a physical address of the mobile device;
and, the apparatus further comprises:
the second encryption module is used for performing encryption operation on the Bluetooth identifier based on the Bluetooth device identifier of the mobile device and the physical address of the mobile device to obtain an encrypted Bluetooth identifier;
the output module outputs the bluetooth identifier to the certain user, so that the manner for the certain user to modify the bluetooth device identifier of the mobile device corresponding to the certain user into the bluetooth identifier specifically includes:
and outputting the encrypted Bluetooth identification to the certain user so that the certain user modifies the Bluetooth equipment identification of the mobile equipment corresponding to the certain user into the encrypted Bluetooth identification.
The third aspect of the present invention discloses another apparatus for generating a bluetooth identifier, where the apparatus comprises:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the method for generating the bluetooth identifier disclosed by the first aspect of the present invention.
The fourth aspect of the present invention discloses a computer-readable storage medium, which stores computer instructions, and when the computer instructions are called, the computer instructions are used to execute the method for generating a bluetooth identifier disclosed in the first aspect of the present invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
the embodiment of the invention discloses a method and a device for generating a Bluetooth identifier, wherein the method comprises the following steps: the method comprises the steps that a background server detects a Bluetooth identification generation request triggered by a certain user, wherein the Bluetooth identification generation request is used for requesting to generate a Bluetooth identification uniquely corresponding to the certain user; the background server acquires account information corresponding to a certain user according to the Bluetooth identifier generation request, wherein the account information at least comprises a user identifier of the certain user; the background server calculates a user identifier based on a predetermined verification key to obtain a verification code corresponding to the user identifier; and the background server generates a Bluetooth identification from the predetermined Bluetooth identification, the user identification and the check code according to a predetermined generation rule, and outputs the Bluetooth identification to a certain user, so that the certain user modifies the Bluetooth equipment identification of the mobile equipment into the Bluetooth identification. Therefore, the verification code corresponding to the account information of the user is generated through the determined verification key, the unique Bluetooth identification corresponding to the user is generated based on the account information, the verification code and the determined Bluetooth identification, the Bluetooth identification is output, so that the user can modify the Bluetooth equipment identification of the mobile terminal into the unique Bluetooth identification, the identification rate of the Bluetooth identification of the mobile terminal can be improved, the accuracy, the reliability and the safety of Bluetooth connection between the mobile terminals are improved, and the Bluetooth transmission efficiency and the accuracy between the mobile terminals are improved; and the unique Bluetooth identification is generated for the mobile terminal of the user, so that other equipment (such as subway gate equipment) can know the account information corresponding to the user quickly through the Bluetooth identification, and the locking accuracy of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for generating a bluetooth identifier according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of another method for generating a bluetooth identifier according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for generating a bluetooth identifier according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another bluetooth identifier generating apparatus disclosed in the embodiment of the present invention;
fig. 5 is a flowchart of another apparatus for generating bluetooth identifiers according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product, or apparatus that comprises a list of steps or elements is not limited to those listed but may alternatively include other steps or elements not listed or inherent to such process, method, product, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The invention discloses a method and a device for generating a Bluetooth identifier, which can generate a check code corresponding to account information of a user through a determined check key, generate a unique Bluetooth identifier corresponding to the user based on the account information, the check code and the determined Bluetooth identification identifier, and output the Bluetooth identifier, so that the user can modify a Bluetooth equipment identifier of a mobile terminal into the unique Bluetooth identifier, and can improve the identification rate of the Bluetooth identifier of the mobile terminal, thereby improving the accuracy, reliability and safety of Bluetooth connection between the mobile terminals, and further improving the Bluetooth transmission efficiency and accuracy between the mobile terminals; and the unique Bluetooth identification is generated for the mobile terminal of the user, so that other equipment (such as subway gate equipment) can know the account information corresponding to the user quickly through the Bluetooth identification, and the locking accuracy of the user is improved. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for generating a bluetooth identifier according to an embodiment of the present invention. The method for generating the bluetooth identifier described in fig. 1 may be applied to a background server, where the background server is any background server of a mobile terminal with a bluetooth function. The Mobile terminal may include any one of a smart phone (an Android phone, an iOS phone, and the like), a smart phone watch, a tablet computer, a palm computer, and a Mobile Internet Device (MID), and the embodiments of the present invention are not limited thereto. As shown in fig. 1, the method for generating a bluetooth identifier may include the following steps:
101. the background server detects a Bluetooth identification generation request triggered by a certain user, and the Bluetooth identification generation request is used for requesting to generate a Bluetooth identification uniquely corresponding to the certain user.
In the embodiment of the present invention, the bluetooth identifier generation request is triggered by a certain user through a target application (for example, a travel-class application) installed in a mobile terminal, and the target application may be provided with a plurality of authorization interfaces, where the certain user can quickly start the target application through a corresponding authorization interface when using another application, and the plurality of authorization interfaces include, but are not limited to, one or more of an applet platform interface, a microblog platform interface, a network video platform interface, a network radio platform interface, and a music platform interface, and the embodiment of the present invention is not limited. Therefore, the audience range of the target application can be improved by setting multiple authorization interfaces, and the use viscosity of a user can be further improved. Further, the triggering manner of the bluetooth identifier generation request may include any one of voice triggering, touch triggering, and gesture triggering, which is not limited in the embodiment of the present invention.
In an optional embodiment, the method for generating a bluetooth identifier may further include the following steps:
the background server acquires the current geographic position of a certain user and judges whether the current geographic position is within a predetermined area range.
In this optional embodiment, as an optional implementation manner, the obtaining, by the backend server according to the bluetooth identifier generation request, account information corresponding to a certain user may include:
and when the current geographic position of a certain user is judged to be in the area range, the background server generates a request to acquire account information corresponding to the certain user according to the current service handling condition, the current geographic position and the Bluetooth identifier. That is, when the current geographic location of a certain user is determined to be within the area range, the background server preferentially responds to the bluetooth identifier generation request of the certain user, that is, when the current geographic location of the certain user is determined to be within the area range, the background server preferentially generates a unique bluetooth identifier for the certain user.
In this alternative embodiment, the area range is an area range formed by centering on the geographical position where the target station closest to the current geographical position is located. Specifically, the area range is a circular area formed by taking the geographical position of the target station closest to the current geographical position as a center and taking a first preset distance value (for example, 30m) as a radius, or the area range is a rectangular area formed by taking the geographical position of the target station closest to the current geographical position as a center, taking a second preset distance value (for example, 40m) as a long side and taking a third preset distance value (for example, 30m) as a short side, which is not limited in this alternative embodiment. The target station may include any one of a subway station, a bus station, and a scenic spot station, and the optional embodiment is not limited.
In this optional embodiment, the current service handling condition includes a total number of requests of all bluetooth identifier generation requests currently received by the background server and a condition of a trigger corresponding to each bluetooth identifier generation request. And the condition of the trigger corresponding to each Bluetooth identifier generation request comprises the geographical position condition of the trigger.
For example, when the user a is within the preset area range of the subway station M, the background server immediately performs the generation operation of the unique bluetooth identifier corresponding to the user a for the user a.
It can be seen that this alternative embodiment, upon receiving a user-triggered bluetooth identifier generation request, further determines the current geographic location of the user, when the current geographic position of the user is judged to be in the predetermined area range, the unique Bluetooth identification corresponding to the user is preferentially generated for the user, the unique Bluetooth identification can be generated for the user in time, thereby enabling the user to modify the bluetooth device identification of his mobile device to the unique bluetooth identification in time, and then, Bluetooth data transmission between the mobile equipment of the user and other equipment is facilitated (for example, the subway gate equipment is facilitated to identify the mobile equipment of the user, so that the facial features of the user are uploaded to the priority database in advance, and then the facial features of the user are directly matched from the priority database when the user enters the station, so that the station entering efficiency of the user is improved, and the experience of the user is improved.
In another optional embodiment, the method for generating a bluetooth identifier may further include the following steps:
when the current geographic position of a certain user is judged not to be in the region range, the background server judges whether the current condition of the certain user meets the predetermined priority processing condition;
and when the current condition of a certain user is judged to meet the predetermined priority processing condition, the background server triggers and executes the operation of generating the Bluetooth identifier to request to acquire the account information corresponding to the certain user.
In this optional embodiment, as an optional implementation manner, the determining, by the backend server, whether the current condition of a certain user meets a predetermined priority processing condition may include:
the method comprises the steps that a background server obtains a historical travel record of a certain user, and whether the travel times of the certain user exceed a predetermined travel time threshold (for example, 20 times) within a predetermined time period (for example, one week) is judged according to the historical travel record of the certain user;
when the trip times of a certain user in a predetermined time period are judged to exceed a predetermined trip time threshold, the background server determines that the current condition of the certain user meets a predetermined priority processing condition.
Therefore, in the optional embodiment, by acquiring the historical trip times of the user and comparing the historical trip times with the predetermined trip time threshold, it can be determined whether the current condition of the user meets the predetermined priority processing condition, and the determination efficiency is improved.
Therefore, when the current geographic position of the user is judged not to be in the predetermined area range, the optional embodiment further judges whether the current condition of the user meets the predetermined priority processing condition, and when the judgment result is yes, the unique Bluetooth identifier is preferentially generated for the user, so that the intelligent function of the background server can be enriched, and the experience of the user can be further improved.
102. The background server acquires account information corresponding to a certain user according to the Bluetooth identifier generation request, wherein the account information at least comprises a user identifier of the certain user.
In this embodiment of the present invention, the account information may further include at least one of contact information (for example, a mobile phone number) of a certain user, an account nickname, a login key (also referred to as a login key or a login password) of an account, and history information (for example, history riding record information), which is not limited in this embodiment of the present invention.
103. And the background server calculates the user identification based on the predetermined verification key to obtain a verification code corresponding to the user identification.
In yet another optional embodiment, before the background server calculates the user identifier based on the predetermined verification key and obtains the verification code corresponding to the user identifier, the bluetooth identifier generating method may further include the following steps:
the background server generates a unique identifier corresponding to the user identifier;
in this optional embodiment, as an optional implementation manner, the calculating, by the background server, the user identifier based on the predetermined verification key to obtain the verification code corresponding to the user identifier may include:
and the background server calculates the user identification and the unique identification based on the predetermined verification key to obtain a verification code corresponding to the user identification.
In this alternative embodiment, the user id has a corresponding serial number (e.g., 295#29 × 5), and the unique id generated to correspond to the user id may be the serial number +1, e.g., 295#29 × 51: .
Therefore, after the user identifier corresponding to the user is obtained, the unique identifier corresponding to the user identifier is further generated in the optional embodiment, and the uniqueness of the check code corresponding to the user identifier can be improved, so that the possibility of obtaining the unique bluetooth identifier is improved.
104. And the background server generates a Bluetooth identification from the predetermined Bluetooth identification, the user identification and the check code according to a predetermined generation rule, and outputs the Bluetooth identification to a certain user, so that the certain user modifies the Bluetooth equipment identification of the mobile equipment into the Bluetooth identification.
In the embodiment of the present invention, the way for the background server to output the bluetooth identifier to the user may include at least one of ways of sending the bluetooth identifier to an account of the user, sending the bluetooth identifier to a mobile phone of the user, and sending the bluetooth identifier to a mailbox of the user, and the like. Therefore, the Bluetooth identification is output to the user through multiple ways, the possibility that the user knows the Bluetooth identification can be improved, and the efficiency of modifying the Bluetooth equipment identification of the mobile equipment into the Bluetooth identification is improved. Further, the background server stores the Bluetooth identification in an account of a certain user. This facilitates the user to subsequently view the bluetooth identification.
In yet another alternative embodiment, after the step 103 is performed and before the step 104 is performed, the method for generating a bluetooth identity may further include the steps of:
the background server determines the characteristic parameters of a certain user, wherein the characteristic parameters at least comprise the facial characteristics of the certain user;
the background server generates a target random number based on the facial features, and performs encryption operation on the check code based on the target random number to obtain an encrypted check code;
in this optional embodiment, as an optional implementation manner, the generating, by the background server, the bluetooth identifier from the predetermined bluetooth identification identifier, the user identifier, and the check code according to the predetermined generation rule may include:
and the background server generates the Bluetooth identification by the predetermined Bluetooth identification, the user identification and the encrypted check code according to the predetermined generation rule.
In this optional embodiment, the background server generates the target random number based on the facial features, and specifically, the background server digitizes the facial features to obtain digitized facial feature parameters, and outputs the digitized facial feature parameters to the random number generation function to obtain the target random number.
In this alternative embodiment, the characteristic parameter may further include at least one of an iris parameter, a fingerprint parameter, a voiceprint parameter, and an identification (e.g., an identification number, etc.) of a certain user, which is not limited in this alternative embodiment.
In this optional embodiment, as an optional implementation manner, when the feature parameter is a facial feature of the certain user, the determining, by the background server, the feature parameter of the certain user may include:
the background server searches the facial feature data from the account of a certain user and takes the facial feature data as the facial features of the certain user.
Or, the background server determines the face image data of a certain user, and analyzes the face image data of the certain user based on an image processing algorithm to obtain the face feature of the certain user.
In this alternative embodiment, the facial image data of a certain user may be obtained from an account of a certain user, or may be shot in the field sent by a mobile device of the user, and this alternative embodiment is not limited.
Therefore, the optional implementation mode can acquire the characteristic parameters of the user through multiple ways, so that the flexibility of acquiring the characteristic parameters is improved, and the possibility of acquiring the characteristic parameters of the user is improved.
Therefore, in the optional embodiment, after the check code corresponding to the user identifier is obtained, the random number of the facial feature of the user is further obtained, and the subsequent operation of generating the unique bluetooth identifier is executed only by performing the encryption operation on the check code based on the random number, so that the uniqueness of the bluetooth identifier can be improved, and the safety and the reliability of the bluetooth identifier are improved.
In yet another optional embodiment, after the background server determines the characteristic parameter of a certain user, and after the background server generates a bluetooth identifier from the predetermined bluetooth identifier, the user identifier, and the check code according to the predetermined generation rule, the method for generating a bluetooth identifier may further include the following steps:
and the background server stores the corresponding relation between the characteristic parameters and the Bluetooth identifier.
In this optional embodiment, specifically, the background server establishes a correspondence between the characteristic parameter and the bluetooth identifier, and stores the correspondence.
Therefore, in the optional embodiment, after the unique bluetooth identifier corresponding to the user is generated and the characteristic parameter of the user is obtained, the corresponding relationship between the unique bluetooth identifier and the characteristic parameter is further stored, so that the unique bluetooth identifier of the user can be quickly found through the characteristic parameter of the user, the characteristic parameter of the user can also be quickly found through the unique bluetooth identifier of the user, the intelligent function of the background server is further improved, and the experience of the user is further improved.
In yet another optional embodiment, after the background server generates the bluetooth identifier by using the predetermined bluetooth identification identifier, the user identifier, and the check code according to the predetermined generation rule, and before the background server outputs the bluetooth identifier to a certain user, so that the certain user modifies the bluetooth device identifier of the mobile device corresponding to the certain user into the bluetooth identifier, the method for generating the bluetooth identifier may further include the following steps:
the background server acquires a Bluetooth device identifier of a mobile device corresponding to a certain user and a physical address of the mobile device, and performs encryption operation on the Bluetooth device identifier based on the Bluetooth device identifier of the mobile device and the physical address of the mobile device to obtain an encrypted Bluetooth device identifier;
in this optional embodiment, as an optional implementation manner, the outputting, by the background server, the bluetooth identifier to a certain user, so that the certain user modifies the bluetooth device identifier of the mobile device corresponding to the certain user to a bluetooth identifier, may include:
and the background server outputs the encrypted Bluetooth identification to a certain user so that the certain user modifies the Bluetooth equipment identification of the mobile equipment corresponding to the certain user into the encrypted Bluetooth identification.
Therefore, after the unique bluetooth identifier corresponding to the user is generated, the optional embodiment further performs the encryption operation on the unique bluetooth identifier based on the bluetooth device identifier of the mobile device and the physical address of the mobile device, and outputs the encrypted unique bluetooth identifier to the user, so that the complexity and the safety and reliability of the unique bluetooth identifier of the user can be further improved.
It can be seen that, by implementing the method for generating the bluetooth identifier described in fig. 1, the check code corresponding to the account information of the user can be generated through the determined check key, the unique bluetooth identifier corresponding to the user is generated based on the account information, the check code and the determined bluetooth identifier, and the bluetooth identifier is output, so that the user modifies the bluetooth device identifier of the mobile terminal into the unique bluetooth identifier, the identification rate of the bluetooth identifier of the mobile terminal can be improved, the accuracy, reliability and safety of bluetooth connection between the mobile terminals are improved, and the bluetooth transmission efficiency and accuracy between the mobile terminals are improved; and the unique Bluetooth identification is generated for the mobile terminal of the user, so that other equipment (such as subway gate equipment) can know the account information corresponding to the user quickly through the Bluetooth identification, and the locking accuracy of the user is improved.
Example two
Referring to fig. 2, fig. 2 is a flowchart illustrating another bluetooth identifier generating method according to an embodiment of the present invention. The method for generating the bluetooth identifier described in fig. 2 may be applied to a background server, where the background server is any background server of a mobile terminal with a bluetooth function. The Mobile terminal may include any one of a smart phone (an Android phone, an iOS phone, and the like), a smart phone watch, a tablet computer, a palm computer, and a Mobile Internet Device (MID), and the embodiments of the present invention are not limited thereto. As shown in fig. 2, the method for generating the bluetooth identifier may include the following steps:
201. the background server detects a Bluetooth identification generation request triggered by a certain user, and the Bluetooth identification generation request is used for requesting to generate a Bluetooth identification uniquely corresponding to the certain user.
202. And the background server determines the trigger time of the Bluetooth identifier generation request and generates a character string based on the prestored public key and the trigger time.
203. The background server obtains at least one dynamic factor, calculates a character string based on all the dynamic factors, obtains a target character string, and determines the target character string as a predetermined verification key.
In this embodiment of the present invention, it should be noted that step 204 may also occur before step 202 and/or step 203, or may occur simultaneously with step 202 and/or step 203, which is not limited in this embodiment of the present invention.
Therefore, the embodiment of the invention can generate the verification key according to the trigger time, the public key and the dynamic factor of the Bluetooth identifier generation request, and is beneficial to improving the generation complexity of the verification key, thereby improving the complexity of the Bluetooth identifier and further improving the safety and the reliability of the Bluetooth identifier.
Alternatively, the background server determines a predetermined verification key from a predetermined database, wherein the database stores a plurality of verification keys. Therefore, the verification key can be directly determined from the database, and the determination efficiency of the verification key can be improved.
204. The background server acquires account information corresponding to a certain user according to the Bluetooth identifier generation request, wherein the account information at least comprises a user identifier of the certain user.
205. And the background server obtains a check code corresponding to the user identifier based on the predetermined check key meter user identifier and the unique identifier.
206. And the background server generates a Bluetooth identification from the predetermined Bluetooth identification, the user identification and the check code according to a predetermined generation rule, and outputs the Bluetooth identification to a certain user, so that the certain user modifies the Bluetooth equipment identification of the mobile equipment into the Bluetooth identification.
In the embodiment of the present invention, please refer to the detailed description of steps 101 to 104 in the first embodiment for the related description of steps 201, 204 to 206, which is not repeated herein.
It can be seen that, by implementing the method for generating the bluetooth identifier described in fig. 2, the check code corresponding to the account information of the user can be generated through the determined check key, the unique bluetooth identifier corresponding to the user is generated based on the account information, the check code and the determined bluetooth identifier, and the bluetooth identifier is output, so that the user modifies the bluetooth device identifier of the mobile terminal into the unique bluetooth identifier, the identification rate of the bluetooth identifier of the mobile terminal can be improved, the accuracy, reliability and safety of bluetooth connection between the mobile terminals are improved, and the bluetooth transmission efficiency and accuracy between the mobile terminals are improved; the unique Bluetooth identifier is generated for the mobile terminal of the user, so that other equipment (such as subway gate equipment) can know account information corresponding to the user quickly through the Bluetooth identifier, the locking accuracy of the user is improved, the verification key can be generated according to the trigger time, the public key and the dynamic factor of the Bluetooth identifier generation request, the generation complexity of the verification key is improved, the complexity of the Bluetooth identifier is improved, the safety and the reliability of the Bluetooth identifier are improved, or the verification key can be directly determined from a database, and the determination efficiency of the verification key can be improved.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic structural diagram of a method for generating a bluetooth identifier according to an embodiment of the present invention. The apparatus for generating a bluetooth identifier described in fig. 3 may be applied to a background server, where the background server is any background server of a mobile terminal with a bluetooth function. The Mobile terminal may include any one of a smart phone (an Android phone, an iOS phone, and the like), a smart phone watch, a tablet computer, a palm computer, and a Mobile Internet Device (MID), and the embodiments of the present invention are not limited thereto. As shown in fig. 3, the generating apparatus of the bluetooth identifier may include a detecting module 301, an obtaining module 302, a calculating module 303, a generating module 304, and an outputting module 305, where:
the detecting module 301 is configured to detect a bluetooth identifier generation request triggered by a certain user, where the bluetooth identifier generation request is used to request generation of a bluetooth identifier uniquely corresponding to the certain user.
An obtaining module 302, configured to obtain account information corresponding to a certain user according to a bluetooth identifier generation request, where the account information at least includes a user identifier of the certain user.
The calculating module 303 is configured to calculate a user identifier based on a predetermined verification key, and obtain a verification code corresponding to the user identifier.
And the generating module 304 is configured to generate a bluetooth identifier from the predetermined bluetooth identification identifier, the user identifier, and the check code according to a predetermined generating rule.
An output module 305, configured to output the bluetooth identifier to a certain user, so that the certain user modifies the bluetooth device identifier of the mobile device into a bluetooth identifier.
It can be seen that, the apparatus for generating the bluetooth identifier described in fig. 3 can generate the check code corresponding to the account information of the user through the determined check key, generate the unique bluetooth identifier corresponding to the user based on the account information, the check code and the determined bluetooth identifier, and output the bluetooth identifier, so that the user modifies the bluetooth device identifier of the mobile terminal into the unique bluetooth identifier, and can improve the identification rate of the bluetooth identifier of the mobile terminal, thereby improving the accuracy, reliability and safety of the bluetooth connection between the mobile terminals, and further improving the bluetooth transmission efficiency and accuracy between the mobile terminals; and the unique Bluetooth identification is generated for the mobile terminal of the user, so that other equipment (such as subway gate equipment) can know the account information corresponding to the user quickly through the Bluetooth identification, and the locking accuracy of the user is improved.
In an alternative embodiment, as shown in fig. 3, the generating module 304 is further configured to generate a unique identifier corresponding to the user identifier before the calculating module 303 calculates the user identifier based on the predetermined check key to obtain the check code corresponding to the user identifier.
In this optional embodiment, the calculating module 303 calculates the user identifier based on the predetermined verification key, and the manner of obtaining the verification code corresponding to the user identifier is specifically as follows:
and calculating the user identification and the unique identification based on the predetermined verification key to obtain a verification code corresponding to the user identification.
Therefore, the generation device for implementing the bluetooth identifier described in fig. 3 can further generate the unique identifier corresponding to the user identifier after acquiring the user identifier corresponding to the user, and can improve the uniqueness of the check code corresponding to the user identifier, thereby being beneficial to improving the possibility of acquiring the unique bluetooth identifier.
In another optional embodiment, the apparatus for generating a bluetooth identifier may further include a first determining module 306 and a first encrypting module 307, at this time, a schematic structural diagram of the apparatus for generating a bluetooth identifier may be as shown in fig. 4, where fig. 4 is a schematic structural diagram of another apparatus for generating a bluetooth identifier, where:
the first determining module 306 is configured to determine a feature parameter of a certain user after the calculating module 303 calculates the user identifier based on the predetermined verification key to obtain the verification code corresponding to the user identifier, and before the generating module 304 generates the bluetooth identifier from the predetermined bluetooth identification identifier, the user identifier, and the verification code according to the predetermined generation rule, where the feature parameter at least includes a facial feature of the certain user.
The generating module 304 is further configured to generate a target random number based on the facial features.
The first encryption module 307 is configured to perform an encryption operation on the check code based on the target random number to obtain an encrypted check code.
In this optional embodiment, the manner and details of generating the bluetooth identifier by the generating module 304 according to the predetermined generating rule and using the predetermined bluetooth identifier, the user identifier, and the check code are as follows:
and generating the Bluetooth identification by the preset Bluetooth identification, the user identification and the encrypted check code according to the preset generation rule.
In this optional embodiment, the background server generates the target random number based on the facial features, and specifically, the background server digitizes the facial features to obtain digitized facial feature parameters, and outputs the digitized facial feature parameters to the random number generation function to obtain the target random number.
In this optional embodiment, as an optional implementation manner, when the feature parameter is a facial feature of the certain user, the manner of determining the feature parameter of the certain user by the first determining module 306 is specifically:
and searching the facial feature data from the account of a certain user, and taking the facial feature data as the facial features of the certain user.
Or determining the face image data of a certain user, and analyzing the face image data of the certain user based on an image processing algorithm to obtain the face feature of the certain user.
In this alternative embodiment, the facial image data of a certain user may be obtained from an account of a certain user, or may be shot in the field sent by a mobile device of the user, and this alternative embodiment is not limited.
Therefore, the optional implementation mode can acquire the characteristic parameters of the user through multiple ways, so that the flexibility of acquiring the characteristic parameters is improved, and the possibility of acquiring the characteristic parameters of the user is improved.
It can be seen that, by implementing the generating device of the bluetooth identifier described in fig. 4, after obtaining the check code corresponding to the user identifier, the random number of the facial feature of the user can be further obtained, and the subsequent operation of generating the unique bluetooth identifier is executed only by performing the encryption operation on the check code based on the random number, so that the uniqueness of the bluetooth identifier can be improved, and thus, the security and reliability of the bluetooth identifier can be improved.
In yet another alternative embodiment, as shown in fig. 4, the apparatus for generating a bluetooth identifier may further include a second determining module 308, where:
a second determining module 308, configured to determine a trigger time of the bluetooth identifier generation request.
The generating module 304 is further configured to generate a character string based on a pre-stored public key and a trigger time.
The obtaining module 302 is further configured to obtain at least one dynamic factor.
The calculating module 303 is further configured to calculate a character string based on all the dynamic factors to obtain a target character string.
The second determining module 308 is further configured to determine the target character string as a predetermined check code.
It can be seen that, the device for generating the bluetooth identifier described in fig. 4 can also generate the verification key according to the trigger time, the public key and the dynamic factor of the request for generating the bluetooth identifier, which is beneficial to improving the complexity of generating the verification key, thereby improving the complexity of the bluetooth identifier and further improving the security and reliability of the bluetooth identifier.
In yet another alternative embodiment, as shown in fig. 4, the apparatus for generating a bluetooth identifier may further include a second encryption module 309, where:
the obtaining module 302 is further configured to, after the generating module 304 generates the predetermined bluetooth identifier, the user identifier, and the check code according to the predetermined generating rule, and before the output module 305 outputs the bluetooth identifier to a certain user, so that the certain user modifies the bluetooth device identifier of the mobile device corresponding to the certain user into the bluetooth identifier, obtain the bluetooth device identifier of the mobile device corresponding to the certain user and a physical address of the mobile device.
The second encryption module 309 is configured to perform an encryption operation on the bluetooth identifier based on the bluetooth device identifier of the mobile device and the physical address of the mobile device, so as to obtain an encrypted bluetooth identifier.
The output module 305 outputs the bluetooth identifier to a certain user, so that the manner for modifying the bluetooth device identifier of the mobile device corresponding to the certain user into the bluetooth identifier by the certain user specifically includes:
and outputting the encrypted Bluetooth identifier to a certain user so that the certain user modifies the Bluetooth device identifier of the mobile device corresponding to the certain user into the encrypted Bluetooth identifier.
It can be seen that, the apparatus for generating the bluetooth identifier described in fig. 4 can further perform an encryption operation on the unique bluetooth identifier based on the bluetooth device identifier of the mobile device and the physical address of the mobile device after generating the unique bluetooth identifier corresponding to the user, and output the encrypted unique bluetooth identifier to the user, thereby further improving the complexity and the safety and reliability of the unique bluetooth identifier of the user.
In yet another optional embodiment, the apparatus for generating a bluetooth identifier may further include a storage module 310, where:
the storage module 310 is configured to, after the first determining module 306 determines the feature parameter of a certain user, and after the generating module 304 generates the bluetooth identifier by using the predetermined bluetooth identification identifier, the user identifier, and the check code according to the predetermined generating rule, store the corresponding relationship between the feature parameter and the bluetooth identifier.
It can be seen that, by implementing the generating device of the bluetooth identifier described in fig. 4, after generating the unique bluetooth identifier corresponding to the user and obtaining the characteristic parameter of the user, the corresponding relationship between the unique bluetooth identifier and the characteristic parameter can be further stored, so that the unique bluetooth identifier of the user can be quickly found through the characteristic parameter of the user, the characteristic parameter of the user can also be quickly found through the unique bluetooth identifier of the user, the intelligent function of the background server is further improved, and the experience of the user is further improved.
In yet another optional embodiment, as shown in fig. 4, the apparatus for generating a bluetooth identifier may further include a determining module 311, where:
the obtaining module 302 is further configured to obtain a current geographic location of a certain user.
The determining module 311 is configured to determine whether the current geographic location is within a predetermined area range, where the area range is formed by taking a geographic location where a target site closest to the current geographic location is located as a center.
In this optional embodiment, as an optional implementation manner, the manner in which the generating module 304 generates the request to obtain the account information corresponding to a certain user according to the bluetooth identifier is specifically as follows:
and when the current geographic position is judged to be in the area range, generating a request to acquire account information corresponding to a certain user according to the current service handling condition, the current geographic position and the Bluetooth identifier. That is, when the current geographic location of a certain user is determined to be within the area range, the background server preferentially responds to the bluetooth identifier generation request of the certain user, that is, when the current geographic location of the certain user is determined to be within the area range, the background server preferentially generates a unique bluetooth identifier for the certain user.
In this alternative embodiment, the area range is an area range formed by centering on the geographical position where the target station closest to the current geographical position is located. Specifically, the area range is a circular area formed by taking the geographical position of the target station closest to the current geographical position as a center of a circle and taking the first preset distance value as a radius, or the area range is a rectangular area formed by taking the geographical position of the target station closest to the current geographical position as a center, taking the second preset distance value as a long side and taking the third preset distance value as a short side, which is not limited in the optional embodiment. The target station may include any one of a subway station, a bus station, and a scenic spot station, and the optional embodiment is not limited.
In this optional embodiment, the current service handling condition includes a total number of requests of all bluetooth identifier generation requests currently received by the background server and a condition of a trigger corresponding to each bluetooth identifier generation request. And the condition of the trigger corresponding to each Bluetooth identifier generation request comprises the geographical position condition of the trigger.
It can be seen that, the apparatus for generating a bluetooth identifier described in fig. 4 can further determine the current geographic location of the user when receiving a bluetooth identifier generation request triggered by the user, and preferentially generate a unique bluetooth identifier corresponding to the user when determining that the current geographic location of the user is within the predetermined area range, and can generate the unique bluetooth identifier for the user in time, so that the user can modify the bluetooth device identifier of the mobile device of the user into the unique bluetooth identifier in time, thereby facilitating the bluetooth data transmission between the mobile device of the user and other devices (for example, facilitating the subway gate device to identify the mobile device of the user, thereby uploading the facial features of the user to a priority database in advance, and further directly matching the facial features of the user from the priority database when the user arrives at the station, which is beneficial to improving the station-entering efficiency of the user), the experience of the user is favorably improved.
In yet another alternative embodiment, as shown in fig. 4, the determining module 311 is further configured to determine whether the current condition of a certain user meets a predetermined priority condition when it is determined that the current geographic location of the certain user is not within the area range, and trigger the obtaining module 302 to perform the operation of requesting to obtain the account information corresponding to the certain user by generating the bluetooth identifier when it is determined that the current condition of the certain user meets the predetermined priority condition.
In this optional embodiment, as an optional implementation manner, the manner for the determining module 311 to determine whether the current condition of a certain user meets the predetermined priority processing condition is specifically:
acquiring a historical travel record of a certain user, and judging whether the travel times of the certain user in a predetermined time period exceed a predetermined travel time threshold or not according to the historical travel record of the certain user;
and when the trip times of a certain user in the predetermined time period are judged to exceed the predetermined trip time threshold, determining that the current condition of the certain user meets the predetermined priority processing condition.
Therefore, in the optional embodiment, by acquiring the historical trip times of the user and comparing the historical trip times with the predetermined trip time threshold, it can be determined whether the current condition of the user meets the predetermined priority processing condition, and the determination efficiency is improved.
It can be seen that, by implementing the bluetooth identifier generating device described in fig. 4, when it is determined that the current geographic location of the user is not within the predetermined area range, it can be further determined whether the current condition of the user meets the predetermined priority processing condition, and when the determination result is yes, a unique bluetooth identifier is preferentially generated for the user, so that the intelligent function of the background server can be enriched, and the experience of the user can be further improved.
Example four
Referring to fig. 5, fig. 5 is a schematic diagram illustrating another bluetooth identifier generating apparatus according to an embodiment of the present invention. As shown in fig. 5, the generating means of the bluetooth identifier may include:
a memory 501 in which executable program code is stored;
a processor 502 coupled to a memory 501;
the processor 502 calls the executable program code stored in the memory 501 for executing the operation of the method for generating a bluetooth identity described in the first embodiment or the second embodiment.
EXAMPLE five
The embodiment of the invention discloses a computer-readable storage medium which stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the operation of the method for generating the bluetooth identifier described in the first embodiment or the second embodiment.
EXAMPLE six
An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the operations of the method for generating a bluetooth identifier described in the first or second embodiment.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above detailed description of the embodiments, those skilled in the art will clearly understand that the embodiments may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. Based on such understanding, the above technical solutions may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, wherein the storage medium includes a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an Electrically Erasable rewritable Read-Only Memory (EEPROM), a compact disc-Read-Only Memory (CD-ROM) or other magnetic disk memories, a magnetic tape Memory, a magnetic disk, a magnetic tape Memory, a magnetic tape, and a magnetic tape, Or any other medium which can be used to carry or store data and which can be read by a computer.
Finally, it should be noted that: the method and apparatus for generating bluetooth identifier disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, and are only used for illustrating the technical solutions of the present invention, rather than limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art; the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for generating a Bluetooth identifier is applied to a background server, and comprises the following steps:
the background server detects a Bluetooth identification generation request triggered by a certain user, wherein the Bluetooth identification generation request is used for requesting to generate a Bluetooth identification uniquely corresponding to the certain user;
the background server acquires account information corresponding to the certain user according to the Bluetooth identifier generation request, wherein the account information at least comprises a user identifier of the certain user;
the background server calculates the user identification based on a predetermined verification key to obtain a verification code corresponding to the user identification;
and the background server generates the Bluetooth identification from the predetermined Bluetooth identification, the user identification and the check code according to a predetermined generation rule, and outputs the Bluetooth identification to the certain user, so that the certain user modifies the Bluetooth equipment identification of the mobile equipment corresponding to the certain user into the Bluetooth identification.
2. The method for generating a bluetooth identifier according to claim 1, wherein the background server calculates the user identifier based on a predetermined verification key, and before obtaining a verification code corresponding to the user identifier, the method further comprises:
the background server generates a unique identifier corresponding to the user identifier;
the method for calculating the user identifier by the background server based on the predetermined verification key to obtain the verification code corresponding to the user identifier includes:
and the background server calculates the user identification and the unique identification based on a predetermined verification key to obtain a verification code corresponding to the user identification.
3. The method according to claim 1 or 2, wherein the background server calculates the user identifier based on a predetermined verification key, and after obtaining a verification code corresponding to the user identifier, and before the background server generates the bluetooth identifier from the predetermined bluetooth identifier, the user identifier, and the verification code according to a predetermined generation rule, the method further comprises:
the background server determines characteristic parameters of the certain user, wherein the characteristic parameters at least comprise facial characteristics of the certain user;
the background server generates a target random number based on the facial features, and performs encryption operation on the check code based on the target random number to obtain an encrypted check code;
the background server generates the bluetooth identifier from the predetermined bluetooth identification identifier, the user identifier and the check code according to the predetermined generation rule, and the method includes:
and the background server generates the Bluetooth identification from the predetermined Bluetooth identification, the user identification and the encrypted check code according to a predetermined generation rule.
4. A method for generating a bluetooth identity according to any of claims 1-3, characterized in that the method further comprises:
the background server determines the trigger time of the Bluetooth identifier generation request and generates a character string based on a public key stored in advance and the trigger time;
the background server obtains at least one dynamic factor, calculates the character string based on all the dynamic factors to obtain a target character string, and determines the target character string as a predetermined verification key.
5. The method as claimed in any one of claims 1 to 4, wherein after the background server generates the bluetooth identifier from the predetermined bluetooth identifier, the user identifier and the check code according to the predetermined generation rule, and before the background server outputs the bluetooth identifier to the certain user, so that the certain user modifies the bluetooth device identifier of the mobile device corresponding to the certain user into the bluetooth identifier, the method further comprises:
the background server acquires a Bluetooth device identifier of a mobile device corresponding to a certain user and a physical address of the mobile device, and performs encryption operation on the Bluetooth device identifier based on the Bluetooth device identifier of the mobile device and the physical address of the mobile device to obtain an encrypted Bluetooth device identifier;
wherein, the background server outputs the bluetooth identifier to the certain user, so that the certain user modifies the bluetooth device identifier of the mobile device corresponding to the certain user into the bluetooth identifier, including:
and the background server outputs the encrypted Bluetooth identification to the certain user so that the certain user modifies the Bluetooth equipment identification of the mobile equipment corresponding to the certain user into the encrypted Bluetooth identification.
6. A generating device of Bluetooth identifiers is applied to a background server, and comprises:
the device comprises a detection module, a processing module and a control module, wherein the detection module is used for detecting a Bluetooth identification generation request triggered by a certain user, and the Bluetooth identification generation request is used for requesting to generate a Bluetooth identification uniquely corresponding to the certain user;
an obtaining module, configured to obtain account information corresponding to the certain user according to the bluetooth identifier generation request, where the account information at least includes a user identifier of the certain user;
the calculation module is used for calculating the user identification based on a predetermined verification key to obtain a verification code corresponding to the user identification;
the generating module is used for generating the Bluetooth identification from the predetermined Bluetooth identification, the user identification and the check code according to the predetermined generating rule;
and the output module is used for outputting the Bluetooth identifier to the certain user so that the certain user modifies the Bluetooth device identifier of the mobile device corresponding to the certain user into the Bluetooth identifier.
7. The apparatus according to claim 6, wherein the generating module is further configured to generate a unique identifier corresponding to the user identifier before the calculating module calculates the user identifier based on a predetermined verification key to obtain a verification code corresponding to the user identifier;
the calculation module calculates the user identifier based on a predetermined verification key, and the method for obtaining the verification code corresponding to the user identifier specifically comprises the following steps:
and calculating the user identification and the unique identification based on the predetermined verification key to obtain a verification code corresponding to the user identification.
8. The apparatus for generating bluetooth identity according to claim 6 or 7, wherein the apparatus for generating bluetooth identity further comprises:
the first determining module is used for determining the characteristic parameters of the certain user after the calculating module calculates the user identifier based on a predetermined verification key to obtain a verification code corresponding to the user identifier and before the generating module generates the bluetooth identifier from the predetermined bluetooth identification identifier, the user identifier and the verification code according to a predetermined generating rule, wherein the characteristic parameters at least comprise the facial features of the certain user;
the generation module is further used for generating a target random number based on the facial features;
the first encryption module is used for carrying out encryption operation on the check code based on the target random number to obtain an encrypted check code;
the method for generating the bluetooth identifier by the generation module according to the predetermined generation rule by using the predetermined bluetooth identification identifier, the user identifier and the check code specifically comprises the following steps:
and generating the Bluetooth identification by the predetermined Bluetooth identification, the user identification and the encrypted check code according to a predetermined generation rule.
9. The apparatus for generating bluetooth identity according to any of claims 6-8, wherein the apparatus for generating bluetooth identity further comprises:
the second determining module is used for determining the trigger time of the Bluetooth identifier generation request;
the generating module is further used for generating a character string based on a public key stored in advance and the trigger time;
the acquisition module is further used for acquiring at least one dynamic factor;
the calculation module is further configured to calculate the character string based on all the dynamic factors to obtain a target character string;
the second determining module is further configured to determine the target character string as a predetermined verification key.
10. The apparatus for generating a bluetooth identifier according to any one of claims 6 to 9, wherein the obtaining module is further configured to obtain the bluetooth device identifier of the mobile device corresponding to the certain user and the physical address of the mobile device before the generating module generates the bluetooth identifier according to a predetermined generation rule, the predetermined bluetooth identification identifier, the user identifier, and the check code, and the output module outputs the bluetooth identifier to the certain user, so that the certain user modifies the bluetooth device identifier of the mobile device corresponding to the certain user to the bluetooth identifier;
and, the apparatus further comprises:
the second encryption module is used for performing encryption operation on the Bluetooth identifier based on the Bluetooth device identifier of the mobile device and the physical address of the mobile device to obtain an encrypted Bluetooth identifier;
the output module outputs the bluetooth identifier to the certain user, so that the manner for the certain user to modify the bluetooth device identifier of the mobile device corresponding to the certain user into the bluetooth identifier specifically includes:
and outputting the encrypted Bluetooth identification to the certain user so that the certain user modifies the Bluetooth equipment identification of the mobile equipment corresponding to the certain user into the encrypted Bluetooth identification.
CN202010123345.1A 2020-02-27 2020-02-27 Bluetooth identifier generation method and device Active CN111343297B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010123345.1A CN111343297B (en) 2020-02-27 2020-02-27 Bluetooth identifier generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010123345.1A CN111343297B (en) 2020-02-27 2020-02-27 Bluetooth identifier generation method and device

Publications (2)

Publication Number Publication Date
CN111343297A true CN111343297A (en) 2020-06-26
CN111343297B CN111343297B (en) 2023-01-24

Family

ID=71187138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010123345.1A Active CN111343297B (en) 2020-02-27 2020-02-27 Bluetooth identifier generation method and device

Country Status (1)

Country Link
CN (1) CN111343297B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160073218A1 (en) * 2014-09-04 2016-03-10 Quanta Computer Inc. Method and system for establishing a bluetooth connection
CN106792493A (en) * 2017-03-09 2017-05-31 北京小米移动软件有限公司 The matching method of bluetooth equipment, device and bluetooth equipment
US20170346919A1 (en) * 2016-05-27 2017-11-30 UBTECH Robotics Corp. Bluetooth device and bluetooth device name managing method
CN110406414A (en) * 2019-07-30 2019-11-05 广州小鹏汽车科技有限公司 Vehicular charging method, mobile terminal and server based on household charging pile

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160073218A1 (en) * 2014-09-04 2016-03-10 Quanta Computer Inc. Method and system for establishing a bluetooth connection
US20170346919A1 (en) * 2016-05-27 2017-11-30 UBTECH Robotics Corp. Bluetooth device and bluetooth device name managing method
CN106792493A (en) * 2017-03-09 2017-05-31 北京小米移动软件有限公司 The matching method of bluetooth equipment, device and bluetooth equipment
CN110406414A (en) * 2019-07-30 2019-11-05 广州小鹏汽车科技有限公司 Vehicular charging method, mobile terminal and server based on household charging pile

Also Published As

Publication number Publication date
CN111343297B (en) 2023-01-24

Similar Documents

Publication Publication Date Title
US11038879B2 (en) Identity authentication method and apparatus, and user equipment
US11508382B2 (en) System, device and method for enforcing privacy during a communication session with a voice assistant
US11651100B2 (en) System, device and method for enforcing privacy during a communication session with a voice assistant
CN105468950B (en) Identity authentication method and device, terminal and server
CN109644183B (en) Remote use of locally stored biometric authentication data
CN110178179B (en) Voice signature for authenticating to electronic device users
CN108055238B (en) Account verification method and system
CN105553928B (en) Communication method, device and system based on biological feature recognition
CN106453205B (en) identity verification method and device
CN107491674B (en) Method and device for user authentication based on characteristic information
CN110874541A (en) Electronic ticket entrance verification anti-counterfeiting system and method
CN109523672B (en) Access control method and device
CN111883140A (en) Authentication method, device, equipment and medium based on knowledge graph and voiceprint recognition
CN111356081B (en) Bluetooth starting control method and device
CN106470192B (en) Identity verification method, device and system
CA3007707C (en) System, device and method for enforcing privacy during a communication session with a voice assistant
CN113068178A (en) Terminal authentication method and server
CN111343297B (en) Bluetooth identifier generation method and device
CN108766442B (en) Identity authentication method and device based on voiceprint graphic identification
CN111104629B (en) Verification method and device of dynamic two-dimensional code
CN115442113A (en) Identity authentication method, electronic equipment and readable storage medium
CN106886724B (en) Multi-dimensional unlocking method for user equipment and user equipment
JP6349062B2 (en) Authentication system, client terminal, authentication server, terminal program, and server program
CN107423604B (en) Application control method and related product
CN111414601A (en) Continuous identity authentication method, system and medium for kylin mobile operating system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant