Wireless communication apparatus control method, vehicle control system, and wireless communication apparatus

By using the address information of the second communication module and a directional connection request in the wireless communication device to restore the connection of the first communication module, the vehicle locking problem caused by communication anomalies is solved and convenient communication recovery is achieved.

CN120614712APending Publication Date: 2025-09-09SHENZHEN SHUMA ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510807623.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-16
Publication Date
2025-09-09

AI Technical Summary

Technical Problem

When the communication module of the wireless communication device is abnormal, the vehicle cannot be manually operated, causing the vehicle to be locked. The existing technology cannot easily restore the communication capability.

Method used

A connection is established with the mobile device through the first communication module, address information of the second communication module is sent to trigger a directional connection request, a new connection is established using the second communication module, and a reset instruction is sent to hardware reset the first communication module.

Benefits of technology

The communication capability of the wireless communication equipment is restored, the problem of vehicle locking is avoided, and convenience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120614712A_ABST
    Figure CN120614712A_ABST
Patent Text Reader

Abstract

The invention relates to a control method of wireless communication equipment, a vehicle control system and the wireless communication equipment. The method comprises the following steps: establishing a first communication connection with a mobile device through a first communication module, so that the mobile device triggers a vehicle control function of a wireless communication device based on the first communication connection; sending address information of the second communication module to the mobile device based on the first communication connection, so that when the mobile device cannot establish the first communication connection with the wireless communication device, if a connection triggering operation is obtained, sending a directional connection request based on the address information; after the second communication module receives the directional connection request, establishing a second communication connection with the mobile device through the second communication module, so that the mobile device sends a reset instruction to the wireless communication device based on the second communication connection; and under the condition that a reset instruction is received, performing hardware reset on the first communication module. By adopting the method, the wireless communication equipment can be controlled more conveniently, and the convenience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technology, and in particular to a control method for wireless communication equipment, a vehicle control system, and a wireless communication equipment. Background Art

[0002] With the innovative application of wireless communication technology in vehicle control, wireless communication devices with vehicle control functions have emerged. The owner's mobile device can establish a communication connection with the wireless communication device and remotely trigger the vehicle control function of the wireless communication device.

[0003] Traditionally, if a wireless communication device's communication module experiences an anomaly, manual operation is required to restore the module's communication capabilities. However, since manual operation of the wireless communication device is impossible when the vehicle is locked, any anomaly in the module can result in the vehicle being locked. This can force the driver to seek professional assistance, which is inconvenient. Summary of the Invention

[0004] Based on this, it is necessary to provide a control method for a wireless communication device, a vehicle control system, and a wireless communication device that can improve convenience in response to the above technical problems.

[0005] In a first aspect, the present application provides a method for controlling a wireless communication device, the wireless communication device including a first communication module and a second communication module; the method comprising: establishing a first communication connection with a mobile device through the first communication module, so that the mobile device triggers a vehicle control function of the wireless communication device based on the first communication connection; sending address information of the second communication module to the mobile device based on the first communication connection, so that when the mobile device is unable to establish the first communication connection with the wireless communication device, if a connection triggering operation is obtained, the mobile device sends a directed connection request based on the address information; After the second communication module receives the directional connection request, establishing a second communication connection with the mobile device through the second communication module, so that the mobile device sends a reset instruction to the wireless communication device based on the second communication connection; When the reset instruction is received, a hardware reset is performed on the first communication module.

[0006] In a second aspect, the present application further provides a vehicle control system, the system comprising a mobile device and a wireless communication device; the wireless communication device comprising a first communication module and a second communication module; The wireless communication device is configured to establish a first communication connection with the mobile device via the first communication module; the mobile device, configured to trigger a vehicle control function of the wireless communication device based on the first communication connection; The wireless communication device is further configured to send address information of the second communication module to the mobile device based on the first communication connection; The mobile device is further configured to, when the first communication connection cannot be established with the wireless communication device, send a directed connection request based on the address information if a connection triggering operation is obtained; The wireless communication device is further configured to establish a second communication connection with the mobile device via the second communication module after the second communication module receives the directional connection request; The mobile device is further configured to send a reset instruction to the wireless communication device based on the second communication connection; The wireless communication device is further configured to perform a hardware reset on the first communication module upon receiving the reset instruction.

[0007] In a third aspect, the present application further provides a wireless communication device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in the above method when executing the computer program.

[0008] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps in the above method when executed by a processor.

[0009] In a fifth aspect, the present application also provides a computer program product, comprising a computer program, which implements the steps in the above method when executed by a processor.

[0010] The control method, wireless communication device, vehicle control system, storage medium, and computer program product described above include a first communication module and a second communication module. The wireless communication device establishes a first communication connection with a mobile device via the first communication module, so that the mobile device triggers a vehicle control function of the wireless communication device based on the first communication connection. Only when the mobile device establishes the first communication connection with the wireless communication device can the vehicle control function of the wireless communication device be triggered. However, if the first communication module experiences an abnormality, the mobile device cannot establish the first communication connection with the wireless communication device even if it is within the communication range of the first communication module. To restore the communication capability of the first communication module and reestablish the first communication connection between the mobile device and the wireless communication device, a hardware reset of the first communication module is required. To avoid the problem of the mobile device and the wireless communication device being unable to communicate when the first communication module fails, the wireless communication device sends the address information of the second communication module to the mobile device based on the first communication connection. Furthermore, when the mobile device is unable to establish the first communication connection with the wireless communication device, if a connection triggering operation is obtained, it sends a directed connection request based on the address information. When the first communication module fails, the mobile device cannot detect the first communication module. The vehicle owner can trigger the mobile device to send a directed connection request based on the address information by performing a connection triggering operation on demand, thereby ensuring that the second communication connection is established on demand and avoiding waste of communication resources. After the wireless communication device receives the directional connection request in the second communication module, it establishes a second communication connection with the mobile device through the second communication module, so that the mobile device sends a reset instruction to the wireless communication device based on the second communication connection; when the reset instruction is received, the first communication module is hardware reset to ensure that the mobile device can control the hardware reset of the first communication module based on the second communication connection, and restore the communication capability of the first communication module. This can avoid the problem that the mobile device cannot trigger the vehicle control function of the wireless communication device on the vehicle side when the vehicle is locked, thereby causing the vehicle to be locked, thereby greatly improving convenience. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 This is an application environment diagram of a control method for a wireless communication device provided in an embodiment of the present application.

[0012] Figure 2 A flow chart of a vehicle control method provided in an embodiment of the present application.

[0013] Figure 3 A hardware architecture diagram of a wireless communication device provided in an embodiment of the present application.

[0014] Figure 4 A software architecture diagram of a wireless communication device provided in an embodiment of the present application.

[0015] Figure 5A structural block diagram of a vehicle control system provided in an embodiment of the present application.

[0016] Figure 6 This is a diagram of the internal structure of a wireless communication device provided in an embodiment of the present application.

[0017] Figure 7 A diagram of the internal structure of a mobile device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0019] The vehicle method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, to prevent the wireless communication device 102 from being too far from the vehicle, which would render the vehicle control function of the wireless communication device 102 inoperable, the wireless communication device 102 should be placed on the vehicle side, for example, inside the vehicle. The wireless communication device 102 can establish a first communication connection with the mobile device 104 via the first communication module, so that the mobile device 104 triggers the vehicle control function of the wireless communication device 102 based on the first communication connection.

[0020] The wireless communication device 102 may send the address information of the second communication module to the mobile device 104 based on the first communication connection. When the mobile device 104 fails to establish the first communication connection with the wireless communication device, if a connection triggering operation is obtained, the mobile device 104 may send a directed connection request based on the address information.

[0021] After the second communication module receives the directed connection request, the wireless communication device 102 may establish a second communication connection with the mobile device via the second communication module. The mobile device 104 may send a reset instruction to the wireless communication device 102 based on the second communication connection. Upon receiving the reset instruction, the wireless communication device 102 may perform a hardware reset on the first communication module.

[0022] The mobile device 104 may be, but is not limited to, various personal computers, laptops, smartphones, tablet computers, IoT devices, and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc.

[0023] In some embodiments, the mobile device may include a vehicle control program that is compatible with the wireless communication device. The vehicle control program is configured to execute the steps described in the various embodiments of the present application using the mobile device. It is understood that the steps described in the various embodiments of the present application using the mobile device can all be implemented using the vehicle control program.

[0024] In an exemplary embodiment, Figure 2 As shown, a flow chart of a vehicle control method is provided, in which the method is applied to Figure 1 The wireless communication device 102 in FIG. 1 is used as an example to illustrate the method, which includes the following steps 202 to 208.

[0025] Step 202 : Establish a first communication connection with a mobile device through a first communication module, so that the mobile device triggers a vehicle control function of the wireless communication device based on the first communication connection.

[0026] The vehicle control function refers to a function for controlling the vehicle, for example, a keyless entry function or a trunk opening and closing function.

[0027] For example, when the mobile device is a bound device on the wireless communication device, the wireless communication device may establish a first binding connection with the mobile device via the first communication module, so that the mobile device transmits a radio frequency signal to the wireless communication device based on the first communication connection. The wireless communication device may receive the radio frequency signal based on the first binding connection and determine a signal strength indicator value that matches the strength of the received radio frequency signal. The vehicle may be locked or unlocked based on the signal strength indicator value to implement keyless entry vehicle control. It will be understood that the signal strength indicator (RSSI) value can reflect the strength of the radio frequency signal received by the wireless communication device. The closer the distance between the wireless communication device and the mobile device, the greater the radio frequency signal strength received by the wireless communication device, and the greater the signal strength indicator value. The farther the distance between the wireless communication device and the mobile device, the weaker the radio frequency signal strength received by the wireless communication device, and the smaller the signal strength indicator value.

[0028] It can be understood that in order to avoid the security risks brought about by the vehicle control function being triggered after an unknown device establishes any communication connection with the wireless communication device, permission control is required. Only when the mobile device is a binding device of the wireless communication device can it establish the first binding connection with the wireless communication device, and then trigger the vehicle control function of the wireless communication device, thereby ensuring the safety of vehicle control.

[0029] In some embodiments, the vehicle control function may include, but is not limited to, a keyless entry function. The mobile device may trigger the keyless entry function of the wireless communication device based on the first communication connection. Specifically, the wireless communication device may sense the proximity or distance of the mobile device based on the first communication connection. When the mobile device approaches the wireless communication device, the wireless communication device may be triggered to unlock the vehicle, and when the mobile device moves away from the wireless communication device, the wireless communication device may be triggered to lock the vehicle.

[0030] In some embodiments, the wireless communication device can perform two-way identity authentication with the mobile device based on the target authentication key of the local end when the mobile device is not the bound device of the local end. After the two-way identity authentication passes, the mobile device is determined to be the bound device of the local end.

[0031] In some embodiments, the wireless communication device can store relevant information of the mobile device in the target storage space to use the mobile device as a binding device on the local side, so that a first binding connection can be quickly established with the mobile device through the first communication module.

[0032] In some embodiments, the wireless communication device can control the first communication module to transmit broadcast data, so that when the mobile device enters the communication range of the first communication module, the device initiates a first connection request to the wireless communication device based on the received broadcast data. Upon receiving the first connection request, the wireless communication device can establish a first binding connection with the mobile device via the first communication module if the mobile device is a bound device of the device, and otherwise perform bidirectional identity authentication with the mobile device based on the target authentication key.

[0033] In some embodiments, the broadcast data is a structured data including a broadcast name field and an address field. The field value under the broadcast name field may be, but is not limited to, a device identifier of the wireless communication device. The field value under the address field is used to indicate the address of the first communication module. The wireless communication device may use the device identifier as the field value under the broadcast name field through the first communication module to generate broadcast data and broadcast the broadcast data. The mobile device may obtain a to-be-verified identifier, parse the received broadcast data, and, when the field value under the broadcast name field in the broadcast data is a device identifier, send a first connection request to the wireless communication device based on the field value under the address field in the broadcast data.

[0034] In some embodiments, the mobile device may obtain an input identification to be verified.

[0035] In some embodiments, the mobile device can obtain the identification to be verified by scanning a graphic code. The graphic code can be, but is not limited to, set on the housing or packaging of the wireless communication device. The wireless communication device can also display the graphic code on the screen.

[0036] In some embodiments, the mobile device can obtain a pairing code to be verified. Specifically, the mobile device can obtain the pairing code to be verified by inputting it or by scanning a graphic code. After the two-way identity authentication is successful, the wireless communication device can receive the pairing code to be verified issued by the mobile device. If the pairing code to be verified matches the target pairing code of the local terminal, the mobile device can determine that the pairing between the mobile device and the first communication module is successful, and the mobile device can be used as a bound device of the local terminal.

[0037] In some embodiments, the mobile device runs a vehicle control program. The mobile device can interact with the wireless communication device through the vehicle control program to implement various method embodiments in this application.

[0038] In some embodiments, the first communication module is a wireless communication module, which may be, but is not limited to, a Bluetooth Low Energy (BLE) module, a ZigBee module, or a Wireless Local Area Network (Wi-Fi) module.

[0039] In some embodiments, the wireless communication device may continuously receive radio frequency signals transmitted by the mobile device based on the first communication connection, determine a received signal strength indicator value that matches the strength of the received radio frequency signal, and then read each received signal strength indicator value at a preset time interval.

[0040] In some embodiments, the wireless communication device may include a key chip. The wireless communication device can match the key chip with the original vehicle key via wireless low-frequency signals, replicating the vehicle control functions of the original vehicle key. After establishing a first binding connection with the mobile device via a first communication module, the wireless communication device can enable the key chip. When each signal strength indicator value meets the locking condition, the key chip controls the vehicle to be locked. When each signal strength indicator value meets the unlocking condition, the key chip controls the vehicle to be unlocked.

[0041] In some embodiments, a gradual increase in the signal strength indicator values ​​indicates that the mobile device is approaching the vehicle-side wireless communication device, while a decrease indicates that the mobile device is moving away from the vehicle-side wireless communication device. To enable unlocking when the vehicle owner approaches the vehicle, the unlocking condition may include, but is not limited to, an increase in the signal strength indicator values. To enable locking when the vehicle owner moves away from the vehicle, the locking condition may include, but is not limited to, a decrease in the signal strength indicator values.

[0042] In some embodiments, the unlocking condition may be, but is not limited to, that the current strength value is higher than the unlocking strength indication value. The locking condition may be, but is not limited to, that the current strength indication value is lower than the locking strength indication value.

[0043] The wireless communication device can filter each signal strength indicator value to obtain a current strength indicator value. It will be appreciated that the farther the mobile device is from the vehicle, the smaller the current strength indicator value obtained by the vehicle-side wireless communication device. The closer the mobile device is to the vehicle, the larger the current strength indicator value obtained by the vehicle-side wireless communication device. The wireless communication device can control the vehicle to lock when the current strength indicator value is lower than the locking strength indicator value. When the current strength indicator value is higher than the unlocking strength indicator value, the device can control the vehicle to unlock, thereby implementing keyless entry vehicle control functionality.

[0044] In some embodiments, upon receiving an unlock distance setting instruction, the wireless communication device may measure the signal strength indicator value of the current location based on the first binding connection, and use the signal strength indicator value of the current location as the unlock strength indicator value. Upon receiving a lock distance setting instruction, the wireless communication device may measure the signal strength indicator value of the current location based on the first binding connection, and use the signal strength indicator value of the current location as the lock strength indicator value. The unlock distance setting instruction may be issued by the mobile device when an unlock distance setting operation is obtained. The lock distance setting instruction may be issued by the mobile device when a lock distance setting operation is obtained.

[0045] In some embodiments, the wireless communication device may perform multiple filtering processes on each signal strength indicator value to obtain a current strength indicator value. Specifically, the wireless communication device may first perform mean filtering on each strength indicator value, and then perform Kalman filtering on each strength indicator value to obtain the current strength indicator value. It is understood that because the signal strength indicator values ​​collected by the first communication module exhibit random fluctuations, mean filtering is first performed to suppress high-frequency random noise and eliminate outlier interference. Subsequently, Kalman filtering is used to optimize the remaining low-frequency noise, perform state estimation on the low-frequency trend component, and dynamically adapt to environmental changes.

[0046] Step 204: Send the address information of the second communication module to the mobile device based on the first communication connection, so that when the mobile device cannot establish the first communication connection with the wireless communication device, if a connection triggering operation is obtained, it sends a directed connection request based on the address information.

[0047] The address information is used to represent the Media Access Control Address (MAC) of the second communication module. It can be understood that the first communication connection is essentially a communication connection between the first communication module and the mobile device. Therefore, all data sent by the mobile device to the wireless communication device based on the first communication connection is received via the first communication module, and all data sent by the wireless communication device to the mobile device based on the first communication connection is sent via the first communication module.

[0048] For example, the first communication connection may include a first binding connection. The wireless communication device may send the address information of the second communication module to the mobile device based on the first binding connection. Furthermore, if the mobile device is unable to establish the first binding connection with the wireless communication device and a connection triggering operation is obtained, it may send a directed connection request based on the address information. The connection triggering operation may include, but is not limited to, an operation that the vehicle owner may perform on the mobile device when the mobile device enters the communication range of the first communication module and is unable to establish the first binding connection with the wireless communication device.

[0049] It can be understood that the mobile device can receive the address information of the second communication module only after establishing the first binding connection with the wireless communication device, which can prevent the address information of the second communication module from being leaked and ensure security.

[0050] In some embodiments, the communication interface of the first communication module is connected to the communication interface of the second communication module. The wireless communication device can communicate with the second communication module through the communication interface of the first communication module to obtain the address information of the second communication module, and then send the address information to the mobile device based on the first communication connection.

[0051] Step 206: After the second communication module receives the directional connection request, a second communication connection is established with the mobile device via the second communication module, so that the mobile device sends a reset instruction to the wireless communication device based on the second communication connection.

[0052] It can be understood that the second communication connection is essentially a communication connection between the second communication module and the mobile device. Therefore, the data sent by the mobile device to the wireless communication device based on the second communication connection is received via the second communication module, and the data sent by the wireless communication device to the mobile device based on the second communication connection is sent via the second communication module.

[0053] Exemplarily, since the directional connection request is initiated based on the address information of the second communication module, the directional connection request can be transmitted point-to-point to the second communication module. The second communication connection may include a second binding connection. After the second communication module receives the directional connection request, the wireless communication device may perform a two-way handshake authentication with the mobile device based on the target authentication key of the local end. After the two-way handshake authentication is passed, the second binding connection is established with the mobile device through the second communication module, so that the mobile device sends a reset instruction to the wireless communication device based on the second binding connection. The reset instruction is an instruction for instructing a hardware reset of the first communication module.

[0054] In some embodiments, the wireless communication device can obtain the first module data of the first communication module and send the first module data to the mobile device based on the second binding connection, so that when the first module data indicates that the operating status of the first communication module is abnormal, the mobile device sends a reset instruction to the wireless communication device based on the second binding connection.

[0055] In some embodiments, the wireless communication device may control the second communication module to perform communication interface communication with the first communication module, and determine the first module data based on a communication interface response of the first communication module.

[0056] In some embodiments, the second communication module may be, but is not limited to, a wireless communication module such as a Bluetooth Low Energy (BLE) module, a ZigBee module, or a Wireless Local Area Network (Wi-Fi) module. The power consumption of the second communication module may be lower than that of the first communication module.

[0057] It can be understood that, considering that if multiple communication modules for triggering vehicle control functions are deployed in a wireless communication device, when a communication module is abnormal, other communication modules are enabled, this approach will inevitably require the hardware performance of multiple communication modules to be comparable, which will greatly increase the hardware cost of the wireless communication device, and the computational complexity of the processing logic for triggering the vehicle control function is higher, which will also increase the computational complexity of the wireless communication device. Therefore, in the wireless communication device provided in the present application, the first communication module is mainly used to implement the processing logic for triggering the vehicle control function of this end, while the second communication module is mainly used to implement the processing logic for triggering the hardware reset of the first communication module. The processing logic of the second communication module has lower computational complexity than the processing logic of the first communication module, and the demand for the hardware performance of the second communication module is smaller. A second communication module with lower power consumption can be selected to reduce hardware costs.

[0058] Step 208: When a reset instruction is received, perform a hardware reset on the first communication module.

[0059] Exemplarily, upon receiving a reset instruction, the wireless communication device may control a hardware reset pin of the first communication module to generate a hardware reset interrupt, thereby forcibly restarting the first communication module to restore the communication capability of the first communication module.

[0060] In some embodiments, the wireless communication device can perform a hardware reset on the first communication module via the second communication module. It is understood that the reset instruction can trigger the second communication module to control the hardware reset pin of the first communication module, generating a hardware reset interrupt.

[0061] In some embodiments, the target storage space is located in the non-volatile memory of the first communication module, which can ensure that the first communication module does not lose the information in the target storage space after the hardware reset, so that the first binding connection can be quickly established with the mobile device through the first communication module after the hardware reset.

[0062] In some embodiments, when the wireless communication device receives a first connection request for the first time after a hardware reset of the first communication module, it can perform a two-way identity authentication with the mobile device based on the local target authentication key. After the two-way identity is passed, the first communication module quickly establishes a first binding connection with the mobile device based on the information in the target storage space. It is understood that before the first binding connection is established for the first time after the hardware reset of the first communication module, a two-way identity authentication is required. This can prevent power-off replay attacks by illegal devices and ensure the security of the first binding connection.

[0063] In the above-mentioned control method for a wireless communication device, the wireless communication device includes a first communication module and a second communication module. The wireless communication device establishes a first communication connection with a mobile device via the first communication module, so that the mobile device triggers a vehicle control function of the wireless communication device based on the first communication connection. Only when the mobile device establishes the first communication connection with the wireless communication device can the vehicle control function of the wireless communication device be triggered. However, if the first communication module malfunctions, the mobile device cannot establish the first communication connection with the wireless communication device even if it is within the communication range of the first communication module. To restore the communication capability of the first communication module and reestablish the first communication connection between the mobile device and the wireless communication device, a hardware reset of the first communication module is required. To avoid the problem of the mobile device and the wireless communication device being unable to communicate when the first communication module malfunctions, the wireless communication device sends the address information of the second communication module to the mobile device based on the first communication connection. Furthermore, when the mobile device is unable to establish the first communication connection with the wireless communication device, if a connection triggering operation is obtained, it sends a directed connection request based on the address information. When the first communication module malfunctions, the mobile device cannot detect the first communication module. The vehicle owner can perform a connection triggering operation on demand to trigger the mobile device to send a directed connection request based on the address information, thereby ensuring that the second communication connection is established on demand and avoiding waste of communication resources. After the wireless communication device receives the directional connection request in the second communication module, it establishes a second communication connection with the mobile device through the second communication module, so that the mobile device sends a reset instruction to the wireless communication device based on the second communication connection; when the reset instruction is received, the first communication module is hardware reset to ensure that the mobile device can control the hardware reset of the first communication module based on the second communication connection, and restore the communication capability of the first communication module. This can avoid the problem that the mobile device cannot trigger the vehicle control function of the wireless communication device on the vehicle side when the vehicle is locked, thereby causing the vehicle to be locked, thereby greatly improving convenience.

[0064] In some embodiments, a first communication connection is established with a mobile device through a first communication module, so that the mobile device triggers the vehicle control function of the wireless communication device based on the first communication connection, including: when the mobile device is not a bound device on this end, performing two-way identity authentication with the mobile device; after the two-way identity authentication is passed, using the mobile device as a bound device on this end; when the mobile device is a bound device on this end, establishing a first binding connection with the mobile device through the first communication module, so that the mobile device triggers the vehicle control function of the wireless communication device based on the first binding connection.

[0065] Exemplarily, the wireless communication device can control the first communication module to send broadcast data, so that when the mobile device enters the communication range of the first communication module, a first connection request is sent to the wireless communication device based on the received broadcast data. The first connection request is received through the first communication module. If the first connection request indicates that the mobile device is not a bound device on this end, a two-way identity authentication is performed with the mobile device. After the two-way identity authentication is passed, the mobile device is used as a bound device on this end by storing the relevant information of the mobile device in the target storage space, and a first binding connection is established with the mobile device through the first communication module. If the first connection request indicates that the mobile device is a bound device on this end, a first binding connection is established with the mobile device through the first communication module.

[0066] In some embodiments, the first connection request may carry information related to the mobile device. The wireless communication device may obtain the information related to the mobile device carried in the first connection request. If the information related to the mobile device does not match the information in the target storage space, it indicates that the mobile device is not a bound device of the local end. If the information related to the mobile device matches the information in the target storage space, it indicates that the mobile device is a bound device of the local end.

[0067] In some embodiments, the two-way identity authentication method may include at least one of certificate two-way authentication, token two-way authentication, pre-shared key, biometrics or hardware-level two-way authentication.

[0068] In some embodiments, a wireless communication device can perform bidirectional authentication with a mobile device based on a pre-shared key. Specifically, the wireless communication device can perform bidirectional authentication with the mobile device based on its own target authentication key. Bidirectional authentication is successful if the mobile device's verification authentication key matches the target authentication key. In some embodiments, the wireless communication device can receive first encrypted data from a mobile device. The first encrypted data is obtained by encrypting a first random number using the verification authentication key. The first encrypted data is decrypted using the target authentication key to obtain first plaintext data. The first plaintext data and a second random number are encrypted using the target authentication key to obtain second encrypted data. The second encrypted data is sent to the mobile device, causing the mobile device to decrypt the second encrypted data using the verification authentication key to obtain second plaintext data. If the second plaintext data contains the first random number, the device determines reference plaintext data within the second plaintext data other than the first random number and encrypts the reference plaintext data using the verification authentication key to obtain third encrypted data. The device then receives third encrypted data from the mobile device. The third encrypted data is decrypted using the target authentication key to obtain third plaintext data. If the third plaintext data is the second random number, the bidirectional authentication is successful.

[0069] In some embodiments, the target authentication key can be, but is not limited to, generated based on the device identifier of the wireless communication device. Specifically, the wireless communication device can generate the target authentication key based on the device identifier of the wireless communication device through the first communication module, control the first communication module to communicate with the second communication module, and transmit the target authentication key to the second communication module. It is understood that the first communication module and the second communication module can store the target authentication key to facilitate the subsequent wireless communication device to quickly perform two-way identity authentication with the mobile device based on the target authentication key through the first communication module, and perform two-way handshake authentication with the mobile device based on the target authentication key through the second communication module.

[0070] In some embodiments, the mobile device may generate an authentication key based on the obtained identity to be verified.

[0071] In some embodiments, the mobile device may generate a verification authentication key based on a message digest algorithm and the verification identifier. The wireless communication device may generate a target authentication key based on the message digest algorithm and the local device identifier. The message digest algorithm may be, but is not limited to, Message Digest Algorithm 5 (MD5).

[0072] In some embodiments, the wireless communication device can decrypt encrypted data sent by the mobile device based on the target authentication key. The mobile device can decrypt encrypted data sent by the wireless communication device based on the verification authentication key. It will be understood that if the verification authentication key matches the target authentication key, the verification authentication key can be used to decrypt data encrypted with the target authentication key, and the target authentication key can be used to decrypt data encrypted with the verification authentication key. Therefore, if the encrypted data sent by the wireless communication device is correctly decrypted by the mobile device, and the encrypted data sent by the mobile device is correctly decrypted by the wireless communication device, it can be determined that the verification authentication key and the target authentication key match, and bidirectional identity authentication has been successful.

[0073] In this embodiment, if the mobile device is not a bound device on the local end, bidirectional identity authentication is performed with the mobile device. After the bidirectional identity authentication is successful, the mobile device is designated as a bound device on the local end. If the mobile device is a bound device on the local end, a first binding connection is established with the mobile device via the first communication module, allowing the mobile device to trigger the vehicle control function of the wireless communication device based on the first binding connection. Only after the bidirectional identity authentication is successful can the mobile device, as a bound device of the wireless communication device, use the vehicle control function of the wireless communication device, thereby ensuring the security of vehicle control.

[0074] In some embodiments, performing two-way identity authentication with a mobile device includes: performing long-term key negotiation with the mobile device, and establishing a first encrypted connection between the first communication module and the mobile device based on the negotiated long-term key; and performing two-way identity authentication with the mobile device based on the first encrypted connection.

[0075] Among them, the long-term key (LTK) is used to continuously encrypt the communication connection established between the wireless communication device and the mobile device through the first communication module. It is understandable that after the long-term key negotiation is completed, the mobile device and the wireless communication device will store the long-term key, and there is no need to re-negotiate the long-term key subsequently. The first binding connection and the first encrypted connection are both communication connections encrypted with the long-term key, and the first initial connection is a communication connection not encrypted with the long-term key. For example, if the first connection request indicates that the first communication module is not a binding device on the local end, the wireless communication device can establish a first initial connection with the mobile device through the first communication module. It is understandable that the initial connection is an unauthenticated communication connection, and the binding connection is an authenticated communication connection. The binding connection has greater data interaction permissions. Under the initial connection, the data that can be communicated between the mobile device and the wireless communication device is limited. Although two-way identity authentication can be performed, the mobile device cannot trigger the vehicle control function of the wireless communication device. Only after establishing the first binding connection with the first communication module can the mobile device trigger the vehicle control function of the wireless communication device.

[0076] The wireless communication device may perform long-term key negotiation with the mobile device based on the first initial connection, and establish a first encrypted connection with the mobile device through the first communication module based on the negotiated long-term key.

[0077] After establishing a first encrypted connection with the wireless communication device, the mobile device may generate a first random number, encrypt the first random number using a to-be-verified authentication key to obtain first encrypted data, and send the first encrypted data to the wireless communication device based on the first encrypted connection.

[0078] The wireless communication device may receive first encrypted data over a first encrypted connection, decrypt the first encrypted data using a target authentication key to obtain first plaintext data, generate a second random number, encrypt the first plaintext data and the second random number using the target authentication key to obtain second encrypted data, and send the second encrypted data to the mobile device over the first encrypted connection.

[0079] The mobile device can receive second encrypted data based on the first encrypted connection. The second encrypted data is decrypted using the verification key to obtain second plaintext data. If the second plaintext data does not contain the first random number, the mobile device determines that the two-way identity authentication has failed, and disconnects the first encrypted connection with the wireless communication device. If the second plaintext data contains the first random number, reference plaintext data other than the first random number is obtained from the second plaintext data, and the reference plaintext data is encrypted using the verification key to obtain third encrypted data. The third encrypted data is then sent to the wireless communication device based on the first encrypted connection.

[0080] The wireless communication device may determine that the two-way identity authentication failed when the first encrypted connection between the wireless communication device and the mobile device is disconnected. Based on the first encrypted connection, the wireless communication device receives third encrypted data. The wireless communication device decrypts the third encrypted data using the target authentication key to obtain third plaintext data. If the third plaintext data is the second random number, the wireless communication device determines that the two-way identity authentication succeeded. If the third plaintext data is not the second random number, the wireless communication device disconnects the first encrypted connection with the mobile device.

[0081] The mobile device may determine that the two-way identity authentication fails when the first encrypted connection between the mobile device and the wireless communication device is disconnected.

[0082] In some embodiments, the wireless communication device may concatenate the second random number after the first plaintext data to obtain first concatenated data. The first concatenated data may be encrypted using the target authentication key to obtain second encrypted data. The data length of the first random number is a preset number of bytes. If the data preceding the second plaintext data by a preset number of bytes is not the first random number, the mobile device may determine that the two-way identity authentication has failed and disconnect the first encrypted connection between the mobile device and the first communication module.

[0083] In this embodiment, a long-term key negotiation is performed with the mobile device, and a first encrypted connection is established between the first communication module and the mobile device based on the negotiated long-term key. Furthermore, based on the first encrypted connection, bidirectional authentication is performed with the mobile device. Bidirectional authentication is performed only after the first encrypted connection is established, which prevents data from being stolen or tampered with during the bidirectional authentication process, thereby ensuring the security of the bidirectional authentication.

[0084] In some embodiments, after the two-way identity authentication is passed, the mobile device is used as the binding device of the local end, including: after the two-way identity authentication is passed, receiving the pairing code to be verified sent by the mobile device; when the pairing code to be verified is consistent with the target pairing code of the local end, the mobile device is used as the binding device of the local end.

[0085] For example, after bidirectional identity authentication is successful, the mobile device can send a pairing code to be verified to the wireless communication device based on the first encrypted connection. The wireless communication device can receive the pairing code based on the first encrypted connection and compare it with the target pairing code of the local end. If the pairing code to be verified and the target pairing code are consistent, it indicates that pairing is successful, and the mobile device is used as the binding device of the local end. The first binding connection is established with the mobile device via the first communication module. If the pairing code to be verified and the target pairing code are inconsistent, it indicates that pairing fails, and the first encrypted connection with the mobile device is disconnected.

[0086] In some embodiments, the pairing code to be verified may be input by the vehicle owner into the mobile device, or obtained by scanning a graphic code by the mobile device.

[0087] In this embodiment, after the wireless communication device passes two-way authentication, it receives the verification code sent by the mobile device. This prevents devices that have not passed two-way authentication from stealing the verification code of the mobile device. If the verification code matches the target pairing code of the local device, the mobile device is used as the local binding device, ensuring security.

[0088] In some embodiments, after the second communication module receives a directed connection request, a second communication connection is established with the mobile device through the second communication module, so that the mobile device sends a reset instruction to the wireless communication device based on the second communication connection, including: after the second communication module receives the directed connection request, a two-way handshake authentication is performed with the mobile device; after the two-way handshake authentication is passed, a second binding connection is established with the mobile device through the second communication module, so that the mobile device sends a reset instruction to the wireless communication device based on the second binding connection.

[0089] For example, the wireless communication device can negotiate a short-term key with the mobile device and establish a second encrypted connection between the second communication module and the mobile device based on the negotiated short-term key. A two-way handshake authentication is performed with the mobile device based on the second encrypted connection. The short-term key (STK) is used to encrypt a communication connection established between the wireless communication device and the mobile device via the second communication module. It is understood that if the communication connection established between the wireless communication device and the mobile device via the second communication module is subsequently encrypted again, the short-term key negotiation must be repeated. Both the second binding connection and the second encrypted connection are communication connections encrypted with the short-term key.

[0090] After the two-way handshake authentication is passed, the mobile device can send a pairing code to be verified to the wireless communication device based on the second encrypted connection.

[0091] The wireless communication device may receive the pairing code to be verified based on the second encrypted connection, compare the pairing code to be verified with the target pairing code of the local end, and establish a second binding connection with the mobile device through the second communication module if the pairing code to be verified and the target pairing code are consistent.

[0092] The mobile device may send a reset instruction to the wireless communication device based on the second binding connection.

[0093] In some embodiments, the wireless communication device may establish a second initial connection with the mobile device via the second communication module when the second communication module receives a directed connection request. A short-term key negotiation may be performed with the mobile device based on the second initial connection. It is understood that the second initial connection is a communication connection that is not encrypted with a short-term key.

[0094] In some embodiments, the two-way handshake authentication method may include at least one of certificate two-way authentication, token two-way authentication, pre-shared key, biometrics, or hardware-level two-way authentication.

[0095] In some embodiments, the wireless communication device can perform a two-way handshake authentication with the mobile device based on a pre-shared key. Specifically, the wireless communication device can perform a two-way handshake authentication with the mobile device based on the target authentication key of the local end. Wherein, when the authentication key to be verified of the mobile device matches the target authentication key, the two-way handshake authentication passes. It can be understood that the two-way handshake authentication and the two-way identity authentication can both verify whether the authentication key to be verified matches the target authentication key. The difference is that the two-way handshake authentication is a two-way authentication before establishing the second binding connection, while the two-way identity authentication is a two-way authentication before establishing the first binding connection. In fact, the two-way handshake authentication is a two-way authentication performed with the mobile device through the second communication module, and the two-way identity authentication is a two-way authentication performed with the mobile device through the first communication module.

[0096] In some embodiments, the wireless communication device can control the first communication module to communicate with the second communication module, transmit the target authentication key to the second communication module, so that after the second communication module receives the directional connection request, it performs a two-way handshake authentication with the mobile device based on the target authentication key.

[0097] In some embodiments, the first communication interface of the first communication module is connected to the second communication interface of the second communication module. The wireless communication device can control the first communication module to transmit the target authentication key to the second communication interface through the first communication interface, so that the second communication module receives the target authentication key through the second communication interface.

[0098] In some embodiments, the first communication interface and the second communication interface may be, but are not limited to, a physical interface of an asynchronous serial communication interface (Universal Asynchronous Receiver / Transmitter, UART), a serial peripheral interface (SPI), or an integrated circuit bus (Inter-Integrated Circuit, IIC).

[0099] In some embodiments, after establishing a second encrypted connection with the wireless communication device, the mobile device may generate a third random number, encrypt the third random number using the verification authentication key to obtain fourth encrypted data, and send the fourth encrypted data to the wireless communication device based on the second encrypted connection.

[0100] The wireless communication device may receive fourth encrypted data over the second encrypted connection, decrypt the fourth encrypted data using the target authentication key to obtain fourth plaintext data, generate a fourth random number, encrypt the fourth plaintext data and the fourth random number using the target authentication key to obtain fifth encrypted data, and send the fifth encrypted data to the mobile device over the second encrypted connection.

[0101] The mobile device may receive fifth encrypted data based on the second encrypted connection. The mobile device may decrypt the fifth encrypted data using the verification key to obtain fifth plaintext data. If the fifth plaintext data does not contain the third random number, the mobile device may determine that the two-way handshake authentication has failed, and disconnect the second encrypted connection with the wireless communication device. If the fifth plaintext data contains the third random number, the mobile device may obtain the encrypted data excluding the third random number from the fifth plaintext data, encrypt the encrypted data using the verification key to obtain sixth encrypted data, and transmit the sixth encrypted data to the wireless communication device based on the second encrypted connection.

[0102] The wireless communication device may determine that the two-way handshake authentication failed when the second encrypted connection between the wireless communication device and the mobile device is disconnected. Based on the second encrypted connection, the wireless communication device receives sixth encrypted data. The sixth encrypted data is decrypted using the target authentication key to obtain sixth plaintext data. If the sixth plaintext data is the fourth random number, the wireless communication device determines that the two-way handshake authentication succeeded. If the sixth plaintext data is not the fourth random number, the wireless communication device disconnects the second encrypted connection with the mobile device.

[0103] The mobile device may determine that the two-way handshake authentication fails when the second encrypted connection between the mobile device and the wireless communication device is disconnected.

[0104] In some embodiments, the wireless communication device may concatenate a fourth random number after the fourth plaintext data to obtain second concatenated data. The second concatenated data may be encrypted using the target authentication key to obtain fifth encrypted data. The data length of the third random number is a preset number of bytes. If the data preceding the second plaintext data by a preset number of bytes is not the third random number, the mobile device may determine that the two-way identity authentication has failed and terminate the second encrypted connection between the mobile device and the wireless communication device.

[0105] In this embodiment, after receiving a directional connection request, the second communication module performs a two-way handshake authentication with the mobile device. After the two-way handshake authentication is successful, a second binding connection is established with the mobile device via the second communication module. Only wireless communication devices and mobile devices that have passed the two-way handshake authentication can establish the second binding connection, thus ensuring security. Furthermore, the mobile device sends a reset instruction to the wireless communication device based on the second binding connection. The mobile device only sends the reset instruction after establishing the second binding connection with the wireless communication device, thus preventing unknown devices from stealing the reset instruction and ensuring security.

[0106] In some embodiments, the first communication interface of the first communication module is connected to the second communication interface of the second communication module; the address information of the second communication module is sent to the mobile device based on the first communication connection, including: in the initialization stage of this end, enabling the first communication interface and the second communication interface; controlling the second communication module to transmit its own address information to the first communication interface through the second communication interface, so that the first communication module receives the address information through the first communication interface, and sends the address information to the mobile device based on the first communication connection.

[0107] Exemplarily, after powering on the wireless communication device, it enters an initialization phase. During the initialization phase, the wireless communication device can control the first communication module to enable the first communication interface and the second communication module to enable the second communication interface, so that the first communication module and the second communication module can communicate via the connected first and second communication interfaces. The wireless communication device can control the second communication module to transmit its own address information to the first communication interface via the second communication interface, so that the first communication module receives the address information via the first communication interface. The address information is sent to the mobile device based on the first binding connection.

[0108] In some embodiments, the first communication interface and the second communication interface may be, but are not limited to, asynchronous serial communication interfaces. It is understood that the first communication interface may be, but are not limited to, a first serial port. The second communication interface may be, but are not limited to, a second serial port.

[0109] In this embodiment, during the initialization phase of this end, the first communication interface and the second communication interface are enabled; the second communication module is controlled to transmit its own address information to the first communication interface through the second communication interface, so that the first communication module receives the address information through the first communication interface, and sends the address information to the mobile device based on the first communication connection, so that the mobile device can initiate a directional connection request based on the address information when the first communication module is abnormal, and then the wireless communication device can establish a second communication connection with the mobile device through the second communication module, thereby ensuring normal communication between the mobile device and the wireless communication module and improving adaptability.

[0110] In some embodiments, a second communication connection is established with a mobile device through a second communication module, so that the mobile device sends a reset instruction to the wireless communication device based on the second communication connection, including: establishing a second communication connection with the mobile device through the second communication module, so that the mobile device sends a query instruction to the wireless communication device based on the second communication connection; if the query instruction is received, obtaining the first module data of the first communication module; sending the first module data to the mobile device based on the second communication connection, so that the mobile device sends a reset instruction to the wireless communication device based on the second communication connection when the first module data indicates that the operating status of the first communication module is abnormal.

[0111] Exemplarily, the second communication connection includes a second binding connection. The wireless communication device can establish a second binding connection with the mobile device through the second communication module, so that the mobile device sends a query instruction to the wireless communication device based on the second binding connection. The query instruction is an instruction for instructing to query the operating status of the first communication module. The wireless communication device can receive the query instruction based on the second binding connection, and upon receiving the query instruction, communicate with the first communication module through the communication interface through the second communication module to obtain the first module data. Based on the second binding connection, the first module data is sent to the mobile device, so that when the first module data indicates that the operating status of the first communication module is abnormal, the mobile device sends a reset instruction to the wireless communication device based on the second binding connection. The reset instruction is an instruction for instructing to perform a hardware reset on the first communication module.

[0112] In some embodiments, the mobile device may send a first connection request to the wireless communication device when the first module data indicates that the operating status of the first communication module is normal.

[0113] In some embodiments, the mobile device may update a log based on the first module data, and subsequent technicians may retrieve the log from the mobile device when performing maintenance on the wireless communication device.

[0114] In some embodiments, if the wireless communication device receives a query instruction, it can control the second communication module to communicate with the first communication module, and determine the first module data based on the response of the first communication module. Specifically, the wireless communication device can control the second communication module to send the first query data to the first communication module. Wherein, when the operating status of the first communication module is normal, the first communication module returns the first response data for the first query data. When the second communication module does not receive the first response data, the first module data used to characterize the abnormal operating status of the first communication module is determined. Wherein, the second communication module times out and does not receive any data or the response data received by the second communication module is not the first response data, which means that the second communication module has not received the first response data. It can be understood that when the response data of the first communication module returns an error or the first communication module cannot perform communication interface communication, the second communication module cannot receive the first response data.

[0115] In some embodiments, the wireless communication device can control the second communication module to transmit the first query data to the first communication interface through the second communication interface, so that the first communication module receives the first query data through the first communication interface, and transmits the first response data to the second communication interface through the first communication interface, so that the second communication module receives the first response data through the second communication interface. In this embodiment, a second communication connection is established with the mobile device through the second communication module, so that the mobile device sends a query instruction to the wireless communication device based on the second communication connection; if the query instruction is received, the first module data of the first communication module is obtained; the first module data is sent to the mobile device based on the second communication connection, so that when the first module data indicates that the operating status of the first communication module is abnormal, the mobile device sends a reset instruction to the wireless communication device based on the second communication connection. The mobile device only issues a reset instruction when the operating status of the first communication module is abnormal, which can effectively avoid the risk of accidentally triggering the hardware reset of the first communication module and ensure the hardware performance of the first communication module.

[0116] In some embodiments, if a query instruction is received, the first module data of the first communication module is obtained, including: if a query instruction is received, the device-related data of the local end and the first module data of the first communication module are obtained; the first module data is sent to the mobile device based on the second communication connection, so that when the first module data indicates that the operating status of the first communication module is abnormal, the mobile device sends a reset instruction to the wireless communication device based on the second communication connection, including: sending device-related data and the first module data to the mobile device based on the second communication connection, so that when the device-related data indicates that the hardware status of the wireless communication device is normal and the first module data indicates that the operating status of the first communication module is abnormal, the mobile device sends a reset instruction to the wireless communication device based on the second communication connection.

[0117] Exemplarily, the query instruction is an instruction for querying the hardware status of the wireless communication device and the operating status of the first communication module. Upon receiving the query instruction, the wireless communication device may query at least one device-related data, such as the local power supply voltage or internal temperature, and obtain the first module number of the first communication module. Based on the second binding connection, the device-related data and the first module data are sent to the mobile device. If the device-related data indicates that the hardware status of the wireless communication device is normal and the first module data indicates that the operating status of the first communication module is abnormal, the mobile device sends a reset instruction to the wireless communication device based on the second binding connection.

[0118] In some embodiments, a mobile device may display a restart prompt when device-related data indicates an abnormal hardware status of the wireless communication device. The restart prompt prompts the user to restart the wireless communication device by performing a power-off recovery operation on the wireless communication device. A power-off recovery operation is an operation that powers the wireless communication device off and then back on.

[0119] In some embodiments, the wireless communication device can be powered by a local battery. Power outage recovery operations can include, but are not limited to, removing or inserting the battery. It will be appreciated that the wireless communication device is powered by its own battery and does not rely on the vehicle's power supply. Therefore, the location of the wireless communication device on the vehicle is not restricted, making it more adaptable.

[0120] In some embodiments, the wireless communication device may be powered by a local lithium battery. Furthermore, the wireless communication device may include a charging port for the lithium battery. The charging port may be, but is not limited to, a Type-C port.

[0121] In this embodiment, if a query instruction is received, the device-related data of the local end and the first module data of the first communication module are obtained; the device-related data and the first module data are sent to the mobile device based on the second communication connection, so that when the device-related data indicates that the hardware status of the wireless communication device is normal and the first module data indicates that the operating status of the first communication module is abnormal, the mobile device sends a reset instruction to the wireless communication device based on the second communication connection. Only when the hardware status of the wireless communication device is normal and the operating status of the first communication module is abnormal, the mobile device will send the reset instruction, thereby avoiding the problem of the reset instruction being invalid due to the abnormal hardware status of the wireless communication device, and saving computing resources.

[0122] In some embodiments, the mobile device is used to display reset prompt information; the reset prompt information is used to prompt that the hardware reset of the second communication module be achieved by triggering the reset button on the wireless communication device; the method also includes: if the operation of triggering the reset button is obtained, the hardware reset of the second communication module is performed.

[0123] The reset button is a physical button used to trigger the wireless communication device to perform a hardware reset on the second hardware module.

[0124] In some embodiments, the mobile device may display a reset prompt message when the second communication connection cannot be established with the wireless communication device. The wireless communication device may perform a hardware reset on the second communication module to restore the communication capability of the second communication module when the reset button is triggered.

[0125] In some embodiments, the mobile device may display a reset prompt message if the second communication connection with the wireless communication device times out after sending the directional connection request.

[0126] In this embodiment, the mobile device is configured to display a reset prompt message; the reset prompt message is configured to prompt the user to trigger the reset button on the wireless communication device to perform a hardware reset of the second communication module, thereby providing a timely prompt to trigger the reset button. Upon detecting the triggering of the reset button, the wireless communication device performs a hardware reset of the second communication module, restoring the communication capabilities of the second communication module. This ensures that the wireless communication device can communicate with the mobile device via the second communication module even when the first communication module is operating abnormally, thereby improving adaptability.

[0127] In some embodiments, the method further includes: obtaining second module data of the second communication module; sending the second module data to the mobile device based on the first communication connection, so that the mobile device displays a reset prompt message when the second module data indicates that the operating status of the second communication module is abnormal.

[0128] For example, the wireless communication device may periodically control the first communication module to communicate with the second communication module, determine the second module data based on the response of the second communication module, and send the second module data to the mobile device based on the first binding connection, so that the mobile device displays a reset prompt message when the second module data indicates that the operating status of the second communication module is abnormal.

[0129] In some embodiments, wireless communication can control the first communication module to send the second query data to the second communication module. When the operating status of the second communication module is normal, second response data will be returned for the second query data. When the first communication module does not receive the second response data, the second module data used to characterize the abnormal operating status of the second communication module is determined. Among them, the first communication module times out and does not receive any data or the response data received by the first communication module is not the second response data, which means that the first communication module has not received the second response data. It can be understood that when the response data of the second communication module returns an error or the second communication module cannot communicate, the first communication module cannot receive the second response data.

[0130] In some embodiments, the wireless communication device can control the first communication module to transmit the second query data to the second communication interface through the first communication interface, so that the second communication module receives the second query data through the second communication interface, and transmit the second response data to the first communication interface through the second communication interface, so that the first communication module receives the second response data through the first communication interface.

[0131] In some embodiments, the wireless communication device may transmit the second module data to the mobile device based on the first communication connection if the second module data indicates that the operating status of the second communication module is abnormal. It will be understood that if the second module data indicates that the operating status of the second communication module is normal, there is no need to perform a hardware reset on the second communication module, and the mobile device does not need to display a reset prompt message. To avoid wasting communication resources, the second module data is not transmitted to the mobile device in this case.

[0132] In this embodiment, the second module data of the second communication module is obtained, and the operating status of the second communication module can be monitored through the second module data. Furthermore, the second module data is sent to the mobile device based on the first communication connection, so that when the second module data indicates that the operating status of the second communication module is abnormal, the mobile device displays a reset prompt message. When the operating status of the first communication module is normal, the mobile device can promptly prompt to trigger the reset button to perform a hardware reset of the second communication module to restore the communication capability of the second communication module, thereby avoiding the simultaneous abnormality of the first and second communication modules and ensuring the communication capability of the wireless communication device.

[0133] In some embodiments, the first communication module may be, but is not limited to, a first Bluetooth module. The second communication module may be, but is not limited to, a second Bluetooth module. The second Bluetooth module has lower power consumption than the first Bluetooth module.

[0134] like Figure 3 The figure shows the hardware architecture of a wireless communication device. The wireless communication device includes a charging port, a charge management chip, a lithium battery, a power supply circuit and peripheral circuits, a second Bluetooth module, a first Bluetooth module, a key chip, and a radio frequency transmitter module. The charging port can be, but is not limited to, a Type-C port. The charging port is used to input power, and the charge management chip is used to convert the input power into a stable charging current or voltage. The lithium battery is connected to the charge management chip and can obtain the charging current or voltage output by the charge management chip. The lithium battery is connected to the power circuit, which supplies power to the wireless communication device. The second and first Bluetooth modules are both connected to the power circuit and peripheral circuits. The first and second Bluetooth modules communicate via a communication port. The first Bluetooth module performs input / output (IO) communication with the key chip and can control the key chip to transmit vehicle control signals via the radio frequency transmitter module. Vehicle control signals can include at least one of a vehicle lock signal, a vehicle unlock signal, and a trunk opening signal.

[0135] In some embodiments, the first Bluetooth module and the second Bluetooth module may be, but are not limited to, low-power Bluetooth modules. The key chip may integrate a single-chip microcontroller with low-frequency transceiver and radio frequency transmission capabilities. The key chip may be connected to the first Bluetooth module via an input / output interface and is responsible for issuing vehicle control signals to control the vehicle.

[0136] In some embodiments, as Figure 4 , which provides a software architecture diagram for a wireless communication device. UART refers to an asynchronous serial communication interface. IO refers to an input / output interface. Both the first Bluetooth program and the second Bluetooth program support the Bluetooth protocol and can implement wireless communication with a mobile device.

[0137] After the wireless communication device is powered on, the first Bluetooth program initializes the Bluetooth protocol stack, serial port, input / output interfaces, and other peripherals. The first Bluetooth program includes a wireless communication protocol with the vehicle control program and an interaction protocol with the second Bluetooth module. It is understood that the vehicle control program is integrated with the wireless communication device and runs on the mobile device. The interaction protocol can be a serial port communication protocol.

[0138] When a mobile device connects to the first Bluetooth module through the vehicle control program and sends an instruction, the first Bluetooth module can parse the instruction and implement the function corresponding to the instruction. In the first Bluetooth program, the received signal strength indicator value of the mobile device is actively obtained at every preset time interval. Each received signal strength indicator value is used for logical judgment of unlocking or locking after multiple filtering. If the locking condition is met, the key chip is used to control the locking of the vehicle. If the unlocking condition is met, the key chip is used to control the unlocking of the vehicle. For a bound mobile device, when the first binding connection is disconnected, if it enters the communication range of the first Bluetooth module again, the mobile device and the first Bluetooth module will automatically connect without manual operation, which greatly improves convenience.

[0139] After the wireless communication device is powered on, the second Bluetooth program will also complete the initialization of functional peripherals such as the Bluetooth protocol stack, serial port, input and output interface, and then enter a low-power sleep state to reduce the overall power consumption of the device and increase battery life. When the operating status of the first Bluetooth module is abnormal, the mobile device will not be able to automatically connect to the wireless communication device. The owner can open the vehicle control program of the mobile device to scan the second Bluetooth module, wake it up and send a query instruction. The second Bluetooth module can obtain device-related data by querying the hardware status inside the wireless communication device, such as power supply voltage and device temperature, and obtain the first module data through serial port communication with the second Bluetooth module, and send the device-related data and the first module data to the mobile device. The mobile device can send a reset instruction to trigger the second Bluetooth module to reset the hardware of the first Bluetooth module when the device-related data indicates that the hardware status of the wireless communication device is normal and the first module data indicates that the operating status of the first Bluetooth module is abnormal. After the hardware reset, the first Bluetooth module will send broadcast data. After the mobile device scans, it reconnects and performs two-way identity authentication to re-establish the first binding connection.

[0140] In some embodiments, the wireless communication device generates a target authentication key based on a device identifier of the wireless communication device via a first Bluetooth module. The device identifier may be a unique serial number (SN) of the wireless communication device. The wireless communication device sets the broadcast name of the first Bluetooth module to the device identifier and begins sending broadcast data after initialization is complete.

[0141] The vehicle control program obtains the pairing code to be verified and the identifier to be verified by scanning the code, and generates the authentication key to be verified based on the identifier to be verified. It can be understood that the vehicle control program runs in a mobile device. If the pairing code to be verified and the identifier to be verified are obtained by scanning the graphic code corresponding to the wireless communication device, they are consistent with the target pairing code and device identifier of the wireless communication device. The vehicle control program scans the broadcast data of the first Bluetooth module, establishes a first initial connection with the first Bluetooth module and performs long-term key negotiation, establishes a first encrypted connection with the wireless communication device based on the negotiated long-term key, and performs two-way identity authentication with the wireless communication device based on the first encrypted connection. Among them, the first encrypted connection supports data interaction through Bluetooth services, but limits the acquisition of signal strength indicator values ​​and the triggering of vehicle control functions.

[0142] If the two-way identity authentication is successful, the wireless communication device establishes a first binding connection with the vehicle control program; otherwise, the first encrypted connection is disconnected. After the vehicle control program successfully establishes the first binding connection with the first Bluetooth module for the first time, if the first binding connection is disconnected, the vehicle control program and the first Bluetooth module will automatically establish the first binding connection when the mobile device enters the communication range of the first Bluetooth module again.

[0143] After the first binding connection is established, the wireless communication device sends the address information of the second communication module based on the first binding connection, and measures the signal indication value at a preset time interval based on the first binding connection, and controls the vehicle to lock or unlock according to the signal indication value. It can be understood that during the initialization phase of the wireless communication device, the first Bluetooth module and the second Bluetooth module respectively enable the first serial port and the second serial port to start serial communication between the two Bluetooth modules. The first Bluetooth module sends the target authentication key generated by itself to the second Bluetooth module through serial communication. Furthermore, when the first Bluetooth module is abnormal, the second Bluetooth module can perform a two-way handshake authentication with the mobile device based on the target authentication key. The second Bluetooth module sends its own address information to the first Bluetooth module through serial communication. Furthermore, after the first binding connection is established, the first Bluetooth module can send the address information of the second Bluetooth module to the mobile device.

[0144] When an abnormality occurs in the first Bluetooth module, the mobile device cannot establish a first binding connection with the wireless communication device. The vehicle control program scans the second Bluetooth module based on the address information, and after the scan wakes up, performs a two-way handshake authentication with the second Bluetooth module. After the two-way handshake authentication is successful, the vehicle control program establishes a second binding connection with the wireless communication device, issues a query instruction based on the second binding connection, and receives the device-related data and first module data returned by the wireless communication device in response to the query instruction. When the device-related data indicates that the hardware status of the wireless communication device is normal and the first module data indicates that the operating status of the first communication module is abnormal, the vehicle control program sends a reset instruction based on the second binding connection.

[0145] Upon receiving the reset instruction, the wireless communication device performs a hardware reset on the first Bluetooth module and transmits broadcast data via the hardware-reset first Bluetooth module. It is understood that the vehicle control program scans the broadcast data from the hardware-reset first Bluetooth module and only establishes the first binding connection after the hardware reset of the first Bluetooth module after passing bidirectional identity authentication with the first Bluetooth module.

[0146] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0147] Based on the same inventive concept, embodiments of the present application also provide a vehicle control system for implementing the aforementioned method for controlling a wireless communication device. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations in one or more vehicle control system embodiments provided below can be found in the aforementioned method for controlling a wireless communication device, and will not be further elaborated here.

[0148] In an exemplary embodiment, Figure 5 As shown, a vehicle control system 500 is provided, including: a wireless communication device 502 and a mobile device 504; the wireless communication device 502 includes a first communication module and a second communication module.

[0149] The wireless communication device 502 is configured to establish a first communication connection with the mobile device 504 via a first communication module.

[0150] The mobile device 504 is configured to trigger a vehicle control function of the wireless communication device 502 based on the first communication connection.

[0151] The wireless communication device 502 is further configured to send address information of the second communication module to the mobile device 504 based on the first communication connection.

[0152] The mobile device 504 is further configured to, when a first communication connection cannot be established with the wireless communication device 502, send a directional connection request based on the address information if a connection triggering operation is obtained.

[0153] The wireless communication device 502 is further configured to establish a second communication connection with the mobile device 504 via the second communication module after the second communication module receives the directional connection request.

[0154] The mobile device 504 is further configured to send a reset instruction to the wireless communication device 502 based on the second communication connection.

[0155] The wireless communication device 502 is further configured to perform a hardware reset on the first communication module upon receiving a reset instruction.

[0156] In some embodiments, the wireless communication device 502 is also used to perform two-way identity authentication with the mobile device 504 when the mobile device 504 is not a binding device on this side; after the two-way identity authentication is passed, the mobile device 504 is used as a binding device on this side; when the mobile device 504 is a binding device on this side, a first binding connection is established with the mobile device 504 through the first communication module; the mobile device 504 is also used to trigger the vehicle control function of the wireless communication device 502 based on the first binding connection.

[0157] In some embodiments, the wireless communication device 502 is further used to perform long-term key negotiation with the mobile device 504 and establish a first encrypted connection between the first communication module and the mobile device 504 based on the negotiated long-term key; and perform two-way identity authentication with the mobile device 504.

[0158] In some embodiments, the wireless communication device 502 is further configured to receive a pairing code to be verified sent by the mobile device 504 after the two-way identity authentication is passed; and when the pairing code to be verified is consistent with the target pairing code of the local end, the mobile device 504 is used as the binding device of the local end.

[0159] In some embodiments, the wireless communication device 502 is further used to perform a two-way handshake authentication with the mobile device 504 after the second communication module receives a directional connection request; after the two-way handshake authentication is passed, a second binding connection is established with the mobile device 504 through the second communication module; the mobile device 504 is further used to send a reset instruction to the wireless communication device 502 based on the second binding connection.

[0160] In some embodiments, the wireless communication device 502 is also used to enable the first communication interface and the second communication interface during the initialization phase of the local end; control the second communication module to transmit its own address information to the first communication interface through the second communication interface, so that the first communication module receives the address information through the first communication interface, and sends the address information to the mobile device 504 based on the first communication connection.

[0161] In some embodiments, the wireless communication device 502 is further used to establish a second communication connection with the mobile device 504 through the second communication module, so that the mobile device 504 sends a query instruction to the wireless communication device 502 based on the second communication connection; if the query instruction is received, the first module data of the first communication module is obtained; the first module data is sent to the mobile device 504 based on the second communication connection; the mobile device 504 is also used to send a reset instruction to the wireless communication device 502 based on the second communication connection when the first module data indicates that the operating status of the first communication module is abnormal.

[0162] In some embodiments, the wireless communication device 502 is further used to obtain device-related data of the local end and first module data of the first communication module if a query instruction is received; and send device-related data and first module data to the mobile device 504 based on the second communication connection; the mobile device 504 is also used to send a reset instruction to the wireless communication device 502 based on the second communication connection when the device-related data indicates that the hardware status of the wireless communication device 502 is normal and the first module data indicates that the operating status of the first communication module is abnormal.

[0163] In some embodiments, the mobile device 504 is also used to display reset prompt information; the reset prompt information is used to prompt that the hardware reset of the second communication module is achieved by triggering the reset button on the wireless communication device 502; the wireless communication device 502 is also used to perform a hardware reset on the second communication module if an operation of triggering the reset button is obtained.

[0164] In some embodiments, the wireless communication device 502 is also used to obtain second module data of the second communication module; and send the second module data to the mobile device 504 based on the first communication connection, so that the mobile device 504 displays a reset prompt message when the second module data indicates that the operating status of the second communication module is abnormal.

[0165] Each device in the aforementioned vehicle control system may be implemented in whole or in part through software, hardware, or a combination thereof. Each of these devices may be embedded in or independent of a processor within a computer device in hardware form, or may be stored in a computer device memory in software form, allowing the processor to call and execute the corresponding operations of each of these devices.

[0166] In an exemplary embodiment, a wireless communication device is provided. The wireless communication device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The wireless communication device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, memory and input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the wireless communication device is used to provide computing and control capabilities. The memory of the wireless communication device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The input / output interface of the wireless communication device is used to exchange information between the processor and an external device. The communication interface of the wireless communication device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a control method of a wireless communication device is implemented.

[0167] In an exemplary embodiment, a mobile device is provided. The mobile device may be a terminal, and its internal structure may be as shown in FIG. Figure 7As shown. The mobile device includes a processor, memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are connected to the system bus via the input / output interface. The processor of the mobile device is used to provide computing and control capabilities. The memory of the mobile device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface of the mobile device is used to exchange information between the processor and external devices. The communication interface of the mobile device is used to communicate with external terminals via wired or wireless means, and the wireless means can be achieved via Wi-Fi, mobile cellular networks, NFC (near field communication), or other technologies. When executed by the processor, the computer program is used to interact with the wireless communication device. The display unit of the mobile device is used to produce a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the mobile device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the mobile device shell, or an external keyboard, touchpad or mouse.

[0168] Those skilled in the art will understand that Figure 6 and Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the wireless communication device and mobile device in the scheme of the present application. The specific wireless communication device and mobile device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0169] In one embodiment, a wireless communication device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.

[0170] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0171] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0172] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided in this application may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, an artificial intelligence (AI) processor, etc.

[0173] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0174] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A method for controlling a wireless communication device, characterized in that: The wireless communication device includes a first communication module and a second communication module; the method includes: establishing a first communication connection with a mobile device through the first communication module, so that the mobile device triggers a vehicle control function of the wireless communication device based on the first communication connection; sending address information of the second communication module to the mobile device based on the first communication connection, so that when the mobile device is unable to establish the first communication connection with the wireless communication device, if a connection triggering operation is obtained, the mobile device sends a directed connection request based on the address information; After the second communication module receives the directional connection request, establishing a second communication connection with the mobile device through the second communication module, so that the mobile device sends a reset instruction to the wireless communication device based on the second communication connection; When the reset instruction is received, a hardware reset is performed on the first communication module.

2. The method according to claim 1, characterized in that The establishing a first communication connection with the mobile device through the first communication module, so that the mobile device triggers the vehicle control function of the wireless communication device based on the first communication connection, includes: If the mobile device is not a bound device of the local end, perform two-way identity authentication with the mobile device; After the two-way identity authentication is passed, the mobile device is used as the binding device of the local end; In the case that the mobile device is a binding device of the local end, a first binding connection is established with the mobile device through the first communication module, so that the mobile device triggers the vehicle control function of the wireless communication device based on the first binding connection.

3. The method according to claim 2, characterized in that The performing of two-way identity authentication with the mobile device includes: performing a long-term key negotiation with the mobile device, and establishing a first encrypted connection between the first communication module and the mobile device based on the negotiated long-term key; Based on the first encrypted connection, two-way identity authentication is performed with the mobile device.

4. The method according to claim 2, characterized in that After the two-way identity authentication is passed, the mobile device is used as a binding device of the local end, including: After the two-way identity authentication is passed, receiving the pairing code to be verified sent by the mobile device; When the pairing code to be verified is consistent with the target pairing code of the local end, the mobile device is used as the binding device of the local end.

5. The method according to claim 1, wherein After the second communication module receives the directional connection request, establishing a second communication connection with the mobile device through the second communication module, so that the mobile device sends a reset instruction to the wireless communication device based on the second communication connection, includes: After the second communication module receives the directional connection request, performing a two-way handshake authentication with the mobile device; After the two-way handshake authentication is passed, a second binding connection is established with the mobile device through the second communication module, so that the mobile device sends a reset instruction to the wireless communication device based on the second binding connection.

6. The method according to claim 1, characterized in that The first communication interface of the first communication module is connected to the second communication interface of the second communication module; and the sending of address information of the second communication module to the mobile device based on the first communication connection includes: During the initialization phase of the local end, enabling the first communication interface and the second communication interface; The second communication module is controlled to transmit its own address information to the first communication interface through the second communication interface, so that the first communication module receives the address information through the first communication interface and sends the address information to the mobile device based on the first communication connection.

7. The method according to claim 1, characterized in that The establishing a second communication connection with the mobile device through the second communication module, so that the mobile device sends a reset instruction to the wireless communication device based on the second communication connection, includes: establishing a second communication connection with the mobile device through the second communication module, so that the mobile device sends a query instruction to the wireless communication device based on the second communication connection; If the query instruction is received, obtaining the first module data of the first communication module; The first module data is sent to the mobile device based on the second communication connection, so that the mobile device sends a reset instruction to the wireless communication device based on the second communication connection when the first module data indicates that the operating status of the first communication module is abnormal.

8. The method according to claim 7, characterized in that If the query instruction is received, obtaining the first module data of the first communication module includes: If the query instruction is received, obtaining device-related data of the local end and first module data of the first communication module; The sending the first module data to the mobile device based on the second communication connection, so that the mobile device sends a reset instruction to the wireless communication device based on the second communication connection when the first module data indicates that the operating state of the first communication module is abnormal, includes: The device-related data and the first module data are sent to the mobile device based on the second communication connection, so that when the device-related data indicates that the hardware status of the wireless communication device is normal and the first module data indicates that the operating status of the first communication module is abnormal, the mobile device sends a reset instruction to the wireless communication device based on the second communication connection.

9. The method according to any one of claims 1 to 8, characterized in that The mobile device is used to display reset prompt information; the reset prompt information is used to prompt that the hardware reset of the second communication module is achieved by triggering a reset button on the wireless communication device; the method further includes: If an operation of triggering the reset button is obtained, a hardware reset is performed on the second communication module.

10. The method according to claim 9, characterized in that The method further comprises: Acquire second module data of the second communication module; The second module data is sent to the mobile device based on the first communication connection, so that the mobile device displays the reset prompt information when the second module data indicates that the operating status of the second communication module is abnormal.

11. A vehicle control system, characterized in that: The system includes a mobile device and a wireless communication device; the wireless communication device includes a first communication module and a second communication module; The wireless communication device is configured to establish a first communication connection with the mobile device via the first communication module; the mobile device, configured to trigger a vehicle control function of the wireless communication device based on the first communication connection; The wireless communication device is further configured to send address information of the second communication module to the mobile device based on the first communication connection; The mobile device is further configured to, when the first communication connection cannot be established with the wireless communication device, send a directed connection request based on the address information if a connection triggering operation is obtained; The wireless communication device is further configured to establish a second communication connection with the mobile device via the second communication module after the second communication module receives the directional connection request; The mobile device is further configured to send a reset instruction to the wireless communication device based on the second communication connection; The wireless communication device is further configured to perform a hardware reset on the first communication module upon receiving the reset instruction.

12. A wireless communication device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 10 are implemented.