CN113068160B - Vehicle unlocking method, terminal and storage medium - Google Patents

Vehicle unlocking method, terminal and storage medium Download PDF

Info

Publication number
CN113068160B
CN113068160B CN201911284308.2A CN201911284308A CN113068160B CN 113068160 B CN113068160 B CN 113068160B CN 201911284308 A CN201911284308 A CN 201911284308A CN 113068160 B CN113068160 B CN 113068160B
Authority
CN
China
Prior art keywords
threshold
unlocking
terminal
rssi
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911284308.2A
Other languages
Chinese (zh)
Other versions
CN113068160A (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.)
Ninebot Beijing Technology Co Ltd
Original Assignee
Ninebot Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ninebot Beijing Technology Co Ltd filed Critical Ninebot Beijing Technology Co Ltd
Priority to CN201911284308.2A priority Critical patent/CN113068160B/en
Publication of CN113068160A publication Critical patent/CN113068160A/en
Application granted granted Critical
Publication of CN113068160B publication Critical patent/CN113068160B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00896Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/10Scheduling measurement reports ; Arrangements for measurement reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Electromagnetism (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The embodiment of the application provides a vehicle unlocking method, a terminal and a storage medium, wherein the terminal is provided with a first Bluetooth module, the terminal can establish communication connection with a second Bluetooth module of a vehicle through the first Bluetooth module, and the method comprises the following steps: after the unlocking operation is obtained, detecting a Received Signal Strength Indication (RSSI) value of the second Bluetooth module by using the first Bluetooth module; comparing the RSSI value with an unlocking threshold value, and if the RSSI value is greater than or equal to the unlocking threshold value, sending an unlocking instruction to the second Bluetooth module; the unlocking instruction is used for unlocking the vehicle, and the unlocking threshold value is determined according to the number of RSSI data.

Description

Vehicle unlocking method, terminal and storage medium
Technical Field
The present application relates to the field of information processing technologies, and in particular, to a vehicle unlocking method, a terminal, and a storage medium.
Background
At present, a mode for unlocking a vehicle by a terminal by using a bluetooth technology generally includes that a bluetooth module is arranged at a certain position of the vehicle, the distance between the terminal and the bluetooth module is judged according to the change of the signal intensity of the bluetooth module, and then whether the terminal meets an unlocking condition is judged according to the distance between the terminal and the bluetooth module. However, since the RSSI (Received Signal Strength Indication) value of the bluetooth module is greatly influenced by the distance and the obstacle, even if the same terminal and the vehicle are located at the same position for bluetooth connection, the RSSI value is influenced by the position of the terminal (for example, the user holds the terminal in his hand, puts the terminal in a bag, or in a pocket). Therefore, the same terminal and the same vehicle are in equidistant positions, and when the bluetooth connection is performed for multiple times, the RSSI value fluctuates within a certain range due to different positions of the terminal, so that setting a fixed unlocking condition may be difficult to adapt to different unlocking scenes.
Disclosure of Invention
In view of this, embodiments of the present application provide a vehicle unlocking method, a terminal and a storage medium to solve at least one problem in the prior art.
In order to achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a vehicle unlocking method, which is applied to a terminal, where the terminal has a first bluetooth module, and the terminal can establish a communication connection with a second bluetooth module of a vehicle through the first bluetooth module, and the method includes:
after the unlocking operation is obtained, the RSSI value of the second Bluetooth module is detected by the first Bluetooth module;
comparing the RSSI value with an unlocking threshold value, and if the RSSI value is greater than or equal to the unlocking threshold value, sending an unlocking instruction to the second Bluetooth module; the unlocking instruction is used for unlocking the vehicle; the unlock threshold is determined based on the amount of RSSI data.
In an optional embodiment, the method further comprises:
judging whether the quantity of the local RSSI data is greater than or equal to a quantity threshold value or not;
if the number of the local RSSI data is larger than or equal to the number threshold, setting an experience threshold as the unlocking threshold;
and if the number of the local RSSI data is smaller than the number threshold, setting a default threshold as the unlocking threshold.
In an alternative embodiment of the method according to the invention,
determining the experience threshold according to the data value distribution condition of the local RSSI data; or,
and receiving an experience threshold value which is sent by the cloud and updated based on the data value distribution condition of the historical RSSI data.
In an optional implementation manner, an updated default threshold value of the data value distribution based on the historical RSSI data sent by the cloud is received.
In an optional implementation manner, the receiving the updated experience threshold based on the data value distribution of the historical RSSI data sent by the cloud includes:
whether a timestamp of a local experience threshold is beyond a validity period or not is checked, if the timestamp of the local experience threshold is beyond the validity period, a first request message is sent to a cloud end, and the first request message is used for requesting the cloud end to update the experience threshold; and receiving an experience threshold value which is sent by the cloud and updated based on the data value distribution condition of the historical RSSI data, and storing the experience threshold value to the local.
In an optional implementation manner, the receiving the updated default threshold based on the data value distribution of the historical RSSI data sent by the cloud includes:
checking whether the local experience threshold is an initial threshold, if so, checking whether a timestamp of a local default threshold is beyond a valid period, and if so, sending a second request message to a cloud terminal, wherein the second request message is used for requesting the cloud terminal to update the default threshold; and receiving the updated default threshold value of the data value distribution condition based on the historical RSSI data sent by the cloud and storing the updated default threshold value to the local.
In an optional implementation manner, after the detecting, by the first bluetooth module, the RSSI value of the second bluetooth module, the method further includes:
locally storing a piece of RSSI data, said RSSI data comprising said RSSI values and at least one of the following information: terminal information, vehicle information, a timestamp.
In an optional embodiment, the method further comprises:
judging whether the time between the current time and the last time of uploading the RSSI data exceeds a time threshold value or not;
and if the time between the current time and the last RSSI data uploading time exceeds the time threshold, uploading local RSSI data to the cloud, and locally recording the time of uploading the RSSI data.
In an optional implementation manner, the uploading local RSSI data to the cloud includes:
determining a variation of locally stored RSSI data;
and uploading the variable quantity of the locally stored RSSI data to a cloud terminal.
In a second aspect, an embodiment of the present application provides a terminal, where the terminal has a first bluetooth module, and the terminal can establish a communication connection with a second bluetooth module of a vehicle through the first bluetooth module, and the terminal includes:
the first Bluetooth module is used for detecting a Received Signal Strength Indicator (RSSI) value of the second Bluetooth module by utilizing the first Bluetooth module after the unlocking operation is obtained;
the unlocking module is used for comparing the RSSI value with an unlocking threshold value, and if the RSSI value is greater than or equal to the unlocking threshold value, an unlocking instruction is sent to the second Bluetooth module; the unlocking instruction is used for unlocking the vehicle; the unlock threshold is determined based on the amount of RSSI data.
In an optional implementation manner, the terminal further includes:
a threshold determination module, configured to determine whether the number of local RSSI data is greater than or equal to a number threshold;
if the number of the local RSSI data is larger than or equal to the number threshold, setting an experience threshold as the unlocking threshold;
and if the number of the local RSSI data is smaller than the number threshold, setting a default threshold as the unlocking threshold.
In an optional implementation manner, the terminal further includes:
the updating module is used for determining the experience threshold according to the data value distribution condition of the local RSSI data; or,
and receiving an experience threshold value which is sent by the cloud and updated based on the data value distribution condition of the historical RSSI data.
In an optional implementation manner, the terminal further includes:
and the updating module is used for receiving the updated default threshold value of the data value distribution condition based on the historical RSSI data sent by the cloud.
In an optional implementation manner, the update module is specifically configured to check whether a timestamp of a local experience threshold is outside a valid period, and if the timestamp of the local experience threshold is outside the valid period, send a first request message to a cloud, where the first request message is used to request the cloud to update the experience threshold; and receiving an experience threshold value which is sent by the cloud and updated based on the data value distribution condition of the historical RSSI data, and storing the experience threshold value to the local.
In an optional implementation manner, the update module is specifically configured to check whether the local experience threshold is an initial threshold, if the local experience threshold is the initial threshold, check whether a timestamp of a local default threshold is outside a valid period, and if the timestamp of the local default threshold is outside the valid period, send a second request message to a cloud, where the second request message is used to request the cloud to update the default threshold; and receiving the updated default threshold value of the data value distribution condition based on the historical RSSI data sent by the cloud and storing the updated default threshold value to the local.
In an optional implementation manner, the terminal further includes:
a storage module, configured to locally store a piece of RSSI data, where the RSSI data includes the RSSI value and at least one of the following information: terminal information, vehicle information, a timestamp.
In an optional implementation manner, the terminal further includes:
the uploading module is used for judging whether the time between the current time and the last time of uploading the RSSI data exceeds a time threshold value;
and if the time between the current time and the last RSSI data uploading time exceeds the time threshold, uploading local RSSI data to the cloud, and locally recording the time of uploading the RSSI data.
In an optional embodiment, the uploading module is further configured to determine a variation of locally stored RSSI data;
and uploading the variable quantity of the locally stored RSSI data to a cloud terminal.
In a third aspect, an embodiment of the present application provides a terminal, where the terminal includes:
the network interface is used for realizing connection communication among the components;
a memory for storing executable instructions;
a processor configured to implement the vehicle unlocking method of the first aspect when executing the executable instructions stored in the memory.
In a fourth aspect, an embodiment of the present application provides a storage medium storing a computer program, which when executed by at least one processor implements the vehicle unlocking method of the first aspect.
The embodiment of the application provides a vehicle unlocking method, a terminal and a storage medium, which are applied to the terminal, wherein the terminal is provided with a first Bluetooth module, the terminal can establish communication connection with a second Bluetooth module of a vehicle through the first Bluetooth module, and the method comprises the following steps: after the unlocking operation is obtained, detecting a Received Signal Strength Indicator (RSSI) value of the second Bluetooth module by using the first Bluetooth module; comparing the RSSI value with an unlocking threshold value, and if the RSSI value is greater than or equal to the unlocking threshold value, sending an unlocking instruction to the second Bluetooth module; the unlocking instruction is used for unlocking the vehicle, and the unlocking threshold value is determined according to the number of RSSI data. In the embodiment of the application, different unlocking thresholds are dynamically selected, so that the unlocking success rate is continuously improved.
Drawings
Fig. 1 is a schematic network architecture diagram of a vehicle unlocking system according to an embodiment of the present disclosure;
fig. 2 is a first flowchart illustrating a vehicle unlocking method according to an embodiment of the present application;
fig. 3 is a second flowchart illustrating a vehicle unlocking method according to an embodiment of the present application;
fig. 4 is a third schematic flowchart of a vehicle unlocking method provided in the embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 6 is a schematic diagram of a specific hardware structure of a terminal according to an embodiment of the present application.
Detailed Description
So that the manner in which the features and elements of the present embodiments can be understood in detail, a more particular description of the embodiments, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
The technical scheme of the embodiment of the application can be applied to various terminals, such as mobile phones, tablet computers, wearable devices, notebooks and the like. The terminal of the embodiment of the application can unlock the vehicle, wherein the type of the vehicle is not limited, and the vehicle can be a bicycle, a scooter, a balance car, an automobile and the like. As shown in fig. 1, the communication between the vehicle and the terminal may be via bluetooth. Wherein, in order to realize bluetooth communication, need to set up first bluetooth module on the terminal, need set up second bluetooth module on the vehicle. The terminal can realize the communication with the second Bluetooth module on the vehicle through the first Bluetooth module. Fig. 1 illustrates one-to-one communication (i.e., one terminal communicates with one vehicle) as an example, but is not limited thereto, and one terminal may communicate with a plurality of vehicles at the same time.
Fig. 2 is a first schematic flow chart of a vehicle unlocking method provided in an embodiment of the present application, where the vehicle unlocking method is applied to a terminal, the terminal has a first bluetooth module, and the terminal can establish a communication connection with a second bluetooth module of a vehicle through the first bluetooth module, as shown in fig. 2, the vehicle unlocking method according to the embodiment of the present application includes:
step 201: and after the unlocking operation is obtained, the RSSI value of the second Bluetooth module is detected by utilizing the first Bluetooth module.
In the embodiment of the application, after the terminal obtains the unlocking operation, the RSSI value of the second Bluetooth module of the vehicle is detected by using the first Bluetooth module. In practical application, a starting switch can be arranged on the vehicle, and when a user wants to unlock the vehicle, the unlocking operation information can be sent to the terminal by touching the starting switch. It should be noted that the terminal may be a mobile phone, a tablet computer, or a wearable device. The terminal is provided with a first Bluetooth module and can establish communication connection with a second Bluetooth module of the vehicle through the first Bluetooth module so as to realize vehicle unlocking through a Bluetooth technology.
In the embodiment of the application, after the terminal establishes communication connection with the second bluetooth module of the vehicle through the first bluetooth module, the RSSI value of the second bluetooth module can be detected. Here, the second bluetooth module of the vehicle may transmit a bluetooth signal in a unicast manner or a broadcast manner, and the first bluetooth module of the terminal detects a signal strength value of the bluetooth signal, wherein the signal strength value of the bluetooth signal may be characterized by an RSSI value. It should be noted that, in the embodiment of the present application, the signal strength value of the bluetooth signal sent by the second bluetooth module, which is detected by the first bluetooth module, is referred to as the RSSI value of the second bluetooth module.
Step 202: comparing the RSSI value with an unlocking threshold value, and if the RSSI value is greater than or equal to the unlocking threshold value, sending an unlocking instruction to the second Bluetooth module; the unlocking instruction is used for unlocking the vehicle, and the unlocking threshold value is determined according to the number of RSSI data.
In general, the closer the distance between the bluetooth module and the terminal is, the larger the RSSI value is, so that the positional relationship between the terminal and the vehicle can be determined from the RSSI value. However, since the RSSI value of the bluetooth module is greatly affected by the distance and the obstacle, even if the same terminal and vehicle are located at the same position for bluetooth connection, the RSSI value is affected by the position of the terminal (for example, the user holds the terminal in his hand, puts the terminal in a bag, or in a pocket). Therefore, the same terminal and the same vehicle are in equidistant positions, and when the bluetooth connection is performed for multiple times, the RSSI value fluctuates within a certain range due to different positions where the terminals are placed, so that a fixed unlocking threshold value may be difficult to adapt to different unlocking scenes.
In the embodiment of the application, the terminal acquires the number of local RSSI data stored locally and judges whether the number of the local RSSI data is greater than or equal to a number threshold value or not; if the number of the local RSSI data is larger than or equal to the number threshold, setting an experience threshold as the unlocking threshold; and if the number of the local RSSI data is smaller than the number threshold, setting a default threshold as the unlocking threshold. The empirical threshold may be calculated according to the local RSSI data, or determined according to a data value distribution of the local RSSI data; or the terminal receives the experience threshold value which is sent by the cloud and updated based on the data value distribution condition of the historical RSSI data. The default threshold is the default threshold after the terminal receives the data value distribution condition which is sent by the cloud and is updated based on the historical RSSI data. It should be noted that the default threshold may be obtained based on test data of the worker, for example, the default threshold may be a threshold preset at the terminal and the cloud based on a large number of manual tests performed by the worker in the early stage. The default threshold may also be a threshold calculated based on previous manual test data of a worker and historical RSSI data of the cloud when the amount of historical RSSI data of the cloud is not enough to calculate the empirical threshold. The experience threshold is divided into a local calculated experience threshold and a cloud calculated experience threshold, the local calculated experience threshold may be calculated by the terminal according to local RSSI data, and the cloud calculated experience threshold may be obtained by the cloud according to actual use data of other users, for example, the cloud calculated experience threshold may be calculated by historical RSSI data of other users during actual use. The local RSSI data are local historical unlocking RSSI data of the terminal used by the user, and the historical RSSI data of the cloud are historical unlocking RSSI data of all terminals and vehicles which are stored on the cloud and have the same model as the terminal and vehicle used by the user.
In the embodiment of the application, the unlocking threshold is determined according to the number of the RSSI data, when the number of the local RSSI data stored locally reaches the number threshold, the terminal determines an experience threshold according to the data value distribution condition of the local RSSI data, and the experience threshold is used as the unlocking threshold; when the number of the local RSSI data stored locally does not reach the number threshold, the terminal requests the cloud to obtain the updated experience threshold, that is, when the number of the local RSSI data is insufficient, the experience threshold determined based on the data value distribution condition of the historical RSSI data of the cloud is used as the unlocking threshold. Furthermore, when the number of the historical RSSI data in the cloud does not reach the number threshold, the terminal enables a default threshold as an unlocking threshold. It should be noted that the local RSSI data stored locally are historical unlocking data of the terminal itself, that is, the local RSSI data stored locally is the data most related to the unlocking state and rule of the terminal, the experience threshold determined based on the data value distribution condition of the local RSSI data stored locally is the most capable of representing the unlocking state and rule of the terminal, and the unlocking operation is performed based on the experience threshold determined based on the data value distribution condition of the local RSSI data, so that the unlocking accuracy can be ensured to a great extent, and the unlocking success rate can be greatly improved. For example, if the number threshold is 100, and the number of the local RSSI data is greater than or equal to 100, the terminal may determine an empirical threshold according to a data value distribution of the local RSSI data, and if the distribution of the 100 local RSSI data is: 80% of the RSSI data are distributed below the unlocking threshold, and only 20% of the RSSI data are distributed above the unlocking threshold, so that the unlocking success rate of the terminal is very low (the reason for this may be that the RSSI data of the terminal is lower than the RSSI data of the same type of terminal, or the RSSI data of the terminal is lower due to the hardware aging of the terminal, or the RSSI data of the terminal is lower due to the use habit of the user), and the terminal adjusts the unlocking threshold based on the distribution condition of the 100 pieces of local RSSI data, and lowers the unlocking threshold (it should be noted that the adjustment may also be to recalculate the unlocking threshold in a preset calculation manner), so that the unlocking threshold is more adapted to the RSSI data of the terminal, thereby improving the unlocking success rate and improving the user experience. The experience threshold value updated by the cloud end is determined according to the data value distribution condition of the RSSI data which is the same as the terminal type in the historical RSSI data of the cloud end and is the same as the unlocking vehicle type, although the historical RSSI data of the cloud end which is the same as the terminal type and is the unlocking vehicle type is selected, compared with the historical unlocking data of the terminal, the historical unlocking data of the cloud end is only the data which is secondarily related to the terminal, compared with the default threshold value which is preset in the terminal and the cloud end by workers through a large number of manual tests in the early period and is based on the data of the manual tests, the experience threshold value determined according to the data value distribution condition of the historical RSSI data of the cloud end is wider in data and more in covered scenes, therefore, the unlocking operation is performed according to the experience threshold value determined according to the data value distribution condition of the historical RSSI data of the cloud end, and the unlocking accuracy rate can be ensured to a great extent, and greatly improves the unlocking success rate. It should be noted that the determination process of the experience threshold at the cloud end is similar to the determination process of the local experience threshold, and is not described herein again. Different unlocking thresholds are dynamically selected in the embodiment of the application, and the unlocking thresholds are continuously updated and optimized based on historical unlocking data, so that the unlocking success rate is continuously improved.
It should be noted that the historical RSSI data in the cloud may be a collection of RSSI data uploaded by each terminal.
In the embodiment of the application, the terminal compares the RSSI value with an unlocking threshold value, and if the RSSI value is greater than or equal to the unlocking threshold value, an unlocking instruction is sent to the second Bluetooth module; the unlocking instruction is used for unlocking the vehicle. Different unlocking thresholds are dynamically selected in the embodiment of the application, and the unlocking thresholds are continuously updated and optimized based on historical unlocking data, so that the unlocking success rate is continuously improved.
Fig. 3 is a second flowchart of a vehicle unlocking method provided in an embodiment of the present application, where the vehicle unlocking method is applied to a terminal, the terminal has a first bluetooth module, and the terminal can establish a communication connection with a second bluetooth module of a vehicle through the first bluetooth module, as shown in fig. 3, the vehicle unlocking method according to the embodiment of the present application includes:
step 301: and after the unlocking operation is obtained, the RSSI value of the second Bluetooth module is detected by utilizing the first Bluetooth module.
In the embodiment of the application, after the terminal obtains the unlocking operation, the RSSI value of the second Bluetooth module of the vehicle is detected by using the first Bluetooth module. In practical application, a starting switch can be arranged on the vehicle, and when a user wants to unlock the vehicle, the unlocking operation information can be sent to the terminal by touching the starting switch. It should be noted that the terminal may be a mobile phone, a tablet computer, or a wearable device. The terminal is provided with a first Bluetooth module and can establish communication connection with a second Bluetooth module of the vehicle through the first Bluetooth module so as to realize vehicle unlocking through a Bluetooth technology.
Step 302: judging whether the quantity of the local RSSI data is greater than or equal to a quantity threshold value or not; if the number of the local RSSI data is larger than or equal to the number threshold, setting an experience threshold as the unlocking threshold; and if the number of the local RSSI data is smaller than the number threshold, setting a default threshold as the unlocking threshold.
In general, the closer the distance between the bluetooth module and the terminal is, the larger the RSSI value is, so that the positional relationship between the terminal and the vehicle can be determined from the RSSI value. However, since the RSSI value of the bluetooth module is greatly affected by the distance and the obstacle, even if the same terminal and vehicle are located at the same position for bluetooth connection, the RSSI value is affected by the position of the terminal (for example, the user holds the terminal in his hand, puts the terminal in a bag, or in a pocket). Therefore, the same terminal and the same vehicle are in equidistant positions, and when the bluetooth connection is performed for multiple times, the RSSI value fluctuates within a certain range due to different positions of the terminal, so that a fixed unlocking threshold value may be difficult to adapt to different unlocking scenes.
In the embodiment of the application, the terminal acquires the number of local RSSI data stored locally and judges whether the number of the local RSSI data is greater than or equal to a number threshold value or not; if the number of the local RSSI data is larger than or equal to the number threshold, setting an experience threshold as the unlocking threshold; and if the number of the local RSSI data is smaller than the number threshold, setting a default threshold as the unlocking threshold. The empirical threshold may be calculated according to the local RSSI data, or determined according to a data value distribution of the local RSSI data; or the terminal receives the experience threshold value which is sent by the cloud and updated based on the data value distribution condition of the historical RSSI data. The default threshold is the default threshold after the terminal receives the data value distribution condition which is sent by the cloud and is updated based on the historical RSSI data. It should be noted that the default threshold may be a threshold preset at the terminal and the cloud based on a large number of manual tests performed by the staff at the early stage. The default threshold may also be a threshold calculated based on previous manual test data of a worker and historical RSSI data of the cloud when the amount of historical RSSI data of the cloud is not enough to calculate the empirical threshold. The experience threshold value is divided into a locally calculated experience threshold value and a cloud-calculated experience threshold value, the locally calculated experience threshold value can be calculated by the terminal according to local RSSI data, and the cloud-calculated experience threshold value can be calculated by the cloud according to historical RSSI data. The local RSSI data are local historical unlocking RSSI data of the terminal used by the user, and the historical RSSI data of the cloud are historical unlocking RSSI data of all terminals and vehicles which are stored on the cloud and have the same model as the terminal and vehicle used by the user.
In the embodiment of the application, the unlocking threshold is determined according to the number of the RSSI data, when the number of the local RSSI data stored locally reaches the number threshold, the terminal determines an experience threshold according to the data value distribution condition of the local RSSI data, and the experience threshold is used as the unlocking threshold; when the number of the local RSSI data stored locally does not reach the number threshold, the terminal requests the cloud to obtain the updated experience threshold, that is, when the number of the local RSSI data is insufficient, the experience threshold determined based on the data value distribution condition of the historical RSSI data of the cloud is used as the unlocking threshold. Furthermore, when the number of the historical RSSI data in the cloud does not reach the number threshold, the terminal enables a default threshold as an unlocking threshold. It should be noted that the local RSSI data stored locally is historical unlocking data of the terminal itself, that is, the local RSSI data stored locally is data most related to the unlocking state and rule of the terminal, the experience threshold determined based on the data value distribution condition of the local RSSI data stored locally is the most representative of the unlocking state and rule of the terminal, and the unlocking operation is performed based on the experience threshold determined based on the data value distribution condition of the local RSSI data, so that the unlocking accuracy can be greatly ensured, and the unlocking success rate can be greatly improved. For example, if the number threshold is 100, and the number of the local RSSI data is greater than or equal to 100, the terminal may determine an empirical threshold according to a data value distribution of the local RSSI data, and if the distribution of the 100 local RSSI data is: 80% of the RSSI data are distributed below the unlocking threshold, and only 20% of the RSSI data are distributed above the unlocking threshold, so that the unlocking success rate of the terminal is low (the reason for this may be that the RSSI data of the terminal is lower than the RSSI data of terminals of the same type, or the RSSI data of the terminal is lower due to the hardware aging of the terminal, or the RSSI data of the terminal is lower due to the use habit of the user), the terminal adjusts the unlocking threshold based on the distribution condition of the 100 pieces of local RSSI data, and lowers the unlocking threshold (it should be noted that the adjustment may also be to recalculate the unlocking threshold in a preset calculation manner), so that the unlocking threshold is more adaptive to the RSSI data of the terminal, thereby improving the unlocking success rate and improving the user experience. The experience threshold value updated by the cloud end is determined according to the data value distribution condition of the RSSI data which is the same as the terminal type in the historical RSSI data of the cloud end and is the same as the unlocking vehicle type, although the historical RSSI data of the cloud end which is the same as the terminal type and is the unlocking vehicle type is selected, compared with the historical unlocking data of the terminal, the historical unlocking data of the cloud end is only the data which is secondarily related to the terminal, compared with the default threshold value which is preset in the terminal and the cloud end by workers through a large number of manual tests in the early period and is based on the data of the manual tests, the experience threshold value determined according to the data value distribution condition of the historical RSSI data of the cloud end is wider in data and more in covered scenes, therefore, the unlocking operation is performed according to the experience threshold value determined according to the data value distribution condition of the historical RSSI data of the cloud end, and the unlocking accuracy rate can be ensured to a great extent, and greatly improves the unlocking success rate. It should be noted that the determination process of the experience threshold at the cloud end is similar to the determination process of the local experience threshold, and is not described herein again. Different unlocking thresholds are dynamically selected in the embodiment of the application, and the unlocking thresholds are continuously updated and optimized based on historical unlocking data, so that the unlocking success rate is continuously improved.
In one example, the experience threshold calculated locally is calculated by the terminal according to local RSSI data, a preset number of local RSSI data are obtained from the local RSSI data from near to far based on the timestamp of the RSSI data in a local RSSI database, RSSI values are obtained from the local RSSI data, the RSSI values are sorted, and filtering is performed by a median average filtering algorithm to obtain an interval of the RSSI values, wherein the experience threshold is a coefficient of the interval minimum value-interval width × interval width. Wherein the interval minimum value is the minimum value in the interval of the RSSI values; the interval width is the data quantity in the interval of the RSSI value; the interval width coefficient is a value preset by a worker, and the value range of the interval width coefficient can be 0.1-0.8.
In one example, the experience threshold calculated by the cloud is calculated by the cloud according to historical RSSI data of the cloud. Specifically, 1) the cloud may perform statistical analysis on historical RSSI data of the cloud to obtain an empirical threshold: in a cloud RSSI database, acquiring historical RSSI data of terminals and vehicles of the same type according to the type of the terminal and the type of the vehicle used by a user, acquiring a preset number of cloud RSSI data from the cloud RSSI data from near to far based on a timestamp of the historical RSSI data, acquiring RSSI values from the cloud historical RSSI data, sequencing the RSSI values, filtering by a median average filtering algorithm to obtain an RSSI value interval, wherein an empirical threshold value is an interval minimum value-interval width multiplied by an interval width coefficient. Wherein the interval minimum value is the minimum value in the interval of the RSSI values; the interval width is the data quantity in the interval of the RSSI value; the interval width coefficient is a value preset by a worker, and the value range of the interval width coefficient can be 0.1-0.8. Or, 2) the cloud may obtain the experience threshold through a deep learning algorithm: historical RSSI data of the cloud belongs to big data, and the big data is utilized to continuously evolve the unlocking strategy model, so that the accuracy of the experience threshold can be continuously improved, and the unlocking success rate is improved. In addition, the cloud end can update the default threshold value according to historical RSSI data of the cloud end, and the updating mode can also adopt a statistical analysis mode or a deep learning mode.
In the embodiment of the present application, the unlocking threshold may be an empirical threshold or a default threshold, wherein the empirical threshold has a higher priority than the default threshold. Further, the experience threshold is divided into a locally calculated experience threshold and a cloud-calculated experience threshold, wherein the locally calculated experience threshold has a higher priority than the cloud-calculated experience threshold. It should be noted that the experience threshold and/or the default threshold calculated by the cloud may be updated to the local terminal, so that the terminal may directly obtain the experience threshold and/or the default threshold calculated by the cloud from the local terminal.
The method for updating the experience threshold and/or the default threshold by the terminal specifically comprises the following steps: whether a timestamp of a local experience threshold is beyond a validity period or not is checked, if the timestamp of the local experience threshold is beyond the validity period, a first request message is sent to a cloud end, and the first request message is used for requesting the cloud end to update the experience threshold; receiving an experience threshold value which is sent by the cloud and updated based on historical RSSI data, and storing the experience threshold value to the local; checking whether the local experience threshold is an initial threshold, if so, checking whether a timestamp of a local default threshold is beyond a valid period, and if so, sending a second request message to a cloud terminal, wherein the second request message is used for requesting the cloud terminal to update the default threshold; and receiving a default threshold value which is sent by the cloud and updated based on historical RSSI data, and storing the default threshold value to the local. After the terminal finishes updating the unlocking threshold value, if the terminal obtains the unlocking operation, the RSSI value of a second Bluetooth module of the vehicle is detected by using the first Bluetooth module. The term of validity may be set to 24 hours when actually applied.
It should be noted that, if the terminal does not update or fail to update the unlocking threshold when obtaining the unlocking operation, the terminal stops updating the unlocking threshold, and uses the last updated unlocking threshold as the latest threshold.
In the embodiment of the application, when the initial historical data of the user is insufficient, the latest reasonable threshold value is calculated for the user by using the big data according to the mobile phone type and the vehicle type used by the user.
And uploading historical unlocking data of the user to the cloud periodically to serve as a data source of the big data. The uploaded data is also used as a backup of the data of the user, and when the user downloads the data again after deleting the app, the local historical data does not need to be accumulated again and is directly obtained through the cloud. The idea is to calculate a reasonable threshold value based on historical unlocking data of a user, and improve the unlocking success rate.
In an embodiment of the present application, the RSSI data includes the RSSI value and at least one of the following information: terminal information, vehicle information, a timestamp.
Step 303: comparing the RSSI value with an unlocking threshold value, and if the RSSI value is greater than or equal to the unlocking threshold value, sending an unlocking instruction to the second Bluetooth module; the unlocking instruction is used for unlocking the vehicle, and the unlocking threshold value is determined according to the number of RSSI data.
In the embodiment of the application, after determining an unlocking threshold, the terminal compares the RSSI value with the unlocking threshold, and if the RSSI value is greater than or equal to the unlocking threshold, an unlocking instruction is sent to the second Bluetooth module; if the RSSI value is smaller than the unlocking threshold value, an unlocking instruction is not sent to the second Bluetooth module, or an unlocking failure instruction is sent to the second Bluetooth module. The vehicle can be set to send unlocking operation information and then send a prompt tone to prompt a user that the unlocking is failed if an unlocking instruction is not received within a preset time; the vehicle can also be set to send out a prompt tone to prompt a user that the unlocking fails after receiving an unlocking failure instruction sent by the terminal. The unlocking instruction is used for unlocking the vehicle.
In another embodiment of the present application, after determining an unlocking threshold, the terminal compares the RSSI value with the unlocking threshold, and if the RSSI value is greater than or equal to the unlocking threshold, the terminal sends an unlocking instruction to the second bluetooth module; and if the RSSI value is smaller than the unlocking threshold value, the terminal sends out a prompt tone or prompt information to prompt the user that the unlocking is failed.
Step 304: locally storing a piece of RSSI data, said RSSI data comprising said RSSI values and at least one of the following information: terminal information, vehicle information, a timestamp.
In this embodiment of the application, after the terminal detects the RSSI value of the second bluetooth module by using the first bluetooth module, the terminal locally stores a piece of RSSI data, where the RSSI data includes the RSSI value and at least one of the following information: terminal information, vehicle information, a timestamp. In practical application, the terminal information may include: terminal manufacturer, terminal model, terminal version, etc., and the vehicle information may include: vehicle type, vehicle serial number, etc.
Step 305: judging whether the time between the current time and the last time of uploading the RSSI data exceeds a time threshold value or not; and if the time between the current time and the last RSSI data uploading time exceeds the time threshold, uploading local RSSI data to the cloud, and locally recording the time of uploading the RSSI data.
In the embodiment of the application, after the RSSI data is stored locally, the terminal judges whether the time between the current time and the last time for uploading the RSSI data exceeds a time threshold value; if the time between the current time and the last RSSI data uploading time exceeds the time threshold, uploading local RSSI data to the cloud, and locally recording the time of uploading the RSSI data; if the time between the current time and the last time for uploading the RSSI data does not exceed the time threshold, the unlocking operation is finished; the RSSI data uploaded by the terminal is the variable quantity of the RSSI data stored locally. It should be noted that the variation of the locally stored RSSI data may be understood as the RSSI data newly stored when the terminal is unlocked this time. In practical applications, the time threshold may be set to 24 hours.
It should be noted that the historical RSSI data in the cloud is the RSSI data stored in the cloud based on the uploading operation of the terminal, that is, the historical RSSI data in the cloud is the collection of the local RSSI data uploaded by each terminal.
It should be noted that the RSSI data uploaded to the cloud by the terminal includes the RSSI value, terminal information, vehicle information, and a timestamp. Therefore, when the experience threshold is calculated by the cloud, historical RSSI data of terminals and vehicles of the same type can be selected for calculation according to the type of the terminal and the type of the vehicle used by the current user. In practical application, the terminal information may include: terminal manufacturer, terminal model, terminal version, etc., and the vehicle information may include: vehicle type, vehicle serial number, etc.
The following describes a vehicle unlocking method provided by the embodiment of the present application in detail with reference to fig. 4. Fig. 4 is a third schematic flowchart of a vehicle unlocking method provided in the embodiment of the present application, and as shown in fig. 4, the vehicle unlocking method of the embodiment of the present application includes:
step 401: and establishing a Bluetooth connection.
In the embodiment of the application, the terminal is provided with a first Bluetooth module, and the terminal can establish communication connection with a second Bluetooth module of a vehicle through the first Bluetooth module.
Step 402: the connection is successful and authentication is completed.
In the embodiment of the application, the vehicle and the terminal are successfully connected and the authentication is completed, and at the moment, the terminal and the vehicle establish an association relationship.
Step 403: the empirical threshold timestamp is checked.
In the embodiment of the application, the terminal checks whether the timestamp of the local experience threshold is beyond the validity period, and if the timestamp of the local experience threshold is beyond the validity period, the step 404 is executed; and if the timestamp of the local experience threshold is within the validity period, taking the current local experience threshold as the latest experience threshold.
Step 404: an update of the experience threshold is requested.
In the embodiment of the application, the terminal requests the cloud terminal to update the experience threshold, and the experience threshold updating request sent by the terminal carries terminal information and vehicle information.
Step 405: the empirical threshold is updated.
In the embodiment of the application, after receiving an experience threshold updating request sent by a terminal, the cloud acquires the latest preset number of cloud RSSI data corresponding to the terminal information and the vehicle information from a cloud RSSI database according to the terminal information and the vehicle information carried in the experience threshold updating request, calculates the experience threshold according to the cloud RSSI data, and sends the updated experience threshold to the terminal.
Step 406: whether the empirical threshold is an initial value.
In the embodiment of the application, the terminal checks whether the local experience threshold is an initial value, and if the local experience threshold is the initial threshold, the step 407 is executed; and if the local experience threshold is not the initial threshold, taking the current local experience threshold as the latest experience threshold.
Step 407: the default threshold timestamp is checked.
In the embodiment of the present application, the terminal checks whether the timestamp of the local default threshold is outside the validity period, and if the timestamp of the local default threshold is outside the validity period, the step 408 is performed; and if the timestamp of the local default threshold is within the validity period, taking the current local default threshold as the latest default threshold.
Step 408: requesting an update of the default threshold.
In the embodiment of the application, the terminal requests the cloud terminal to update the default threshold, and the default threshold updating request sent by the terminal carries terminal information and vehicle information.
Step 409: the default threshold is updated.
In the embodiment of the application, after receiving a default threshold updating request sent by a terminal, the cloud acquires a default threshold corresponding to terminal information and vehicle information as an updated default threshold according to the terminal information and the vehicle information carried in the default threshold updating request, and sends the updated default threshold to the terminal. It should be noted that the default threshold is a threshold preset at the terminal and the cloud based on a large number of manual tests performed by the staff at the early stage.
Step 410: and sending unlocking operation information.
In the embodiment of the application, a starting switch can be arranged on the vehicle, and when a user wants to unlock the vehicle, the unlocking operation information can be sent to the terminal through the touch starting switch.
Step 411: and acquiring the RSSI value.
In this embodiment, the terminal detects the RSSI value of the second bluetooth module by using the first bluetooth module.
Step 412: whether the local RSSI number is greater than a number threshold.
In the embodiment of the application, the terminal judges whether the number of the local RSSI data is greater than or equal to a number threshold value; if the number of local RSSI data is greater than or equal to the number threshold, go to step 413; if the number of local RSSI data is less than the number threshold, proceed to step 414.
Step 413: an empirical threshold (calculated from local RSSI data) is enabled.
In the embodiment of the application, the terminal calculates the experience threshold according to the local RSSI data, and uses the experience threshold calculated according to the local RSSI data as the unlocking threshold.
Step 414: whether the empirical threshold is an initial value.
In the embodiment of the present application, the terminal determines whether the local experience threshold is an initial value, and if the local experience threshold is not the initial threshold, step 415 is performed; if the local experience threshold is the initial threshold, proceed to step 416.
Step 415: an empirical threshold (calculated from the cloud RSSI data) is enabled.
In the embodiment of the application, the terminal directly obtains the experience threshold value updated by the cloud from the local as the unlocking threshold value.
Step 416: a default threshold is enabled.
In the embodiment of the application, the terminal directly obtains the default threshold value updated by the cloud from the local area as the unlocking threshold value.
Step 417: whether the RSSI value is greater than or equal to an unlocking threshold value.
In the embodiment of the application, the terminal determines whether the RSSI value is greater than or equal to the unlocking threshold, and if the RSSI value is greater than or equal to the unlocking threshold, the step 418 is executed; if the RSSI value is greater than or equal to the unlocking threshold, step 419 is performed.
Step 418: and sending an unlocking instruction.
In the embodiment of the application, the terminal sends an unlocking instruction to the vehicle; the unlocking instruction is used for unlocking the vehicle.
Step 419: the RSSI data is stored locally.
In this embodiment of the present application, a terminal locally stores one piece of RSSI data, where the RSSI data includes the RSSI value and at least one of the following information: terminal information, vehicle information, a timestamp.
Step 420: whether the time threshold is exceeded since the last upload.
Step 421: requesting to upload RSSI data.
Step 422: and recording the time for uploading the RSSI data.
In the embodiment of the application, the terminal judges whether the current time exceeds a time threshold value from the time of uploading RSSI data last time; if the time between the current time and the last RSSI data uploading time exceeds the time threshold, uploading local RSSI data to the cloud, and locally recording the time of uploading the RSSI data; if the time between the current time and the last time for uploading the RSSI data does not exceed the time threshold, the unlocking operation is finished; the local RSSI data uploaded by the terminal is the variable quantity of the locally stored RSSI data. In practical applications, the time threshold may be set to 24 hours.
The embodiment of the application provides a vehicle unlocking method, a terminal and a storage medium, which are applied to the terminal, wherein the terminal is provided with a first Bluetooth module, the terminal can establish communication connection with a second Bluetooth module of a vehicle through the first Bluetooth module, and the method comprises the following steps: after the unlocking operation is obtained, the RSSI value of the second Bluetooth module is detected by the first Bluetooth module; comparing the RSSI value with an unlocking threshold value, and if the RSSI value is greater than or equal to the unlocking threshold value, sending an unlocking instruction to the second Bluetooth module; the unlocking instruction is used for unlocking the vehicle, and the unlocking threshold value is determined according to the number of RSSI data. Different unlocking thresholds are dynamically selected in the embodiment of the application, and the unlocking thresholds are continuously updated and optimized based on historical unlocking data, so that the unlocking success rate is continuously improved.
Based on the same technical concept of the foregoing vehicle unlocking method, an embodiment of the present application provides a terminal, and fig. 5 is a schematic structural diagram of the terminal provided in the embodiment of the present application, and as shown in fig. 5, the terminal 500 includes:
the first bluetooth module 501 is configured to detect an RSSI value of the second bluetooth module by using the first bluetooth module after obtaining the unlocking operation;
an unlocking module 502, configured to compare the RSSI value with an unlocking threshold, and send an unlocking instruction to the second bluetooth module if the RSSI value is greater than or equal to the unlocking threshold; the unlocking instruction is used for unlocking the vehicle.
In other embodiments, the terminal further includes:
a threshold determining module 503, configured to determine whether the number of local RSSI data is greater than or equal to a number threshold;
if the number of the local RSSI data is larger than or equal to the number threshold, setting an experience threshold as the unlocking threshold;
and if the number of the local RSSI data is smaller than the number threshold, setting a default threshold as the unlocking threshold.
In other embodiments, the terminal further includes:
an updating module 504, configured to determine the empirical threshold according to a data value distribution of the local RSSI data; or,
and receiving an experience threshold value which is sent by the cloud and updated based on the data value distribution condition of the historical RSSI data.
In other embodiments, the terminal further includes:
the updating module 504 is configured to receive a default threshold value after updating of the data value distribution condition based on the historical RSSI data sent by the cloud.
In other embodiments, the updating module 504 is specifically configured to check whether a timestamp of a local experience threshold is outside a validity period, and if the timestamp of the local experience threshold is outside the validity period, send a first request message to a cloud, where the first request message is used to request the cloud to update the experience threshold; and receiving an experience threshold value which is sent by the cloud and updated based on the data value distribution condition of the historical RSSI data, and storing the experience threshold value to the local.
In other embodiments, the updating module 504 is specifically configured to check whether the local experience threshold is an initial threshold, check whether a timestamp of a local default threshold is outside a validity period if the local experience threshold is the initial threshold, and send a second request message to a cloud end if the timestamp of the local default threshold is outside the validity period, where the second request message is used to request the cloud end to update the default threshold; and receiving the updated default threshold value of the data value distribution condition based on the historical RSSI data sent by the cloud and storing the updated default threshold value to the local.
In other embodiments, the terminal further includes:
a storage module 505, configured to locally store a piece of RSSI data, where the RSSI data includes the RSSI value and at least one of the following information: terminal information, vehicle information, a timestamp.
In other embodiments, the terminal further includes:
an upload module 506, configured to determine whether a distance between a current time and a time when the RSSI data was uploaded last time exceeds a time threshold;
and if the time between the current time and the last RSSI data uploading time exceeds the time threshold, uploading local RSSI data to the cloud, and locally recording the time of uploading the RSSI data.
In other embodiments, the uploading module 506 is further configured to determine a variation of the locally stored RSSI data;
and uploading the variable quantity of the locally stored RSSI data to a cloud terminal.
The components in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the embodiments of the present application, or a part thereof contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Accordingly, embodiments of the present application provide a storage medium storing a computer program, which when executed by at least one processor implements the steps described in the above embodiments.
Referring to fig. 6, a specific hardware structure of a terminal 600 provided in an embodiment of the present application is shown, including: a network interface 601, a memory 602, and a processor 603; the various components are coupled together by a bus system 604. It is understood that the bus system 604 is used to enable communications among the components. The bus system 604 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 604 in fig. 6.
The network interface 601 is configured to receive and transmit signals in a process of receiving and transmitting information with other external network elements;
a memory 602 for storing a computer program capable of running on the processor 603;
a processor 603 for, when running the computer program, performing:
after the unlocking operation is obtained, the RSSI value of the second Bluetooth module is detected by the first Bluetooth module;
comparing the RSSI value with an unlocking threshold value, and if the RSSI value is greater than or equal to the unlocking threshold value, sending an unlocking instruction to the second Bluetooth module; the unlocking instruction is used for unlocking the vehicle; the unlock threshold is determined based on the amount of RSSI data.
The processor 603 is further configured to, when running the computer program, perform:
judging whether the quantity of the local RSSI data is greater than or equal to a quantity threshold value or not;
if the number of the local RSSI data is larger than or equal to the number threshold, setting an experience threshold as the unlocking threshold;
and if the number of the local RSSI data is smaller than the number threshold, setting a default threshold as the unlocking threshold.
The processor 603 is further configured to, when running the computer program, perform:
determining the experience threshold according to the data value distribution condition of the local RSSI data; or,
and receiving an experience threshold value which is sent by the cloud and updated based on the data value distribution condition of the historical RSSI data.
The processor 603 is further configured to, when running the computer program, perform:
and receiving a default threshold value which is sent by the cloud and updated based on the data value distribution condition of the historical RSSI data.
The processor 603 is further configured to, when running the computer program, perform:
the receiving of the experience threshold value after updating of the data value distribution condition based on the historical RSSI data sent by the cloud comprises the following steps:
whether a timestamp of a local experience threshold is beyond a validity period or not is checked, if the timestamp of the local experience threshold is beyond the validity period, a first request message is sent to a cloud end, and the first request message is used for requesting the cloud end to update the experience threshold; and receiving an experience threshold value which is sent by the cloud and updated based on the data value distribution condition of the historical RSSI data, and storing the experience threshold value to the local.
The processor 603 is further configured to, when running the computer program, perform:
the receiving of the experience threshold value after updating of the data value distribution condition based on the historical RSSI data sent by the cloud comprises the following steps:
checking whether the local experience threshold is an initial threshold, if so, checking whether a timestamp of a local default threshold is beyond a valid period, and if so, sending a second request message to a cloud terminal, wherein the second request message is used for requesting the cloud terminal to update the default threshold; and receiving the updated default threshold value of the data value distribution condition based on the historical RSSI data sent by the cloud and storing the updated default threshold value to the local.
The processor 603 is further configured to, when running the computer program, perform:
locally storing a piece of RSSI data, said RSSI data comprising said RSSI values and at least one of the following information: terminal information, vehicle information, a timestamp.
The processor 603 is further configured to, when running the computer program, perform:
judging whether the time from the current time to the last RSSI data uploading time exceeds a time threshold value or not;
and if the time between the current time and the last RSSI data uploading time exceeds the time threshold, uploading local RSSI data to the cloud, and locally recording the time of uploading the RSSI data.
The processor 603 is further configured to, when running the computer program, perform:
determining a variation of locally stored RSSI data;
and uploading the variable quantity of the locally stored RSSI data to a cloud terminal.
It will be appreciated that the memory 602 in the subject embodiment can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous SDRAM (ESDRAM), Sync Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 602 of the methodologies described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
And the processor 603 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 603. The Processor 603 may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element identified by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
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, that is, 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.
In addition, all functional units in the embodiments of the present application may be integrated into one processing module, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit. Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
The features disclosed in the several product embodiments presented in this application can be combined arbitrarily, without conflict, to arrive at new product embodiments.
The features disclosed in the several method or apparatus embodiments provided herein may be combined in any combination to arrive at a new method or apparatus embodiment without conflict.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (14)

1. A vehicle unlocking method is applied to a terminal, the terminal is provided with a first Bluetooth module, the terminal can establish communication connection with a second Bluetooth module of a vehicle through the first Bluetooth module, and the method comprises the following steps:
after the unlocking operation is obtained, the RSSI value of the second Bluetooth module is detected by the first Bluetooth module;
comparing the RSSI value with an unlocking threshold value, and if the RSSI value is greater than or equal to the unlocking threshold value, sending an unlocking instruction to the second Bluetooth module; the unlocking instruction is used for unlocking the vehicle, and the unlocking threshold value is determined according to the number of RSSI data;
the method further comprises the following steps:
judging whether the number of the local RSSI data is larger than or equal to a number threshold value or not;
if the number of the local RSSI data is larger than or equal to the number threshold, setting an experience threshold as the unlocking threshold; receiving an experience threshold value which is sent by a cloud end and updated based on the data value distribution condition of historical RSSI data;
if the number of the local RSSI data is smaller than the number threshold, setting a default threshold as the unlocking threshold; and receiving a default threshold value which is sent by the cloud and updated based on the data value distribution condition of the historical RSSI data.
2. The vehicle unlocking method according to claim 1, wherein the receiving of the updated experience threshold based on the data value distribution of the historical RSSI data sent by the cloud comprises:
whether a timestamp of a local experience threshold is beyond a validity period or not is checked, if the timestamp of the local experience threshold is beyond the validity period, a first request message is sent to a cloud end, and the first request message is used for requesting the cloud end to update the experience threshold; and receiving an experience threshold value which is sent by the cloud and updated based on the data value distribution condition of the historical RSSI data, and storing the experience threshold value to the local.
3. The vehicle unlocking method according to claim 1, wherein the receiving of the updated default threshold value of the data value distribution based on the historical RSSI data sent by the cloud comprises:
checking whether the local experience threshold is an initial threshold, if so, checking whether a timestamp of a local default threshold is beyond a valid period, and if so, sending a second request message to a cloud terminal, wherein the second request message is used for requesting the cloud terminal to update the default threshold; and receiving the updated default threshold value of the data value distribution condition based on the historical RSSI data sent by the cloud and storing the updated default threshold value to the local.
4. The vehicle unlocking method according to claim 1, wherein after the detecting, by the first bluetooth module, the RSSI value of the second bluetooth module, the method further comprises:
locally storing a piece of RSSI data, said RSSI data comprising said RSSI values and at least one of the following information: terminal information, vehicle information, a timestamp.
5. The vehicle unlocking method according to claim 4, further comprising:
judging whether the time between the current time and the last time of uploading the RSSI data exceeds a time threshold value or not;
and if the time between the current time and the last RSSI data uploading time exceeds the time threshold, uploading local RSSI data to the cloud, and locally recording the time of uploading the RSSI data.
6. The vehicle unlocking method according to claim 5, wherein the uploading of the local RSSI data to the cloud comprises:
determining a variation of locally stored RSSI data;
and uploading the variable quantity of the locally stored RSSI data to a cloud terminal.
7. A terminal having a first bluetooth module by which the terminal can establish a communication connection with a second bluetooth module of a vehicle, the terminal comprising:
the first Bluetooth module is used for detecting a Received Signal Strength Indicator (RSSI) value of the second Bluetooth module by utilizing the first Bluetooth module after the unlocking operation is obtained;
the unlocking module is used for comparing the RSSI value with an unlocking threshold value, and if the RSSI value is greater than or equal to the unlocking threshold value, an unlocking instruction is sent to the second Bluetooth module; the unlocking instruction is used for unlocking the vehicle, and the unlocking threshold value is determined according to the number of RSSI data;
a threshold determination module, configured to determine whether the number of local RSSI data is greater than or equal to a number threshold;
if the number of the local RSSI data is larger than or equal to the number threshold, setting an experience threshold as the unlocking threshold;
if the number of the local RSSI data is smaller than the number threshold, setting a default threshold as the unlocking threshold;
the system further comprises an updating module, a judging module and a judging module, wherein the updating module is used for receiving an experience threshold value which is sent by the cloud and is updated based on the data value distribution condition of historical RSSI data; and receiving a default threshold value which is sent by the cloud and updated based on the data value distribution condition of the historical RSSI data.
8. The terminal of claim 7,
the updating module is specifically configured to check whether a timestamp of a local experience threshold is outside an effective period, and if the timestamp of the local experience threshold is outside the effective period, send a first request message to a cloud, where the first request message is used to request the cloud to update the experience threshold; and receiving an experience threshold value which is sent by the cloud and updated based on the data value distribution condition of the historical RSSI data, and storing the experience threshold value to the local.
9. The terminal of claim 7,
the update module is specifically configured to check whether the local experience threshold is an initial threshold, check whether a timestamp of a local default threshold is outside a validity period if the local experience threshold is the initial threshold, and send a second request message to a cloud end if the timestamp of the local default threshold is outside the validity period, where the second request message is used to request the cloud end to update the default threshold; and receiving the updated default threshold value of the data value distribution condition based on the historical RSSI data sent by the cloud and storing the updated default threshold value to the local.
10. The terminal of claim 7, further comprising:
a storage module, configured to locally store a piece of RSSI data, where the RSSI data includes the RSSI value and at least one of the following information: terminal information, vehicle information, a timestamp.
11. The terminal of claim 10, further comprising:
the uploading module is used for judging whether the time between the current time and the last time of uploading the RSSI data exceeds a time threshold value;
and if the time between the current time and the last RSSI data uploading time exceeds the time threshold, uploading local RSSI data to the cloud, and locally recording the time of uploading the RSSI data.
12. The terminal of claim 11,
the uploading module is further used for determining the variation of the locally stored RSSI data;
and uploading the variable quantity of the locally stored RSSI data to a cloud.
13. A terminal, characterized in that the terminal comprises:
the network interface is used for realizing connection communication among the components;
a memory for storing executable instructions;
a processor for implementing the vehicle unlocking method of any one of claims 1 to 6 when executing executable instructions stored in the memory.
14. A storage medium characterized in that the storage medium stores a computer program which, when executed by at least one processor, implements the vehicle unlocking method according to any one of claims 1 to 6.
CN201911284308.2A 2019-12-13 2019-12-13 Vehicle unlocking method, terminal and storage medium Active CN113068160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911284308.2A CN113068160B (en) 2019-12-13 2019-12-13 Vehicle unlocking method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911284308.2A CN113068160B (en) 2019-12-13 2019-12-13 Vehicle unlocking method, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN113068160A CN113068160A (en) 2021-07-02
CN113068160B true CN113068160B (en) 2022-05-20

Family

ID=76558241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911284308.2A Active CN113068160B (en) 2019-12-13 2019-12-13 Vehicle unlocking method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113068160B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116279296A (en) * 2023-03-23 2023-06-23 浙江零跑科技股份有限公司 Vehicle door control method, device and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206264987U (en) * 2016-11-14 2017-06-20 北京一雄信息科技有限公司 Vehicle key-free closes the device of unblock
WO2018209555A1 (en) * 2017-05-16 2018-11-22 深圳市创客工场科技有限公司 Bluetooth device connection method and terminal device
CN110481502A (en) * 2019-08-05 2019-11-22 浙江合众新能源汽车有限公司 Automobile short range unlocking method and system based on bluetooth
CN110435589A (en) * 2019-08-14 2019-11-12 深圳市泰比特科技有限公司 A method of based on bluetooth close to realization electric vehicle locking
CN110489958B (en) * 2019-08-27 2021-03-05 上海银基信息安全技术股份有限公司 Identity authentication method, positioning device and terminal to be unlocked

Also Published As

Publication number Publication date
CN113068160A (en) 2021-07-02

Similar Documents

Publication Publication Date Title
CN111373775B (en) Peripheral computing device
US9729707B2 (en) Method and system to manage personalized vehicle user information
JP6486484B2 (en) In-vehicle control device and information update system for in-vehicle control device
US8738574B2 (en) Automatic wireless device data maintenance
US20150067827A1 (en) Apparatus and method for setting a user-defined pattern for an application
US20140282467A1 (en) Method and Apparatus for Multiple Vehicle Software Module Reflash
JP2023036738A (en) Access control method for door operation device communicating with user terminal, access control method for user terminal communicating with door operation device, door operation device, and user terminal
CN107257346B (en) Single sign-on service access processing method, system end and storage medium
US11340891B2 (en) Control device, control method, and computer program
CN104978206A (en) Method, device and system for updating vehicle body control module of vehicle
CN106464694B (en) Secure regulation in mobile devices
CN106597951A (en) Method for controlling vehicle and terminal thereof
CN106534105B (en) Login method and device
CN105468354A (en) Method and apparatus for sensor synthesis and arbitration between mobile devices and vehicles
KR20160138518A (en) Method and apparatus for network entry when roaming
CN110891256A (en) Vehicle-mounted system account login method and device based on Bluetooth key identification
CN113068160B (en) Vehicle unlocking method, terminal and storage medium
CN110958234A (en) Application login control method and device and storage medium
CN117459889A (en) Mobile terminal positioning method and device, storage medium and electronic equipment
KR102036024B1 (en) Method and system for vehicle security
US10897510B2 (en) Service providing device and service providing system
CN112913267A (en) Resource processing method, electronic device, and computer-readable storage medium
WO2016087645A1 (en) Resource control apparatus, server apparatus and method for controlling a resource
CN107819761B (en) Data processing method and device and readable storage medium
CN105704210A (en) Charging pile information updating method and 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