Search

CN-121985332-A - Equipment unbinding method, equipment and storage medium

CN121985332ACN 121985332 ACN121985332 ACN 121985332ACN-121985332-A

Abstract

The embodiment of the application provides a device unbinding method, device and storage medium. The method comprises the steps of responding to a service discovery request sent by second terminal equipment, sending authentication request information to the second terminal equipment, wherein the authentication request information comprises an authentication challenge code, receiving authentication response data generated by the second terminal equipment according to the authentication challenge code, wherein the authentication response data at least comprises equipment identification information of the second terminal equipment, generating a first authentication result if the second terminal equipment is determined to be unbinding equipment to be processed according to the equipment identification information, wherein the first authentication result comprises a first state code, the first state code is used for representing that the first terminal equipment is unbinding with the second terminal equipment in an offline mode, and sending the first authentication result to the second terminal equipment so that the second terminal equipment is unbinding with the first terminal equipment according to the first authentication result. The method can improve the accuracy, safety and reliability of equipment unbinding state synchronization.

Inventors

  • LI YOU
  • ZHOU WENHUAN
  • CHEN XIAO

Assignees

  • 岚图汽车科技股份有限公司

Dates

Publication Date
20260505
Application Date
20260212

Claims (10)

  1. 1. A device unbinding method, applied to a first terminal device, the method comprising: responding to a service discovery request sent by second terminal equipment, and sending authentication request information to the second terminal equipment, wherein the authentication request information comprises an authentication challenge code; Receiving authentication response data generated by the second terminal equipment according to the authentication challenge code, wherein the authentication response data at least comprises equipment identification information of the second terminal equipment; if the second terminal equipment is determined to be unbinding equipment to be processed according to the equipment identification information, a first authentication result is generated, wherein the first authentication result comprises a first state code, and the first state code is used for representing that the first terminal equipment is unbinding with the second terminal equipment offline; And sending the first authentication result to the second terminal equipment so that the second terminal equipment is unbinding with the first terminal equipment according to the first authentication result.
  2. 2. The method according to claim 1, wherein determining that the second terminal device is a unbinding pending device according to the device identification information comprises: Acquiring a to-be-processed equipment list, wherein the to-be-processed equipment list comprises equipment identification information of the first terminal equipment offline unbinding terminal equipment; and if the equipment identification information of the second terminal equipment is determined to be included in the equipment to be processed list, determining that the second terminal equipment is the unbinding equipment to be processed.
  3. 3. The method of claim 2, wherein prior to responding to the service discovery request sent by the second terminal device, the method further comprises: Responding to an equipment unbinding instruction, and deleting a binding record of unbinding terminal equipment indicated by the equipment unbinding instruction from a local equipment registry of the first terminal equipment; And storing the equipment identification information of the unbinding terminal equipment indicated by the equipment unbinding instruction into the to-be-processed equipment list.
  4. 4. The method according to claim 2, wherein after sending the first authentication result into the second terminal device, the method further comprises: And deleting the equipment identification information of the second terminal equipment included in the equipment list to be processed to obtain a new equipment list to be processed.
  5. 5. The method according to any of claims 1-4, wherein the number of second terminal devices is a plurality, the method further comprising: Determining unbinding priority levels of a plurality of second terminal devices according to the device type of each second terminal device; and sequentially sending the first authentication result to the corresponding second terminal equipment according to the unbinding priority.
  6. 6. The method according to any of claims 1-4, wherein after sending the first authentication result into the second terminal device, the method further comprises: Determining signal strength information of a communication connection between the first terminal device and the second terminal device; determining a disconnection delay time according to the signal intensity information; and according to the disconnection delay time, disconnecting the communication connection with the second terminal equipment.
  7. 7. A device unbinding method, applied to a second terminal device, the method comprising: The method comprises the steps of receiving a first authentication result sent by first terminal equipment, wherein the first authentication result comprises a first status code, and the first status code is used for representing that the first terminal equipment and the second terminal equipment are unbinding offline; Deleting a binding record with the first terminal equipment from a local equipment registry of the second terminal equipment according to the first authentication result, and disconnecting communication connection with the first terminal equipment; And determining that the connection state between the second terminal equipment and the first terminal equipment is an unconnected state according to an objective function, and sending the unconnected state to a display interface of the second terminal equipment.
  8. 8. The method of claim 7, wherein prior to receiving the first authentication result sent by the first terminal device, the method further comprises: after detecting that the communication range of the first terminal equipment is entered, initiating a communication connection request with the first terminal equipment, and establishing communication connection with the first terminal equipment; sending a service discovery request to the first terminal equipment, and prohibiting distribution of connection state callback data; receiving authentication request information sent by the first terminal equipment, wherein the authentication request information comprises an authentication challenge code; and generating authentication response data according to the authentication challenge code, and sending the authentication response data to the first terminal equipment.
  9. 9. An electronic device is characterized by comprising a memory and a processor; the memory stores computer-executable instructions; the processor executing computer-executable instructions stored in the memory, causing the processor to perform the method of any one of claims 1-8.
  10. 10. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-8.

Description

Equipment unbinding method, equipment and storage medium Technical Field The present application relates to the field of communications technologies, and in particular, to a device unbinding method, a device, and a storage medium. Background BLE (Bluetooth Low Energy ) technology becomes the preferred communication mode in the Internet of things, wearable, smart home and vehicle-mounted scenes due to the advantages of ultra-low power consumption, low cost, native support of equipment, high connection speed and the like. Currently, when unbinding a terminal device, a release command is triggered at one terminal device (e.g., an in-vehicle terminal) and whether a peer device is online is detected. If the online opposite terminal equipment is detected, sending an unpairing instruction to the opposite terminal equipment to complete equipment unbinding. If the opposite terminal equipment is not online (or is not in the communication range), the opposite terminal equipment cannot sense that the binding relationship is released, so that the equipment unbinding states of the opposite terminal equipment are inconsistent. At this time, when the opposite terminal device approaches one terminal device, the pairing connection cannot be completed due to authentication failure caused by the use of the revocation certificate. At this time, the opposite terminal device may repeatedly try to connect back, resulting in resource waste, affecting communication efficiency, and reducing user experience. Meanwhile, during the period from the successful Bluetooth connection to the failure of authentication, the connection state in the application interface of the opposite terminal equipment is displayed as connected, and the connection state is randomly hopped to be unconnected, so that the interface flicker problem is caused. Disclosure of Invention The embodiment of the application provides a device unbinding method, device and storage medium, which can improve the accuracy, safety and reliability of device unbinding state synchronization. In a first aspect, an embodiment of the present application provides a device unbinding method, applied to a first terminal device, where the method includes: responding to a service discovery request sent by second terminal equipment, and sending authentication request information to the second terminal equipment, wherein the authentication request information comprises an authentication challenge code; Receiving authentication response data generated by the second terminal equipment according to the authentication challenge code, wherein the authentication response data at least comprises equipment identification information of the second terminal equipment; if the second terminal equipment is determined to be unbinding equipment to be processed according to the equipment identification information, a first authentication result is generated, wherein the first authentication result comprises a first state code, and the first state code is used for representing that the first terminal equipment is unbinding with the second terminal equipment offline; And sending the first authentication result to the second terminal equipment so that the second terminal equipment is unbinding with the first terminal equipment according to the first authentication result. In a possible implementation manner, according to the device identification information, determining that the second terminal device is a unbinding device to be processed includes: Acquiring a to-be-processed equipment list, wherein the to-be-processed equipment list comprises equipment identification information of the first terminal equipment offline unbinding terminal equipment; and if the equipment identification information of the second terminal equipment is determined to be included in the equipment to be processed list, determining that the second terminal equipment is the unbinding equipment to be processed. In one possible implementation, before responding to the service discovery request sent by the second terminal device, the method further includes: Responding to an equipment unbinding instruction, and deleting a binding record of unbinding terminal equipment indicated by the equipment unbinding instruction from a local equipment registry of the first terminal equipment; And storing the equipment identification information of the unbinding terminal equipment indicated by the equipment unbinding instruction into the to-be-processed equipment list. In a possible implementation manner, after the first authentication result is sent to the second terminal device, the method further includes: And deleting the equipment identification information of the second terminal equipment included in the equipment list to be processed to obtain a new equipment list to be processed. In a possible implementation manner, the number of the second terminal devices is a plurality, and the method further includes: Determining unbinding priority levels of