State synchronization method, apparatus and system, and communication device and storage medium
By transmitting version number information between the terminal and the server, determining whether to execute instructions, the problem of difficulty in synchronizing the state of digital car keys is solved, state consistency between multiple terminals is achieved, and system stability is improved.
Patent Information
- Application Number
- PCT/CN2024/087837
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-19
- Filing Date
- 2024-04-15
- Publication Date
- 2024-11-28
AI Technical Summary
The prior art is difficult to ensure the consistency of the state of digital car keys between vehicles, cloud services, and user mobile phones, which leads to difficulty in state synchronization and may lead to abnormal or inconsistent functions.
By transmitting version number information between the terminal and the server, the terminal and the server respectively execute the state synchronization method to determine whether to execute the instructions sent by the server to ensure the consistency of the version number, thereby identifying and reducing the execution of abnormal instructions, realizing multi-terminal The digital car key status is synchronized between them.
Effectively identify and reduce the execution of abnormal instructions, ensure the consistency of digital car key status between multiple ends, and improve the stability and reliability of the system.
Smart Images

Figure CN2024087837_28112024_PF_FP_ABST
Abstract
Description
State synchronization method, device, system, communication equipment and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This disclosure claims priority to Chinese patent application number 202310576788.X, filed with the China Patent Office on May 15, 2023, entitled “State Synchronization Method, Apparatus, System, Communication Equipment, and Storage Medium,” the entire contents of which are incorporated by reference into this disclosure. Technical Field
[0003] The present disclosure relates to the field of communication technologies, and in particular to a state synchronization method, apparatus, system, communication equipment, and storage medium. Background Art
[0004] Unlike traditional car keys, digital car keys can be maintained in the terminal and can realize functions such as vehicle entry, starting, parking, and air conditioning control. However, in order for digital car keys to function properly, the status of digital car keys in the vehicle, cloud service, user's mobile phone and other devices must be consistent.
[0005] Summary of the Invention
[0006] The embodiments of the present disclosure provide a state synchronization method, apparatus, system, communication device, and storage medium.
[0007] According to a first aspect of an embodiment of the present disclosure, a state synchronization method is provided, which is executed by a terminal. The method includes:
[0008] Receiving a first version number and a first instruction sent by a server, where the first instruction is used to instruct adjustment of the status of the digital car key in the terminal, and the first version number is used to identify the adjusted status version of the digital car key;
[0009] Determine whether to execute the first instruction according to the first version number and the second version number of the terminal, where the second version number is used to identify the current status version of the digital car key of the terminal.
[0010] According to a second aspect of an embodiment of the present disclosure, a state synchronization method is proposed, which is executed by a server. The method includes:
[0011] receiving a second instruction from the requesting end for instructing to adjust the state of the digital car key;
[0012] Determine an identifier of the adjusted state version of the digital vehicle key to obtain a first version number;
[0013] A first version number and a first instruction are sent to the terminal, where the first instruction is used to instruct adjustment of the status of the digital car key in the terminal. The first version number and the second version number of the terminal are used by the terminal to determine whether to execute the first instruction, and the second version number is used to identify the current status version of the digital car key of the terminal.
[0014] According to a third aspect of an embodiment of the present disclosure, a first state synchronization device is provided, which is applied to a terminal. The device includes:
[0015] a first receiving module configured to receive a first version number and a first instruction sent by a server, wherein the first instruction is used to instruct to adjust the status of the digital car key in the terminal, and the first version number is used to identify the status version of the digital car key after adjustment;
[0016] The first execution module is configured to determine whether to execute the first instruction according to the first version number and the second version number of the terminal, where the second version number is used to identify the current status version of the digital car key of the terminal.
[0017] According to a fourth aspect of an embodiment of the present disclosure, a second state synchronization device is provided, which is applied to a server. The device includes:
[0018] a second receiving module configured to receive a second instruction from the requesting end for instructing to adjust the state of the digital car key;
[0019] A first determining module is configured to determine an identifier of the adjusted state version of the digital vehicle key to obtain a first version number;
[0020] The first sending module is configured to send a first version number and a first instruction to the terminal, where the first instruction is used to instruct the adjustment of the status of the digital car key in the terminal, the first version number and the second version number of the terminal are used by the terminal to determine whether to execute the first instruction, and the second version number is used to identify the current status version of the digital car key of the terminal.
[0021] According to a fifth aspect of an embodiment of the present disclosure, a state synchronization method is proposed, including:
[0022] The server receives a second instruction from the requester for instructing to adjust the state of the digital car key;
[0023] The server determines the identifier of the adjusted state version of the digital car key to obtain a first version number;
[0024] The server sends a first version number and a first instruction to the terminal, where the first instruction is used to instruct the terminal to adjust the status of the digital car key;
[0025] The terminal receives the first version number and the first instruction sent by the server;
[0026] The terminal determines whether to execute the first instruction based on the first version number and the second version number of the terminal, where the second version number is used to identify the current status version of the digital car key of the terminal.
[0027] According to a sixth aspect of an embodiment of the present disclosure, a communication device is provided, including:
[0028] one or more processors;
[0029] The processor is configured to call computer instructions to enable the communication device to execute the state synchronization method as described in any one of the first aspect and the second aspect.
[0030] According to the seventh aspect of an embodiment of the present disclosure, a state synchronization system is proposed, comprising a terminal and a server, wherein the terminal is configured to implement a state synchronization method as described in any one of the first aspects above, and the server is configured to implement a state synchronization method as described in any one of the second aspects above.
[0031] According to an eighth aspect of an embodiment of the present disclosure, a computer-readable storage medium is proposed, wherein the computer-readable storage medium stores computer instructions. When the computer instructions are executed on a communication device, the communication device executes a state synchronization method as described in any one of the first and second aspects above. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following drawings required for describing the embodiments are introduced. The following drawings are merely some embodiments of the present disclosure and do not impose specific limitations on the protection scope of the present disclosure.
[0033] FIG1 is a flowchart illustrating state synchronization of a digital car key according to an embodiment of the present disclosure.
[0034] FIG2 is a flowchart showing state synchronization of a digital car key according to an embodiment of the present disclosure.
[0035] FIG3 is a flowchart showing a state synchronization method according to an embodiment of the present disclosure.
[0036] FIG4 is a flowchart showing a state synchronization method according to an embodiment of the present disclosure.
[0037] FIG5 is a flowchart showing a state synchronization method according to an embodiment of the present disclosure.
[0038] FIG6 is a flowchart showing a state synchronization method according to an embodiment of the present disclosure.
[0039] FIG7 is a flowchart showing a state synchronization method according to an embodiment of the present disclosure.
[0040] FIG8 is a flowchart showing a state synchronization method according to an embodiment of the present disclosure.
[0041] FIG9 is a flowchart showing a state synchronization method according to an embodiment of the present disclosure.
[0042] FIG10 is an interactive flowchart illustrating a state synchronization method according to an embodiment of the present disclosure.
[0043] FIG11 is an interactive flowchart of a state synchronization method according to an embodiment of the present disclosure.
[0044] FIG12 is a schematic structural diagram of a first state synchronization device according to an embodiment of the present disclosure.
[0045] FIG13 is a schematic structural diagram of a second state synchronization device according to an embodiment of the present disclosure.
[0046] FIG14 is a schematic structural diagram of a communication device 8100 according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0047] In order to ensure that the status of digital car keys in various devices is consistent, the embodiments of the present disclosure propose a status synchronization method, apparatus, system, communication device, and storage medium.
[0048] In a first aspect, a state synchronization method is provided, which is executed by a terminal. The method includes:
[0049] Receiving a first version number and a first instruction sent by a server, where the first instruction is used to instruct adjustment of the status of the digital car key in the terminal, and the first version number is used to identify the adjusted status version of the digital car key;
[0050] Determine whether to execute the first instruction according to the first version number and the second version number of the terminal, where the second version number is used to identify the current status version of the digital car key of the terminal.
[0051] In the above embodiment, the terminal can determine whether to execute the first instruction based on the second version number of the terminal and the received first version number. Compared with the method of directly executing the instructions of the server, the method in the above embodiment helps to identify abnormal instructions and reduce the number of times abnormal instructions are executed. This also helps to ensure the consistency of the status of the digital car key across multiple terminals.
[0052] In conjunction with some embodiments of the first aspect, in some embodiments, determining whether to execute the first instruction according to the first version number and the second version number of the terminal includes:
[0053] Determine whether to execute the first instruction according to the order of the first version number and the second version number.
[0054] In the above embodiment, before executing a command from the server, the terminal can determine whether to execute the command based on the order of the version numbers. Compared to directly executing the server's command, the above embodiment helps identify abnormal commands and reduces the number of abnormal command executions. This also helps ensure the consistency of the digital car key status across multiple terminals.
[0055] In conjunction with some embodiments of the first aspect, in some embodiments, determining whether to execute the first instruction based on the order of the first version number and the second version number includes:
[0056] The first version number is higher than the second version number, and the first instruction is determined to be executed; or,
[0057] The first version number is equal to the second version number, and it is determined that the first instruction is refused to be executed; or
[0058] The second version number is higher than the first version number, and it is determined that the first instruction is refused to be executed.
[0059] In the above embodiment, when the first version number is equal to or lower than the second version number, the first instruction can be determined to be an abnormal instruction. Therefore, the execution of the first instruction can be rejected. When the first version number is higher than the second version number, the first instruction is executed. Compared with the method of directly executing instructions on the server side, the method in the above embodiment helps to identify abnormal instructions and reduce the number of times abnormal instructions are executed. This also helps to ensure the consistency of the status of the digital car key between multiple terminals.
[0060] In conjunction with some embodiments of the first aspect, in some embodiments, the method includes:
[0061] Determining that the first instruction is successfully executed;
[0062] Using the first version number as an identifier of the current status version of the digital car key of the terminal;
[0063] A message indicating successful execution of the first instruction is sent to the server.
[0064] In the above embodiment, by determining that the first instruction has been successfully executed and using the first version number as the identifier of the state version of the terminal's current digital car key, the state version identifier of the terminal's current digital car key can be updated. In this way, the state version numbers of the digital car key on the terminal and the server are synchronized. In addition, the terminal can also send a message to the server indicating the successful execution of the first instruction to facilitate subsequent processing by the server.
[0065] In conjunction with some embodiments of the first aspect, in some embodiments, the method includes:
[0066] Determining that the terminal restores network connection;
[0067] The second version number is sent to the server, where the second version number is used by the server to determine whether the status version of the current digital car key of the terminal is consistent with the status version of the digital car key of the server.
[0068] In the above embodiment, the terminal can actively send a second version number to the server after restoring the network connection, so that the server can determine whether the status version number of the digital car key of the terminal and the server is consistent, and determine whether the status of the digital car key needs to be synchronized.
[0069] In a second aspect, a state synchronization method is proposed, which is executed by a server, and the method includes:
[0070] receiving a second instruction from the requesting end for instructing to adjust the state of the digital car key;
[0071] Determine an identifier of the adjusted state version of the digital vehicle key to obtain a first version number;
[0072] A first version number and a first instruction are sent to the terminal, where the first instruction is used to instruct adjustment of the status of the digital car key in the terminal. The first version number and the second version number of the terminal are used by the terminal to determine whether to execute the first instruction, and the second version number is used to identify the current status version of the digital car key of the terminal.
[0073] In the above embodiment, the server can receive a second instruction from the requesting end for instructing to adjust the state of the digital car key, and determine the identifier of the state version of the adjusted digital car key to obtain a first version number. By setting the first version number, the terminal can determine whether to execute the first instruction based on the second version number of the terminal and the received first version number. Compared with the method of directly executing the instructions of the server, the method in the above embodiment helps to identify abnormal instructions and reduce the number of times abnormal instructions are executed. This also helps to ensure the consistency of the state of the digital car key between multiple terminals.
[0074] In conjunction with some embodiments of the second aspect, in some embodiments, the method includes:
[0075] receiving a second version number sent by the terminal, where the second version number is sent by the terminal after restoring the network connection;
[0076] Based on the second version number and the third version number of the server, determine whether to send a third instruction to the terminal, the third instruction is used to instruct to adjust the status of the digital car key in the terminal, and the third version number is used to identify the current status version of the digital car key of the server.
[0077] In the above embodiment, after restoring network connectivity, the terminal can proactively send a second version number to the server. Based on the second and third version numbers, the server can determine whether to instruct the terminal to adjust the status of the digital car key. Through the approach in the above embodiment, even if the server fails to send a message, the version number can be used to identify inconsistencies in the digital car key status between the server and the terminal, and the third instruction can be sent to adjust the status of the digital car key on the terminal. This allows for automatic synchronization of the digital car key status across multiple terminals.
[0078] In conjunction with some embodiments of the second aspect, in some embodiments, determining whether to send a third instruction to the terminal based on the second version number and the third version number of the server includes:
[0079] Determine whether to send the third instruction to the terminal according to the order of the second version number and the third version number.
[0080] In the above embodiment, the server can determine whether to send the third instruction based on the order of the version numbers. This allows the server to identify any inconsistencies in the digital car key status between the server and the terminal using the version numbers, and then adjust the digital car key status on the terminal by sending the third instruction. This allows for automatic synchronization of the digital car key status across multiple terminals.
[0081] In conjunction with some embodiments of the second aspect, in some embodiments, determining whether to send the third instruction to the terminal based on the order of the second version number and the third version number includes:
[0082] The second version number is lower than the third version number, and it is determined to send the third instruction to the terminal.
[0083] In the above embodiment, when the second version number is lower than the third version number, it can be determined that the digital car key status versions between the server and the terminal are inconsistent. Therefore, the third instruction can be sent to the terminal to adjust the status of the digital car key of the terminal.
[0084] In conjunction with some embodiments of the second aspect, in some embodiments, the method includes:
[0085] Determine to send the third instruction to the terminal;
[0086] Determine the current state of the digital car key on the server to obtain a first state;
[0087] The third instruction and the third version number are sent to the terminal, where the third instruction is used to instruct that the state of the digital car key in the terminal be adjusted to the first state, and the third version number is used to identify the state version of the digital car key of the terminal after the state is adjusted to the first state.
[0088] In the above embodiment, by sending the third instruction and the third version number, the status and status version of the digital car key of the terminal and the server can be synchronized.
[0089] In conjunction with some embodiments of the second aspect, in some embodiments, the method includes:
[0090] receiving a message sent by the terminal indicating successful execution of the first instruction;
[0091] A message indicating that the state of the digital car key is successfully adjusted is sent to the requesting end.
[0092] In the above embodiment, the server may receive a message sent by the terminal indicating successful execution of the first instruction, and send a message to the requesting end indicating successful status adjustment of the digital car key, thereby completing synchronization of the digital car key.
[0093] In a third aspect, a first state synchronization device is provided, which is applied to a terminal. The device includes:
[0094] a first receiving module configured to receive a first version number and a first instruction sent by a server, wherein the first instruction is used to instruct to adjust the status of the digital car key in the terminal, and the first version number is used to identify the status version of the digital car key after adjustment;
[0095] The first execution module is configured to determine whether to execute the first instruction according to the first version number and the second version number of the terminal, where the second version number is used to identify the current status version of the digital car key of the terminal.
[0096] In the above embodiment, whether to execute the first instruction can be determined based on the second version number of the terminal and the received first version number. Compared with the method of directly executing the instructions of the server, the method in the above embodiment helps to identify abnormal instructions and reduce the number of times abnormal instructions are executed. This also helps to ensure the consistency of the status of the digital car key across multiple terminals.
[0097] In a fourth aspect, a second state synchronization device is provided, which is applied to a server, and includes:
[0098] a second receiving module configured to receive a second instruction from the requesting end for instructing to adjust the state of the digital car key;
[0099] A first determining module is configured to determine an identifier of the adjusted state version of the digital vehicle key to obtain a first version number;
[0100] The first sending module is configured to send a first version number and a first instruction to the terminal, where the first instruction is used to instruct the adjustment of the status of the digital car key in the terminal, the first version number and the second version number of the terminal are used by the terminal to determine whether to execute the first instruction, and the second version number is used to identify the current status version of the digital car key of the terminal.
[0101] In the above embodiment, the server can receive a second instruction from the requesting end for instructing to adjust the state of the digital car key, and determine the identifier of the state version of the adjusted digital car key to obtain a first version number. By setting the first version number, the terminal can determine whether to execute the first instruction based on the second version number of the terminal and the received first version number. Compared with the method of directly executing the instructions of the server, the method in the above embodiment helps to identify abnormal instructions and reduce the number of times abnormal instructions are executed. This also helps to ensure the consistency of the state of the digital car key between multiple terminals.
[0102] In a fifth aspect, a state synchronization method is proposed, including:
[0103] The server receives a second instruction from the requester for instructing to adjust the state of the digital car key;
[0104] The server determines the identifier of the adjusted state version of the digital car key to obtain a first version number;
[0105] The server sends a first version number and a first instruction to the terminal, where the first instruction is used to instruct the terminal to adjust the status of the digital car key;
[0106] The terminal receives the first version number and the first instruction sent by the server;
[0107] The terminal determines whether to execute the first instruction based on the first version number and the second version number of the terminal, where the second version number is used to identify the current status version of the digital car key of the terminal.
[0108] In a sixth aspect, a communication device is provided, comprising:
[0109] one or more processors;
[0110] The processor is configured to call computer instructions to enable the communication device to execute the state synchronization method as described in any one of the first aspect and the second aspect.
[0111] In the seventh aspect, a state synchronization system is proposed, comprising a terminal and a server, wherein the terminal is configured to implement the state synchronization method as described in any one of the first aspects above, and the server is configured to implement the state synchronization method as described in any one of the second aspects above.
[0112] In an eighth aspect, a computer-readable storage medium is proposed, wherein the computer-readable storage medium stores computer instructions. When the computer instructions are executed on a communication device, the communication device executes the state synchronization method as described in any one of the first and second aspects.
[0113] In a ninth aspect, an embodiment of the present disclosure provides a computer program product. When the computer program product is executed by a communication device, the communication device executes the state synchronization method as described in any one of the first and second aspects.
[0114] It is understandable that the first state synchronization device, the second state synchronization device, the communication device, the state synchronization system, the computer-readable storage medium, and the computer program product are all used to implement the state synchronization method provided in the embodiments of the present disclosure. Therefore, the beneficial effects that can be achieved can be referenced to the beneficial effects of the corresponding state synchronization method and will not be repeated here.
[0115] The embodiments of the present disclosure are not exhaustive and are merely illustrative of some embodiments, and are not intended to be a specific limitation on the scope of protection of the present disclosure. In the absence of contradiction, each step in a certain embodiment can be implemented as an independent embodiment, and the steps can be arbitrarily combined. For example, a solution after removing some steps in a certain embodiment can also be implemented as an independent embodiment, and the order of the steps in a certain embodiment can be arbitrarily exchanged. In addition, the optional implementation methods in a certain embodiment can be arbitrarily combined; in addition, the embodiments can be arbitrarily combined. For example, some or all steps of different embodiments can be arbitrarily combined, and a certain embodiment can be arbitrarily combined with the optional implementation methods of other embodiments.
[0116] The terms used in the embodiments of the present disclosure are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure. The singular expressions "a," "an," "the," "above," "said," "aforementioned," "this," etc. in the embodiments of the present disclosure also include plural expressions, unless there is a clear contrary indication in the context. The predefined in the embodiments of the present disclosure can be understood as definition, pre-definition, storage, pre-storage, pre-negotiation, pre-configuration, curing, or pre-firing, etc.
[0117] Prefixes such as "first" and "second" in the embodiments of the present disclosure are only used to distinguish different description objects, and have no limiting effect on the position, order, priority, quantity or content of the described objects. For example, if the described object is a "field", then the ordinal number before the "field" in the "first field" and the "second field" does not limit the position or order between the "fields", and "first" and "second" do not limit whether the "fields" they modify are in the same message, nor do they limit the order of the "first field" and the "second field". For another example, if the described object is a "level", then the ordinal number before the "level" in the "first level" and the "second level" does not limit the priority between the "levels". For another example, the number of described objects is not limited by the ordinal number and can be one or more. Taking the "first device" as an example, the number of "devices" can be one or more. Furthermore, the objects modified by different prefixes can be the same or different. For example, if the object being described is a "device," then the "first device" and the "second device" can be devices of the same type or different types. For another example, if the object being described is "information," then the "first information" and the "second information" can be information of the same content or information of different contents. In summary, the use of prefixes such as ordinal numbers in the embodiments of the present disclosure to distinguish between the described objects does not constitute a limitation on the described objects. For a description of the described objects, refer to the contextual description in the claims or embodiments, and the use of such prefixes should not constitute an unnecessary limitation.
[0118] In the embodiments of the present disclosure, "multiple" refers to two or more. In the embodiments of the present disclosure, "and / or" is used to describe the association relationship of associated objects, indicating three relationships that can exist independently. For example, A and / or B can mean: A exists alone, B exists alone, and A and B exist at the same time. In the embodiments of the present disclosure, descriptions such as "at least one of Al, A2, ..., An (or at least one, at least one)" include the situation where any one of Al, A2, ..., An exists alone, and also include any combination of any multiple of Al, A2, ..., An, each of which can exist alone; for example, the description of "at least one of A, B, C" includes the situation where A exists alone, B exists alone, C exists alone, A and B are combined, A and C are combined, B and C are combined, and A and B and C are combined.
[0119] In some embodiments, descriptions such as "in one case A, in another case B," or "in response to one case A, in response to another case B," may include the following technical solutions depending on the situation: executing A independently of B (in some embodiments, A); executing B independently of A (in some embodiments, B); selectively executing A and B (in some embodiments, selecting between A and B); and executing both A and B (in some embodiments, A and B). The same applies when there are more branches, such as A, B, and C.
[0120] In some embodiments, terms such as "in response to...", "in response to determining...", "in the case of...", "at the time of...", "when...", "if...", "if...", etc. can be used interchangeably.
[0121] In some embodiments, “including A,” “comprising A,” “used to indicate A,” and “carrying A” can be interpreted as directly carrying A or indirectly indicating A.
[0122] In some embodiments, terms such as "greater than", "greater than or equal to", "above", "higher than", and "not less than" can be replaced with each other, and terms such as "less than", "less than or equal to", "below", "lower than", and "not greater than" can be replaced with each other.
[0123] In some embodiments, terms such as "function", "device", "equipment", "system", "chip", "chip system", etc. can be used interchangeably.
[0124] In some embodiments, the terms "terminal", "terminal device", "user equipment (UE)", "user terminal", "mobile terminal (MT)", mobile unit, wireless unit, remote unit, mobile device, wireless device, wireless communication device, remote device, mobile subscriber station, access terminal, mobile terminal, wireless terminal, remote terminal, handset, mobile client, client, etc. can be used interchangeably.
[0125] In some embodiments, the names of information, etc. are not limited to the names described in the embodiments, and terms such as "information", "message", "signal", "signaling", "report", "configuration", "indication", "instruction", "command", "channel", "parameter", "domain", "field", "symbol", "symbol", "codeword", "codebook", "codeword", "codepoint", "bit", "data", "program", and "chip" can be used interchangeably.
[0126] In some embodiments, "obtain", "get", "obtain", "receive", "transmit", "bidirectional transmission", "send and / or receive" can be interchangeable, and can be interpreted as receiving from other entities, obtaining from a protocol, obtaining by self-processing, autonomous implementation, etc.
[0127] In some embodiments, terms such as "send", "transmit", "report", "download", "transmit", "bidirectional transmission", "send and / or receive" can be used interchangeably.
[0128] In some embodiments, "predetermined" or "preset" may be interpreted as pre-specified in a protocol, etc., or as a pre-set action performed by a device, etc. In some embodiments, determining may be interpreted as judging, determining, calculating, computing, processing, deriving, investigating, searching, looking up, searching, inquiring, ascertaining, receiving, transmitting, inputting, outputting, accessing, resolving, selecting, choosing, establishing, comparing, "assuming," "expecting," "considering," broadcasting, notifying, communicating, forwarding, configuring, reconfiguring, allocating, mapping, assigning, etc., but is not limited thereto.
[0129] Unlike traditional car keys, digital car keys can be maintained in the terminal and can realize functions such as vehicle entry, starting, parking, and air conditioning control. However, in order for digital car keys to function properly, the status of digital car keys in the vehicle, cloud service, user's mobile phone and other devices must be consistent.
[0130] FIG1 is a flow chart of state synchronization of a digital car key shown in an embodiment of the present disclosure. Referring to FIG1 , the state synchronization of the digital car key can be performed in the following manner:
[0131] In step 1, the requester sends a digital key status change command to the server. The requester can be an external trigger source, such as a vehicle manufacturer application, a web (World Wide Web) terminal, a vehicle's central control panel, a customer service hotline, or an in-store device. The server can be the vehicle manufacturer's cloud service or a device's cloud service. These device-based cloud services can establish trust and connectivity with the vehicle manufacturer's cloud service.
[0132] In step 2, the server sends a state change instruction to the terminal via the network link. The terminal can be the user's mobile phone, wearable device, or vehicle.
[0133] In step 3, the terminal executes the state change instruction. If the execution is successful, the terminal completes the state change of the local digital car key.
[0134] In step 4, the terminal returns a notification of successful status change to the server.
[0135] In step 5, after receiving the notification that the terminal's state has been successfully changed, the server records the execution result of the state change instruction.
[0136] In step 6, the server feeds back the status change result to the requester.
[0137] In step 7, in some cases (for example, the terminal is located in a basement), the terminal connection fails or does not respond. After the waiting time has expired, the server determines that the execution of this instruction has no result.
[0138] When the command execution fails, the state of the digital car key may be inconsistent between the server, the user's mobile phone, and the vehicle. Figure 2 is a flowchart of a digital car key state synchronization shown in an embodiment of the present disclosure. Referring to Figure 2, when the command execution fails, the state of the digital car key can be synchronized in the following ways:
[0139] After the terminal goes online, it reports the network status to the server.
[0140] The server checks the cloud based on the reported network status whether there is any unsuccessful and unresponsive command corresponding to the terminal;
[0141] If there is an unsuccessful non-response command, the server sends the unfinished state change command to the terminal again.
[0142] This method can compensate and resend the instructions that were not successfully executed by the terminal at the next time the terminal is connected to the network, and then realize the synchronization of the digital car key status between multiple terminals after the terminal resumes networking.
[0143] In the synchronization scheme of Figure 2, the server records the "status change instruction" that has no response. Therefore, when an abnormality occurs in the record, the status of the digital car keys on multiple terminals may be out of sync and unable to repair themselves. For example: the server sends a key deletion instruction to the mobile device and the mobile device executes it successfully. The server sends a key deletion instruction to the vehicle, but the vehicle is in a disconnected state. At this time, if an abnormality occurs on the server (such as a power outage), causing the execution status data of the vehicle-side key deletion instruction stored in the cache to be lost, the server may lose the information that there is an unsuccessful instruction executed on the vehicle. Therefore, even if the vehicle is connected to the network again and reports the network status, the server will not compensate for sending the key deletion instruction, which will cause the status of the digital car keys on the mobile device, server, and vehicle to be inconsistent and unable to be automatically repaired.
[0144] In addition, in the above implementation, the terminal unconditionally executes the received instructions. However, in some scenarios, the incorrect caching or retry of a relay node in the network link (for example, a gateway, a middleware forwarding service) may cause the terminal to receive some duplicate instructions. As an example, if the terminal first receives instruction A and processes instruction A; then receives instruction B and processes instruction B; then due to an error, instruction A is repeatedly received and processed. At this time, the status of the digital car key between the terminal and the server will be inconsistent, and the server will not be able to recognize this inconsistency.
[0145] FIG3 is a flow chart of a state synchronization method according to an embodiment of the present disclosure. The method is executed by a terminal, and the method includes:
[0146] In step S31, a first version number and a first instruction sent by the server are received, where the first instruction is used to instruct to adjust the status of the digital car key in the terminal, and the first version number is used to identify the status version of the adjusted digital car key.
[0147] In some embodiments, the first instruction can be used to report a key lost, restore a key, or delete a key, that is, to instruct the terminal to adjust the digital car key to a reported lost, restored, or deleted state. Based on application requirements, the first instruction can also be used to instruct the terminal to adjust the state of the digital car key to a state defined in the requirements.
[0148] The first version number can be presented in the form of various characters or combinations of characters. In some embodiments, the first version number can be presented in the form of a number. When presented in the form of a number, the order of the version numbers can be determined based on the size of the number and the accumulation rule of the number. For example, the version numbers are accumulated by adding 1, such that the next version of 000001 is 000002. In this way, the size of the version numbers also corresponds to the order of the versions.
[0149] In step S32, it is determined whether to execute the first instruction according to the first version number and the second version number of the terminal, where the second version number is used to identify the current status version of the digital car key of the terminal.
[0150] For example, in a possible implementation, step S32 may include: determining that the first version number and the second version number are different, and executing the first instruction.
[0151] When the first version number and the second version number are the same, it indicates that the status versions of the digital car key between the server and the terminal are consistent. Therefore, the first instruction may be an abnormal instruction and there is no need to execute the first instruction.
[0152] In a possible implementation, step S32 may include:
[0153] Determine whether to execute the first instruction according to the order of the first version number and the second version number.
[0154] In some embodiments, if the first version number is equal to the second version number, the first instruction is rejected. The same first and second version numbers indicate that the digital vehicle key status versions on the server and terminal are consistent. Therefore, the first instruction may be an abnormal instruction and should not be executed.
[0155] In some embodiments, the second version number is higher than the first version number, indicating that the first instruction is rejected. A higher second version number indicates that the terminal's digital vehicle key has a higher version. Therefore, the first instruction may be an abnormal instruction, such as a repeated instruction, and therefore need not be executed.
[0156] In some embodiments, the first version number is higher than the second version number, and the first instruction is determined to be executed. The higher the first version number, the lower the second version number, indicating that the terminal's digital car key status version is lower than the server's digital car key status version. Therefore, the first instruction can be executed.
[0157] In the above embodiment, the terminal can determine whether to execute the first instruction based on the second version number of the terminal and the received first version number. Compared with the method of directly executing the instructions of the server, the method in the above embodiment helps to identify abnormal instructions and reduce the number of times abnormal instructions are executed. This also helps to ensure the consistency of the status of the digital car key across multiple terminals.
[0158] FIG4 is a flow chart of a state synchronization method according to an embodiment of the present disclosure. The method is executed by a terminal, and the method includes:
[0159] In step S41, a first version number and a first instruction sent by the server are received, where the first instruction is used to instruct to adjust the status of the digital car key in the terminal, and the first version number is used to identify the status version of the adjusted digital car key.
[0160] In step S42, it is determined whether to execute the first instruction according to the first version number and the second version number of the terminal, where the second version number is used to identify the current status version of the digital car key of the terminal.
[0161] The optional implementation of steps S41 and S42 can refer to the optional implementation of steps S31 and S32 in FIG3 , which will not be described in detail here.
[0162] In step S43 , it is determined whether the first instruction is successfully executed.
[0163] In step S44, the first version number is used as an identifier of the status version of the current digital car key of the terminal.
[0164] For example, in some embodiments, the second version number may be a parameter field that identifies the current state version of the digital car key of the terminal. Therefore, the second version number may be assigned a value by the first version number, thereby updating the second version number.
[0165] In some scenarios, the terminal can also automatically accumulate and record version numbers. For example, a version number recording rule can be agreed upon, and after the digital car key status is successfully adjusted, the current second version number is updated according to the recording rule. As an example, the recording rule can be to increase the version number by one after the digital car key status is successfully adjusted. In this way, after determining that the first instruction has been successfully executed, the terminal can increase the current second version number by one to obtain a new second version number.
[0166] In step S45, a message indicating that the first instruction is successfully executed is sent to the server.
[0167] In the above embodiment, by determining that the first instruction has been successfully executed and using the first version number as the identifier of the state version of the terminal's current digital car key, the state version identifier of the terminal's current digital car key can be updated. In this way, the state version numbers of the digital car key on the terminal and the server are synchronized. In addition, the terminal can also send a message to the server indicating the successful execution of the first instruction to facilitate subsequent processing by the server.
[0168] In some embodiments, the first instruction may fail to execute. In this case, the terminal may send a message to the server indicating that the first instruction failed to execute.
[0169] FIG5 is a flow chart of a state synchronization method according to an embodiment of the present disclosure. The method is executed by a terminal, and the method includes:
[0170] In step S51, a first version number and a first instruction sent by the server are received, where the first instruction is used to instruct to adjust the status of the digital car key in the terminal, and the first version number is used to identify the status version of the adjusted digital car key.
[0171] In step S52, it is determined whether to execute the first instruction according to the first version number and the second version number of the terminal, where the second version number is used to identify the current status version of the digital car key of the terminal.
[0172] Optional implementations of steps S51 and S52 may refer to the optional implementations of steps S31 and S32 in FIG3 , and will not be described in detail here.
[0173] In step S53, it is determined whether the terminal has restored the network connection.
[0174] In step S54, a second version number is sent to the server, and the second version number is used by the server to determine whether the status version of the current digital car key of the terminal is consistent with the status version of the digital car key of the server.
[0175] For example, after the terminal changes from a non-network environment to a network environment, the network connection can be restored. In this way, the terminal can send the second version number to the server to facilitate the server to determine whether the state version of the terminal's current digital car key is consistent with the state version of the server's digital car key, and whether the state of the terminal's digital car key needs to be adjusted.
[0176] In the above embodiment, the terminal can actively send a second version number to the server after restoring the network connection, so that the server can determine whether the status version number of the digital car key of the terminal and the server is consistent, and determine whether the status of the digital car key needs to be synchronized.
[0177] FIG6 is a flow chart of a state synchronization method according to an embodiment of the present disclosure. The method is executed by the server, and the method includes:
[0178] In step S61 , a second instruction for instructing adjustment of the status of the digital car key is received from the requesting end.
[0179] In some embodiments, a second instruction for instructing to adjust the status of a digital car key can be received from a device such as a vehicle manufacturer application, a web terminal, a vehicle central control, a customer service phone, or an offline store device. The second instruction can be used to report a key lost, restore a key, or delete a key, i.e., to instruct to adjust the digital car key to a reported lost, restored, or deleted state.
[0180] In step S62 , the identifier of the state version of the adjusted digital vehicle key is determined to obtain a first version number.
[0181] The version number can be presented in the form of various characters or combinations of characters. In some embodiments, the version number can be presented in the form of a number. When presented in digital form, the order of the version numbers can be determined based on the size of the numbers and the accumulation rules of the numbers. As an example, the recording rule of the version number can be: after the status of the digital car key is adjusted, the version number is accumulated by 1 (in other embodiments, it can be any value). In this example, step S62 may refer to the server determining the version number of the current digital car key and accumulating 1 to obtain the first version number.
[0182] In some implementations, the version number accumulation rule may be set based on application requirements.
[0183] In some implementations, the first version number may also be obtained by the server from the requester.
[0184] In some implementations, the first version number may also be obtained by the server from the requester, and the requester may determine the first version number based on a version number accumulation rule and the current version number.
[0185] In step S63, a first version number and a first instruction are sent to the terminal.
[0186] The first instruction is used to instruct the adjustment of the status of the digital car key in the terminal, the first version number and the second version number of the terminal are used by the terminal to determine whether to execute the first instruction, and the second version number is used to identify the current status version of the digital car key of the terminal.
[0187] In some implementations, the first instruction and the second instruction may be the same, that is, in step S63, the server forwards the second instruction to the terminal and attaches the first version number.
[0188] In the above embodiment, the server can receive a second instruction from the requesting end for instructing to adjust the state of the digital car key, and determine the identifier of the state version of the adjusted digital car key to obtain a first version number. By setting the first version number, the terminal can determine whether to execute the first instruction based on the second version number of the terminal and the received first version number. Compared with the method of directly executing the instructions of the server, the method in the above embodiment helps to identify abnormal instructions and reduce the number of times abnormal instructions are executed. This also helps to ensure the consistency of the state of the digital car key between multiple terminals.
[0189] FIG7 is a flow chart of a state synchronization method according to an embodiment of the present disclosure. The method is executed by the server, and the method includes:
[0190] In step S71 , a second instruction for instructing adjustment of the status of the digital car key is received from the requesting end.
[0191] In step S72 , the identifier of the state version of the adjusted digital vehicle key is determined to obtain a first version number.
[0192] In step S73, a first version number and a first instruction are sent to the terminal.
[0193] The optional implementation of steps S71 to S73 can refer to the optional implementation of steps S61 to S63 in Figure 6, which will not be repeated here.
[0194] In step S74, a second version number sent by the terminal is received. The second version number is sent by the terminal after the network connection is restored.
[0195] In step S75, based on the second version number and the third version number of the server, it is determined whether to send a third instruction to the terminal. The third instruction is used to instruct to adjust the status of the digital car key in the terminal, and the third version number is used to identify the current status version of the digital car key of the server.
[0196] In some embodiments, determining whether to send a third instruction to the terminal based on the second version number and the third version number of the server includes: determining whether to send the third instruction to the terminal based on the order of the second version number and the third version number.
[0197] For example, in one embodiment, if the second version number is lower than the third version number, a determination is made to send the third instruction to the terminal. If the second version number is lower than the third version number, it can be determined that the terminal and the server's digital vehicle key status versions are inconsistent, and the terminal's digital vehicle key status version is lower than the server's digital vehicle key status version. Therefore, the terminal may have an unsuccessful digital vehicle key adjustment instruction, in which case the third instruction can be sent to the terminal.
[0198] In some embodiments, the second version number may also be equal to the third version number, in which case there is no need to send the third instruction.
[0199] In some embodiments, the server may also send a third instruction when the second version number is inconsistent with the third version number.
[0200] In some embodiments, when it is determined to send the third instruction to the terminal, the method further includes:
[0201] Determine the current state of the digital car key on the server to obtain a first state;
[0202] The third instruction and the third version number are sent to the terminal, where the third instruction is used to instruct that the state of the digital car key in the terminal be adjusted to the first state, and the third version number is used to identify the state version of the digital car key of the terminal after the state is adjusted to the first state.
[0203] In one embodiment, the server's current digital car key status is deregistered. The server may use the deregistered status as the first status and send the third instruction and the third version number to the terminal. The third instruction instructs the terminal to adjust the digital car key status to the deregistered status, and the third version number identifies the status version of the terminal's digital car key after the status is adjusted to the deregistered status.
[0204] In one embodiment, the server's current digital car key status is reported lost. The server may use the reported lost status as the first status and send the third instruction and the third version number to the terminal. The third instruction instructs the terminal to adjust the digital car key status to the reported lost status, and the third version number identifies the status version of the terminal's digital car key after the status is adjusted to the reported lost status.
[0205] Of course, the status of the digital car key is not limited to the cancellation status and the lost status, and the embodiment of the present disclosure does not impose any restrictions on this.
[0206] In the above embodiment, by sending the third instruction and the third version number, the status and status version of the digital car key of the terminal and the server can be automatically synchronized.
[0207] FIG8 is a flow chart of a state synchronization method according to an embodiment of the present disclosure. The method is executed by the server, and the method includes:
[0208] In step S81 , a second instruction for instructing adjustment of the status of the digital car key is received from the requesting end.
[0209] In step S82 , the identifier of the state version of the adjusted digital vehicle key is determined to obtain a first version number.
[0210] In step S83, a first version number and a first instruction are sent to the terminal.
[0211] The optional implementation of steps S81 to S83 can refer to the optional implementation of steps S61 to S63 in Figure 6, and will not be repeated here.
[0212] In step S84, a message sent by the terminal indicating successful execution of the first instruction is received.
[0213] In step S85 , a message indicating that the state adjustment of the digital car key is successful is sent to the requesting end.
[0214] In the above embodiment, the server may receive a message sent by the terminal indicating successful execution of the first instruction, and send a message to the requesting end indicating successful status adjustment of the digital car key, thereby completing synchronization of the digital car key.
[0215] FIG9 is a flowchart of a state synchronization method according to an embodiment of the present disclosure, wherein the method includes:
[0216] In step S91 , the server receives a second instruction from the requester for instructing to adjust the status of the digital car key.
[0217] In step S92 , the server determines the identifier of the state version of the adjusted digital car key and obtains the first version number.
[0218] In step S93, the server sends a first version number and a first instruction to the terminal, where the first instruction is used to instruct adjustment of the status of the digital car key in the terminal.
[0219] The optional implementation of steps S91 to S93 can refer to the optional implementation of steps S61 to S63 in Figure 6, which will not be repeated here.
[0220] In step S94 , the terminal receives the first version number and the first instruction sent by the server.
[0221] In step S95, the terminal determines whether to execute the first instruction according to the first version number and the second version number of the terminal, where the second version number is used to identify the current status version of the digital car key of the terminal.
[0222] The optional implementation of steps S94 to S95 can refer to the optional implementation of steps S31 to S32 in Figure 3, and will not be repeated here.
[0223] In the above embodiment, the terminal can determine whether to execute the first instruction based on the second version number of the terminal and the received first version number. Compared with the method of directly executing the instructions of the server, the method in the above embodiment helps to identify abnormal instructions and reduce the number of times abnormal instructions are executed. This also helps to ensure the consistency of the status of the digital car key across multiple terminals.
[0224] FIG10 is an interactive flow chart illustrating a state synchronization method according to an embodiment of the present disclosure, wherein the method includes:
[0225] In step 101 , an external action trigger source initiates a digital car key status change instruction to the car manufacturer cloud service.
[0226] In step 102, the car manufacturer cloud service designs and records a status version number field for each digital car key. After receiving a status change instruction issued by an external action trigger source, it records the target change status and increases the status version number by 1.
[0227] In step 103, the vehicle manufacturer cloud service sends a status change instruction and a status version number corresponding to the status change to the terminal.
[0228] In step 104, after receiving the status change instruction issued by the vehicle manufacturer cloud service, the terminal executes the instruction and records the latest status version number.
[0229] In step 105 , the terminal feeds back the successful status change result to the vehicle manufacturer cloud service.
[0230] In step 106 , the vehicle manufacturer cloud service records the command execution result on the terminal.
[0231] In step 107 , the vehicle manufacturer cloud service feeds back a notification of successful status change to the external action trigger source.
[0232] In this way, by setting the status version number field, it is helpful to identify abnormal instructions and reduce the number of times abnormal instructions are executed.
[0233] In the process of Figure 10, when the external network environment or engineering code error causes the status of the digital car key between multiple terminals to be out of sync, synchronization can be achieved through the interactive flow chart of a state synchronization method shown in Figure 11. Referring to Figure 11, the interactive process includes:
[0234] When the vehicle or mobile device recovers its connection, the full digital car key information in the local device, including the key status and status version number, is read and sent to the car manufacturer's cloud service;
[0235] After receiving the full digital car key information from the terminal, the car manufacturer cloud service compares the information with the key status and status version number stored by the car manufacturer cloud service one by one;
[0236] For keys with unsynchronized status, the car manufacturer's cloud service sends a status change instruction and status version number to the terminal to promote status synchronization.
[0237] In this way, even if the server fails, it is possible to determine whether the digital car key needs to be synchronized based on the key status and status version number reported by the terminal.
[0238] The embodiments of the present disclosure also provide an apparatus for implementing any of the above state synchronization methods. For example, a state synchronization apparatus is provided, and the apparatus includes units for implementing each step executed by the terminal in any of the above state synchronization methods.
[0239] It should be understood that the division of the various units in the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into a physical entity, or they can be physically separated. In addition, the units in the device can be implemented in the form of a processor calling software: for example, the device includes a processor, the processor is connected to a memory, and the memory stores computer instructions. The processor calls the computer instructions stored in the memory to implement any of the above state synchronization methods or realize the functions of the various units of the above device, wherein the processor is, for example, a general-purpose processor, such as a central processing unit (CPU) or a microprocessor, and the memory is a memory within the device or a memory outside the device. Alternatively, the units in the device can be implemented in the form of hardware circuits, and the functions of some or all of the units can be realized by designing the hardware circuits. The above-mentioned hardware circuits can be understood as one or more processors. For example, in one implementation, the above-mentioned hardware circuit is an application-specific integrated circuit (ASIC), and the functions of some or all of the above units are realized by designing the logical relationship of the components in the circuit. For another example, in another implementation, the above-mentioned hardware circuit can be implemented by a programmable logic device (PLD). Taking a field programmable gate array (FPGA) as an example, it can include a large number of logic gate circuits, and the connection relationship between the logic gate circuits is configured by a configuration file, thereby realizing the functions of some or all of the above units. All units of the above devices can be implemented in the form of software called by the processor, or in the form of hardware circuits, or in part by software called by the processor, and the rest by hardware circuits.
[0240] In the embodiment of the present disclosure, the processor is a circuit with signal processing capability. In one implementation, the processor can be a circuit with instruction reading and execution capability, such as a central processing unit (CPU), a microprocessor, a graphics processing unit (GPU) (which can be understood as a microprocessor), or a digital signal processor (DSP); in another implementation, the processor can implement certain functions through the logical relationship of the hardware circuit, and the logical relationship of the above hardware circuit is fixed or reconfigurable, such as a hardware circuit implemented by a processor as an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document and implementing the hardware circuit configuration can be understood as the process of the processor loading instructions to implement the functions of some or all of the above units. In addition, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a neural network processing unit (NPU), a tensor processing unit (TPU), a deep learning processing unit (DPU), etc.
[0241] FIG12 is a schematic diagram of the structure of a first state synchronization device provided by an embodiment of the present disclosure, which can be applied to a terminal. As shown in FIG12 , the first state synchronization device 1200 includes:
[0242] The first receiving module 1201 is configured to receive a first version number and a first instruction sent by the server, wherein the first instruction is used to instruct to adjust the status of the digital car key in the terminal, and the first version number is used to identify the status version of the digital car key after adjustment;
[0243] The first execution module 1202 is configured to determine whether to execute the first instruction according to the first version number and the second version number of the terminal, where the second version number is used to identify the current status version of the digital car key of the terminal.
[0244] In the above embodiment, whether to execute the first instruction can be determined based on the second version number of the terminal and the received first version number. Compared with the method of directly executing the instructions of the server, the method in the above embodiment helps to identify abnormal instructions and reduce the number of times abnormal instructions are executed. This also helps to ensure the consistency of the status of the digital car key across multiple terminals.
[0245] Optionally, the first execution module includes:
[0246] The first determining submodule is configured to determine whether to execute the first instruction according to the order of the first version number and the second version number.
[0247] Optionally, the first determining submodule is configured to:
[0248] The first version number is higher than the second version number, and the first instruction is determined to be executed; or,
[0249] The first version number is equal to the second version number, and it is determined that the first instruction is refused to be executed; or
[0250] The second version number is higher than the first version number, and it is determined that the first instruction is refused to be executed.
[0251] Optionally include:
[0252] a second determining module, configured to determine whether the first instruction is successfully executed;
[0253] A second execution module is configured to use the first version number as an identifier of a status version of the current digital car key of the terminal;
[0254] The second sending module is configured to send a message to the server indicating that the first instruction is successfully executed.
[0255] Optionally include:
[0256] A third determining module is configured to determine whether the terminal restores the network connection;
[0257] The third sending module is configured to send the second version number to the server, and the second version number is used by the server to determine whether the status version of the current digital car key of the terminal is consistent with the status version of the digital car key of the server.
[0258] FIG13 is a schematic diagram of the structure of a second state synchronization device provided by an embodiment of the present disclosure, which can be applied to a server. As shown in FIG13 , the second state synchronization device 1300 includes:
[0259] The second receiving module 1301 is configured to receive a second instruction from the requesting end for instructing to adjust the status of the digital car key;
[0260] A first determining module 1302 is configured to determine an identifier of the adjusted state version of the digital vehicle key to obtain a first version number;
[0261] The first sending module 1303 is configured to send a first version number and a first instruction to the terminal, where the first instruction is used to instruct the adjustment of the status of the digital car key in the terminal, and the first version number and the second version number of the terminal are used by the terminal to determine whether to execute the first instruction, and the second version number is used to identify the current status version of the digital car key of the terminal.
[0262] In the above embodiment, the server can receive a second instruction from the requesting end for instructing to adjust the state of the digital car key, and determine the identifier of the state version of the adjusted digital car key to obtain a first version number. By setting the first version number, the terminal can determine whether to execute the first instruction based on the second version number of the terminal and the received first version number. Compared with the method of directly executing the instructions of the server, the method in the above embodiment helps to identify abnormal instructions and reduce the number of times abnormal instructions are executed. This also helps to ensure the consistency of the state of the digital car key between multiple terminals.
[0263] Optionally include:
[0264] a third receiving module, configured to receive a second version number sent by the terminal, where the second version number is sent by the terminal after restoring the network connection;
[0265] The fourth determination module is configured to determine whether to send a third instruction to the terminal based on the second version number and the third version number of the server, wherein the third instruction is used to indicate the adjustment of the status of the digital car key in the terminal, and the third version number is used to identify the current status version of the digital car key of the server.
[0266] Optionally, the fourth determining module includes:
[0267] The second determining submodule is configured to determine whether to send the third instruction to the terminal according to the order of the second version number and the third version number.
[0268] Optionally, the second determining submodule is configured to:
[0269] The second version number is lower than the third version number, and it is determined to send the third instruction to the terminal.
[0270] Optionally, the fourth determining module determines to send the third instruction to the terminal, and the second state synchronization device includes:
[0271] a state determination module, configured to determine a current state of the digital car key on the server to obtain a first state;
[0272] The fourth sending module is configured to send the third instruction and the third version number to the terminal, wherein the third instruction is used to instruct the state of the digital car key in the terminal to be adjusted to the first state, and the third version number is used to identify the state version of the digital car key of the terminal after the state is adjusted to the first state.
[0273] Optionally include:
[0274] a fourth receiving module, configured to receive a message sent by the terminal indicating successful execution of the first instruction;
[0275] The fifth sending module is configured to send a message to the requesting end indicating that the status of the digital car key is successfully adjusted.
[0276] Figure 14 is a schematic diagram of the structure of a communication device 8100 provided in an embodiment of the present disclosure. Communication device 8100 can be a network device configured as a server, a terminal (e.g., user equipment), a chip, a chip system, or a processor that supports a network device implementing any of the above state synchronization methods, or a chip, a chip system, or a processor that supports a terminal implementing any of the above state synchronization methods. Communication device 8100 can be used to implement the state synchronization method described in the above method embodiments. For details, please refer to the description of the above method embodiments.
[0277] As shown in FIG. 14 , the communication device 8100 includes one or more processors 8101 , and the processor 8101 is configured to call computer instructions to enable the communication device 8100 to execute any one of the above state synchronization methods.
[0278] Optionally, the communication device 8100 further includes one or more memories 8102 for storing computer instructions. In an alternative embodiment, all or part of the memory 8102 may also be located outside the communication device 8100.
[0279] Optionally, the communication device 8100 further includes one or more transceivers 8103. When the communication device 8100 includes one or more transceivers 8103, the communication steps such as sending and receiving in the above-mentioned state synchronization method are performed by the transceiver 8103, and the other steps are performed by the processor 8101.
[0280] The communication device 8100 described in the above embodiment may be a network device or a terminal, but the scope of the communication device 8100 described in the present disclosure is not limited thereto, and the structure of the communication device 8100 may not be limited by FIG. 14 . The communication device may be an independent device or may be part of a larger device. For example, the communication device may be: (1) an independent integrated circuit IC, or a chip, or a chip system or subsystem; (2) a collection of one or more ICs, optionally, the above IC collection may also include a storage component for storing data or computer programs; (3) an ASIC, such as a modem; (4) a module that can be embedded in other devices; (5) a receiver, a terminal device, an intelligent terminal device, a cellular phone, a wireless device, a handheld device, a mobile unit, an in-vehicle device, a network device, a cloud device, an artificial intelligence device, etc.; (6) others, etc.
[0281] The present disclosure also provides a readable storage medium having computer instructions stored thereon. When the computer instructions are executed on the communication device 8100, the communication device 8100 executes any of the above-mentioned state synchronization methods. Optionally, the computer-readable storage medium can be a non-transitory computer-readable storage medium or a transitory computer-readable storage medium.
[0282] The present disclosure also provides a computer program product. When the computer program product is executed by the communication device 8100, it enables the communication device 8100 to execute any one of the above state synchronization methods.
Claims
1. A state synchronization method, characterized in that: Executed by a terminal, the method includes: Receiving a first version number and a first instruction sent by a server, wherein the first instruction is used to instruct to adjust the state of a digital car key in a terminal, and the first version number is used to identify a state version of the digital car key after adjustment; Determine whether to execute the first instruction according to the first version number and the second version number of the terminal, where the second version number is used to identify the current status version of the digital car key of the terminal.
2. The method according to claim 1, characterized in that The determining whether to execute the first instruction according to the first version number and the second version number of the terminal includes: Determine whether to execute the first instruction according to the order of the first version number and the second version number.
3. The method according to claim 2, characterized in that The determining whether to execute the first instruction according to the order of the first version number and the second version number includes: The first version number is higher than the second version number, and the first instruction is determined to be executed; or, The first version number is equal to the second version number, and it is determined that the first instruction is refused to be executed; or, The second version number is higher than the first version number, and it is determined that the first instruction is refused to be executed.
4. The method according to any one of claims 1 to 3, characterized in that include: Determining that the first instruction is successfully executed; Using the first version number as an identifier of the current status version of the digital car key of the terminal; A message indicating successful execution of the first instruction is sent to the server.
5. The method according to any one of claims 1 to 3, characterized in that include: Determining that the terminal restores network connection; The second version number is sent to the server, where the second version number is used by the server to determine whether the status version of the current digital car key of the terminal is consistent with the status version of the digital car key of the server.
6. A state synchronization method, characterized in that: Executed by the server, the method includes: receiving a second instruction from the requesting end for instructing to adjust the state of the digital vehicle key; Determine the identifier of the adjusted state version of the digital vehicle key to obtain a first version number; A first version number and a first instruction are sent to the terminal, where the first instruction is used to instruct adjustment of the status of a digital car key in the terminal, the first version number and the second version number of the terminal are used by the terminal to determine whether to execute the first instruction, and the second version number is used to identify the current status version of the digital car key of the terminal.
7. The method according to claim 6, characterized in that include: receiving a second version number sent by the terminal, where the second version number is sent by the terminal after restoring the network connection; According to the second version number and the third version number of the server, determine whether to send a third instruction to the terminal, the third instruction is used to instruct to adjust the status of the digital car key in the terminal, and the third version number is used to identify the current status version of the digital car key of the server.
8. The method according to claim 7, characterized in that The determining, according to the second version number and the third version number of the server, whether to send a third instruction to the terminal includes: Determine whether to send the third instruction to the terminal according to the order of the second version number and the third version number.
9. The method according to claim 8, characterized in that The determining, according to the order of the second version number and the third version number, whether to send the third instruction to the terminal includes: The second version number is lower than the third version number, and it is determined to send the third instruction to the terminal.
10. The method according to any one of claims 7 to 9, characterized in that include: Determine to send the third instruction to the terminal; Determine the current state of the digital car key of the server to obtain a first state; The third instruction and the third version number are sent to the terminal, wherein the third instruction is used to instruct to adjust the state of the digital car key in the terminal to the first state, and the third version number is used to identify the state version of the digital car key of the terminal after the state is adjusted to the first state.
11. The method according to any one of claims 6 to 9, characterized in that include: Receiving a message sent by the terminal indicating successful execution of the first instruction; A message indicating that the state of the digital vehicle key is successfully adjusted is sent to the requesting end.
12. A first state synchronization device, characterized in that: Applied to a terminal, the device comprises: A first receiving module is configured to receive a first version number and a first instruction sent by a server, wherein the first instruction is used to instruct to adjust the state of the digital car key in the terminal, and the first version number is used to identify the state version of the digital car key after adjustment; The first execution module is configured to determine whether to execute the first instruction according to the first version number and the second version number of the terminal, where the second version number is used to identify the current status version of the digital car key of the terminal.
13. A second state synchronization device, characterized in that: Applied to the server, the device comprises: A second receiving module is configured to receive a second instruction from the requesting end for instructing to adjust the state of the digital car key; A first determining module is configured to determine an identifier of the adjusted state version of the digital vehicle key to obtain a first version number; The first sending module is configured to send a first version number and a first instruction to the terminal, wherein the first instruction is used to instruct adjustment of the status of a digital car key in the terminal, the first version number and the second version number of the terminal are used by the terminal to determine whether to execute the first instruction, and the second version number is used to identify the current status version of the digital car key of the terminal.
14. A state synchronization method, characterized in that: include: The server receives a second instruction from the requester for instructing to adjust the state of the digital car key; The server determines the identifier of the adjusted state version of the digital car key to obtain a first version number; The server sends a first version number and a first instruction to the terminal, where the first instruction is used to instruct to adjust the state of the digital car key in the terminal; The terminal receives the first version number and the first instruction sent by the server; The terminal determines whether to execute the first instruction according to the first version number and the second version number of the terminal, where the second version number is used to identify the current status version of the digital car key of the terminal.
15. A communication device, characterized in that: include: one or more processors; The processor is used to call computer instructions to enable the communication device to execute the state synchronization method described in any one of claims 1-11.
16. A state synchronization system, characterized in that: It comprises a terminal and a server, wherein the terminal is configured to implement the state synchronization method described in any one of claims 1 to 5, and the server is configured to implement the state synchronization method described in any one of claims 6 to 11.
17. A computer-readable storage medium storing computer instructions, characterized in that: When the computer instructions are executed on a communication device, the communication device is caused to execute the status synchronization method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Automobile controller software remote upgrade method and internet-of-vehicle system
CN105208112A
Software upgrading method and system of vehicle intelligent key
CN115061710A
Vehicle physical key upgrading method and system
CN115857992A
State synchronization method, device and system, communication equipment and storage medium
CN116503985A
Method and vehicle key for updating vehicle software
DE102015207852A1
