Key state synchronization method and device of digital vehicle key, electronic equipment and medium
By adopting the key status synchronization method in digital car key technology, the problem of complexity and high cost of key status synchronization in the existing technology is solved, the consistency of the status between the device and the cloud is achieved, the synchronization process is simplified, and the cost is reduced Implementation costs.
Patent Information
- Application Number
- CN202411049263.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-10-18
AI Technical Summary
In the existing digital car key technology, the complex and numerous standard protocols cause car manufacturers to have complex construction and high time costs when synchronizing the key status between the mobile phone and the cloud.
Provides a key status synchronization method for digital car keys. By receiving a key status check request from the device, it matches the current status corresponding to the key identification with the stored device and cloud status. If it does not match, the status change database is queried and based on the query results. Synchronization operations, including freezing, thawing, deletion and remote control, ensure consistency of device and cloud status.
It reduces the implementation cost and project implementation time of digital car keys for car manufacturers, achieves rapid synchronization of key status between the device and the cloud, and simplifies the digital car key synchronization mechanism of private protocols.
Smart Images

Figure CN118799982A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of digital keys, and in particular to a key status synchronization method, device, electronic device and medium for a digital vehicle key. Background Art
[0002] In recent years, digital car key technology is a technology that has developed rapidly in the automotive field. It uses advanced wireless communication technology and encryption algorithms to convert traditional physical keys into digital form, realizing a more convenient and secure way to manage car keys. Digital car key technology uses advanced encryption algorithms and security mechanisms to ensure the safety and privacy protection of vehicles. At the same time, digital car keys can also be managed and updated through the cloud, which improves the safety and reliability of vehicles. The emergence of digital car key technology not only provides a more convenient and secure way to manage vehicles, but also brings new opportunities and challenges to the development of the automotive industry. With the continuous advancement and popularization of technology, digital car keys are expected to become one of the standard features of future cars.
[0003] However, in current digital car keys, standard protocols formulated by some mobile phone manufacturers are generally used for implementation. Currently, the more widely used standard protocols include CCC, ICCE, ICCOA, etc. The complex and numerous standard protocol key status synchronization methods require car manufacturers to connect to multiple mobile phone manufacturers to implement multiple different protocols in order to synchronize the key information between the mobile phone and the cloud. This makes it difficult for car manufacturers to quickly implement the standard protocol for digital keys, resulting in the problem that the synchronization of the key status between the mobile phone and the cloud will cause complex construction and high time cost. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a key status synchronization method, device, electronic device and medium for a digital car key, so as to overcome the defects of the existing standard protocol due to the high time cost in realizing the synchronization of the key status between the mobile phone and the cloud.
[0005] In a first aspect, a key status synchronization method of a digital car key is provided, which is applied to a cloud. The method may include:
[0006] Receiving a key status check request for a digital car key sent by a device, wherein the key status check request includes a key identifier of at least one digital car key associated with the device itself and a current key status of the corresponding device;
[0007] For any key identifier, the current key state corresponding to the key identifier is matched with the stored device-side key state and key total state respectively; the key total state is the latest key state of the key identifier in the device side, vehicle side and cloud side;
[0008] If the current key state fails to match the stored device-side key state, query the state change questionable service corresponding to the key identifier in the configured key state change database to obtain a query result; the state change questionable service includes the key identifier and the target key state reported historically by the device-side;
[0009] If the current key status matches the stored device-side key status successfully, and the current key status matches the total key status stored in the cloud, query the status change questionable business corresponding to the key identifier in the configured key status change database to obtain the query result;
[0010] Based on the query result, the current key state stored in the device and the key state of the device stored in the device are synchronized.
[0011] In a possible implementation, based on the query result, synchronizing the current key state stored in the device with the key state of the device stored in the device itself includes:
[0012] In the event that the current key state fails to match the stored device-side key state:
[0013] If the query result is that a state change questionable service is found, then according to the target key state in the state change questionable service, the digital car key corresponding to the key identifier is operated, and the stored device-side key state is updated to the target key state, and the state of the state change questionable service is updated to successful execution;
[0014] If no state change questionable service is found, a state change questionable service including the device-side key status is created and sent to the device-side, so that the device-side operates the digital car key corresponding to the key identifier based on the device-side key status in the state change questionable service, and updates the stored current key status to the device-side key status.
[0015] In a possible implementation, based on the query result, synchronizing the current key state stored in the device with the key state of the device stored in the device itself includes:
[0016] When the current key status matches the stored device-side key status successfully, but the current key status fails to match the stored key total status:
[0017] If the query result is that a state change questionable service is queried, the state change questionable service is sent to the device end, so that the device end operates the digital car key corresponding to the key identifier according to the target key state in the state change questionable service, updates the stored device end key state to the target key state, and sends state synchronization completion information to the cloud;
[0018] If the query result is that no state change questionable service is found, a state change questionable service including the key overall status is created and sent to the device end, so that the device end operates the digital car key corresponding to the key identifier based on the key overall status in the state change questionable service, and sends state synchronization completion information to the cloud;
[0019] Based on the received status synchronization completion information, the status of the business with questionable status change is updated to execution success.
[0020] In a possible implementation, the operations performed on the digital vehicle key corresponding to the key identifier include: freezing, unfreezing, deleting, and remote control operations.
[0021] In one possible implementation, the method further includes:
[0022] If the current key state successfully matches the stored device-side key state and the stored key total state respectively, it is determined that the key states corresponding to the key identifiers on the device side and in the cloud are the same.
[0023] In a possible implementation, the method for determining the service with questionable status change includes:
[0024] receiving an operation request for the digital car key sent by the device end, and generating a state change service corresponding to the key identifier of the digital car key; the state change service includes the key identifier and the target key state corresponding to the operation request;
[0025] Sending the state change service to the device end;
[0026] If no operation response is received from the device within a preset time period, the status change service is changed to a status change in doubt service.
[0027] In one possible implementation, the method further includes:
[0028] If an operation response fed back by the device is received within a preset time period, based on the operation response, the stored device-side key state and key total state are updated to the target key state in the state change service.
[0029] In a second aspect, a key state synchronization device for a digital car key is provided, which is applied to a cloud and may include:
[0030] A receiving unit, configured to receive a key status check request for a digital car key sent by a device end, wherein the key status check request includes a key identifier of at least one digital car key associated with the device end itself and a current key status of the corresponding device end;
[0031] A matching unit, for matching a current key state corresponding to any key identifier with the stored device-side key state and key total state, respectively; the key total state is the latest key state of the key identifier in the device side, the vehicle side and the cloud;
[0032] A query unit, configured to query a configured key status change database for a state change questionable service corresponding to the key identifier if the current key status fails to match the stored device-side key status, and obtain a query result; the state change questionable service includes the key identifier and the target key status reported historically by the device-side;
[0033] And, if the current key state successfully matches the stored device-side key state, and the current key state fails to match the key total state stored in the cloud, query the state change questionable business corresponding to the key identifier in the configured key state change database to obtain the query result;
[0034] The synchronization unit is used to synchronize the current key state stored in the device with the key state of the device stored in the device itself based on the query result.
[0035] In a third aspect, an electronic device is provided, the electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0036] Memory, used to store computer programs;
[0037] The processor is used to implement any method step described in the first aspect when executing the program stored in the memory.
[0038] In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any method step described in the first aspect is implemented.
[0039] The key status synchronization method for a digital car key provided in the present application can receive a key status check request for a digital car key sent by a device end, the key status check request including a key identifier of at least one digital car key associated with the device end itself and the current key status of the corresponding device end; for any key identifier, the current key status corresponding to the key identifier is matched with the stored device end key status and the key total status respectively; the key total status is the latest key status of the key identifier in the device end, the vehicle end and the cloud end; if the current key status fails to match the stored device end key status, the state change questionable service corresponding to the key identifier in the configured key status change database is queried to obtain the query result; the state change questionable service includes the key identifier and the target key status reported historically by the device end; if the current key status successfully matches the stored device end key status, and the current key status fails to match the key total status stored in the cloud, the state change questionable service corresponding to the key identifier in the configured key status change database is queried to obtain the query result; based on the query result, the current key status stored on the device end and the device end key status stored by itself are synchronized. This method overcomes the defect of the existing standard protocol due to the high time cost in achieving synchronization of the key status between the mobile phone and the cloud. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 A schematic diagram of the structure of a synchronization system provided in an embodiment of the present application;
[0042] Figure 2 A schematic diagram of a flow chart of a key status synchronization method for a digital car key provided in an embodiment of the present application;
[0043] Figure 3 A schematic diagram of the structure of a key state synchronization device for a digital car key provided in an embodiment of the present application;
[0044] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application. Unless otherwise defined, the technical terms or scientific terms used in this application should be the common meanings understood by people with ordinary skills in the field to which the present invention belongs. The "first", "second" and similar words used in this application do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "including" and other similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connected", "coupled" or "connected" and other similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0046] The key state synchronization method of the digital car key provided in the embodiment of the present application can be applied in Figure 1 In the system architecture shown in Figure 1 As shown, the synchronization system may include: a vehicle side, a cloud side, and a device side. The vehicle side is connected to the device side in communication, and the device side is connected to the cloud side in communication. The device side may be an APP side, i.e., a client of a user's mobile phone. The device side may be connected to multiple vehicle sides in communication, so the device side may store the key status of the digital car key of each vehicle side (hereinafter referred to as "device side key status").
[0047] The cloud can store the key status and corresponding key identification of each digital car key on the vehicle side connected to the device side (hereinafter referred to as the "device side key status"), as well as the overall key status and corresponding key identification representing the latest key status in the vehicle side, cloud side and device side.
[0048] When the device wants to freeze, unfreeze, delete or remotely control a digital car key, it needs to apply for an operation instruction from the cloud, that is, send an operation request to the cloud; the operation request may include the key identifier of the digital car key and the target key status after the operation;
[0049] After receiving the operation request, the cloud generates a state change service corresponding to the key identifier; the state change service may include the key identifier and the target key state corresponding to the operation request, and sends the state change service to the device end;
[0050] Based on the status change service, the device side freezes, unfreezes, deletes or remotely controls the digital car key to obtain the target key status, and updates the current key status corresponding to the key identifier stored on the device side to the target key status.
[0051] If the cloud receives an operation response from the device within a preset time period, the cloud updates the stored device key status and key total status to the target key status in the status change service based on the operation response.
[0052] However, if the subsequent operation behavior of the device side fails to be notified to the cloud due to network reasons or other factors, the cloud cannot update the corresponding key status in time, which will cause the key status to be out of sync, that is, no operation response is received from the device side within the preset time period. At this time, the status change service can be changed to a status change in doubt service. The status change in doubt service can include the key identifier and the corresponding target key status. Afterwards, it can be determined whether the device-side key status or the total key status stored in the cloud needs to be changed based on the current key status reported by the device side and the status change in doubt service.
[0053] The key status synchronization method for digital car keys provided in the embodiment of the present application can synchronize the status consistency between the device side and the cloud by reporting the key status on the device side, and achieve synchronization of the key status on the device side by executing the services issued by the legality check, thereby realizing the key status control of the device side and the cloud side of the digital car key of the private protocol, so that the digital key of the private protocol can realize the key status synchronization mechanism without going through the device and mobile phone manufacturers, reducing the implementation cost of the digital car key of the car manufacturer and the implementation time of the digital car key project.
[0054] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application may be combined with each other if there is no conflict.
[0055] Figure 2 A schematic diagram of a key state synchronization method for a digital car key provided in an embodiment of the present application. Figure 2 As shown, applied to the cloud, the method may include:
[0056] Step S210: receiving a key status check request for a digital car key sent by a device.
[0057] Among them, the key status check request may include a key identification of at least one digital car key associated with the device itself and the current key status of the corresponding device.
[0058] Specifically, the device side can control the triggering conditions of the key status check. Common triggering conditions include: refreshing the digital car key list in the APP, viewing the detailed information of the digital car key, freezing, unfreezing, deleting the digital car key, and using the digital car key for remote control. The above operations require the device side to trigger the key status check method in the cloud, and the device side reports all existing private protocol digital car key information to obtain the latest digital car key status change information from the cloud. All private protocol digital car key information can include different key identifiers and corresponding device-side key status.
[0059] Step S220: For any key identifier, the current key state corresponding to the key identifier is matched with the stored device-side key state and key total state respectively, and based on the matching result, the query result of the state change questionable business corresponding to the key identifier in the query configured key state change database is obtained.
[0060] In a specific implementation, if the current key state fails to match the stored device-side key state, the state change questionable service corresponding to the key identifier in the configured key state change database is queried to obtain the query result; wherein the state change questionable service includes the key identifier and the target key state reported historically by the device-side;
[0061] If the current key status matches the stored device-side key status successfully, and the current key status fails to match the total key status stored in the cloud, the status change questionable business corresponding to the key identifier in the configured key status change database is queried to obtain the query result.
[0062] Step S230: Based on the query result, synchronize the current key status stored on the device with the key status stored on the device itself.
[0063] (1) If the current key state fails to match the stored device-side key state:
[0064] If the query result is that a business with questionable status change is found, the digital car key corresponding to the key identifier is operated (such as freezing, unfreezing, deleting or remote control operation) according to the target key state in the business with questionable status change, and the stored device-side key state is updated to the target key state, and the state of the business with questionable status change is updated to successful execution; it should be noted that the query of the business with questionable status change indicates that the key state in the cloud is lagging behind at this time, and the state of the cloud needs to be updated to be consistent with the state of the device, and the state of the questionable business is changed to successful execution.
[0065] If no status change questionable service is found, a status change questionable service including the device-side key status is created (i.e., a service based on the cloud status needs to be created and issued), and it is sent to the device side, so that the device side operates the digital car key corresponding to the key identifier based on the device-side key status in the status change questionable service, and updates the stored current key status to the device-side key status. That is, the device side obtains the key service issued by the cloud and performs corresponding operations to achieve consistency between the device-side and cloud-side key statuses.
[0066] (2) When the current key status matches the stored device-side key status successfully, but fails to match the stored key total status (the reported key status is consistent with the device-side key status recorded in the cloud, but inconsistent with the key total status in the cloud, indicating that the device-side key status is lagging behind. It may be that the vehicle or management platform has initiated a key status change operation, but the device has not been synchronized):
[0067] If the query result is that a state change in doubt service is found, the state change in doubt service is sent to the device end, so that the device end operates the digital car key corresponding to the key identifier according to the target key state in the state change in doubt service, updates the stored device end key state to the target key state, and sends the state synchronization completion information to the cloud;
[0068] If the query result is that no status change questionable service is found, a status change questionable service including the total key status is created (a key service corresponding to the total key status in the cloud is created and issued), and it is sent to the device end, so that the device end operates the digital car key corresponding to the key identifier based on the total key status in the status change questionable service, and sends status synchronization completion information to the cloud, that is, the device end obtains the key service issued by the cloud and performs the corresponding operation to achieve consistency between the key status of the device end and the cloud;
[0069] Based on the received status synchronization completion information, the status of the business with questionable status change is updated to successful execution.
[0070] (3) If the current key state successfully matches the stored device-side key state and the stored key total state, it is determined that the key states corresponding to the key identifiers on the device and in the cloud are the same.
[0071] In some embodiments, if the query result is that a state change questionable business is found, and the number of state change questionable businesses corresponding to the key identifier is multiple, then the target key state in each state change questionable business is checked;
[0072] A. If there is no deleted target key state among multiple target key states, the cloud determines the target key state in the state change in question business with the latest creation time as the latest target key state reported by the device end in history;
[0073] In the case where the current key state fails to match the stored device-side key state, the cloud updates the stored device-side key state to the latest target key state, and updates the state of the state change in question service with the latest creation time to successful execution;
[0074] When the current key state successfully matches the stored device-side key state, but fails to match the stored key overall state, the device side operates the digital car key corresponding to the key identifier according to the latest target key state, updates the stored device-side key state to the latest target key state, and sends status synchronization completion information to the cloud.
[0075] B. According to the creation time sequence of the state change questionable business, if there is a target key state of a deleted state among multiple target key states, and the state change questionable business corresponding to the target key state of the deleted state is the state change questionable business with the latest creation time, the target key state of the deleted state in the state change questionable business with the latest creation time shall be determined as the latest target key state reported in the history of the device end.
[0076] Afterwards, the synchronization operation is analyzed when the current key state fails to match the stored device-side key state, and when the current key state successfully matches the stored device-side key state but fails to match the stored key total state, as described in A.
[0077] C. According to the creation time sequence of the state change questionable business, if there is a target key state of a deleted state among multiple target key states, but the state change questionable business corresponding to the target key state of the deleted state is not the state change questionable business with the latest creation time, detect whether an add request for the key identifier of the device side has been received after the state change questionable business with the latest creation time, and if so, determine the state change questionable business with the latest creation time as the latest target key state reported by the device side in history;
[0078] If not, the target key state that has been deleted in the state change questionable business is determined as the latest target key state reported in the history of the device end.
[0079] Afterwards, the synchronization operation is analyzed when the current key state fails to match the stored device-side key state, and when the current key state successfully matches the stored device-side key state but fails to match the stored key total state, as described in A.
[0080] In some embodiments, a deletion mechanism can be set up for doubtful status change services. For example, if a doubtful status change service with a certain key identifier is stored in the cloud, if the cloud subsequently obtains a new doubtful status change service with the key identifier, the doubtful status change service stored in the cloud will be deleted and the new doubtful status change service will be stored.
[0081] The key status synchronization method for digital car keys provided in the present application is that the device side reports the key status of the device side, and a method based on the legitimacy check provided by the cloud is used to detect whether the key status of both ends is consistent. The legitimacy check determines whether it is necessary to create and issue a service, and the service side executes the service to change the key status, thereby ensuring that the key status of both ends is consistent. This method overcomes the defect of the existing standard protocol due to the high time cost in realizing the synchronization of the key status between the mobile phone and the cloud.
[0082] Corresponding to the above method, the embodiment of the present application also provides a key state synchronization device for a digital car key, such as Figure 3 As shown, the device comprises:
[0083] The receiving unit 310 is used to receive a key status check request for a digital car key sent by a device end, wherein the key status check request includes a key identifier of at least one digital car key associated with the device end itself and a current key status of the corresponding device end;
[0084] The matching unit 320 is used to match the current key state corresponding to any key identifier with the stored device-side key state and key total state respectively; the key total state is the latest key state of the key identifier in the device side, the vehicle side and the cloud;
[0085] A query unit 330 is used to query the state change questionable service corresponding to the key identifier in the configured key state change database to obtain a query result if the current key state fails to match the stored device-side key state; the state change questionable service includes the key identifier and the target key state reported historically by the device-side;
[0086] And, if the current key state successfully matches the stored device-side key state, and the current key state fails to match the total key state stored in the cloud, query the state change questionable business corresponding to the key identifier in the configured key state change database to obtain the query result;
[0087] The synchronization unit 340 is used to synchronize the current key state stored in the device with the key state of the device stored in the device itself based on the query result.
[0088] The functions of each functional unit of the key status synchronization device for a digital car key provided in the above-mentioned embodiments of the present application can be realized through the above-mentioned method steps. Therefore, the specific working process and beneficial effects of each unit in the key status synchronization device for a digital car key provided in the embodiments of the present application will not be repeated here.
[0089] The present application also provides an electronic device, such as Figure 4 As shown, it includes a processor 410 , a communication interface 420 , a memory 430 and a communication bus 440 , wherein the processor 410 , the communication interface 420 , and the memory 430 communicate with each other via the communication bus 440 .
[0090] Memory 430, for storing computer programs;
[0091] The processor 410 is used to execute the program stored in the memory 430 to implement the following steps:
[0092] Receiving a key status check request for a digital car key sent by a device, wherein the key status check request includes a key identifier of at least one digital car key associated with the device itself and a current key status of the corresponding device;
[0093] For any key identifier, the current key state corresponding to the key identifier is matched with the stored device-side key state and key total state respectively; the key total state is the latest key state of the key identifier in the device side, vehicle side and cloud side;
[0094] If the current key state fails to match the stored device-side key state, query the state change questionable service corresponding to the key identifier in the configured key state change database to obtain a query result; the state change questionable service includes the key identifier and the target key state reported historically by the device-side;
[0095] If the current key status matches the stored device-side key status successfully, and the current key status matches the total key status stored in the cloud, query the status change questionable business corresponding to the key identifier in the configured key status change database to obtain the query result;
[0096] Based on the query result, the current key state stored in the device and the key state of the device stored in the device are synchronized.
[0097] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0098] The communication interface is used for communication between the above electronic device and other devices.
[0099] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0100] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0101] The implementation methods and beneficial effects of the components of the electronic device in the above embodiments to solve the problems can be seen in Figure 2 The various steps in the illustrated embodiment are implemented, therefore, the specific working process and beneficial effects of the electronic device provided by the embodiment of the present application are not repeated here.
[0102] In another embodiment provided in the present application, a computer-readable storage medium is also provided, in which instructions are stored. When the computer-readable storage medium is executed on a computer, the computer executes the key status synchronization method of the digital car key described in any of the above embodiments.
[0103] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the key status synchronization method of a digital car key described in any one of the above embodiments.
[0104] Those skilled in the art will appreciate that the embodiments in the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt a complete hardware embodiment, a complete software embodiment, or a form of an embodiment combining software and hardware. Moreover, the present application may adopt a form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0105] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0106] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0107] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0108] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present application.
[0109] Obviously, those skilled in the art can make various changes and modifications to the embodiments in the present application without departing from the spirit and scope of the embodiments in the present application. Thus, if these modifications and variations of the embodiments in the present application fall within the scope of the claims and their equivalents in the embodiments of the present application, the embodiments of the present application are also intended to include these modifications and variations.
Claims
1. A key state synchronization method for a digital car key, characterized in that: Applied to the cloud, the method includes: Receiving a key status check request for a digital car key sent by a device, wherein the key status check request includes a key identifier of at least one digital car key associated with the device itself and a current key status of the corresponding device; For any key identifier, the current key state corresponding to the key identifier is matched with the stored device-side key state and key total state respectively; the key total state is the latest key state of the key identifier in the device side, vehicle side and cloud side; If the current key state fails to match the stored device-side key state, query the state change questionable service corresponding to the key identifier in the configured key state change database to obtain a query result; the state change questionable service includes the key identifier and the target key state reported historically by the device-side; If the current key status matches the stored device-side key status successfully, and the current key status matches the total key status stored in the cloud, query the status change questionable business corresponding to the key identifier in the configured key status change database to obtain the query result; Based on the query result, the current key state stored in the device and the key state of the device stored in the device are synchronized.
2. The method according to claim 1, characterized in that Based on the query result, the current key state stored in the device and the key state of the device stored in the device are synchronized, including: In the event that the current key state fails to match the stored device-side key state: If the query result is that a state change questionable service is found, then according to the target key state in the state change questionable service, the digital car key corresponding to the key identifier is operated, and the stored device-side key state is updated to the target key state, and the state of the state change questionable service is updated to successful execution; If no state change questionable service is found, a state change questionable service including the device-side key status is created and sent to the device-side, so that the device-side operates the digital car key corresponding to the key identifier based on the device-side key status in the state change questionable service, and updates the stored current key status to the device-side key status.
3. The method according to claim 1, characterized in that Based on the query result, the current key state stored in the device and the key state of the device stored in the device are synchronized, including: When the current key status matches the stored device-side key status successfully, but the current key status fails to match the stored key total status: If the query result is that a state change questionable service is queried, the state change questionable service is sent to the device end, so that the device end operates the digital car key corresponding to the key identifier according to the target key state in the state change questionable service, updates the stored device end key state to the target key state, and sends state synchronization completion information to the cloud; If the query result is that no state change questionable service is found, a state change questionable service including the key overall status is created and sent to the device end, so that the device end operates the digital car key corresponding to the key identifier based on the key overall status in the state change questionable service, and sends state synchronization completion information to the cloud; Based on the received status synchronization completion information, the status of the business with questionable status change is updated to execution success.
4. The method according to claim 2 or 3, characterized in that The operations performed on the digital car key corresponding to the key identifier include: freezing, unfreezing, deleting and remote control operations.
5. The method according to claim 1, characterized in that The method further comprises: If the current key state successfully matches the stored device-side key state and the stored key total state respectively, it is determined that the key states corresponding to the key identifiers on the device side and in the cloud are the same.
6. The method according to claim 1, characterized in that The method for determining the business with questionable status change includes: receiving an operation request for the digital car key sent by the device end, and generating a state change service corresponding to the key identifier of the digital car key; the state change service includes the key identifier and the target key state corresponding to the operation request; Sending the state change service to the device end; If no operation response is received from the device within a preset time period, the status change service is changed to a status change in doubt service.
7. The method according to claim 6, characterized in that The method further comprises: If an operation response fed back by the device is received within a preset time period, based on the operation response, the stored device-side key state and key total state are updated to the target key state in the state change service.
8. A key state synchronization device for a digital car key, characterized in that: Applied to the cloud, the device comprises: A receiving unit, configured to receive a key status check request for a digital car key sent by a device end, wherein the key status check request includes a key identifier of at least one digital car key associated with the device end itself and a current key status of the corresponding device end; A matching unit, for matching a current key state corresponding to any key identifier with the stored device-side key state and key total state, respectively; the key total state is the latest key state of the key identifier in the device side, the vehicle side and the cloud; A query unit, configured to query a configured key status change database for a state change questionable service corresponding to the key identifier if the current key status fails to match the stored device-side key status, and obtain a query result; the state change questionable service includes the key identifier and the target key status reported historically by the device-side; And, if the current key state successfully matches the stored device-side key state, and the current key state fails to match the total key state stored in the cloud, query the state change questionable business corresponding to the key identifier in the configured key state change database to obtain the query result; The synchronization unit is used to synchronize the current key state stored in the device with the key state of the device stored in the device itself based on the query result.
9. An electronic device, characterized in that: The electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-7 when executing a program stored in a memory.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
State synchronization method, device and system, communication equipment and storage medium
CN116503985A
Digital key synchronization method and device and storage medium
CN116830625A
Vehicle digital key logout method and related equipment
CN116935518A
Digital car key control method and device and storage medium
CN117197933A
Digital vehicle key synchronization method and device, electronic equipment and storage medium
CN117253302A
