Digital key control method, device, electronic device and medium
By allocating the tasks of the vehicle body anchor Bluetooth module within the vehicle-side time-sharing scanning cycle, the problem of slow connection speed of the vehicle-side digital key is solved, fast connection and efficient key discovery are achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202411616208.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2044-11-13
AI Technical Summary
In the existing technology, the speed of connecting the vehicle-side digital key to the BLE physical key is slow, which may result in the key not being able to take effect in time when the user approaches the vehicle door.
By controlling the first Bluetooth module on the vehicle side and the second Bluetooth module on the vehicle body anchor point, the broadcast information of the BLE physical key is scanned in a time-sharing manner within the preset scanning cycle, and a connection is made after the broadcast information is scanned. The Bluetooth module on the vehicle body anchor point is used to share the scanning task to ensure a quick connection.
Improved the discovery speed and connection efficiency of BLE physical keys, ensuring that the keys can take effect promptly within the discoverable range, improving the user experience.
Smart Images

Figure CN119445707B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle key connection, and more specifically, to a digital key control method, device, electronic device, and medium. Background Art
[0002] With the increasing popularity of digital car keys, third-generation digital keys (NFC+BLE+UWB) have made significant progress in smart cars. NFC stands for Near Field Communication, BLE stands for Bluetooth Low Energy, and UWB stands for Ultra-Wideband. Mobile phones, watches, wristbands, and BLE physical keys, acting as car keys, are smart keys based on BLE connectivity. Because BLE physical keys use small, non-rechargeable batteries, their power consumption must be kept within a certain range, otherwise the physical keys will require frequent battery replacements. Smart keys like mobile phones, watches, and wristbands, on the other hand, have large, rechargeable batteries, so their power consumption does not restrict key performance.
[0003] Due to the power consumption characteristics of Bluetooth broadcasting and scanning, BLE physical keys typically periodically send connection broadcasts, which the vehicle scans for to establish a connection, reducing the physical key's power consumption. However, mobile phones, watches, and wristband keys scan vehicle-side broadcasts, establishing a Bluetooth connection. Before a Bluetooth connection is established between the BLE physical key and the vehicle, the physical key's Bluetooth module acts as the broadcaster, sending the connection broadcast. The vehicle's Bluetooth module acts as the scanner, scanning for the connection broadcast sent by the BLE physical key.
[0004] During the Bluetooth connection process, the scanning party starts a scanning window and, if it detects the target broadcast within the scanning window, initiates a connection with the target broadcast. The Bluetooth module in the vehicle's digital key control device is responsible for both sending broadcasts to be scanned by mobile phones, watches, and wristband keys, and scanning broadcasts from BLE physical keys. Furthermore, when multiple keys are connected, it also performs both broadcasting and scanning during Bluetooth communication. Therefore, the vehicle's digital key control device's Bluetooth module cannot use 100% of its time to scan for BLE physical key Bluetooth broadcasts. This can result in slower connection establishment when the BLE physical key is near the vehicle, and may even prevent the BLE physical key from taking effect even after the user has reached the vehicle door.
[0005] In view of this, this application is hereby filed. Summary of the Invention
[0006] The purpose of this application is to provide a digital key control method, device, electronic device and medium to solve the problem of slow connection speed of vehicle-side digital key to BLE physical key in the prior art.
[0007] In order to achieve the above objectives, this application adopts the following technical solutions:
[0008] In a first aspect, the present application provides a digital key control method, which is applied to a vehicle, comprising:
[0009] Controlling the first Bluetooth module of the digital key and the second Bluetooth module of at least one vehicle body anchor point to scan the broadcast information sent by the BLE physical key in a time-sharing manner within a preset scanning period;
[0010] When the first Bluetooth module scans the broadcast information, controlling the first Bluetooth module to connect with the BLE physical key;
[0011] When at least one of the second Bluetooth modules scans the broadcast information, the scanning window is controlled to be closed until the scanning stop time reaches a preset time interval, and the first Bluetooth module is controlled to scan the broadcast information within the preset scanning time. When the first Bluetooth module scans the broadcast information within the preset scanning time, the first Bluetooth module is controlled to connect to the BLE physical key.
[0012] In some technical solutions, before the first Bluetooth module controlling the digital key and the second Bluetooth module of at least one vehicle body anchor point time-share scan the broadcast information sent by the BLE physical key within a preset scanning period, the method further includes:
[0013] The preset scanning period is determined according to the BLE physical key broadcast period, the number of vehicle body anchor points, the first Bluetooth module scanning time of the digital key and the second Bluetooth module scanning time of the vehicle body anchor points.
[0014] In some technical solutions, before the first Bluetooth module controlling the digital key and the second Bluetooth module of at least one vehicle body anchor point time-share scan the broadcast information sent by the BLE physical key within a preset scanning period, the method further includes:
[0015] The first Bluetooth module controlling the digital key sends a synchronization timing broadcast message in the vehicle body anchor network;
[0016] The second Bluetooth module of at least one vehicle body anchor point is controlled to receive the synchronous timing broadcast message and start timing synchronously.
[0017] In some technical solutions, the first Bluetooth module controlling the digital key and the second Bluetooth module of at least one vehicle body anchor point time-share scan the broadcast information sent by the BLE physical key within a preset scanning period, including:
[0018] Control the first Bluetooth module of the digital key to open a scanning window, scan the broadcast information sent by the BLE physical key within the scanning time of the first Bluetooth module, and close the scanning window;
[0019] The second Bluetooth module of at least one vehicle body anchor point is controlled to open a scanning window, scan the broadcast information within the scanning time of the second Bluetooth module, and close the scanning window.
[0020] In some technical solutions, when the second Bluetooth module does not open a scanning window and there are no other tasks, the second Bluetooth module is controlled to sleep; when the second Bluetooth module does not open a scanning window and there are other tasks, the second Bluetooth module is controlled to perform other tasks.
[0021] In some technical solutions, when at least one of the second Bluetooth modules scans the broadcast information, controlling the scanning window to be closed until the scanning stop time reaches a preset time interval, controlling the first Bluetooth module to scan the broadcast information within a preset scanning time, and when the first Bluetooth module scans the broadcast information within the preset scanning time, controlling the first Bluetooth module to connect to the BLE physical key, including:
[0022] When at least one of the second Bluetooth modules scans the broadcast information, obtaining a notification message sent by the second Bluetooth module;
[0023] According to the notification message, the scanning window is controlled to be closed until the scanning stop time reaches a preset time interval, the first Bluetooth module is controlled to open the scanning window, and the broadcast information is scanned within the preset scanning time. When the first Bluetooth module scans the broadcast information within the preset scanning time, the first Bluetooth module is controlled to connect with the BLE physical key.
[0024] In some technical solutions, the preset scanning period is shorter than the BLE physical key broadcast period, the preset time interval is shorter than the BLE physical key broadcast period, and the preset scanning time is longer than the scanning time of the first Bluetooth module during the time-sharing scanning.
[0025] In a second aspect, the present application provides a digital key control device, comprising:
[0026] A time-sharing scanning module, used to control the first Bluetooth module of the digital key and the second Bluetooth module of at least one vehicle body anchor point to time-sharingly scan the broadcast information sent by the BLE physical key within a preset scanning period;
[0027] a connection module, configured to control the first Bluetooth module to connect with the BLE physical key when the first Bluetooth module scans the broadcast information;
[0028] When at least one of the second Bluetooth modules scans the broadcast information, the scanning window is controlled to be closed until the scanning stop time reaches a preset time interval, and the first Bluetooth module is controlled to scan the broadcast information within the preset scanning time. When the first Bluetooth module scans the broadcast information within the preset scanning time, the first Bluetooth module is controlled to connect to the BLE physical key.
[0029] In a third aspect, the present application provides an electronic device, comprising:
[0030] at least one processor, and a memory communicatively coupled to the at least one processor;
[0031] The memory stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors to enable at least one of the processors to perform the above method.
[0032] In a fourth aspect, the present application provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable a computer to execute the above method.
[0033] Compared with the prior art, the present invention has the following advantages:
[0034] The digital key control method provided in the present application is applied to the vehicle side, including: controlling the first Bluetooth module of the digital key and the second Bluetooth module of at least one vehicle body anchor point to scan the broadcast information sent by the BLE physical key in a time-sharing manner within a preset scanning period; when the first Bluetooth module scans the broadcast information, controlling the first Bluetooth module to connect with the BEL physical key; when at least one of the second Bluetooth modules scans the broadcast information, controlling the closing of the scanning window until the scanning stop time reaches a preset time interval, controlling the first Bluetooth module to scan the broadcast information within the preset scanning time, and when the first Bluetooth module scans the broadcast information within the preset scanning time, controlling the first Bluetooth module to connect with the BEL physical key. The method first controls the first Bluetooth module and the second Bluetooth module to scan the broadcast information in a time-sharing manner within a preset scanning cycle. The scanning tasks that the first Bluetooth module cannot complete due to executing the broadcast sending task can be distributed to the second Bluetooth module, ensuring that the broadcast information is discovered by the vehicle end at once when it appears in the discoverable range, greatly improving the speed of discovering the BLE physical key. During the time-sharing scanning within the preset scanning cycle, if the broadcast information is discovered by the first Bluetooth module, the first Bluetooth module is directly connected to the BLE physical key. If the broadcast information is discovered by the second Bluetooth module, the scanning is first controlled to stop. After the stop scanning time reaches a preset time interval, the first Bluetooth module is controlled to scan the broadcast information within the preset scanning time. The broadcast information will definitely be scanned within the preset scanning time. When the broadcast information is discovered by the first Bluetooth module, the first Bluetooth module is connected to the BLE physical key. The method fully utilizes the Bluetooth scanning function of the vehicle body anchor point through time-sharing multiplexing. Without affecting other tasks or functions of each Bluetooth module on the vehicle end, the method enables the first Bluetooth module to establish a connection with the BLE physical key when the BLE physical key sends the broadcast information for the first or second time within the discoverable range. The connection speed is fast, which improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the specific implementation methods or the description of the prior art. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0036] Figure 1 This is a flowchart of the digital key control method provided by this application;
[0037] Figure 2 It is a structural diagram of the digital key control device provided by this application;
[0038] Figure 3It is a structural diagram of the electronic device provided in this application. DETAILED DESCRIPTION
[0039] The following description of exemplary embodiments of the present application is made in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding. These details should be considered as merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0040] As mentioned in the background technology, the existing technology has the problem that the digital key on the vehicle side cannot use 100% of the time segment to scan the Bluetooth broadcast of the BLE physical key, which may lead to a slow connection establishment when the BLE physical key is close to the car, and may even cause the BLE physical key to still not take effect when the user reaches the car door. Based on the above problems, the present application controls the first Bluetooth module of the digital key and the second Bluetooth module of at least one vehicle body anchor point to scan the broadcast information sent by the BLE physical key in a time-sharing manner within a preset scanning period, and then connects according to different situations, thereby ensuring that the broadcast information is effectively captured within the period when the BLE physical key sends the broadcast information, achieving a quick connection effect, and ensuring that the BLE physical key takes effect in a timely manner. The present application is further described in detail below in conjunction with the embodiments.
[0041] Example 1
[0042] Figure 1 This is a flowchart of a digital key control method provided in this embodiment. The method can be executed by a digital key control device. The device can be composed of software and / or hardware and is generally integrated in an electronic device. The electronic device can be a body controller or a digital key controller. For ease of understanding, each step in the control method of this embodiment is executed by the digital key controller.
[0043] like Figure 1 As shown, this embodiment provides a digital key control method, which is applied to a vehicle side and includes the following steps:
[0044] S110, controlling the first Bluetooth module of the digital key and the second Bluetooth module of at least one vehicle body anchor point to scan the broadcast information sent by the BLE physical key in a time-sharing manner within a preset scanning period.
[0045] The "digital key" is a key integrated into the vehicle that can unlock the vehicle using communication technologies such as NFC, BLE, or UWB. The first Bluetooth module contained in the digital key can perform both broadcasting and scanning. "Body anchor points" are devices located around the vehicle body that are used to obtain electromagnetic wave intensity readings from the BLE physical key. There can be one, two, three, or four body anchor points. The second Bluetooth module located on each body anchor point can perform scanning and broadcasting. "Time-sharing scanning" involves scanning in different time periods. For example, a preset scanning cycle can be divided into five time periods: the first Bluetooth module scans in the first time period, the second Bluetooth module of the second body anchor point scans in the second time period, the second Bluetooth module of the third body anchor point scans in the third time period, and the second Bluetooth module of the fourth body anchor point scans in the fourth time period. The "preset scanning period" can be set based on the BLE physical key broadcast period. As long as the BLE physical key broadcast period overlaps the preset scanning period, it can be set to the same period, half, or fifth of the BLE physical key broadcast period. The BLE physical key broadcast cycle is the period during which the BLE physical key sends broadcast information.
[0046] In an optional embodiment, before controlling the first Bluetooth module of the digital key and the second Bluetooth module of at least one vehicle body anchor point to time-share scan the broadcast information sent by the BLE physical key within a preset scanning period, the method further includes:
[0047] The preset scanning period is determined according to the BLE physical key broadcast period, the number of vehicle body anchor points, the first Bluetooth module scanning time of the digital key and the second Bluetooth module scanning time of the vehicle body anchor points.
[0048] This embodiment determines the preset scanning period based on the BLE physical key broadcast period, the number of vehicle body anchor points, the scanning time of the first Bluetooth module of the digital key and the scanning time of the second Bluetooth module of the vehicle body anchor point. The preset scanning period is more in line with actual usage requirements. The BLE physical key broadcast period is the period for the BLE physical key to send broadcasts, such as 500ms. The number of vehicle body anchor points refers to the number of vehicle body anchor points used to scan the broadcast information sent by the BLE physical key, such as 2, 4, etc. If one or more anchor points on the vehicle body are not used to scan the broadcast information sent by the BLE physical key, they are not counted. The scanning time of the first Bluetooth module and the second Bluetooth module can be pre-configured or use the default scanning time of the Bluetooth module, such as 20ms or 30ms, etc., and can be the same or different. The scanning time can be as short as possible to reduce Bluetooth power consumption.
[0049] In some examples, if the BLE physical key broadcast cycle is 500ms, within 500ms, the BLE physical key can send a total of 3 broadcasts on 3 network channels (such as 37, 38, and 39 network channels, which are data signal transmission channels using wireless signals as the transmission medium) (each broadcast has a transmission time of approximately 0.6 to 1.2ms), the number of vehicle body anchor points is 4, the scanning time of the first Bluetooth module of the digital key is 20ms, and the scanning time of the second Bluetooth module of the vehicle body anchor point is 20ms, then the preset scanning cycle is 20+20*4=100ms, 100ms<500ms, which meets the scanning requirements. It can be seen that the BLE physical key broadcast cycle is mainly used to determine whether the preset scanning cycle is within its coverage range. If it is within the range, the preset scanning cycle can be used. If it is not within the range, it is necessary to adjust the scanning time of the two Bluetooth modules or adjust the number of vehicle body anchor points.
[0050] If the moment when each Bluetooth module opens the scanning window can be accurately controlled during the time-sharing scanning process, the interference of the results caused by repeated scanning can be reduced. Therefore, in an optional implementation of this embodiment, before the first Bluetooth module controlling the digital key and the second Bluetooth module of at least one vehicle body anchor point time-sharingly scan the broadcast information sent by the BLE physical key within the preset scanning period, it also includes: the first Bluetooth module controlling the digital key sends a synchronous timing broadcast message in the vehicle body anchor point network; the second Bluetooth module controlling at least one vehicle body anchor point receives the synchronous timing broadcast message and starts timing synchronously. This implementation can achieve time synchronization between the first Bluetooth module and the at least one second Bluetooth module. The vehicle body anchor point network includes CAN / LIN / Ethernet or other networks used for vehicle body communication.
[0051] In an optional embodiment, controlling the first Bluetooth module of the digital key and the second Bluetooth module of at least one vehicle body anchor point to time-share scan the broadcast information sent by the BLE physical key within a preset scanning period includes:
[0052] Control the first Bluetooth module of the digital key to open a scanning window, scan the broadcast information sent by the BLE physical key within the scanning time of the first Bluetooth module, and close the scanning window;
[0053] The second Bluetooth module of at least one vehicle body anchor point is controlled to open a scanning window, scan broadcast information within the scanning time of the second Bluetooth module, and close the scanning window.
[0054] This embodiment realizes time-sharing scanning by controlling each Bluetooth module to open and close a scanning window, thereby improving the accuracy of time-sharing scanning and reducing resource waste.
[0055] Continuing with the above example, since there are 4 vehicle body anchor points, there are also 4 corresponding second Bluetooth modules. The first Bluetooth module opens the scanning window immediately after sending the synchronization timing message and starts scanning the broadcast information sent by the BLE physical key. If the second Bluetooth module receives the synchronization timing broadcast message, the 4 second Bluetooth modules calculate the opening time of their respective scanning windows according to their respective numbers, T2 = T1 + anchor point number * t, where T2 is the opening time of a second Bluetooth module scanning window, T1 is the opening time of the first Bluetooth module scanning window, and t is the scanning time of the first Bluetooth module (equal to the scanning time of the second Bluetooth module). For example, if the opening time of the scanning window of the first Bluetooth module is 0, the opening time of the scanning window of the first second Bluetooth module is 20ms, the opening time of the scanning window of the second second Bluetooth module is 40ms, the opening time of the scanning window of the third second Bluetooth module is 60ms, and the opening time of the scanning window of the fourth second Bluetooth module is 80ms.
[0056] In an optional embodiment, if the second Bluetooth module does not have a scanning window open and no other tasks are active, the second Bluetooth module is controlled to sleep. If the second Bluetooth module does not have a scanning window open and no other tasks are active, the second Bluetooth module is controlled to execute other tasks. This embodiment can further reduce the energy consumption of the second Bluetooth module by suspending the module after the scanning window is opened. Other tasks are tasks other than scanning broadcast information sent by the BLE physical key.
[0057] S120 : When the first Bluetooth module scans the broadcast information, control the first Bluetooth module to connect to the BLE physical key.
[0058] If the first Bluetooth module scans the broadcast information, the first Bluetooth module is controlled to connect with the BLE physical key, thereby achieving a one-time discovery and one-time connection effect.
[0059] S130. When at least one second Bluetooth module scans the broadcast information, control the closing of the scanning window until the scanning stop time reaches the preset time interval, control the first Bluetooth module to scan the broadcast information within the preset scanning time, and when the first Bluetooth module scans the broadcast information within the preset scanning time, control the first Bluetooth module to connect with the BLE physical key.
[0060] If the second Bluetooth module scans the broadcast information, it needs to close the scanning window. That is, during the closed period, the first Bluetooth module and the second Bluetooth module will no longer scan until the stop scanning time reaches the preset time interval. At this time, the BLE physical key will enter the next sending cycle. At this time, if the first Bluetooth module is controlled to scan the broadcast information within the preset scanning time, it is very likely to scan it. If it is scanned, the first Bluetooth module is controlled to connect with the BLE physical key, thereby achieving the effect of one scan and two connections. Since the preset scanning cycle and the preset time interval are not too long, a quick connection can be achieved. Among them, the preset time interval can be less than or equal to the BLE physical key broadcast cycle.
[0061] In an optional embodiment, when at least one second Bluetooth module scans broadcast information, controlling the scanning window to close until the scanning stop time reaches a preset time interval, controlling the first Bluetooth module to scan the broadcast information within the preset scanning time, and when the first Bluetooth module scans the broadcast information within the preset scanning time, controlling the first Bluetooth module to connect to the BLE physical key, including:
[0062] When at least one second Bluetooth module scans the broadcast information, obtaining a notification message sent by the second Bluetooth module;
[0063] According to the notification message, the control closes the scanning window until the scanning stop time reaches the preset time interval, controls the first Bluetooth module to open the scanning window, scans the broadcast information within the preset scanning time, and when the first Bluetooth module scans the broadcast information within the preset scanning time, controls the first Bluetooth module to connect with the BLE physical key.
[0064] In this embodiment, when a second Bluetooth module scans broadcast information, the second Bluetooth module will automatically send a notification message (a notification message refers to a message used to inform the digital key that the Bluetooth module has scanned the broadcast information, which can be sent in the form of a body message. The body message refers to a message sent through CAN / LIN / Ethernet or other communication network transmission methods. The message content includes information such as the broadcast content, cycle, and next broadcast time point). Therefore, the notification message can be obtained, and then the scanning window can be closed according to the notification message until the scanning stop time reaches the preset time interval, and the first Bluetooth module is controlled to open the scanning window. This method realizes the accurate scanning of the broadcast information by the first Bluetooth module by using the notification message and the control of closing or opening the scanning window, thereby improving the connection efficiency.
[0065] In an optional embodiment, the preset scanning period is less than the BLE physical key broadcast period, the preset time interval is less than the BLE physical key broadcast period, and the preset scanning time is greater than the scanning time of the first Bluetooth module during time-sharing scanning. In this embodiment, the preset scanning period is less than the BLE physical key broadcast period so that the BLE physical key broadcast period overlaps the preset scanning period, ensuring that the broadcast information is scanned; the preset time interval is less than the BLE physical key broadcast period so that the first Bluetooth module enters the scanning working state in advance, ensuring that no broadcast information is missed; and the preset scanning time is greater than the scanning time of the first Bluetooth module during time-sharing scanning to ensure that the broadcast information can be scanned.
[0066] In some examples, the preset scanning period is 100ms, the BLE physical key broadcast period is 500ms, the preset time interval is 480ms, and the preset scanning time is 50ms.
[0067] In an optional embodiment, the method further includes: when neither the first Bluetooth module nor the second Bluetooth module scans the broadcast information within the first preset scanning cycle, repeating the step of controlling the first Bluetooth module of the digital key and the second Bluetooth module of at least one vehicle body anchor point to time-share scan the broadcast information sent by the BLE physical key within the preset scanning cycle. If neither the first Bluetooth module nor the second Bluetooth module scans the broadcast information within the first preset scanning cycle, it means that there is no BLE physical key that can be connected to the vehicle end, or the BLE physical key has not entered the discoverable range, then step S110 needs to be repeated in subsequent preset scanning cycles so that the adapted BLE physical key can be promptly discovered and connected when it enters the discoverable range.
[0068] The above method first controls the first Bluetooth module and the second Bluetooth module to scan the broadcast information in a time-sharing manner within a preset scanning cycle. The scanning tasks that the first Bluetooth module cannot complete due to executing the broadcast task can be distributed to the second Bluetooth module, ensuring that the broadcast information is discovered by the vehicle end at once when it appears in the discoverable range, greatly improving the speed of discovering the BLE physical key. When the time-sharing scanning is performed within the preset scanning cycle, if the broadcast information is discovered by the first Bluetooth module, the first Bluetooth module is directly connected to the BLE physical key. If the broadcast information is discovered by the second Bluetooth module, the scanning is first controlled to stop. After the stop scanning time reaches the preset time interval, the first Bluetooth module is controlled to scan the broadcast information within the preset scanning time. The broadcast information will definitely be scanned within the preset scanning time. When the broadcast information is discovered by the first Bluetooth module, the first Bluetooth module is connected to the BLE physical key. This method fully utilizes the Bluetooth scanning function of the vehicle body anchor point through time-sharing multiplexing. Without affecting other tasks or functions of each Bluetooth module on the vehicle end, the first Bluetooth module establishes a connection with the BLE physical key when the BLE physical key sends the broadcast information for the first or second time within the discoverable range. The connection speed is fast, which improves the user experience.
[0069] Example 2
[0070] like Figure 2 As shown, this embodiment provides a digital key control device, including:
[0071] A time-sharing scanning module 201 is used to control the first Bluetooth module of the digital key and the second Bluetooth module of at least one vehicle body anchor point to time-sharingly scan the broadcast information sent by the BLE physical key within a preset scanning period;
[0072] The connection module 202 is used to control the first Bluetooth module to connect with the BLE physical key when the first Bluetooth module scans the broadcast information;
[0073] When at least one second Bluetooth module scans the broadcast information, the control is to close the scanning window until the scanning stop time reaches the preset time interval, and the first Bluetooth module is controlled to scan the broadcast information within the preset scanning time. When the first Bluetooth module scans the broadcast information within the preset scanning time, the control is to connect the first Bluetooth module to the BLE physical key.
[0074] The device is used to execute the above method, and thus has at least functional modules and beneficial effects corresponding to the above method.
[0075] Example 3
[0076] like Figure 3 As shown, this embodiment provides an electronic device, including:
[0077] at least one processor; and
[0078] a memory communicatively connected to at least one processor; wherein,
[0079] The memory stores instructions executable by at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the above method. The at least one processor in the electronic device is capable of performing the above method, thereby having at least the same advantages as the above method.
[0080] Optionally, the electronic device also includes an interface for connecting various components, including a high-speed interface and a low-speed interface. The various components are connected to each other using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on a memory to display graphical information of a GUI (Graphical User Interface) on an external input / output device (such as a display device coupled to an interface). In other embodiments, if necessary, multiple processors can be used together with multiple memories, and / or multiple buses can be used together with multiple memories. Similarly, multiple electronic devices can be connected (for example, as a server array, a group of blade servers, or a multi-processor system), and each device provides some necessary operations. Figure 3 A processor 301 is taken as an example.
[0081] Memory 302, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the digital key control method in the embodiments of the present application (for example, the time-sharing scanning module and connection module in the digital key control device). Processor 301 executes the software programs, instructions, and modules stored in memory 302 to execute various functional applications and data processing of the device, thereby implementing the aforementioned digital key control method.
[0082] The memory 302 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function; the data storage area may store data created based on the use of the terminal, etc. Furthermore, the memory 302 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 302 may further include a memory remotely located relative to the processor 301, and these remote memories may be connected to the device via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0083] The electronic device may further include: an input device 303 and an output device 304. The processor 301, the memory 302, the input device 303 and the output device 304 may be connected via a bus or other means. Figure 3 The bus connection is taken as an example.
[0084] The input device 303 can receive input digital or character information, and the output device 304 can include a display device, an auxiliary lighting device (e.g., an LED), and a tactile feedback device (e.g., a vibration motor). The display device can include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some embodiments, the display device can be a touch screen.
[0085] Example 4
[0086] This embodiment provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to cause a computer to execute the above method. The computer instructions on the computer-readable storage medium are used to cause a computer to execute the above method, thereby having at least the same advantages as the above method.
[0087] The medium in this application may be any combination of one or more computer-readable media. The medium may be a computer-readable signal medium or a computer-readable storage medium. The medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination thereof. More specific examples of media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.
[0088] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0089] The program code contained on the computer-readable medium can be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.
[0090] Computer program code for performing the operations of the present application can be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0091] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this application can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this application can be achieved. This is not a limitation herein.
[0092] The above specific embodiments do not constitute a limitation on the scope of protection of this application. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application shall be included within the scope of protection of this application.
Claims
1. A digital key control method, characterized in that: Applied to vehicle side, including: Controlling the first Bluetooth module of the digital key and the second Bluetooth module of at least one vehicle body anchor point to scan the broadcast information sent by the BLE physical key in a time-sharing manner within a preset scanning period; When the first Bluetooth module scans the broadcast information, controlling the first Bluetooth module to connect with the BLE physical key; When at least one of the second Bluetooth modules scans the broadcast information, the scanning window is controlled to be closed until the scanning stop time reaches a preset time interval, and the first Bluetooth module is controlled to scan the broadcast information within the preset scanning time. When the first Bluetooth module scans the broadcast information within the preset scanning time, the first Bluetooth module is controlled to connect to the BLE physical key.
2. The digital key control method according to claim 1, characterized in that: Before the first Bluetooth module controlling the digital key and the second Bluetooth module of at least one vehicle body anchor point time-share scan the broadcast information sent by the BLE physical key within a preset scanning period, the method further includes: The preset scanning period is determined according to the BLE physical key broadcast period, the number of vehicle body anchor points, the first Bluetooth module scanning time of the digital key and the second Bluetooth module scanning time of the vehicle body anchor points.
3. The digital key control method according to claim 1, characterized in that: Before the first Bluetooth module controlling the digital key and the second Bluetooth module of at least one vehicle body anchor point time-share scan the broadcast information sent by the BLE physical key within a preset scanning period, the method further includes: The first Bluetooth module controlling the digital key sends a synchronization timing broadcast message in the vehicle body anchor network; The second Bluetooth module of at least one vehicle body anchor point is controlled to receive the synchronous timing broadcast message and start timing synchronously.
4. The digital key control method according to claim 1, characterized in that: The first Bluetooth module of the control digital key and the second Bluetooth module of at least one vehicle body anchor point time-sharingly scan the broadcast information sent by the BLE physical key within a preset scanning period, including: Control the first Bluetooth module of the digital key to open a scanning window, scan the broadcast information sent by the BLE physical key within the scanning time of the first Bluetooth module, and close the scanning window; The second Bluetooth module of at least one vehicle body anchor point is controlled to open a scanning window, scan the broadcast information within the scanning time of the second Bluetooth module, and close the scanning window.
5. The digital key control method according to claim 4, characterized in that: When the second Bluetooth module does not open a scanning window and does not have other tasks, control the second Bluetooth module to sleep; when the second Bluetooth module does not open a scanning window and has other tasks, control the second Bluetooth module to execute other tasks.
6. The digital key control method according to claim 1, characterized in that: The method includes: controlling the closing of a scanning window when at least one of the second Bluetooth modules scans the broadcast information until the scanning stop time reaches a preset time interval; controlling the first Bluetooth module to scan the broadcast information within a preset scanning time; and controlling the first Bluetooth module to connect to the BLE physical key when the first Bluetooth module scans the broadcast information within the preset scanning time, including: When at least one of the second Bluetooth modules scans the broadcast information, obtaining a notification message sent by the second Bluetooth module; According to the notification message, the scanning window is controlled to be closed until the scanning stop time reaches a preset time interval, the first Bluetooth module is controlled to open the scanning window, and the broadcast information is scanned within the preset scanning time. When the first Bluetooth module scans the broadcast information within the preset scanning time, the first Bluetooth module is controlled to connect with the BLE physical key.
7. The digital key control method according to claim 1, characterized in that: The preset scanning period is shorter than the BLE entity key broadcasting period, the preset time interval is shorter than the BLE entity key broadcasting period, and the preset scanning time is longer than the scanning time of the first Bluetooth module during the time-sharing scanning.
8. A digital key control device, characterized in that: include: A time-sharing scanning module, used to control the first Bluetooth module of the digital key and the second Bluetooth module of at least one vehicle body anchor point to time-sharingly scan the broadcast information sent by the BLE physical key within a preset scanning period; a connection module, configured to control the first Bluetooth module to connect with the BLE physical key when the first Bluetooth module scans the broadcast information; When at least one of the second Bluetooth modules scans the broadcast information, the scanning window is controlled to be closed until the scanning stop time reaches a preset time interval, and the first Bluetooth module is controlled to scan the broadcast information within the preset scanning time. When the first Bluetooth module scans the broadcast information within the preset scanning time, the first Bluetooth module is controlled to connect to the BLE physical key.
9. An electronic device, characterized in that: include: at least one processor, and a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors to enable the at least one processor to perform the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Bluetooth connection method and device, storage medium and electronic equipment
CN113382393A
Device discovery method, terminal device, communication network and storage medium
CN115550899A