WO2022213522A1 - Door lock control method and device, automobile, and storage medium - Google Patents

Door lock control method and device, automobile, and storage medium Download PDF

Info

Publication number
WO2022213522A1
WO2022213522A1 PCT/CN2021/111185 CN2021111185W WO2022213522A1 WO 2022213522 A1 WO2022213522 A1 WO 2022213522A1 CN 2021111185 W CN2021111185 W CN 2021111185W WO 2022213522 A1 WO2022213522 A1 WO 2022213522A1
Authority
WO
WIPO (PCT)
Prior art keywords
door lock
control signal
lock control
state
signal
Prior art date
Application number
PCT/CN2021/111185
Other languages
French (fr)
Chinese (zh)
Inventor
曾郁荣
Original Assignee
广州小鹏汽车科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州小鹏汽车科技有限公司 filed Critical 广州小鹏汽车科技有限公司
Publication of WO2022213522A1 publication Critical patent/WO2022213522A1/en

Links

Images

Classifications

    • 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

Definitions

  • the present application relates to the technical field of automobiles, and more particularly, to a door lock control method, device, automobile and storage medium.
  • Bluetooth is widely used in the field of automobiles, and the door of the car is unlocked and locked through Bluetooth. Because the bluetooth signal may be interfered by the car shell, the user's location, the interference signal around the car, the characteristics of the bluetooth signal itself, etc., when the car door is controlled by the bluetooth signal, it is easy to cause misoperation.
  • the present application proposes an automobile method, device, automobile and storage medium to overcome or at least partially solve the above problems of the prior art.
  • an embodiment of the present application provides a door lock control method, the method includes: acquiring a door lock control signal corresponding to a current moment as a first door lock control signal, and acquiring a preset time before the current moment Multiple door lock control signals in the interval are used as second door lock control signals; when the first door lock control signal is the same as the second door lock control signal, the first door lock control signal is used to control the door lock.
  • an embodiment of the present application provides a door lock control device, the device includes: an acquisition module configured to acquire a door lock control signal corresponding to a current moment as a first door lock control signal, and to acquire the current moment
  • the multiple door lock control signals in the previous preset time interval are used as the second door lock control signal;
  • the control module is configured to, when the first door lock control signal and the second door lock control signal are the same, pass all the door lock control signals.
  • the first door lock control signal controls the door lock.
  • an embodiment of the present application provides an automobile, including: one or more processors;
  • an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the above method.
  • the door lock control method, device, vehicle and storage medium provided by the present application acquire the door lock control signal corresponding to the current moment as the first door lock control signal, and acquire the preset time interval before the current moment (that is, the historical moment to the current moment
  • the multiple door lock control signals between are used as the second door lock control signal.
  • the first door lock control signal is the same as the second door lock control signal
  • the door lock is controlled by the first door lock control signal.
  • the door lock control signal that controls the door lock between the current moment is stable, and then the door lock is controlled by the door lock control signal, which ensures the accurate control of the state of the vehicle door and prevents misoperation.
  • Fig. 1 shows the bluetooth signal waveform diagram that is disturbed by the outside world in the prior art
  • FIG. 2 shows a schematic flowchart of a door lock control method provided by an embodiment of the present application
  • FIG. 3 shows a schematic flowchart of a door lock control method provided by another embodiment of the present application.
  • FIG. 4 shows a schematic flowchart of a door lock control method provided by another embodiment of the present application.
  • FIG. 5 shows a schematic flowchart of a door lock control method provided by still another embodiment of the present application.
  • FIG. 6 shows a schematic flowchart of a door lock control method provided by yet another embodiment of the present application.
  • FIG. 7 shows a block diagram of a door lock control device provided by an embodiment of the present application.
  • FIG. 8 is a block diagram of an electronic device for executing the door lock control method according to the embodiment of the present application according to an embodiment of the present application;
  • FIG. 9 shows a storage unit for storing or carrying a program code for implementing a door lock control method according to an embodiment of the present application according to an embodiment of the present application.
  • Bluetooth is widely used in the automotive field as a new smart sensorless key.
  • the user sends a bluetooth control signal through the car key, obtains one or more bluetooth signal strengths through the mobile phone, and then judges the current locked or unlocked state according to the algorithm.
  • the Bluetooth radio frequency devices are installed on metal devices, and the Bluetooth signal is easily interfered by the car shell, the location of the user, the interference signals around the car, the characteristics of the Bluetooth signal itself, electrical signals and other factors, the control of the door through the Bluetooth signal It is easy to cause misoperation, for example, due to external interference, the Bluetooth signal is prone to jump repeatedly, resulting in repeated unlocking and closing of the door.
  • the separation degree of external signals is relatively low, and the general error can go to more than plus or minus 3 meters.
  • the user's mobile phone may affect the Bluetooth signal in different parts of the user. The interference is different, resulting in serious overlapping of Bluetooth signals in the locked area and the unlocked area, which may lead to frequent unlocking, and even trigger actions such as rearview mirrors and door handles, making the user experience extremely poor.
  • the horizontal axis represents time
  • the vertical axis represents signal strength
  • the curve L1 is the Bluetooth signal waveform curve collected by the car when the user's Bluetooth key is 4 meters away from the car
  • the curve L2 is the user's Bluetooth key distance.
  • the waveform curve of the Bluetooth signal collected by the car when the car is 10 meters away.
  • the curve L2 has overlapped with the curve L1, that is, the signals in the curve L1 and the curve L2 overlap.
  • Fig. A dashed box is shown in , that is, the signal of -82dbm is also included in the curve L1.
  • the inventor has found and proposed a door lock control method, device, vehicle and storage medium through long-term research, obtaining the door lock control signal corresponding to the current moment as the first door lock control signal, and obtaining the current moment.
  • the multiple door lock control signals of the previous preset time interval are used as the second door lock control signal.
  • the door lock is controlled by the first door lock control signal.
  • the door lock is controlled by the door lock control signal, which ensures accurate control of the state of the vehicle door and prevents misoperation.
  • FIG. 2 shows a schematic flowchart of a door lock control method provided by an embodiment of the present application.
  • the door lock is controlled by the door lock control signal to ensure accurate control of the door lock and prevent misoperation.
  • the door lock control method is applied to the door lock control device 100 shown in FIG. 7 and the automobile 200 ( FIG. 8 ) equipped with the door lock control device 100 .
  • the application of the door lock control method to an automobile will be taken as an example to illustrate the specific process of this embodiment.
  • the process shown in FIG. 2 will be described in detail below, and the door lock control method may specifically include the following steps:
  • Step S110 Acquire a door lock control signal corresponding to the current moment as a first door lock control signal, and acquire a plurality of door lock control signals within a preset time interval before the current moment as a second door lock control signal.
  • the car obtains the door lock control signal generated by the unlocking device at the current moment, and uses the door lock control signal as the first door lock control signal, which is used to indicate that the control door lock state is the unlocked state or the locked state.
  • the first door lock control signal may be a bluetooth signal
  • the door lock device may be a car key matching the user's car, or a mobile terminal connected to the car, such as the user. mobile phones, tablets, wearable devices, etc.
  • the first door lock control signal is a Bluetooth signal
  • the acquired Bluetooth signal may be generated by multiple devices.
  • the Bluetooth signal corresponding to the unlocking device is determined as the target Bluetooth signal, that is, the target Bluetooth signal is used as the first door lock control signal.
  • the first door lock control signal may also be a radio frequency signal.
  • the car acquires a plurality of door lock control signals corresponding to the preset time interval between the historical time and the current time as the second door lock control signal.
  • the preset time interval may be 3 seconds, 4 seconds, etc., which is not limited herein.
  • the preset time interval is 3 seconds and the current time is 9:03:05
  • the historical time is the time corresponding to 3 seconds before the current time, that is, the historical time is 9:03:02.
  • the door lock control signals may be collected according to a preset sampling frequency.
  • the preset sampling frequency is 1 sampling per second, or 2 sampling per second.
  • the preset sampling frequency can be adjusted according to the control sensitivity, which is not limited here.
  • the door lock control signal includes an unlock control signal and a lock control signal, wherein the unlock control signal is used to instruct the door lock to be unlocked, and the lock control signal is used to instruct the door lock to be locked.
  • the door lock control signal is an unlocking control signal
  • the unlocking control signal corresponding to the current moment is obtained as the first unlocking control signal, and a plurality of unlocking control signals within the first preset time interval before the current moment are obtained;
  • the door lock control When the signal is a blocking control signal, the blocking control signal corresponding to the current moment is acquired as a first blocking control signal to acquire a plurality of blocking control signals within a second preset time interval before the current moment.
  • the corresponding sensitivities may be different when unlocking and locking the door lock.
  • the corresponding sensitivity when unlocking is higher than the corresponding sensitivity when locking, that is, the first preset time interval is smaller than the second preset time interval, which ensures that the user can quickly unlock and get on the car before using the car, and that the user can lock the car after using the car. Nice door.
  • the corresponding sensitivity when unlocking is lower than the corresponding sensitivity when locking, that is, the first preset time interval is greater than the second preset time interval.
  • the corresponding sensitivity is the same, that is, the first preset time interval is equal to the second preset time interval, so as to ensure accurate unlocking and locking.
  • the door lock control signal In order to determine whether the door lock control signal is stable, it is determined whether the first door lock control signal and the second door lock control signal are the same.
  • the first door lock signal is different from the second door lock signal, it means that within the preset time interval from the historical moment to the current moment, the door lock signal may be unstable due to interference factors, so there is no need to respond to the first door lock control Signal, that is, the door lock can keep the current unlocked or locked state.
  • Step S120 when the first door lock control signal is the same as the second door lock control signal, control the door lock through the first door lock control signal.
  • the door control lock signal is relatively stable, and the door lock can be controlled by the first door lock control signal. Since the door lock control signal is relatively stable, within the preset time interval from the historical moment to the current moment, the door lock control signal changes little, and any door lock control signal within the preset time interval, that is, the second door lock control signal, can be used. The signal controls the door lock.
  • the door lock state may be controlled through unlocking or locking indicated by the first door lock control signal.
  • the door lock may be controlled to be unlocked or locked according to the signal strength of the first door lock control signal. Specifically, when the signal strength of the first door lock control signal is within the unlocking interval, the first door lock control signal controls the door lock to be unlocked, that is, the lock ring of the door lock is unlocked; If the signal strength is within the blocking interval, the first door lock control signal controls the door lock to lock, that is, to close the lock ring of the door lock.
  • the door lock control signal corresponding to the current moment is acquired as the first door lock control signal, and the number of preset time intervals before the current moment (that is, between the historical moment and the current moment) is acquired.
  • the first door lock control signal is used as the second door lock control signal.
  • the door lock is controlled by the first door lock control signal, and the control is performed between the historical time and the current time.
  • the door lock control signal of the door lock is stable, and then the door lock is controlled by the door lock control signal, which ensures the accurate control of the state of the vehicle door and prevents misoperation.
  • this embodiment provides a door lock control method on the basis of the above-mentioned embodiment, which is used to control the door lock to be unlocked.
  • FIG. 3 shows the flow of the door lock control method provided by another embodiment of the present application.
  • the door lock control method may specifically include the following steps:
  • Step S210 Acquire a door lock control signal corresponding to the current moment as a first door lock control signal, and acquire a plurality of door lock control signals within a preset time interval before the current moment as a second door lock control signal.
  • step S210 For the specific description of step S210, please refer to step S110, which will not be repeated here.
  • Step S220 Acquire a plurality of door lock states corresponding to a preset time period, wherein the door lock states include an unlocked state and a locked state.
  • the preset time period includes the current moment, and multiple door lock states corresponding to the preset time period are obtained.
  • the preset time period may be 1 second, for example, the preset time period is 9:01:11 The time period between seconds and 9:01:2.
  • multiple signal strengths corresponding to a preset time period are acquired, and multiple door lock states corresponding to multiple signal strengths are acquired through a preset algorithm.
  • a pre-trained identification model may be used to identify and identify multiple door lock states corresponding to the multiple signal intensities.
  • the unlocking interval and the locking interval are preset, and multiple signal strengths corresponding to the preset time period are acquired.
  • the signal strengths in the unlocking interval among the multiple signal strengths correspond to the unlocking state, and the signal strengths among the multiple signal strengths are within the locking interval.
  • the signal strength of corresponds to the blocking state.
  • the signal strengths that are neither in the unlocking interval nor in the blocking interval correspond to an irrelevant state, and it can be understood that the irrelevant state may be an interference signal.
  • multiple signal strengths include -73dbm, -70dbm, -68dbm, -95dbm, and -130dbm.
  • the unlocking interval is [-75dbm, -65dbm]
  • the blocking interval is [-100dbm, -85dbm].
  • -73dbm, -70dbm and -68dbm are in the unlocking interval [-75dbm, -65dbm], and all three correspond to the unlocking state; -95dbm is in the locking interval [-100dbm, -85dbm], in the locked state; -130dbm is not In the unlocking interval [-75dbm, -65dbm] and the blocking interval [-100dbm, -85dbm], it is irrelevant.
  • Step S230 Calculate the probability that the unlocked state occupies among the plurality of door lock states to obtain the unlocked probability.
  • Step S240 When the unlocking probability is greater than a preset probability, determine that the door lock state indicated by the first door lock control signal corresponding to the current moment is the unlocked state.
  • the preset probability may be the preset unlock probability, which may be set according to the actual situation, for example, the preset unlock probability may be 59%, 60%, 80%, etc. Taking the preset unlocking probability as 59% as an example, when the unlocking probability is 60%, the unlocking probability of 60% is greater than the preset unlocking probability of 59%, and it is determined that the door lock state indicated by the first door lock control signal corresponding to the current moment is the unlocked state. .
  • the preset probability when calculating the blocking probability, may be a preset blocking probability, and the preset blocking probability may be set according to the actual situation, for example, the preset blocking probability may be 59%, 60%, 80%, etc. Taking the preset locking probability of 59% as an example, when the locking probability is 20%, and the locking probability of 20% is less than the preset locking probability of 59%, it is determined that the door lock state indicated by the first door lock control signal corresponding to the current moment is not Locked state instead of unlocked state.
  • Step S250 when the first door lock control signal is the same as the second door lock control signal, control the door lock to be unlocked according to the unlock state indicated by the first door lock control signal.
  • multiple door lock states corresponding to a preset time period are acquired, and among the multiple door lock states, a state with a large proportion can represent the state at the current moment, so as to ensure the accuracy of the state obtained at the current moment , to improve the accuracy of door lock control.
  • this embodiment provides a door lock control method on the basis of the above-mentioned embodiment, which is used to control the door lock to lock.
  • FIG. 4 shows the flow of the door lock control method provided by another embodiment of the present application.
  • the door lock control method may specifically include the following steps:
  • Step S310 Acquire a door lock control signal corresponding to the current moment as a first door lock control signal, and acquire a plurality of door lock control signals within a preset time interval before the current moment as a second door lock control signal.
  • step S310 For the specific description of step S310, please refer to step S110, which will not be repeated here.
  • Step S320 Acquire a plurality of door lock states corresponding to a preset time period, wherein the door lock states include an unlocked state and a locked state.
  • multiple signal strengths corresponding to the preset time period are acquired, and multiple door lock states corresponding to the multiple signal strengths are acquired through a preset algorithm.
  • a pre-trained identification model may be used to identify and identify multiple door lock states corresponding to the multiple signal intensities.
  • the unlocking interval and the locking interval are preset, and multiple signal strengths corresponding to the preset time period are acquired.
  • the signal strengths in the unlocking interval among the multiple signal strengths correspond to the unlocking state, and the signal strengths among the multiple signal strengths are within the locking interval.
  • the signal strength of corresponds to the blocking state.
  • the signal strengths that are neither in the unlocking interval nor in the blocking interval correspond to an irrelevant state, and it can be understood that the irrelevant state may be an interference signal.
  • multiple signal strengths include -73dbm, -90dbm, -88dbm, -95dbm, and -100dbm.
  • the unlocking interval is [-75dbm, -65dbm]
  • the blocking interval is [-100dbm, -85dbm].
  • -90dbm, -88dbm, -95dbm and -100dbm are all in the locked interval [-100dbm, -85dbm], and 4 of them are in the locked state;
  • -73dbm is in the locked interval [-100dbm, -85dbm], in the unlocked state.
  • Step S330 Calculate the probability that the unlocked state occupies among the plurality of door lock states to obtain the unlocked probability.
  • Step S340 When the unlocking probability is less than a preset probability, it is determined that the door lock state indicated by the first door lock control signal corresponding to the current moment is the locked state.
  • the preset probability may be the preset unlocking probability, and the preset unlocking probability may be set according to the actual situation, for example, the preset unlocking probability may be 60%, 80%, etc. Taking the preset unlocking probability as 60% as an example, when the unlocking probability is 20%, the unlocking probability of 20% is less than the preset unlocking probability of 60%, and it is determined that the door lock state indicated by the first door lock control signal corresponding to the current moment is not unlocked. state instead of a locked state.
  • the preset probability when calculating the blocking probability, may be a preset blocking probability, and the preset blocking probability may be set according to the actual situation, for example, the preset blocking probability may be 60%, 80%, and the like. Taking the preset blocking probability as 60% as an example, when the blocking probability is 80%, the blocking probability of 80% is greater than the preset blocking probability of 60%, then the door lock state indicated by the first door lock control signal corresponding to the current moment is determined. .
  • Step S350 when the first door lock control signal is the same as the second door lock control signal, control the door lock to lock according to the lock state indicated by the first door lock control signal.
  • multiple door lock states corresponding to a preset time period are acquired, and among the multiple door lock states, a state with a large proportion can represent the state at the current moment, so as to ensure the accuracy of the state obtained at the current moment , to improve the accuracy of door lock control.
  • the car when the door lock is controlled, after the car is successfully connected to the unlocking device, the car receives the door lock control signal for the first time as the initial door lock control signal, and when the initial door lock control signal is the initial unlock control signal, pass The initial unlocking control signal controls the unlocking of the door; when the initial door locking control signal is the initial locking signal, within the third preset time interval after receiving the initial locking signal, the received signals are all locking control signals, then control The door is locked, for example, the third preset time interval may be 3 seconds.
  • FIG. 5 shows a schematic flowchart of the door lock control method provided by another embodiment of the present application.
  • the lock control method may specifically include the following steps:
  • Step S410 Acquire a door lock control signal corresponding to the current moment as a first door lock control signal, and acquire a plurality of door lock control signals within a preset time interval before the current moment as a second door lock control signal.
  • step S410 For the specific description of step S410, please refer to step S110, which will not be repeated here.
  • Step S420 when the first door lock control signal is the same as the second door lock control signal, obtain the current door lock state, and obtain the target door indicated by the first door lock control signal corresponding to the current moment lock status.
  • the first door lock control signal When the first door lock control signal is the same as the second door lock control signal, the first door lock control signal is relatively stable, and the door lock can be controlled by the first door lock control signal.
  • Get the current door lock state where the current door lock state is the locked state or the unlocked state.
  • acquiring a target door lock state indicated by the first door lock control signal wherein the target door lock state is a locked state or an unlocked state. Determine whether the current door lock status is the same as the target door lock status.
  • the current door lock status is different from the target door lock status, that is, the current door lock status is locked and the target door lock status is unlocked, or, the current door lock status If it is in the unlocked state and the target door lock state is in the locked state, it means that the door lock control signal is unstable, and the control door lock maintains the current door lock state.
  • Step S430 when the current door lock state is different from the target door lock state, control the door lock to switch from the current door lock state to the desired door lock state through the first door lock control signal corresponding to the current moment. Describe the target door lock state.
  • the door lock state is switched from the current door lock state to the target door lock state to ensure timely adjustment of the door lock state.
  • FIG. 6 shows a schematic flowchart of a door lock control method provided by yet another embodiment of the present application. Please refer to FIG. 6 .
  • the door lock control method may specifically include the following steps:
  • Step S510 Acquire a door lock control signal corresponding to the current moment as a first door lock control signal, and acquire a plurality of door lock control signals within a preset time interval before the current moment as a second door lock control signal.
  • Step S520 when the first door lock control signal is the same as the second door lock control signal, control the door lock through the first door lock control signal.
  • steps S510-step S520 can refer to steps S110-step S120, which will not be repeated here.
  • Step S530 When the first door lock control signal is different from the second door lock control signal, acquire the signal strength of the first door lock control signal as the first signal strength.
  • the signal strength of the first door lock control signal is acquired as the first signal strength, for example, the first signal strength may be -100dbm.
  • Step S540 Acquire the moment of the previous door lock state switching at the current moment as the historical moment, and acquire the signal strength of the door lock control signal corresponding to the historical moment as the second signal strength.
  • the moment corresponding to the last state switching is regarded as the historical moment. It can be understood that, in this embodiment, it is not the initial adjustment of the door lock state, and the signal strength of the door lock control signal corresponding to the historical moment is regarded as the second signal strength, for example, the first The second signal strength can be -90dbm.
  • Step S550 Calculate the signal strength difference between the first signal strength and the second signal strength.
  • Step S560 when the signal strength difference is greater than a preset strength difference, control the door lock through the first door lock control signal.
  • the door lock is controlled by the first door lock control signal.
  • the door lock can also be controlled solely by using the signal strength difference, that is, when the signal strength difference is greater than the preset strength difference, the door lock is controlled by the first door lock control signal.
  • the door lock is controlled by the first door lock control signal, and when the first door lock control signal and the second door lock control signal are different, The signal strength of the first door lock control signal is obtained as the first signal strength, and the signal strength of the door lock control signal corresponding to the historical moment is obtained as the second signal strength, and the difference between the first signal strength and the second signal strength is calculated. The signal strength is poor.
  • the signal strength difference is greater than the preset strength difference, the door lock is controlled by the first door lock control signal to ensure accurate control of the door lock.
  • FIG. 7 shows a block diagram of the door lock control device provided by an embodiment of the present application. Please refer to FIG. 7 .
  • the door lock control device 100 includes: The acquisition module 110 and the control module 120 .
  • the acquiring module 110 is configured to acquire the door lock control signal corresponding to the current moment as the first door lock control signal, and acquire a plurality of door lock control signals within the preset time interval before the current moment as the second door lock control signal ;
  • the control module 120 is configured to control the door lock through the first door lock control signal when the first door lock control signal is the same as the second door lock control signal.
  • the door lock control signal includes an unlocking control signal and a locking control signal
  • the obtaining module 110 includes: an unlocking control signal obtaining sub-module and a locking control signal obtaining sub-module.
  • the unlocking control signal acquisition sub-module is used to acquire the unlocking control signal corresponding to the current moment as the first unlocking control signal, and acquire a plurality of unlocking control signals within the first preset time interval before the current moment as the second unlocking control signal Unlock control signal; or
  • a blocking control signal acquisition sub-module for acquiring the blocking control signal corresponding to the current moment as a first blocking control signal, and acquiring multiple blocking control signals within a second preset time interval before the current moment as a The second blocking control signal, wherein the first preset time interval is smaller than the second preset time interval.
  • control module 120 includes: an unlocking control sub-module or a locking control sub-module.
  • an unlocking control sub-module configured to control the unlocking of the door lock through the unlocking state indicated by the first door lock control signal when the first door lock control signal is the same as the second door lock control signal;
  • a locking control sub-module is configured to control the locking of the door through the locking state indicated by the first door lock control signal when the first door lock control signal is the same as the second door lock control signal.
  • the door lock control device 100 further includes: a door lock state acquisition module, an unlock probability acquisition module, and an unlock state determination module.
  • a door lock state acquisition module configured to acquire a plurality of door lock states corresponding to a preset time period, wherein the door lock states include an unlocked state and a locked state;
  • an unlocking probability acquisition module configured to calculate the probability of the unlocking state in the plurality of door lock states, and obtain the unlocking probability
  • the unlocking state determination module is configured to determine that the door lock state indicated by the first door lock control signal corresponding to the current moment is the unlock state when the unlocking probability is greater than a preset probability.
  • the door lock state acquisition module includes: a door lock state acquisition sub-module.
  • the door lock state acquisition sub-module is configured to acquire multiple signal intensities corresponding to the preset time period, and acquire the multiple door lock states corresponding to the multiple signal intensities through a preset algorithm.
  • control module 120 includes: a first target door lock state acquisition submodule and a second target door lock state acquisition submodule.
  • the first target door lock state acquisition sub-module is used to acquire the current door lock state when the first door lock control signal is the same as the second door lock control signal, and to acquire the first door lock state corresponding to the current moment.
  • the second target door lock state acquisition sub-module is configured to control the door lock from The current door lock state is switched to the target door lock state.
  • the door lock control apparatus 100 further includes: a first signal strength acquisition module, a second signal strength acquisition module, a signal strength difference acquisition module, and a door lock control module.
  • a first signal strength acquisition module configured to acquire the signal strength of the first door lock control signal as the first signal strength when the first door lock control signal is different from the second door lock control signal
  • the second signal strength acquisition module is used to acquire the moment of the previous door lock state switching at the current moment as a historical moment, and acquire the signal strength of the door lock control signal corresponding to the historical moment as the second signal strength;
  • a signal strength difference acquiring module configured to calculate the signal strength difference between the first signal strength and the second signal strength
  • a door lock control module configured to control the door lock through the first door lock control signal when the signal strength difference is greater than a preset strength difference.
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
  • FIG. 8 is a block diagram of an electronic device for executing a door lock control method according to an embodiment of the present application.
  • the vehicle 200 may be an electronic device capable of running an application program, such as a smartphone, a tablet computer, an e-book, or the like.
  • the vehicle 200 in the present application may include one or more of the following components: a processor 210, a memory 220, and one or more application programs, wherein the one or more application programs may be stored in the memory 220 and configured to be executed by one or more A plurality of processors 210 execute, and one or more programs are configured to execute the methods described in the foregoing method embodiments.
  • the processor 210 may include one or more processing cores.
  • the processor 210 uses various interfaces and lines to connect various parts of the entire vehicle 200, and executes the vehicle by running or executing instructions, programs, code sets or instruction sets stored in the memory 220, and calling data stored in the memory 220. 200 various functions and processing data.
  • the processor 210 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). implemented in a hardware form.
  • the processor 210 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like.
  • the CPU mainly handles the operating system, user interface, and application programs; the GPU is used for rendering and drawing of components to be displayed; the modem is used for wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 210, and is implemented by a communication chip alone.
  • the memory 220 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). Memory 220 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 220 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like.
  • the storage data area may also store data (such as historical configuration files) created by the vehicle 200 in use, and the like.
  • FIG. 9 shows a storage unit for storing or carrying a program code for implementing the door lock control method according to the embodiment of the present application, please refer to 9, which shows a computer provided by the embodiment of the present application A structural block diagram of a readable storage medium.
  • the computer-readable medium 300 stores program codes, and the program codes can be invoked by the processor to execute the methods described in the above method embodiments.
  • the computer-readable storage medium 300 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 300 has storage space for program code 310 for performing any of the method steps in the above-described methods. These program codes can be read from or written to one or more computer program products.
  • the program code 310 may be compressed, for example, in a suitable form.
  • the present application provides a door lock control method, device, vehicle and storage medium, obtains the door lock control signal corresponding to the current moment as the first door lock control signal, and obtains the preset time interval (That is, the multiple door lock control signals from the historical time to the current time) are used as the second door lock control signal.
  • the first door lock control signal is the same as the second door lock control signal
  • the door is controlled by the first door lock control signal.
  • the door lock control signal that controls the door lock between the historical time and the current time is stable, and then the door lock is controlled by the door lock control signal, which ensures the accurate control of the door state and prevents misoperation.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Lock And Its Accessories (AREA)

Abstract

A door lock control method and device, an automobile, and a storage medium, relating to the technical field of automobiles. The method comprises: obtaining a door lock control signal corresponding to a current moment as a first door lock control signal, and obtaining a plurality of door lock control signals within a preset time interval before the current moment as a second door lock control signal (S110); and when the first door lock control signal is the same as the second door lock control signal, controlling a door lock by means of the first door lock control signal (S120). The door lock control signal for controlling the door lock from a historical moment to the current moment is stable, and then the door lock is controlled by means of the door lock control signal, so that accurate control of a vehicle door state is ensured, and misoperation is prevented.

Description

门锁控制方法、装置、汽车及存储介质Door lock control method, device, automobile and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求于2021年04月07日提交的申请号为202110373020.3的中国申请的优先权,其在此处于所有目的通过引用将其全部内容并入本文。This application claims priority to Chinese Application No. 202110373020.3 filed on Apr. 07, 2021, which is hereby incorporated by reference in its entirety for all purposes.
技术领域technical field
本申请涉及汽车技术领域,更具体地,涉及一种门锁控制方法、装置、汽车及存储介质。The present application relates to the technical field of automobiles, and more particularly, to a door lock control method, device, automobile and storage medium.
背景技术Background technique
蓝牙作为一种新式的智能钥匙被广泛的应用于汽车领域,通过蓝牙对汽车的车门进行开锁闭锁控制。由于蓝牙信号可能会受到汽车壳体、用户所在的位置、汽车周围的干扰信号、蓝牙信号本身特性等因素的干扰,在通过蓝牙信号对车门控制时,容易产生误操作。As a new type of smart key, Bluetooth is widely used in the field of automobiles, and the door of the car is unlocked and locked through Bluetooth. Because the bluetooth signal may be interfered by the car shell, the user's location, the interference signal around the car, the characteristics of the bluetooth signal itself, etc., when the car door is controlled by the bluetooth signal, it is easy to cause misoperation.
发明内容SUMMARY OF THE INVENTION
鉴于上述问题,本申请提出了一种汽车方法、装置、汽车及存储介质,以克服或者至少部分地解决以上现有技术的问题。In view of the above problems, the present application proposes an automobile method, device, automobile and storage medium to overcome or at least partially solve the above problems of the prior art.
第一方面,本申请实施例提供了一种门锁控制方法,所述方法包括:获取当前时刻对应的门锁控制信号作为第一门锁控制信号,以及获取所述当前时刻之前的预设时间间隔内的多个门锁控制信号作为第二门锁控制信号;当所述第一门锁控制信号与所述第二门锁控制信号相同时,通过所述第一门锁控制信号控制所述门锁。In a first aspect, an embodiment of the present application provides a door lock control method, the method includes: acquiring a door lock control signal corresponding to a current moment as a first door lock control signal, and acquiring a preset time before the current moment Multiple door lock control signals in the interval are used as second door lock control signals; when the first door lock control signal is the same as the second door lock control signal, the first door lock control signal is used to control the door lock.
第二方面,本申请实施例提供了一种门锁控制装置,所述装置包括:获取模块,用于获取当前时刻对应的门锁控制信号作为第一门锁控制信号,以及获取所述当前时刻之前的预设时间间隔内的多个门锁控制信号作为第二门锁控制信号;控制模块,用于当所述第一门锁控制信号与所述第二门锁控制信号相同时,通过所述第一门锁控制信号控制所述门锁。In a second aspect, an embodiment of the present application provides a door lock control device, the device includes: an acquisition module configured to acquire a door lock control signal corresponding to a current moment as a first door lock control signal, and to acquire the current moment The multiple door lock control signals in the previous preset time interval are used as the second door lock control signal; the control module is configured to, when the first door lock control signal and the second door lock control signal are the same, pass all the door lock control signals. The first door lock control signal controls the door lock.
第三方面,本申请实施例提供了一种汽车,包括:一个或多个处理器;In a third aspect, an embodiment of the present application provides an automobile, including: one or more processors;
存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述方法。memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs are configured to Perform the above method.
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the above method.
本申请提供的门锁控制方法、装置、汽车及存储介质,获取当前时刻对应的门锁控制信号作为第一门锁控制信号,以及获取当前时刻之前的预设时间间隔(即历史时刻至当前时刻之间)的多个门锁控制信号作为第二门锁控制信号,当第一门锁控制信号与第二门锁控制信号相同时,通过第一门锁控制信号控制门锁,在历史时刻至当前时刻之间控制门锁的门锁控制信号稳定,再通过该门锁控制信号控制门锁,保证了车门状态的准确控制,防止误操作。The door lock control method, device, vehicle and storage medium provided by the present application acquire the door lock control signal corresponding to the current moment as the first door lock control signal, and acquire the preset time interval before the current moment (that is, the historical moment to the current moment The multiple door lock control signals between) are used as the second door lock control signal. When the first door lock control signal is the same as the second door lock control signal, the door lock is controlled by the first door lock control signal. The door lock control signal that controls the door lock between the current moment is stable, and then the door lock is controlled by the door lock control signal, which ensures the accurate control of the state of the vehicle door and prevents misoperation.
本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These and other aspects of the present application will be more clearly understood in the description of the following embodiments.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.
图1示出了现有技术中受外界干扰的蓝牙信号波形图;Fig. 1 shows the bluetooth signal waveform diagram that is disturbed by the outside world in the prior art;
图2示出了本申请一个实施例提供的门锁控制方法的流程示意图;2 shows a schematic flowchart of a door lock control method provided by an embodiment of the present application;
图3示出了本申请另一个实施例提供的门锁控制方法的流程示意图;3 shows a schematic flowchart of a door lock control method provided by another embodiment of the present application;
图4示出了本申请又一个实施例提供的门锁控制方法的流程示意图;FIG. 4 shows a schematic flowchart of a door lock control method provided by another embodiment of the present application;
图5示出了本申请再一个实施例提供的门锁控制方法的流程示意图;5 shows a schematic flowchart of a door lock control method provided by still another embodiment of the present application;
图6示出了本申请又另一个实施例提供的门锁控制方法的流程示意图;6 shows a schematic flowchart of a door lock control method provided by yet another embodiment of the present application;
图7示出了本申请一实施例提供的门锁控制装置的框图;FIG. 7 shows a block diagram of a door lock control device provided by an embodiment of the present application;
图8是本申请实施例的用于执行根据本申请实施例的门锁控制方法的电子设备的框图;8 is a block diagram of an electronic device for executing the door lock control method according to the embodiment of the present application according to an embodiment of the present application;
图9示出了本申请实施例的用于保存或者携带实现根据本申请实施例的门锁控制方法的程序代码的存储单元。FIG. 9 shows a storage unit for storing or carrying a program code for implementing a door lock control method according to an embodiment of the present application according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the solutions of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.
随着智能汽车的普及,蓝牙作为一种新式的智能无感钥匙被广泛的应用于汽车领域。用户通过车钥匙发出蓝牙控制信号,通过手机获取一个或者多个的蓝牙信号强度,然后根据算法判断出当前上锁或者解锁的状态。由于蓝牙射频设备都安装在金属器件上,加上蓝牙信号容易受到汽车壳体、用户所在的位置、汽车周围的干扰信号、蓝牙信号本身特性、电信号等因素的干扰,在通过蓝牙信号控制车门时,容易产生误操作,例如,由于受到外界干扰,蓝牙信号容易反复跳变,导致车门反复开锁和关闭。With the popularity of smart cars, Bluetooth is widely used in the automotive field as a new smart sensorless key. The user sends a bluetooth control signal through the car key, obtains one or more bluetooth signal strengths through the mobile phone, and then judges the current locked or unlocked state according to the algorithm. Since the Bluetooth radio frequency devices are installed on metal devices, and the Bluetooth signal is easily interfered by the car shell, the location of the user, the interference signals around the car, the characteristics of the Bluetooth signal itself, electrical signals and other factors, the control of the door through the Bluetooth signal It is easy to cause misoperation, for example, due to external interference, the Bluetooth signal is prone to jump repeatedly, resulting in repeated unlocking and closing of the door.
再例如,在车身内部,由于汽车壳体的影响,导致外部信号的分离度比较低,一般误差能够去到正负3米以上,加上用户的手机可能在用户的不同的部位对蓝牙信号的干扰不同,从而导致上锁区和解锁区出现蓝牙信号严重重叠,可能会导致频繁解闭锁的情况,甚至还会触发后视镜,门把手等动作,使得用户体验会极差。For another example, inside the car body, due to the influence of the car shell, the separation degree of external signals is relatively low, and the general error can go to more than plus or minus 3 meters. In addition, the user's mobile phone may affect the Bluetooth signal in different parts of the user. The interference is different, resulting in serious overlapping of Bluetooth signals in the locked area and the unlocked area, which may lead to frequent unlocking, and even trigger actions such as rearview mirrors and door handles, making the user experience extremely poor.
在一些干扰情况下,请参阅图1,横轴表示时间,纵轴表示信号强度,曲线L1为用户的蓝牙钥匙距离汽车4米时汽车采集的蓝牙信号波形曲线,曲线L2为用户的蓝牙钥匙距离汽车10米时汽车采集的蓝牙信号的波形曲线。在距离汽车4米处,由于受到多种干扰因素,在61秒至94秒之间,曲线L2已经与曲线L1出现叠加,即曲线L1与曲线L2中的信号中存在重叠,为了便于观看,图中示出虚线框,即曲线L1中也包含-82dbm的信号。In some interference situations, please refer to Figure 1, the horizontal axis represents time, the vertical axis represents signal strength, the curve L1 is the Bluetooth signal waveform curve collected by the car when the user's Bluetooth key is 4 meters away from the car, and the curve L2 is the user's Bluetooth key distance. The waveform curve of the Bluetooth signal collected by the car when the car is 10 meters away. At a distance of 4 meters from the car, due to various interference factors, between 61 seconds and 94 seconds, the curve L2 has overlapped with the curve L1, that is, the signals in the curve L1 and the curve L2 overlap. For the convenience of viewing, Fig. A dashed box is shown in , that is, the signal of -82dbm is also included in the curve L1.
针对上述技术问题,发明人经过长期的研究发现并提出了一种门锁控制方法、装置、汽车及存储介质,获取当前时刻对应的门锁控制信号作为第一门锁控制信号,以及获取当前时刻之前的预设时间间隔的多个门锁控制信号作为第二门锁控制信号,当第一门锁控制信号与第二门锁控制信号相同时,通过第一门锁控制信号控制门锁,在预设时间间隔后的当前时刻,控制门锁的门锁控制信号稳定后,再通过该门锁控制信号控制门锁,保证了车门状态的准确控制,防止误操作。In view of the above technical problems, the inventor has found and proposed a door lock control method, device, vehicle and storage medium through long-term research, obtaining the door lock control signal corresponding to the current moment as the first door lock control signal, and obtaining the current moment. The multiple door lock control signals of the previous preset time interval are used as the second door lock control signal. When the first door lock control signal is the same as the second door lock control signal, the door lock is controlled by the first door lock control signal. At the current moment after the preset time interval, after the door lock control signal controlling the door lock is stable, the door lock is controlled by the door lock control signal, which ensures accurate control of the state of the vehicle door and prevents misoperation.
图2示出了本申请一个实施例提供的门锁控制方法的流程示意图,在门锁控制信号稳定后,再通过门锁控制信号控制门锁确保了门锁的准确控制,防止误操作。在具体的实施例中,所述门锁控制方法应用于图7所示的门锁控制装置100以及配置有门锁控制装置100的汽车200(图8)。本实施例将以门锁控制方法应用于汽车为例说明本实施例的具体流程。下面将针对图2所示的流程进行详细的阐述,所述门锁控制方法具体可以包括如下步骤:2 shows a schematic flowchart of a door lock control method provided by an embodiment of the present application. After the door lock control signal is stabilized, the door lock is controlled by the door lock control signal to ensure accurate control of the door lock and prevent misoperation. In a specific embodiment, the door lock control method is applied to the door lock control device 100 shown in FIG. 7 and the automobile 200 ( FIG. 8 ) equipped with the door lock control device 100 . In this embodiment, the application of the door lock control method to an automobile will be taken as an example to illustrate the specific process of this embodiment. The process shown in FIG. 2 will be described in detail below, and the door lock control method may specifically include the following steps:
步骤S110、获取当前时刻对应的门锁控制信号作为第一门锁控制信号,以及获取所述当前时刻之前的预设时间间隔内的多个门锁控制信号作为第二门锁控制信号。Step S110: Acquire a door lock control signal corresponding to the current moment as a first door lock control signal, and acquire a plurality of door lock control signals within a preset time interval before the current moment as a second door lock control signal.
汽车获取开锁设备在当前时刻产生的门锁控制信号,并且以该门锁控制信号作为第一门锁控制信号,第一门锁控制信号用于指示控制门锁状态为开锁状态或者闭锁状态。The car obtains the door lock control signal generated by the unlocking device at the current moment, and uses the door lock control signal as the first door lock control signal, which is used to indicate that the control door lock state is the unlocked state or the locked state.
可选地,当门锁控制方法应用于汽车时,第一门锁控制信号可以是蓝牙信号,门锁设备可以是与用户汽车匹配的车钥匙,也可以是与汽车连接的移动终端,例如用户的手机、平板电脑、穿戴设备等。当第一门锁控制信号为蓝牙信号时,获取的蓝牙信号可能为多个设备产生的,根据开锁设备的标识,例如介质访问控制地址(media access control,简称mac),从多个蓝牙信号中确定开锁设备对应的蓝牙信号作为目标蓝牙信号,即目标蓝牙信号作为第一门锁控制信号。Optionally, when the door lock control method is applied to a car, the first door lock control signal may be a bluetooth signal, and the door lock device may be a car key matching the user's car, or a mobile terminal connected to the car, such as the user. mobile phones, tablets, wearable devices, etc. When the first door lock control signal is a Bluetooth signal, the acquired Bluetooth signal may be generated by multiple devices. The Bluetooth signal corresponding to the unlocking device is determined as the target Bluetooth signal, that is, the target Bluetooth signal is used as the first door lock control signal.
可选地,当门锁控制方法应用于门禁系统时,第一门锁控制信号也可以是射频信号。Optionally, when the door lock control method is applied to an access control system, the first door lock control signal may also be a radio frequency signal.
以及汽车获取历史时刻至当前时刻之间的预设时间间隔内对应的多个门锁控制信号作为第二门锁控制信号。可选地,预设时间间隔可以为3秒、4秒等,在此不做限定。例如,预设时间间隔为3秒时,当前时刻为9点零3分零5秒,则历史时刻为当前时刻之前的3秒对应的时刻,即历史时刻为9点零3分零2秒,获取9点零3分零2秒至9点零3分零5秒之间的多个门锁控制信号。And the car acquires a plurality of door lock control signals corresponding to the preset time interval between the historical time and the current time as the second door lock control signal. Optionally, the preset time interval may be 3 seconds, 4 seconds, etc., which is not limited herein. For example, when the preset time interval is 3 seconds and the current time is 9:03:05, the historical time is the time corresponding to 3 seconds before the current time, that is, the historical time is 9:03:02. Obtain multiple door lock control signals between 9:03:02 and 9:03:05.
可选地,在采集历史时刻至当前时刻之间的多个门锁控制信号时,可以按照预设采样频率采集门锁控制信号。例如,预设采样频率为每秒采集1次,也可以为每秒采集2次,预设采样频率可以根据控制灵敏度进行调节,在此不做限定,可选地,灵敏度越高,对应的预设采样频率越高,灵敏度越低,对应的预设采样频率越低。Optionally, when collecting multiple door lock control signals between the historical time and the current time, the door lock control signals may be collected according to a preset sampling frequency. For example, the preset sampling frequency is 1 sampling per second, or 2 sampling per second. The preset sampling frequency can be adjusted according to the control sensitivity, which is not limited here. Optionally, the higher the sensitivity, the corresponding preset sampling frequency. The higher the sampling frequency, the lower the sensitivity, and the lower the corresponding preset sampling frequency.
门锁控制信号包括解锁控制信号和闭锁控制信号,其中,解锁控制信号用于指示门锁解锁,闭锁控制信号用于指示门锁闭锁。门锁控制信号为解锁控制信号时,获取所述当前时刻对应的解锁控制信号作为第一解锁控制信号,以及获取当前时刻之前的第一预设时间间隔内的多个解锁控制信号;门锁控制信号为闭锁控制信号时,获取所述当前时刻对应的所述闭锁控制信号作为第一闭锁控制信号获取当前时刻之前的第二预设时间间隔内的多个闭锁控制信号。The door lock control signal includes an unlock control signal and a lock control signal, wherein the unlock control signal is used to instruct the door lock to be unlocked, and the lock control signal is used to instruct the door lock to be locked. When the door lock control signal is an unlocking control signal, the unlocking control signal corresponding to the current moment is obtained as the first unlocking control signal, and a plurality of unlocking control signals within the first preset time interval before the current moment are obtained; the door lock control When the signal is a blocking control signal, the blocking control signal corresponding to the current moment is acquired as a first blocking control signal to acquire a plurality of blocking control signals within a second preset time interval before the current moment.
在一些实施方式中,在对门锁解锁和闭锁时,对应的灵敏度可以不同。例如,解锁时对应的灵敏度高于闭锁时对应的灵敏度,即第一预设时间间隔小于第二预设时间间隔,保证用户在用车前能够快速解锁上车,保证用户在用车后能够锁好车门。或者是,解锁时对应的灵敏度低于闭锁时对应的灵敏度,即第一预设时间间隔大于第二预设时间间隔。In some embodiments, the corresponding sensitivities may be different when unlocking and locking the door lock. For example, the corresponding sensitivity when unlocking is higher than the corresponding sensitivity when locking, that is, the first preset time interval is smaller than the second preset time interval, which ensures that the user can quickly unlock and get on the car before using the car, and that the user can lock the car after using the car. Nice door. Or, the corresponding sensitivity when unlocking is lower than the corresponding sensitivity when locking, that is, the first preset time interval is greater than the second preset time interval.
在另一些实施方式中,在对门锁解锁和闭锁时,对应的灵敏度相同,即第一预设时间间隔等于第二预设时间间隔,保证准确开锁和闭锁。In other embodiments, when the door lock is unlocked and locked, the corresponding sensitivity is the same, that is, the first preset time interval is equal to the second preset time interval, so as to ensure accurate unlocking and locking.
为了判断门锁控制信号是否稳定,判断第一门锁控制信号与第二门锁控制信号是否相同。当第一门锁信号与第二门锁信号不相同时,说明在历史时刻至当前时刻的预设时间间隔内,门锁信号可能受到干扰因素所以不稳定,因此,无需响应第一门锁控制信号,即门锁保持当前的解锁锁或者闭锁状态即可。In order to determine whether the door lock control signal is stable, it is determined whether the first door lock control signal and the second door lock control signal are the same. When the first door lock signal is different from the second door lock signal, it means that within the preset time interval from the historical moment to the current moment, the door lock signal may be unstable due to interference factors, so there is no need to respond to the first door lock control Signal, that is, the door lock can keep the current unlocked or locked state.
步骤S120、当所述第一门锁控制信号与所述第二门锁控制信号相同时,通过所述第一门锁控制信号控制所述门锁。Step S120, when the first door lock control signal is the same as the second door lock control signal, control the door lock through the first door lock control signal.
当第一门锁控制信号与第二门锁控制信号相同时,说明门控制锁信号较稳定,可以通过第一门锁控制信号控制门锁。由于门锁控制信号较稳定,因此,在历史时刻至当前时刻的预设时间间隔内,门锁控制信号变化较小,可以使用预设时间间隔内的任意门锁控制信号即第二门锁控制信号控制门锁。When the first door lock control signal is the same as the second door lock control signal, it means that the door control lock signal is relatively stable, and the door lock can be controlled by the first door lock control signal. Since the door lock control signal is relatively stable, within the preset time interval from the historical moment to the current moment, the door lock control signal changes little, and any door lock control signal within the preset time interval, that is, the second door lock control signal, can be used. The signal controls the door lock.
在一种实施方式中,可以通过第一门锁控制信号指示的开锁或者闭锁,控制门锁状态。In one embodiment, the door lock state may be controlled through unlocking or locking indicated by the first door lock control signal.
在另一些实施方式中,可以根据第一门锁控制信号的信号强度控制门锁解锁或者闭锁。具体为,当第一门锁控制信号的信号强度处于解锁区间内,则第一门锁控制信号控制门锁解锁,即解开门锁的锁圈;或者是,当第一门锁控制信号的信号强度处于闭锁区间内,则第一门锁控制信号控制门锁闭锁,即关闭门锁的锁圈。In other embodiments, the door lock may be controlled to be unlocked or locked according to the signal strength of the first door lock control signal. Specifically, when the signal strength of the first door lock control signal is within the unlocking interval, the first door lock control signal controls the door lock to be unlocked, that is, the lock ring of the door lock is unlocked; If the signal strength is within the blocking interval, the first door lock control signal controls the door lock to lock, that is, to close the lock ring of the door lock.
在本实施例提供的门锁控制方法,获取当前时刻对应的门锁控制信号作为第一门锁控制信号,以及获取当前时刻之前的预设时间间隔(即历史时刻至当前时刻之间)的多个门锁控制信号作为第二门锁控制信号,当第一门锁控制信号与第二门锁控制信号相同时,通过第一门锁控制信号控制门锁,在历史时刻至当前时刻之间控制门锁的门锁控制信号稳定,再通过该门锁控制信号控制门锁,保证了车门状态的准确控制,防止误操作。In the door lock control method provided in this embodiment, the door lock control signal corresponding to the current moment is acquired as the first door lock control signal, and the number of preset time intervals before the current moment (that is, between the historical moment and the current moment) is acquired. The first door lock control signal is used as the second door lock control signal. When the first door lock control signal is the same as the second door lock control signal, the door lock is controlled by the first door lock control signal, and the control is performed between the historical time and the current time. The door lock control signal of the door lock is stable, and then the door lock is controlled by the door lock control signal, which ensures the accurate control of the state of the vehicle door and prevents misoperation.
可选地,本实施例在上述实施例的基础上提供一种门锁控制方法,用于控制所述门锁解锁,图3示出了本申请另一个实施例提供的门锁控制方法的流程示意图,请参阅图3,所述门锁控制方法具体可以包括如下步骤:Optionally, this embodiment provides a door lock control method on the basis of the above-mentioned embodiment, which is used to control the door lock to be unlocked. FIG. 3 shows the flow of the door lock control method provided by another embodiment of the present application. For the schematic diagram, please refer to FIG. 3, the door lock control method may specifically include the following steps:
步骤S210、获取当前时刻对应的门锁控制信号作为第一门锁控制信号,以及获取所述当前时刻之前的预设时间间隔内的多个门锁控制信号作为第二门锁控制信号。Step S210: Acquire a door lock control signal corresponding to the current moment as a first door lock control signal, and acquire a plurality of door lock control signals within a preset time interval before the current moment as a second door lock control signal.
其中,步骤S210的具体描述请参阅步骤S110,在此不再赘述。For the specific description of step S210, please refer to step S110, which will not be repeated here.
步骤S220、获取预设时间段对应的多个门锁状态,其中,所述门锁状态包括解锁状态和闭锁状态。Step S220: Acquire a plurality of door lock states corresponding to a preset time period, wherein the door lock states include an unlocked state and a locked state.
其中,预设时间段包括当前时刻,获取预设时间段对应的多个门锁状态,可选地,预设时间段可以为1秒钟,例如,预设时间段为9点零1分1秒至9点零1分2秒之间的时间段。The preset time period includes the current moment, and multiple door lock states corresponding to the preset time period are obtained. Optionally, the preset time period may be 1 second, for example, the preset time period is 9:01:11 The time period between seconds and 9:01:2.
在一些实施方式中,获取预设时间段对应的多个信号强度,并通过预设算法获取多个信号强度对应的多个门锁状态。或者是,可以通过预先训练好的识别模型,识别识别所述多个信号强度对应的多个门锁状态。In some embodiments, multiple signal strengths corresponding to a preset time period are acquired, and multiple door lock states corresponding to multiple signal strengths are acquired through a preset algorithm. Alternatively, a pre-trained identification model may be used to identify and identify multiple door lock states corresponding to the multiple signal intensities.
在另一些实施方式中,预先设置解锁区间和闭锁区间,获取预设时间段对应的多个信号强度,多个信号强度中处于解锁区间的信号强度对应解锁状态,多个信号强度中处于闭锁区间的信号强度对应闭锁状态。多个信号强度中既不处于解锁区间又不处于闭锁区间的信号强度对应无关状态,可以理解的是,无关状态可能为干扰信号。In other implementations, the unlocking interval and the locking interval are preset, and multiple signal strengths corresponding to the preset time period are acquired. The signal strengths in the unlocking interval among the multiple signal strengths correspond to the unlocking state, and the signal strengths among the multiple signal strengths are within the locking interval. The signal strength of corresponds to the blocking state. Among the multiple signal strengths, the signal strengths that are neither in the unlocking interval nor in the blocking interval correspond to an irrelevant state, and it can be understood that the irrelevant state may be an interference signal.
例如,多个信号强度包括-73dbm、-70dbm、-68dbm、-95dbm和-130dbm。解锁区间为[-75dbm,-65dbm],闭锁区间为[-100dbm,-85dbm]。-73dbm、-70dbm和-68dbm均处于解锁区间[-75dbm,-65dbm]内,3个均对应解锁状态;-95dbm处于闭锁区间[-100dbm,-85dbm]内,处于闭锁状态;-130dbm为不处于解锁区间[-75dbm,-65dbm]和闭锁区间[-100dbm,-85dbm],为无关状态。For example, multiple signal strengths include -73dbm, -70dbm, -68dbm, -95dbm, and -130dbm. The unlocking interval is [-75dbm, -65dbm], and the blocking interval is [-100dbm, -85dbm]. -73dbm, -70dbm and -68dbm are in the unlocking interval [-75dbm, -65dbm], and all three correspond to the unlocking state; -95dbm is in the locking interval [-100dbm, -85dbm], in the locked state; -130dbm is not In the unlocking interval [-75dbm, -65dbm] and the blocking interval [-100dbm, -85dbm], it is irrelevant.
步骤S230、计算所述解锁状态在所述多个门锁状态中所占的概率,获得解锁概率。Step S230: Calculate the probability that the unlocked state occupies among the plurality of door lock states to obtain the unlocked probability.
通过解锁状态除以多个门锁状态,计算得到解锁概率,继续结合上述例子,解锁状态为3个,总的状态为5个,则计算得到的解锁概率为3/5*100%=60%。By dividing the unlocking state by multiple door lock states, the unlocking probability is calculated. Continuing with the above example, if there are 3 unlocked states and a total of 5 states, the calculated unlocking probability is 3/5*100%=60% .
或者,计算闭锁状态在多个门锁状态中所占的概率,获得闭锁概率,继续结合上述例子,闭锁状态为1个,总的状态为5个,则计算得到的闭锁概率为1/5*100%=20%。Or, calculate the probability that the locked state occupies in multiple door lock states to obtain the locked probability. Continuing to combine the above example, there is 1 locked state and the total number of states is 5, then the calculated locked probability is 1/5* 100% = 20%.
步骤S240、当所述解锁概率大于预设概率时,确定所述当前时刻对应的第一门锁控制信号指示的门锁状态为解锁状态。Step S240: When the unlocking probability is greater than a preset probability, determine that the door lock state indicated by the first door lock control signal corresponding to the current moment is the unlocked state.
可选地,当计算的是解锁概率时,预设概率可以为预设解锁概率,可以根据实际情况设置预设解锁概率,例如,预设解锁概率可以为59%、60%、80%等。以预设解锁概率可以为59%为例,解锁概率为60%时,解锁概率60%大于预设解锁概率59%,确定当前时刻对应的第一门锁控制信号指示的门锁状态为解锁状态。Optionally, when the unlock probability is calculated, the preset probability may be the preset unlock probability, which may be set according to the actual situation, for example, the preset unlock probability may be 59%, 60%, 80%, etc. Taking the preset unlocking probability as 59% as an example, when the unlocking probability is 60%, the unlocking probability of 60% is greater than the preset unlocking probability of 59%, and it is determined that the door lock state indicated by the first door lock control signal corresponding to the current moment is the unlocked state. .
可选地,当计算的闭锁概率时,预设概率可以为预设闭锁概率,可以根据实际情况设置预设闭锁概率,例如,预设闭锁概率可以为59%、60%、80%等。以预设闭锁概率可以为59%为例,闭锁概率为20%时,闭锁概率20%小于预设闭锁概率59%,则确定当前时刻对应的第一门锁控制信号指示的门锁状态不为闭锁状态,而为解锁状态。Optionally, when calculating the blocking probability, the preset probability may be a preset blocking probability, and the preset blocking probability may be set according to the actual situation, for example, the preset blocking probability may be 59%, 60%, 80%, etc. Taking the preset locking probability of 59% as an example, when the locking probability is 20%, and the locking probability of 20% is less than the preset locking probability of 59%, it is determined that the door lock state indicated by the first door lock control signal corresponding to the current moment is not Locked state instead of unlocked state.
步骤S250、当所述第一门锁控制信号与所述第二门锁控制信号相同时,通过所述第一门锁控制信号指示的解锁状态控制所述门锁解锁。Step S250, when the first door lock control signal is the same as the second door lock control signal, control the door lock to be unlocked according to the unlock state indicated by the first door lock control signal.
在本实施例中,获取预设时间段对应的多个门锁状态,在多个门锁状态中,所占比例大的状态可以表征当前时刻的状态,以确保当前时刻获得的状态的准确度,提高门锁控制的准确度。In this embodiment, multiple door lock states corresponding to a preset time period are acquired, and among the multiple door lock states, a state with a large proportion can represent the state at the current moment, so as to ensure the accuracy of the state obtained at the current moment , to improve the accuracy of door lock control.
可选地,本实施例在上述实施例的基础上提供一种门锁控制方法,用于控制所述门锁闭锁,图4示出了本申请又一个实施例提供的门锁控制方法的流程示意图,请参阅图4,所述门锁控制方法具体可以包括如下步骤:Optionally, this embodiment provides a door lock control method on the basis of the above-mentioned embodiment, which is used to control the door lock to lock. FIG. 4 shows the flow of the door lock control method provided by another embodiment of the present application. For the schematic diagram, please refer to FIG. 4, the door lock control method may specifically include the following steps:
步骤S310、获取当前时刻对应的门锁控制信号作为第一门锁控制信号,以及获取所述当前时刻之前的预设时间间隔内的多个门锁控制信号作为第二门锁控制信号。Step S310: Acquire a door lock control signal corresponding to the current moment as a first door lock control signal, and acquire a plurality of door lock control signals within a preset time interval before the current moment as a second door lock control signal.
其中,步骤S310的具体描述请参阅步骤S110,在此不再赘述。For the specific description of step S310, please refer to step S110, which will not be repeated here.
步骤S320、获取预设时间段对应的多个门锁状态,其中,所述门锁状态包括解锁状态和闭锁状态。Step S320: Acquire a plurality of door lock states corresponding to a preset time period, wherein the door lock states include an unlocked state and a locked state.
在一些实施方式中,获取所述预设时间段对应的多个信号强度,并通过预设算法获取多个信号强度对应的多个门锁状态。或者是,可以通过预先训练好的识别模型,识别识别所述多个信号强度对应的多个门锁状态。In some embodiments, multiple signal strengths corresponding to the preset time period are acquired, and multiple door lock states corresponding to the multiple signal strengths are acquired through a preset algorithm. Alternatively, a pre-trained identification model may be used to identify and identify multiple door lock states corresponding to the multiple signal intensities.
在另一些实施方式中,预先设置解锁区间和闭锁区间,获取预设时间段对应的多个信号强度,多个信号强度中处于解锁区间的信号强度对应解锁状态,多个信号强度中处于闭锁区间的信号强度对应闭锁状态。多个信号强度中既不处于解锁区间又不处于闭锁区间的信号强度对应无关状态,可以理解的是,无关状态可能为干扰信号。In other implementations, the unlocking interval and the locking interval are preset, and multiple signal strengths corresponding to the preset time period are acquired. The signal strengths in the unlocking interval among the multiple signal strengths correspond to the unlocking state, and the signal strengths among the multiple signal strengths are within the locking interval. The signal strength of corresponds to the blocking state. Among the multiple signal strengths, the signal strengths that are neither in the unlocking interval nor in the blocking interval correspond to an irrelevant state, and it can be understood that the irrelevant state may be an interference signal.
例如,多个信号强度包括-73dbm、-90dbm、-88dbm、-95dbm和-100dbm。解锁区间为[-75dbm,-65dbm],闭锁区间为[-100dbm,-85dbm]。-90dbm、-88dbm、-95dbm和-100dbm均处于闭锁区间[-100dbm,-85dbm]内,4个均对应闭锁状态;-73dbm处于闭锁区间[-100dbm,-85dbm]内,处于解锁状态。For example, multiple signal strengths include -73dbm, -90dbm, -88dbm, -95dbm, and -100dbm. The unlocking interval is [-75dbm, -65dbm], and the blocking interval is [-100dbm, -85dbm]. -90dbm, -88dbm, -95dbm and -100dbm are all in the locked interval [-100dbm, -85dbm], and 4 of them are in the locked state; -73dbm is in the locked interval [-100dbm, -85dbm], in the unlocked state.
步骤S330、计算所述解锁状态在所述多个门锁状态中所占的概率,获得解锁概率。Step S330: Calculate the probability that the unlocked state occupies among the plurality of door lock states to obtain the unlocked probability.
通过解锁状态除以多个门锁状态,计算得到解锁概率,继续结合上述例子,解锁状态为1个,总的状态为5个,则计算得到的解锁概率为1/5*100%=20%。The unlocking probability is calculated by dividing the unlocked state by multiple door lock states. Continuing with the above example, if there is one unlocked state and the total number of states is five, then the calculated unlocking probability is 1/5*100%=20% .
或者,计算闭锁状态在多个门锁状态中所占的概率,获得闭锁概率,继续结合上述例子,闭锁状态为4个,总的状态为5个,则计算得到的闭锁概率为4/5*100%=80%。Or, calculate the probability that the locked state occupies in multiple door lock states, and obtain the locked probability. Continuing to combine the above example, there are 4 locked states, and the total state is 5, then the calculated locked probability is 4/5* 100%=80%.
步骤S340、所述解锁概率小于预设概率时,确定所述当前时刻对应的第一门锁控制信号指示的门锁状态为闭锁状态。Step S340: When the unlocking probability is less than a preset probability, it is determined that the door lock state indicated by the first door lock control signal corresponding to the current moment is the locked state.
可选地,当计算的是解锁概率时,预设概率可以为预设解锁概率,可以根据实际情况设置预设解锁概率,例如,预设解锁概率可以为60%、80%等。以预设解锁概率可以为60%为例,解锁概率为20%时,解锁概率20%小于预设解锁概率60%,确定当前时刻对应的第一门锁控制信号指示的门锁状态不为解锁状态,而为闭锁状态。Optionally, when the unlocking probability is calculated, the preset probability may be the preset unlocking probability, and the preset unlocking probability may be set according to the actual situation, for example, the preset unlocking probability may be 60%, 80%, etc. Taking the preset unlocking probability as 60% as an example, when the unlocking probability is 20%, the unlocking probability of 20% is less than the preset unlocking probability of 60%, and it is determined that the door lock state indicated by the first door lock control signal corresponding to the current moment is not unlocked. state instead of a locked state.
可选地,当计算的闭锁概率时,预设概率可以为预设闭锁概率,可以根据实际情况设置预设闭锁概率,例如,预设闭锁概率可以为60%、80%等。以预设闭锁概率可以为60%为例,闭锁概率为80%时,闭锁概率80%大于预设闭锁概率60%,则确定当前时刻对应的第一门锁控制信号指示的门锁状态闭锁状态。Optionally, when calculating the blocking probability, the preset probability may be a preset blocking probability, and the preset blocking probability may be set according to the actual situation, for example, the preset blocking probability may be 60%, 80%, and the like. Taking the preset blocking probability as 60% as an example, when the blocking probability is 80%, the blocking probability of 80% is greater than the preset blocking probability of 60%, then the door lock state indicated by the first door lock control signal corresponding to the current moment is determined. .
步骤S350、当所述第一门锁控制信号与所述第二门锁控制信号相同时,通过所述第一门锁控制信号指示的闭锁状态控制所述门锁闭锁。Step S350 , when the first door lock control signal is the same as the second door lock control signal, control the door lock to lock according to the lock state indicated by the first door lock control signal.
在本实施例中,获取预设时间段对应的多个门锁状态,在多个门锁状态中,所占比例大的状态可以表征当前时刻的状态,以确保当前时刻获得的状态的准确度,提高门锁控制的准确度。In this embodiment, multiple door lock states corresponding to a preset time period are acquired, and among the multiple door lock states, a state with a large proportion can represent the state at the current moment, so as to ensure the accuracy of the state obtained at the current moment , to improve the accuracy of door lock control.
可选地,在对门锁进行控制时,汽车与开锁设备连接成功后,汽车第一次接收到门锁控制信号作为初次门锁控制信号,当初次门锁控制信号为初次解锁控制信号时,通过初次解锁控制信号控制门锁解锁;当初次门锁控制信号为初次闭锁信号时,在从接收到初次闭锁信号后的第三预设时间间隔内,接收到的信号均为闭锁控制信号,则控制车门闭锁,例如,第三预设时间间隔可以为3秒。Optionally, when the door lock is controlled, after the car is successfully connected to the unlocking device, the car receives the door lock control signal for the first time as the initial door lock control signal, and when the initial door lock control signal is the initial unlock control signal, pass The initial unlocking control signal controls the unlocking of the door; when the initial door locking control signal is the initial locking signal, within the third preset time interval after receiving the initial locking signal, the received signals are all locking control signals, then control The door is locked, for example, the third preset time interval may be 3 seconds.
汽车与开锁设备连接成功后,并非第一次接收到门锁控制信号信号时,图5示出了本申请再一个实施例提供的门锁控制方法的流程示意图,请参阅图5,所述门锁控制方法具体可以包括如下步骤:After the car is successfully connected to the unlocking device, it is not the first time when the door lock control signal signal is received. FIG. 5 shows a schematic flowchart of the door lock control method provided by another embodiment of the present application. The lock control method may specifically include the following steps:
步骤S410、获取当前时刻对应的门锁控制信号作为第一门锁控制信号,以及获取所述当前时刻之前的预设时间间隔内的多个门锁控制信号作为第二门锁控制信号。Step S410: Acquire a door lock control signal corresponding to the current moment as a first door lock control signal, and acquire a plurality of door lock control signals within a preset time interval before the current moment as a second door lock control signal.
其中,步骤S410的具体描述请参阅步骤S110,在此不再赘述。For the specific description of step S410, please refer to step S110, which will not be repeated here.
步骤S420、当所述第一门锁控制信号与所述第二门锁控制信号相同时,获取当前门锁状态,以及获取所述当前时刻对应的所述第一门锁控制信号指示的目标门锁状态。Step S420, when the first door lock control signal is the same as the second door lock control signal, obtain the current door lock state, and obtain the target door indicated by the first door lock control signal corresponding to the current moment lock status.
当所述第一门锁控制信号与所述第二门锁控制信号相同时,第一门锁控制信号较稳定,可以通过第一门锁控制信号控制门锁。获取当前门锁状态,其中,当前门锁状态为闭锁状态或者开锁状态。以及获取第一门锁控制信号指示的目标门锁状态,其中,目标门锁状态为闭锁状态或者开锁状态。判断当前门锁状态与目标门锁状态是否相同,当当前门锁状态与目标门锁状态不相同时,即当前门锁状态为闭锁状态且目标门锁状态为解锁状态,或者,当前门锁状态为解锁状态且目标门锁状态为闭锁状态,则说明门锁控制信号不稳定,控制门锁保持当前门锁状态。When the first door lock control signal is the same as the second door lock control signal, the first door lock control signal is relatively stable, and the door lock can be controlled by the first door lock control signal. Get the current door lock state, where the current door lock state is the locked state or the unlocked state. and acquiring a target door lock state indicated by the first door lock control signal, wherein the target door lock state is a locked state or an unlocked state. Determine whether the current door lock status is the same as the target door lock status. When the current door lock status is different from the target door lock status, that is, the current door lock status is locked and the target door lock status is unlocked, or, the current door lock status If it is in the unlocked state and the target door lock state is in the locked state, it means that the door lock control signal is unstable, and the control door lock maintains the current door lock state.
步骤S430、当所述当前门锁状态与所述目标门锁状态不同时,通过所述当前时刻对应的所述第一门锁控制信号控制所述门锁从所述当前门锁状态切换为所述目标门锁状态。Step S430, when the current door lock state is different from the target door lock state, control the door lock to switch from the current door lock state to the desired door lock state through the first door lock control signal corresponding to the current moment. Describe the target door lock state.
在本实施例中,当当前门锁状态与目标门锁状态不同时,将门锁状态从当前门锁状态切换为目标门锁状态,以确保门锁状态的及时调整。In this embodiment, when the current door lock state is different from the target door lock state, the door lock state is switched from the current door lock state to the target door lock state to ensure timely adjustment of the door lock state.
在上述实施例的基础上,本实施例提供一种门锁控制方法,在门锁控制信号的基础上,结合信号强度对门锁信息控制。图6示出了本申请又另一个实施例提供的门锁控制方法的流程示意图,请参阅图6,所述门锁控制方法具体可以包括如下步骤:On the basis of the above embodiments, this embodiment provides a door lock control method, which controls door lock information in combination with signal strength on the basis of door lock control signals. FIG. 6 shows a schematic flowchart of a door lock control method provided by yet another embodiment of the present application. Please refer to FIG. 6 . The door lock control method may specifically include the following steps:
步骤S510、获取当前时刻对应的门锁控制信号作为第一门锁控制信号,以及获取所述当前时刻之前的预设时间间隔内的多个门锁控制信号作为第二门锁控制信号。Step S510: Acquire a door lock control signal corresponding to the current moment as a first door lock control signal, and acquire a plurality of door lock control signals within a preset time interval before the current moment as a second door lock control signal.
步骤S520、当所述第一门锁控制信号与所述第二门锁控制信号相同时,通过所述第一门锁控制信号控制所述门锁。Step S520, when the first door lock control signal is the same as the second door lock control signal, control the door lock through the first door lock control signal.
其中,步骤S510-步骤S520的具体描述请参阅步骤S110-步骤S120,在此不再赘述。The specific description of steps S510-step S520 can refer to steps S110-step S120, which will not be repeated here.
步骤S530、当所述第一门锁控制信号与所述第二门锁控制信号不同时,获取所述第一门锁控制信号的信号强度作为第一信号强度。Step S530: When the first door lock control signal is different from the second door lock control signal, acquire the signal strength of the first door lock control signal as the first signal strength.
当第一门锁控制信号与第二门锁控制信号不同时,则信号不稳定,不能通过预设时间间隔内的门锁控制信号控制门锁。获取第一门锁控制信号的信号强度作为第一信号强度,例如,第一信号强度可以为-100dbm。When the first door lock control signal is different from the second door lock control signal, the signal is unstable, and the door lock cannot be controlled by the door lock control signal within the preset time interval. The signal strength of the first door lock control signal is acquired as the first signal strength, for example, the first signal strength may be -100dbm.
步骤S540、获取所述当前时刻的前一次门锁状态切换的时刻作为历史时刻,并获取所述历史时刻对应的门锁控制信号的信号强度作为第二信号强度。Step S540: Acquire the moment of the previous door lock state switching at the current moment as the historical moment, and acquire the signal strength of the door lock control signal corresponding to the historical moment as the second signal strength.
上一次状态切换对应的时刻作为历史时刻,可以理解的是,在本实施例中,并非对门锁状态的初次调节,历史时刻对应的门锁控制信号的信号强度作为第二信号强度,例如,第二信号强度可以为-90dbm。The moment corresponding to the last state switching is regarded as the historical moment. It can be understood that, in this embodiment, it is not the initial adjustment of the door lock state, and the signal strength of the door lock control signal corresponding to the historical moment is regarded as the second signal strength, for example, the first The second signal strength can be -90dbm.
步骤S550、计算所述第一信号强度与所述第二信号强度之间的信号强度差。Step S550: Calculate the signal strength difference between the first signal strength and the second signal strength.
结合上述例子,信号强度差为(-90dbm)-(-100dbm)=10dbm。Combined with the above example, the signal strength difference is (-90dbm)-(-100dbm)=10dbm.
步骤S560、当所述信号强度差大于预设强度差时,通过所述第一门锁控制信号控制所述门锁。Step S560, when the signal strength difference is greater than a preset strength difference, control the door lock through the first door lock control signal.
例如,预设强度差为5dbm,预设强度差10dbm大于预设强度差5dbm,则通过第一门锁控制信号控制门锁。For example, if the preset intensity difference is 5dbm, and the preset intensity difference of 10dbm is greater than the preset intensity difference of 5dbm, the door lock is controlled by the first door lock control signal.
需要说明的是,也可以单独的使用信号强度差来控制门锁,即信号强度差大于预设强度差时,通过第一门锁控制信号控制门锁。It should be noted that the door lock can also be controlled solely by using the signal strength difference, that is, when the signal strength difference is greater than the preset strength difference, the door lock is controlled by the first door lock control signal.
在本实例中,当第一门锁控制信号与第二门锁控制信号相同时,通过第一门锁控制信号控制门锁,当第一门锁控制信号与第二门锁控制信号不同时,获取所述第一门锁控制信号的信号强度作为第一信号强度,并且获取历史时刻对应的门锁控制信号的信号强度作为第二信号强度,计算第一信号强度与第二 信号强度之间的信号强度差,当信号强度差大于预设强度差时,通过第一门锁控制信号控制门锁,确保门锁准确控制。In this example, when the first door lock control signal is the same as the second door lock control signal, the door lock is controlled by the first door lock control signal, and when the first door lock control signal and the second door lock control signal are different, The signal strength of the first door lock control signal is obtained as the first signal strength, and the signal strength of the door lock control signal corresponding to the historical moment is obtained as the second signal strength, and the difference between the first signal strength and the second signal strength is calculated. The signal strength is poor. When the signal strength difference is greater than the preset strength difference, the door lock is controlled by the first door lock control signal to ensure accurate control of the door lock.
为实现上述方法类实施例,本实施例提供一种门锁控制装置,图7示出了本申请一实施例提供的门锁控制装置的框图,请参阅图7,门锁控制装置100包括:获取模块110和控制模块120。In order to implement the above method embodiments, this embodiment provides a door lock control device. FIG. 7 shows a block diagram of the door lock control device provided by an embodiment of the present application. Please refer to FIG. 7 . The door lock control device 100 includes: The acquisition module 110 and the control module 120 .
获取模块110,用于获取当前时刻对应的门锁控制信号作为第一门锁控制信号,以及获取所述当前时刻之前的预设时间间隔内的多个门锁控制信号作为第二门锁控制信号;The acquiring module 110 is configured to acquire the door lock control signal corresponding to the current moment as the first door lock control signal, and acquire a plurality of door lock control signals within the preset time interval before the current moment as the second door lock control signal ;
控制模块120,用于当所述第一门锁控制信号与所述第二门锁控制信号相同时,通过所述第一门锁控制信号控制所述门锁。The control module 120 is configured to control the door lock through the first door lock control signal when the first door lock control signal is the same as the second door lock control signal.
可选地,所述门锁控制信号包括解锁控制信号和闭锁控制信号,获取模块110包括:解锁控制信号获取子模块和闭锁控制信号获取子模块。Optionally, the door lock control signal includes an unlocking control signal and a locking control signal, and the obtaining module 110 includes: an unlocking control signal obtaining sub-module and a locking control signal obtaining sub-module.
解锁控制信号获取子模块,用于获取所述当前时刻对应的解锁控制信号作为第一解锁控制信号,以及获取所述当前时刻之前的第一预设时间间隔内的多个解锁控制信号作为第二解锁控制信号;或The unlocking control signal acquisition sub-module is used to acquire the unlocking control signal corresponding to the current moment as the first unlocking control signal, and acquire a plurality of unlocking control signals within the first preset time interval before the current moment as the second unlocking control signal Unlock control signal; or
闭锁控制信号获取子模块,用于获取所述当前时刻对应的所述闭锁控制信号作为第一闭锁控制信号,以及获取所述当前时刻之前的第二预设时间间隔内的多个闭锁控制信号作为第二闭锁控制信号,其中,所述第一预设时间间隔小于所述第二预设时间间隔。A blocking control signal acquisition sub-module for acquiring the blocking control signal corresponding to the current moment as a first blocking control signal, and acquiring multiple blocking control signals within a second preset time interval before the current moment as a The second blocking control signal, wherein the first preset time interval is smaller than the second preset time interval.
可选地,控制模块120包括:解锁控制子模块或闭锁控制子模块。Optionally, the control module 120 includes: an unlocking control sub-module or a locking control sub-module.
解锁控制子模块,用于当所述第一门锁控制信号与所述第二门锁控制信号相同时,通过所述第一门锁控制信号指示的解锁状态控制所述门锁解锁;或an unlocking control sub-module, configured to control the unlocking of the door lock through the unlocking state indicated by the first door lock control signal when the first door lock control signal is the same as the second door lock control signal; or
闭锁控制子模块,用于当所述第一门锁控制信号与所述第二门锁控制信号相同时,通过所述第一门锁控制信号指示的闭锁状态控制所述门锁闭锁。A locking control sub-module is configured to control the locking of the door through the locking state indicated by the first door lock control signal when the first door lock control signal is the same as the second door lock control signal.
可选地,门锁控制装置100还包括:门锁状态获取模块、解锁概率获取模块和解锁状态确定模块。Optionally, the door lock control device 100 further includes: a door lock state acquisition module, an unlock probability acquisition module, and an unlock state determination module.
门锁状态获取模块,用于获取预设时间段对应的多个门锁状态,其中,所述门锁状态包括解锁状态和闭锁状态;a door lock state acquisition module, configured to acquire a plurality of door lock states corresponding to a preset time period, wherein the door lock states include an unlocked state and a locked state;
解锁概率获取模块,用于计算所述解锁状态在所述多个门锁状态中所占的概率,获得解锁概率;an unlocking probability acquisition module, configured to calculate the probability of the unlocking state in the plurality of door lock states, and obtain the unlocking probability;
解锁状态确定模块,用于当所述解锁概率大于预设概率时,确定所述当前时刻对应的第一门锁控制信号指示的门锁状态为解锁状态。The unlocking state determination module is configured to determine that the door lock state indicated by the first door lock control signal corresponding to the current moment is the unlock state when the unlocking probability is greater than a preset probability.
可选地,门锁状态获取模块包括:门锁状态获取子模块。Optionally, the door lock state acquisition module includes: a door lock state acquisition sub-module.
门锁状态获取子模块,用于获取所述预设时间段对应的多个信号强度,并通过预设算法获取所述多个信号强度对应的所述多个门锁状态。The door lock state acquisition sub-module is configured to acquire multiple signal intensities corresponding to the preset time period, and acquire the multiple door lock states corresponding to the multiple signal intensities through a preset algorithm.
可选地,控制模块120包括:第一目标门锁状态获取子模块和第二目标门锁状态获取子模块。Optionally, the control module 120 includes: a first target door lock state acquisition submodule and a second target door lock state acquisition submodule.
第一目标门锁状态获取子模块,用于当所述第一门锁控制信号与所述第二门锁控制信号相同时,获取当前门锁状态,以及获取所述当前时刻对应的所述第一门锁控制信号指示的目标门锁状态;The first target door lock state acquisition sub-module is used to acquire the current door lock state when the first door lock control signal is the same as the second door lock control signal, and to acquire the first door lock state corresponding to the current moment. A target door lock state indicated by a door lock control signal;
第二目标门锁状态获取子模块,用于当所述当前门锁状态与所述目标门锁状态不同时,通过所述当前时刻对应的所述第一门锁控制信号控制所述门锁从所述当前门锁状态切换为所述目标门锁状态。The second target door lock state acquisition sub-module is configured to control the door lock from The current door lock state is switched to the target door lock state.
可选地,门锁控制装置100还包括:第一信号强度获取模块、第二信号强度获取模块、信号强度差获取模块和门锁控制模块。Optionally, the door lock control apparatus 100 further includes: a first signal strength acquisition module, a second signal strength acquisition module, a signal strength difference acquisition module, and a door lock control module.
第一信号强度获取模块,用于当所述第一门锁控制信号与所述第二门锁控制信号不同时,获取所述第一门锁控制信号的信号强度作为第一信号强度;a first signal strength acquisition module, configured to acquire the signal strength of the first door lock control signal as the first signal strength when the first door lock control signal is different from the second door lock control signal;
第二信号强度获取模块,用于获取所述当前时刻的前一次门锁状态切换的时刻作为历史时刻,并获取所述历史时刻对应的门锁控制信号的信号强度作为第二信号强度;The second signal strength acquisition module is used to acquire the moment of the previous door lock state switching at the current moment as a historical moment, and acquire the signal strength of the door lock control signal corresponding to the historical moment as the second signal strength;
信号强度差获取模块,用于计算所述第一信号强度与所述第二信号强度之间的信号强度差;a signal strength difference acquiring module, configured to calculate the signal strength difference between the first signal strength and the second signal strength;
门锁控制模块,用于当所述信号强度差大于预设强度差时,通过所述第一门锁控制信号控制所述门锁。A door lock control module, configured to control the door lock through the first door lock control signal when the signal strength difference is greater than a preset strength difference.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and modules, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in this application, the coupling between the modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
图8是本申请实施例的用于执行根据本申请实施例的门锁控制方法的电子设备的框图,请参阅图8,其示出了本申请实施例提供的一种车辆200的结构框图。该车辆200可以是智能手机、平板电脑、电子书 等能够运行应用程序的电子设备。本申请中的车辆200可以包括一个或多个如下部件:处理器210、存储器220以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器220中并被配置为由一个或多个处理器210执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。FIG. 8 is a block diagram of an electronic device for executing a door lock control method according to an embodiment of the present application. Please refer to FIG. 8 , which shows a structural block diagram of a vehicle 200 provided by an embodiment of the present application. The vehicle 200 may be an electronic device capable of running an application program, such as a smartphone, a tablet computer, an e-book, or the like. The vehicle 200 in the present application may include one or more of the following components: a processor 210, a memory 220, and one or more application programs, wherein the one or more application programs may be stored in the memory 220 and configured to be executed by one or more A plurality of processors 210 execute, and one or more programs are configured to execute the methods described in the foregoing method embodiments.
其中,处理器210可以包括一个或者多个处理核。处理器210利用各种接口和线路连接整个车辆200内的各个部分,通过运行或执行存储在存储器220内的指令、程序、代码集或指令集,以及调用存储在存储器220内的数据,执行车辆200的各种功能和处理数据。可选地,处理器210可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器210可集成中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责待显示组件的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器210中,单独通过一块通信芯片进行实现。The processor 210 may include one or more processing cores. The processor 210 uses various interfaces and lines to connect various parts of the entire vehicle 200, and executes the vehicle by running or executing instructions, programs, code sets or instruction sets stored in the memory 220, and calling data stored in the memory 220. 200 various functions and processing data. Optionally, the processor 210 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). implemented in a hardware form. The processor 210 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface, and application programs; the GPU is used for rendering and drawing of components to be displayed; the modem is used for wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 210, and is implemented by a communication chip alone.
存储器220可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器220可用于存储指令、程序、代码、代码集或指令集。存储器220可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储车辆200在使用中所创建的数据(比如历史配置文件)等。The memory 220 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). Memory 220 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 220 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like. The storage data area may also store data (such as historical configuration files) created by the vehicle 200 in use, and the like.
图9示出了本申请实施例的用于保存或者携带实现根据本申请实施例的门锁控制方法的程序代码的存储单元,请参阅9,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质300中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。FIG. 9 shows a storage unit for storing or carrying a program code for implementing the door lock control method according to the embodiment of the present application, please refer to 9, which shows a computer provided by the embodiment of the present application A structural block diagram of a readable storage medium. The computer-readable medium 300 stores program codes, and the program codes can be invoked by the processor to execute the methods described in the above method embodiments.
计算机可读存储介质300可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质300包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质300具有执行上述方法中的任何方法步骤的程序代码310的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码310可以例如以适当形式进行压缩。The computer-readable storage medium 300 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 300 has storage space for program code 310 for performing any of the method steps in the above-described methods. These program codes can be read from or written to one or more computer program products. The program code 310 may be compressed, for example, in a suitable form.
综上所述,本申请提供一种门锁控制方法、装置、汽车及存储介质,获取当前时刻对应的门锁控制信号作为第一门锁控制信号,以及获取当前时刻之前的预设时间间隔(即历史时刻至当前时刻之间)的多个门锁控制信号作为第二门锁控制信号,当第一门锁控制信号与第二门锁控制信号相同时,通过第一门锁控制信号控制门锁,在历史时刻至当前时刻之间控制门锁的门锁控制信号稳定,再通过该门锁控制信号控制门锁,保证了车门状态的准确控制,防止误操作。To sum up, the present application provides a door lock control method, device, vehicle and storage medium, obtains the door lock control signal corresponding to the current moment as the first door lock control signal, and obtains the preset time interval ( That is, the multiple door lock control signals from the historical time to the current time) are used as the second door lock control signal. When the first door lock control signal is the same as the second door lock control signal, the door is controlled by the first door lock control signal. The door lock control signal that controls the door lock between the historical time and the current time is stable, and then the door lock is controlled by the door lock control signal, which ensures the accurate control of the door state and prevents misoperation.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

  1. 一种门锁控制方法,其特征在于,所述方法包括:A door lock control method, characterized in that the method comprises:
    获取当前时刻对应的门锁控制信号作为第一门锁控制信号,以及获取所述当前时刻之前的预设时间间隔内的多个门锁控制信号作为第二门锁控制信号;Obtain the door lock control signal corresponding to the current moment as the first door lock control signal, and obtain a plurality of door lock control signals within the preset time interval before the current moment as the second door lock control signal;
    当所述第一门锁控制信号与所述第二门锁控制信号相同时,通过所述第一门锁控制信号控制所述门锁。When the first door lock control signal is the same as the second door lock control signal, the door lock is controlled by the first door lock control signal.
  2. 根据权利要求1所述的方法,其特征在于,所述门锁控制信号包括解锁控制信号和闭锁控制信号,所述获取当前时刻对应的门锁控制信号作为第一门锁控制信号,以及获取所述当前时刻之前的预设时间间隔内的多个门锁控制信号作为第二门锁控制信号,包括:The method according to claim 1, wherein the door lock control signal includes an unlock control signal and a lock control signal, the obtaining the door lock control signal corresponding to the current moment is used as the first door lock control signal, and obtaining all the door lock control signals. The multiple door lock control signals in the preset time interval before the current moment are used as the second door lock control signal, including:
    获取所述当前时刻对应的解锁控制信号作为第一解锁控制信号,以及获取所述当前时刻之前的第一预设时间间隔内的多个解锁控制信号作为第二解锁控制信号;或Obtain the unlocking control signal corresponding to the current moment as the first unlocking control signal, and obtain a plurality of unlocking control signals within the first preset time interval before the current moment as the second unlocking control signal; or
    获取所述当前时刻对应的所述闭锁控制信号作为第一闭锁控制信号,以及获取所述当前时刻之前的第二预设时间间隔内的多个闭锁控制信号作为第二闭锁控制信号,其中,所述第一预设时间间隔小于所述第二预设时间间隔。Acquiring the blocking control signal corresponding to the current moment as a first blocking control signal, and acquiring a plurality of blocking control signals within a second preset time interval before the current moment as a second blocking control signal, wherein the The first preset time interval is smaller than the second preset time interval.
  3. 根据权利要求1所述的方法,其特征在于,所述当所述第一门锁控制信号与所述第二门锁控制信号相同时,通过所述第一门锁控制信号控制所述门锁,包括:The method according to claim 1, wherein when the first door lock control signal is the same as the second door lock control signal, the door lock is controlled by the first door lock control signal ,include:
    当所述第一门锁控制信号与所述第二门锁控制信号相同时,通过所述第一门锁控制信号指示的解锁状态控制所述门锁解锁;或When the first door lock control signal is the same as the second door lock control signal, the door lock is controlled to be unlocked through the unlock state indicated by the first door lock control signal; or
    当所述第一门锁控制信号与所述第二门锁控制信号相同时,通过所述第一门锁控制信号指示的闭锁状态控制所述门锁闭锁。When the first door lock control signal is the same as the second door lock control signal, the door lock is controlled to be locked by the lock state indicated by the first door lock control signal.
  4. 根据权利要求3所述的方法,其特征在于,所述当所述第一门锁控制信号与所述第二门锁控制信号相同时,通过所述第一门锁控制信号指示的解锁状态控制所述门锁解锁之前,还包括:The method according to claim 3, wherein when the first door lock control signal is the same as the second door lock control signal, the unlocking state control signal indicated by the first door lock control signal is used to control the Before the door lock is unlocked, it also includes:
    获取预设时间段对应的多个门锁状态,其中,所述门锁状态包括解锁状态和闭锁状态;Acquiring multiple door lock states corresponding to a preset time period, wherein the door lock states include an unlocked state and a locked state;
    计算所述解锁状态在所述多个门锁状态中所占的概率,获得解锁概率;Calculate the probability that the unlocked state occupies in the plurality of door lock states to obtain the unlocking probability;
    当所述解锁概率大于预设概率时,确定所述当前时刻对应的第一门锁控制信号指示的门锁状态为解锁状态。When the unlock probability is greater than the preset probability, it is determined that the door lock state indicated by the first door lock control signal corresponding to the current moment is the unlock state.
  5. 根据权利要求4所述的方法,其特征在于,所述获取预设时间段对应的多个门锁状态,包括:The method according to claim 4, wherein the acquiring a plurality of door lock states corresponding to a preset time period comprises:
    获取所述预设时间段对应的多个信号强度,并通过预设算法获取所述多个信号强度对应的所述多个门锁状态。Acquire multiple signal strengths corresponding to the preset time period, and acquire the multiple door lock states corresponding to the multiple signal strengths through a preset algorithm.
  6. 根据权利要求1所述的方法,其特征在于,所述当所述第一门锁控制信号与所述第二门锁控制信号相同时,通过所述第一门锁控制信号控制所述门锁,包括:The method according to claim 1, wherein when the first door lock control signal is the same as the second door lock control signal, the door lock is controlled by the first door lock control signal ,include:
    当所述第一门锁控制信号与所述第二门锁控制信号相同时,获取当前门锁状态,以及获取所述当前时刻对应的所述第一门锁控制信号指示的目标门锁状态;When the first door lock control signal is the same as the second door lock control signal, obtain the current door lock state, and obtain the target door lock state indicated by the first door lock control signal corresponding to the current moment;
    当所述当前门锁状态与所述目标门锁状态不同时,通过所述当前时刻对应的所述第一门锁控制信号控制所述门锁从所述当前门锁状态切换为所述目标门锁状态。When the current door lock state is different from the target door lock state, control the door lock to switch from the current door lock state to the target door through the first door lock control signal corresponding to the current moment lock status.
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    当所述第一门锁控制信号与所述第二门锁控制信号不同时,获取所述第一门锁控制信号的信号强度作为第一信号强度;When the first door lock control signal is different from the second door lock control signal, acquiring the signal strength of the first door lock control signal as the first signal strength;
    获取所述当前时刻的前一次门锁状态切换的时刻作为历史时刻,并获取所述历史时刻对应的门锁控制信号的信号强度作为第二信号强度;Obtain the moment of the previous door lock state switch at the current moment as a historical moment, and acquire the signal strength of the door lock control signal corresponding to the historical moment as the second signal strength;
    计算所述第一信号强度与所述第二信号强度之间的信号强度差;calculating a signal strength difference between the first signal strength and the second signal strength;
    当所述信号强度差大于预设强度差时,通过所述第一门锁控制信号控制所述门锁。When the signal strength difference is greater than a preset strength difference, the door lock is controlled by the first door lock control signal.
  8. 一种门锁控制装置,其特征在于,所述装置包括:A door lock control device, characterized in that the device comprises:
    获取模块,用于获取当前时刻对应的门锁控制信号作为第一门锁控制信号,以及获取所述当前时刻之前的预设时间间隔内的多个门锁控制信号作为第二门锁控制信号;an acquisition module, configured to acquire a door lock control signal corresponding to the current moment as a first door lock control signal, and acquire a plurality of door lock control signals within a preset time interval before the current moment as a second door lock control signal;
    控制模块,用于当所述第一门锁控制信号与所述第二门锁控制信号相同时,通过所述第一门锁控制信号控制所述门锁。A control module, configured to control the door lock through the first door lock control signal when the first door lock control signal is the same as the second door lock control signal.
  9. 一种汽车,其特征在于,包括:A vehicle, characterized in that it includes:
    一个或多个处理器;one or more processors;
    存储器;memory;
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-7任一项所述的方法。One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs are configured to perform such as The method of any one of claims 1-7.
  10. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-7任一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores program codes, and the program codes can be invoked by a processor to execute the method according to any one of claims 1-7 .
PCT/CN2021/111185 2021-04-07 2021-08-06 Door lock control method and device, automobile, and storage medium WO2022213522A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110373020.3A CN113129484B (en) 2021-04-07 2021-04-07 Door lock control method and device, automobile and storage medium
CN202110373020.3 2021-04-07

Publications (1)

Publication Number Publication Date
WO2022213522A1 true WO2022213522A1 (en) 2022-10-13

Family

ID=76775254

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/111185 WO2022213522A1 (en) 2021-04-07 2021-08-06 Door lock control method and device, automobile, and storage medium

Country Status (2)

Country Link
CN (1) CN113129484B (en)
WO (1) WO2022213522A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113129484B (en) * 2021-04-07 2022-12-13 广州小鹏汽车科技有限公司 Door lock control method and device, automobile and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011231567A (en) * 2010-04-30 2011-11-17 Tokai Rika Co Ltd Electronic key system
CN102568148A (en) * 2010-12-31 2012-07-11 淮南矿业(集团)有限责任公司 Early warning method and early warning system
US20160318475A1 (en) * 2013-12-31 2016-11-03 Huf North America Automotive Parts Mfg. Corp. Bluetooth verification for vehicle access systems
CN111770501A (en) * 2020-06-30 2020-10-13 北京四海万联科技有限公司 Bluetooth digital key positioning system and method for preventing relay attack
CN113129484A (en) * 2021-04-07 2021-07-16 广州小鹏汽车科技有限公司 Door lock control method and device, automobile and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4701777B2 (en) * 2005-03-25 2011-06-15 アイシン精機株式会社 Vehicle door lock device
CN105909116B (en) * 2016-04-28 2017-08-04 百度在线网络技术(北京)有限公司 Control method, the apparatus and system of car door
CN207337509U (en) * 2017-10-14 2018-05-08 浙江鑫飞智能工程有限公司 A kind of multifunctional intellectual access control system
JP2019157426A (en) * 2018-03-09 2019-09-19 株式会社東芝 Door lock control system and door lock device
KR102029659B1 (en) * 2018-05-16 2019-10-08 주식회사 서연전자 Apparatus and method for controlling door unlocking of an automobile
US11383676B2 (en) * 2018-05-31 2022-07-12 Shanghai Sensetime Intelligent Technology Co., Ltd Vehicles, vehicle door unlocking control methods and apparatuses, and vehicle door unlocking systems
CN109448171A (en) * 2018-09-27 2019-03-08 深圳市迈悍德实业有限公司 A kind of method and smart lock of unlocking

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011231567A (en) * 2010-04-30 2011-11-17 Tokai Rika Co Ltd Electronic key system
CN102568148A (en) * 2010-12-31 2012-07-11 淮南矿业(集团)有限责任公司 Early warning method and early warning system
US20160318475A1 (en) * 2013-12-31 2016-11-03 Huf North America Automotive Parts Mfg. Corp. Bluetooth verification for vehicle access systems
CN111770501A (en) * 2020-06-30 2020-10-13 北京四海万联科技有限公司 Bluetooth digital key positioning system and method for preventing relay attack
CN113129484A (en) * 2021-04-07 2021-07-16 广州小鹏汽车科技有限公司 Door lock control method and device, automobile and storage medium

Also Published As

Publication number Publication date
CN113129484B (en) 2022-12-13
CN113129484A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
US20220223150A1 (en) Voice wakeup method and device
US9654978B2 (en) Asset accessibility with continuous authentication for mobile devices
CN108222674B (en) Door lock state detection method and device and door lock
EP3163498B1 (en) Alarming method and device
CN106991304B (en) Message processing method and device
US9928725B2 (en) Method and device for reminding user
US10356617B2 (en) Mobile device to provide continuous authentication based on contextual awareness
CN106055097A (en) Screen lighting control method and apparatus, and electronic device
WO2017032099A1 (en) Voice recognition parameter adjustment method, device and mobile terminal
EP3575917B1 (en) Collecting fingerprints
EP3022630B1 (en) Movement-triggered action for mobile device
CN109040351B (en) Camera control method and device, mobile terminal and storage medium
WO2019015575A1 (en) Unlocking control method and related product
WO2022213522A1 (en) Door lock control method and device, automobile, and storage medium
CN109104521B (en) Method and device for correcting approaching state, mobile terminal and storage medium
CN112634895A (en) Voice interaction wake-up-free method and device
CN109635700A (en) Obstacle recognition method, equipment, system and storage medium
US10126423B1 (en) Method and apparatus for stopping distance selection
CN106790992A (en) Safety prompt function method and smart mobile phone
CN114506292A (en) Automobile tail gate control method and system and vehicle
CN112884948A (en) Vehicle locking method, system, storage medium and vehicle-mounted terminal
CN108985033B (en) Terminal device control method and device and terminal device
CN115359789A (en) Voice interaction method and related device, equipment and storage medium
CN109600514B (en) Unlocking control method and device, mobile terminal and storage medium
CN114697441A (en) Alarm clock control method, storage medium and terminal equipment

Legal Events

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

Ref document number: 21935742

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21935742

Country of ref document: EP

Kind code of ref document: A1