Vehicle digital key test method and system

By establishing a wireless communication connection between the simulator device and the vehicle digital key device, independent testing of the vehicle digital key function was achieved, solving the problems of high testing costs and low efficiency in existing technologies, and improving testing efficiency and user experience.

CN121814232APending Publication Date: 2026-04-07Z-ONE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-22
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Existing technologies for testing vehicle digital keys require actual vehicles and vehicle digital key devices, resulting in high testing costs, low efficiency, and negatively impacting user experience.

Method used

A simulator device establishes a wireless communication connection with the vehicle digital key device. By sending configuration and test commands, the simulator device independently completes the system environment configuration and vehicle digital key function test, enabling testing without the need for an actual vehicle.

Benefits of technology

It reduced testing costs, improved testing efficiency and user experience, enhanced testing flexibility and reusability, and ensured the quality of vehicle digital key functionality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121814232A_ABST
    Figure CN121814232A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle digital key test method and system, the system comprises a vehicle digital key device and a simulator device, and the simulator device is a device for simulating a vehicle and is used for realizing a corresponding vehicle digital key function in the vehicle. The method comprises the steps that simulator equipment completes configuration of a target system environment based on system environment configuration identification information included in a configuration instruction sent by vehicle digital key equipment; and under the condition of determining that the target system environment is successfully configured, the simulator equipment executes a target vehicle digital key function based on a test instruction sent by the vehicle digital key equipment, and enables the vehicle digital key equipment to obtain a test result corresponding to the target vehicle digital key function according to execution feedback information. Therefore, the vehicle digital key test can be realized based on the simulator device independent of the actual vehicle, the comprehensive test of the vehicle digital key function is realized in various scenes, the test cost is effectively reduced, and the test efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle digital key testing technology, and in particular to a vehicle digital key testing method and system. Background Technology

[0002] With the rapid development of vehicle intelligence, vehicle digital keys have become an important component of vehicle intelligence. The implementation of vehicle digital key functionality typically requires both a vehicle digital key device and a vehicle digital key system. The vehicle digital key device can be an electronic device such as a mobile phone or watch with a vehicle digital key application installed. Modules within the vehicle related to implementing vehicle digital key functionality include wireless communication modules such as Bluetooth modules and vehicle control modules. The vehicle digital key device wirelessly connects to the vehicle via technologies such as Bluetooth, and the vehicle control module enables functions such as locking / unlocking the vehicle, starting the air conditioning, opening the trunk, and parking. To ensure the stability of vehicle digital key functionality, relevant testing is required before the vehicle is put into use.

[0003] In the existing technology, testing of vehicle digital keys requires actual vehicles and vehicle digital key devices. The configuration of actual vehicles and vehicle digital key devices requires relatively high costs and time, which affects testing efficiency and testing costs. Summary of the Invention

[0004] This application provides a vehicle digital key testing method and system to solve the problems of high cost, low testing efficiency, and negative impact on user experience in the existing vehicle digital key testing process.

[0005] To address the aforementioned technical problems, in a first aspect, this application discloses a vehicle digital key testing method applied to a vehicle digital key testing system. The system includes a vehicle digital key device and a simulator device. The simulator device is used to simulate a vehicle and implement the corresponding vehicle digital key function. A wireless communication connection is established between the vehicle digital key device and the simulator device. The method includes: the vehicle digital key device sending a configuration command to the simulator device, the configuration command including system environment configuration identification information, which indicates the type of system environment the simulator device needs to configure; the simulator device configuring its system environment according to the system environment configuration identification information included in the configuration command to complete the configuration of the target system environment, and sending corresponding configuration feedback information to the vehicle digital key device; the vehicle digital key device, upon determining that the target system environment configuration is successful based on the configuration feedback information, sending a test command to the simulator device, the test command indicating the target vehicle digital key function the simulator device needs to execute; the simulator device executing the target vehicle digital key function based on the configured target system environment according to the test command, and sending corresponding execution feedback information to the vehicle digital key device; and the vehicle digital key device obtaining the test result corresponding to the target vehicle digital key function based on the execution feedback information.

[0006] Using the above technical solution, the vehicle digital key device sends configuration information, including system environment configuration identifier information indicating the type of system environment the simulator device needs to configure, to the simulator device. The simulator device then configures its system environment according to the system environment configuration identifier information included in the configuration instruction, completing the configuration of the target system environment and sending configuration feedback information to the vehicle digital key device. Then, if the vehicle digital key device confirms successful configuration of the target system environment based on the configuration feedback information, it sends a test instruction to the simulator device, indicating the target vehicle digital key function to be executed. The simulator device then executes the target vehicle digital key function according to the test instruction and the configured target system environment, sending corresponding execution feedback information to the vehicle digital key device. The vehicle digital key device obtains the test result corresponding to the target vehicle digital key function based on the execution feedback information. Therefore, during vehicle digital key function testing, the simulator device can operate independently of the actual vehicle; that is, vehicle digital key testing can be performed using a simulator device independent of the actual vehicle, without relying on the actual vehicle. This allows for flexible and comprehensive testing of vehicle digital key functions in various scenarios, effectively reducing testing costs, improving testing efficiency, ensuring the quality of vehicle digital key functions, and enhancing the user experience.

[0007] Furthermore, in this method, the simulator device can adaptively configure its system environment based on the system environment configuration identifier information. On the one hand, this eliminates the need for manual configuration, effectively improving the efficiency and accuracy of target system environment configuration. On the other hand, it can adapt to various system environments, enabling functional testing of various Bluetooth protocols, thus reducing testing costs. Moreover, since this method only relies on vehicle digital key devices and simulator devices with established wireless communication connections, configuration and testing commands from the vehicle digital key device can be simultaneously sent to multiple simulator devices that can wirelessly connect to it. This allows for simultaneous testing of multiple vehicle digital key systems, greatly improving test reusability and efficiency.

[0008] Furthermore, in this implementation, the aforementioned vehicle can also be referred to as the target vehicle, such as a vehicle of a certain type or model in the test scenario.

[0009] According to another specific implementation of this application, a vehicle digital key testing method is disclosed. The simulator device configures its system environment based on system environment configuration identifier information included in the configuration instruction. This includes: the simulator device determining the target type of the system environment to be configured and the corresponding target configuration information based on the system environment configuration identifier information included in the configuration instruction and a preset system environment mapping table; loading the target configuration information; and configuring the simulator device's system environment. Alternatively, the simulator device inputs the system environment configuration identifier information included in the configuration instruction into a system environment configuration model, so that the system environment configuration model determines the target type of the system environment to be configured and the corresponding target configuration information based on the system environment configuration identifier information. The corresponding target configuration information is loaded, and the system environment of the simulator device is configured. Alternatively, the simulator device determines the target type of the system environment to be configured and the target configuration information corresponding to the target type based on the system environment configuration identifier information included in the configuration instruction and the preset system environment configuration mapping table. It then determines whether the target configuration information has been preloaded. If it has been preloaded, the system environment of the simulator device is configured directly based on the preloaded target configuration information. If it has not been preloaded, the target configuration information is loaded, and the system environment of the simulator device is configured. The determination of whether to preload the target configuration information is made by the simulator device based on the system preload determination model and the analysis results of the system environment preload based on the historical system environment configuration information of the simulator device.

[0010] By adopting the above technical solution, the simulator device can obtain a more accurate target type of the system environment to be configured and the target configuration information corresponding to the target type by using the system environment configuration identifier information included in the configuration instruction and the preset system environment mapping table, or by inputting the system environment configuration identifier information included in the configuration instruction into the system environment configuration model.

[0011] Alternatively, the simulator device can input the system environment configuration identifier information, including the configuration instructions, into the system environment configuration model. After obtaining the target type of the system environment that the simulator device needs to configure and the target configuration information corresponding to the target type, it can determine whether the target configuration information has been preloaded. If it has not been preloaded, the target configuration information is loaded, and the system environment of the simulator device is configured, which effectively improves the accuracy of the target system environment configuration.

[0012] According to another specific implementation of this application, the implementation of this application discloses a vehicle digital key testing method. The simulator device executes the target vehicle digital key function according to the test instructions and based on the configured target system environment. The method includes: the simulator device adjusts the functional state of the target vehicle digital key function according to the test instructions, based on the configured target system environment and the preset test simulation state transformation diagram, so as to execute the target vehicle digital key function.

[0013] By adopting the above technical solution, the simulator device can better execute the function of the target vehicle's digital key according to the test instructions, the configured target system environment, and the preset test simulation state transition diagram, thereby increasing test efficiency.

[0014] According to another specific implementation of this application, the implementation of this application discloses a vehicle digital key testing method, wherein the target configuration information includes target wireless communication protocol information and target simulation system environment parameter information.

[0015] By adopting the above technical solution and configuring the target wireless communication protocol information and the target simulation system environment parameter information, the accuracy of the target vehicle digital key function test can be effectively improved.

[0016] According to another specific implementation of this application, the implementation of this application discloses a vehicle digital key testing method. The system environment configuration identification information includes vehicle identification information and test account information. The system environment configuration model is trained based on target test data, which includes historical vehicle digital key test information, vehicle identification information, and test account information corresponding to the vehicle.

[0017] By adopting the above technical solution, the accuracy of testing the digital key function of the target vehicle can be effectively improved.

[0018] According to another specific implementation of this application, the implementation of this application discloses a vehicle digital key testing method. The target test data is obtained by preprocessing the initial test data. The initial test data includes the initial historical vehicle digital key test information corresponding to the vehicle. The preprocessing includes at least one of the following: missing value processing, data summarization processing, normalization processing, and index addition processing.

[0019] By adopting the above technical solution, the target test data after preprocessing the initial test data is more suitable for the simulation parameter determination model, thereby improving the accuracy of the obtained target simulation parameters.

[0020] According to another specific implementation of this application, the implementation of this application discloses a vehicle digital key testing method. The vehicle digital key device obtains a test result corresponding to the target vehicle digital key function based on execution feedback information, including: if the vehicle digital key device determines, based on the execution feedback information, that the simulator device has successfully executed the target vehicle digital key function, the test result is that the configuration corresponding to the target vehicle digital key function meets the configuration requirements; if the vehicle digital key device determines, based on the execution feedback information, that the simulator device has not successfully executed the target vehicle digital key function, the test result is that the configuration corresponding to the target vehicle digital key function does not meet the configuration requirements.

[0021] By adopting the above technical solution, it is possible to determine whether the simulator device has successfully executed the target vehicle's digital key function based on the execution feedback information, and thus determine whether the configuration of the target vehicle's digital key function meets the configuration requirements, effectively reducing testing costs and improving testing efficiency.

[0022] According to another specific implementation of this application, the implementation of this application discloses a vehicle digital key testing method, wherein the vehicle digital key device is a user mobile terminal device, the simulator device is a user mobile terminal device or a wireless Bluetooth device, and the wireless communication connection is a Bluetooth communication connection.

[0023] By adopting the above technical solution, users' mobile terminal devices or wireless Bluetooth devices can more conveniently simulate vehicles, and Bluetooth communication connections are also easier to implement, thus improving testing efficiency.

[0024] Secondly, this application also discloses a vehicle digital key testing system, including a vehicle digital key device and a simulator device. A wireless communication connection is established between the vehicle digital key device and the simulator device. The simulator device is a device that simulates a vehicle and is used to implement the corresponding vehicle digital key function. The vehicle digital key device sends a configuration command to the simulator device. The configuration command includes system environment configuration identification information, which indicates the type of system environment that the simulator device needs to configure. The simulator device configures its system environment according to the system environment configuration identification information included in the configuration command to complete the configuration of the target system environment and sends the corresponding configuration feedback information to the vehicle digital key device. The vehicle digital key device also sends a test command to the simulator device when the target system environment is successfully configured, based on the configuration feedback information. The test command indicates the target vehicle digital key function that the simulator device needs to execute. The simulator device executes the target vehicle digital key function based on the configured target system environment according to the test command and sends the corresponding execution feedback information to the vehicle digital key device. The vehicle digital key device also obtains the test result corresponding to the target vehicle digital key function based on the execution feedback information.

[0025] According to another specific implementation of this application, a vehicle digital key testing system is disclosed in this implementation. The simulator device includes a vehicle wireless communication simulation module and a vehicle controller simulation module. The vehicle controller simulation module and the vehicle wireless communication simulation module establish a communication connection. The vehicle wireless communication simulation module is used to receive configuration instructions and test instructions sent by the vehicle digital key device, send the configuration instructions and test instructions to the vehicle controller simulation module, and send configuration feedback information and execution feedback information sent by the vehicle controller simulation module to the vehicle digital key device. The vehicle controller simulation module is used to adjust the functional state of the target vehicle digital key function according to the test instructions, based on the configured target system environment and the preset test simulation state transition diagram, so as to execute the target vehicle digital key function.

[0026] Thirdly, this application also discloses an electronic device, including: a processor and a memory communicatively connected to the processor; the memory stores a computer program; the processor executes the computer program stored in the memory to enable the electronic device to perform the corresponding processing in the vehicle digital key testing method provided by any of the implementations of the first aspect above.

[0027] Fourthly, the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, is used to implement the corresponding processing in the vehicle digital key testing method provided by any of the implementations of the first aspect above.

[0028] Fifthly, an implementation of this application provides a computer program product, including a computer program that, when executed by a processor, implements the corresponding processing in the vehicle digital key testing method provided by any of the implementations of the first aspect above.

[0029] It is understood that the beneficial effects of the second to fifth aspects mentioned above can also be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0030] Figure 1 This is a schematic diagram of a vehicle digital key testing system provided in an embodiment of this application;

[0031] Figure 2 This is a schematic diagram of the structure of a simulator device provided in an embodiment of this application.

[0032] Figure 3 This is a flowchart illustrating a vehicle digital key testing method provided in an embodiment of this application;

[0033] Figure 4 This is a schematic diagram illustrating how the simulator device provided in this application executes the digital key function of the target vehicle to achieve the state transition of the digital key function of the target vehicle;

[0034] Figure 5 This is a schematic diagram illustrating the simulation, expected configuration, and use of a Bluetooth module as provided in an embodiment of this application.

[0035] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0036] As mentioned earlier, the testing of vehicle digital keys in the existing technology requires actual vehicles and vehicle digital key devices. The configuration of actual vehicles and vehicle digital key devices requires relatively high costs and a long time, which affects the testing efficiency and testing cost.

[0037] Based on this, this application provides a vehicle digital key testing method and system. During the vehicle digital key function testing process, the simulator device can be used independently of the actual vehicle. That is, vehicle digital key testing can be carried out based on a simulator device independent of the actual vehicle, without relying on the actual vehicle. It can flexibly realize comprehensive testing of vehicle digital key functions in various scenarios, effectively reduce testing costs, improve testing efficiency, ensure the quality of vehicle digital key functions, and improve user experience.

[0038] Next, with reference to the accompanying drawings, the steps and advantages of the vehicle digital key testing method provided in this application will be described in detail.

[0039] In one implementation of this application, the vehicle digital key testing method provided is applied to a vehicle digital key testing system. For example... Figure 1 As shown, the vehicle digital key testing system includes a vehicle digital key device and a simulator device, and a wireless communication connection is established between the vehicle digital key device and the simulator device.

[0040] For example, the process of establishing a wireless communication connection between a vehicle digital key device and an simulator device can be as follows: Both the vehicle digital key device and the simulator device enable wireless communication functions (such as Bluetooth) and send broadcast signals to achieve device discovery. Then, a wireless communication connection is established by sending connection requests and response requests to complete the initial handshake. Finally, authentication, permission verification, pairing, and other processes are performed to establish a dedicated wireless communication channel for information transmission between the vehicle digital key device and the simulator device. The transmitted information includes specific configuration instructions, test instructions, and heartbeat signals.

[0041] Among them, the vehicle digital key device is a device with a vehicle digital key application installed, which can be a user's mobile terminal device such as a mobile phone or watch.

[0042] A simulator device is a device that simulates a vehicle to implement the corresponding vehicle digital key function. It can be a user mobile terminal device such as a mobile phone or watch, or a Bluetooth wireless device such as a programmable Bluetooth dangle (adapter).

[0043] The vehicle digital key device is used to send configuration instructions to the simulator device. The configuration instructions include system environment configuration identification information, which indicates the type of system environment that the simulator device needs to configure.

[0044] The simulator device is also used to configure the system environment of the simulator device according to the system environment configuration identification information included in the configuration instructions, so as to complete the configuration of the target system environment and send the corresponding configuration feedback information to the vehicle digital key device.

[0045] The vehicle digital key device is also used to send test commands to the simulator device based on configuration feedback information, after confirming that the target system environment is configured successfully. The test commands are used to instruct the simulator device to perform the target vehicle digital key functions.

[0046] The simulator device is also used to execute the target vehicle digital key function according to the test instructions and the configured target system environment, and send the corresponding execution feedback information to the vehicle digital key device.

[0047] The vehicle digital key device is also used to obtain test results corresponding to the digital key function of the target vehicle based on the execution feedback information.

[0048] In one implementation of this application, the simulator device can also be called a simulator, which can simulate the vehicle-side functions such as Bluetooth module, controller module, status, etc. As mentioned above, the simulator device can be an electronic device such as a mobile phone, watch, or programmable Bluetooth dangle that can simulate the vehicle-side Bluetooth module. Depending on the actual scenario and the actual hardware devices available, a specific electronic device can be selected (e.g., use a mobile phone if you have one, use a watch if you have one) to simulate the vehicle-side Bluetooth module, etc.

[0049] The simulator device can simulate Bluetooth protocols, such as using software-defined radio (SDR) technology to simulate the communication behavior of the vehicle's Bluetooth module (such as establishing a connection, verifying permissions, and establishing a communication channel).

[0050] For example, a mobile device on the vehicle side can be used to generate the same signal as the vehicle's Bluetooth module, and software algorithms can be used to simulate the Bluetooth protocol's handshake, data transmission, and other processes.

[0051] Furthermore, the simulator device can simulate Electronic Control Unit (ECU) communication, and simulate the communication behavior of the vehicle-side ECU through Virtual ECU (VECU) technology.

[0052] For example, the communication protocol of the ECU is simulated by software to generate the same communication commands as the vehicle ECU, and then the ECU communicates with the simulated Bluetooth module through a network interface.

[0053] Furthermore, the simulator device can simulate vehicle states by using state machine technology to simulate various state changes of the vehicle.

[0054] For example, based on vehicle status information, a state transition diagram is designed using state machine technology, and the automatic state transition and update are achieved through software algorithms. The vehicle-side data is transmitted to the simulator device in real time and updated in real time.

[0055] That is, in one implementation of this application, such as Figure 2 As shown, the simulator device includes a vehicle wireless communication simulation module and a vehicle controller simulation module. The vehicle controller simulation module establishes a communication connection with the vehicle wireless communication simulation module and the communication protocol simulation module. The vehicle wireless communication simulation module receives configuration commands and test commands sent by the vehicle digital key device, sends these commands to the vehicle controller simulation module, and sends configuration feedback information and execution feedback information from the vehicle controller simulation module to the vehicle digital key device. The vehicle controller simulation module adjusts the functional state of the target vehicle digital key function according to the test commands, based on the configured target system environment and a preset test simulation state transition diagram, to execute the target vehicle digital key function. Additionally, it can complete the corresponding system environment configuration based on the configuration commands.

[0056] The vehicle controller simulation module may include a state machine, which can perform state transitions to simulate the switching of vehicle functions. The state machine and the vehicle controller simulation module transmit information through a target communication protocol (such as the ECU communication protocol). The target communication protocol can be simulated by the communication protocol simulation module through communication protocol identification information and a preset communication protocol mapping table.

[0057] Of course, the simulator device may also include other modules related to vehicle simulation, which can be configured as needed.

[0058] In one implementation of this application, the simulator device further includes an ECU communication simulation module, which is used to simulate the communication (e.g., ECU communication) connection signals between the vehicle controller simulation module, the vehicle state simulation module, and the vehicle wireless communication simulation module.

[0059] In one implementation of this application, as described above, the vehicle digital key device can be a mobile phone, watch, or Bluetooth key for which the user has downloaded the vehicle digital key.

[0060] The method of simulating the simulator device in this application is based on the actual private protocol and is implemented entirely according to the protocol message.

[0061] In one implementation of this application, the vehicle digital key testing system provided refers to a vehicle-side Bluetooth key related system, including a Bluetooth module, a vehicle control module, and an intelligent driving module. The technical solution provided by this application enables the use of a mobile phone or other electronic device to achieve peer-to-peer simulation of the vehicle, realizing functions such as vehicle control and Bluetooth remote parking.

[0062] In one implementation of this application, such as Figure 3 As shown, the vehicle digital key testing method includes the following steps.

[0063] S100: The vehicle digital key device sends a configuration command to the simulator device. The configuration command includes system environment configuration identification information, which indicates the type of system environment that the simulator device needs to configure.

[0064] In one implementation of this application, the system environment configuration identification information includes vehicle identification information and test account information. By using the vehicle identification information and test account information, the type of system environment that the simulator device needs to be configured with can be accurately determined.

[0065] S200: The simulator device configures the system environment of the simulator device according to the system environment configuration identification information included in the configuration instructions, so as to complete the configuration of the target system environment and send the corresponding configuration feedback information to the vehicle digital key device.

[0066] S300: Based on the configuration feedback information, the vehicle digital key device sends a test command to the simulator device after confirming that the target system environment has been successfully configured. The test command is used to instruct the simulator device to perform the target vehicle digital key function.

[0067] The test commands can be simple commands, such as door unlocking / locking commands, or complex commands, such as vehicle parking commands.

[0068] S400: The simulator device executes the target vehicle's digital key function according to the test instructions and the configured target system environment, and sends the corresponding execution feedback information to the vehicle's digital key device.

[0069] S500: The vehicle digital key device obtains the test results corresponding to the digital key function of the target vehicle based on the execution feedback information.

[0070] For example, in the vehicle digital key testing method provided in this application, the mobile phone Bluetooth (i.e., the vehicle digital key device) sends a command (i.e., a test command) to the simulator device, the state machine executes the corresponding command, performs a state transition, and replies the state after the transition (i.e., the execution feedback information) to the mobile phone through the Bluetooth channel.

[0071] The test command is the door lock / unlock command, such as... Figure 4 As shown, the original target vehicle digital key function corresponding to the simulator device was to lock the car door. The user's mobile phone (i.e., the vehicle digital key device) sent the door unlocking command to the simulator device through the wireless Bluetooth channel. The simulator device sent the unlocking command to the state machine, and the state machine performed a state transition and sent the transitioned state (the door is unlocked, i.e., the execution feedback information) back to the mobile phone.

[0072] Alternatively, if the target vehicle's digital key function originally associated with the simulator device is door unlocking, the user's mobile phone sends a door locking command to the simulator device via a wireless Bluetooth channel. The simulator device then sends the locking command to the state machine, which performs a state transition and sends the transitioned state (door locked, i.e., execution feedback information) back to the mobile phone.

[0073] For example, consider a parking command. The simulator device's target vehicle needs to park in the designated space. The user's phone sends a parking command to the simulator via Bluetooth. The simulator then sends the command to the state machine, which performs a state transition based on the command and begins the parking process. During parking, the simulator continuously reports the parking progress, vehicle gear, speed, remaining distance, and other relevant information to the user's phone via a heartbeat mechanism. After a certain time, it sends a successful parking status (i.e., execution feedback) back to the phone. If an obstacle is encountered during parking, the state machine can transition the target vehicle's state, pausing parking. After the obstacle disappears, the state transition resumes, and parking status is sent back to the phone after the parking countdown ends. If the vehicle successfully parks in the designated space, parking is successful; if it fails, parking is considered a failure, indicating an inappropriate configuration of the vehicle's digital key.

[0074] Alternatively, if the target vehicle originally assigned to the simulator needs to exit a parking space, the user's mobile phone sends a parking exit command to the simulator via Bluetooth. The simulator then sends the command to the state machine, which performs a state transition based on the command and begins the parking function. During the parking process, the simulator continuously reports the parking progress, vehicle gear, speed, remaining distance, and other relevant information to the mobile phone via a heartbeat mechanism. After a certain period, it sends a successful parking status (i.e., execution feedback information) back to the mobile phone and stops parking. If an obstacle is encountered during the parking process, the state machine can transition the target vehicle's state, pausing the parking process. After the obstacle disappears, it transitions again and continues parking. After the parking countdown ends, it sends the parking status back to the mobile phone. If the vehicle successfully exits the parking space, the parking is successful; if it fails to do so, the vehicle's digital key configuration is inappropriate.

[0075] In one implementation of this application, the vehicle digital key device obtains a test result corresponding to the target vehicle digital key function based on execution feedback information, including: if the vehicle digital key device determines, based on the execution feedback information, that the simulator device has successfully executed the target vehicle digital key function (e.g., successful unlocking, locking, or successful parking / parking exit), the test result is determined to be that the configuration corresponding to the target vehicle digital key function meets the configuration requirements; if the vehicle digital key device determines, based on the execution feedback information, that the simulator device has not successfully executed the target vehicle digital key function, the test result is determined to be that the configuration corresponding to the target vehicle digital key function does not meet the configuration requirements.

[0076] In one implementation of this application, the simulator device configures its system environment according to the system environment configuration identifier information included in the configuration instructions, including the following methods.

[0077] The simulator device determines the target type of the system environment to be configured and the target configuration information corresponding to the target type based on the system environment configuration identifier information included in the configuration instructions and the preset system environment mapping table. It then loads the target configuration information and performs configuration processing on the system environment of the simulator device.

[0078] For example, this application can utilize different Bluetooth protocol version numbers, different Bluetooth hardware versions, and other related parameters to maintain a mapping table between version numbers and protocols (i.e., a preset system environment mapping table) in the simulator device. When the simulator device receives an instruction (i.e., a test instruction) from a test mobile phone (i.e., a vehicle digital key device), it first finds the corresponding protocol (i.e., target wireless communication protocol information) according to this mapping table, and initializes the simulator device according to the corresponding target configuration information, that is, it configures the system environment of the simulator device.

[0079] The target type of the system environment can be determined based on the vehicle identification information and test account information in the system environment configuration identification information. For example, if it is determined that the target type corresponding to a certain model of vehicle is communication protocol version 2.0, then the corresponding target configuration information (such as target simulation system environment parameter information) can be determined based on communication protocol 2.0.

[0080] The states corresponding to the digital key function of the target vehicle include, but are not limited to, whether the vehicle is started, whether the doors are unlocked, whether the lights and horn are on, whether the vehicle is parked, the vehicle gear position, and the vehicle speed. This application can combine the design of a state machine to perform state feedback (i.e., feedback of execution information) and other related actions.

[0081] The configuration of the target system environment can be made online, and users can uniformly configure it by selecting and inputting configuration parameters (i.e. target simulation parameters, such as response time, expected success or failure, etc.) through the web interface.

[0082] Alternatively, the simulator device may input the system environment configuration identifier information, including the configuration instruction, into the system environment configuration model, so that the system environment configuration model can determine the target type of the system environment that the simulator device needs to configure and the target configuration information corresponding to the target type based on the system environment configuration identifier information, load the target configuration information, and perform configuration processing on the system environment of the simulator device.

[0083] Alternatively, the simulator device determines the target type of the system environment to be configured and the corresponding target configuration information based on the system environment configuration identifier information included in the configuration instructions and the preset system environment configuration mapping table. It then determines whether the target configuration information has been preloaded. If it has been preloaded, the simulator device's system environment is configured directly based on the preloaded target configuration information. If it has not been preloaded, the target configuration information is loaded and the simulator device's system environment is configured. Whether the target configuration information is preloaded is determined by the simulator device based on the system preload determination model, which analyzes the system environment preload based on the simulator device's historical system environment configuration information.

[0084] By determining whether the target configuration information corresponding to the simulator device's system environment has been preloaded, and if so, duplicate loading can be avoided, effectively increasing testing efficiency. Furthermore, preloading the target configuration information can improve system response speed, thereby enhancing testing efficiency.

[0085] In one implementation of this application, the simulator device executes the target vehicle digital key function according to the test instructions and the configured target system environment. This includes: the simulator device adjusting the functional state of the target vehicle digital key function according to the test instructions, the configured target system environment, and a preset test simulation state transition diagram to execute the target vehicle digital key function.

[0086] Among them, the preset test simulation state transition diagram can be, for example, as follows: Figure 4 The state transition diagram shown is based on state machine technology and includes transitions between vehicle unlock and lock states, as well as transitions between parking and parking exit states during the parking process.

[0087] In one implementation of this application, the target configuration information includes target wireless communication protocol information and target simulation system environment parameter information. The target wireless communication protocol information may be, for example, the aforementioned communication protocol version 2.0 or similar communication protocol version information, and the target simulation system environment parameter information may be, for example, system environment parameter information such as the controller parameters of the simulator device.

[0088] In one implementation of this application, the target configuration information is obtained by the system environment configuration model through corresponding processing based on the system environment configuration identifier information input to the system environment configuration model.

[0089] The system environment configuration model is trained based on the target test data, which includes the vehicle's historical digital key test information, vehicle identification information, and test account information.

[0090] The target simulation system environment parameters, that is, some parameters that need to be set during the vehicle digital key function test, such as the aforementioned response time.

[0091] Historical vehicle digital key test information may include, for example, the specific test functions during the historical testing of the target vehicle's vehicle digital key function, and the corresponding test results (such as whether the parking function meets the requirements, the unlocking function meets the requirements, or the unlocking function does not meet the requirements, etc.). Vehicle identification information may include, for example, the vehicle identification number (VIN), and test account information may include, for example, the user account information of the target vehicle.

[0092] In one implementation of this application, the target test data is obtained by preprocessing the initial test data. The initial test data includes the initial historical vehicle digital key test information corresponding to the vehicle. The preprocessing includes at least one of the following: missing value processing, data summarization processing, normalization processing, and index addition processing.

[0093] For example, the test records of the vehicle digital key for the most recent 3 months (i.e., the initial test data) can be saved to train the large model and obtain the system environment configuration model.

[0094] In one implementation of this application, before training the large model to obtain the system environment configuration model, the test records are preprocessed. Preprocessing may include at least one of various methods such as removing incomplete or corrupted data, data summarization, data unification, and indexing. Preprocessed test records ensure the smooth operation of the large model in subsequent use. Furthermore, test data can be continuously updated based on the test records corresponding to the vehicle digital key function. During subsequent testing, test parameters are dynamically adjusted, and the large model is continuously optimized and improved based on the updated test data to enhance its adaptability and robustness, and improve the accuracy of the simulator device.

[0095] In one implementation of this application, the vehicle digital key device is a user mobile terminal device, the simulator device is a user mobile terminal device or a wireless Bluetooth device, and the wireless communication connection is a Bluetooth communication connection. Of course, the wireless communication method can also be other methods.

[0096] This application uses an adaptive algorithm of the system environment configuration model to automatically adjust simulation parameters (i.e., target configuration information) according to different Bluetooth protocols and vehicle states, thereby improving the accuracy of the simulator device in simulating vehicles.

[0097] In one implementation of this application, such as Figure 5 As shown, a Bluetooth key (i.e., vehicle digital key device) simulation process is provided, which includes:

[0098] After receiving test commands through the user interface, the simulator device performs initialization (i.e., configures the target system environment) and selects the protocol to use.

[0099] Selecting the protocol, or implementing the protocol, can be done by confirming the protocol selection based on the parameters passed from the unified entry point of the simulator device (i.e., system environment configuration identification information, such as communication protocol identification information) and a preset system environment configuration mapping table. The target communication protocol (i.e., target wireless communication protocol information) is selected from multiple preset communication protocols (e.g., Bluetooth protocol 1, Bluetooth protocol 2, Bluetooth protocol 3, ..., Bluetooth protocol X, etc.). The selected target communication protocol is then output from the unified exit point for data transmission and data driving during the execution of the target vehicle key function. Additionally, other simulated system environment parameters, such as the aforementioned response time, can be determined simultaneously for subsequent testing and processing.

[0100] The test involves setting data expectations and verifying whether the target vehicle's key function performs as intended. Test functions include unlocking doors, unlocking the trunk, locating the vehicle, and other functions (e.g., Y). If all these functions perform as expected, the key function verification is successful, and the verification result information (i.e., execution feedback information) is sent back to the user interface.

[0101] During this process, the simulated Bluetooth module in the simulator device can first initialize Bluetooth, then initiate a Bluetooth broadcast to establish a wireless communication connection with the vehicle digital key device. It can also simulate heartbeat packets, periodically feeding back the status of the target vehicle key function to the vehicle digital key device (e.g., the user's mobile phone with the vehicle digital key downloaded). Of course, other functions of the Bluetooth module can also be simulated.

[0102] In one implementation of this application, the vehicle digital key testing method provided by this application, namely a vehicle digital key simulation testing method based on the Bluetooth protocol, uses devices such as mobile phones, watches or programmable Bluetooth dangles (adapters) to simulate the vehicle's Bluetooth module, selects different Bluetooth protocols to conduct comprehensive and in-depth testing of the vehicle digital key system, and combines data-driven methods to configure the expected results, thereby reducing testing costs and improving testing efficiency and accuracy.

[0103] Furthermore, it can adapt to multiple Bluetooth key protocols, effectively simulating the vehicle's Bluetooth module to conduct comprehensive testing of the vehicle's digital key system. This allows for app testing independent of the actual vehicle, breaking free from the limitations of traditional vehicle connectivity app testing that relies on the real vehicle. Thus, full-scenario testing of the vehicle app can be completed from the office. This not only reduces testing costs but also improves testing flexibility and reusability, ensuring the quality of vehicle digital key (such as Bluetooth key) functionality.

[0104] The vehicle digital key testing method provided in this application primarily simulates the vehicle's Bluetooth module, and secondarily, various related controllers on the vehicle side, such as the door unlocking / locking controller and the intelligent driving module. The simulation involves the Bluetooth module transmitting the execution result of the actuator (i.e., the simulator device) to the user's mobile phone (i.e., the vehicle digital key device) via the Bluetooth protocol. The actuator's execution result is based on a preset result. For example, if the preset expected result is successful door unlocking, when the user's mobile phone attempts to unlock the door, the actuator sends the successful unlock result (i.e., execution feedback information) back to the simulated Bluetooth module. The Bluetooth module then transmits the result to the user's mobile phone via the Bluetooth protocol, allowing the user's mobile phone to provide a positive prompt and refresh the relevant page based on the result.

[0105] This method allows the vehicle-mounted Bluetooth system to be tested independently of the actual vehicle, using only a mobile phone (or other Bluetooth device), thus enabling the relevant tests to be completed in the laboratory.

[0106] The vehicle digital key testing method provided in this application first selects the corresponding Bluetooth protocol and configures the simulator device according to the Bluetooth protocol specification of the vehicle digital key system. Then, by writing test scripts, test scenarios are executed automatically, and using a data-driven approach, various normal and abnormal scenarios are verified by configuring different expected results.

[0107] During the test, data is monitored and recorded in real time for subsequent analysis.

[0108] Finally, based on the test results, the digital key system was adjusted and optimized to ensure that its functions and performance met the expected standards.

[0109] In summary, this application provides a vehicle digital key testing scheme based on a Bluetooth proprietary protocol. It simulates a vehicle using a simulator device and, through the simulator and the vehicle digital key device, simulates the command interaction between the vehicle and the vehicle digital key device, enabling the vehicle digital key device to adjust the functional state of the simulated vehicle. The vehicle digital key device sends configuration information to the simulator device, including system environment configuration identifier information indicating the type of system environment that the simulator device needs to configure. The simulator device then configures its system environment according to the system environment configuration identifier information included in the configuration command, completing the configuration of the target system environment and sending configuration feedback information to the vehicle digital key device. Then, if the vehicle digital key device confirms successful configuration of the target system environment based on the configuration feedback information, it sends a test command to the simulator device, indicating the target vehicle digital key function that the simulator device needs to execute. The simulator device then executes the target vehicle digital key function according to the test command based on the configured target system environment and sends corresponding execution feedback information to the vehicle digital key device. The vehicle digital key device obtains the test result corresponding to the target vehicle digital key function based on the execution feedback information. Therefore, during the testing of vehicle digital key functions, the simulator device can be used independently of the actual vehicle. In other words, vehicle digital key testing can be carried out based on a simulator device independent of the actual vehicle, without relying on the actual vehicle. This allows for comprehensive testing of vehicle digital key functions in various scenarios, effectively reducing testing costs, improving testing efficiency, ensuring the quality of vehicle digital key functions, and enhancing the user experience.

[0110] Furthermore, this method can adaptively configure the system environment of the simulator device based on the system environment configuration identification information included in the configuration information. On the one hand, it eliminates the need for manual configuration, effectively improving the efficiency and accuracy of target system environment configuration. On the other hand, it can adapt to various system environments, enabling functional testing of various Bluetooth protocols, such as different Bluetooth protocols, thus reducing testing costs. Moreover, since this method only relies on vehicle digital key devices and simulator devices with established wireless communication connections, configuration and test commands from the vehicle digital key device can be simultaneously sent to multiple simulator devices that can wirelessly connect to it. This allows for simultaneous testing of multiple vehicle digital key systems, greatly improving test reusability and efficiency.

[0111] Please see Figure 6 , Figure 6 The diagram shown is a structural schematic of an electronic device provided in an embodiment of this application. Figure 6 As shown, the electronic device may include: transceiver 121, processor 122, and memory 123.

[0112] In one implementation of this application, the electronic device may be, for example, the aforementioned mobile phone, watch, or programmable Bluetooth dangle.

[0113] The processor 122 executes computer execution instructions stored in the memory, causing the processor 122 to execute the corresponding technical solution in the vehicle digital key testing method in the above embodiments. The processor 122 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital data processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0114] The memory 123 is connected to the processor 122 via the system bus and completes communication between them. The memory 123 is used to store computer program instructions.

[0115] For example, and not as a limitation, memory 123 may include a hard disk drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 123 may include removable or non-removable (or fixed) media. Transceiver 121 may be used to acquire the task to be run and its configuration information.

[0116] The system bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. For ease of illustration, it is represented by only one thick line in the figure, but this does not mean that there is only one bus or one type of bus.

[0117] This application also provides a chip for executing instructions, which is used to execute the corresponding technical solution in the vehicle digital key testing method in the above embodiments.

[0118] This application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed on the processor of an electronic device, the processor of the electronic device executes the corresponding technical solution in the vehicle digital key testing method of the above embodiments.

[0119] This application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When the at least one processor executes the computer program, it can implement the corresponding technical solution in the vehicle digital key testing method in the above embodiments.

[0120] This application is described with reference to flowchart illustrations and / or block diagrams of the methods, apparatus, and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable information processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable information processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0121] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable information processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0122] These computer program instructions may also be loaded onto a computer or other programmable information processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0123] It should be noted that, in addition to the specific embodiments described above, those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. Although the description of this application is presented in conjunction with preferred embodiments, this does not mean that the features of this invention are limited to this implementation. On the contrary, the purpose of describing the invention in conjunction with the implementation is to cover other options or modifications that may be derived based on the claims of this application. To provide a thorough understanding of this application, many specific details are included in the above description, and this application may also be implemented without using these details. Furthermore, to avoid confusion or obscuring the focus of this application, some specific details will be omitted in the description. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of this application can be combined with each other.

[0124] It should be noted that in this specification, similar reference numerals and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0125] Although this application has been illustrated and described with reference to certain preferred embodiments, those skilled in the art should understand that the above description is a further detailed explanation of the application in conjunction with specific implementations, and should not be construed as limiting the specific implementation of the application to these descriptions. Those skilled in the art can make various changes in form and detail, including some simple deductions or substitutions, without departing from the spirit and scope of this application.

Claims

1. A method for testing a vehicle digital key, characterized in that, An application is made to a vehicle digital key testing system, the vehicle digital key testing system including a vehicle digital key device and a simulator device, the simulator device being a device that simulates a vehicle and is used to implement the corresponding vehicle digital key functions in the vehicle, a wireless communication connection being established between the vehicle digital key device and the simulator device, the method including: The vehicle digital key device sends a configuration instruction to the simulator device. The configuration instruction includes system environment configuration identification information, which indicates the type of system environment that the simulator device needs to configure. The simulator device configures the system environment of the simulator device according to the system environment configuration identifier information included in the configuration instruction, so as to complete the configuration of the target system environment, and sends the corresponding configuration feedback information to the vehicle digital key device. Based on the configuration feedback information, if the target system environment is successfully configured, the vehicle digital key device sends a test command to the simulator device. The test command is used to instruct the simulator device to execute the target vehicle digital key function. The simulator device executes the target vehicle digital key function according to the test instructions and the configured target system environment, and sends the corresponding execution feedback information to the vehicle digital key device. The vehicle digital key device obtains test results corresponding to the target vehicle digital key function based on the execution feedback information.

2. The vehicle digital key testing method as described in claim 1, characterized in that, The simulator device configures its system environment according to the system environment configuration identifier information included in the configuration instructions, including: The simulator device, based on the system environment configuration identifier information included in the configuration instructions and a preset system environment mapping table, determines the target type of the system environment to be configured and the corresponding target configuration information, loads the target configuration information, and performs configuration processing on the system environment of the simulator device; or... The simulator device inputs the system environment configuration identifier information included in the configuration instructions into the system environment configuration model, so that the system environment configuration model determines the target type of the system environment that the simulator device needs to configure and the target configuration information corresponding to the target type based on the system environment configuration identifier information, loads the target configuration information, and performs configuration processing on the system environment of the simulator device; or... The simulator device determines the target type of the system environment to be configured and the target configuration information corresponding to the target type based on the system environment configuration identifier information included in the configuration instruction and a preset system environment configuration mapping table. It also determines whether the target configuration information has been preloaded. If it has been preloaded, the simulator device's system environment is configured directly based on the preloaded target configuration information. If it has not been preloaded, the simulator device loads the target configuration information and configures the simulator device's system environment. Whether the target configuration information is preloaded is determined by the simulator device based on the analysis results of the system environment preloading based on the historical system environment configuration information corresponding to the simulator device, according to the system preloading determination model.

3. The vehicle digital key testing method as described in claim 2, characterized in that, The simulator device, based on the test instructions and the configured target system environment, executes the target vehicle digital key function, including: The simulator device adjusts the functional state of the target vehicle digital key function according to the test instructions, based on the configured target system environment and the preset test simulation state transformation diagram, so as to execute the target vehicle digital key function.

4. The vehicle digital key testing method as described in claim 3, characterized in that, The target configuration information includes target wireless communication protocol information and target simulation system environment parameter information.

5. The vehicle digital key testing method as described in claim 4, characterized in that, The system environment configuration identification information includes vehicle identification information and test account information. The system environment configuration model is trained based on target test data, which includes historical vehicle digital key test information, vehicle identification information, and test account information corresponding to the vehicle.

6. The vehicle digital key testing method as described in claim 5, characterized in that, The target test data is obtained by preprocessing the initial test data, which includes the initial historical vehicle digital key test information corresponding to the vehicle. The preprocessing includes at least one of the following: missing value processing, data summarization processing, normalization processing, and index addition processing.

7. The vehicle digital key testing method as described in any one of claims 1-6, characterized in that, The vehicle digital key device obtains test results corresponding to the target vehicle digital key function based on the execution feedback information, including: If the vehicle digital key device determines, based on the execution feedback information, that the simulator device has successfully executed the target vehicle digital key function, the test result indicates that the configuration corresponding to the target vehicle digital key function meets the configuration requirements. If the vehicle digital key device determines, based on the execution feedback information, that the simulator device has failed to successfully execute the target vehicle digital key function, the test result indicates that the configuration corresponding to the target vehicle digital key function does not meet the configuration requirements.

8. The vehicle digital key testing method as described in claim 7, characterized in that, The vehicle digital key device is a user mobile terminal device, the simulator device is a user mobile terminal device or a wireless Bluetooth device, and the wireless communication connection is a Bluetooth communication connection.

9. A vehicle digital key testing system, characterized in that, It includes a vehicle digital key device and a simulator device, wherein the vehicle digital key device and the simulator device establish a wireless communication connection, and the simulator device is a device that simulates a vehicle and is used to implement the corresponding vehicle digital key function in the vehicle. The vehicle digital key device is used to send a configuration instruction to the simulator device. The configuration instruction includes system environment configuration identification information, which is used to indicate the type of system environment that the simulator device needs to configure. The simulator device is also used to configure the system environment of the simulator device according to the system environment configuration identification information included in the configuration instruction, so as to complete the configuration of the target system environment, and send the corresponding configuration feedback information to the vehicle digital key device; The vehicle digital key device is also used to send a test command to the simulator device based on the configuration feedback information, when it is determined that the target system environment is configured successfully. The test command is used to instruct the simulator device to execute the target vehicle digital key function. The simulator device is also used to execute the target vehicle digital key function according to the test instructions and based on the configured target system environment, and send the corresponding execution feedback information to the vehicle digital key device; The vehicle digital key device is also used to obtain test results corresponding to the target vehicle digital key function based on the execution feedback information.

10. The vehicle digital key testing system as described in claim 9, characterized in that, The simulator device includes a vehicle wireless communication simulation module and a vehicle controller simulation module, and the vehicle controller simulation module and the vehicle wireless communication simulation module are connected for communication. The vehicle wireless communication simulation module is used to receive the configuration instructions and test instructions sent by the vehicle digital key device, send the configuration instructions and test instructions to the vehicle controller simulation module, and send the configuration feedback information and execution feedback information sent by the vehicle controller simulation module to the vehicle digital key device. The vehicle controller simulation module is used to adjust the functional state of the target vehicle digital key function according to the test instructions, based on the configured target system environment and the preset test simulation state transformation diagram, so as to execute the target vehicle digital key function.